@flarehr/workflows-app 2.18.1 → 2.21.1

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.
@@ -3,8 +3,8 @@
3
3
  * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
4
4
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
5
5
  */
6
- function o(e){return(o="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})(e)}function i(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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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){s(e,t,n[t])}))}return e}function c(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")}()}n.d(t,"a",(function(){return xe})),n.d(t,"b",(function(){return Se}));var u=function(){},l={},f={},d={mark:u,measure:u};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var h=(l.navigator||{}).userAgent,p=void 0===h?"":h,m=l,g=f,w=d,y=(m.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),v=(~p.indexOf("MSIE")||p.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),_=v.concat([11,12,13,14,15,16,17,18,19,20]),b={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},C=(["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",b.GROUP,b.SWAP_OPACITY,b.PRIMARY,b.SECONDARY].concat(v.map((function(e){return"".concat(e,"x")}))).concat(_.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(g&&"function"==typeof g.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=c(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=g.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(C[r]=o)}))}var S=a({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},C);S.autoReplaceSvg||(S.observeMutations=!1);var x=a({},S);m.FontAwesomeConfig=x;var I=m||{};I.___FONT_AWESOME___||(I.___FONT_AWESOME___={}),I.___FONT_AWESOME___.styles||(I.___FONT_AWESOME___.styles={}),I.___FONT_AWESOME___.hooks||(I.___FONT_AWESOME___.hooks={}),I.___FONT_AWESOME___.shims||(I.___FONT_AWESOME___.shims=[]);var E=I.___FONT_AWESOME___,k=[];y&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",(function e(){g.removeEventListener("DOMContentLoaded",e),1,k.map((function(e){return e()}))})));var T,O=function(){},A=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,M=void 0===r?setTimeout:r,P=[];function N(){for(var e=0;e<P.length;e++)P[e][0](P[e][1]);P=[],T=!1}function D(e,t){P.push([e,t]),T||(T=!0,M(N,0))}function R(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){U(i,e)}}z(i,r)||("fulfilled"===n&&j(i,r),"rejected"===n&&U(i,r))}function z(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"===o(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?L(e,r):j(e,r))}),(function(t){n||(n=!0,U(e,t))})),!0}}catch(t){return n||U(e,t),!0}return!1}function j(e,t){e!==t&&z(e,t)||L(e,t)}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(F,e))}function U(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(G,e))}function B(e){e._then=e._then.forEach(R)}function F(e){e._state="fulfilled",B(e)}function G(t){t._state="rejected",B(t),!t._handled&&A&&e.process.emit("unhandledRejection",t._data,t)}function H(t){e.process.emit("rejectionHandled",t)}function W(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof W==!1)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){U(t,e)}try{e((function(e){j(t,e)}),n)}catch(e){n(e)}}(e,this)}W.prototype={constructor:W,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(O),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&A&&D(H,this)),"fulfilled"===this._state||"rejected"===this._state?D(R,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},W.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new W((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)}))},W.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new W((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)}))},W.resolve=function(e){return e&&"object"===o(e)&&e.constructor===W?e:new W((function(t){t(e)}))},W.reject=function(e){return new W((function(t,n){n(e)}))};var V={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $(e){if(e&&y){var t=g.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=g.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)}return g.head.insertBefore(t,r),e}}function q(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Y(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function J(e){return e.size!==V.size||e.x!==V.x||e.y!==V.y||e.rotate!==V.rotate||e.flipX||e.flipY}function Z(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 K={x:0,y:0,width:"100%",height:"100%"};function Q(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 ee(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,c=e.symbol,u=e.title,l=e.maskId,f=e.titleId,d=e.extra,h=e.watchable,p=void 0!==h&&h,m=r.found?r:n,g=m.width,w=m.height,y="fak"===o,v=y?"":"fa-w-".concat(Math.ceil(g/w*16)),_=[x.replacementClass,i?"".concat(x.familyPrefix,"-").concat(i):"",v].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),b={children:[],attributes:a({},d.attributes,{"data-prefix":o,"data-icon":i,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(w)})},C=y&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/w*16*.0625,"em")}:{};p&&(b.attributes["data-fa-i2svg"]=""),u&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(f||q())},children:[u]});var S=a({},b,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:s,symbol:c,styles:a({},C,d.styles)}),I=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,s=e.maskId,c=e.transform,u=o.width,l=o.icon,f=i.width,d=i.icon,h=Z({transform:c,containerWidth:f,iconWidth:u}),p={tag:"rect",attributes:a({},K,{fill:"white"})},m=l.children?{children:l.children.map(Q)}:{},g={tag:"g",attributes:a({},h.inner),children:[Q(a({tag:l.tag,attributes:a({},l.attributes,h.path)},m))]},w={tag:"g",attributes:a({},h.outer),children:[g]},y="mask-".concat(s||q()),v="clip-".concat(s||q()),_={tag:"mask",attributes:a({},K,{id:y,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,w]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(t=d,"g"===t.tag?t.children:[t])},_]};return n.push(b,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(y,")")},K)}),{children:n,attributes:r}}(S):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=X(e.styles);if(i.length>0&&(n.style=i),J(o)){var s=Z({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:a({},s.outer),children:[{tag:"g",attributes:a({},s.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:a({},r.icon.attributes,s.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(S),E=I.children,k=I.attributes;return S.children=E,S.attributes=k,c?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:a({},o,{id:!0===i?"".concat(t,"-").concat(x.familyPrefix,"-").concat(n):i}),children:r}]}]}(S):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,s=e.transform;if(J(s)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};o.style=X(a({},i,{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(S)}var te=function(){},ne=(x.measurePerformance&&w&&w.mark&&w.measure,function(e,t,n,r){var o,i,s,a=Object.keys(e),c=a.length,u=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<c;o++)s=u(s,e[i=a[o]],i,e);return s});function re(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 E.hooks.addPack||o?E.styles[e]=a({},E.styles[e]||{},i):E.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var oe=E.styles,ie=E.shims,se=function(){var e=function(e){return ne(oe,(function(t,n,r){return t[r]=ne(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 oe;ne(ie,(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}),{})};se();E.styles;function ae(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ce(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?Y(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Y(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(ce).join(""),"</").concat(t,">")}var ue=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};function le(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le;var fe={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},he={tag:"path",attributes:a({},fe,{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"})},pe=a({},de,{attributeName:"opacity"});a({},fe,{cx:"256",cy:"364",r:"28"}),a({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},pe,{values:"1;0;1;1;0;1;"}),a({},fe,{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"}),a({},pe,{values:"1;0;0;0;0;1;"}),a({},fe,{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"}),a({},pe,{values:"0;0;1;1;0;0;"}),E.styles;function me(e){var t=e[0],n=e[1],r=c(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(x.familyPrefix,"-").concat(b.GROUP)},children:[{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(b.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(b.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}E.styles;function ge(){var e="svg-inline--fa",t=x.familyPrefix,n=x.replacementClass,r='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("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),s=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(s,".".concat(n))}return r}function we(){x.autoAddCss&&!Ce&&($(ge()),Ce=!0)}function ye(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ce(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(y){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ve(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ae(be.definitions,n,r)||ae(E.styles,n,r)}var _e,be=new(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,r;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]=a({},e.definitions[t]||{},o[t]),re(t,o[t]),se()}))}},{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}}])&&i(t.prototype,n),r&&i(t,r),e}()),Ce=!1,Se={transform:function(e){return ue(e)}},xe=(_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?V:n,o=t.symbol,i=void 0!==o&&o,s=t.mask,c=void 0===s?null:s,u=t.maskId,l=void 0===u?null:u,f=t.title,d=void 0===f?null:f,h=t.titleId,p=void 0===h?null:h,m=t.classes,g=void 0===m?[]:m,w=t.attributes,y=void 0===w?{}:w,v=t.styles,_=void 0===v?{}:v;if(e){var b=e.prefix,C=e.iconName,S=e.icon;return ye(a({type:"icon"},e),(function(){return we(),x.autoA11y&&(d?y["aria-labelledby"]="".concat(x.replacementClass,"-title-").concat(p||q()):(y["aria-hidden"]="true",y.focusable="false")),ee({icons:{main:me(S),mask:c?me(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:C,transform:a({},V,r),symbol:i,title:d,maskId:l,titleId:p,extra:{attributes:y,styles:_,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ve(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ve(r||{})),_e(n,a({},t,{mask:r}))})}).call(this,n(2),n(3).setImmediate)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(4),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,s,a,c=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[c]=o,r(c),c++},d.clearImmediate=h}function h(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(2),n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);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}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return _g}));var r,o,i,s,a,c={},u=[],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(e,t,n){var r,o,i,s=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(null!=n&&(a.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return p(e,a,r,o,null)}function p(e,t,n,o,i){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(s),s}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 v(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!_.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||i)(_)}function _(){for(var e;_.__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,O(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),A(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||u,I=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?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<I;h++){if((g=S[h])&&y.key==g.key&&y.type===g.type){S[h]=void 0;break}g=null}O(e,y,g=g||c,o,i,s,a,l,f),v=y.__e,(h=y.ref)&&g.ref!=h&&(b||(b=[]),g.ref&&b.push(g.ref,null,y),b.push(h,y.__c||v,y)),null!=v?(null==_&&(_=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,v,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=_,d=I;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=w(r,d+1)),N(S[d],S[d]));if(b)for(d=0;d<b.length;d++)P(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,c;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,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function I(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function E(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||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(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?T:k,i):e.removeEventListener(t,i?T:k,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&&"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 k(e){this.l[e.type+!1](r.event?r.event(e):e)}function T(e){this.l[e.type+!0](r.event?r.event(e):e)}function O(e,t,n,o,i,s,a,c,u){var l,d,h,p,w,y,v,_,C,S,x,I=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,s=[c]),(l=r.__b)&&l(t);try{e:if("function"==typeof I){if(_=t.props,C=(l=I.contextType)&&o[l.__c],S=l?C?C.props.value:l.__:o,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in I&&I.prototype.render?t.__c=d=new I(_,S):(t.__c=d=new g(_,S),d.constructor=I,d.render=D),C&&C.sub(d),d.props=_,d.state||(d.state={}),d.context=S,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,I.getDerivedStateFromProps(_,d.__s))),p=d.props,w=d.state,h)null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==I.getDerivedStateFromProps&&_!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,S),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,S)||t.__v===n.__v){d.props=_,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,S),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,w,y)}))}d.context=S,d.props=_,d.state=d.__s,(l=r.__r)&&l(t),d.__d=!1,d.__v=t,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],t,n,o,i,s,a,c,u),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,o,i,s,a,u);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(u||null!=s)&&(t.__e=c,t.__h=!!u,s[s.indexOf(c)]=null),r.__e(e,t,n)}}function A(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function M(e,t,n,r,o,i,s,a){var l,f,h,p,m=n.props,g=t.props,w=t.type,y=0;if("svg"===w&&(o=!0),null!=i)for(;y<i.length;y++)if((l=i[y])&&(l===e||(w?l.localName==w:3==l.nodeType))){e=l,i[y]=null;break}if(null==e){if(null===w)return document.createTextNode(g);e=o?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,g.is&&g),i=null,a=!1}if(null===w)m===g||a&&e.data===g||(e.data=g);else{if(i=i&&u.slice.call(e.childNodes),f=(m=n.props||c).dangerouslySetInnerHTML,h=g.dangerouslySetInnerHTML,!a){if(null!=i)for(m={},p=0;p<e.attributes.length;p++)m[e.attributes[p].name]=e.attributes[p].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(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]||E(e,i,t[i],n[i],r)}(e,g,m,o,a),h)t.__k=[];else if(y=t.props.children,b(e,Array.isArray(y)?y:[y],t,n,r,o&&"foreignObject"!==w,i,s,e.firstChild,a),null!=i)for(y=i.length;y--;)null!=i[y]&&d(i[y]);a||("value"in g&&void 0!==(y=g.value)&&(y!==e.value||"progress"===w&&!y)&&E(e,"value",y,m.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&E(e,"checked",y,m.checked,!1))}return e}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function N(e,t,n){var o,i,s;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&N(o[s],t,n);null!=i&&d(i)}function D(e,t,n){return this.constructor(e,n)}function R(e,t,n){var o,i,s;r.__&&r.__(e,t),i=(o="function"==typeof n)?null:n&&n.__k||t.__k,s=[],O(t,e=(!o&&n||t).__k=h(m,null,[e]),i||c,c,void 0!==t.ownerSVGElement,!o&&n?[n]:i?null:t.firstChild?u.slice.call(t.childNodes):null,s,!o&&n?n:i?i.__e:t.firstChild,o),A(s,e)}function z(e,t){R(e,t,z)}function j(e,t,n){var r,o,i,s=arguments,a=f({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return null!=n&&(a.children=n),p(e.type,a,r||e.key,o||e.ref,null)}r={__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},__v: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),v(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v(this))},g.prototype.render=m,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,a=0;var L,U,B,F=0,G=[],H=r.__b,W=r.__r,V=r.diffed,$=r.__c,q=r.unmount;function Y(e,t){r.__h&&r.__h(U,e,F||t),F=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return F=1,J(se,e)}function J(e,t,n){var r=Y(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):se(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=U),r.__}function Z(e,t){var n=Y(L++,3);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,U.__H.__h.push(n))}function K(e,t){var n=Y(L++,4);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,U.__h.push(n))}function Q(e,t){var n=Y(L++,7);return ie(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ee(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function te(){G.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}})),G=[]}r.__b=function(e){U=null,H&&H(e)},r.__r=function(e){W&&W(e),L=0;var t=(U=e.__c).__H;t&&(t.__h.forEach(re),t.__h.forEach(oe),t.__h=[])},r.diffed=function(e){V&&V(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==G.push(t)&&B===r.requestAnimationFrame||((B=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ne&&(t=requestAnimationFrame(n))})(te)),U=void 0},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),$&&$(e,t)},r.unmount=function(e){q&&q(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(re)}catch(e){r.__e(e,t.__v)}};var ne="function"==typeof requestAnimationFrame;function re(e){var t=U;"function"==typeof e.__c&&e.__c(),U=t}function oe(e){var t=U;e.__c=e.__(),U=t}function ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function se(e,t){return"function"==typeof t?t(e):t}function ae(e,t){for(var n in t)e[n]=t[n];return e}function ce(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 ue(e){this.props=e}(ue.prototype=new g).isPureReactComponent=!0,ue.prototype.shouldComponentUpdate=function(e,t){return ce(this.props,e)||ce(this.state,t)};var le=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),le&&le(e)};var fe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var de=function(e,t){return null==e?null:S(S(e).map(t))},he={map:de,forEach:de,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},pe=r.__e;function me(){this.__u=0,this.t=null,this.__b=null}function ge(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function we(){this.u=null,this.o=null}r.__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);pe(e,t,n)},(me.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ge(r.__v),i=!1,s=function(){i||(i=!0,n.componentWillUnmount=n.__c,o?o(a):a())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){s(),n.__c&&n.__c()};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()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},me.prototype.componentWillUnmount=function(){this.t=[]},me.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=ae({},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 ye=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 ve(e){return this.getChildContext=function(){return e.context},e.children}function _e(e){var t=this,n=e.i;t.componentWillUnmount=function(){R(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)}}),R(h(ve,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(we.prototype=new g).__e=function(e){var t=this,n=ge(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ye(t,e,r)):o()};n?n(i):i()}},we.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},we.prototype.componentDidUpdate=we.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ye(e,n,t)}))};var be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?: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]/,Se=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function xe(e,t,n){return null==t.__k&&(t.textContent=""),R(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ie(e,t,n){return z(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 Ee=r.event;function ke(){}function Te(){return this.cancelBubble}function Oe(){return this.defaultPrevented}r.event=function(e){return Ee&&(e=Ee(e)),e.persist=ke,e.isPropagationStopped=Te,e.isDefaultPrevented=Oe,e.nativeEvent=e};var Ae,Me={configurable:!0,get:function(){return this.class}},Pe=r.vnode;r.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)&&!Se(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Ce.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&&(Me.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Me)),e.$$typeof=be,Pe&&Pe(e)};var Ne=r.__r;r.__r=function(e){Ne&&Ne(e),Ae=e.__c};var De={ReactCurrentDispatcher:{current:{readContext:function(e){return Ae.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function Re(e){return!!e&&e.$$typeof===be}var ze,je={useState:X,useReducer:J,useEffect:Z,useLayoutEffect:K,useRef:function(e){return F=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){F=6,K((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Q,useCallback:function(e,t){return F=8,Q((function(){return e}),t)},useContext:function(e){var t=U.context[e.__c],n=Y(L++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(U)),t.props.value):e.__},useDebugValue:ee,version:"16.8.0",Children:he,render:xe,hydrate:Ie,unmountComponentAtNode:function(e){return!!e.__k&&(R(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(v)},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 Re(e)?j.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:m,isValidElement:Re,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:ue,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:ce(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=ae({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=fe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:me,SuspenseList:we,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:De};function Le(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 Ue(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=n||function(e,t){if(t&ze.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)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function Be(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Ue(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Le(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=Le(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 Fe(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ze||(ze={}));const Ge=Symbol("numeric");function He(e){return"number"==typeof e||(null==e?void 0:e[Ge])}function We(e,t){return"number"==typeof e?e*t:e[Ge]().multiply(t)}function Ve(e,t){return"number"==typeof e?e.toFixed(t):e[Ge]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[Ge]().toPrecision(t)}function qe(e,t){return"number"==typeof e?e.toExponential(t):e[Ge]().toExponential(t)}function Ye(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Ge]().toHex()}var Xe=null;try{Xe=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(e){}function Je(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ze(e){return!0===(e&&e.__isLong__)}Je.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Je.prototype.Equals=function(e){return xt(this,e)},Je.prototype.CompareTo=function(e){return Tt(this,e)},Je.prototype.toString=function(e){return _t(this,e)},Je.prototype.toJSON=function(){return _t(this)},Je.prototype[Ge]=function(){const e=this;return{multiply:t=>Pt(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:()=>_t(e.unsigned?e:Ut(Lt(e),!0),16)}},Je.prototype.__isLong__,Object.defineProperty(Je.prototype,"__isLong__",{value:!0});var Ke={},Qe={};function et(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Qe[e])?r:(n=nt(e,(0|e)<0?-1:0,!0),o&&(Qe[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ke[e])?r:(n=nt(e,e<0?-1:0,!1),o&&(Ke[e]=n),n)}function tt(e,t){if(isNaN(e))return t?ft:lt;if(t){if(e<0)return ft;if(e>=at)return gt}else{if(e<=-ct)return wt;if(e+1>=ct)return mt}return e<0?Ot(tt(-e,t)):nt(e%st|0,e/st|0,t)}function nt(e,t,n){return new Je(e,t,n)}var rt=Math.pow;function ot(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return lt;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 Ot(ot(e.substring(1),t,n));for(var o=tt(rt(n,8)),i=lt,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+a),n);if(a<8)i=At(Pt(i,tt(rt(n,a))),tt(c));else i=At(i=Pt(i,o),tt(c))}return i.unsigned=t,i}function it(e,t){return"number"==typeof e?tt(e,t):"string"==typeof e?ot(e,t):nt(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var st=4294967296,at=st*st,ct=at/2,ut=et(1<<24),lt=et(0),ft=et(0,!0),dt=et(1),ht=et(1,!0),pt=et(-1),mt=nt(-1,2147483647,!1),gt=nt(-1,-1,!0),wt=nt(0,-2147483648,!1);function yt(e){return e.unsigned?e.low>>>0:e.low}function vt(e){return e.unsigned?(e.high>>>0)*st+(e.low>>>0):e.high*st+(e.low>>>0)}function _t(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(bt(e))return"0";if(Ct(e)){if(xt(e,wt)){var n=tt(t),r=Nt(e,n),o=Mt(Pt(r,n),e);return _t(r,t)+yt(o).toString(t)}return"-"+_t(Ot(e),t)}for(var i=tt(rt(t,6),e.unsigned),s=e,a="";;){var c=Nt(s,i),u=(yt(Mt(s,Pt(c,i)))>>>0).toString(t);if(bt(s=c))return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}}function bt(e){return 0===e.high&&0===e.low}function Ct(e){return!e.unsigned&&e.high<0}function St(e){return 1==(1&e.low)}function xt(e,t){return Ze(t)||(t=it(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function It(e,t){return Tt(e,t)<0}function Et(e,t){return Tt(e,t)>0}function kt(e,t){return Tt(e,t)>=0}function Tt(e,t){if(Ze(t)||(t=it(t)),xt(e,t))return 0;var n=Ct(e),r=Ct(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:Ct(Mt(e,t))?-1:1}function Ot(e){return!e.unsigned&&xt(e,wt)?wt:At(Dt(e),dt)}function At(e,t){Ze(t)||(t=it(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,c=t.low>>>16,u=0,l=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,l+=(f+=o+c)>>>16,u+=(l+=r+a)>>>16,u+=n+s,nt((f&=65535)<<16|(d&=65535),(u&=65535)<<16|(l&=65535),e.unsigned)}function Mt(e,t){return Ze(t)||(t=it(t)),At(e,Ot(t))}function Pt(e,t){if(bt(e))return e.unsigned?ft:lt;if(Ze(t)||(t=it(t)),Xe)return nt(Xe.mul(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned);if(bt(t))return e.unsigned?ft:lt;if(xt(e,wt))return St(t)?wt:lt;if(xt(t,wt))return St(e)?wt:lt;if(Ct(e))return Ct(t)?Pt(Ot(e),Ot(t)):Ot(Pt(Ot(e),t));if(Ct(t))return Ot(Pt(e,Ot(t)));if(It(e,ut)&&It(t,ut))return tt(vt(e)*vt(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,c=t.low>>>16,u=65535&t.low,l=0,f=0,d=0,h=0;return d+=(h+=i*u)>>>16,f+=(d+=o*u)>>>16,d&=65535,f+=(d+=i*c)>>>16,l+=(f+=r*u)>>>16,f&=65535,l+=(f+=o*c)>>>16,f&=65535,l+=(f+=i*a)>>>16,l+=n*u+r*c+o*a+i*s,nt((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(f&=65535),e.unsigned)}function Nt(e,t){if(Ze(t)||(t=it(t)),bt(t))throw Error("division by zero");var n,r,o;if(Xe)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?nt((e.unsigned?Xe.div_u:Xe.div_s)(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned):e;if(bt(e))return e.unsigned?ft:lt;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:nt(e.low,e.high,!0)}(t)),Et(t,e))return ft;if(Et(t,jt(e,1)))return ht;o=ft}else{if(xt(e,wt))return xt(t,dt)||xt(t,pt)?wt:xt(t,wt)?dt:xt(n=Rt(Nt(zt(e,1),t),1),lt)?Ct(t)?dt:pt:o=At(n,Nt(r=Mt(e,Pt(t,n)),t));if(xt(t,wt))return e.unsigned?ft:lt;if(Ct(e))return Ct(t)?Nt(Ot(e),Ot(t)):Ot(Nt(Ot(e),t));if(Ct(t))return Ot(Nt(e,Ot(t)));o=lt}for(r=e;kt(r,t);){n=Math.max(1,Math.floor(vt(r)/vt(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:rt(2,i-48),a=tt(n),c=Pt(a,t);Ct(c)||Et(c,r);)c=Pt(a=tt(n-=s,e.unsigned),t);bt(a)&&(a=dt),o=At(o,a),r=Mt(r,c)}return o}function Dt(e){return nt(~e.low,~e.high,e.unsigned)}function Rt(e,t){return Ze(t)&&(t=yt(t)),0==(t&=63)?e:t<32?nt(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):nt(0,e.low<<t-32,e.unsigned)}function zt(e,t){return Ze(t)&&(t=yt(t)),0==(t&=63)?e:t<32?nt(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):nt(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function jt(e,t){if(Ze(t)&&(t=yt(t)),0===(t&=63))return e;var n=e.high;return t<32?nt(e.low>>>t|n<<32-t,n>>>t,e.unsigned):nt(32===t?n:n>>>t-32,0,e.unsigned)}function Lt(e,t){return t?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]}(e):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]}(e)}function Ut(e,t,n){return n?function(e,t){return new Je(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 Je(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)}const Bt=At,Ft=Pt,Gt=Nt,Ht=function(e,t){return Ze(t)||(t=it(t)),Xe?nt((e.unsigned?Xe.rem_u:Xe.rem_s)(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned):Mt(e,Pt(Nt(e,t),t))},Wt=Ot,Vt=function(e,t){return Ze(t)||(t=it(t)),nt(e.low&t.low,e.high&t.high,e.unsigned)},$t=Tt,qt=nt,Yt=yt,Xt=vt;function Jt(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 nt(r,o>>31,t)}function Zt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Kt(e){return"function"==typeof e.GetHashCode}function Qt(e){return null!=e&&"function"==typeof e.Dispose}function en(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class tn{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 nn(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new tn(e[Symbol.iterator]())}function rn(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 on{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 sn(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function an(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function cn(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class un{static id(e){return un.idMap.has(e)||un.idMap.set(e,++un.count),un.idMap.get(e)}}function ln(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function fn(e){return 2654435761*e|0}function dn(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function hn(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return fn(e);case"string":return ln(e);default:if(Kt(e))return e.GetHashCode();if(Zt(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=hn(e[r]);return dn(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return dn(Object.values(e).map(e=>hn(e)))}return fn(un.id(e))}}function pn(e){return null==e?0:Kt(e)?e.GetHashCode():fn(un.id(e))}function mn(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 gn(e,t){return mn(e,t,wn)}function wn(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):Zt(e)?Zt(t)&&gn(e,t):e instanceof Date?t instanceof Date&&0===yn(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]||!wn(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function yn(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+an(e),r=t.getTime()+an(t)),n===r?0:n<r?-1:1}function vn(e,t){return e===t?0:e<t?-1:1}function _n(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,bn)}function bn(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):Zt(e)?Zt(t)?_n(e,t):-1:e instanceof Date?t instanceof Date?yn(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=bn(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function Cn(e,t,n){return e(t,n)>0?t:n}function Sn(e){const t={};for(const n of e)t[n[0]]=n[1];return t}un.idMap=new WeakMap,un.count=0;const xn=Symbol("curried");function In(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[xn]=t,n}function En(e,t,n){return r=>1===t?n(...e.concat([r])):En(e.concat([r]),t-1,n)}function kn(e,t){return null==t||1===t.length?t:xn in t?t[xn]:En([],e,t)}function Tn(e,t,n){if(null!=t){if(xn in t){t=t[xn];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return En(n,e,t)}}function On(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=kn(e,n)),t>1&&(n=In(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function An(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+sn(~~(e/36e5),2)+":"+sn(n,2)}function Mn(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 Pn(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 Nn(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," ")+An(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Pn(i,t,!0);switch(t){case"D":case"d":return Mn(i,"first");case"T":case"t":return Mn(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+An(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Dn(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Pn(e,t,n);switch(t){case"D":case"d":return n?Mn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Mn(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 sn(e.getFullYear(),4)+"-"+sn(e.getMonth()+1,2)+"-"+sn(e.getDate(),2)+"T"+sn(e.getHours(),2)+":"+sn(e.getMinutes(),2)+":"+sn(e.getSeconds(),2)+"."+sn(e.getMilliseconds(),3)+(t?An(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function Rn(e,t,n){return null!=e.offset?Nn(e,t):Dn(e,t)}function zn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function jn(e){function t(){throw new Error("The string is not a valid Date: "+e)}null!==e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function Ln(e,t){try{return t.contents=function(e,t=!1){const[n,r]=jn(e),o=null!=r?t&&"Z"===r?1:2:0;return zn(n.getTime(),o)}(e),!0}catch(e){return!1}}function Un(e,t,n,r=0,o=0,i=0,s=0,a){const c=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(c))throw new Error("The parameters describe an unrepresentable Date.");const u=zn(c,a);return e<=99&&u.setFullYear(e,t-1,n),u}function Bn(){return Un(Hn(e=zn(Date.now(),2)),Gn(e),Fn(e),0,0,0,0,e.kind);var e}function Fn(e){return 1===e.kind?e.getUTCDate():e.getDate()}function Gn(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function Hn(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function Wn(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 Vn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function $n(e,t,n=0){if(e.lastIndex=n,!e.global)throw new Error("Non-global RegExp");let r=e.exec(t);const o=[];for(;null!==r;)o.push(r),r=e.exec(t);return o}function qn(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+=qn(r);else{if(100===t){n+="; ...";break}n+="; "+qn(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+qn(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class Yn{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=qn(t[0]),r=n.indexOf(" ")>=0):n=t.map(e=>qn(e)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>hn(e));return e.splice(0,0,fn(this.tag)),dn(e)}Equals(e){return this===e||!!en(this,e)&&(this.tag===e.tag&&gn(this.fields,e.fields))}CompareTo(e){return this===e?0:en(this,e)?this.tag===e.tag?_n(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function Xn(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Jn(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+qn(t)).join("\n ")+" }"}function Zn(e){return dn(Object.values(e).map(e=>hn(e)))}function Kn(e,t){if(e===t)return!0;if(en(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!wn(e[n[r]],t[n[r]]))return!1;return!0}return!1}function Qn(e,t){if(e===t)return 0;if(en(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=bn(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class er{toJSON(){return Xn(this)}toString(){return Jn(this)}GetHashCode(){return Zn(this)}Equals(e){return Kn(this,e)}CompareTo(e){return Qn(this,e)}}class tr{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)}}const nr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,rr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,or=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ir(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function sr(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function ar(e){return{input:e,cont:(t=e,e=>{nr.lastIndex=0;const n=[],r=[];let o=0,i=nr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=nr.lastIndex,nr.lastIndex-=1,i=nr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),function e(t,n,r,o="",i=-1){return(...s)=>{let a=o;const c=n.slice(),u=r.slice();for(const e of s){const[,,t,n,r,o]=u[0];let s=n;if(i>=0)s=i,i=-1;else if("*"===s){if(e<0)throw new Error("Non-negative number required");i=e;continue}a+=c[0],a+=dr(e,t,s,r,o),c.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=c[0],t(a)):e(t,c,u,a,i)}}(e,n,r))})};var t}function cr(e,t){let n=0,r=0,o="";rr.lastIndex=0;let i=rr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,c,u,l]=i;o+=dr(t[n++],a,c,u,l),r=rr.lastIndex,rr.lastIndex-=1,i=rr.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function ur(e,t){return"string"==typeof t?e(t):t.cont(e)}function lr(e){return ur(e=>e,e)}function fr(e){return ur(e=>{throw new Error(e)},e)}function dr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",He(e))switch("x"!==o.toLowerCase()&&(ir(e,0)?(e=We(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Ve(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?$e(e,r):$e(e);break;case"e":case"E":e=null!=r?qe(e,r):qe(e);break;case"x":e=Ye(e);break;case"X":e=Ye(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Rn(e):qn(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=yr(e,n-i.length,s,o)):yr(i+e,n,s,o)}return e}function hr(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(or,(e,n,r,o,i,s)=>{let a=t[n];if(He(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ve(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?$e(a,i):$e(a);break;case"e":case"E":a=null!=i?qe(a,i):qe(a);break;case"p":case"P":i=null!=i?i:2,a=Ve(We(a,100),i)+" %";break;case"d":case"D":a=null!=i?yr(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?yr(Ye(a),i,"0"):Ye(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(ir(a,0)&&(a=We(a,-1),e="-"),a=Ve(a,null!=r?r.length-1:0),yr(a,(n||"").length-e.length+(null!=r?r.length:0),"0"))),a=e+a}}else a=a instanceof Date?Rn(a,s||o):qn(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=yr(String(a),Math.abs(r)," ",r<0)),a})}function pr(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function mr(e){return"string"!=typeof e||0===e.length}function gr(e){return"string"!=typeof e||/^\s*$/.test(e)}function wr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function yr(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 vr(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)}const _r=je;var br={GetHashCode(){return dn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Ge](){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)}}},Cr="[big.js] ",Sr=Cr+"Invalid ",xr=Sr+"decimal places",Ir=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Er(e,t){var n,r,o;if(!Ir.test(t))throw Error(Sr+"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 e=kr(e,Or.DP+1,Or.RM)}function kr(e,t,n,r){var o=e.c;if(void 0===n&&(n=Or.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||void 0!==o[1]))),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||void 0!==o[t+1]||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 Tr(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}br.abs=function(){var e=new this.constructor(this);return e.s=1,e},br.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,c=r.e,u=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-a:0;if(s!=a)return s;if(t=s<0,c!=u)return c>u^t?1:-1;for(a=Math.max(o.length,i.length),s=0;s<a;s++)if((c=s<o.length?o[s]:0)!=(u=s<i.length?i[s]:0))return c>u^t?1:-1;return 0},br.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>1e6)throw Error(xr);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var a,c,u,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=[],v=0,_=s+(w.e=n.e-e.e)+1;for(w.s=i,i=_<0?0:_,d.unshift(0);g++<a;)m.push(0);do{for(u=0;u<10;u++){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(c=g==a?o:d;g;){if(m[--g]<c[g]){for(f=g;f&&!m[--f];)m[f]=9;--m[f],m[g]+=10}m[g]-=c[g]}for(;!m[0];)m.shift()}y[v++]=l?u:++u,m[0]&&l?m[g]=r[h]||0:m=[r[h]]}while((h++<p||void 0!==m[0])&&i--);return y[0]||1==v||(y.shift(),w.e--,_--),v>_&&kr(w,_,t.RM,void 0!==m[0]),w},br.eq=function(e){return 0===this.cmp(e)},br.gt=function(e){return this.cmp(e)>0},br.gte=function(e){return this.cmp(e)>-1},br.lt=function(e){return this.cmp(e)<0},br.lte=function(e){return this.cmp(e)<1},br.minus=br.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),a=(e=new i(e),s.s),c=e.s;if(a!=c)return e.s=-c,s.plus(e);var u=s.c.slice(),l=s.e,f=e.c,d=e.e;if(!u[0]||!f[0])return f[0]?e.s=-c:u[0]?e=new i(s):e.s=1,e;if(a=l-d){for((o=a<0)?(a=-a,r=u):(d=l,r=f),r.reverse(),c=a;c--;)r.push(0);r.reverse()}else for(n=((o=u.length<f.length)?u:f).length,a=c=0;c<n;c++)if(u[c]!=f[c]){o=u[c]<f[c];break}if(o&&(r=u,u=f,f=r,e.s=-e.s),(c=(n=f.length)-(t=u.length))>0)for(;c--;)u[t++]=0;for(c=t;n>a;){if(u[--n]<f[n]){for(t=n;t&&!u[--t];)u[t]=9;--u[t],u[n]+=10}u[n]-=f[n]}for(;0===u[--c];)u.pop();for(;0===u[0];)u.shift(),--d;return u[0]||(e.s=1,u=[d=0]),e.c=u,e.e=d,e},br.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("[big.js] Division by zero");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)))},br.plus=br.add=function(e){var t,n,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,a=i.c,c=e.e,u=e.c;if(!a[0]||!u[0])return u[0]||(a[0]?e=new o(i):e.s=i.s),e;if(a=a.slice(),t=s-c){for(t>0?(c=s,r=u):(t=-t,r=a),r.reverse();t--;)r.push(0);r.reverse()}for(a.length-u.length<0&&(r=u,u=a,a=r),t=u.length,n=0;t;a[t]%=10)n=(a[--t]=a[t]+u[t]+n)/10|0;for(n&&(a.unshift(n),++c),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=c,e},br.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(Sr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},br.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(Sr+"precision");return kr(new this.constructor(this),e,t)},br.round=function(e,t){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(xr);return kr(new this.constructor(this),e+this.e+1,t)},br.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(Cr+"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 kr(e,(r.DP-=4)+e.e+1,r.RM)},br.times=br.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,c=r.e,u=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=c+u,s<a&&(t=o,o=i,i=t,u=s,s=a,a=u),t=new Array(u=s+a);u--;)t[u]=0;for(c=a;c--;){for(a=0,u=s+c;u>c;)a=t[u]+i[c]*o[u-c-1]+a,t[u--]=a%10,a=a/10|0;t[u]=a}for(a?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},br.toExponential=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(xr);for(n=kr(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return Tr(n,!0,!!r)},br.toFixed=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(xr);for(e=e+(n=kr(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return Tr(n,!1,!!r)},br.toJSON=br.toString=function(){var e=this,t=e.constructor;return Tr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},br.toNumber=function(){var e=Number(Tr(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Cr+"Imprecise conversion");return e},br.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(Sr+"precision");for(n=kr(new r(n),e,t);n.c.length<e;)n.c.push(0)}return Tr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},br.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(Cr+"valueOf disallowed");return Tr(e,e.e<=t.NE||e.e>=t.PE,!0)};var Or=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?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(Sr+"number");n=0===n&&1/n<0?"-0":String(n)}Er(r,n)}r.constructor=t}return t.prototype=br,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}(),Ar=Or;new Ar(0),new Ar(1),new Ar(-1),new Ar("79228162514264337593543950335"),new Ar("-79228162514264337593543950335");class Mr{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Pr{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 qr(this)}GetHashCode(){return Dr(this)}Equals(e){return Rr(this,e)}}function Nr(e){return null!=e.generics?e.generics:[]}function Dr(e){return dn([ln(e.fullname),...Nr(e).map(Dr)])}function Rr(e,t){return""===e.fullname?""===t.fullname&&mn(oo(e),oo(t),([e,t],[n,r])=>e===n&&Rr(t,r)):e.fullname===t.fullname&&mn(Nr(e),Nr(t),Rr)}function zr(e,t,n,r){return new Pr(e,t,n,r)}function jr(e,t,n,r){return new Pr(e,t,n,void 0,r)}function Lr(e,t,n,r){const o=new Pr(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new Mr(o,n,e[n],t))});return o}function Ur(...e){return new Pr("System.Tuple`"+e.length,e)}function Br(e){return new Pr("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Fr(e){return new Pr("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Gr=new Pr("System.Object"),Hr=(new Pr("Microsoft.FSharp.Core.Unit"),new Pr("System.Char"),new Pr("System.String")),Wr=(new Pr("System.Boolean"),new Pr("System.SByte"),new Pr("System.Byte"),new Pr("System.Int16"),new Pr("System.UInt16"),new Pr("System.Int32")),Vr=(new Pr("System.UInt32"),new Pr("System.Single"),new Pr("System.Double"));new Pr("System.Decimal");function $r(e){if(Array.isArray(e))return e[0];if(e instanceof Pr){const t=Xr(e);if(null!=t)return $r(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function qr(e){const t=Xr(e);return null!=t?qr(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map(e=>qr(e)).join(",")+"]"}function Yr(e){return null!=Xr(e)}function Xr(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Jr(e){return null!=e.generics&&e.generics.length>0}function Zr(e){return null!=e.enumCases&&e.enumCases.length>0}function Kr(e){return null==e.generics?e:new Pr(e.fullname,e.generics.map(()=>Gr))}function Qr(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function eo(e){if(Zr(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function to(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")}function no(e,t){const n=parseInt(t,10);return to(e,isNaN(n)?t:n)[1]}function ro(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function oo(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function io(e){if(co(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}function so(e){return e instanceof Pr?null!=e.cases:e instanceof Yn}function ao(e){return e instanceof Pr?null!=e.fields:e instanceof er}function co(e){return e.fullname.startsWith("System.Tuple")}function uo(e){return null==e.fields?[]:e.fields}function lo(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):{}}class fo{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return hn(this.value)}Equals(e){return null!=e&&wn(this.value,e instanceof fo?e.value:e)}CompareTo(e){return null==e?1:bn(this.value,e instanceof fo?e.value:e)}}function ho(e){return null==e||e instanceof fo?new fo(e):e}function po(e){if(null==e)throw new Error("Option has no value");return e instanceof fo?e.value:e}function mo(e){return null==e?void 0:e}function go(e){return null==e?[]:[po(e)]}function wo(e,t){return null!=e?po(e):t}function yo(e,t){return null!=t?ho(e(po(t))):void 0}function vo(e,t){return null!=t?e(po(t)):void 0}function _o(){return e=(e,t)=>bn(e,t),{Compare:(t,n)=>e(t,n)};var e}function bo(){return _o()}function Co(e,t){return"function"==typeof e?new e(t):new Array(t)}function So(){throw new Error("Arrays had different lengths")}function xo(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Io(e,t,n){const r=0|t.length,o=Co(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Eo(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Co(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function ko(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function To(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function Oo(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Ao(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&So();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class Mo extends er{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+wr("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((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(wn(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,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)+hn(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|bn(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 function(e){return new Po(e)}(this)}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return nn(this)}}class Po{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"(){this.it=this.xs,this.current=null}Dispose(){}}function No(){return new Mo(null,void 0)}function Do(e,t){return new Mo(e,t)}function Ro(e){return null==e.tail}function zo(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 jo(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Lo(e){const t=e.tail;if(null!=t)return t;throw new Error("List was empty\\nParameter name: list")}function Uo(){return No()}function Bo(e,t){return Do(e,t)}function Fo(e){return Do(e,No())}function Go(e){return Ro(e)}function Ho(e){return zo(e)}function Wo(e){return jo(e)}function Vo(e){return Ro(e)?void 0:ho(jo(e))}function $o(e){return Lo(e)}function qo(e){const t=0|zo(e),n=xo(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Ro(o))break;n[r]=jo(o),e=r+1,t=Lo(o)}})(0,e),n}function Yo(e,t,n){let r=t,o=n;for(;!Ro(o);)r=e(r,jo(o)),o=Lo(o);return r}function Xo(e){return Yo((e,t)=>Do(t,e),No(),e)}function Jo(e,t){Yo((t,n)=>{e(n)},void 0,t)}function Zo(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Do(e[t],n);return n}function Ko(e){return Zo(e,No())}function Qo(e){let t,n;if(Zt(e))return Ko(e);if(e instanceof Mo)return e;{const r=No();let o=r;const i=nn(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Mo(e,void 0),t.tail=n,o=n}}finally{i.Dispose()}const s=o,a=No();return s.tail=a,Lo(r)}}function ei(e,t){return Yo((e,t)=>Do(t,e),t,Xo(e))}function ti(e,t){const n=No(),r=Yo((t,n)=>{const r=new Mo(e(n),void 0);return t.tail=r,r},n,t),o=No();return r.tail=o,Lo(n)}function ni(e,t){return(t=>{e:for(;;){const n=t;if(Ro(n))return;{const r=e(jo(n));if(null==r){t=Lo(n);continue e}return r}}})(t)}function ri(e,t){return ni(t=>e(t)?ho(t):void 0,t)}function oi(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Ro(o))return;if(e(jo(o)))return r;t=r+1,n=Lo(o)}})(0,t)}function ii(e,t){const n=No(),r=Yo((t,n)=>{if(e(n)){const e=new Mo(n,void 0);return t.tail=e,e}return t},n,t),o=No();return r.tail=o,Lo(n)}function si(e,t,n){return null!=oi(t=>n.Equals(e,t),t)}function ai(e,t){return null!=oi(e,t)}const ci="The input sequence has an insufficient number of elements.";function ui(){throw new Error("Enumeration has not started. Call MoveNext.")}function li(){throw new Error("Enumeration already finished.")}class fi{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=nn(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=qn(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 rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class di{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 hi(e,t,n){return new di(e,t,n)}function pi(e,t){return hi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{t.Dispose()}finally{e()}})}function mi(e,t,n){let r=!1,o=void 0,i=ho(e());const s=()=>{if(null!=i){const e=po(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return hi(()=>(r||ui(),null!=o?po(o):li()),()=>{if(r||(r=!0),null!=i){const e=po(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(o=n,!0):(a(),!1)}return!1},s)}function gi(e,t){null==t&&function(e){throw new Error(e)}(e)}function wi(e){return function(e){return new fi(e)}(e)}function yi(e){return gi("source",e),nn(e)}function vi(e){return wi(()=>nn(e()))}function _i(e){return wi(()=>function(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!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 hi(()=>(r?o&&li():ui(),null!=i?po(i):li()),()=>{let a;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[t,n];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=ho(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=nn(a)}else s(),r=!1}else t=nn(e)}return po(r)}},()=>{o||s()})}(e))}function bi(e,t){return wi(()=>function(e,t){let n=void 0,r=t;return hi(()=>{if(null!=n){const e=n[0];n[1];return e}return ui()},()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1},()=>{})}(e,t))}function Ci(){return vi(()=>new Array(0))}function Si(e){return vi(()=>function(e,t){const n=Co(t,1);return n[0]=e,n}(e))}function xi(e){return e instanceof Mo?qo(e):Array.from(e)}function Ii(e){return Zt(e)?Ko(e):e instanceof Mo?e:Qo(e)}function Ei(e,t,n){return wi(()=>mi(e,t,n))}function ki(e,t,n){return wi(()=>{let r=-1;return mi(e,e=>(r=r+1|0,t(r,e)),n)})}function Ti(e,t){return _i([e,t])}function Oi(e,t,n){const r=yi(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 Ai(e,t,n){const r=yi(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 Mi(e,t){Ai((t,n)=>{e(n)},void 0,t)}function Pi(e,t){Ai((t,n)=>(e(t,n),t+1|0),0,t)}function Ni(e,t){return Ei(()=>yi(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?ho(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Di(e,t){return ki(()=>yi(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?ho(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}Symbol.iterator;function Ri(e,t){return wi(()=>{const n=yi(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ci+"\\nParameter name: source");return pi(()=>{},n)}catch(e){throw n.Dispose(),e}})}function zi(e,t){return ki(()=>yi(t),(t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return ho(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ci+"\\nParameter name: source")}},e=>{e.Dispose()})}function ji(e,t){return vi(()=>_i(Ni(e,t)))}class Li extends er{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Ui(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Ui(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}qt(2013265921,0,!1),qt(2013265921,0,!0);Eo(28,e=>Ui(2,e),Int32Array);function Bi(e){return e.bound}function Fi(e,t){return e.digits[t]}function Gi(e,t){return Jt(Fi(e,t),!1,2)}function Hi(e,t,n){e.digits[t]=0|n}function Wi(e,t){for(;;){const n=e,r=t;if(0===r)return qt(1,0,!1);if(r%2!=0)return Ft(n,Wi(Ft(n,n),~~(r/2)));e=Ft(n,n),t=~~(r/2)}}function Vi(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Vi(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const $i=qt(16777216,0,!1),qi=qt(16777215,0,!1);qt(16777215,0,!0);function Yi(e){return new Li(e,new Int32Array(e))}function Xi(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 Ji(e){const t=0|(e<0?0:e);if(t<16777216){const e=Yi(1);return e.digits[0]=0|t,Xi(e)}{const e=Yi(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/Vi(16777216,n))%16777216|0;return Xi(e)}}function Zi(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]+16777216*t|0;return 0|t}}const Ki=Ji(1),Qi=Ji(0);function es(e){return e.bound-1}function ts(e){return 0===e.bound}function ns(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}function rs(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 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)}function os(e,t){return-1===rs(e,t)}function is(e,t,n){for(;;){const r=e,o=t,i=n;if(!($t(o,qt(0,0,!1))>0))break;{const s=Bt(Gi(r,i),o);Hi(r,i,~~Yt(Vt(s,qi))),e=r,t=Gt(s,$i),n=i+1}}}function ss(e,t){const n=0|Bi(e),r=Yi(n+1),o=Jt(t,!1,2);let i=qt(0,0,!1);for(let t=0;t<=n-1;t++){const n=Bt(Bt(i,Gi(r,t)),Ft(Gi(e,t),o));Hi(r,t,~~Yt(Vt(n,qi))),i=Gt(n,$i)}return is(r,i,n),Xi(r)}function as(e,t){const n=1===Bi(e),r=1===Bi(t);return n&&r?function(e,t){const n=Yi(2),r=Ft(Jt(e,!1,2),Jt(t,!1,2));return Hi(n,0,~~Yt(Vt(r,qi))),Hi(n,1,~~Yt(Gt(r,$i))),Xi(n)}(Fi(e,0),Fi(t,0)):n?ss(t,Fi(e,0)):r?ss(e,Fi(t,0)):function(e,t){const n=Yi(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=Jt(e.digits[o],!1,2);let s=qt(0,0,!1),a=o;for(let e=0;e<=t.bound-1;e++){const n=Jt(t.digits[e],!1,2),o=Bt(Bt(Jt(r[a],!1,2),s),Ft(i,n));r[a]=0|~~Yt(Vt(o,qi)),s=Gt(o,$i),a=a+1|0}is(n,s,a)}return Xi(n)}(e,t)}class cs extends er{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 us(e,t,n,r){return new cs(e,Vi(2,e),t,n,r,~~(24/e),Eo(~~(24/e),t=>Vi(2,e*t),Int32Array))}const ls=[us(1,28,268435456,268435456),us(2,26,67108864,134217728),us(3,24,16777216,50331648),us(4,22,4194304,16777216),us(5,20,1048576,5242880),us(6,18,262144,1572864),us(7,16,65536,458752),us(8,14,16384,131072),us(9,12,4096,36864),us(10,10,1024,10240),us(11,8,256,2816),us(12,6,64,768),us(13,4,16,208)];Eo(24,e=>Vi(2,e)-1,Int32Array),Eo(24,e=>Vi(2,e),Int32Array),Eo(24,e=>Wi(qt(2,0,!1),e));ls[0].bigN;function fs(e,t){return as(e,t)}function ds(e,t,n,r){const o=[e.digits,es(e)],i=o[0],s=[n.digits,es(n)],a=0|s[1],c=s[0],u=Jt(t,!1,2);let l=0,f=Ft(u,Jt(c[0],!1,2));for(;$t(f,qt(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=~~Yt(Vt(f,qi)),t=Gt(f,$i);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(16777216-e)|0,t=Bt(t,qt(1,0,!1))),f=l<a?Bt(t,Ft(u,Jt(c[l+1],!1,2))):t,l=l+1|0}Xi(e)}function hs(e,t,n,r){const o=[e.digits,es(e)],i=o[0],s=[n.digits,es(n)],a=0|s[1],c=s[0],u=Jt(t,!1,2);let l=0,f=Ft(u,Jt(c[0],!1,2));for(;$t(f,qt(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=~~Yt(Vt(f,qi)),t=Gt(f,$i);e<16777216-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(16777216-i[l+r])|0,t=Bt(t,qt(1,0,!1))),f=l<a?Bt(t,Ft(u,Jt(c[l+1],!1,2))):t,l=l+1|0}Xi(e)}function ps(e,t,n){const r=[es(t),es(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],c=0|(0===i?o===n?~~(s[n]/a[0]):~~Yt(Gt(Bt(Ft(Jt(s[o],!1,2),$i),Jt(s[o-1],!1,2)),Jt(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Yt(Gt(Bt(Ft(Jt(s[o],!1,2),$i),Jt(s[o-1],!1,2)),Bt(Jt(a[i],!1,2),qt(1,0,!1)))));return 0===c?1!==function(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:0|((e,n,o)=>{e:for(;;){const i=e,s=n,a=o;if(-1===a)return 0;{const c=0|(a<t?0:i[a-t]),u=0|(a<r?0:s[a-r]);if(c===u){e=i,n=s,o=a-1;continue e}return c<u?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e,0)?1:0:0|c}}function ms(e,t){if(ts(t))throw new Error;if(es(e)<es(t))return[Qi,e];{const n=function(e){return new Li(e.bound,e.digits.slice())}(e),r=Yi(es(e)-es(t)+1+1);let o=es(e);const i=0|es(t);let s=o-i;const a=e=>{};let c=!1;for(;!c;){a([r,n,s,o]);const e=0|ps(n,t,s);e>0?(ds(n,e,t,s),hs(r,e,Ki,s),a([r,n,s,o])):(c=0===e&&0===s,c||(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[Xi(r),Xi(n)]}}Ji(2);function gs(e){return Ji(e)}function ws(e){return function(e){const t=$t(e,qt(0,0,!1))<0?qt(0,0,!1):e,n=Yi(3);for(let e=0;e<=2;e++)n.digits[e]=0|~~Yt(Ht(Gt(t,Wi($i,e)),$i));return Xi(n)}(e)}function ys(e){const t=0|es(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,c=o;if(Go(c)){const e=0|Zi(a);return i&&0===e?s:Bo(cn(e),s)}{const u=$o(c),l=ms(a,Wo(c)[1]),f=l[1],d=l[0];if(i&&ts(d)){e=i,t=s,r=f,o=u;continue e}e=i,t=n(!1,s,f,u),r=d,o=u;continue e}}},r=n(!0,Uo(),e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(es(s)>t)return Bo([i,s],o);e=Bo([i,s],o),n=i+1,r=fs(s,s)}})(Uo(),0,Ji(10)));return Go(r)?"0":wr("",qo(r))}function vs(e){return e.bound<=1}function _s(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class bs extends er{constructor(e,t){super(),this.signInt=0|e,this.v=t}toString(){const e=this;switch(0|xs(e)){case-1:return ts(Is(e))?"0":"-"+ys(Is(e));case 0:return"0";case 1:return ys(Is(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof bs&&Es(this,e)}GetHashCode(){return 0|(0===xs(e=this)?1:xs(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}(Is(e))|0);var e}toJSON(e){return qn(this)}CompareTo(e){if(e instanceof bs)return 0|function(e,t){return ks(e,t)?-1:Es(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Cs(e,t){return new bs(e,t)}function Ss(e){return vs(e)&&_s(e)<bs.smallLim?bs.smallPosTab[_s(e)]:e}function xs(e){return e.signInt}function Is(e){return e.v}function Es(e,t){const n=[xs(e),xs(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 ns(Is(e),Is(t));case 2:case 3:return!!ts(Is(e))&&ts(Is(t));case 4:return!0;case 5:case 6:return ts(Is(t));case 7:case 8:return ts(Is(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function ks(e,t){const n=[xs(e),xs(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 os(Is(e),Is(t));case 1:return os(Is(t),Is(e));case 2:return!1;case 3:return!ts(Is(e))||!ts(Is(t));case 4:return!1;case 5:return!ts(Is(t));case 6:case 7:return!1;case 8:return!ts(Is(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Ts(e){return e>=0?Cs(1,Ss(gs(e))):Cs(-1,Ss(-2147483648===e?ws(Wt(Jt(e,!1,2))):gs(Fe(e))))}function Os(){return bs.one}function As(){return bs.two}function Ms(){return bs.zero}bs.smallLim=4096,bs.smallPosTab=Eo(bs.smallLim,e=>gs(e)),bs.one=Ts(1),bs.two=Ts(2),bs.zero=Ts(0);Ms(),Os(),As();Ms(),Os();function Ps(e,t,n,r,o){const i=function(e,t,n,r){const o=0|bn(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|bn(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return vi(()=>bi(i,e))}function Ns(e,t,n){return Ps(e,t,n,0,(e,t)=>e+t)}const Ds=e=>{Z(()=>{const t=e();return()=>{t.Dispose()}})},Rs=(e,t)=>{Z(()=>{const t=e();return()=>{t.Dispose()}},t)},zs=e=>{K(()=>{const t=e();return()=>{t.Dispose()}})};function js(e,t,n,r){const o=_r.memo(e,In(2,wo(kn(2,n),null)));return Mi(t=>{e.displayName=t},go(t)),e=>_r.createElement(o,Ls(r,e))}function Ls(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function Us(e){return{Dispose(){e()}}}function Bs(e){Ds(e)}function Fs(e,t){Rs(e,t)}function Gs(e){Ws(e,[])}function Hs(e){Fs(e,[])}function Ws(e,t){Rs(t=>(e(),Us(()=>{})),t)}function Vs(e,t){return _r.useCallback(e,wo(t,[]))}function $s(e){return _r.useRef(e)}function qs(e,t){return _r.useMemo(e,wo(t,[]))}function Ys(e){const t=$s(e),n=Vs(e=>t.current(e),[]);var r;return r=()=>{t.current=e},zs(e=>(r(),Us(()=>{}))),n}function Xs(e){return _r.useState(e)}class Js{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 Zs extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Zs.prototype)}}class Ks{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ks.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Qs(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Zs);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)}}}function ea(e,t){return Qs(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})})}function ta(e){return Qs(t=>t.onSuccess(e))}const na=new class{Bind(e,t){return ea(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Qs(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 ta(e)}ReturnFrom(e){return e}TryFinally(e,t){return Qs(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 Qs(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 Qs(e=>e.onSuccess(void 0))}};class ra extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function oa(e,t){return 0===t.tag?new ra(0,e(t.fields[0])):new ra(1,t.fields[0])}function ia(e,t){return 0===t.tag?e(t.fields[0]):new ra(1,t.fields[0])}class sa extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class aa extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function ca(e){}function ua(e){const t=new Js("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function la(e){e.cancel()}function fa(e){return null!=e&&e.isCancelled}const da=new Js;function ha(e){return Qs(t=>{e({onSuccess:e=>t.onSuccess(function(e){return new sa(0,e)}(e)),onError:e=>t.onSuccess(new sa(1,e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function pa(e){return Qs(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ma(e){return Qs(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Zs)})})}function ga(e,t){return function(e,t){return wa(e,t)}(e,t)}function wa(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ks;e({onSuccess:t||ca,onError:n||ca,onCancel:r||ca,cancelToken:o||da,trampoline:i})}class ya{constructor(){}}function va(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(wn(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 _a=new ya;class ba extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Ca{constructor(e){this.state=new ba(0,xo(new Array(Cn((e,t)=>vn(e,t),e,10)),0,Cn((e,t)=>vn(e,t),e,10),null),0)}}function Sa(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 ba(0,o,n):new ba(1,o,n,i),ho(o[r])}}function xa(e,t,n){const r=$s(e[0]),o=$s(new Ca(10));const i=Xs(e[0]);let s;const a=$s(ua()),c=$s(a.current);Hs(()=>Us(()=>{la(a.current)})),s=c;const u=()=>{setTimeout(()=>{let e;e=s.current,fa(e)||i[1](r.current)},0)},l=e=>{var n;(n=va(0,()=>{let n=ho(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(_a,()=>{let e;return null!=n&&(e=s.current,!fa(e))},va(0,()=>{const e=t(po(n),r.current);return Jo(e=>{e(l)},e[1]),n=Sa(o.current),r.current=e[0],u(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},f=Ys(l);var d;return Fs(()=>Us(()=>{let e;Mi(e=>{e.Dispose()},go((e=r.current,Qt(e)?e:void 0)))}),n),Ws(()=>{r.current=e[0],u(),Jo(e=>{e(f)},e[1])},n),d=()=>{Mi(f,go(Sa(o.current)))},Ds(e=>(d(),Us(()=>{}))),[i[0],f]}class Ia extends er{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}class Ea extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}class ka extends er{constructor(e){super(),this.AuthCode=e}}class Ta extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}class Oa extends er{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}function Aa(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationContextDto",[],Oa,()=>[["CssOverrides",Fr(Hr)],["MaskedEmail",Hr]])}function Ma(e){return new Ia(e.CssOverrides,e.MaskedEmail)}class Pa extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}function Na(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationOutcomeDto",[],Pa,()=>[[["Item",Aa()]],[],[],[],[["Item",Aa()]]])}class Da extends er{constructor(e){super(),this.AuthCode=e}}class Ra extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}function za(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ValidationOutcomeDto",[],Ra,()=>[[["Item",jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.CodeMatchContextDto",[],Da,()=>[["AuthCode",Hr]])]],[],[],[],[]])}function ja(e){switch(e.tag){case 1:return new Ta(1);case 2:return new Ta(2);case 3:return new Ta(3);case 4:return new Ta(4);default:return new Ta(0,(t=e.fields[0],new ka(t.AuthCode)))}var t}class La{constructor(e,t){this.k=e,this.v=t}}function Ua(e,t){return new La(e,t)}function Ba(e){return e.k}function Fa(e){return e.v}class Ga extends La{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function Ha(e,t,n,r,o){return new Ga(e,t,n,r,o)}function Wa(e){return e.left}function Va(e){return e.right}function $a(e){return e.h}function qa(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Ga){t=e(r+1,Wa(i)),n=Va(i);continue e}return r+1|0}return 0|r}}(0,e)}function Ya(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof Ga?$a(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ga?$a(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ua(t,n):Ha(t,n,e,r,s+1)}function Xa(e,t,n,r){let o,i,s,a,c;if(null!=e){const t=e;c=t instanceof Ga?$a(t):1}else c=0;let u;if(null!=r){const e=r;u=e instanceof Ga?$a(e):1}else u=0;if(u>c+2){const s=po(r);if(s instanceof Ga){if(o=Wa(s),(null!=o?(i=o,i instanceof Ga?$a(i):1):0)>c+1){const r=po(Wa(s));if(r instanceof Ga)return Ya(Ya(e,t,n,Wa(r)),Ba(r),Fa(r),Ya(Va(r),Ba(s),Fa(s),Va(s)));throw new Error("internal error: Map.rebalance")}return Ya(Ya(e,t,n,Wa(s)),Ba(s),Fa(s),Va(s))}throw new Error("internal error: Map.rebalance")}if(c>u+2){const o=po(e);if(o instanceof Ga){if(s=Va(o),(null!=s?(a=s,a instanceof Ga?$a(a):1):0)>u+1){const e=po(Va(o));if(e instanceof Ga)return Ya(Ya(Wa(o),Ba(o),Fa(o),Wa(e)),Ba(e),Fa(e),Ya(Va(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ya(Wa(o),Ba(o),Fa(o),Ya(Va(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ya(e,t,n,r)}function Ja(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Ba(o));return o instanceof Ga?i<0?Xa(Ja(e,t,n,Wa(o)),Ba(o),Fa(o),Va(o)):0===i?Ha(t,n,Wa(o),Va(o),$a(o)):Xa(Wa(o),Ba(o),Fa(o),Ja(e,t,n,Va(o))):i<0?Ha(t,n,void 0,r,2):0===i?Ua(t,n):Ha(t,n,r,void 0,2)}return Ua(t,n)}function Za(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Ba(s));if(0===a)return ho(Fa(s));if(s instanceof Ga){e=r,t=o,n=a<0?Wa(s):Va(s);continue e}return}return}}function Ka(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Ga){e(r,Wa(i)),r(Ba(i),Fa(i)),t=r,n=Va(i);continue e}r(Ba(i),Fa(i))}break}}(e,t)}function Qa(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof Ga){const n=e(t,Wa(r)),o=t(Ba(r),Fa(r)),i=e(t,Va(r));return Ha(Ba(r),o,n,i,$a(r))}return Ua(Ba(r),t(Ba(r),Fa(r)))}}(e,t)}function ec(e,t,n){let r=n;Ka((e,n)=>{t[r]=[e,n],r=r+1|0},e)}function tc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ja(e,o[0],o[1],n)}return n}function nc(e,t){if(Zt(t))return tc(e,t);if(t instanceof Mo)return function(e,t){return Yo((t,n)=>Ja(e,n[0],n[1],t),void 0,t)}(e,t);{const n=nn(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=Ja(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class rc extends er{constructor(e,t){super(),this.stack=e,this.started=t}}function oc(e){e:for(;;){const t=e;if(Go(t))return Uo();{const n=$o(t),r=Wo(t);if(null!=r){const o=r;if(o instanceof Ga){e=Zo([Wa(o),Ua(Ba(o),Fa(o)),Va(o)],n);continue e}return t}e=n;continue e}}}function ic(e){return new rc(oc(Fo(e)),!1)}function sc(e){if(e.started){const t=e.stack;if(Go(t))return function(){throw new Error("enumeration already finished")}();if(null!=Wo(t)){const e=Wo(t);if(e instanceof Ga)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ba(e),Fa(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function ac(e){let t=ic(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>sc(t),"System.Collections.IEnumerator.get_Current":()=>sc(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Go(t))return!1;if(null!=Wo(t)){if(Wo(t)instanceof Ga)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=oc($o(t)),!Go(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Go(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ic(e)},Dispose(){}}}class cc{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=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,hn(e[0])),n=0|t(n,hn(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof cc))return!1;{const t=nn(this);try{const n=nn(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!(!wn(r[0],o[0])||!wn(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+wr("; ",Ni(e=>hr("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return ac(this.tree)}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ac(this.tree)}CompareTo(e){const t=this;if(e instanceof cc)return 0|function(e,t,n){const r=yi(t);try{const t=yi(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:bn(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 hc(this,e[0])&&wn(fc(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ec(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|dc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|dc(this)}get size(){return 0|dc(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ni(e=>[e[0],e[1]],this)}get(e){return fc(this,e)}has(e){return hc(this,e)}keys(){return Ni(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Ni(e=>e[1],this)}forEach(e,t){const n=this;Mi(t=>{e(t[1],t[0],n)},n)}}function uc(e,t){return new cc(e,t)}function lc(e){const t=bo();return uc(t,nc(t,e))}function fc(e,t){return function(e,t,n){const r=Za(e,t,n);if(null==r)throw new Error;return po(r)}(e.comparer,t,e.tree)}function dc(e){return qa(e.tree)}function hc(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,Ba(s));if(s instanceof Ga){if(a<0){e=r,t=o,n=Wa(s);continue e}if(0===a)return!0;e=r,t=o,n=Va(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function pc(e,t,n){return function(e,t,n){return uc(e.comparer,Ja(e.comparer,t,n,e.tree))}(n,e,t)}function mc(e,t){return function(e,t){return Za(e.comparer,t,e.tree)}(t,e)}function gc(e,t){return r=e,uc((n=t).comparer,Qa(r,n.tree));var n,r}function wc(){return cc.empty}cc.empty=uc(bo(),void 0);class yc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function vc(e,t){switch(t.tag){case 1:return new yc(1);case 3:return new yc(3,t.fields[0]);case 2:try{return new yc(2,e(t.fields[0]))}catch(e){return new yc(3,e)}default:return new yc(0)}}function _c(e,t){const n=Xs(new yc(0)),r=n[1];let o;const i=$s(ua()),s=$s(i.current);Hs(()=>Us(()=>{la(i.current)})),o=s;const a=na.Delay(()=>na.TryWith(na.Delay(()=>(r(new yc(1)),na.Bind(e,e=>(r(new yc(2,e)),na.Zero())))),e=>(r(new yc(3,e)),na.Zero())));return Ws(()=>{ga(a,o.current)},t),n[0]}function bc(e,t){const n=$s(ua());return Hs(()=>Us(()=>{la(n.current)})),Ys(r=>{fa(n.current)||ga(na.Delay(()=>na.TryWith(na.Delay(()=>(t(new yc(1)),na.Bind(e(r),e=>(t(new yc(2,e)),na.Zero())))),e=>(t(new yc(3,e)),na.Zero()))),n.current)})}function Cc(e){return e<0?Math.ceil(e):Math.floor(e)}function Sc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return xc(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 xc(e){return Xt(Gt(e,1e4))}function Ic(e){return Sc(0,e,0)}function Ec(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 Cc(e/864e5)}(e)),o=Math.abs(function(e){return Cc(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Cc(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Cc(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Cc(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:sn(o,2)}:${sn(i,2)}:${sn(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+sn(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r+="0";return r}(a,3,7):""}`}function kc(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 Sc(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*Sc(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}function Tc(e,t){const n=function(e,t,n=0){return e.lastIndex=n,e.exec(t)}(Wn(e),t);return null!=n?$o(Ii(vi(()=>{return Ni(e=>e||"",(e=e=>e["System.Collections.IEnumerator.MoveNext"](),t=e=>e["System.Collections.IEnumerator.get_Current"](),Ei(()=>nn(n),n=>e(n)?ho(t(n)):void 0,e=>{const t=e;Qt(t)&&t.Dispose()})));var e,t}))):void 0}function Oc(e,t){return mr(t)?new ra(1,lr(ar("%s cannot be null or empty"))(e)):new ra(0,t)}function Ac(e){const t=function(e){let t;const n=Tc(".*?@(.*)",e);switch(t=null!=n?Go(n)?1:Go($o(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new ra(0,t)}return new ra(1,"Email is not in the correct format")}const Mc=e=>({tag:"ok",value:e}),Pc=e=>({tag:"error",error:e});class Nc{constructor(e){this.uri=e}static isAbsoluteUri(e){try{return new URL(e),!0}catch(e){return!1}}static tryCreateWithKind(e,t){switch(t){case 1:return Nc.isAbsoluteUri(e)?Mc(new Nc({original:e,value:new URL(e),kind:t})):Pc("Invalid URI: The format of the URI could not be determined.");case 2:return Nc.isAbsoluteUri(e)?Pc("URI is not a relative path."):Mc(new Nc({original:e,value:e,kind:t}));case 0:return Nc.isAbsoluteUri(e)?Mc(new Nc({original:e,value:new URL(e),kind:1})):Mc(new Nc({original:e,value:e,kind:2}));default:return t}}static tryCreateWithBase(e,t){return 1!==e.uri.kind?Pc("Base URI should have Absolute kind"):"string"==typeof t?Mc(new Nc({original:new URL(t,e.uri.value).toString(),value:new URL(t,e.uri.value),kind:1})):2===t.uri.kind?Mc(new Nc({original:new URL(t.uri.value,e.uri.value).toString(),value:new URL(t.uri.value,e.uri.value),kind:1})):Mc(e)}static tryCreateImpl(e,t=1){return"string"==typeof e?"number"!=typeof t?Pc("Kind must be specified when the baseUri is a string."):Nc.tryCreateWithKind(e,t):"number"==typeof t?Pc("Kind should not be specified when the baseUri is an absolute Uri."):Nc.tryCreateWithBase(e,t)}static create(e,t=1){const n=Nc.tryCreateImpl(e,t);switch(n.tag){case"ok":return n.value;case"error":throw new Error(n.error);default:return n}}static tryCreate(e,t=1,n){const r=Nc.tryCreateImpl(e,t);switch(r.tag){case"ok":return n.contents=r.value,!0;case"error":return!1;default:return r}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return 1===this.uri.kind}get absoluteUri(){return this.asUrl().href}get scheme(){const e=this.asUrl().protocol;return e.slice(0,e.length-1)}get host(){return this.asUrl().host}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get pathAndQuery(){const e=this.asUrl();return e.pathname+e.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class Dc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SecondFactorCode"]}}function Rc(e){return function(e){return!mr(e)&&function(e,t,n=0){return e.lastIndex=n,e.test(t)}(/^(\d{6})$/g,e)}(e)?new ra(0,new Dc(0,e)):new ra(1,"Invalid second factor code format.")}class zc extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}Ic(5);class jc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InviteCode"]}}function Lc(e){return function(e){return!gr(e)}(e)?new ra(0,new jc(0,e)):new ra(1,"Invalid invite code format.")}function Uc(e){return e.fields[0]}class Bc extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}class Fc extends er{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}class Gc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Logo"]}}class Hc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompanyName"]}}class Wc extends er{constructor(e,t){super(),this.Email=e,this.Phone=t}}class Vc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class $c extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}const qc=e=>oa(e=>new Vc(0,e),ia(e=>Ac(e),Oc("Email",e)));const Yc=e=>oa(e=>new $c(0,e),Oc("Phone",e));function Xc(e){return function(e){try{const t=Nc.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch(e){return[!1,void 0]}}(e)[0]?new ra(0,new Gc(0,e)):new ra(1,"Invalid logo url.")}Sc(10,0,0,0);Ic(30);class Jc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initializing","WaitingForInput","Failed"]}}class Zc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InitInvite","ActivateInvite","ValidateMfa","ProcessInput","ShowValidation"]}}class Kc extends er{constructor(e,t,n,r,o,i,s){super(),this.InviteToken=e,this.MaskedEmail=t,this.MfaCodeForm=n,this.IsValidationPending=r,this.CanRetry=o,this.Ui=i,this.CssOverrides=s}}class Qc{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class eu{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)}}var tu=eu;var nu=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 tu}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}};function ru(e,t){console.error(ho(e),t)}function ou(e,t){let n,r=new nu(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Qc(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function iu(e,t,n){Jo(n=>{try{n(t)}catch(t){e(t)}},n)}function su(){return Uo()}function au(e,t){return ti(t=>n=>{t(t=>{n(e(t))})},t)}function cu(e){return function(e){const t=No();let n=t;const r=e=>{n=Yo((e,t)=>{const n=new Mo(t,void 0);return e.tail=n,n},n,e)};if(Zt(e))e.forEach(r);else if(e instanceof Mo)Jo(r,e);else{const t=nn(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{t.Dispose()}}const o=n,i=No();return o.tail=i,Lo(t)}(e)}function uu(e){return Fo(t=>{t(e)})}function lu(e,t,n,r,o){return Fo(i=>{e(na.Delay(()=>na.Bind(ha(t(n)),e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),na.Zero()})))})}function fu(e){ou(0,t=>{ga(e)})}const du=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function hu(e){return yo(e=>e.passive&&!du?{capture:e.capture,once:e.once,passive:!1}:e,e)}function pu(e){return vo(e=>e.capture?{capture:!0}:void 0,e)}const mu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,gu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,wu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function yu(e){function t(e){return e.replace(gu,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(mu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Vn(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(gu.test(n))return t(n);if(wu.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function vu(e,t){try{return t.contents=yu(e),!0}catch(e){return!1}}function _u(e,t){return 0===t.indexOf(e)?t:void 0}function bu(e,t){return pr(t,e)?t:void 0}function Cu(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=_u("/",e),null!=t?(n=t,"#"+n):(r=_u("#/",e),null!=r?(o=r,o):(i=_u("#",e),null!=i?(s=i,"#/"+vr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=_u("/",e),null!=t?(n=t,n):"/"+e}}(t)(wr("/",ti(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Su(e,t,n){1===t?history.pushState(void 0,"",Cu(e,n)):history.replaceState(void 0,"",Cu(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function xu(e,t){return function(e,t){let n,r;const o=No();let i=o,s=t;for(;!Ro(s);){let t=e(jo(s));for(;!Ro(t);)n=i,r=new Mo(jo(t),void 0),n.tail=r,i=r,t=Lo(t);s=Lo(s)}const a=i,c=No();return a.tail=c,Lo(o)}(e=>{if(gr(e))return Uo();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Vn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Uo();if(null!=_u("?",t))return Fo(t);{const e=t.split("?");if(To((e,t)=>e===t,e,null)||1!==e.length){if(To((e,t)=>e===t,e,null)||2!==e.length)return Uo();if(""===e[1]){const t=e[0];return Fo(decodeURIComponent(t))}{const t=e[0],n=e[1];return Ko([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Fo(decodeURIComponent(t))}}}},Ko((null!=_u("#",e)?vr(e,1,e.length-1):1===t&&(null!=bu("#",e)||null!=bu("#/",e))?"":e).split("/")))}const Iu=js(e=>{const t=Ys(t=>{const n=wo(e.onUrlChanged,e=>{});!function(e,t,n){t(xu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(wo(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=qs(()=>hu(r),[r]),i=qs(()=>pu(r),[r]),s=qs(()=>e=>{n(e)},[n]);Bs(Ys(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Us(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}else{const e="popstate",n=t,r=void 0,o=qs(()=>hu(r),[r]),i=qs(()=>pu(r),[r]),s=qs(()=>e=>{n(e)},[n]);Bs(Ys(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Us(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=qs(()=>hu(void 0),[void 0]),i=qs(()=>pu(void 0),[void 0]),s=qs(()=>e=>{r(e)},[r]);Bs(Ys(()=>(null==o?window.addEventListener(n,s):window.addEventListener(n,s,o),Us(()=>{null==i?window.removeEventListener(n,s):window.removeEventListener(n,s,i)}))));const a=e.application;return null==a?null:a},void 0,ku,Eu);var Eu,ku;function Tu(e){try{const t=new URLSearchParams(e);return Ii(vi(()=>Ni(e=>[e[0],e[1]],t.entries())))}catch(e){return}}const Ou=document.getElementById("workflows-app"),Au=Ou.getAttribute("data-identity-url"),Mu=Ou.getAttribute("data-backend-url"),Pu=Ko(["workflows","app"]),Nu=Ko(["workflows","embed","v1.0","app"]);class Du extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone","Unknown"]}}function Ru(e){switch(e.tag){case 0:return Cu(Nu,2);case 1:return Cu(Pu,2);default:return Cu(Nu,2)}}class zu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Autodev","Test","Prod","Sandbox"]}}const ju=(()=>{const e=Ko(Nc.create(Mu).host.split("."));let t;switch(t=Go(e)?4:"autodev-partner"===Wo(e)?0:"test-partner"===Wo(e)?1:"partner"===Wo(e)?2:"sandbox-partner"===Wo(e)?3:4,t){case 0:return new ra(0,new zu(0));case 1:return new ra(0,new zu(1));case 2:return new ra(0,new zu(2));case 3:return new ra(0,new zu(3));case 4:return new ra(1,"Invalid environment")}})();function Lu(e,t,n){return 1===n.tag?t(n.fields[0]):e(n.fields[0])}function Uu(e,t){return null==t?new ra(1,e):new ra(0,po(t))}function Bu(e,t){return 1===t.tag?e:t.fields[0]}class Fu{constructor(){}}function Gu(e,t){return new ra(0,t)}function Hu(e,t){return t}function Wu(e,t,n){return oa(n,t)}new Fu;class Vu{constructor(){}}function $u(e,t){return na.Return(Gu(0,t))}function qu(e,t){return na.Delay(t)}new Vu;class Yu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Xu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Ju extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Zu extends er{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 Ku extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qu extends er{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}function el(e){return new Xu(0,"Content-Type",e)}const tl=new Zu("",new Yu(0),Uo(),!1,void 0,void 0,new Ju(0));new Qu(0,"","",wc(),new Ku(0,""));function nl(e,t){return mr(t)?[t]:function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=(t=t||[]).filter(e=>e).map(Vn)).length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let c=!0,u=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(u).trim():e.substring(u);(!o||t.length>0)&&s.push(t),c=!1}else{const r=i?e.substring(u,t.index).trim():e.substring(u,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),c=!1):s.push(r)),u=a.lastIndex}}while(c);return s}(t,[e],null,0)}function rl(e){return new Zu(e,tl.method,tl.headers,tl.withCredentials,tl.overridenMimeType,tl.overridenResponseType,tl.content)}function ol(e,t){return new Zu(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function il(e,t){return new Zu(t.url,t.method,ei(t.headers,Fo(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function sl(e,t){return new Zu(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function al(e){return pa(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 Ku(0,n.responseText):new Ku("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Qu(o,e,i,function(e){const t=bo();return uc(t,tc(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=po(o);r.push(e)}}return"function"==typeof n?Io(e=>e,r,n):r}(e=>{const t=Ko(nl(":",e));return Go(t)?void 0:[Wo(t).toLocaleLowerCase(),wr(":",$o(t)).trim()]},nl("\r\n",n.getAllResponseHeaders()))),s)))};const r=nn(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(ho(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(ho(s[1].fields[0])):n.send(ho(void 0))})}const cl=0,ul=1,ll=2,fl=3,dl=4;function hl(e,t){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase())}function pl(e,t=cl){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case ul:return e.charAt(0).toLowerCase()+e.slice(1);case ll:return hl(e,"_");case fl:return hl(e,"_").toUpperCase();case dl:return hl(e,"-");case cl:default:return e}}(e,t),n[e]=r}for(let t of e){let e=cl;if(null==t&&o(t),t instanceof Yn){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function ml(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function gl(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class wl extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class yl extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class vl{constructor(){this.cache=new Map([])}}function _l(){return new vl}_l(),_l();function bl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Cl(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Wn(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=$n(e,s),c=$n.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(bl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return bl(t)}}function Sl(e,t){xl(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function xl(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.")}}function Il(e,t){try{return t.contents=function(e){const[t,n]=jn(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Sl(t.getTime(),r)}(e),!0}catch(e){return!1}}Symbol.toStringTag,Symbol.iterator;class El{constructor(e){this.k=e}}function kl(e){return new El(e)}function Tl(e){return e.k}class Ol extends El{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Al(e,t,n,r){return new Ol(e,t,n,r)}function Ml(e){return e.left}function Pl(e){return e.right}function Nl(e){return e.h}function Dl(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Ol){t=Ml(i),n=e(Pl(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Rl(e,t,n){let r;if(null!=e){const t=e;r=t instanceof Ol?Nl(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof Ol?Nl(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?kl(t):Al(t,e,n,i+1)}function zl(e,t,n){let r,o,i,s,a;if(null!=e){const t=e;a=t instanceof Ol?Nl(t):1}else a=0;let c;if(null!=n){const e=n;c=e instanceof Ol?Nl(e):1}else c=0;if(c>a+2){const i=po(n);if(i instanceof Ol){if(r=Ml(i),(null!=r?(o=r,o instanceof Ol?Nl(o):1):0)>a+1){const n=po(Ml(i));if(n instanceof Ol)return Rl(Rl(e,t,Ml(n)),Tl(n),Rl(Pl(n),Tl(i),Pl(i)));throw new Error("internal error: Set.rebalance")}return Rl(Rl(e,t,Ml(i)),Tl(i),Pl(i))}throw new Error("internal error: Set.rebalance")}if(a>c+2){const r=po(e);if(r instanceof Ol){if(i=Pl(r),(null!=i?(s=i,s instanceof Ol?Nl(s):1):0)>c+1){const e=po(Pl(r));if(e instanceof Ol)return Rl(Rl(Ml(r),Tl(r),Ml(e)),Tl(e),Rl(Pl(e),t,n));throw new Error("internal error: Set.rebalance")}return Rl(Ml(r),Tl(r),Rl(Pl(r),t,n))}throw new Error("internal error: Set.rebalance")}return Rl(e,t,n)}function jl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Tl(r));if(r instanceof Ol)return o<0?zl(jl(e,t,Ml(r)),Tl(r),Pl(r)):0===o?n:zl(Ml(r),Tl(r),jl(e,t,Pl(r)));{const o=0|e.Compare(t,Tl(r));return o<0?Al(t,void 0,n,2):0===o?n:Al(t,n,void 0,2)}}return kl(t)}function Ll(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Tl(s));if(s instanceof Ol){if(a<0){e=r,t=o,n=Ml(s);continue e}if(0===a)return!0;e=r,t=o,n=Pl(s);continue e}return 0===a}return!1}}function Ul(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ol){Ul(n,Ml(o)),n(Tl(o)),e=n,t=Pl(o);continue e}n(Tl(o))}break}}class Bl extends er{constructor(e,t){super(),this.stack=e,this.started=t}}function Fl(e){e:for(;;){const t=e;if(Go(t))return Uo();{const n=Wo(t),r=$o(t);if(null!=n){const o=n;if(o instanceof Ol){e=Zo([Ml(o),kl(Tl(o)),Pl(o)],r);continue e}return t}e=r;continue e}}}function Gl(e){return new Bl(Fl(Fo(e)),!1)}function Hl(e){if(e.started){const t=e.stack;if(Go(t))return function(){throw new Error("Enumeration already started")}();if(null!=Wo(t)){return Tl(Wo(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Wl(e){let t=Gl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Hl(t),"System.Collections.IEnumerator.get_Current":()=>Hl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Go(t))return!1;if(null!=Wo(t)){if(Wo(t)instanceof Ol)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Fl($o(t)),!Go(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Go(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Gl(e)},Dispose(){}}}function Vl(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(Go(s[0]))return Go(s[1])?0:-1;if(Go(s[1]))return 1;if(null!=Wo(s[1]))if(null!=Wo(s[0])){const a=Wo(s[0]),c=Wo(s[1]);if(a instanceof Ol)if(null==Ml(a)){if(!(c instanceof Ol)){const o=0|r.Compare(Tl(a),Tl(c));if(0!==o)return 0|o;e=r,t=Bo(Pl(a),$o(s[0])),n=Bo(void 0,$o(s[1]));continue e}if(null==Ml(c)){const o=0|r.Compare(Tl(a),Tl(c));if(0!==o)return 0|o;e=r,t=Bo(Pl(a),$o(s[0])),n=Bo(Pl(c),$o(s[1]));continue e}{const s=[o,i];let a,c,u,l,f;switch(Go(s[0])?Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2:null!=Wo(s[0])?(a=0,c=$o(s[0]),u=Wo(s[0])):Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2,a){case 0:if(u instanceof Ol){e=r,t=Zo([Ml(u),Al(Tl(u),void 0,Pl(u),0)],c),n=i;continue e}e=r,t=Zo([void 0,kl(Tl(u))],c),n=i;continue e;case 1:if(f instanceof Ol){e=r,t=o,n=Zo([Ml(f),Al(Tl(f),void 0,Pl(f),0)],l);continue e}e=r,t=o,n=Zo([void 0,kl(Tl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,c,u,l,f;switch(Go(s[0])?Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2:null!=Wo(s[0])?(a=0,c=$o(s[0]),u=Wo(s[0])):Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2,a){case 0:if(u instanceof Ol){e=r,t=Zo([Ml(u),Al(Tl(u),void 0,Pl(u),0)],c),n=i;continue e}e=r,t=Zo([void 0,kl(Tl(u))],c),n=i;continue e;case 1:if(f instanceof Ol){e=r,t=o,n=Zo([Ml(f),Al(Tl(f),void 0,Pl(f),0)],l);continue e}e=r,t=o,n=Zo([void 0,kl(Tl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof Ol)){const o=0|r.Compare(Tl(a),Tl(c));if(0!==o)return 0|o;e=r,t=$o(s[0]),n=$o(s[1]);continue e}if(null==Ml(c)){const o=0|r.Compare(Tl(a),Tl(c));if(0!==o)return 0|o;e=r,t=Bo(void 0,$o(s[0])),n=Bo(Pl(c),$o(s[1]));continue e}{const s=[o,i];let a,c,u,l,f;switch(Go(s[0])?Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2:null!=Wo(s[0])?(a=0,c=$o(s[0]),u=Wo(s[0])):Go(s[1])?a=2:null!=Wo(s[1])?(a=1,l=$o(s[1]),f=Wo(s[1])):a=2,a){case 0:if(u instanceof Ol){e=r,t=Zo([Ml(u),Al(Tl(u),void 0,Pl(u),0)],c),n=i;continue e}e=r,t=Zo([void 0,kl(Tl(u))],c),n=i;continue e;case 1:if(f instanceof Ol){e=r,t=o,n=Zo([Ml(f),Al(Tl(f),void 0,Pl(f),0)],l);continue e}e=r,t=o,n=Zo([void 0,kl(Tl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Wo(s[1]);const a=[o,i];let c,u,l,f,d;switch(Go(a[0])?Go(a[1])?c=2:null!=Wo(a[1])?(c=1,f=$o(a[1]),d=Wo(a[1])):c=2:null!=Wo(a[0])?(c=0,u=$o(a[0]),l=Wo(a[0])):Go(a[1])?c=2:null!=Wo(a[1])?(c=1,f=$o(a[1]),d=Wo(a[1])):c=2,c){case 0:if(l instanceof Ol){e=r,t=Zo([Ml(l),Al(Tl(l),void 0,Pl(l),0)],u),n=i;continue e}e=r,t=Zo([void 0,kl(Tl(l))],u),n=i;continue e;case 1:if(d instanceof Ol){e=r,t=o,n=Zo([Ml(d),Al(Tl(d),void 0,Pl(d),0)],f);continue e}e=r,t=o,n=Zo([void 0,kl(Tl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Wo(s[0])){e=r,t=$o(s[0]),n=$o(s[1]);continue e}{Wo(s[0]);const a=[o,i];let c,u,l,f,d;switch(Go(a[0])?Go(a[1])?c=2:null!=Wo(a[1])?(c=1,f=$o(a[1]),d=Wo(a[1])):c=2:null!=Wo(a[0])?(c=0,u=$o(a[0]),l=Wo(a[0])):Go(a[1])?c=2:null!=Wo(a[1])?(c=1,f=$o(a[1]),d=Wo(a[1])):c=2,c){case 0:if(l instanceof Ol){e=r,t=Zo([Ml(l),Al(Tl(l),void 0,Pl(l),0)],u),n=i;continue e}e=r,t=Zo([void 0,kl(Tl(l))],u),n=i;continue e;case 1:if(d instanceof Ol){e=r,t=o,n=Zo([Ml(d),Al(Tl(d),void 0,Pl(d),0)],f);continue e}e=r,t=o,n=Zo([void 0,kl(Tl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Fo(t),Fo(n))}function $l(e,t,n){let r=n;Ul(e=>{t[r]=e,r=r+1|0},e)}function ql(e,t){return ko((t,n)=>jl(e,n,t),void 0,t)}function Yl(e,t){if(Zt(t))return ql(e,t);if(t instanceof Mo)return function(e,t){return Yo((t,n)=>jl(e,n,t),void 0,t)}(e,t);{const n=nn(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=jl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Xl{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|(t=0|hn(e),(n<<1)+t+631)}}finally{r.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Xl&&0===Vl(Zl(this),Kl(this),Kl(e))}toString(){return"set ["+wr("; ",Ni(e=>qn(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Vl(Zl(this),Kl(this),Kl(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 Ll(Zl(this),e,Kl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){$l(Kl(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ql(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ql(this)}GetEnumerator(){return Wl(Kl(this))}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Wl(Kl(this))}get size(){return 0|Ql(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 ef(this,e)}keys(){return Ni(e=>e,this)}values(){return Ni(e=>e,this)}entries(){return Ni(e=>[e,e],this)}forEach(e,t){const n=this;Mi(t=>{e(t,t,n)},n)}}function Jl(e,t){return new Xl(e,t)}function Zl(e){return e.comparer}function Kl(e){return e.tree}function Ql(e){return Dl(Kl(e))}function ef(e,t){return Ll(Zl(e),t,Kl(e))}function tf(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 nf(e,t){const n=2===t.tag?tf(t.fields[0],t.fields[1],!0):1===t.tag?tf(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?tf(t.fields[0],t.fields[1],!0):4===t.tag?tf(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"+wr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:tf(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function rf(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ra(1,nf(e[0],e[1]))}return new ra(0,r.fields[0])}function of(e,t){try{return rf("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ra(1,"Given an invalid JSON: "+e.message);throw e}}const sf=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new ra(0,(e+128&255)-128):new ra(1,[n,new wl(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new ra(1,[n,new wl(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Be(r,511,!1,8,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new wl(0,"a sbyte",r)])}return new ra(1,[n,new wl(0,"a sbyte",r)])},af=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new ra(0,255&e):new ra(1,[n,new wl(1,"a byte",e,"Value was either too large or too small for a byte")]):new ra(1,[n,new wl(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Be(r,511,!0,8,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new wl(0,"a byte",r)])}return new ra(1,[n,new wl(0,"a byte",r)])},cf=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 ra(0,(e+32768&65535)-32768):new ra(1,[r,new wl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new wl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Be(o,511,!1,16,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new wl(0,n,o)])}return new ra(1,[r,new wl(0,n,o)])},uf=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 ra(0,65535&e):new ra(1,[r,new wl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new wl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Be(o,511,!0,16,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new wl(0,n,o)])}return new ra(1,[r,new wl(0,n,o)])},lf=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new ra(0,~~e):new ra(1,[n,new wl(1,"an int",e,"Value was either too large or too small for an int")]):new ra(1,[n,new wl(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Be(r,511,!1,32,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new wl(0,"an int",r)])}return new ra(1,[n,new wl(0,"an int",r)])},ff=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 ra(0,e>>>0):new ra(1,[r,new wl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new wl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Be(o,511,!0,32,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new wl(0,n,o)])}return new ra(1,[r,new wl(0,n,o)])};function df(e,t){if("string"==typeof t){let r,o=zn(-621355968e5,0);return r=[Ln(t,new tr(()=>o,e=>{o=e})),o],r[0]?new ra(0,1===(n=r[1]).kind?n:zn(n.getTime(),1)):new ra(1,[e,new wl(0,"a datetime",t)])}return new ra(1,[e,new wl(0,"a datetime",t)]);var n}function hf(e,t){if("string"==typeof t){let n,r=Sl(-621355968e5,0);return n=[Il(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new wl(0,"a datetimeoffset",t)])}return new ra(1,[e,new wl(0,"a datetime",t)])}function pf(e,t,n,r){let o;const i=n+".["+cn(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ra(1,[i,new wl(5,"a longer array. Need index `"+cn(e)+"` but there are only `"+(o=n.length,cn(o)+"` entries"),r)])}return new ra(1,[i,new wl(0,"an array",r)])}function mf(e,t,n){if(Array.isArray(n)){let r=-1;return oa(e=>Xo(e),ko((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+cn(r)+"]",o);return 0===i.tag?new ra(0,Bo(i.fields[0],n.fields[0])):new ra(1,i.fields[0])}return n},new ra(0,Uo()),n))}return new ra(1,[t,new wl(0,"a list",n)])}function gf(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ko((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+cn(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ra(0,i)):new ra(1,s.fields[0])}return n},new ra(0,xo(new Array(o.length),0,o.length,null)),o)}return new ra(1,[t,new wl(0,"an array",n)])}function wf(e,t,n){return new ra(0,e)}function yf(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ra(1,o.fields[0])}function vf(e,t,n,r){const o=t(n,r);return 1===o.tag?new ra(1,o.fields[0]):new ra(0,e(o.fields[0]))}function _f(e,t){let n;const r=e;return n=e=>t=>pf(0,r,e,t),e=>r=>yf(In(3,e=>{let n;const r=t;return n=e=>t=>pf(1,r,e,t),t=>r=>yf((t,n,r)=>wf([e,t]),In(2,n),t,r)}),In(2,n),e,r)}function bf(e){return lc(e)}function Cf(e){return Jl(t={Compare:(e,t)=>bn(e,t)},Yl(t,e));var t}function Sf(e,t,n,r){let o,i;return t.length!==r.length?new ra(1,[n,new wl(6,(o=0|r.length,i=0|t.length,lr(ar("Expected %i %s but got %i"))(i)(e)(o)))]):Ao(In(3,On(e=>t=>r=>0===r.tag?oa(e=>Bo(e,r.fields[0]),t(n,e)):r,[0,[0,2],0])),r,t,new ra(0,Uo()))}function xf(e,t,n,r,o,i){const s=(a=e=>$r(e)===r,ro(n).find(a));var a;if(null!=s){const n=s;return 0===i.length?new ra(0,lo(n,[])):oa(e=>lo(n,qo(e)),Sf("union fields",Io(n=>Ef(e,t,!1,n[1]),uo(n)),o,i))}return new ra(1,[o,new wl(6,"Cannot find case "+r+" in "+qr(n))])}function If(e,t,n,r){const o=new tr(null),i=pc(qr(r),o,e);let s;if(ao(r)){const e=Io(e=>[Cl(t,$r(e)),Ef(i,t,!1,e[1])],oo(r));s=t=>n=>oa(e=>function(e,t){const n=oo(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,qo(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ra(1,[t,new wl(0,"an object",n)]):Oo(In(2,e=>{const r=e[0];return o=>0===o.tag?oa(e=>Bo(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),e,new ra(0,Uo()))}(e,t,n))}else if(so(r))s=e=>n=>{if("string"==typeof n)return xf(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return xf(i,t,r,o[0],e,o.slice(1,o.length))}return new ra(1,[e,new wl(0,"a string or array",n)])};else{if(!n){let e;const t=qr(r);throw e=lr(ar("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new ra(1,[e,new wl(2,"an extra coder for "+qr(r),t)])}return o.contents=s,s}function Ef(e,t,n,r){let o;const i=qr(r),s=mc(i,e);if(null==s){if(Yr(r)){const n=Ef(e,t,!1,Xr(r));return e=>t=>gf(In(2,n),e,t)}if(Zr(r)){const e=qr(Qr(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=sf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=af(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=cf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,(a=(a=e)<0&&null!=c&&10!==c?65535+a+1:a).toString(c))):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}var a,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=uf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=lf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,cn(e))):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ff(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Oi(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new wl(1,qr(n),i,"Unkown value provided for the enum")])}};{const e=qr(r),t=fr(ar("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(Jr(r)){if(co(r)){const n=Io(n=>Ef(e,t,!1,n),io(r));return e=>t=>Array.isArray(t)?oa(e=>qo(e),Sf("tuple elements",n,e,t)):new ra(1,[e,new wl(0,"an array",t)])}{const i=qr(Kr(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=Ef(e,t,!0,Nr(r)[0]);return e=>t=>{return r=In(2,n),o=e,null==(i=t)?new ra(0,void 0):oa(e=>ho(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=Ef(e,t,!1,Nr(r)[0]);return e=>t=>mf(In(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=Ef(e,t,!1,Nr(r)[0]),i=Ef(e,t,!1,Nr(r)[1]);let s;const a=Ko([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ra(1,[n,new wl(0,"an object",r)]):Ai((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 ra(0,Bo([s.fields[0],e.fields[0]],o.fields[0])):new ra(1,e.fields[0])}return new ra(1,s.fields[0])}return o},new ra(0,Uo()),Object.keys(r))}(In(2,n),In(2,i),e,t),(o=_f(In(2,n),In(2,i)),e=>t=>mf(In(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Go(o))return new ra(1,[n,new wl(7,i)]);{const s=rf(n,In(2,Wo(o)),r);if(1===s.tag){e=$o(o),t=ei(i,Fo(s.fields[0]));continue e}return new ra(0,s.fields[0])}}})(a,Uo());var n,r},e=>t=>vf(e=>bf(e),In(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=Ef(e,t,!1,Nr(r)[0]);return e=>t=>{const r=gf(In(2,n),e,t);return 0===r.tag?new ra(0,Cf(r.fields[0])):new ra(1,r.fields[0])}}return If(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ra(0,r):new ra(1,[n,new wl(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new ra(0,void 0):new ra(1,[n,new wl(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new ra(0,r):new ra(1,[n,new wl(0,"a string",r)]);var n,r}:"System.SByte"===i?sf:"System.Byte"===i?af:"System.Int16"===i?cf:"System.UInt16"===i?uf:"System.Int32"===i?lf:"System.UInt32"===i?ff:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ra(0,r):new ra(1,[n,new wl(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ra(0,r):new ra(1,[n,new wl(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>df(e,t):"System.DateTimeOffset"===i?e=>t=>hf(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[kc(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new wl(0,"a timespan",t)])}return new ra(1,[e,new wl(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=[vu(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new wl(0,"a guid",t)])}return new ra(1,[e,new wl(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new ra(0,e):If(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function kf(e){return null!=e?gc((e,t)=>new tr(t[1]),e.Coders):wc()}function Tf(e,t,n){const r=wo(e,new yl(0)),o=po(n).ResolveType();return Ef(kf(t),r,!1,o)}function Of(e,t,n,r){return of(In(2,Tf(t,n,r)),e)}function Af(e){return qu(0,()=>{const t=na.Bind(al(e),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(t,t=>{let n;const r=t;return 1===r.tag?na.Return(new ra(1,r.fields[0])):na.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?na.Bind(al(e),e=>na.Return(new ra(0,e))):$u(0,n)))}))})}function Mf(e){return qu(0,()=>{const t=Af(ol(new Yu(1),rl(function(e){const t=Uc(e);return lr(ar("%s/workflows/public-backend/invites/%s/activate"))(Mu)(t)}(e))));return na.Delay(()=>na.Bind(t,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>function(e){switch(e.tag){case 1:return new Ea(1);case 2:return new Ea(2);case 3:return new Ea(3);case 4:return new Ea(4,Ma(e.fields[0]));default:return new Ea(0,Ma(e.fields[0]))}}(e),Of(t.responseText,new yl(1),void 0,{ResolveType:Na}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Pf(e,t){return qu(0,()=>{const n=Af(ol(new Yu(1),rl(function(e,t){const n=encodeURIComponent(t),r=Uc(e);return lr(ar("%s/workflows/public-backend/invites/%s/confirm?mfa=%s"))(Mu)(r)(n)}(e,t))));return na.Delay(()=>na.Bind(n,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>ja(e),Of(t.responseText,new yl(1),void 0,{ResolveType:za}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Nf(e){return Mf(e)}function Df(e,t){let n,r,o,i,s,a,c;switch(e.tag){case 1:{const n=e.fields[0];let r,o;switch(3===n.tag?r=1:0===n.tag||1===n.tag?r=2:0===n.fields[0].tag?(r=0,o=n.fields[0].fields[0]):r=1,r){case 0:{let e,n;switch(o.tag){case 4:e=0,n=o.fields[0];break;case 1:e=1;break;case 2:e=2;break;case 3:e=3;break;default:e=0,n=o.fields[0]}switch(e){case 0:return[new Kc(t.InviteToken,n.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Jc(1),n.CssOverrides),su()];case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Jc(2,"We couldn't find this invite. Reach out to your employer to get another one."),t.CssOverrides),su()];case 2:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Jc(2,"Your invite has expired. Reach out to your employer to get another one."),t.CssOverrides),su()];case 3:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Jc(2,"Your invite has been locked. Try refreshing this page in 30 minutes."),t.CssOverrides),su()]}}case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Jc(2,"Oops, looks like something went wrong. Try refreshing this page."),t.CssOverrides),su()];case 2:return[t,su()]}}case 2:{const a=e.fields[0];let c,u;switch(3===a.tag?c=1:0===a.tag||1===a.tag?c=2:0===a.fields[0].tag?(c=0,u=a.fields[0].fields[0]):c=1,c){case 0:switch(u.tag){case 2:return[new Kc(t.InviteToken,t.MaskedEmail,(n=t.MfaCodeForm,{Error:"That code has expired. You should get another one soon.",Input:n.Input,IsDirty:n.IsDirty,IsTouched:n.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),uu(new Zc(0))];case 1:return[new Kc(t.InviteToken,t.MaskedEmail,(r=t.MfaCodeForm,{Error:"Code doesn't match.",Input:r.Input,IsDirty:r.IsDirty,IsTouched:r.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];case 4:return[new Kc(t.InviteToken,t.MaskedEmail,(o=t.MfaCodeForm,{Error:"Looks like the code hasn't been issued. Reach out to your employer.",Input:o.Input,IsDirty:o.IsDirty,IsTouched:o.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];case 3:return[new Kc(t.InviteToken,t.MaskedEmail,(i=t.MfaCodeForm,{Error:"Invite has been locked. Check back in 30 minutes.",Input:i.Input,IsDirty:i.IsDirty,IsTouched:i.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];default:return[t,(s=Ru(new Du(1)),Fo(e=>{Su(Fo(s+function(e){const t=wr("&",ti(e=>wr("=",[encodeURIComponent(e[0]),encodeURIComponent(e[1])]),e));return""===t?"":"?"+t}(Fo(["code",u.fields[0].AuthCode]))),1,2)}))]}case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!1,t.CanRetry,new Jc(2,"Oops, looks like something went wrong. Please try again."),t.CssOverrides),su()];case 2:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!0,t.CanRetry,t.Ui,t.CssOverrides),su()]}}case 3:{const n=e.fields[0];return[(a=Rc(n),1===a.tag?new Kc(t.InviteToken,t.MaskedEmail,{Error:"Code should contain exactly 6 digits.",Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides):new Kc(t.InviteToken,t.MaskedEmail,{Error:void 0,Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides)),su()]}case 4:return[new Kc(t.InviteToken,t.MaskedEmail,(c=t.MfaCodeForm,{Error:c.Error,Input:c.Input,IsDirty:c.IsDirty,IsTouched:!0}),t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides),su()];default:return[t,uu(new Zc(1,_c(Nf(t.InviteToken),[])))]}}function Rf(e,t){return na.Delay(()=>na.Bind(ma(e),()=>na.ReturnFrom(t)))}class zf{constructor(e,t){const n=new tr(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const r=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Hf(n.contents,e[0],e[1])}}finally{r.Dispose()}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return nn(this)}GetEnumerator(){return nn(_i(this.hashMap.values()))}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Hf(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){Uf(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=Lf(this,e[0]);let n;switch(n=null!=t&&wn(t[1],e[1])?0:1,n){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Pi((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Bf(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=this,n=Lf(t,e[0]);return null!=n&&(wn(n[1],e[1])&&Vf(t,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,t){Hf(this,e,t)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return Wf(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return Ff(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,t){Gf(this,e,t)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return xi(vi(()=>Ni(e=>e[0],e)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return Vf(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue23A0B95A"(e,t){const n=Lf(this,e);if(null!=n){const e=n;return t.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return xi(vi(()=>Ni(e=>e[1],e)))}get size(){return 0|Bf(this)}clear(){Uf(this)}delete(e){return Vf(this,e)}entries(){return Ni(e=>[e[0],e[1]],this)}get(e){return Ff(this,e)}has(e){return Wf(this,e)}keys(){return Ni(e=>e[0],this)}set(e,t){return Gf(this,e,t),this}values(){return Ni(e=>e[1],this)}forEach(e,t){const n=this;Mi(t=>{e(t[1],t[0],n)},n)}}function jf(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[ml(e.hashMap,n,new tr(()=>o,e=>{o=e})),o],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n[0]))]:[!1,n,-1]}function Lf(e,t){const n=jf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return gl(e.hashMap,n[1])[n[2]];case 1:return}}function Uf(e){e.hashMap.clear()}function Bf(e){let t=0,n=nn(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 Ff(e,t){const n=Lf(e,t);if(null!=n)return n[1];throw new Error("The item was not found in collection")}function Gf(e,t,n){const r=jf(e,t);let o;switch(o=r[0]&&r[2]>-1?0:1,o){case 0:gl(e.hashMap,r[1])[r[2]]=[t,n];break;case 1:if(r[0]){gl(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function Hf(e,t,n){const r=jf(e,t);let o;switch(o=r[0]&&r[2]>-1?0:1,o){case 0:{const e=hr("An item with the same key has already been added. Key: {0}",t);throw new Error(e)}case 1:if(r[0]){gl(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function Wf(e,t){const n=jf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Vf(e,t){const n=jf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return gl(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class $f extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProfileId"]}}function qf(e){return new $f(0,e)}function Yf(e){return e.fields[0]}class Xf extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessStepId"]}}class Jf extends er{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}const Zf=new Jf(new Xf(0,"personal-details"),"Personal Details","apollo-personal-details-app"),Kf=new Jf(new Xf(0,"emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),Qf=new Jf(new Xf(0,"bank"),"Bank","bank-component"),ed=new Jf(new Xf(0,"tax"),"Tax","tax-component"),td=new Jf(new Xf(0,"super"),"Super","super-selection-app"),nd=new Jf(new Xf(0,"pay-enrolment"),"Pay Enrolment","workplace-link"),rd=Ko([Zf,Kf,Qf,ed,td,nd]);function od(e){const t=new Xf(0,e);return function(e){return ai(t=>wn(t.Id,e),rd)}(t)?new ra(0,t):new ra(1,"Invalid step Id.")}function id(e){return e.fields[0]}class sd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessConfigId"]}}class ad extends er{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}const cd=new ad(new sd(0,yu("00000000-0000-0000-0000-000000000000")),"onboarding-default",Ko([Qf,ed,td])),ud=new ad(new sd(0,yu("00000000-0000-0000-0000-000000000001")),"PEBTS",Ko([Zf,Kf,Qf,ed,td])),ld=new ad(new sd(0,yu("00000000-0000-0000-0000-000000000002")),"PS",Ko([Zf,td])),fd=new ad(new sd(0,yu("00000000-0000-0000-0001-000000000000")),"Pay Enrolment",Fo(nd)),dd=new zf([[cd.Id,cd],[ud.Id,ud],[ld.Id,ld],[fd.Id,fd]],{Equals:(e,t)=>wn(e,t),GetHashCode:e=>pn(e)});function hd(e){return e.fields[0]}class pd extends er{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class md extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class gd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessInstanceId"]}}function wd(e){return new gd(0,e)}function yd(e){return e.fields[0]}class vd extends er{constructor(e,t){super(),this.Name=e,this.Value=t}}class _d extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagName"]}}class bd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagValue"]}}function Cd(e,t){return Hu(0,()=>{return ia(e=>{return Wu(0,gr(n=t)?new ra(1,"Tag value is empty"):n.length<100?new ra(0,new bd(0,n)):new ra(1,"Tag value is too long"),t=>new vd(e,t));var n},gr(n=e)?new ra(1,"Tag name is empty"):n.length<100?new ra(0,new _d(0,n)):new ra(1,"Tag name is too long"));var n})()}class Sd extends er{constructor(e,t,n,r,o,i,s){super(),this.Id=e,this.Configuration=t,this.DateCreated=n,this.Status=r,this.Invite=o,this.Tags=i,this.Creator=s}}function xd(e,t){const n=ri(t=>0===function(...e){switch(e.length){case 2:return sr(e[0],e[1],!1);case 3:return sr(e[0],e[1],e[2]);case 4:return sr(e[0],e[1],!0===e[2]);case 5:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t.ComponentTagName,e,5),t.Configuration.Steps);return Uu(lr(cr("Invalid ComponentTagName %A%P()",[e])),n)}function Id(e){const t=e.Status;switch(t.tag){case 0:case 2:case 3:return;default:return Vo(ii(e=>!ai(t=>wn(e.Id,t[0]),t.fields[0].CompletedSteps),e.Configuration.Steps))}}function Ed(){return mo(document.getElementById("external-loading-page-container"))}function kd(){return null!=Ed()}var Td,Od=[];!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Td||(Td={}));var Ad,Md=function(e){return Object.freeze(e)},Pd=function(e,t){this.inlineSize=e,this.blockSize=t,Md(this)},Nd=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Md(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Dd=function(e){return e instanceof SVGElement&&"getBBox"in e},Rd=function(e){if(Dd(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},zd=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},jd="undefined"!=typeof window?window:{},Ld=new WeakMap,Ud=/auto|scroll/,Bd=/^tb|vertical/,Fd=/msie|trident/i.test(jd.navigator&&jd.navigator.userAgent),Gd=function(e){return parseFloat(e||"0")},Hd=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Pd((n?t:e)||0,(n?e:t)||0)},Wd=Md({devicePixelContentBoxSize:Hd(),borderBoxSize:Hd(),contentBoxSize:Hd(),contentRect:new Nd(0,0,0,0)}),Vd=function(e,t){if(void 0===t&&(t=!1),Ld.has(e)&&!t)return Ld.get(e);if(Rd(e))return Ld.set(e,Wd),Wd;var n=getComputedStyle(e),r=Dd(e)&&e.ownerSVGElement&&e.getBBox(),o=!Fd&&"border-box"===n.boxSizing,i=Bd.test(n.writingMode||""),s=!r&&Ud.test(n.overflowY||""),a=!r&&Ud.test(n.overflowX||""),c=r?0:Gd(n.paddingTop),u=r?0:Gd(n.paddingRight),l=r?0:Gd(n.paddingBottom),f=r?0:Gd(n.paddingLeft),d=r?0:Gd(n.borderTopWidth),h=r?0:Gd(n.borderRightWidth),p=r?0:Gd(n.borderBottomWidth),m=f+u,g=c+l,w=(r?0:Gd(n.borderLeftWidth))+h,y=d+p,v=a?e.offsetHeight-y-e.clientHeight:0,_=s?e.offsetWidth-w-e.clientWidth:0,b=o?m+w:0,C=o?g+y:0,S=r?r.width:Gd(n.width)-b-_,x=r?r.height:Gd(n.height)-C-v,I=S+m+_+w,E=x+g+v+y,k=Md({devicePixelContentBoxSize:Hd(Math.round(S*devicePixelRatio),Math.round(x*devicePixelRatio),i),borderBoxSize:Hd(I,E,i),contentBoxSize:Hd(S,x,i),contentRect:new Nd(f,c,S,x)});return Ld.set(e,k),k},$d=function(e,t,n){var r=Vd(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Td.DEVICE_PIXEL_CONTENT_BOX:return s;case Td.BORDER_BOX:return o;default:return i}},qd=function(e){var t=Vd(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Md([t.borderBoxSize]),this.contentBoxSize=Md([t.contentBoxSize]),this.devicePixelContentBoxSize=Md([t.devicePixelContentBoxSize])},Yd=function(e){if(Rd(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Xd=function(){var e=1/0,t=[];Od.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new qd(t.target),o=Yd(t.target);r.push(n),t.lastReportedSize=$d(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Jd=function(e){Od.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Yd(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Zd=function(){var e,t=0;for(Jd(t);Od.some((function(e){return e.activeTargets.length>0}));)t=Xd(),Jd(t);return Od.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:"ResizeObserver loop completed with undelivered notifications."}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message="ResizeObserver loop completed with undelivered notifications."),window.dispatchEvent(e)),t>0},Kd=[],Qd=function(e){if(!Ad){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Kd.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Ad=function(){n.textContent=""+(t?t--:t++)}}Kd.push(e),Ad()},eh=0,th={attributes:!0,characterData:!0,childList:!0,subtree:!0},nh=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],rh=function(e){return void 0===e&&(e=0),Date.now()+e},oh=!1,ih=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!oh){oh=!0;var n,r=rh(e);n=function(){var n=!1;try{n=Zd()}finally{if(oh=!1,e=r-rh(),!eh)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Qd((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,th)};document.body?t():jd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),nh.forEach((function(t){return jd.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),nh.forEach((function(t){return jd.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),sh=function(e){!eh&&e>0&&ih.start(),!(eh+=e)&&ih.stop()},ah=function(){function e(e,t){this.target=e,this.observedBox=t||Td.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=$d(this.target,this.observedBox,!0);return e=this.target,Dd(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ch=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},uh=new WeakMap,lh=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},fh=function(){function e(){}return e.connect=function(e,t){var n=new ch(e,t);uh.set(e,n)},e.observe=function(e,t,n){var r=uh.get(e),o=0===r.observationTargets.length;lh(r.observationTargets,t)<0&&(o&&Od.push(r),r.observationTargets.push(new ah(t,n&&n.box)),sh(1),ih.schedule())},e.unobserve=function(e,t){var n=uh.get(e),r=lh(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Od.splice(Od.indexOf(n),1),n.observationTargets.splice(r,1),sh(-1))},e.disconnect=function(e){var t=this,n=uh.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),dh=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");fh.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zd(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");fh.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!zd(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");fh.unobserve(this,e)},e.prototype.disconnect=function(){fh.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class hh extends er{constructor(e,t,n){super(),this.instanceId=0|e,this.name=t,this.type=n}}function ph(e){return new hh(yd(e.Id),e.Configuration.Name,hd(e.Configuration.Id))}function mh(e){kd()||window.parent.postMessage(e,"*")}function gh(){mh(function(e,t){const n={type:"contentResized",sender:"flare"};return n.height=e,n.width=t,n}(document.body.offsetHeight,-1))}function wh(e,t,n){const r=function(e,t){const n=ri(t=>wn(t.Id,e),t.Configuration.Steps);return Uu(lr(cr("Invalid ProcessStep Id %A%P()",[e])),n)}(e,t);1===r.tag||mh(function(e,t,n,r){const o={type:"stepSubmitSuccess",sender:"flare"};return o.workflow=ph(n),o.profileId=Yf(r),o.step={name:t,type:id(e)},o}(e,r.fields[0].DisplayName,t,n))}function yh(e,t){mh(function(e,t){const n={type:"workflowSubmitSuccess",sender:"flare"};return n.workflow=ph(e),n.profileId=Yf(t),n}(e,t))}function vh(e){kd()&&function(e,t){ga(na.Delay(()=>na.Bind(ma(e),()=>(t(),na.Zero()))))}(e,()=>{Mi(e=>{document.body.removeChild(e)},go(Ed())),mh(function(){const e={type:"appReady",sender:"flare"};return e}()),gh()})}function _h(e){const t=xa((n=e.inviteCode,[new Kc(n,void 0,{Error:void 0,Input:"",IsDirty:!1,IsTouched:!1},!1,!1,new Jc(0),Uo()),su()]),(e,t)=>Df(e,t),[]);var n;const r=t[0],o=t[1];Gs(bc(()=>Rf(1e3,Nf(r.InviteToken)),e=>{o(new Zc(1,e))}));const i=bc(()=>{return Rf(500,(e=r.InviteToken,t=r.MfaCodeForm.Input,Pf(e,t)));var e,t},e=>{o(new Zc(2,e))});return Gs(()=>{vh(0)}),h("div",{className:wr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray(Array.from(Ii(vi(()=>Ti(Ni(e=>h("style",{children:[e]}),r.CssOverrides),vi(()=>Si(h("div",{className:wr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:_r.Children.toArray([h("div",{className:"card-body",children:_r.Children.toArray(Array.from(Ii(vi(()=>{let e,t;return Ti((e=r.Ui,2===e.tag?Si(h("div",{className:wr(" ",["pt-4","text-center","fade-in"]),children:_r.Children.toArray([h("i",{className:wr(" ",["fad","fa-5x","fa-exclamation-circle","text-danger"])}),h("h4",{className:wr(" ",["my-4","font-weight-normal","text-danger"]),children:"This doesn't look right"}),h("p",{className:wr(" ",["mt-3","mb-5","text-muted"]),children:e.fields[0]})])})):1===e.tag?Si(h("form",{className:wr(" ",["pt-4","text-center","fade-in"]),onSubmit:e=>{e.preventDefault(),i()},children:_r.Children.toArray([h("i",{className:wr(" ",["fad","fa-5x","fa-shield-check","text-primary"])}),h("h4",{className:wr(" ",["my-4","font-weight-normal"]),children:"Authenticate Your Account"}),h("p",{className:wr(" ",["mt-3","mb-5","text-muted"]),children:_r.Children.toArray(["Protecting your account is our top priority. Check your email ",(t=wo(r.MaskedEmail,""),h("strong",{children:[t]}))," for the code that we have just sent you."])}),h("div",{className:wr(" ",["input-group","input-group-lg","has-validation"]),children:_r.Children.toArray([h("input",{"aria-describedby":wr(" ",["button-verify"]),"aria-label":"Authorization code",autoFocus:!0,className:wr(" ",ei(Fo("form-control"),r.MfaCodeForm.IsDirty&&r.MfaCodeForm.IsTouched&&null!=r.MfaCodeForm.Error?Fo("is-invalid"):Uo())),placeholder:"Enter the code here",required:!0,maxLength:6,type:"text",onChange:e=>{o(new Zc(3,e.target.value))},onBlur:e=>{o(new Zc(4))}}),h("div",{className:"input-group-append",children:_r.Children.toArray([h("button",Sn(Ii(vi(()=>Ti(Si(["className",wr(" ",["btn","btn-lg","btn-dark"])]),vi(()=>Ti(Si(["id","button-verify"]),vi(()=>Ti(Si(["type","submit"]),vi(()=>Ti(Si(["disabled",!(!r.MfaCodeForm.IsTouched||null==r.MfaCodeForm.Error)||r.IsValidationPending]),vi(()=>r.IsValidationPending?Si(["children",_r.Children.toArray([h("div",{className:wr(" ",["d-flex","justify-content-center","align-items-center","position-relative","px-3"]),children:_r.Children.toArray([h("div",{className:wr(" ",["dot-flashing"])})])})])]):Si(["children","Verify"])))))))))))))])}),h("div",{className:"invalid-feedback text-left",children:wo(r.MfaCodeForm.Error,"Incorrect validation code")})])})])})):Si(h("div",{className:wr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("div",{className:wr(" ",["d-flex","justify-content-center","align-items-center","position-relative","py-2"]),children:_r.Children.toArray([h("div",{className:wr(" ",["dot-flashing my-4"])})])}),h("h4",{className:wr(" ",["my-4","font-weight-normal"]),children:"Verifying your invite"}),h("p",{className:wr(" ",["mt-3","mb-5","text-muted"]),children:"Hold tight. It won't be long."})])}))),vi(()=>{let e,t;return Si(h("p",{className:wr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e="Flare HR Pty Ltd © 2015-"+(t=Bn(),Hn(t)),h("small",{children:[e]}))])}))}))}))))})])})])}))))))))})}function bh(){return Gs(()=>{vh(0)}),h("div",{className:wr(" ",["text-center","mt-5"]),children:_r.Children.toArray([h("div",{className:wr(" ",["row","justify-content-center"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col-12","col-sm-6","col-md-4","col-lg-4"]),children:_r.Children.toArray([h("h4",{children:["You have been logged out of your onboarding due to inactivity"]}),h("br",{}),h("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})])})])})])})}function Ch(e){this.message=e}Ch.prototype=new Error,Ch.prototype.name="InvalidCharacterError";var Sh="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Ch("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,s="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function xh(e){this.message=e}xh.prototype=new Error,xh.prototype.name="InvalidTokenError";var Ih=function(e,t){if("string"!=typeof e)throw new xh("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Sh(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Sh(t)}}(e.split(".")[n]))}catch(e){throw new xh("Invalid token specified: "+e.message)}};function Eh(e){return t=void 0,n=e,na.Bind(n,e=>na.Return(Bu(t,e)));var t,n}function kh(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Go(i))return r;{const s=Hu(0,()=>ia(e=>Wu(0,r,t=>ei(t,Fo(e))),o(Wo(i))))();if(1===s.tag)return s;e=s,t=o,n=$o(i);continue e}}}(new ra(0,Uo()),e,t)}function Th(e){return kh(e=>e,e)}function Oh(e,t){return null!=t?oa(e=>ho(e),e(po(t))):new ra(0,void 0)}class Ah extends er{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}function Mh(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteBrandingDto",[],Ah,()=>[["CompanyName",Br(Hr)],["Logo",Br(Hr)],["Support",Br(jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SupportDto",[],Ph,()=>[["Email",Br(Hr)],["Phone",Br(Hr)]]))]])}class Ph extends er{constructor(e,t){super(),this.Email=e,this.Phone=t}}function Nh(e){return Hu(0,()=>ia(t=>ia(n=>Wu(0,Oh(e=>function(e){return Hu(0,()=>ia(t=>Wu(0,Oh(Yc,e.Phone),e=>new Wc(t,e)),Oh(qc,e.Email)))()}(e),e.Support),e=>new Fc(n,t,e)),Oh(e=>function(e){return gr(e)?new ra(1,"Invalid company name."):new ra(0,new Hc(0,e))}(e),e.CompanyName)),Oh(e=>Xc(e),e.Logo)))()}class Dh extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}class Rh extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}function zh(e){return Hu(0,()=>ia(t=>ia(n=>Wu(0,Oh(e=>Nh(e),e.Branding),r=>new Bc(t,e.DateIssued,n,r)),Oh(e=>function(e){return Hu(0,()=>Wu(0,Rc(e.Code),t=>new zc(t,e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)))()}(e),e.SecondFactor)),Lc(e.Code)))()}class jh extends er{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}function Lh(e){return Hu(0,()=>ia(t=>{const n=new Jf(t,e.DisplayName,e.ComponentTagName);return si(n,rd,{Equals:(e,t)=>wn(e,t),GetHashCode:e=>pn(e)})?new ra(0,n):new ra(1,"Step is not registered.")},od(e.Id)))()}class Uh extends er{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class Bh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}function Fh(e){switch(e.tag){case 1:{const t=function(e){return Hu(0,()=>Wu(0,Th(ti(e=>Hu(0,()=>Wu(0,od(e[0]),t=>[t,e[1]]))(),e.CompletedSteps)),t=>new pd(e.ActivatedDates,t)))()}(e.fields[0]);return 1===t.tag?new ra(1,t.fields[0]):new ra(0,new md(1,t.fields[0]))}case 2:return new ra(0,new md(2,e.fields[0]));case 3:return new ra(0,new md(3,e.fields[0]));default:return new ra(0,new md(0))}}class Gh extends er{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}function Hh(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],Gh,()=>[["Id",zr("System.Guid")],["Name",Hr],["Steps",Fr(jr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],jh,()=>[["Id",Hr],["DisplayName",Hr],["ComponentTagName",Hr]]))]])}function Wh(e){return Hu(0,()=>ia(t=>Wu(0,function(e){const t=new sd(0,e);return Oi(t,dd.keys(),{Equals:(e,t)=>wn(e,t),GetHashCode:e=>pn(e)})?new ra(0,t):new ra(1,"Invalid Type")}(e.Id),n=>new ad(n,e.Name,t)),Th(ti(e=>Lh(e),e.Steps))))()}class Vh extends er{constructor(e,t){super(),this.Name=e,this.Value=t}}function $h(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],Vh,()=>[["Name",Hr],["Value",Hr]])}function qh(e){return Cd(e.Name,e.Value)}class Yh extends er{constructor(e,t,n,r,o,i,s){super(),this.Id=0|e,this.DateCreated=t,this.Configuration=n,this.Status=r,this.Invite=o,this.Tags=i,this.Creator=s}}function Xh(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],Yh,()=>[["Id",Wr],["DateCreated",zr("System.DateTime")],["Configuration",Hh()],["Status",Lr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],Bh,()=>[[],[["Item",jr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],Uh,()=>[["ActivatedDates",Fr(zr("System.DateTime"))],["CompletedSteps",Fr(Ur(Hr,zr("System.DateTime")))]])]],[["Item",zr("System.DateTime")]],[["Item",zr("System.DateTime")]]])],["Invite",Br(jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],Rh,()=>[["Code",Hr],["DateIssued",zr("System.DateTime")],["SecondFactor",Br(jr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],Dh,()=>[["Code",Hr],["DateIssued",zr("System.DateTime")],["NumberOfAttempts",Wr],["DateOfLastAttempt",Br(zr("System.DateTime"))]]))],["Branding",Br(Mh())]]))],["Tags",Br(Fr($h()))],["Creator",Br(Hr)]])}function Jh(e){return Hu(0,()=>ia(t=>{const n=t;return ia(t=>{let r;const o=t;return ia(t=>ia(r=>Wu(0,Oh(e=>Th(ti(e=>qh(e),e)),e.Tags),o=>new Sd(wd(e.Id),n,e.DateCreated,t,r,o,yo(e=>qf(e),e.Creator))),Oh(e=>zh(e),e.Invite)),1===o.tag?(r=o.fields[0],Hu(0,()=>Wu(0,Th(ti(e=>{const t=[e[0],e[1]],r=t[0];return ai(e=>wn(e.Id,r),n.Steps)?new ra(0,[r,t[1]]):new ra(1,"Step id is not configured for this Process Instance.")},r.CompletedSteps)),e=>new md(1,new pd(r.ActivatedDates,e))))()):new ra(0,o))},Fh(e.Status))},Wh(e.Configuration)))()}class Zh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}class Kh extends er{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstance=t}}class Qh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}const ep=e=>Jh(e);class tp extends er{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstanceDto=t}}function np(){return jr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],tp,()=>[["CssOverrides",Fr(Hr)],["ProcessInstanceDto",Xh()]])}class rp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["WorkflowInstanceStepActivated"]}}function op(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],rp,()=>[[["Item",Hr]]])}class ip extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","PayEnrolment"]}}function sp(e){return wn(e,Zf)?new ra(0,new ip(0)):wn(e,Kf)?new ra(0,new ip(1)):wn(e,Qf)?new ra(0,new ip(2)):wn(e,ed)?new ra(0,new ip(3)):wn(e,td)?new ra(0,new ip(4)):wn(e,nd)?new ra(0,new ip(5)):new ra(1,"Invalid step")}function ap(e){switch(e.tag){case 1:return Kf;case 2:return Qf;case 3:return ed;case 4:return td;case 5:return nd;default:return Zf}}function cp(e){return Th(ti(e=>sp(e),function(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return Uo();default:{const n=ti(e=>e[0],t.fields[0].CompletedSteps);return ii(e=>si(e.Id,n,{Equals:(e,t)=>wn(e,t),GetHashCode:e=>pn(e)}),e.Configuration.Steps)}}}(e)))}function up(e){switch(e.tag){case 1:return"Emergency Contacts";case 2:return"Bank Details";case 3:return"Tax Details";case 4:return"Super Selection";case 5:return nd.DisplayName;default:return"Personal Details"}}function lp(e){return Th(ti(e=>sp(e),e.Configuration.Steps))}class fp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initialising","StepList","Step","CompletedAllSteps","Oops","AllDone"]}}class dp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ActivateCallback","ShowView","StepCompletionEventCallback","CompleteStep","CompleteWorkflow","SendAnalyticsEvent","AppendTrailingSlashToUrl"]}}class hp extends er{constructor(e,t,n,r,o){super(),this.ProfileId=e,this.ProcessInstanceId=t,this.ProcessInstance=n,this.CurrentView=r,this.CssOverrides=o}}function pp(e){return Array.from(e)}function mp(e){return String(e)}function gp(e){return String(e)}function wp(e){return String(e)}function yp(e){return String(e)}function vp(){return null}function _p(e,t){return JSON.stringify(t,In(2,null),ho(e))}function bp(e){return t=>{return n=yo(e,t),r=()=>null,null!=n?po(n):r();var n,r}}function Cp(e,t,n,r){const o=new tr(null),i=pc(qr(r),o,e);let s;if(ao(r)){const e=Io(e=>{const r=Cl(t,$r(e)),o=Sp(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}},oo(r));s=t=>Ai(In(2,On(e=>n=>n(t,e),[0,[0,2]])),{},e)}else{if(!so(r)){let e;const t=qr(r);throw e=lr(ar("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=ro(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],c=0|a.length;if(0===c)return $r(s);{const e=0|c,r=uo(s),o=xo(new Array(e+1),0,e+1,null);o[0]=$r(s);for(let s=1;s<=e;s++){const e=Sp(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Sp(e,t,n,r){const o=qr(r),i=mc(o,e);if(null==i){if(Yr(r)){const o=Sp(e,t,n,Xr(r));return e=>pp(Ni(o,e))}if(Zr(r)){const e=qr(Qr(r));if("System.SByte"===e)return e=>mp(e);if("System.Byte"===e)return e=>gp(e);if("System.Int16"===e)return e=>wp(e);if("System.UInt16"===e)return e=>yp(e);if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=qr(r),t=fr(ar("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(Jr(r)){if(co(r)){const o=Io(r=>Sp(e,t,n,r),io(r));return e=>pp(Di((e,t)=>o[e](t),e))}{const o=qr(Kr(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new on(()=>bp(Sp(e,t,n,Nr(r)[0])));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=Sp(e,t,n,Nr(r)[0]);return e=>pp(Ni(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Nr(r)[0],i=Sp(e,t,n,Nr(r)[1]);if("System.String"===qr(o)||"System.Guid"===qr(o))return e=>Ai((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e},{},e);{let r;const s=Sp(e,t,n,o);return r=e=>s(e),e=>pp(Ni(e=>{const t=e;return[r(t[0]),i(t[1])]},e))}}return Cp(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?vp:"System.String"===o?e=>e:"System.SByte"===o?e=>mp(e):"System.Byte"===o?e=>gp(e):"System.Int16"===o?e=>wp(e):"System.UInt16"===o?e=>yp(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=>Rn(e,"O"):"System.DateTimeOffset"===o?e=>Rn(e,"O"):"System.TimeSpan"===o?e=>Ec(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:Cp(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function xp(e){return null!=e?gc((e,t)=>new tr(t[0]),e.Coders):wc()}function Ip(e,t,n,r,o,i){return _p(e,function(e,t,n,r){const o=wo(e,new yl(0)),i=wo(n,!0),s=po(r).ResolveType();return Sp(xp(t),o,i,s)}(n,r,o,i)(t))}function Ep(e,t){return qu(0,()=>{const n=il((r=lr(ar("Bearer %s"))(e),new Xu(0,"Authorization",r)),t);var r;const o=na.Bind(al(n),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(o,e=>{let t;const r=e;return 1===r.tag?na.Return(new ra(1,r.fields[0])):na.ReturnFrom((t=r.fields[0],429===t.statusCode||t.statusCode>=500?na.Bind(al(n),e=>na.Return(new ra(0,e))):$u(0,t)))}))})}function kp(e,t,n){return qu(0,()=>{let r;const o=Ep(n,(r=sl(new Ju(1,Ip(0,Fo(function(e){return 1===e.tag?new Qh(1):new Qh(0,id(e.fields[0]))}(e)),new yl(1),void 0,void 0,{ResolveType:()=>Fr(Lr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Qh,()=>[[["Item",Hr]],[]]))})),ol(new Yu(1),rl(function(e){const t=0|yd(e);return lr(ar("%s/workflows/backend/%i"))(Mu)(t)}(t)))),il(el("application/json"),r)));return na.Delay(()=>na.Bind(o,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(ia(ep,Of(t.responseText,new yl(1),void 0,{ResolveType:Xh}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Tp(e,t){return qu(0,()=>{const n=Ep(t,ol(new Yu(1),rl(function(e){const t=0|yd(e);return lr(ar("%s/workflows/backend/process-instances/%i/activate"))(Mu)(t)}(e))));return na.Delay(()=>na.Bind(n,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>function(e){return new Kh(e.CssOverrides,(t=e=>{throw new Error(e)},1===(n=Jh(e.ProcessInstanceDto)).tag?t(n.fields[0]):n.fields[0]));var t,n}(e),Of(t.responseText,new yl(1),void 0,{ResolveType:np}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Op(e,t,n){return Eh(na.Bind(qu(0,()=>{let r;return Ep(e,(r=sl(new Ju(1,Ip(0,Fo(n),new yl(1),void 0,void 0,{ResolveType:()=>Fr(op())})),ol(new Yu(1),rl(function(e){const t=0|yd(e);return lr(ar("%s/workflows/backend/process-instances/%i/analytics-events"))(Mu)(t)}(t)))),il(el("application/json"),r)))}),e=>na.Return(oa(e=>{},e))))}function Ap(e,t,n,r){let o,i,s;switch(n.tag){case 1:{const e=n.fields[0];return[new hp(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,e,r.CssOverrides),2===e.tag?uu(new dp(5,r.ProcessInstanceId,new rp(0,id(ap(e.fields[0]).Id)))):su()]}case 5:return fu(Op(e,n.fields[0],n.fields[1])),[r,su()];case 2:return[r,(o=r.ProcessInstance,2===o.tag&&0===o.fields[0].tag?(i=oa(e=>e.Id,xd(n.fields[0].target.tagName,o.fields[0].fields[0])),1===i.tag?su():uu(new dp(3,i.fields[0],new yc(0)))):su())];case 3:{const t=n.fields[0],o=n.fields[1];switch(o.tag){case 1:return[r,su()];case 2:{const e=o.fields[0],n=Lu(e=>e,e=>new dp(1,new fp(4,e)),Hu(0,()=>ia(e=>{const t=e,n=Id(t);return ia(e=>{const r=e;return ia(e=>{const t=e;return 1===Ho(t)?Gu(0,new dp(4,new yc(0))):null==n?Gu(0,new dp(1,new fp(3,r,t))):Wu(0,sp(n),e=>new dp(1,new fp(2,e,e,r,t)))},lp(t))},cp(t))},e))());return Lu(e=>{wh(t,e,r.ProfileId)},e=>{},e),[new hp(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(n)]}case 3:return[new hp(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dp(1,new fp(4,o.fields[0].message)))];default:return[r,lu(e=>{fu(e)},e=>function(e,t,n){return kp(new Zh(0,t),e,n)}(r.ProcessInstanceId,t,e),e,e=>new dp(3,t,new yc(2,e)),e=>new dp(3,t,new yc(3,e)))]}}case 4:{const o=n.fields[0];switch(o.tag){case 1:return[r,su()];case 2:{const e=o.fields[0];return 1===e.tag?[new hp(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dp(1,new fp(4,e.fields[0])))]:(yh(e.fields[0],r.ProfileId),[new hp(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),1===t.tag?uu(new dp(1,new fp(5))):su()])}case 3:return[new hp(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dp(1,new fp(4,o.fields[0].message)))];default:{const t=r.ProcessInstance;let n,o;switch(2===t.tag&&0===t.fields[0].tag&&2===t.fields[0].fields[0].Status.tag?(n=0,o=t.fields[0].fields[0]):n=1,n){case 0:return yh(o,r.ProfileId),[r,su()];case 1:return[r,lu(e=>{fu(e)},e=>function(e,t){return kp(new Zh(1),e,t)}(r.ProcessInstanceId,e),e,e=>new dp(4,new yc(2,e)),e=>new dp(4,new yc(3,e)))]}}}}case 6:return[r,(s=window.location.pathname+"/"+window.location.search+window.location.hash,Fo(e=>{Su(Fo(s),1,2)}))];default:{const e=n.fields[0];let t;switch(e.tag){case 3:t=[r,uu(new dp(1,new fp(4,e.fields[0].message)))];break;case 0:case 1:t=[r,su()];break;default:{const n=Lu(e=>e,e=>[r,new fp(4,e)],Hu(0,()=>ia(e=>{const t=e,n=new hp(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,r.CurrentView,t.CssOverrides);return ia(e=>{const r=e;return ia(e=>{let o,i;const s=e;return Wu(0,(o=Id(t.ProcessInstance),null==o?new ra(0,new fp(3,r,s)):(i=o,Hu(0,()=>Wu(0,sp(i),e=>{const t=e,n=[Ou.clientWidth<768,Ho(s)];return 1===n[1]?(document.title=i.DisplayName,new fp(2,t,t,r,s)):new fp(n[0]?1:2,t,t,r,s)}))())),e=>[n,e])},lp(t.ProcessInstance))},cp(t.ProcessInstance))},e.fields[0]))());t=[n[0],uu(new dp(1,n[1]))]}}const o=t[0];return[new hp(o.ProfileId,o.ProcessInstanceId,vc(e=>oa(e=>e.ProcessInstance,e),e),o.CurrentView,o.CssOverrides),t[1]]}}}var Mp;function Pp(){return(Pp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Np,Dp,Rp,zp=function(e){return h("svg",Pp({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},e),Mp||(Mp=h("path",{d:"M2 8l4 4 9-10",strokeWidth:3,stroke:"#FFF",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})))};function jp(){return(jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Lp,Up,Bp=function(e){return h("svg",jp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Np||(Np=h("path",{d:"M11.208 17.438a3.635 3.635 0 100-7.271 3.635 3.635 0 000 7.27zm0-5.857a2.229 2.229 0 110 4.457 2.229 2.229 0 010-4.457zM11.208 18.78a5.455 5.455 0 00-3.952 1.653c-1.054 1.076-1.631 2.538-1.631 4.127a.705.705 0 00.703.703h9.76a.705.705 0 00.703-.703c0-1.589-.577-3.051-1.632-4.127a5.455 5.455 0 00-3.951-1.652zM7.08 23.858c.12-.92.535-1.775 1.182-2.44a4.142 4.142 0 015.892 0 4.322 4.322 0 011.181 2.44H7.08z",fill:"#000"})),Dp||(Dp=h("path",{d:"M31.36 5.273H4.64A3.517 3.517 0 001.126 8.79v17.86a3.517 3.517 0 003.516 3.515h26.718a3.517 3.517 0 003.516-3.516V8.79a3.517 3.517 0 00-3.516-3.516zm2.109 21.375a2.116 2.116 0 01-2.11 2.11H4.641a2.116 2.116 0 01-2.11-2.11V8.79a2.116 2.116 0 012.11-2.11h26.718a2.116 2.116 0 012.11 2.11v17.86z",fill:"#000"})),Rp||(Rp=h("path",{d:"M29.63 17.016h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406zM29.63 21.516h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406zM29.63 12.516h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406z",fill:"#000"})))};function Fp(){return(Fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Gp,Hp,Wp,Vp=function(e){return h("svg",Fp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Lp||(Lp=h("g",{clipPath:"url(#icon-emergency-contacts_svg__clip0)",fill:"#000"},h("path",{d:"M30.223 24.427c-.204-.15-5.051-3.656-9.3-2.538a.528.528 0 00-.272.174c-.078.095-1.718 2.102-2.065 3.967a9.392 9.392 0 01-1.224-.462c-.979-.444-2.476-1.305-4.055-2.884-.907-.907-1.66-1.825-2.238-2.73a.528.528 0 00-.89.568c.62.969 1.421 1.948 2.382 2.908 3.286 3.286 6.286 3.757 6.412 3.775a.527.527 0 00.604-.522c0-.378.106-.802.27-1.231 1.318.114 5.928.678 9.431 3.139-.465 1.981-1.643 3.71-3.38 4.893-2.258 1.54-5.028 1.871-7.6.91-3.69-1.378-7.087-3.602-10.093-6.608C5.2 24.78 2.976 21.385 1.596 17.692c-.96-2.572-.628-5.342.912-7.6C3.69 8.354 5.418 7.176 7.4 6.711c2.461 3.503 3.025 8.113 3.14 9.432-.43.164-.854.27-1.232.27a.527.527 0 00-.528.54c.002.062.024.637.388 1.594a.527.527 0 10.986-.374 6.108 6.108 0 01-.237-.76c1.876-.33 3.915-1.996 4.01-2.074a.528.528 0 00.175-.273c1.117-4.247-2.388-9.095-2.538-9.3a.527.527 0 00-.355-.21c-.676-.091-1.36-.132-2.032-.12-3.068.05-5.816 1.53-7.541 4.06C-.1 12.043-.474 15.164.608 18.06c1.433 3.835 3.738 7.358 6.85 10.47 3.115 3.115 6.638 5.42 10.472 6.852 1.09.407 2.21.608 3.321.608a9.27 9.27 0 005.242-1.636c2.53-1.725 4.011-4.473 4.062-7.541.01-.672-.03-1.356-.121-2.032a.528.528 0 00-.211-.355zM9.193 6.491c.545-.008 1.098.02 1.646.083.594.879 3.037 4.76 2.283 8.06-.347.27-.922.675-1.566 1.03-.174-1.698-.807-5.756-3.008-9.137.213-.02.428-.032.645-.036zm11.133 17.944c.356-.644.76-1.22 1.032-1.566 3.3-.754 7.18 1.69 8.059 2.282.063.55.091 1.102.083 1.646a8.672 8.672 0 01-.036.646c-3.381-2.201-7.44-2.834-9.138-3.008z"}),h("path",{d:"M26.97.009c-4.98 0-9.03 4.05-9.03 9.03 0 2.346.885 4.549 2.5 6.236-.175.716-.438 1.628-.781 2.366a1.34 1.34 0 00.109 1.333 1.347 1.347 0 001.207.593c1.116-.07 2.669-.435 3.898-1.744a9.03 9.03 0 008.912-2.86.528.528 0 00-.796-.693 7.975 7.975 0 01-8.156 2.454.528.528 0 00-.547.171c-1.02 1.227-2.399 1.558-3.376 1.619a.299.299 0 01-.27-.134.293.293 0 01-.025-.293c.429-.922.737-2.062.92-2.856a.528.528 0 00-.145-.496 7.914 7.914 0 01-2.395-5.696c0-4.398 3.577-7.975 7.975-7.975 4.397 0 7.975 3.577 7.975 7.975a7.882 7.882 0 01-.855 3.596.527.527 0 10.94.477c.644-1.27.97-2.64.97-4.073 0-4.98-4.051-9.03-9.03-9.03z"}),h("path",{d:"M31.554 6.184h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055zM31.554 8.71h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055zM31.554 11.236h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055z"}))),Up||(Up=h("defs",null,h("clipPath",{id:"icon-emergency-contacts_svg__clip0"},h("path",{fill:"#fff",d:"M0 0h36v36H0z"})))))};function $p(){return($p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qp,Yp,Xp=function(e){return h("svg",$p({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Gp||(Gp=h("path",{d:"M18.47 19.647a.562.562 0 00-.202-.007 1.343 1.343 0 01-1.188-1.33.59.59 0 00-1.18 0 2.526 2.526 0 001.857 2.431v.591a.59.59 0 001.18 0v-.555a2.521 2.521 0 00-.516-4.99 1.34 1.34 0 111.34-1.34.59.59 0 001.182 0 2.526 2.526 0 00-2.005-2.468v-.538a.59.59 0 00-1.181 0v.573a2.522 2.522 0 00.664 4.954 1.34 1.34 0 01.049 2.68z",fill:"#000"})),Hp||(Hp=h("path",{d:"M9.858 16.423a8.563 8.563 0 108.563-8.562 8.573 8.573 0 00-8.563 8.562zm8.563-7.381a7.382 7.382 0 11-7.382 7.381 7.39 7.39 0 017.382-7.381z",fill:"#000"})),Wp||(Wp=h("path",{d:"M29.895 26.442l-4.626 2.186a3.768 3.768 0 00-3.212-1.982l-4.27-.118a4.51 4.51 0 01-1.94-.5l-.435-.226a7.664 7.664 0 00-7.1.008l.028-.985a.59.59 0 00-.574-.607l-4.683-.128a.59.59 0 00-.606.574l-.283 10.275a.59.59 0 00.574.607l4.683.129h.016a.59.59 0 00.59-.575l.014-.491 1.216-.651a2.086 2.086 0 011.557-.17l7.265 2.038a7.779 7.779 0 001.635.174 7.879 7.879 0 003.29-.718.561.561 0 00.074-.04l10.533-6.813a.59.59 0 00.193-.787 2.983 2.983 0 00-3.94-1.2zM3.39 34.382l.25-9.096 3.502.097-.25 9.095-3.502-.096zm19.112-.155a6.695 6.695 0 01-4.094.457l-7.245-2.034a3.266 3.266 0 00-2.434.267l-.622.333.167-6.048a6.491 6.491 0 016.594-.351l.434.225c.76.392 1.597.608 2.452.633l4.27.117a2.59 2.59 0 012.462 2.064l-6.361-.175a.59.59 0 00-.033 1.18l7.02.194h.016a.59.59 0 00.59-.575 3.746 3.746 0 00-.057-.766l4.745-2.242.014-.006a1.804 1.804 0 012.04.285l-9.958 6.442zM19.012 6.2V.59a.59.59 0 00-1.182 0V6.2a.59.59 0 001.182 0zM23.44 6.2V3.543a.59.59 0 00-1.18 0V6.2a.59.59 0 001.18 0zM14.583 6.2V3.543a.59.59 0 00-1.181 0V6.2a.59.59 0 001.18 0z",fill:"#000"})))};function Jp(){return(Jp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Zp,Kp,Qp,em=function(e){return h("svg",Jp({viewBox:"0 0 34 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),qp||(qp=h("path",{d:"M16.9 5.158a1.92 1.92 0 00-.006-.012c-.109-.208-.363-.343-.648-.343h-.001c-.286 0-.54.135-.648.344l-.005.01-2.406 4.995c-.109.227.035.48.322.567.287.086.608-.028.717-.254l.463-.961h3.098l.457.96c.085.175.296.284.52.284.066 0 .132-.01.197-.029.287-.085.432-.339.323-.566L16.9 5.158zM15.11 8.625l1.133-2.352 1.122 2.352h-2.255zM23.533 7.596l1.871-2.1c.177-.199.117-.473-.134-.613s-.598-.092-.774.106l-1.642 1.843-1.639-1.842c-.177-.199-.523-.247-.774-.107s-.312.414-.135.612l1.868 2.1-2.191 2.46c-.177.199-.117.473.134.613.097.054.21.08.32.08a.61.61 0 00.454-.187l1.963-2.202 1.959 2.202a.61.61 0 00.455.187.66.66 0 00.319-.08c.251-.14.311-.414.135-.612l-2.189-2.46zM12.271 4.803H8.733c-.307 0-.556.197-.556.44 0 .242.25.439.556.439H9.94v4.626c0 .243.249.44.556.44.307 0 .556-.197.556-.44V5.682h1.22c.307 0 .556-.197.556-.44 0-.242-.25-.439-.556-.439zM6.648 22.468c.338 0 .478.1.733.284.3.216.712.513 1.48.513s1.18-.297 1.48-.513c.255-.183.395-.284.734-.284.338 0 .478.1.732.284.3.216.713.513 1.481.513.307 0 .556-.197.556-.44s-.249-.44-.556-.44c-.338 0-.478-.1-.733-.283-.3-.217-.712-.513-1.48-.513-.769 0-1.18.296-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.101-.732-.284-.3-.217-.712-.513-1.48-.513-.308 0-.556.197-.556.44 0 .242.248.439.555.439zM6.648 24.233c.338 0 .478.1.733.284.3.216.712.513 1.48.513s1.18-.297 1.48-.513c.255-.183.395-.284.734-.284.338 0 .478.101.732.284.3.216.713.513 1.481.513.307 0 .556-.197.556-.44 0-.242-.249-.44-.556-.44-.338 0-.478-.1-.733-.283-.3-.216-.712-.513-1.48-.513-.769 0-1.18.297-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.1-.732-.284-.3-.216-.712-.513-1.48-.513-.308 0-.556.197-.556.44 0 .242.248.44.555.44zM7.38 26.282c.301.217.713.513 1.481.513.768 0 1.18-.296 1.48-.513.255-.183.395-.284.734-.284.338 0 .478.101.732.284.3.217.713.513 1.481.513.307 0 .556-.197.556-.44 0-.242-.249-.439-.556-.439-.338 0-.478-.1-.733-.284-.3-.216-.712-.513-1.48-.513-.769 0-1.18.297-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.1-.732-.284-.3-.216-.712-.513-1.48-.513-.308 0-.556.197-.556.44s.248.44.555.44c.338 0 .478.1.733.283z",fill:"#000"})),Yp||(Yp=h("path",{d:"M33.415 10.084a.357.357 0 00-.008-.039c-.343-2.034-1.647-3.067-3.908-4.638-.03-.343-.061-.668-.094-.984-.116-1.157-1.262-2.086-2.724-2.21-1.12-.093-2.25-.171-3.359-.232-2.168-.943-4.308-1.624-6.197-1.97a.699.699 0 00-.25 0c-1.891.347-4.031 1.028-6.196 1.97-1.129.062-2.259.14-3.36.233-1.462.123-2.607 1.052-2.724 2.208-.032.319-.063.643-.094.984-2.29 1.591-3.424 2.5-3.91 4.647a.337.337 0 00-.005.029v.005a63.15 63.15 0 000 17.158c.172 1.257 1.45 2.24 3.039 2.34.366.023.732.045 1.097.065.013 0 3.521.116 1.427.116.289 0 1.676.078 1.725-.465.022-.242-.559-.395-.865-.412-.362-.02-2.933-.158-3.297-.18-1.051-.066-1.899-.716-2.02-1.548v-.003c-.159-1.438 1.85-4.039 5.12-6.628.216-.172.216-.45-.001-.622a.664.664 0 00-.786.001c-1.775 1.406-3.595 3.17-4.619 4.796a62.456 62.456 0 01.044-12.533c.805.986 1.999 1.93 2.864 2.55.206.148.421.298.635.442.065.045.132.089.2.133l.011.008a36.255 36.255 0 004.472 2.503c2.531 1.194 5.035 2.039 7.243 2.443a.7.7 0 00.25 0c2.248-.412 4.797-1.278 7.371-2.504a37.96 37.96 0 001.767-.9 33.745 33.745 0 002.807-1.696c.206-.139.413-.284.616-.43.866-.62 2.06-1.564 2.864-2.55.435 4.166.449 8.365.044 12.534-1.024-1.625-2.844-3.39-4.619-4.796a.664.664 0 00-.786 0c-.217.171-.217.45 0 .621 3.269 2.589 5.278 5.19 5.119 6.628v.006c-.123.83-.97 1.48-2.02 1.545-7.72.48-15.552.541-23.279.18-.307-.015-.57.17-.587.412-.018.243.215.45.522.465a215.472 215.472 0 0023.431-.181c1.589-.1 2.867-1.083 3.04-2.34.78-5.694.78-11.468 0-17.162zM17 .89c1.1.21 2.29.538 3.524.97a115.812 115.812 0 00-7.049 0A24.836 24.836 0 0117 .892zM1.689 10.193c.354-1.553 1.01-2.299 2.708-3.533a92.655 92.655 0 00-.267 6.705c-1.613-1.296-2.528-2.47-2.441-3.172zm28.182 3.171a91.19 91.19 0 00-.059-2.977c-.009-.243-.266-.434-.571-.427-.307.007-.549.21-.54.452.045 1.25.064 2.524.057 3.787-.136.096-.273.191-.41.284a32.633 32.633 0 01-2.713 1.64c-.555.3-1.13.594-1.713.87-2.426 1.157-4.817 1.978-6.922 2.378-2.066-.393-4.414-1.192-6.798-2.318a35.088 35.088 0 01-4.328-2.421l-.012-.008-.188-.127c-.146-.098-.29-.197-.431-.297a91.783 91.783 0 01.46-9.707c.074-.736.803-1.327 1.733-1.405a114.117 114.117 0 0119.128 0c.93.078 1.66.669 1.733 1.405a92.098 92.098 0 01.325 4.17c.014.242.276.43.58.42.306-.011.544-.216.53-.459-.035-.654-.08-1.31-.13-1.963 1.736 1.261 2.468 2.065 2.708 3.523.096.7-.82 1.878-2.44 3.18z",fill:"#000"})))};function tm(){return(tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var nm=function(e){return h("svg",tm({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Zp||(Zp=h("path",{d:"M29.707 19.027a.524.524 0 00-.524.524.666.666 0 01-1.33 0 .524.524 0 10-1.048 0c0 .945.769 1.713 1.713 1.713.945 0 1.713-.768 1.713-1.713a.524.524 0 00-.524-.523z",fill:"#000"})),Kp||(Kp=h("path",{d:"M34.625 19.113l-1.475-.472a.617.617 0 01-.398-.404 9.507 9.507 0 00-1.394-2.757c-.28-.383-.59-.75-.93-1.098a13 13 0 00.32-2.968c-.022-1.335-.29-2.118-.816-2.394-.284-.148-1.147-.6-5.82 1.539a1.7 1.7 0 00-.31.184 20.386 20.386 0 00-.961-.233l-.119-.024c.379-.827.6-1.726.641-2.654a.524.524 0 10-1.046-.046 6.087 6.087 0 01-3.989 5.45 15.196 15.196 0 00-4.217 0 6.066 6.066 0 01-2.207-1.41 6.063 6.063 0 01-1.787-4.315c0-1.63.635-3.163 1.787-4.316a6.063 6.063 0 014.316-1.787c1.63 0 3.163.634 4.315 1.787.463.463.846.992 1.138 1.571a.524.524 0 10.936-.471 7.143 7.143 0 00-1.333-1.84A7.104 7.104 0 0016.22.36c-1.91 0-3.706.744-5.057 2.094A7.104 7.104 0 009.07 7.511c0 1.91.744 3.705 2.094 5.056.39.39.814.725 1.262 1.005a14.8 14.8 0 00-.968.287.524.524 0 00.332.994 14.06 14.06 0 018.862 0 .524.524 0 10.332-.994 14.74 14.74 0 00-.969-.287 7.148 7.148 0 002.175-2.126 19.451 19.451 0 01.99.219l-.016.069c-.256 1.212-.239 2.284.05 3.187a3.792 3.792 0 001.389 1.953c.78.571 1.724.818 2.578.818.643 0 1.236-.14 1.672-.386.492-.28.905-.867 1.231-1.75a8.458 8.458 0 011.67 2.995c.162.517.565.923 1.078 1.088l1.474.472c.387.124.647.48.647.886v2.446c0 .406-.26.762-.646.886l-2.376.76a1.62 1.62 0 00-.906.737c-.934 1.613-2.401 2.947-4.362 3.967a.821.821 0 00-.43.579L25.47 34.4a.236.236 0 01-.231.191h-2.474a.235.235 0 01-.231-.191l-.422-2.227a.823.823 0 00-.936-.662 21.909 21.909 0 01-5.665.107.83.83 0 00-.908.666l-.4 2.116a.236.236 0 01-.231.191h-2.475a.236.236 0 01-.231-.193l-.733-3.805a.822.822 0 00-.422-.572C6.768 28.237 5 25.256 5 21.4c0-1.948.426-3.671 1.266-5.12.785-1.354 1.93-2.472 3.406-3.325a.524.524 0 00-.525-.907c-2.86 1.654-4.585 4.207-5.06 7.449l-.152-.014a2.61 2.61 0 00-.192-1.046c-.303-.755-.928-1.3-1.59-1.389-.522-.07-1.019.152-1.364.607-.5.66-.418 1.184-.262 1.506.264.543.942.928 2.068 1.17a2.05 2.05 0 01-.102.14c-.665.834-1.449 1.018-1.958 1.035a.55.55 0 00-.536.548v.002c0 .294.232.534.526.547.037.002.077.003.117.003.644 0 1.678-.237 2.67-1.482.157-.197.285-.404.383-.618l.285.03v-.001c-.018.284-.028.572-.028.865 0 2.181.52 4.127 1.546 5.782.945 1.525 2.3 2.775 4.025 3.714l.713 3.7a1.284 1.284 0 001.26 1.044h2.475c.616 0 1.146-.44 1.26-1.044l.362-1.913a23.016 23.016 0 005.528-.104l.382 2.017a1.284 1.284 0 001.26 1.044h2.475c.616 0 1.146-.439 1.26-1.044l.742-3.923c2.093-1.107 3.67-2.561 4.69-4.323a.572.572 0 01.318-.262l2.376-.761A1.973 1.973 0 0036 23.442v-2.445c0-.863-.553-1.62-1.375-1.884zm-5.004-6.227c-.201 1.725-.742 3.2-1.286 3.508-.618.35-2.044.417-3.115-.366-1.072-.784-1.429-2.194-1.032-4.078a.632.632 0 01.36-.438c2.623-1.2 4.135-1.594 4.697-1.594.084 0 .147.01.19.026.168.18.39 1.202.186 2.942zm-28.15 5.817c-.054-.112.074-.308.155-.415.129-.17.247-.205.336-.205a.39.39 0 01.053.004c.241.032.579.297.757.741.043.105.097.278.11.495-.725-.15-1.289-.367-1.411-.62z",fill:"#000"})),Qp||(Qp=h("path",{d:"M16.729 6.91V5.035c.646.046.887.342 1.108.342.277 0 .407-.35.407-.526 0-.453-.887-.647-1.515-.665v-.25c0-.11-.139-.212-.277-.212-.157 0-.268.101-.268.212v.268c-.878.092-1.755.554-1.755 1.718 0 1.182.923 1.515 1.755 1.81v2.17c-.942-.073-1.192-.72-1.497-.72-.23 0-.424.305-.424.527 0 .452.776 1.071 1.92 1.09v.286c0 .11.112.212.269.212.138 0 .277-.101.277-.212v-.314c.997-.139 1.68-.767 1.68-1.903 0-1.256-.877-1.662-1.68-1.958zm-.49-.175c-.49-.185-.887-.379-.887-.905 0-.48.37-.712.887-.776v1.68zm.434 3.15v-1.95c.453.194.813.453.813 1.035 0 .526-.314.822-.813.914z",fill:"#000"})))};class rm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Height","Width"]}}function om(e){return h(zp,pl(e,1))}class im extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Active","Complete","Editing","ReadyToComplete","ToComplete"]}}class sm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ToBeCompleted","CompletedAll"]}}function am(e){let t,n;switch(1===e.tag?(t=0,n=e.fields[2]):(t=0,n=e.fields[3]),t){case 0:return n}}function cm(e,t){const n=t.state;if(1===n.tag){if(wn(n.fields[0],e))return new im(2);if(1===n.tag)return new im(1);throw new Error("Match failure")}return function(e,t,n,r){const o=si(e,r,{Equals:(e,t)=>wn(e,t),GetHashCode:e=>pn(e)});let i;switch(i=o?1:wn(t,e)?0:1,i){case 0:return new im(0);case 1:{let r;switch(r=o&&wn(t,e)?0:1,r){case 0:return new im(2);case 1:return wn(n,e)?new im(3):new im(o?1:4)}}}}(e,n.fields[0],n.fields[1],n.fields[2])}function um(e,t,n){let r;t.dispatch((r=t.state,1===r.tag?new dp(1,new fp(2,e,void 0,r.fields[1],r.fields[2])):new dp(1,new fp(2,e,r.fields[1],r.fields[2],r.fields[3]))))}function lm(e,t){switch(t.tag){case 1:return n=[new rm(0,e),new rm(1,e)],h(Vp,pl(n,1));case 2:return function(e){return h(Xp,pl(e,1))}([new rm(0,e),new rm(1,e)]);case 3:return function(e){return h(em,pl(e,1))}([new rm(0,e),new rm(1,e)]);case 4:return function(e){return h(nm,pl(e,1))}([new rm(0,e),new rm(1,e)]);case 5:return null;default:return function(e){return h(Bp,pl(e,1))}([new rm(0,e),new rm(1,e)])}var n}function fm(e){const t=Ii(vi(()=>Ti(Ni(t=>function(e,t){const n=wn(e,new ip(4));return h("div",Sn(Ii(vi(()=>Ti(Si(["className",wr(" ",["row","mb-3","align-items-center"])]),vi(()=>{let r;return Ti(Si(["children",_r.Children.toArray([h("div",{className:wr(" ",["col-auto"]),children:_r.Children.toArray(Array.from(Ii(vi(()=>Ti(Si(h("span",{className:wr(" ",Ii(vi(()=>{switch(cm(e,t).tag){case 4:return Si("fl-step-tick-to-complete");case 0:return Si("fl-step-tick-active");case 1:case 2:return Si("fl-step-tick-complete-or-editing");default:return Si("fl-step-tick-to-complete")}}))),children:_r.Children.toArray([om([["style",{transform:"scale(0.7)"}],["className",wr(" ",Ii(vi(()=>{switch(cm(e,t).tag){case 4:case 0:return Si("invisible");case 1:case 2:return Si("visible");default:return Si("invisible")}})))]])])})),vi(()=>n?Ci():Si(h("div",{className:wr(" ",["fl-step-tick-progress-bar"])}))))))))}),h("div",{className:wr(" ",["col-9"]),children:_r.Children.toArray([h("button",{className:wr(" ",Ii(vi(()=>Ti(Si("btn"),vi(()=>Ti(Si("btn-block"),vi(()=>Ti(Si("text-left"),vi(()=>Ti(Si("text-nowrap"),vi(()=>{switch(cm(e,t).tag){case 3:return Si("fl-step-btn-ready-or-complete");case 0:case 2:return Si("fl-step-btn-active-or-editing");case 1:return Si("fl-step-btn-ready-or-complete");default:return Si(lr(ar("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))),children:_r.Children.toArray([h("span",{className:wr(" ",["mr-2"]),children:_r.Children.toArray([lm(36,e)])}),(r=up(e),h("span",{children:[r]}))])})])})])]),vi(()=>wn(cm(e,t),new im(4))?Ci():Si(["onClick",n=>{um(e,t)}])))}))))))}(t,e),am(e.state)),vi(()=>1===e.state.tag?Si(h("button",{className:wr(" ",["col-12","btn","is-primary","btn-block"]),style:{marginTop:"2rem"},children:"Complete Onboarding",onClick:t=>{e.dispatch(new dp(4,new yc(0)))}})):Si(null)))));return h("div",{children:_r.Children.toArray(Array.from(t))})}function dm(e){return!(Ho(am(e.state))<=3)}function hm(e){return dm(e)?25:36}function pm(e,t){return dm(e)?Ti(["small"],t):t}function mm(e){return h("div",{className:wr(" ",["row","mb-2"]),children:_r.Children.toArray([h("div",{className:wr(" ",["d-flex","w-100","mt-1"]),children:_r.Children.toArray(Array.from(Ii(vi(()=>Ni(t=>function(e,t){return h("div",Sn(Ii(vi(()=>Ti(Si(["className",wr(" ",["flex-fill","mx-1"])]),vi(()=>Ti(Si(["children",_r.Children.toArray([h("button",{className:wr(" ",Ii(vi(()=>Ti(Si("btn"),vi(()=>Ti(Si("btn-block"),vi(()=>Ti(Si("text-center"),vi(()=>Ti(Si("text-nowrap"),vi(()=>Ti(Si("border"),vi(()=>{switch(cm(e,t).tag){case 3:return Si("fl-step-btn-ready-or-complete");case 0:case 2:return Si("fl-step-btn-active-or-editing");case 1:return Si("fl-step-btn-ready-or-complete");default:return Si(lr(ar("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))))),children:_r.Children.toArray([h("span",{className:wr(" ",["mr-md-2"]),children:_r.Children.toArray([lm(hm(t),e)])}),h("span",{children:up(e),className:wr(" ",pm(t,["d-none","d-md-inline-block"]))})])})])]),vi(()=>wn(cm(e,t),new im(4))?Ci():Si(["onClick",n=>{um(e,t)}])))))))))}(t,e),am(e.state))))))})])})}var gm=n(1),wm=n(0),ym=n.n(wm);function vm(e){return(vm="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})(e)}function _m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bm(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 Cm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bm(Object(n),!0).forEach((function(t){_m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sm(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 xm(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 Im(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 Em(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=Im(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 km=!1;try{km=!0}catch(e){}function Tm(e){return gm.b.icon?gm.b.icon(e):null===e?null:"object"===vm(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 Om(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?_m({},e,t):{}}function Am(e){var t=e.forwardedRef,n=Sm(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,u=Tm(r),l=Om("classes",[].concat(xm(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,s=e.border,a=e.listItem,c=e.flip,u=e.size,l=e.rotation,f=e.pull,d=(_m(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":s,"fa-li":a,"fa-flip-horizontal":"horizontal"===c||"both"===c,"fa-flip-vertical":"vertical"===c||"both"===c},"fa-".concat(u),null!=u),_m(t,"fa-rotate-".concat(l),null!=l&&0!==l),_m(t,"fa-pull-".concat(f),null!=f),_m(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)),xm(s.split(" ")))),f=Om("transform","string"==typeof n.transform?gm.b.transform(n.transform):n.transform),d=Om("mask",Tm(o)),h=Object(gm.a)(u,Cm({},l,{},f,{},d,{symbol:i,title:a,titleId:c}));if(!h)return function(){var e;!km&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var p=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Am.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),Mm(p[0],m)}Am.displayName="FontAwesomeIcon",Am.propTypes={border:ym.a.bool,className:ym.a.string,mask:ym.a.oneOfType([ym.a.object,ym.a.array,ym.a.string]),fixedWidth:ym.a.bool,inverse:ym.a.bool,flip:ym.a.oneOf(["horizontal","vertical","both"]),icon:ym.a.oneOfType([ym.a.object,ym.a.array,ym.a.string]),listItem:ym.a.bool,pull:ym.a.oneOf(["right","left"]),pulse:ym.a.bool,rotation:ym.a.oneOf([0,90,180,270]),size:ym.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:ym.a.bool,symbol:ym.a.oneOfType([ym.a.bool,ym.a.string]),title:ym.a.string,transform:ym.a.oneOfType([ym.a.string,ym.a.object]),swapOpacity:ym.a.bool},Am.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 Mm=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=Em(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Im(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,c=Sm(r,["style"]);return i.attrs.style=Cm({},i.attrs.style,{},a),t.apply(void 0,[n.tag,Cm({},i.attrs,{},c)].concat(xm(o)))}.bind(null,je.createElement),Pm={prefix:"fas",iconName:"chevron-left",icon:[320,512,[],"f053","M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"]};
6
+ function o(e){return(o="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})(e)}function i(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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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){s(e,t,n[t])}))}return e}function c(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")}()}n.d(t,"a",(function(){return Se})),n.d(t,"b",(function(){return Ce}));var u=function(){},l={},f={},d={mark:u,measure:u};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var $=(l.navigator||{}).userAgent,h=void 0===$?"":$,p=l,m=f,g=d,w=(p.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),y=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),v=y.concat([11,12,13,14,15,16,17,18,19,20]),_={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},b=(["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",_.GROUP,_.SWAP_OPACITY,_.PRIMARY,_.SECONDARY].concat(y.map((function(e){return"".concat(e,"x")}))).concat(v.map((function(e){return"w-".concat(e)}))),p.FontAwesomeConfig||{});if(m&&"function"==typeof m.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=c(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(b[r]=o)}))}var C=a({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},b);C.autoReplaceSvg||(C.observeMutations=!1);var S=a({},C);p.FontAwesomeConfig=S;var x=p||{};x.___FONT_AWESOME___||(x.___FONT_AWESOME___={}),x.___FONT_AWESOME___.styles||(x.___FONT_AWESOME___.styles={}),x.___FONT_AWESOME___.hooks||(x.___FONT_AWESOME___.hooks={}),x.___FONT_AWESOME___.shims||(x.___FONT_AWESOME___.shims=[]);var I=x.___FONT_AWESOME___,E=[];w&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),1,E.map((function(e){return e()}))})));var k,T=function(){},O=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,A=void 0===r?setTimeout:r,M=[];function P(){for(var e=0;e<M.length;e++)M[e][0](M[e][1]);M=[],k=!1}function N(e,t){M.push([e,t]),k||(k=!0,A(P,0))}function D(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){B(i,e)}}R(i,r)||("fulfilled"===n&&z(i,r),"rejected"===n&&B(i,r))}function R(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"===o(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?L(e,r):z(e,r))}),(function(t){n||(n=!0,B(e,t))})),!0}}catch(t){return n||B(e,t),!0}return!1}function z(e,t){e!==t&&R(e,t)||L(e,t)}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,N(U,e))}function B(e,t){"pending"===e._state&&(e._state="settled",e._data=t,N(F,e))}function j(e){e._then=e._then.forEach(D)}function U(e){e._state="fulfilled",j(e)}function F(t){t._state="rejected",j(t),!t._handled&&O&&e.process.emit("unhandledRejection",t._data,t)}function G(t){e.process.emit("rejectionHandled",t)}function H(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof H==!1)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){B(t,e)}try{e((function(e){z(t,e)}),n)}catch(e){n(e)}}(e,this)}H.prototype={constructor:H,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(T),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&O&&N(G,this)),"fulfilled"===this._state||"rejected"===this._state?N(D,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},H.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new H((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)}))},H.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new H((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)}))},H.resolve=function(e){return e&&"object"===o(e)&&e.constructor===H?e:new H((function(t){t(e)}))},H.reject=function(e){return new H((function(t,n){n(e)}))};var W={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function V(e){if(e&&w){var t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=m.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)}return m.head.insertBefore(t,r),e}}function q(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Y(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Z(e){return e.size!==W.size||e.x!==W.x||e.y!==W.y||e.rotate!==W.rotate||e.flipX||e.flipY}function J(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 K={x:0,y:0,width:"100%",height:"100%"};function Q(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 ee(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,s=e.transform,c=e.symbol,u=e.title,l=e.maskId,f=e.titleId,d=e.extra,$=e.watchable,h=void 0!==$&&$,p=r.found?r:n,m=p.width,g=p.height,w="fak"===o,y=w?"":"fa-w-".concat(Math.ceil(m/g*16)),v=[S.replacementClass,i?"".concat(S.familyPrefix,"-").concat(i):"",y].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),_={children:[],attributes:a({},d.attributes,{"data-prefix":o,"data-icon":i,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(g)})},b=w&&!~d.classes.indexOf("fa-fw")?{width:"".concat(m/g*16*.0625,"em")}:{};h&&(_.attributes["data-fa-i2svg"]=""),u&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(f||q())},children:[u]});var C=a({},_,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:s,symbol:c,styles:a({},b,d.styles)}),x=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,s=e.maskId,c=e.transform,u=o.width,l=o.icon,f=i.width,d=i.icon,$=J({transform:c,containerWidth:f,iconWidth:u}),h={tag:"rect",attributes:a({},K,{fill:"white"})},p=l.children?{children:l.children.map(Q)}:{},m={tag:"g",attributes:a({},$.inner),children:[Q(a({tag:l.tag,attributes:a({},l.attributes,$.path)},p))]},g={tag:"g",attributes:a({},$.outer),children:[m]},w="mask-".concat(s||q()),y="clip-".concat(s||q()),v={tag:"mask",attributes:a({},K,{id:w,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,g]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},v]};return n.push(_,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(w,")")},K)}),{children:n,attributes:r}}(C):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=X(e.styles);if(i.length>0&&(n.style=i),Z(o)){var s=J({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:a({},s.outer),children:[{tag:"g",attributes:a({},s.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:a({},r.icon.attributes,s.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(C),I=x.children,E=x.attributes;return C.children=I,C.attributes=E,c?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:a({},o,{id:!0===i?"".concat(t,"-").concat(S.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(Z(s)&&n.found&&!r.found){var c={x:n.width/n.height/2,y:.5};o.style=X(a({},i,{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}var te=function(){},ne=(S.measurePerformance&&g&&g.mark&&g.measure,function(e,t,n,r){var o,i,s,a=Object.keys(e),c=a.length,u=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<c;o++)s=u(s,e[i=a[o]],i,e);return s});function re(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 I.hooks.addPack||o?I.styles[e]=a({},I.styles[e]||{},i):I.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var oe=I.styles,ie=I.shims,se=function(){var e=function(e){return ne(oe,(function(t,n,r){return t[r]=ne(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 oe;ne(ie,(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}),{})};se();I.styles;function ae(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ce(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?Y(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Y(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(ce).join(""),"</").concat(t,">")}var ue=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};function le(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le;var fe={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},$e={tag:"path",attributes:a({},fe,{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"})},he=a({},de,{attributeName:"opacity"});a({},fe,{cx:"256",cy:"364",r:"28"}),a({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),a({},he,{values:"1;0;1;1;0;1;"}),a({},fe,{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"}),a({},he,{values:"1;0;0;0;0;1;"}),a({},fe,{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"}),a({},he,{values:"0;0;1;1;0;0;"}),I.styles;function pe(e){var t=e[0],n=e[1],r=c(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(S.familyPrefix,"-").concat(_.GROUP)},children:[{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(_.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(_.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}I.styles;function me(){var e="svg-inline--fa",t=S.familyPrefix,n=S.replacementClass,r='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("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),s=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(s,".".concat(n))}return r}function ge(){S.autoAddCss&&!be&&(V(me()),be=!0)}function we(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ce(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(w){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ae(_e.definitions,n,r)||ae(I.styles,n,r)}var ve,_e=new(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,r;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]=a({},e.definitions[t]||{},o[t]),re(t,o[t]),se()}))}},{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}}])&&i(t.prototype,n),r&&i(t,r),e}()),be=!1,Ce={transform:function(e){return ue(e)}},Se=(ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?W:n,o=t.symbol,i=void 0!==o&&o,s=t.mask,c=void 0===s?null:s,u=t.maskId,l=void 0===u?null:u,f=t.title,d=void 0===f?null:f,$=t.titleId,h=void 0===$?null:$,p=t.classes,m=void 0===p?[]:p,g=t.attributes,w=void 0===g?{}:g,y=t.styles,v=void 0===y?{}:y;if(e){var _=e.prefix,b=e.iconName,C=e.icon;return we(a({type:"icon"},e),(function(){return ge(),S.autoA11y&&(d?w["aria-labelledby"]="".concat(S.replacementClass,"-title-").concat(h||q()):(w["aria-hidden"]="true",w.focusable="false")),ee({icons:{main:pe(C),mask:c?pe(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:b,transform:a({},W,r),symbol:i,title:d,maskId:l,titleId:h,extra:{attributes:w,styles:v,classes:m}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ye(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ye(r||{})),ve(n,a({},t,{mask:r}))})}).call(this,n(2),n(3).setImmediate)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(4),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,s,a,c=1,u={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&h(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return u[c]=o,r(c),c++},d.clearImmediate=$}function $(e){delete u[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{$(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(2),n(5))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&$())}function $(){if(!l){var e=a(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||a($)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(7);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}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return vm}));var r,o,i,s,a,c={},u=[],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 $(e,t,n){var r,o,i,s=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(null!=n&&(a.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return h(e,a,r,o,null)}function h(e,t,n,o,i){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(s),s}function p(e){return e.children}function m(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(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?g(e):null}function w(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 w(e)}}function y(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!v.__r++||s!==r.debounceRendering)&&((s=r.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?g(o):i,o.__h),O(n,o),o.__e!=i&&w(o)))}))}function _(e,t,n,r,o,i,s,a,l,f){var d,$,m,w,y,v,_,C=r&&r.__k||u,x=C.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(w=n.__k[d]=null==(w=t[d])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(p,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(m=C[d])||m&&w.key==m.key&&w.type===m.type)C[d]=void 0;else for($=0;$<x;$++){if((m=C[$])&&w.key==m.key&&w.type===m.type){C[$]=void 0;break}m=null}T(e,w,m=m||c,o,i,s,a,l,f),y=w.__e,($=w.ref)&&m.ref!=$&&(_||(_=[]),m.ref&&_.push(m.ref,null,w),_.push($,w.__c||y,w)),null!=y?(null==v&&(v=y),"function"==typeof w.type&&null!=w.__k&&w.__k===m.__k?w.__d=l=b(w,l,e):l=S(e,w,m,C,y,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&m.__e==l&&l.parentNode!=e&&(l=g(m))}for(n.__e=v,d=x;d--;)null!=C[d]&&("function"==typeof n.type&&null!=C[d].__e&&C[d].__e==n.__d&&(n.__d=g(r,d+1)),P(C[d],C[d]));if(_)for(d=0;d<_.length;d++)M(_[d],_[++d],_[++d])}function b(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?b(o,t,n):S(n,o,o,e.__k,o.__e,t));return t}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){C(e,t)})):t.push(e)),t}function S(e,t,n,r,o,i){var s,a,c;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,c=0;(a=a.nextSibling)&&c<r.length;c+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function I(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||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(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?k:E,i):e.removeEventListener(t,i?k:E,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&&"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 E(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function T(e,t,n,o,i,s,a,c,u){var l,d,$,h,g,w,y,v,b,C,S,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,s=[c]),(l=r.__b)&&l(t);try{e:if("function"==typeof x){if(v=t.props,b=(l=x.contextType)&&o[l.__c],C=l?b?b.props.value:l.__:o,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(v,C):(t.__c=d=new m(v,C),d.constructor=x,d.render=N),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=C,d.__n=o,$=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,x.getDerivedStateFromProps(v,d.__s))),h=d.props,g=d.state,$)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,C),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,C)||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,C),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,g,w)}))}d.context=C,d.props=v,d.state=d.__s,(l=r.__r)&&l(t),d.__d=!1,d.__v=t,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())),$||null==d.getSnapshotBeforeUpdate||(w=d.getSnapshotBeforeUpdate(h,g)),S=null!=l&&l.type===p&&null==l.key?l.props.children:l,_(e,Array.isArray(S)?S:[S],t,n,o,i,s,a,c,u),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=A(n.__e,t,n,o,i,s,a,u);(l=r.diffed)&&l(t)}catch(e){t.__v=null,(u||null!=s)&&(t.__e=c,t.__h=!!u,s[s.indexOf(c)]=null),r.__e(e,t,n)}}function O(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function A(e,t,n,r,o,i,s,a){var l,f,$,h,p=n.props,m=t.props,g=t.type,w=0;if("svg"===g&&(o=!0),null!=i)for(;w<i.length;w++)if((l=i[w])&&(l===e||(g?l.localName==g:3==l.nodeType))){e=l,i[w]=null;break}if(null==e){if(null===g)return document.createTextNode(m);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,m.is&&m),i=null,a=!1}if(null===g)p===m||a&&e.data===m||(e.data=m);else{if(i=i&&u.slice.call(e.childNodes),f=(p=n.props||c).dangerouslySetInnerHTML,$=m.dangerouslySetInnerHTML,!a){if(null!=i)for(p={},h=0;h<e.attributes.length;h++)p[e.attributes[h].name]=e.attributes[h].value;($||f)&&($&&(f&&$.__html==f.__html||$.__html===e.innerHTML)||(e.innerHTML=$&&$.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||I(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]||I(e,i,t[i],n[i],r)}(e,m,p,o,a),$)t.__k=[];else if(w=t.props.children,_(e,Array.isArray(w)?w:[w],t,n,r,o&&"foreignObject"!==g,i,s,e.firstChild,a),null!=i)for(w=i.length;w--;)null!=i[w]&&d(i[w]);a||("value"in m&&void 0!==(w=m.value)&&(w!==e.value||"progress"===g&&!w)&&I(e,"value",w,p.value,!1),"checked"in m&&void 0!==(w=m.checked)&&w!==e.checked&&I(e,"checked",w,p.checked,!1))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i,s;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||M(o,null,t)),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.__d=void 0,null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&P(o[s],t,n);null!=i&&d(i)}function N(e,t,n){return this.constructor(e,n)}function D(e,t,n){var o,i,s;r.__&&r.__(e,t),i=(o="function"==typeof n)?null:n&&n.__k||t.__k,s=[],T(t,e=(!o&&n||t).__k=$(p,null,[e]),i||c,c,void 0!==t.ownerSVGElement,!o&&n?[n]:i?null:t.firstChild?u.slice.call(t.childNodes):null,s,!o&&n?n:i?i.__e:t.firstChild,o),O(s,e)}function R(e,t){D(e,t,R)}function z(e,t,n){var r,o,i,s=arguments,a=f({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return null!=n&&(a.children=n),h(e.type,a,r||e.key,o||e.ref,null)}r={__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},__v:0},m.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),y(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),y(this))},m.prototype.render=p,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,v.__r=0,a=0;var L,B,j,U=0,F=[],G=r.__b,H=r.__r,W=r.diffed,V=r.__c,q=r.unmount;function Y(e,t){r.__h&&r.__h(B,e,U||t),U=0;var n=B.__H||(B.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return U=1,Z(se,e)}function Z(e,t,n){var r=Y(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):se(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=B),r.__}function J(e,t){var n=Y(L++,3);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,B.__H.__h.push(n))}function K(e,t){var n=Y(L++,4);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,B.__h.push(n))}function Q(e,t){var n=Y(L++,7);return ie(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ee(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function te(){F.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(re),e.__H.__h.forEach(oe),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}})),F=[]}r.__b=function(e){B=null,G&&G(e)},r.__r=function(e){H&&H(e),L=0;var t=(B=e.__c).__H;t&&(t.__h.forEach(re),t.__h.forEach(oe),t.__h=[])},r.diffed=function(e){W&&W(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==F.push(t)&&j===r.requestAnimationFrame||((j=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ne&&(t=requestAnimationFrame(n))})(te)),B=void 0},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(re),e.__h=e.__h.filter((function(e){return!e.__||oe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(n,e.__v)}})),V&&V(e,t)},r.unmount=function(e){q&&q(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(re)}catch(e){r.__e(e,t.__v)}};var ne="function"==typeof requestAnimationFrame;function re(e){var t=B;"function"==typeof e.__c&&e.__c(),B=t}function oe(e){var t=B;e.__c=e.__(),B=t}function ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function se(e,t){return"function"==typeof t?t(e):t}function ae(e,t){for(var n in t)e[n]=t[n];return e}function ce(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 ue(e){this.props=e}(ue.prototype=new m).isPureReactComponent=!0,ue.prototype.shouldComponentUpdate=function(e,t){return ce(this.props,e)||ce(this.state,t)};var le=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),le&&le(e)};var fe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var de=function(e,t){return null==e?null:C(C(e).map(t))},$e={map:de,forEach:de,count:function(e){return e?C(e).length:0},only:function(e){var t=C(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:C},he=r.__e;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}r.__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);he(e,t,n)},(pe.prototype=new m).__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.componentWillUnmount=n.__c,o?o(a):a())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){s(),n.__c&&n.__c()};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()}},c=!0===t.__h;r.__u++||c||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=ae({},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&&$(p,null,e.fallback);return o&&(o.__h=null),[$(p,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 ve(e){var t=this,n=e.i;t.componentWillUnmount=function(){D(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)}}),D($(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new m).__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=C(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 _e="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=""),D(e,t),"function"==typeof n&&n(),e?e.__c:null}function xe(e,t,n){return R(e,t),"function"==typeof n&&n(),e?e.__c:null}m.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(m.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ie=r.event;function Ee(){}function ke(){return this.cancelBubble}function Te(){return this.defaultPrevented}r.event=function(e){return Ie&&(e=Ie(e)),e.persist=Ee,e.isPropagationStopped=ke,e.isDefaultPrevented=Te,e.nativeEvent=e};var Oe,Ae={configurable:!0,get:function(){return this.class}},Me=r.vnode;r.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=C(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=C(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&&(Ae.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ae)),e.$$typeof=_e,Me&&Me(e)};var Pe=r.__r;r.__r=function(e){Pe&&Pe(e),Oe=e.__c};var Ne={ReactCurrentDispatcher:{current:{readContext:function(e){return Oe.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function De(e){return!!e&&e.$$typeof===_e}var Re,ze={useState:X,useReducer:Z,useEffect:J,useLayoutEffect:K,useRef:function(e){return U=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){U=6,K((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:Q,useCallback:function(e,t){return U=8,Q((function(){return e}),t)},useContext:function(e){var t=B.context[e.__c],n=Y(L++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(B)),t.props.value):e.__},useDebugValue:ee,version:"16.8.0",Children:$e,render:Se,hydrate:xe,unmountComponentAtNode:function(e){return!!e.__k&&(D(null,e),!0)},createPortal:function(e,t){return $(ve,{__v:e,i:t})},createElement:$,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(y)},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 $.bind(null,e)},cloneElement:function(e){return De(e)?z.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:p,isValidElement:De,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:m,PureComponent:ue,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:ce(this.props,e)}function r(t){return this.shouldComponentUpdate=n,$(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=ae({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=fe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:p,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 $(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ne};function Le(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 Be(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=n||function(e,t){if(t&Re.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)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function je(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Be(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=Le(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=Le(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 Ue(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Re||(Re={}));const Fe=Symbol("numeric");function Ge(e){return"number"==typeof e||(null==e?void 0:e[Fe])}function He(e,t){return"number"==typeof e?e*t:e[Fe]().multiply(t)}function We(e,t){return"number"==typeof e?e.toFixed(t):e[Fe]().toFixed(t)}function Ve(e,t){return"number"==typeof e?e.toPrecision(t):e[Fe]().toPrecision(t)}function qe(e,t){return"number"==typeof e?e.toExponential(t):e[Fe]().toExponential(t)}function Ye(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Fe]().toHex()}var Xe=null;try{Xe=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(e){}function Ze(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Je(e){return!0===(e&&e.__isLong__)}Ze.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ze.prototype.Equals=function(e){return St(this,e)},Ze.prototype.CompareTo=function(e){return kt(this,e)},Ze.prototype.toString=function(e){return vt(this,e)},Ze.prototype.toJSON=function(){return vt(this)},Ze.prototype[Fe]=function(){const e=this;return{multiply:t=>Mt(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:()=>vt(e.unsigned?e:Bt(Lt(e),!0),16)}},Ze.prototype.__isLong__,Object.defineProperty(Ze.prototype,"__isLong__",{value:!0});var Ke={},Qe={};function et(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Qe[e])?r:(n=nt(e,(0|e)<0?-1:0,!0),o&&(Qe[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ke[e])?r:(n=nt(e,e<0?-1:0,!1),o&&(Ke[e]=n),n)}function tt(e,t){if(isNaN(e))return t?ft:lt;if(t){if(e<0)return ft;if(e>=at)return mt}else{if(e<=-ct)return gt;if(e+1>=ct)return pt}return e<0?Tt(tt(-e,t)):nt(e%st|0,e/st|0,t)}function nt(e,t,n){return new Ze(e,t,n)}var rt=Math.pow;function ot(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return lt;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 Tt(ot(e.substring(1),t,n));for(var o=tt(rt(n,8)),i=lt,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+a),n);if(a<8)i=Ot(Mt(i,tt(rt(n,a))),tt(c));else i=Ot(i=Mt(i,o),tt(c))}return i.unsigned=t,i}function it(e,t){return"number"==typeof e?tt(e,t):"string"==typeof e?ot(e,t):nt(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var st=4294967296,at=st*st,ct=at/2,ut=et(1<<24),lt=et(0),ft=et(0,!0),dt=et(1),$t=et(1,!0),ht=et(-1),pt=nt(-1,2147483647,!1),mt=nt(-1,-1,!0),gt=nt(0,-2147483648,!1);function wt(e){return e.unsigned?e.low>>>0:e.low}function yt(e){return e.unsigned?(e.high>>>0)*st+(e.low>>>0):e.high*st+(e.low>>>0)}function vt(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(_t(e))return"0";if(bt(e)){if(St(e,gt)){var n=tt(t),r=Pt(e,n),o=At(Mt(r,n),e);return vt(r,t)+wt(o).toString(t)}return"-"+vt(Tt(e),t)}for(var i=tt(rt(t,6),e.unsigned),s=e,a="";;){var c=Pt(s,i),u=(wt(At(s,Mt(c,i)))>>>0).toString(t);if(_t(s=c))return u+a;for(;u.length<6;)u="0"+u;a=""+u+a}}function _t(e){return 0===e.high&&0===e.low}function bt(e){return!e.unsigned&&e.high<0}function Ct(e){return 1==(1&e.low)}function St(e,t){return Je(t)||(t=it(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function xt(e,t){return kt(e,t)<0}function It(e,t){return kt(e,t)>0}function Et(e,t){return kt(e,t)>=0}function kt(e,t){if(Je(t)||(t=it(t)),St(e,t))return 0;var n=bt(e),r=bt(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:bt(At(e,t))?-1:1}function Tt(e){return!e.unsigned&&St(e,gt)?gt:Ot(Nt(e),dt)}function Ot(e,t){Je(t)||(t=it(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,c=t.low>>>16,u=0,l=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,l+=(f+=o+c)>>>16,u+=(l+=r+a)>>>16,u+=n+s,nt((f&=65535)<<16|(d&=65535),(u&=65535)<<16|(l&=65535),e.unsigned)}function At(e,t){return Je(t)||(t=it(t)),Ot(e,Tt(t))}function Mt(e,t){if(_t(e))return e.unsigned?ft:lt;if(Je(t)||(t=it(t)),Xe)return nt(Xe.mul(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned);if(_t(t))return e.unsigned?ft:lt;if(St(e,gt))return Ct(t)?gt:lt;if(St(t,gt))return Ct(e)?gt:lt;if(bt(e))return bt(t)?Mt(Tt(e),Tt(t)):Tt(Mt(Tt(e),t));if(bt(t))return Tt(Mt(e,Tt(t)));if(xt(e,ut)&&xt(t,ut))return tt(yt(e)*yt(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,c=t.low>>>16,u=65535&t.low,l=0,f=0,d=0,$=0;return d+=($+=i*u)>>>16,f+=(d+=o*u)>>>16,d&=65535,f+=(d+=i*c)>>>16,l+=(f+=r*u)>>>16,f&=65535,l+=(f+=o*c)>>>16,f&=65535,l+=(f+=i*a)>>>16,l+=n*u+r*c+o*a+i*s,nt((d&=65535)<<16|($&=65535),(l&=65535)<<16|(f&=65535),e.unsigned)}function Pt(e,t){if(Je(t)||(t=it(t)),_t(t))throw Error("division by zero");var n,r,o;if(Xe)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?nt((e.unsigned?Xe.div_u:Xe.div_s)(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned):e;if(_t(e))return e.unsigned?ft:lt;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:nt(e.low,e.high,!0)}(t)),It(t,e))return ft;if(It(t,zt(e,1)))return $t;o=ft}else{if(St(e,gt))return St(t,dt)||St(t,ht)?gt:St(t,gt)?dt:St(n=Dt(Pt(Rt(e,1),t),1),lt)?bt(t)?dt:ht:o=Ot(n,Pt(r=At(e,Mt(t,n)),t));if(St(t,gt))return e.unsigned?ft:lt;if(bt(e))return bt(t)?Pt(Tt(e),Tt(t)):Tt(Pt(Tt(e),t));if(bt(t))return Tt(Pt(e,Tt(t)));o=lt}for(r=e;Et(r,t);){n=Math.max(1,Math.floor(yt(r)/yt(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:rt(2,i-48),a=tt(n),c=Mt(a,t);bt(c)||It(c,r);)c=Mt(a=tt(n-=s,e.unsigned),t);_t(a)&&(a=dt),o=Ot(o,a),r=At(r,c)}return o}function Nt(e){return nt(~e.low,~e.high,e.unsigned)}function Dt(e,t){return Je(t)&&(t=wt(t)),0==(t&=63)?e:t<32?nt(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):nt(0,e.low<<t-32,e.unsigned)}function Rt(e,t){return Je(t)&&(t=wt(t)),0==(t&=63)?e:t<32?nt(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):nt(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function zt(e,t){if(Je(t)&&(t=wt(t)),0===(t&=63))return e;var n=e.high;return t<32?nt(e.low>>>t|n<<32-t,n>>>t,e.unsigned):nt(32===t?n:n>>>t-32,0,e.unsigned)}function Lt(e,t){return t?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]}(e):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]}(e)}function Bt(e,t,n){return n?function(e,t){return new Ze(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 Ze(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)}const jt=Ot,Ut=Mt,Ft=Pt,Gt=function(e,t){return Je(t)||(t=it(t)),Xe?nt((e.unsigned?Xe.rem_u:Xe.rem_s)(e.low,e.high,t.low,t.high),Xe.get_high(),e.unsigned):At(e,Mt(Pt(e,t),t))},Ht=Tt,Wt=function(e,t){return Je(t)||(t=it(t)),nt(e.low&t.low,e.high&t.high,e.unsigned)},Vt=kt,qt=nt,Yt=wt,Xt=yt;function Zt(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 nt(r,o>>31,t)}function Jt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Kt(e){return"function"==typeof e.GetHashCode}function Qt(e){return null!=e&&"function"==typeof e.Dispose}function en(e,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class tn{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 nn(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new tn(e[Symbol.iterator]())}function rn(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 on{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 sn(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function an(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function cn(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class un{static id(e){return un.idMap.has(e)||un.idMap.set(e,++un.count),un.idMap.get(e)}}function ln(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function fn(e){return 2654435761*e|0}function dn(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function $n(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return fn(e);case"string":return ln(e);default:if(Kt(e))return e.GetHashCode();if(Jt(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=$n(e[r]);return dn(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return dn(Object.values(e).map(e=>$n(e)))}return fn(un.id(e))}}function hn(e){return null==e?0:Kt(e)?e.GetHashCode():fn(un.id(e))}function pn(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 mn(e,t){return pn(e,t,gn)}function gn(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):Jt(e)?Jt(t)&&mn(e,t):e instanceof Date?t instanceof Date&&0===wn(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]||!gn(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function wn(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+an(e),r=t.getTime()+an(t)),n===r?0:n<r?-1:1}function yn(e,t){return e===t?0:e<t?-1:1}function vn(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,_n)}function _n(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):Jt(e)?Jt(t)?vn(e,t):-1:e instanceof Date?t instanceof Date?wn(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=_n(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function bn(e,t,n){return e(t,n)>0?t:n}function Cn(e){const t={};for(const n of e)t[n[0]]=n[1];return t}un.idMap=new WeakMap,un.count=0;const Sn=Symbol("curried");function xn(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[Sn]=t,n}function In(e,t,n){return r=>1===t?n(...e.concat([r])):In(e.concat([r]),t-1,n)}function En(e,t){return null==t||1===t.length?t:Sn in t?t[Sn]:In([],e,t)}function kn(e,t,n){if(null!=t){if(Sn in t){t=t[Sn];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return In(n,e,t)}}function Tn(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=En(e,n)),t>1&&(n=xn(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function On(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+sn(~~(e/36e5),2)+":"+sn(n,2)}function An(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 Mn(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 Pn(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," ")+On(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Mn(i,t,!0);switch(t){case"D":case"d":return An(i,"first");case"T":case"t":return An(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+On(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Nn(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Mn(e,t,n);switch(t){case"D":case"d":return n?An(e,"first"):e.toLocaleDateString();case"T":case"t":return n?An(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return sn(e.getFullYear(),4)+"-"+sn(e.getMonth()+1,2)+"-"+sn(e.getDate(),2)+"T"+sn(e.getHours(),2)+":"+sn(e.getMinutes(),2)+":"+sn(e.getSeconds(),2)+"."+sn(e.getMilliseconds(),3)+(t?On(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function Dn(e,t,n){return null!=e.offset?Pn(e,t):Nn(e,t)}function Rn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function zn(e){function t(){throw new Error("The string is not a valid Date: "+e)}null!==e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function Ln(e,t){try{return t.contents=function(e,t=!1){const[n,r]=zn(e),o=null!=r?t&&"Z"===r?1:2:0;return Rn(n.getTime(),o)}(e),!0}catch(e){return!1}}function Bn(e,t,n,r=0,o=0,i=0,s=0,a){const c=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(c))throw new Error("The parameters describe an unrepresentable Date.");const u=Rn(c,a);return e<=99&&u.setFullYear(e,t-1,n),u}function jn(){return Bn(Gn(e=Rn(Date.now(),2)),Fn(e),Un(e),0,0,0,0,e.kind);var e}function Un(e){return 1===e.kind?e.getUTCDate():e.getDate()}function Fn(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function Gn(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function Hn(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 Wn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Vn(e,t,n=0){if(e.lastIndex=n,!e.global)throw new Error("Non-global RegExp");let r=e.exec(t);const o=[];for(;null!==r;)o.push(r),r=e.exec(t);return o}function qn(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+=qn(r);else{if(100===t){n+="; ...";break}n+="; "+qn(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+qn(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class Yn{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=qn(t[0]),r=n.indexOf(" ")>=0):n=t.map(e=>qn(e)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>$n(e));return e.splice(0,0,fn(this.tag)),dn(e)}Equals(e){return this===e||!!en(this,e)&&(this.tag===e.tag&&mn(this.fields,e.fields))}CompareTo(e){return this===e?0:en(this,e)?this.tag===e.tag?vn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function Xn(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Zn(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+qn(t)).join("\n ")+" }"}function Jn(e){return dn(Object.values(e).map(e=>$n(e)))}function Kn(e,t){if(e===t)return!0;if(en(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!gn(e[n[r]],t[n[r]]))return!1;return!0}return!1}function Qn(e,t){if(e===t)return 0;if(en(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=_n(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class er{toJSON(){return Xn(this)}toString(){return Zn(this)}GetHashCode(){return Jn(this)}Equals(e){return Kn(this,e)}CompareTo(e){return Qn(this,e)}}class tr{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)}}const nr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,rr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,or=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ir(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function sr(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function ar(e){return{input:e,cont:(t=e,e=>{nr.lastIndex=0;const n=[],r=[];let o=0,i=nr.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=nr.lastIndex,nr.lastIndex-=1,i=nr.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),function e(t,n,r,o="",i=-1){return(...s)=>{let a=o;const c=n.slice(),u=r.slice();for(const e of s){const[,,t,n,r,o]=u[0];let s=n;if(i>=0)s=i,i=-1;else if("*"===s){if(e<0)throw new Error("Non-negative number required");i=e;continue}a+=c[0],a+=dr(e,t,s,r,o),c.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=c[0],t(a)):e(t,c,u,a,i)}}(e,n,r))})};var t}function cr(e,t){let n=0,r=0,o="";rr.lastIndex=0;let i=rr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,a,c,u,l]=i;o+=dr(t[n++],a,c,u,l),r=rr.lastIndex,rr.lastIndex-=1,i=rr.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}function ur(e,t){return"string"==typeof t?e(t):t.cont(e)}function lr(e){return ur(e=>e,e)}function fr(e){return ur(e=>{throw new Error(e)},e)}function dr(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Ge(e))switch("x"!==o.toLowerCase()&&(ir(e,0)?(e=He(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=We(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ve(e,r):Ve(e);break;case"e":case"E":e=null!=r?qe(e,r):qe(e);break;case"x":e=Ye(e);break;case"X":e=Ye(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Dn(e):qn(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=wr(e,n-i.length,s,o)):wr(i+e,n,s,o)}return e}function $r(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(or,(e,n,r,o,i,s)=>{let a=t[n];if(Ge(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=We(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Ve(a,i):Ve(a);break;case"e":case"E":a=null!=i?qe(a,i):qe(a);break;case"p":case"P":i=null!=i?i:2,a=We(He(a,100),i)+" %";break;case"d":case"D":a=null!=i?wr(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?wr(Ye(a),i,"0"):Ye(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(ir(a,0)&&(a=He(a,-1),e="-"),a=We(a,null!=r?r.length-1:0),wr(a,(n||"").length-e.length+(null!=r?r.length:0),"0"))),a=e+a}}else a=a instanceof Date?Dn(a,s||o):qn(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=wr(String(a),Math.abs(r)," ",r<0)),a})}function hr(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function pr(e){return"string"!=typeof e||0===e.length}function mr(e){return"string"!=typeof e||/^\s*$/.test(e)}function gr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function wr(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 yr(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)}const vr=ze;var _r={GetHashCode(){return dn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[Fe](){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)}}},br="[big.js] ",Cr=br+"Invalid ",Sr=Cr+"decimal places",xr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Ir(e,t){var n,r,o;if(!xr.test(t))throw Error(Cr+"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 e=Er(e,Tr.DP+1,Tr.RM)}function Er(e,t,n,r){var o=e.c;if(void 0===n&&(n=Tr.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||void 0!==o[1]))),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||void 0!==o[t+1]||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 kr(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}_r.abs=function(){var e=new this.constructor(this);return e.s=1,e},_r.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,c=r.e,u=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-a:0;if(s!=a)return s;if(t=s<0,c!=u)return c>u^t?1:-1;for(a=Math.max(o.length,i.length),s=0;s<a;s++)if((c=s<o.length?o[s]:0)!=(u=s<i.length?i[s]:0))return c>u^t?1:-1;return 0},_r.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>1e6)throw Error(Sr);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var a,c,u,l,f,d=o.slice(),$=a=o.length,h=r.length,p=r.slice(0,a),m=p.length,g=e,w=g.c=[],y=0,v=s+(g.e=n.e-e.e)+1;for(g.s=i,i=v<0?0:v,d.unshift(0);m++<a;)p.push(0);do{for(u=0;u<10;u++){if(a!=(m=p.length))l=a>m?1:-1;else for(f=-1,l=0;++f<a;)if(o[f]!=p[f]){l=o[f]>p[f]?1:-1;break}if(!(l<0))break;for(c=m==a?o:d;m;){if(p[--m]<c[m]){for(f=m;f&&!p[--f];)p[f]=9;--p[f],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[y++]=l?u:++u,p[0]&&l?p[m]=r[$]||0:p=[r[$]]}while(($++<h||void 0!==p[0])&&i--);return w[0]||1==y||(w.shift(),g.e--,v--),y>v&&Er(g,v,t.RM,void 0!==p[0]),g},_r.eq=function(e){return 0===this.cmp(e)},_r.gt=function(e){return this.cmp(e)>0},_r.gte=function(e){return this.cmp(e)>-1},_r.lt=function(e){return this.cmp(e)<0},_r.lte=function(e){return this.cmp(e)<1},_r.minus=_r.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),a=(e=new i(e),s.s),c=e.s;if(a!=c)return e.s=-c,s.plus(e);var u=s.c.slice(),l=s.e,f=e.c,d=e.e;if(!u[0]||!f[0])return f[0]?e.s=-c:u[0]?e=new i(s):e.s=1,e;if(a=l-d){for((o=a<0)?(a=-a,r=u):(d=l,r=f),r.reverse(),c=a;c--;)r.push(0);r.reverse()}else for(n=((o=u.length<f.length)?u:f).length,a=c=0;c<n;c++)if(u[c]!=f[c]){o=u[c]<f[c];break}if(o&&(r=u,u=f,f=r,e.s=-e.s),(c=(n=f.length)-(t=u.length))>0)for(;c--;)u[t++]=0;for(c=t;n>a;){if(u[--n]<f[n]){for(t=n;t&&!u[--t];)u[t]=9;--u[t],u[n]+=10}u[n]-=f[n]}for(;0===u[--c];)u.pop();for(;0===u[0];)u.shift(),--d;return u[0]||(e.s=1,u=[d=0]),e.c=u,e.e=d,e},_r.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("[big.js] Division by zero");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)))},_r.plus=_r.add=function(e){var t,n,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,a=i.c,c=e.e,u=e.c;if(!a[0]||!u[0])return u[0]||(a[0]?e=new o(i):e.s=i.s),e;if(a=a.slice(),t=s-c){for(t>0?(c=s,r=u):(t=-t,r=a),r.reverse();t--;)r.push(0);r.reverse()}for(a.length-u.length<0&&(r=u,u=a,a=r),t=u.length,n=0;t;a[t]%=10)n=(a[--t]=a[t]+u[t]+n)/10|0;for(n&&(a.unshift(n),++c),t=a.length;0===a[--t];)a.pop();return e.c=a,e.e=c,e},_r.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(Cr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},_r.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(Cr+"precision");return Er(new this.constructor(this),e,t)},_r.round=function(e,t){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Sr);return Er(new this.constructor(this),e+this.e+1,t)},_r.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(br+"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 Er(e,(r.DP-=4)+e.e+1,r.RM)},_r.times=_r.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,c=r.e,u=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=c+u,s<a&&(t=o,o=i,i=t,u=s,s=a,a=u),t=new Array(u=s+a);u--;)t[u]=0;for(c=a;c--;){for(a=0,u=s+c;u>c;)a=t[u]+i[c]*o[u-c-1]+a,t[u--]=a%10,a=a/10|0;t[u]=a}for(a?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},_r.toExponential=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Sr);for(n=Er(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return kr(n,!0,!!r)},_r.toFixed=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Sr);for(e=e+(n=Er(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return kr(n,!1,!!r)},_r.toJSON=_r.toString=function(){var e=this,t=e.constructor;return kr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},_r.toNumber=function(){var e=Number(kr(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(br+"Imprecise conversion");return e},_r.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(Cr+"precision");for(n=Er(new r(n),e,t);n.c.length<e;)n.c.push(0)}return kr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},_r.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(br+"valueOf disallowed");return kr(e,e.e<=t.NE||e.e>=t.PE,!0)};var Tr=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?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(Cr+"number");n=0===n&&1/n<0?"-0":String(n)}Ir(r,n)}r.constructor=t}return t.prototype=_r,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}(),Or=Tr;new Or(0),new Or(1),new Or(-1),new Or("79228162514264337593543950335"),new Or("-79228162514264337593543950335");class Ar{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Mr{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 qr(this)}GetHashCode(){return Nr(this)}Equals(e){return Dr(this,e)}}function Pr(e){return null!=e.generics?e.generics:[]}function Nr(e){return dn([ln(e.fullname),...Pr(e).map(Nr)])}function Dr(e,t){return""===e.fullname?""===t.fullname&&pn(oo(e),oo(t),([e,t],[n,r])=>e===n&&Dr(t,r)):e.fullname===t.fullname&&pn(Pr(e),Pr(t),Dr)}function Rr(e,t,n,r){return new Mr(e,t,n,r)}function zr(e,t,n,r){return new Mr(e,t,n,void 0,r)}function Lr(e,t,n,r){const o=new Mr(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new Ar(o,n,e[n],t))});return o}function Br(...e){return new Mr("System.Tuple`"+e.length,e)}function jr(e){return new Mr("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Ur(e){return new Mr("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Fr=new Mr("System.Object"),Gr=(new Mr("Microsoft.FSharp.Core.Unit"),new Mr("System.Char"),new Mr("System.String")),Hr=(new Mr("System.Boolean"),new Mr("System.SByte"),new Mr("System.Byte"),new Mr("System.Int16"),new Mr("System.UInt16"),new Mr("System.Int32")),Wr=(new Mr("System.UInt32"),new Mr("System.Single"),new Mr("System.Double"));new Mr("System.Decimal");function Vr(e){if(Array.isArray(e))return e[0];if(e instanceof Mr){const t=Xr(e);if(null!=t)return Vr(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function qr(e){const t=Xr(e);return null!=t?qr(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map(e=>qr(e)).join(",")+"]"}function Yr(e){return null!=Xr(e)}function Xr(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Zr(e){return null!=e.generics&&e.generics.length>0}function Jr(e){return null!=e.enumCases&&e.enumCases.length>0}function Kr(e){return null==e.generics?e:new Mr(e.fullname,e.generics.map(()=>Fr))}function Qr(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function eo(e){if(Jr(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function to(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")}function no(e,t){const n=parseInt(t,10);return to(e,isNaN(n)?t:n)[1]}function ro(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function oo(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function io(e){if(co(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}function so(e){return e instanceof Mr?null!=e.cases:e instanceof Yn}function ao(e){return e instanceof Mr?null!=e.fields:e instanceof er}function co(e){return e.fullname.startsWith("System.Tuple")}function uo(e){return null==e.fields?[]:e.fields}function lo(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):{}}class fo{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return $n(this.value)}Equals(e){return null!=e&&gn(this.value,e instanceof fo?e.value:e)}CompareTo(e){return null==e?1:_n(this.value,e instanceof fo?e.value:e)}}function $o(e){return null==e||e instanceof fo?new fo(e):e}function ho(e){if(null==e)throw new Error("Option has no value");return e instanceof fo?e.value:e}function po(e){return null==e?void 0:e}function mo(e){return null==e?[]:[ho(e)]}function go(e,t){return null!=e?ho(e):t}function wo(e,t){return null!=t?$o(e(ho(t))):void 0}function yo(e,t){return null!=t?e(ho(t)):void 0}function vo(){return e=(e,t)=>_n(e,t),{Compare:(t,n)=>e(t,n)};var e}function _o(){return vo()}function bo(e,t){return"function"==typeof e?new e(t):new Array(t)}function Co(){throw new Error("Arrays had different lengths")}function So(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function xo(e,t,n){const r=0|t.length,o=bo(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Io(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=bo(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Eo(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function ko(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function To(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Oo(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&Co();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class Ao extends er{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+gr("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((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(gn(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,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)+$n(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|_n(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 function(e){return new Mo(e)}(this)}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return nn(this)}}class Mo{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"(){this.it=this.xs,this.current=null}Dispose(){}}function Po(){return new Ao(null,void 0)}function No(e,t){return new Ao(e,t)}function Do(e){return null==e.tail}function Ro(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 zo(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Lo(e){const t=e.tail;if(null!=t)return t;throw new Error("List was empty\\nParameter name: list")}function Bo(){return Po()}function jo(e,t){return No(e,t)}function Uo(e){return No(e,Po())}function Fo(e){return Do(e)}function Go(e){return Ro(e)}function Ho(e){return zo(e)}function Wo(e){return Do(e)?void 0:$o(zo(e))}function Vo(e){return Lo(e)}function qo(e){const t=0|Ro(e),n=So(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Do(o))break;n[r]=zo(o),e=r+1,t=Lo(o)}})(0,e),n}function Yo(e,t,n){let r=t,o=n;for(;!Do(o);)r=e(r,zo(o)),o=Lo(o);return r}function Xo(e){return Yo((e,t)=>No(t,e),Po(),e)}function Zo(e,t){Yo((t,n)=>{e(n)},void 0,t)}function Jo(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=No(e[t],n);return n}function Ko(e){return Jo(e,Po())}function Qo(e){let t,n;if(Jt(e))return Ko(e);if(e instanceof Ao)return e;{const r=Po();let o=r;const i=nn(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Ao(e,void 0),t.tail=n,o=n}}finally{i.Dispose()}const s=o,a=Po();return s.tail=a,Lo(r)}}function ei(e,t){return Yo((e,t)=>No(t,e),t,Xo(e))}function ti(e,t){const n=Po(),r=Yo((t,n)=>{const r=new Ao(e(n),void 0);return t.tail=r,r},n,t),o=Po();return r.tail=o,Lo(n)}function ni(e,t){return(t=>{e:for(;;){const n=t;if(Do(n))return;{const r=e(zo(n));if(null==r){t=Lo(n);continue e}return r}}})(t)}function ri(e,t){return ni(t=>e(t)?$o(t):void 0,t)}function oi(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Do(o))return;if(e(zo(o)))return r;t=r+1,n=Lo(o)}})(0,t)}function ii(e,t){const n=Po(),r=Yo((t,n)=>{if(e(n)){const e=new Ao(n,void 0);return t.tail=e,e}return t},n,t),o=Po();return r.tail=o,Lo(n)}function si(e,t,n){return null!=oi(t=>n.Equals(e,t),t)}function ai(e,t){return null!=oi(e,t)}const ci="The input sequence has an insufficient number of elements.";function ui(){throw new Error("Enumeration has not started. Call MoveNext.")}function li(){throw new Error("Enumeration already finished.")}class fi{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=nn(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=qn(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 rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class di{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 $i(e,t,n){return new di(e,t,n)}function hi(e,t){return $i(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{t.Dispose()}finally{e()}})}function pi(e,t,n){let r=!1,o=void 0,i=$o(e());const s=()=>{if(null!=i){const e=ho(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return $i(()=>(r||ui(),null!=o?ho(o):li()),()=>{if(r||(r=!0),null!=i){const e=ho(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(o=n,!0):(a(),!1)}return!1},s)}function mi(e,t){null==t&&function(e){throw new Error(e)}(e)}function gi(e){return function(e){return new fi(e)}(e)}function wi(e){return mi("source",e),nn(e)}function yi(e){return gi(()=>nn(e()))}function vi(e){return gi(()=>function(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!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 $i(()=>(r?o&&li():ui(),null!=i?ho(i):li()),()=>{let a;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[t,n];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=$o(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=nn(a)}else s(),r=!1}else t=nn(e)}return ho(r)}},()=>{o||s()})}(e))}function _i(e,t){return gi(()=>function(e,t){let n=void 0,r=t;return $i(()=>{if(null!=n){const e=n[0];n[1];return e}return ui()},()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1},()=>{})}(e,t))}function bi(){return yi(()=>new Array(0))}function Ci(e){return yi(()=>function(e,t){const n=bo(t,1);return n[0]=e,n}(e))}function Si(e){return e instanceof Ao?qo(e):Array.from(e)}function xi(e){return Jt(e)?Ko(e):e instanceof Ao?e:Qo(e)}function Ii(e,t,n){return gi(()=>pi(e,t,n))}function Ei(e,t,n){return gi(()=>{let r=-1;return pi(e,e=>(r=r+1|0,t(r,e)),n)})}function ki(e,t){return vi([e,t])}function Ti(e,t,n){const r=wi(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 Oi(e,t,n){const r=wi(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 Ai(e,t){Oi((t,n)=>{e(n)},void 0,t)}function Mi(e,t){Oi((t,n)=>(e(t,n),t+1|0),0,t)}function Pi(e,t){return Ii(()=>wi(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?$o(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Ni(e,t){return Ei(()=>wi(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?$o(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}Symbol.iterator;function Di(e,t){return gi(()=>{const n=wi(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ci+"\\nParameter name: source");return hi(()=>{},n)}catch(e){throw n.Dispose(),e}})}function Ri(e,t){return Ei(()=>wi(t),(t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return $o(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ci+"\\nParameter name: source")}},e=>{e.Dispose()})}function zi(e,t){return yi(()=>vi(Pi(e,t)))}class Li extends er{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Bi(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Bi(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}qt(2013265921,0,!1),qt(2013265921,0,!0);Io(28,e=>Bi(2,e),Int32Array);function ji(e){return e.bound}function Ui(e,t){return e.digits[t]}function Fi(e,t){return Zt(Ui(e,t),!1,2)}function Gi(e,t,n){e.digits[t]=0|n}function Hi(e,t){for(;;){const n=e,r=t;if(0===r)return qt(1,0,!1);if(r%2!=0)return Ut(n,Hi(Ut(n,n),~~(r/2)));e=Ut(n,n),t=~~(r/2)}}function Wi(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Wi(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const Vi=qt(16777216,0,!1),qi=qt(16777215,0,!1);qt(16777215,0,!0);function Yi(e){return new Li(e,new Int32Array(e))}function Xi(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 Zi(e){const t=0|(e<0?0:e);if(t<16777216){const e=Yi(1);return e.digits[0]=0|t,Xi(e)}{const e=Yi(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/Wi(16777216,n))%16777216|0;return Xi(e)}}function Ji(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]+16777216*t|0;return 0|t}}const Ki=Zi(1),Qi=Zi(0);function es(e){return e.bound-1}function ts(e){return 0===e.bound}function ns(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}function rs(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 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)}function os(e,t){return-1===rs(e,t)}function is(e,t,n){for(;;){const r=e,o=t,i=n;if(!(Vt(o,qt(0,0,!1))>0))break;{const s=jt(Fi(r,i),o);Gi(r,i,~~Yt(Wt(s,qi))),e=r,t=Ft(s,Vi),n=i+1}}}function ss(e,t){const n=0|ji(e),r=Yi(n+1),o=Zt(t,!1,2);let i=qt(0,0,!1);for(let t=0;t<=n-1;t++){const n=jt(jt(i,Fi(r,t)),Ut(Fi(e,t),o));Gi(r,t,~~Yt(Wt(n,qi))),i=Ft(n,Vi)}return is(r,i,n),Xi(r)}function as(e,t){const n=1===ji(e),r=1===ji(t);return n&&r?function(e,t){const n=Yi(2),r=Ut(Zt(e,!1,2),Zt(t,!1,2));return Gi(n,0,~~Yt(Wt(r,qi))),Gi(n,1,~~Yt(Ft(r,Vi))),Xi(n)}(Ui(e,0),Ui(t,0)):n?ss(t,Ui(e,0)):r?ss(e,Ui(t,0)):function(e,t){const n=Yi(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=Zt(e.digits[o],!1,2);let s=qt(0,0,!1),a=o;for(let e=0;e<=t.bound-1;e++){const n=Zt(t.digits[e],!1,2),o=jt(jt(Zt(r[a],!1,2),s),Ut(i,n));r[a]=0|~~Yt(Wt(o,qi)),s=Ft(o,Vi),a=a+1|0}is(n,s,a)}return Xi(n)}(e,t)}class cs extends er{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 us(e,t,n,r){return new cs(e,Wi(2,e),t,n,r,~~(24/e),Io(~~(24/e),t=>Wi(2,e*t),Int32Array))}const ls=[us(1,28,268435456,268435456),us(2,26,67108864,134217728),us(3,24,16777216,50331648),us(4,22,4194304,16777216),us(5,20,1048576,5242880),us(6,18,262144,1572864),us(7,16,65536,458752),us(8,14,16384,131072),us(9,12,4096,36864),us(10,10,1024,10240),us(11,8,256,2816),us(12,6,64,768),us(13,4,16,208)];Io(24,e=>Wi(2,e)-1,Int32Array),Io(24,e=>Wi(2,e),Int32Array),Io(24,e=>Hi(qt(2,0,!1),e));ls[0].bigN;function fs(e,t){return as(e,t)}function ds(e,t,n,r){const o=[e.digits,es(e)],i=o[0],s=[n.digits,es(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Ut(u,Zt(c[0],!1,2));for(;Vt(f,qt(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=~~Yt(Wt(f,qi)),t=Ft(f,Vi);e<=i[l+r]?i[l+r]=i[l+r]-e|0:(i[l+r]=i[l+r]+(16777216-e)|0,t=jt(t,qt(1,0,!1))),f=l<a?jt(t,Ut(u,Zt(c[l+1],!1,2))):t,l=l+1|0}Xi(e)}function $s(e,t,n,r){const o=[e.digits,es(e)],i=o[0],s=[n.digits,es(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Ut(u,Zt(c[0],!1,2));for(;Vt(f,qt(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=~~Yt(Wt(f,qi)),t=Ft(f,Vi);e<16777216-i[l+r]?i[l+r]=i[l+r]+e|0:(i[l+r]=e-(16777216-i[l+r])|0,t=jt(t,qt(1,0,!1))),f=l<a?jt(t,Ut(u,Zt(c[l+1],!1,2))):t,l=l+1|0}Xi(e)}function hs(e,t,n){const r=[es(t),es(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],c=0|(0===i?o===n?~~(s[n]/a[0]):~~Yt(Ft(jt(Ut(Zt(s[o],!1,2),Vi),Zt(s[o-1],!1,2)),Zt(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Yt(Ft(jt(Ut(Zt(s[o],!1,2),Vi),Zt(s[o-1],!1,2)),jt(Zt(a[i],!1,2),qt(1,0,!1)))));return 0===c?1!==function(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:0|((e,n,o)=>{e:for(;;){const i=e,s=n,a=o;if(-1===a)return 0;{const c=0|(a<t?0:i[a-t]),u=0|(a<r?0:s[a-r]);if(c===u){e=i,n=s,o=a-1;continue e}return c<u?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e,0)?1:0:0|c}}function ps(e,t){if(ts(t))throw new Error;if(es(e)<es(t))return[Qi,e];{const n=function(e){return new Li(e.bound,e.digits.slice())}(e),r=Yi(es(e)-es(t)+1+1);let o=es(e);const i=0|es(t);let s=o-i;const a=e=>{};let c=!1;for(;!c;){a([r,n,s,o]);const e=0|hs(n,t,s);e>0?(ds(n,e,t,s),$s(r,e,Ki,s),a([r,n,s,o])):(c=0===e&&0===s,c||(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[Xi(r),Xi(n)]}}Zi(2);function ms(e){return Zi(e)}function gs(e){return function(e){const t=Vt(e,qt(0,0,!1))<0?qt(0,0,!1):e,n=Yi(3);for(let e=0;e<=2;e++)n.digits[e]=0|~~Yt(Gt(Ft(t,Hi(Vi,e)),Vi));return Xi(n)}(e)}function ws(e){const t=0|es(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,c=o;if(Fo(c)){const e=0|Ji(a);return i&&0===e?s:jo(cn(e),s)}{const u=Vo(c),l=ps(a,Ho(c)[1]),f=l[1],d=l[0];if(i&&ts(d)){e=i,t=s,r=f,o=u;continue e}e=i,t=n(!1,s,f,u),r=d,o=u;continue e}}},r=n(!0,Bo(),e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(es(s)>t)return jo([i,s],o);e=jo([i,s],o),n=i+1,r=fs(s,s)}})(Bo(),0,Zi(10)));return Fo(r)?"0":gr("",qo(r))}function ys(e){return e.bound<=1}function vs(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class _s extends er{constructor(e,t){super(),this.signInt=0|e,this.v=t}toString(){const e=this;switch(0|Ss(e)){case-1:return ts(xs(e))?"0":"-"+ws(xs(e));case 0:return"0";case 1:return ws(xs(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof _s&&Is(this,e)}GetHashCode(){return 0|(0===Ss(e=this)?1:Ss(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}(xs(e))|0);var e}toJSON(e){return qn(this)}CompareTo(e){if(e instanceof _s)return 0|function(e,t){return Es(e,t)?-1:Is(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function bs(e,t){return new _s(e,t)}function Cs(e){return ys(e)&&vs(e)<_s.smallLim?_s.smallPosTab[vs(e)]:e}function Ss(e){return e.signInt}function xs(e){return e.v}function Is(e,t){const n=[Ss(e),Ss(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 ns(xs(e),xs(t));case 2:case 3:return!!ts(xs(e))&&ts(xs(t));case 4:return!0;case 5:case 6:return ts(xs(t));case 7:case 8:return ts(xs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Es(e,t){const n=[Ss(e),Ss(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 os(xs(e),xs(t));case 1:return os(xs(t),xs(e));case 2:return!1;case 3:return!ts(xs(e))||!ts(xs(t));case 4:return!1;case 5:return!ts(xs(t));case 6:case 7:return!1;case 8:return!ts(xs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function ks(e){return e>=0?bs(1,Cs(ms(e))):bs(-1,Cs(-2147483648===e?gs(Ht(Zt(e,!1,2))):ms(Ue(e))))}function Ts(){return _s.one}function Os(){return _s.two}function As(){return _s.zero}_s.smallLim=4096,_s.smallPosTab=Io(_s.smallLim,e=>ms(e)),_s.one=ks(1),_s.two=ks(2),_s.zero=ks(0);As(),Ts(),Os();As(),Ts();function Ms(e,t,n,r,o){const i=function(e,t,n,r){const o=0|_n(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|_n(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return yi(()=>_i(i,e))}function Ps(e,t,n){return Ms(e,t,n,0,(e,t)=>e+t)}const Ns=e=>{J(()=>{const t=e();return()=>{t.Dispose()}})},Ds=(e,t)=>{J(()=>{const t=e();return()=>{t.Dispose()}},t)},Rs=e=>{K(()=>{const t=e();return()=>{t.Dispose()}})};function zs(e,t,n,r){const o=vr.memo(e,xn(2,go(En(2,n),null)));return Ai(t=>{e.displayName=t},mo(t)),e=>vr.createElement(o,Ls(r,e))}function Ls(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function Bs(e){return{Dispose(){e()}}}function js(e){Ns(e)}function Us(e,t){Ds(e,t)}function Fs(e){Hs(e,[])}function Gs(e){Us(e,[])}function Hs(e,t){Ds(t=>(e(),Bs(()=>{})),t)}function Ws(e,t){return vr.useCallback(e,go(t,[]))}function Vs(e){return vr.useRef(e)}function qs(e,t){return vr.useMemo(e,go(t,[]))}function Ys(e){const t=Vs(e),n=Ws(e=>t.current(e),[]);var r;return r=()=>{t.current=e},Rs(e=>(r(),Bs(()=>{}))),n}function Xs(e){return vr.useState(e)}class Zs{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 Js extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Js.prototype)}}class Ks{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ks.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Qs(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Js);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)}}}function ea(e,t){return Qs(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})})}function ta(e){return Qs(t=>t.onSuccess(e))}const na=new class{Bind(e,t){return ea(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Qs(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 ta(e)}ReturnFrom(e){return e}TryFinally(e,t){return Qs(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 Qs(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 Qs(e=>e.onSuccess(void 0))}};class ra extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function oa(e,t){return 0===t.tag?new ra(0,e(t.fields[0])):new ra(1,t.fields[0])}function ia(e,t){return 0===t.tag?e(t.fields[0]):new ra(1,t.fields[0])}class sa extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}class aa extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function ca(e){}function ua(e){const t=new Zs("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function la(e){e.cancel()}function fa(e){return null!=e&&e.isCancelled}const da=new Zs;function $a(e){return Qs(t=>{e({onSuccess:e=>t.onSuccess(function(e){return new sa(0,e)}(e)),onError:e=>t.onSuccess(new sa(1,e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ha(e){return Qs(t=>e([t.onSuccess,t.onError,t.onCancel]))}function pa(e){return Qs(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Js)})})}function ma(e,t){return function(e,t){return ga(e,t)}(e,t)}function ga(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ks;e({onSuccess:t||ca,onError:n||ca,onCancel:r||ca,cancelToken:o||da,trampoline:i})}class wa{constructor(){}}function ya(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(gn(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 va=new wa;class _a extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class ba{constructor(e){this.state=new _a(0,So(new Array(bn((e,t)=>yn(e,t),e,10)),0,bn((e,t)=>yn(e,t),e,10),null),0)}}function Ca(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 _a(0,o,n):new _a(1,o,n,i),$o(o[r])}}function Sa(e,t,n){const r=Vs(e[0]),o=Vs(new ba(10));const i=Xs(e[0]);let s;const a=Vs(ua()),c=Vs(a.current);Gs(()=>Bs(()=>{la(a.current)})),s=c;const u=()=>{setTimeout(()=>{let e;e=s.current,fa(e)||i[1](r.current)},0)},l=e=>{var n;(n=ya(0,()=>{let n=$o(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(va,()=>{let e;return null!=n&&(e=s.current,!fa(e))},ya(0,()=>{const e=t(ho(n),r.current);return Zo(e=>{e(l)},e[1]),n=Ca(o.current),r.current=e[0],u(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},f=Ys(l);var d;return Us(()=>Bs(()=>{let e;Ai(e=>{e.Dispose()},mo((e=r.current,Qt(e)?e:void 0)))}),n),Hs(()=>{r.current=e[0],u(),Zo(e=>{e(f)},e[1])},n),d=()=>{Ai(f,mo(Ca(o.current)))},Ns(e=>(d(),Bs(()=>{}))),[i[0],f]}class xa extends er{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}class Ia extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}class Ea extends er{constructor(e){super(),this.AuthCode=e}}class ka extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}class Ta extends er{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}function Oa(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationContextDto",[],Ta,()=>[["CssOverrides",Ur(Gr)],["MaskedEmail",Gr]])}function Aa(e){return new xa(e.CssOverrides,e.MaskedEmail)}class Ma extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}function Pa(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationOutcomeDto",[],Ma,()=>[[["Item",Oa()]],[],[],[],[["Item",Oa()]]])}class Na extends er{constructor(e){super(),this.AuthCode=e}}class Da extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}function Ra(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ValidationOutcomeDto",[],Da,()=>[[["Item",zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.CodeMatchContextDto",[],Na,()=>[["AuthCode",Gr]])]],[],[],[],[]])}function za(e){switch(e.tag){case 1:return new ka(1);case 2:return new ka(2);case 3:return new ka(3);case 4:return new ka(4);default:return new ka(0,(t=e.fields[0],new Ea(t.AuthCode)))}var t}class La{constructor(e,t){this.k=e,this.v=t}}function Ba(e,t){return new La(e,t)}function ja(e){return e.k}function Ua(e){return e.v}class Fa extends La{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function Ga(e,t,n,r,o){return new Fa(e,t,n,r,o)}function Ha(e){return e.left}function Wa(e){return e.right}function Va(e){return e.h}function qa(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Fa){t=e(r+1,Ha(i)),n=Wa(i);continue e}return r+1|0}return 0|r}}(0,e)}function Ya(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof Fa?Va(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Fa?Va(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ba(t,n):Ga(t,n,e,r,s+1)}function Xa(e,t,n,r){let o,i,s,a,c;if(null!=e){const t=e;c=t instanceof Fa?Va(t):1}else c=0;let u;if(null!=r){const e=r;u=e instanceof Fa?Va(e):1}else u=0;if(u>c+2){const s=ho(r);if(s instanceof Fa){if(o=Ha(s),(null!=o?(i=o,i instanceof Fa?Va(i):1):0)>c+1){const r=ho(Ha(s));if(r instanceof Fa)return Ya(Ya(e,t,n,Ha(r)),ja(r),Ua(r),Ya(Wa(r),ja(s),Ua(s),Wa(s)));throw new Error("internal error: Map.rebalance")}return Ya(Ya(e,t,n,Ha(s)),ja(s),Ua(s),Wa(s))}throw new Error("internal error: Map.rebalance")}if(c>u+2){const o=ho(e);if(o instanceof Fa){if(s=Wa(o),(null!=s?(a=s,a instanceof Fa?Va(a):1):0)>u+1){const e=ho(Wa(o));if(e instanceof Fa)return Ya(Ya(Ha(o),ja(o),Ua(o),Ha(e)),ja(e),Ua(e),Ya(Wa(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Ya(Ha(o),ja(o),Ua(o),Ya(Wa(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Ya(e,t,n,r)}function Za(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,ja(o));return o instanceof Fa?i<0?Xa(Za(e,t,n,Ha(o)),ja(o),Ua(o),Wa(o)):0===i?Ga(t,n,Ha(o),Wa(o),Va(o)):Xa(Ha(o),ja(o),Ua(o),Za(e,t,n,Wa(o))):i<0?Ga(t,n,void 0,r,2):0===i?Ba(t,n):Ga(t,n,r,void 0,2)}return Ba(t,n)}function Ja(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,ja(s));if(0===a)return $o(Ua(s));if(s instanceof Fa){e=r,t=o,n=a<0?Ha(s):Wa(s);continue e}return}return}}function Ka(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Fa){e(r,Ha(i)),r(ja(i),Ua(i)),t=r,n=Wa(i);continue e}r(ja(i),Ua(i))}break}}(e,t)}function Qa(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof Fa){const n=e(t,Ha(r)),o=t(ja(r),Ua(r)),i=e(t,Wa(r));return Ga(ja(r),o,n,i,Va(r))}return Ba(ja(r),t(ja(r),Ua(r)))}}(e,t)}function ec(e,t,n){let r=n;Ka((e,n)=>{t[r]=[e,n],r=r+1|0},e)}function tc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Za(e,o[0],o[1],n)}return n}function nc(e,t){if(Jt(t))return tc(e,t);if(t instanceof Ao)return function(e,t){return Yo((t,n)=>Za(e,n[0],n[1],t),void 0,t)}(e,t);{const n=nn(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=Za(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class rc extends er{constructor(e,t){super(),this.stack=e,this.started=t}}function oc(e){e:for(;;){const t=e;if(Fo(t))return Bo();{const n=Vo(t),r=Ho(t);if(null!=r){const o=r;if(o instanceof Fa){e=Jo([Ha(o),Ba(ja(o),Ua(o)),Wa(o)],n);continue e}return t}e=n;continue e}}}function ic(e){return new rc(oc(Uo(e)),!1)}function sc(e){if(e.started){const t=e.stack;if(Fo(t))return function(){throw new Error("enumeration already finished")}();if(null!=Ho(t)){const e=Ho(t);if(e instanceof Fa)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ja(e),Ua(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function ac(e){let t=ic(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>sc(t),"System.Collections.IEnumerator.get_Current":()=>sc(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Fo(t))return!1;if(null!=Ho(t)){if(Ho(t)instanceof Fa)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=oc(Vo(t)),!Fo(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Fo(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ic(e)},Dispose(){}}}class cc{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=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,$n(e[0])),n=0|t(n,$n(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof cc))return!1;{const t=nn(this);try{const n=nn(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!(!gn(r[0],o[0])||!gn(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+gr("; ",Pi(e=>$r("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return ac(this.tree)}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ac(this.tree)}CompareTo(e){const t=this;if(e instanceof cc)return 0|function(e,t,n){const r=wi(t);try{const t=wi(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:_n(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 $c(this,e[0])&&gn(fc(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ec(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|dc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|dc(this)}get size(){return 0|dc(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Pi(e=>[e[0],e[1]],this)}get(e){return fc(this,e)}has(e){return $c(this,e)}keys(){return Pi(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Pi(e=>e[1],this)}forEach(e,t){const n=this;Ai(t=>{e(t[1],t[0],n)},n)}}function uc(e,t){return new cc(e,t)}function lc(e){const t=_o();return uc(t,nc(t,e))}function fc(e,t){return function(e,t,n){const r=Ja(e,t,n);if(null==r)throw new Error;return ho(r)}(e.comparer,t,e.tree)}function dc(e){return qa(e.tree)}function $c(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,ja(s));if(s instanceof Fa){if(a<0){e=r,t=o,n=Ha(s);continue e}if(0===a)return!0;e=r,t=o,n=Wa(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function hc(e,t,n){return function(e,t,n){return uc(e.comparer,Za(e.comparer,t,n,e.tree))}(n,e,t)}function pc(e,t){return function(e,t){return Ja(e.comparer,t,e.tree)}(t,e)}function mc(e,t){return r=e,uc((n=t).comparer,Qa(r,n.tree));var n,r}function gc(){return cc.empty}cc.empty=uc(_o(),void 0);class wc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function yc(e,t){switch(t.tag){case 1:return new wc(1);case 3:return new wc(3,t.fields[0]);case 2:try{return new wc(2,e(t.fields[0]))}catch(e){return new wc(3,e)}default:return new wc(0)}}function vc(e,t){const n=Xs(new wc(0)),r=n[1];let o;const i=Vs(ua()),s=Vs(i.current);Gs(()=>Bs(()=>{la(i.current)})),o=s;const a=na.Delay(()=>na.TryWith(na.Delay(()=>(r(new wc(1)),na.Bind(e,e=>(r(new wc(2,e)),na.Zero())))),e=>(r(new wc(3,e)),na.Zero())));return Hs(()=>{ma(a,o.current)},t),n[0]}function _c(e,t){const n=Vs(ua());return Gs(()=>Bs(()=>{la(n.current)})),Ys(r=>{fa(n.current)||ma(na.Delay(()=>na.TryWith(na.Delay(()=>(t(new wc(1)),na.Bind(e(r),e=>(t(new wc(2,e)),na.Zero())))),e=>(t(new wc(3,e)),na.Zero()))),n.current)})}function bc(e){return e<0?Math.ceil(e):Math.floor(e)}function Cc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Sc(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 Sc(e){return Xt(Ft(e,1e4))}function xc(e){return Cc(0,e,0)}function Ic(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 bc(e/864e5)}(e)),o=Math.abs(function(e){return bc(e%864e5/36e5)}(e)),i=Math.abs(function(e){return bc(e%36e5/6e4)}(e)),s=Math.abs(function(e){return bc(e%6e4/1e3)}(e)),a=Math.abs(function(e){return bc(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:sn(o,2)}:${sn(i,2)}:${sn(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+sn(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r+="0";return r}(a,3,7):""}`}function Ec(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 Cc(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*Cc(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}!function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1]}();function kc(e,t){const n=function(e,t,n=0){return e.lastIndex=n,e.exec(t)}(Hn(e),t);return null!=n?Vo(xi(yi(()=>{return Pi(e=>e||"",(e=e=>e["System.Collections.IEnumerator.MoveNext"](),t=e=>e["System.Collections.IEnumerator.get_Current"](),Ii(()=>nn(n),n=>e(n)?$o(t(n)):void 0,e=>{const t=e;Qt(t)&&t.Dispose()})));var e,t}))):void 0}function Tc(e,t){return pr(t)?new ra(1,lr(ar("%s cannot be null or empty"))(e)):new ra(0,t)}function Oc(e){const t=function(e){let t;const n=kc(".*?@(.*)",e);switch(t=null!=n?Fo(n)?1:Fo(Vo(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new ra(0,t)}return new ra(1,"Email is not in the correct format")}const Ac=e=>({tag:"ok",value:e}),Mc=e=>({tag:"error",error:e});class Pc{constructor(e){this.uri=e}static isAbsoluteUri(e){try{return new URL(e),!0}catch(e){return!1}}static tryCreateWithKind(e,t){switch(t){case 1:return Pc.isAbsoluteUri(e)?Ac(new Pc({original:e,value:new URL(e),kind:t})):Mc("Invalid URI: The format of the URI could not be determined.");case 2:return Pc.isAbsoluteUri(e)?Mc("URI is not a relative path."):Ac(new Pc({original:e,value:e,kind:t}));case 0:return Pc.isAbsoluteUri(e)?Ac(new Pc({original:e,value:new URL(e),kind:1})):Ac(new Pc({original:e,value:e,kind:2}));default:return t}}static tryCreateWithBase(e,t){return 1!==e.uri.kind?Mc("Base URI should have Absolute kind"):"string"==typeof t?Ac(new Pc({original:new URL(t,e.uri.value).toString(),value:new URL(t,e.uri.value),kind:1})):2===t.uri.kind?Ac(new Pc({original:new URL(t.uri.value,e.uri.value).toString(),value:new URL(t.uri.value,e.uri.value),kind:1})):Ac(e)}static tryCreateImpl(e,t=1){return"string"==typeof e?"number"!=typeof t?Mc("Kind must be specified when the baseUri is a string."):Pc.tryCreateWithKind(e,t):"number"==typeof t?Mc("Kind should not be specified when the baseUri is an absolute Uri."):Pc.tryCreateWithBase(e,t)}static create(e,t=1){const n=Pc.tryCreateImpl(e,t);switch(n.tag){case"ok":return n.value;case"error":throw new Error(n.error);default:return n}}static tryCreate(e,t=1,n){const r=Pc.tryCreateImpl(e,t);switch(r.tag){case"ok":return n.contents=r.value,!0;case"error":return!1;default:return r}}toString(){switch(this.uri.kind){case 1:return decodeURIComponent(this.asUrl().toString());case 2:return this.uri.value;default:return this.uri}}asUrl(){switch(this.uri.kind){case 1:return this.uri.value;case 2:throw new Error("This operation is not supported for a relative URI.");default:return this.uri}}get isAbsoluteUri(){return 1===this.uri.kind}get absoluteUri(){return this.asUrl().href}get scheme(){const e=this.asUrl().protocol;return e.slice(0,e.length-1)}get host(){return this.asUrl().host}get absolutePath(){return this.asUrl().pathname}get query(){return this.asUrl().search}get pathAndQuery(){const e=this.asUrl();return e.pathname+e.search}get fragment(){return this.asUrl().hash}get originalString(){return this.uri.original}}class Nc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SecondFactorCode"]}}function Dc(e){return function(e){return!pr(e)&&function(e,t,n=0){return e.lastIndex=n,e.test(t)}(/^(\d{6})$/g,e)}(e)?new ra(0,new Nc(0,e)):new ra(1,"Invalid second factor code format.")}class Rc extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}xc(5);class zc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InviteCode"]}}function Lc(e){return function(e){return!mr(e)}(e)?new ra(0,new zc(0,e)):new ra(1,"Invalid invite code format.")}function Bc(e){return e.fields[0]}class jc extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}class Uc extends er{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}class Fc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Logo"]}}class Gc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompanyName"]}}class Hc extends er{constructor(e,t){super(),this.Email=e,this.Phone=t}}class Wc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class Vc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}const qc=e=>oa(e=>new Wc(0,e),ia(e=>Oc(e),Tc("Email",e)));const Yc=e=>oa(e=>new Vc(0,e),Tc("Phone",e));function Xc(e){return function(e){try{const t=Pc.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch(e){return[!1,void 0]}}(e)[0]?new ra(0,new Fc(0,e)):new ra(1,"Invalid logo url.")}Cc(10,0,0,0);xc(30);class Zc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initializing","WaitingForInput","Failed"]}}class Jc extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InitInvite","ActivateInvite","ValidateMfa","ProcessInput","ShowValidation"]}}class Kc extends er{constructor(e,t,n,r,o,i,s){super(),this.InviteToken=e,this.MaskedEmail=t,this.MfaCodeForm=n,this.IsValidationPending=r,this.CanRetry=o,this.Ui=i,this.CssOverrides=s}}class Qc{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class eu{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)}}var tu=eu;var nu=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 tu}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}};function ru(e,t){console.error($o(e),t)}function ou(e,t){let n,r=new nu(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Qc(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function iu(e,t,n){Zo(n=>{try{n(t)}catch(t){e(t)}},n)}function su(){return Bo()}function au(e,t){return ti(t=>n=>{t(t=>{n(e(t))})},t)}function cu(e){return function(e){const t=Po();let n=t;const r=e=>{n=Yo((e,t)=>{const n=new Ao(t,void 0);return e.tail=n,n},n,e)};if(Jt(e))e.forEach(r);else if(e instanceof Ao)Zo(r,e);else{const t=nn(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{t.Dispose()}}const o=n,i=Po();return o.tail=i,Lo(t)}(e)}function uu(e){return Uo(t=>{t(e)})}function lu(e,t,n,r,o){return Uo(i=>{e(na.Delay(()=>na.Bind($a(t(n)),e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),na.Zero()})))})}function fu(e){ou(0,t=>{ma(e)})}const du=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function $u(e){return wo(e=>e.passive&&!du?{capture:e.capture,once:e.once,passive:!1}:e,e)}function hu(e){return yo(e=>e.capture?{capture:!0}:void 0,e)}const pu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,mu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,gu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function wu(e){function t(e){return e.replace(mu,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(pu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Wn(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(mu.test(n))return t(n);if(gu.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function yu(e,t){try{return t.contents=wu(e),!0}catch(e){return!1}}function vu(e,t){return 0===t.indexOf(e)?t:void 0}function _u(e,t){return hr(t,e)?t:void 0}function bu(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=vu("/",e),null!=t?(n=t,"#"+n):(r=vu("#/",e),null!=r?(o=r,o):(i=vu("#",e),null!=i?(s=i,"#/"+yr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=vu("/",e),null!=t?(n=t,n):"/"+e}}(t)(gr("/",ti(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Cu(e,t,n){1===t?history.pushState(void 0,"",bu(e,n)):history.replaceState(void 0,"",bu(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Su(e,t){return function(e,t){let n,r;const o=Po();let i=o,s=t;for(;!Do(s);){let t=e(zo(s));for(;!Do(t);)n=i,r=new Ao(zo(t),void 0),n.tail=r,i=r,t=Lo(t);s=Lo(s)}const a=i,c=Po();return a.tail=c,Lo(o)}(e=>{if(mr(e))return Bo();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Wn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Bo();if(null!=vu("?",t))return Uo(t);{const e=t.split("?");if(ko((e,t)=>e===t,e,null)||1!==e.length){if(ko((e,t)=>e===t,e,null)||2!==e.length)return Bo();if(""===e[1]){const t=e[0];return Uo(decodeURIComponent(t))}{const t=e[0],n=e[1];return Ko([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Uo(decodeURIComponent(t))}}}},Ko((null!=vu("#",e)?yr(e,1,e.length-1):1===t&&(null!=_u("#",e)||null!=_u("#/",e))?"":e).split("/")))}const xu=zs(e=>{const t=Ys(t=>{const n=go(e.onUrlChanged,e=>{});!function(e,t,n){t(Su(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(go(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=qs(()=>$u(r),[r]),i=qs(()=>hu(r),[r]),s=qs(()=>e=>{n(e)},[n]);js(Ys(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Bs(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}else{const e="popstate",n=t,r=void 0,o=qs(()=>$u(r),[r]),i=qs(()=>hu(r),[r]),s=qs(()=>e=>{n(e)},[n]);js(Ys(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),Bs(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=qs(()=>$u(void 0),[void 0]),i=qs(()=>hu(void 0),[void 0]),s=qs(()=>e=>{r(e)},[r]);js(Ys(()=>(null==o?window.addEventListener(n,s):window.addEventListener(n,s,o),Bs(()=>{null==i?window.removeEventListener(n,s):window.removeEventListener(n,s,i)}))));const a=e.application;return null==a?null:a},void 0,Eu,Iu);var Iu,Eu;function ku(e){try{const t=new URLSearchParams(e);return xi(yi(()=>Pi(e=>[e[0],e[1]],t.entries())))}catch(e){return}}class Tu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Autodev","Test","Prod","Sandbox"]}}const Ou=document.getElementById("workflows-app"),Au=Ou.getAttribute("data-identity-url"),Mu=Ou.getAttribute("data-backend-url"),Pu=Ko(["workflows","app"]),Nu=Ko(["workflows","embed","v1.0","app"]);class Du extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone","Unknown"]}}function Ru(e){switch(e.tag){case 0:return bu(Nu,2);case 1:return bu(Pu,2);default:return bu(Nu,2)}}const zu=function(e){const t=Ko(e.split("."));let n;switch(n=Fo(t)?4:"autodev-partner"===Ho(t)?0:"test-partner"===Ho(t)?1:"partner"===Ho(t)?2:"sandbox-partner"===Ho(t)?3:4,n){case 0:return new ra(0,new Tu(0));case 1:return new ra(0,new Tu(1));case 2:return new ra(0,new Tu(2));case 3:return new ra(0,new Tu(3));case 4:return new ra(1,"Invalid environment")}}(Pc.create(Mu).host);function Lu(e,t,n){return 1===n.tag?t(n.fields[0]):e(n.fields[0])}function Bu(e,t){return null==t?new ra(1,e):new ra(0,ho(t))}function ju(e,t){return 1===t.tag?e:t.fields[0]}class Uu{constructor(){}}function Fu(e,t){return new ra(0,t)}function Gu(e,t){return t}function Hu(e,t,n){return oa(n,t)}new Uu;class Wu{constructor(){}}function Vu(e,t){return na.Return(Fu(0,t))}function qu(e,t){return na.Delay(t)}new Wu;class Yu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Xu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Zu extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Ju extends er{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 Ku extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qu extends er{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}function el(e){return new Xu(0,"Content-Type",e)}const tl=new Ju("",new Yu(0),Bo(),!1,void 0,void 0,new Zu(0));new Qu(0,"","",gc(),new Ku(0,""));function nl(e,t){return pr(t)?[t]:function(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=(t=t||[]).filter(e=>e).map(Wn)).length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let c=!0,u=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(u).trim():e.substring(u);(!o||t.length>0)&&s.push(t),c=!1}else{const r=i?e.substring(u,t.index).trim():e.substring(u,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),c=!1):s.push(r)),u=a.lastIndex}}while(c);return s}(t,[e],null,0)}function rl(e){return new Ju(e,tl.method,tl.headers,tl.withCredentials,tl.overridenMimeType,tl.overridenResponseType,tl.content)}function ol(e,t){return new Ju(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function il(e,t){return new Ju(t.url,t.method,ei(t.headers,Uo(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function sl(e,t){return new Ju(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function al(e){return ha(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 Ku(0,n.responseText):new Ku("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Qu(o,e,i,function(e){const t=_o();return uc(t,tc(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=ho(o);r.push(e)}}return"function"==typeof n?xo(e=>e,r,n):r}(e=>{const t=Ko(nl(":",e));return Fo(t)?void 0:[Ho(t).toLocaleLowerCase(),gr(":",Vo(t)).trim()]},nl("\r\n",n.getAllResponseHeaders()))),s)))};const r=nn(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($o(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send($o(s[1].fields[0])):n.send($o(void 0))})}const cl=0,ul=1,ll=2,fl=3,dl=4;function $l(e,t){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase())}function hl(e,t=cl){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case ul:return e.charAt(0).toLowerCase()+e.slice(1);case ll:return $l(e,"_");case fl:return $l(e,"_").toUpperCase();case dl:return $l(e,"-");case cl:default:return e}}(e,t),n[e]=r}for(let t of e){let e=cl;if(null==t&&o(t),t instanceof Yn){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function pl(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function ml(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class gl extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wl extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class yl{constructor(){this.cache=new Map([])}}function vl(){return new yl}vl(),vl();function _l(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function bl(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Hn(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=Vn(e,s),c=Vn.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(_l(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return _l(t)}}function Cl(e,t){Sl(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Sl(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.")}}function xl(e,t){try{return t.contents=function(e){const[t,n]=zn(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Cl(t.getTime(),r)}(e),!0}catch(e){return!1}}Symbol.toStringTag,Symbol.iterator;class Il{constructor(e){this.k=e}}function El(e){return new Il(e)}function kl(e){return e.k}class Tl extends Il{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ol(e,t,n,r){return new Tl(e,t,n,r)}function Al(e){return e.left}function Ml(e){return e.right}function Pl(e){return e.h}function Nl(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Tl){t=Al(i),n=e(Ml(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Dl(e,t,n){let r;if(null!=e){const t=e;r=t instanceof Tl?Pl(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof Tl?Pl(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?El(t):Ol(t,e,n,i+1)}function Rl(e,t,n){let r,o,i,s,a;if(null!=e){const t=e;a=t instanceof Tl?Pl(t):1}else a=0;let c;if(null!=n){const e=n;c=e instanceof Tl?Pl(e):1}else c=0;if(c>a+2){const i=ho(n);if(i instanceof Tl){if(r=Al(i),(null!=r?(o=r,o instanceof Tl?Pl(o):1):0)>a+1){const n=ho(Al(i));if(n instanceof Tl)return Dl(Dl(e,t,Al(n)),kl(n),Dl(Ml(n),kl(i),Ml(i)));throw new Error("internal error: Set.rebalance")}return Dl(Dl(e,t,Al(i)),kl(i),Ml(i))}throw new Error("internal error: Set.rebalance")}if(a>c+2){const r=ho(e);if(r instanceof Tl){if(i=Ml(r),(null!=i?(s=i,s instanceof Tl?Pl(s):1):0)>c+1){const e=ho(Ml(r));if(e instanceof Tl)return Dl(Dl(Al(r),kl(r),Al(e)),kl(e),Dl(Ml(e),t,n));throw new Error("internal error: Set.rebalance")}return Dl(Al(r),kl(r),Dl(Ml(r),t,n))}throw new Error("internal error: Set.rebalance")}return Dl(e,t,n)}function zl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,kl(r));if(r instanceof Tl)return o<0?Rl(zl(e,t,Al(r)),kl(r),Ml(r)):0===o?n:Rl(Al(r),kl(r),zl(e,t,Ml(r)));{const o=0|e.Compare(t,kl(r));return o<0?Ol(t,void 0,n,2):0===o?n:Ol(t,n,void 0,2)}}return El(t)}function Ll(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,kl(s));if(s instanceof Tl){if(a<0){e=r,t=o,n=Al(s);continue e}if(0===a)return!0;e=r,t=o,n=Ml(s);continue e}return 0===a}return!1}}function Bl(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Tl){Bl(n,Al(o)),n(kl(o)),e=n,t=Ml(o);continue e}n(kl(o))}break}}class jl extends er{constructor(e,t){super(),this.stack=e,this.started=t}}function Ul(e){e:for(;;){const t=e;if(Fo(t))return Bo();{const n=Ho(t),r=Vo(t);if(null!=n){const o=n;if(o instanceof Tl){e=Jo([Al(o),El(kl(o)),Ml(o)],r);continue e}return t}e=r;continue e}}}function Fl(e){return new jl(Ul(Uo(e)),!1)}function Gl(e){if(e.started){const t=e.stack;if(Fo(t))return function(){throw new Error("Enumeration already started")}();if(null!=Ho(t)){return kl(Ho(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Hl(e){let t=Fl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Gl(t),"System.Collections.IEnumerator.get_Current":()=>Gl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Fo(t))return!1;if(null!=Ho(t)){if(Ho(t)instanceof Tl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ul(Vo(t)),!Fo(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Fo(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Fl(e)},Dispose(){}}}function Wl(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(Fo(s[0]))return Fo(s[1])?0:-1;if(Fo(s[1]))return 1;if(null!=Ho(s[1]))if(null!=Ho(s[0])){const a=Ho(s[0]),c=Ho(s[1]);if(a instanceof Tl)if(null==Al(a)){if(!(c instanceof Tl)){const o=0|r.Compare(kl(a),kl(c));if(0!==o)return 0|o;e=r,t=jo(Ml(a),Vo(s[0])),n=jo(void 0,Vo(s[1]));continue e}if(null==Al(c)){const o=0|r.Compare(kl(a),kl(c));if(0!==o)return 0|o;e=r,t=jo(Ml(a),Vo(s[0])),n=jo(Ml(c),Vo(s[1]));continue e}{const s=[o,i];let a,c,u,l,f;switch(Fo(s[0])?Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2:null!=Ho(s[0])?(a=0,c=Vo(s[0]),u=Ho(s[0])):Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2,a){case 0:if(u instanceof Tl){e=r,t=Jo([Al(u),Ol(kl(u),void 0,Ml(u),0)],c),n=i;continue e}e=r,t=Jo([void 0,El(kl(u))],c),n=i;continue e;case 1:if(f instanceof Tl){e=r,t=o,n=Jo([Al(f),Ol(kl(f),void 0,Ml(f),0)],l);continue e}e=r,t=o,n=Jo([void 0,El(kl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,c,u,l,f;switch(Fo(s[0])?Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2:null!=Ho(s[0])?(a=0,c=Vo(s[0]),u=Ho(s[0])):Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2,a){case 0:if(u instanceof Tl){e=r,t=Jo([Al(u),Ol(kl(u),void 0,Ml(u),0)],c),n=i;continue e}e=r,t=Jo([void 0,El(kl(u))],c),n=i;continue e;case 1:if(f instanceof Tl){e=r,t=o,n=Jo([Al(f),Ol(kl(f),void 0,Ml(f),0)],l);continue e}e=r,t=o,n=Jo([void 0,El(kl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof Tl)){const o=0|r.Compare(kl(a),kl(c));if(0!==o)return 0|o;e=r,t=Vo(s[0]),n=Vo(s[1]);continue e}if(null==Al(c)){const o=0|r.Compare(kl(a),kl(c));if(0!==o)return 0|o;e=r,t=jo(void 0,Vo(s[0])),n=jo(Ml(c),Vo(s[1]));continue e}{const s=[o,i];let a,c,u,l,f;switch(Fo(s[0])?Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2:null!=Ho(s[0])?(a=0,c=Vo(s[0]),u=Ho(s[0])):Fo(s[1])?a=2:null!=Ho(s[1])?(a=1,l=Vo(s[1]),f=Ho(s[1])):a=2,a){case 0:if(u instanceof Tl){e=r,t=Jo([Al(u),Ol(kl(u),void 0,Ml(u),0)],c),n=i;continue e}e=r,t=Jo([void 0,El(kl(u))],c),n=i;continue e;case 1:if(f instanceof Tl){e=r,t=o,n=Jo([Al(f),Ol(kl(f),void 0,Ml(f),0)],l);continue e}e=r,t=o,n=Jo([void 0,El(kl(f))],l);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Ho(s[1]);const a=[o,i];let c,u,l,f,d;switch(Fo(a[0])?Fo(a[1])?c=2:null!=Ho(a[1])?(c=1,f=Vo(a[1]),d=Ho(a[1])):c=2:null!=Ho(a[0])?(c=0,u=Vo(a[0]),l=Ho(a[0])):Fo(a[1])?c=2:null!=Ho(a[1])?(c=1,f=Vo(a[1]),d=Ho(a[1])):c=2,c){case 0:if(l instanceof Tl){e=r,t=Jo([Al(l),Ol(kl(l),void 0,Ml(l),0)],u),n=i;continue e}e=r,t=Jo([void 0,El(kl(l))],u),n=i;continue e;case 1:if(d instanceof Tl){e=r,t=o,n=Jo([Al(d),Ol(kl(d),void 0,Ml(d),0)],f);continue e}e=r,t=o,n=Jo([void 0,El(kl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Ho(s[0])){e=r,t=Vo(s[0]),n=Vo(s[1]);continue e}{Ho(s[0]);const a=[o,i];let c,u,l,f,d;switch(Fo(a[0])?Fo(a[1])?c=2:null!=Ho(a[1])?(c=1,f=Vo(a[1]),d=Ho(a[1])):c=2:null!=Ho(a[0])?(c=0,u=Vo(a[0]),l=Ho(a[0])):Fo(a[1])?c=2:null!=Ho(a[1])?(c=1,f=Vo(a[1]),d=Ho(a[1])):c=2,c){case 0:if(l instanceof Tl){e=r,t=Jo([Al(l),Ol(kl(l),void 0,Ml(l),0)],u),n=i;continue e}e=r,t=Jo([void 0,El(kl(l))],u),n=i;continue e;case 1:if(d instanceof Tl){e=r,t=o,n=Jo([Al(d),Ol(kl(d),void 0,Ml(d),0)],f);continue e}e=r,t=o,n=Jo([void 0,El(kl(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Uo(t),Uo(n))}function Vl(e,t,n){let r=n;Bl(e=>{t[r]=e,r=r+1|0},e)}function ql(e,t){return Eo((t,n)=>zl(e,n,t),void 0,t)}function Yl(e,t){if(Jt(t))return ql(e,t);if(t instanceof Ao)return function(e,t){return Yo((t,n)=>zl(e,n,t),void 0,t)}(e,t);{const n=nn(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=zl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Xl{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|(t=0|$n(e),(n<<1)+t+631)}}finally{r.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Xl&&0===Wl(Jl(this),Kl(this),Kl(e))}toString(){return"set ["+gr("; ",Pi(e=>qn(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Wl(Jl(this),Kl(this),Kl(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 Ll(Jl(this),e,Kl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Vl(Kl(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ql(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ql(this)}GetEnumerator(){return Hl(Kl(this))}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Hl(Kl(this))}get size(){return 0|Ql(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 ef(this,e)}keys(){return Pi(e=>e,this)}values(){return Pi(e=>e,this)}entries(){return Pi(e=>[e,e],this)}forEach(e,t){const n=this;Ai(t=>{e(t,t,n)},n)}}function Zl(e,t){return new Xl(e,t)}function Jl(e){return e.comparer}function Kl(e){return e.tree}function Ql(e){return Nl(Kl(e))}function ef(e,t){return Ll(Jl(e),t,Kl(e))}function tf(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 nf(e,t){const n=2===t.tag?tf(t.fields[0],t.fields[1],!0):1===t.tag?tf(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?tf(t.fields[0],t.fields[1],!0):4===t.tag?tf(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"+gr("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:tf(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function rf(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ra(1,nf(e[0],e[1]))}return new ra(0,r.fields[0])}function of(e,t){try{return rf("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ra(1,"Given an invalid JSON: "+e.message);throw e}}const sf=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new ra(0,(e+128&255)-128):new ra(1,[n,new gl(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new ra(1,[n,new gl(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[je(r,511,!1,8,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new gl(0,"a sbyte",r)])}return new ra(1,[n,new gl(0,"a sbyte",r)])},af=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new ra(0,255&e):new ra(1,[n,new gl(1,"a byte",e,"Value was either too large or too small for a byte")]):new ra(1,[n,new gl(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[je(r,511,!0,8,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new gl(0,"a byte",r)])}return new ra(1,[n,new gl(0,"a byte",r)])},cf=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 ra(0,(e+32768&65535)-32768):new ra(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[je(o,511,!1,16,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new gl(0,n,o)])}return new ra(1,[r,new gl(0,n,o)])},uf=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 ra(0,65535&e):new ra(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[je(o,511,!0,16,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new gl(0,n,o)])}return new ra(1,[r,new gl(0,n,o)])},lf=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new ra(0,~~e):new ra(1,[n,new gl(1,"an int",e,"Value was either too large or too small for an int")]):new ra(1,[n,new gl(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[je(r,511,!1,32,new tr(()=>t,e=>{t=0|e})),t],e[0]?new ra(0,e[1]):new ra(1,[n,new gl(0,"an int",r)])}return new ra(1,[n,new gl(0,"an int",r)])},ff=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 ra(0,e>>>0):new ra(1,[r,new gl(1,n,e,"Value was either too large or too small for "+n)]):new ra(1,[r,new gl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[je(o,511,!0,32,new tr(()=>t,e=>{t=e})),t],e[0]?new ra(0,e[1]):new ra(1,[r,new gl(0,n,o)])}return new ra(1,[r,new gl(0,n,o)])};function df(e,t){if("string"==typeof t){let r,o=Rn(-621355968e5,0);return r=[Ln(t,new tr(()=>o,e=>{o=e})),o],r[0]?new ra(0,1===(n=r[1]).kind?n:Rn(n.getTime(),1)):new ra(1,[e,new gl(0,"a datetime",t)])}return new ra(1,[e,new gl(0,"a datetime",t)]);var n}function $f(e,t){if("string"==typeof t){let n,r=Cl(-621355968e5,0);return n=[xl(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new gl(0,"a datetimeoffset",t)])}return new ra(1,[e,new gl(0,"a datetime",t)])}function hf(e,t,n,r){let o;const i=n+".["+cn(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ra(1,[i,new gl(5,"a longer array. Need index `"+cn(e)+"` but there are only `"+(o=n.length,cn(o)+"` entries"),r)])}return new ra(1,[i,new gl(0,"an array",r)])}function pf(e,t,n){if(Array.isArray(n)){let r=-1;return oa(e=>Xo(e),Eo((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+cn(r)+"]",o);return 0===i.tag?new ra(0,jo(i.fields[0],n.fields[0])):new ra(1,i.fields[0])}return n},new ra(0,Bo()),n))}return new ra(1,[t,new gl(0,"a list",n)])}function mf(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Eo((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+cn(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ra(0,i)):new ra(1,s.fields[0])}return n},new ra(0,So(new Array(o.length),0,o.length,null)),o)}return new ra(1,[t,new gl(0,"an array",n)])}function gf(e,t,n){return new ra(0,e)}function wf(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ra(1,o.fields[0])}function yf(e,t,n,r){const o=t(n,r);return 1===o.tag?new ra(1,o.fields[0]):new ra(0,e(o.fields[0]))}function vf(e,t){let n;const r=e;return n=e=>t=>hf(0,r,e,t),e=>r=>wf(xn(3,e=>{let n;const r=t;return n=e=>t=>hf(1,r,e,t),t=>r=>wf((t,n,r)=>gf([e,t]),xn(2,n),t,r)}),xn(2,n),e,r)}function _f(e){return lc(e)}function bf(e){return Zl(t={Compare:(e,t)=>_n(e,t)},Yl(t,e));var t}function Cf(e,t,n,r){let o,i;return t.length!==r.length?new ra(1,[n,new gl(6,(o=0|r.length,i=0|t.length,lr(ar("Expected %i %s but got %i"))(i)(e)(o)))]):Oo(xn(3,Tn(e=>t=>r=>0===r.tag?oa(e=>jo(e,r.fields[0]),t(n,e)):r,[0,[0,2],0])),r,t,new ra(0,Bo()))}function Sf(e,t,n,r,o,i){const s=(a=e=>Vr(e)===r,ro(n).find(a));var a;if(null!=s){const n=s;return 0===i.length?new ra(0,lo(n,[])):oa(e=>lo(n,qo(e)),Cf("union fields",xo(n=>If(e,t,!1,n[1]),uo(n)),o,i))}return new ra(1,[o,new gl(6,"Cannot find case "+r+" in "+qr(n))])}function xf(e,t,n,r){const o=new tr(null),i=hc(qr(r),o,e);let s;if(ao(r)){const e=xo(e=>[bl(t,Vr(e)),If(i,t,!1,e[1])],oo(r));s=t=>n=>oa(e=>function(e,t){const n=oo(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,qo(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ra(1,[t,new gl(0,"an object",n)]):To(xn(2,e=>{const r=e[0];return o=>0===o.tag?oa(e=>jo(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),e,new ra(0,Bo()))}(e,t,n))}else if(so(r))s=e=>n=>{if("string"==typeof n)return Sf(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Sf(i,t,r,o[0],e,o.slice(1,o.length))}return new ra(1,[e,new gl(0,"a string or array",n)])};else{if(!n){let e;const t=qr(r);throw e=lr(ar("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new ra(1,[e,new gl(2,"an extra coder for "+qr(r),t)])}return o.contents=s,s}function If(e,t,n,r){let o;const i=qr(r),s=pc(i,e);if(null==s){if(Yr(r)){const n=If(e,t,!1,Xr(r));return e=>t=>mf(xn(2,n),e,t)}if(Jr(r)){const e=qr(Qr(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=sf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=af(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=cf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,(a=(a=e)<0&&null!=c&&10!==c?65535+a+1:a).toString(c))):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}var a,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=uf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=lf(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,cn(e))):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ff(o)(i);if(1===s.tag)return new ra(1,s.fields[0]);{const e=s.fields[0];return Ti(e,eo(n),{Equals:(e,t)=>e===t,GetHashCode:e=>fn(e)})?new ra(0,no(n,e.toString())):new ra(1,[o,new gl(1,qr(n),i,"Unkown value provided for the enum")])}};{const e=qr(r),t=fr(ar("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(Zr(r)){if(co(r)){const n=xo(n=>If(e,t,!1,n),io(r));return e=>t=>Array.isArray(t)?oa(e=>qo(e),Cf("tuple elements",n,e,t)):new ra(1,[e,new gl(0,"an array",t)])}{const i=qr(Kr(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=If(e,t,!0,Pr(r)[0]);return e=>t=>{return r=xn(2,n),o=e,null==(i=t)?new ra(0,void 0):oa(e=>$o(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=If(e,t,!1,Pr(r)[0]);return e=>t=>pf(xn(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=If(e,t,!1,Pr(r)[0]),i=If(e,t,!1,Pr(r)[1]);let s;const a=Ko([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ra(1,[n,new gl(0,"an object",r)]):Oi((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 ra(0,jo([s.fields[0],e.fields[0]],o.fields[0])):new ra(1,e.fields[0])}return new ra(1,s.fields[0])}return o},new ra(0,Bo()),Object.keys(r))}(xn(2,n),xn(2,i),e,t),(o=vf(xn(2,n),xn(2,i)),e=>t=>pf(xn(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Fo(o))return new ra(1,[n,new gl(7,i)]);{const s=rf(n,xn(2,Ho(o)),r);if(1===s.tag){e=Vo(o),t=ei(i,Uo(s.fields[0]));continue e}return new ra(0,s.fields[0])}}})(a,Bo());var n,r},e=>t=>yf(e=>_f(e),xn(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=If(e,t,!1,Pr(r)[0]);return e=>t=>{const r=mf(xn(2,n),e,t);return 0===r.tag?new ra(0,bf(r.fields[0])):new ra(1,r.fields[0])}}return xf(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ra(0,r):new ra(1,[n,new gl(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new ra(0,void 0):new ra(1,[n,new gl(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new ra(0,r):new ra(1,[n,new gl(0,"a string",r)]);var n,r}:"System.SByte"===i?sf:"System.Byte"===i?af:"System.Int16"===i?cf:"System.UInt16"===i?uf:"System.Int32"===i?lf:"System.UInt32"===i?ff:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ra(0,r):new ra(1,[n,new gl(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ra(0,r):new ra(1,[n,new gl(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>df(e,t):"System.DateTimeOffset"===i?e=>t=>$f(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Ec(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new gl(0,"a timespan",t)])}return new ra(1,[e,new gl(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=[yu(t,new tr(()=>r,e=>{r=e})),r],n[0]?new ra(0,n[1]):new ra(1,[e,new gl(0,"a guid",t)])}return new ra(1,[e,new gl(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new ra(0,e):xf(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function Ef(e){return null!=e?mc((e,t)=>new tr(t[1]),e.Coders):gc()}function kf(e,t,n){const r=go(e,new wl(0)),o=ho(n).ResolveType();return If(Ef(t),r,!1,o)}function Tf(e,t,n,r){return of(xn(2,kf(t,n,r)),e)}function Of(e){return qu(0,()=>{const t=na.Bind(al(e),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(t,t=>{let n;const r=t;return 1===r.tag?na.Return(new ra(1,r.fields[0])):na.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?na.Bind(al(e),e=>na.Return(new ra(0,e))):Vu(0,n)))}))})}function Af(e){return qu(0,()=>{const t=Of(ol(new Yu(1),rl(function(e){const t=Bc(e);return lr(ar("%s/workflows/public-backend/invites/%s/activate"))(Mu)(t)}(e))));return na.Delay(()=>na.Bind(t,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>function(e){switch(e.tag){case 1:return new Ia(1);case 2:return new Ia(2);case 3:return new Ia(3);case 4:return new Ia(4,Aa(e.fields[0]));default:return new Ia(0,Aa(e.fields[0]))}}(e),Tf(t.responseText,new wl(1),void 0,{ResolveType:Pa}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Mf(e,t){return qu(0,()=>{const n=Of(ol(new Yu(1),rl(function(e,t){const n=encodeURIComponent(t),r=Bc(e);return lr(ar("%s/workflows/public-backend/invites/%s/confirm?mfa=%s"))(Mu)(r)(n)}(e,t))));return na.Delay(()=>na.Bind(n,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>za(e),Tf(t.responseText,new wl(1),void 0,{ResolveType:Ra}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Pf(e){return Af(e)}function Nf(e,t){let n,r,o,i,s,a,c;switch(e.tag){case 1:{const n=e.fields[0];let r,o;switch(3===n.tag?r=1:0===n.tag||1===n.tag?r=2:0===n.fields[0].tag?(r=0,o=n.fields[0].fields[0]):r=1,r){case 0:{let e,n;switch(o.tag){case 4:e=0,n=o.fields[0];break;case 1:e=1;break;case 2:e=2;break;case 3:e=3;break;default:e=0,n=o.fields[0]}switch(e){case 0:return[new Kc(t.InviteToken,n.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Zc(1),n.CssOverrides),su()];case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Zc(2,"We couldn't find this invite. Reach out to your employer to get another one."),t.CssOverrides),su()];case 2:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Zc(2,"Your invite has expired. Reach out to your employer to get another one."),t.CssOverrides),su()];case 3:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Zc(2,"Your invite has been locked. Try refreshing this page in 30 minutes."),t.CssOverrides),su()]}}case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Zc(2,"Oops, looks like something went wrong. Try refreshing this page."),t.CssOverrides),su()];case 2:return[t,su()]}}case 2:{const a=e.fields[0];let c,u;switch(3===a.tag?c=1:0===a.tag||1===a.tag?c=2:0===a.fields[0].tag?(c=0,u=a.fields[0].fields[0]):c=1,c){case 0:switch(u.tag){case 2:return[new Kc(t.InviteToken,t.MaskedEmail,(n=t.MfaCodeForm,{Error:"That code has expired. You should get another one soon.",Input:n.Input,IsDirty:n.IsDirty,IsTouched:n.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),uu(new Jc(0))];case 1:return[new Kc(t.InviteToken,t.MaskedEmail,(r=t.MfaCodeForm,{Error:"Code doesn't match.",Input:r.Input,IsDirty:r.IsDirty,IsTouched:r.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];case 4:return[new Kc(t.InviteToken,t.MaskedEmail,(o=t.MfaCodeForm,{Error:"Looks like the code hasn't been issued. Reach out to your employer.",Input:o.Input,IsDirty:o.IsDirty,IsTouched:o.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];case 3:return[new Kc(t.InviteToken,t.MaskedEmail,(i=t.MfaCodeForm,{Error:"Invite has been locked. Check back in 30 minutes.",Input:i.Input,IsDirty:i.IsDirty,IsTouched:i.IsTouched}),!1,t.CanRetry,t.Ui,t.CssOverrides),su()];default:return[t,(s=Ru(new Du(1)),Uo(e=>{Cu(Uo(s+function(e){const t=gr("&",ti(e=>gr("=",[encodeURIComponent(e[0]),encodeURIComponent(e[1])]),e));return""===t?"":"?"+t}(Uo(["code",u.fields[0].AuthCode]))),1,2)}))]}case 1:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!1,t.CanRetry,new Zc(2,"Oops, looks like something went wrong. Please try again."),t.CssOverrides),su()];case 2:return[new Kc(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!0,t.CanRetry,t.Ui,t.CssOverrides),su()]}}case 3:{const n=e.fields[0];return[(a=Dc(n),1===a.tag?new Kc(t.InviteToken,t.MaskedEmail,{Error:"Code should contain exactly 6 digits.",Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides):new Kc(t.InviteToken,t.MaskedEmail,{Error:void 0,Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides)),su()]}case 4:return[new Kc(t.InviteToken,t.MaskedEmail,(c=t.MfaCodeForm,{Error:c.Error,Input:c.Input,IsDirty:c.IsDirty,IsTouched:!0}),t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides),su()];default:return[t,uu(new Jc(1,vc(Pf(t.InviteToken),[])))]}}function Df(e,t){return na.Delay(()=>na.Bind(pa(e),()=>na.ReturnFrom(t)))}class Rf{constructor(e,t){const n=new tr(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const r=nn(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Gf(n.contents,e[0],e[1])}}finally{r.Dispose()}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return nn(this)}GetEnumerator(){return nn(vi(this.hashMap.values()))}[Symbol.iterator](){return rn(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Gf(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){Bf(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=Lf(this,e[0]);let n;switch(n=null!=t&&gn(t[1],e[1])?0:1,n){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Mi((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|jf(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=this,n=Lf(t,e[0]);return null!=n&&(gn(n[1],e[1])&&Wf(t,e[0]),!0)}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(e,t){Gf(this,e,t)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(e){return Hf(this,e)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(e){return Uf(this,e)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(e,t){Ff(this,e,t)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const e=this;return Si(yi(()=>Pi(e=>e[0],e)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(e){return Wf(this,e)}"System.Collections.Generic.IDictionary`2.TryGetValue23A0B95A"(e,t){const n=Lf(this,e);if(null!=n){const e=n;return t.contents=e[1],!0}return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const e=this;return Si(yi(()=>Pi(e=>e[1],e)))}get size(){return 0|jf(this)}clear(){Bf(this)}delete(e){return Wf(this,e)}entries(){return Pi(e=>[e[0],e[1]],this)}get(e){return Uf(this,e)}has(e){return Hf(this,e)}keys(){return Pi(e=>e[0],this)}set(e,t){return Ff(this,e,t),this}values(){return Pi(e=>e[1],this)}forEach(e,t){const n=this;Ai(t=>{e(t[1],t[0],n)},n)}}function zf(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[pl(e.hashMap,n,new tr(()=>o,e=>{o=e})),o],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n[0]))]:[!1,n,-1]}function Lf(e,t){const n=zf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return ml(e.hashMap,n[1])[n[2]];case 1:return}}function Bf(e){e.hashMap.clear()}function jf(e){let t=0,n=nn(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 Uf(e,t){const n=Lf(e,t);if(null!=n)return n[1];throw new Error("The item was not found in collection")}function Ff(e,t,n){const r=zf(e,t);let o;switch(o=r[0]&&r[2]>-1?0:1,o){case 0:ml(e.hashMap,r[1])[r[2]]=[t,n];break;case 1:if(r[0]){ml(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function Gf(e,t,n){const r=zf(e,t);let o;switch(o=r[0]&&r[2]>-1?0:1,o){case 0:{const e=$r("An item with the same key has already been added. Key: {0}",t);throw new Error(e)}case 1:if(r[0]){ml(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function Hf(e,t){const n=zf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Wf(e,t){const n=zf(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return ml(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Vf extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProfileId"]}}function qf(e){return new Vf(0,e)}function Yf(e){return e.fields[0]}class Xf extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessStepId"]}}class Zf extends er{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}const Jf=new Zf(new Xf(0,"personal-details"),"Personal Details","apollo-personal-details-app"),Kf=new Zf(new Xf(0,"emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),Qf=new Zf(new Xf(0,"bank"),"Bank","bank-component"),ed=new Zf(new Xf(0,"tax"),"Tax","tax-component"),td=new Zf(new Xf(0,"super"),"Super","super-selection-app"),nd=new Zf(new Xf(0,"pay-enrolment"),"Pay Enrolment","workplace-link"),rd=Ko([Jf,Kf,Qf,ed,td,nd]);function od(e){const t=new Xf(0,e);return function(e){return ai(t=>gn(t.Id,e),rd)}(t)?new ra(0,t):new ra(1,"Invalid step Id.")}function id(e){return e.fields[0]}class sd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessConfigId"]}}class ad extends er{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}const cd=new ad(new sd(0,wu("00000000-0000-0000-0000-000000000000")),"onboarding-default",Ko([Qf,ed,td])),ud=new ad(new sd(0,wu("00000000-0000-0000-0000-000000000001")),"PEBTS",Ko([Jf,Kf,Qf,ed,td])),ld=new ad(new sd(0,wu("00000000-0000-0000-0000-000000000002")),"PS",Ko([Jf,td])),fd=new ad(new sd(0,wu("00000000-0000-0000-0001-000000000000")),"Pay Enrolment",Uo(nd)),dd=new Rf([[cd.Id,cd],[ud.Id,ud],[ld.Id,ld],[fd.Id,fd]],{Equals:(e,t)=>gn(e,t),GetHashCode:e=>hn(e)});function $d(e){return e.fields[0]}class hd extends er{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class pd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class md extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessInstanceId"]}}function gd(e){return new md(0,e)}function wd(e){return e.fields[0]}class yd extends er{constructor(e,t){super(),this.Name=e,this.Value=t}}class vd extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagName"]}}class _d extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagValue"]}}function bd(e,t){return Gu(0,()=>{return ia(e=>{return Hu(0,mr(n=t)?new ra(1,"Tag value is empty"):n.length<100?new ra(0,new _d(0,n)):new ra(1,"Tag value is too long"),t=>new yd(e,t));var n},mr(n=e)?new ra(1,"Tag name is empty"):n.length<100?new ra(0,new vd(0,n)):new ra(1,"Tag name is too long"));var n})()}class Cd extends er{constructor(e,t,n,r,o,i,s){super(),this.Id=e,this.Configuration=t,this.DateCreated=n,this.Status=r,this.Invite=o,this.Tags=i,this.Creator=s}}function Sd(e,t){const n=ri(t=>0===function(...e){switch(e.length){case 2:return sr(e[0],e[1],!1);case 3:return sr(e[0],e[1],e[2]);case 4:return sr(e[0],e[1],!0===e[2]);case 5:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return sr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t.ComponentTagName,e,5),t.Configuration.Steps);return Bu(lr(cr("Invalid ComponentTagName %A%P()",[e])),n)}function xd(e){const t=e.Status;switch(t.tag){case 0:case 2:case 3:return;default:return Wo(ii(e=>!ai(t=>gn(e.Id,t[0]),t.fields[0].CompletedSteps),e.Configuration.Steps))}}function Id(){return po(document.getElementById("external-loading-page-container"))}function Ed(){return null!=Id()}var kd,Td=[];!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(kd||(kd={}));var Od,Ad=function(e){return Object.freeze(e)},Md=function(e,t){this.inlineSize=e,this.blockSize=t,Ad(this)},Pd=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ad(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Nd=function(e){return e instanceof SVGElement&&"getBBox"in e},Dd=function(e){if(Nd(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},Rd=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},zd="undefined"!=typeof window?window:{},Ld=new WeakMap,Bd=/auto|scroll/,jd=/^tb|vertical/,Ud=/msie|trident/i.test(zd.navigator&&zd.navigator.userAgent),Fd=function(e){return parseFloat(e||"0")},Gd=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Md((n?t:e)||0,(n?e:t)||0)},Hd=Ad({devicePixelContentBoxSize:Gd(),borderBoxSize:Gd(),contentBoxSize:Gd(),contentRect:new Pd(0,0,0,0)}),Wd=function(e,t){if(void 0===t&&(t=!1),Ld.has(e)&&!t)return Ld.get(e);if(Dd(e))return Ld.set(e,Hd),Hd;var n=getComputedStyle(e),r=Nd(e)&&e.ownerSVGElement&&e.getBBox(),o=!Ud&&"border-box"===n.boxSizing,i=jd.test(n.writingMode||""),s=!r&&Bd.test(n.overflowY||""),a=!r&&Bd.test(n.overflowX||""),c=r?0:Fd(n.paddingTop),u=r?0:Fd(n.paddingRight),l=r?0:Fd(n.paddingBottom),f=r?0:Fd(n.paddingLeft),d=r?0:Fd(n.borderTopWidth),$=r?0:Fd(n.borderRightWidth),h=r?0:Fd(n.borderBottomWidth),p=f+u,m=c+l,g=(r?0:Fd(n.borderLeftWidth))+$,w=d+h,y=a?e.offsetHeight-w-e.clientHeight:0,v=s?e.offsetWidth-g-e.clientWidth:0,_=o?p+g:0,b=o?m+w:0,C=r?r.width:Fd(n.width)-_-v,S=r?r.height:Fd(n.height)-b-y,x=C+p+v+g,I=S+m+y+w,E=Ad({devicePixelContentBoxSize:Gd(Math.round(C*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:Gd(x,I,i),contentBoxSize:Gd(C,S,i),contentRect:new Pd(f,c,C,S)});return Ld.set(e,E),E},Vd=function(e,t,n){var r=Wd(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case kd.DEVICE_PIXEL_CONTENT_BOX:return s;case kd.BORDER_BOX:return o;default:return i}},qd=function(e){var t=Wd(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Ad([t.borderBoxSize]),this.contentBoxSize=Ad([t.contentBoxSize]),this.devicePixelContentBoxSize=Ad([t.devicePixelContentBoxSize])},Yd=function(e){if(Dd(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Xd=function(){var e=1/0,t=[];Td.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new qd(t.target),o=Yd(t.target);r.push(n),t.lastReportedSize=Vd(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Zd=function(e){Td.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Yd(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Jd=function(){var e,t=0;for(Zd(t);Td.some((function(e){return e.activeTargets.length>0}));)t=Xd(),Zd(t);return Td.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:"ResizeObserver loop completed with undelivered notifications."}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message="ResizeObserver loop completed with undelivered notifications."),window.dispatchEvent(e)),t>0},Kd=[],Qd=function(e){if(!Od){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Kd.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Od=function(){n.textContent=""+(t?t--:t++)}}Kd.push(e),Od()},e$=0,t$={attributes:!0,characterData:!0,childList:!0,subtree:!0},n$=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],r$=function(e){return void 0===e&&(e=0),Date.now()+e},o$=!1,i$=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!o$){o$=!0;var n,r=r$(e);n=function(){var n=!1;try{n=Jd()}finally{if(o$=!1,e=r-r$(),!e$)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Qd((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,t$)};document.body?t():zd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),n$.forEach((function(t){return zd.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),n$.forEach((function(t){return zd.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),s$=function(e){!e$&&e>0&&i$.start(),!(e$+=e)&&i$.stop()},a$=function(){function e(e,t){this.target=e,this.observedBox=t||kd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=Vd(this.target,this.observedBox,!0);return e=this.target,Nd(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),c$=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},u$=new WeakMap,l$=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},f$=function(){function e(){}return e.connect=function(e,t){var n=new c$(e,t);u$.set(e,n)},e.observe=function(e,t,n){var r=u$.get(e),o=0===r.observationTargets.length;l$(r.observationTargets,t)<0&&(o&&Td.push(r),r.observationTargets.push(new a$(t,n&&n.box)),s$(1),i$.schedule())},e.unobserve=function(e,t){var n=u$.get(e),r=l$(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Td.splice(Td.indexOf(n),1),n.observationTargets.splice(r,1),s$(-1))},e.disconnect=function(e){var t=this,n=u$.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),d$=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");f$.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rd(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");f$.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Rd(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");f$.unobserve(this,e)},e.prototype.disconnect=function(){f$.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class $$ extends er{constructor(e,t,n){super(),this.instanceId=0|e,this.name=t,this.type=n}}function h$(e){return new $$(wd(e.Id),e.Configuration.Name,$d(e.Configuration.Id))}function p$(e){Ed()||window.parent.postMessage(e,"*")}function m$(){p$(function(e,t){const n={type:"contentResized",sender:"flare"};return n.height=e,n.width=t,n}(document.body.offsetHeight,-1))}function g$(e,t,n){const r=function(e,t){const n=ri(t=>gn(t.Id,e),t.Configuration.Steps);return Bu(lr(cr("Invalid ProcessStep Id %A%P()",[e])),n)}(e,t);1===r.tag||p$(function(e,t,n,r){const o={type:"stepSubmitSuccess",sender:"flare"};return o.workflow=h$(n),o.profileId=Yf(r),o.step={name:t,type:id(e)},o}(e,r.fields[0].DisplayName,t,n))}function w$(e,t){p$(function(e,t){const n={type:"workflowSubmitSuccess",sender:"flare"};return n.workflow=h$(e),n.profileId=Yf(t),n}(e,t))}function y$(e){Ed()&&function(e,t){ma(na.Delay(()=>na.Bind(pa(e),()=>(t(),na.Zero()))))}(e,()=>{Ai(e=>{document.body.removeChild(e)},mo(Id())),p$(function(){const e={type:"appReady",sender:"flare"};return e}()),m$()})}function v$(e){const t=Sa((n=e.inviteCode,[new Kc(n,void 0,{Error:void 0,Input:"",IsDirty:!1,IsTouched:!1},!1,!1,new Zc(0),Bo()),su()]),(e,t)=>Nf(e,t),[]);var n;const r=t[0],o=t[1];Fs(_c(()=>Df(1e3,Pf(r.InviteToken)),e=>{o(new Jc(1,e))}));const i=_c(()=>{return Df(500,(e=r.InviteToken,t=r.MfaCodeForm.Input,Mf(e,t)));var e,t},e=>{o(new Jc(2,e))});return Fs(()=>{y$(0)}),$("div",{className:gr(" ",["container","vh-100","fade-in"]),children:vr.Children.toArray(Array.from(xi(yi(()=>ki(Pi(e=>$("style",{children:[e]}),r.CssOverrides),yi(()=>Ci($("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:vr.Children.toArray([$("div",{className:"card-body",children:vr.Children.toArray(Array.from(xi(yi(()=>{let e,t;return ki((e=r.Ui,2===e.tag?Ci($("div",{className:gr(" ",["pt-4","text-center","fade-in"]),children:vr.Children.toArray([$("i",{className:gr(" ",["fad","fa-5x","fa-exclamation-circle","text-danger"])}),$("h4",{className:gr(" ",["my-4","font-weight-normal","text-danger"]),children:"This doesn't look right"}),$("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:e.fields[0]})])})):1===e.tag?Ci($("form",{className:gr(" ",["pt-4","text-center","fade-in"]),onSubmit:e=>{e.preventDefault(),i()},children:vr.Children.toArray([$("i",{className:gr(" ",["fad","fa-5x","fa-shield-check","text-primary"])}),$("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Authenticate Your Account"}),$("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:vr.Children.toArray(["Protecting your account is our top priority. Check your email ",(t=go(r.MaskedEmail,""),$("strong",{children:[t]}))," for the code that we have just sent you."])}),$("div",{className:gr(" ",["input-group","input-group-lg","has-validation"]),children:vr.Children.toArray([$("input",{"aria-describedby":gr(" ",["button-verify"]),"aria-label":"Authorization code",autoFocus:!0,className:gr(" ",ei(Uo("form-control"),r.MfaCodeForm.IsDirty&&r.MfaCodeForm.IsTouched&&null!=r.MfaCodeForm.Error?Uo("is-invalid"):Bo())),placeholder:"Enter the code here",required:!0,maxLength:6,type:"text",onChange:e=>{o(new Jc(3,e.target.value))},onBlur:e=>{o(new Jc(4))}}),$("div",{className:"input-group-append",children:vr.Children.toArray([$("button",Cn(xi(yi(()=>ki(Ci(["className",gr(" ",["btn","btn-lg","btn-dark"])]),yi(()=>ki(Ci(["id","button-verify"]),yi(()=>ki(Ci(["type","submit"]),yi(()=>ki(Ci(["disabled",!(!r.MfaCodeForm.IsTouched||null==r.MfaCodeForm.Error)||r.IsValidationPending]),yi(()=>r.IsValidationPending?Ci(["children",vr.Children.toArray([$("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","px-3"]),children:vr.Children.toArray([$("div",{className:gr(" ",["dot-flashing"])})])})])]):Ci(["children","Verify"])))))))))))))])}),$("div",{className:"invalid-feedback text-left",children:go(r.MfaCodeForm.Error,"Incorrect validation code")})])})])})):Ci($("div",{className:gr(" ",["pt-4","text-center"]),children:vr.Children.toArray([$("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","py-2"]),children:vr.Children.toArray([$("div",{className:gr(" ",["dot-flashing my-4"])})])}),$("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Verifying your invite"}),$("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"Hold tight. It won't be long."})])}))),yi(()=>{let e,t;return Ci($("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:vr.Children.toArray([(e="Flare HR Pty Ltd © 2015-"+(t=jn(),Gn(t)),$("small",{children:[e]}))])}))}))}))))})])})])}))))))))})}function _$(){return Fs(()=>{y$(0)}),$("div",{className:gr(" ",["text-center","mt-5"]),children:vr.Children.toArray([$("div",{className:gr(" ",["row","justify-content-center"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","col-lg-4"]),children:vr.Children.toArray([$("h4",{children:["You have been logged out of your onboarding due to inactivity"]}),$("br",{}),$("p",{children:["To continue your onboarding, please find your onboarding invite email and click the link again."]})])})])})])})}function b$(e){this.message=e}b$.prototype=new Error,b$.prototype.name="InvalidCharacterError";var C$="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new b$("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,s="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function S$(e){this.message=e}S$.prototype=new Error,S$.prototype.name="InvalidTokenError";var x$=function(e,t){if("string"!=typeof e)throw new S$("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(C$(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return C$(t)}}(e.split(".")[n]))}catch(e){throw new S$("Invalid token specified: "+e.message)}};function I$(e){return t=void 0,n=e,na.Bind(n,e=>na.Return(ju(t,e)));var t,n}function E$(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Fo(i))return r;{const s=Gu(0,()=>ia(e=>Hu(0,r,t=>ei(t,Uo(e))),o(Ho(i))))();if(1===s.tag)return s;e=s,t=o,n=Vo(i);continue e}}}(new ra(0,Bo()),e,t)}function k$(e){return E$(e=>e,e)}function T$(e,t){return null!=t?oa(e=>$o(e),e(ho(t))):new ra(0,void 0)}class O$ extends er{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}function A$(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteBrandingDto",[],O$,()=>[["CompanyName",jr(Gr)],["Logo",jr(Gr)],["Support",jr(zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SupportDto",[],M$,()=>[["Email",jr(Gr)],["Phone",jr(Gr)]]))]])}class M$ extends er{constructor(e,t){super(),this.Email=e,this.Phone=t}}function P$(e){return Gu(0,()=>ia(t=>ia(n=>Hu(0,T$(e=>function(e){return Gu(0,()=>ia(t=>Hu(0,T$(Yc,e.Phone),e=>new Hc(t,e)),T$(qc,e.Email)))()}(e),e.Support),e=>new Uc(n,t,e)),T$(e=>function(e){return mr(e)?new ra(1,"Invalid company name."):new ra(0,new Gc(0,e))}(e),e.CompanyName)),T$(e=>Xc(e),e.Logo)))()}class N$ extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}class D$ extends er{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}function R$(e){return Gu(0,()=>ia(t=>ia(n=>Hu(0,T$(e=>P$(e),e.Branding),r=>new jc(t,e.DateIssued,n,r)),T$(e=>function(e){return Gu(0,()=>Hu(0,Dc(e.Code),t=>new Rc(t,e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)))()}(e),e.SecondFactor)),Lc(e.Code)))()}class z$ extends er{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}function L$(e){return Gu(0,()=>ia(t=>{const n=new Zf(t,e.DisplayName,e.ComponentTagName);return si(n,rd,{Equals:(e,t)=>gn(e,t),GetHashCode:e=>hn(e)})?new ra(0,n):new ra(1,"Step is not registered.")},od(e.Id)))()}class B$ extends er{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class j$ extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}function U$(e){switch(e.tag){case 1:{const t=function(e){return Gu(0,()=>Hu(0,k$(ti(e=>Gu(0,()=>Hu(0,od(e[0]),t=>[t,e[1]]))(),e.CompletedSteps)),t=>new hd(e.ActivatedDates,t)))()}(e.fields[0]);return 1===t.tag?new ra(1,t.fields[0]):new ra(0,new pd(1,t.fields[0]))}case 2:return new ra(0,new pd(2,e.fields[0]));case 3:return new ra(0,new pd(3,e.fields[0]));default:return new ra(0,new pd(0))}}class F$ extends er{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}function G$(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],F$,()=>[["Id",Rr("System.Guid")],["Name",Gr],["Steps",Ur(zr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],z$,()=>[["Id",Gr],["DisplayName",Gr],["ComponentTagName",Gr]]))]])}function H$(e){return Gu(0,()=>ia(t=>Hu(0,function(e){const t=new sd(0,e);return Ti(t,dd.keys(),{Equals:(e,t)=>gn(e,t),GetHashCode:e=>hn(e)})?new ra(0,t):new ra(1,"Invalid Type")}(e.Id),n=>new ad(n,e.Name,t)),k$(ti(e=>L$(e),e.Steps))))()}class W$ extends er{constructor(e,t){super(),this.Name=e,this.Value=t}}function V$(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],W$,()=>[["Name",Gr],["Value",Gr]])}function q$(e){return bd(e.Name,e.Value)}class Y$ extends er{constructor(e,t,n,r,o,i,s){super(),this.Id=0|e,this.DateCreated=t,this.Configuration=n,this.Status=r,this.Invite=o,this.Tags=i,this.Creator=s}}function X$(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],Y$,()=>[["Id",Hr],["DateCreated",Rr("System.DateTime")],["Configuration",G$()],["Status",Lr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],j$,()=>[[],[["Item",zr("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],B$,()=>[["ActivatedDates",Ur(Rr("System.DateTime"))],["CompletedSteps",Ur(Br(Gr,Rr("System.DateTime")))]])]],[["Item",Rr("System.DateTime")]],[["Item",Rr("System.DateTime")]]])],["Invite",jr(zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],D$,()=>[["Code",Gr],["DateIssued",Rr("System.DateTime")],["SecondFactor",jr(zr("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],N$,()=>[["Code",Gr],["DateIssued",Rr("System.DateTime")],["NumberOfAttempts",Hr],["DateOfLastAttempt",jr(Rr("System.DateTime"))]]))],["Branding",jr(A$())]]))],["Tags",jr(Ur(V$()))],["Creator",jr(Gr)]])}function Z$(e){return Gu(0,()=>ia(t=>{const n=t;return ia(t=>{let r;const o=t;return ia(t=>ia(r=>Hu(0,T$(e=>k$(ti(e=>q$(e),e)),e.Tags),o=>new Cd(gd(e.Id),n,e.DateCreated,t,r,o,wo(e=>qf(e),e.Creator))),T$(e=>R$(e),e.Invite)),1===o.tag?(r=o.fields[0],Gu(0,()=>Hu(0,k$(ti(e=>{const t=[e[0],e[1]],r=t[0];return ai(e=>gn(e.Id,r),n.Steps)?new ra(0,[r,t[1]]):new ra(1,"Step id is not configured for this Process Instance.")},r.CompletedSteps)),e=>new pd(1,new hd(r.ActivatedDates,e))))()):new ra(0,o))},U$(e.Status))},H$(e.Configuration)))()}class J$ extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}class K$ extends er{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstance=t}}class Q$ extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}const eh=e=>Z$(e);class th extends er{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstanceDto=t}}function nh(){return zr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],th,()=>[["CssOverrides",Ur(Gr)],["ProcessInstanceDto",X$()]])}class rh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["WorkflowInstanceStepActivated"]}}function oh(){return Lr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],rh,()=>[[["Item",Gr]]])}class ih extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","PayEnrolment"]}}function sh(e){return gn(e,Jf)?new ra(0,new ih(0)):gn(e,Kf)?new ra(0,new ih(1)):gn(e,Qf)?new ra(0,new ih(2)):gn(e,ed)?new ra(0,new ih(3)):gn(e,td)?new ra(0,new ih(4)):gn(e,nd)?new ra(0,new ih(5)):new ra(1,"Invalid step")}function ah(e){switch(e.tag){case 1:return Kf;case 2:return Qf;case 3:return ed;case 4:return td;case 5:return nd;default:return Jf}}function ch(e){return k$(ti(e=>sh(e),function(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return Bo();default:{const n=ti(e=>e[0],t.fields[0].CompletedSteps);return ii(e=>si(e.Id,n,{Equals:(e,t)=>gn(e,t),GetHashCode:e=>hn(e)}),e.Configuration.Steps)}}}(e)))}function uh(e){switch(e.tag){case 1:return"Emergency Contacts";case 2:return"Bank Details";case 3:return"Tax Details";case 4:return"Super Selection";case 5:return nd.DisplayName;default:return"Personal Details"}}function lh(e){return k$(ti(e=>sh(e),e.Configuration.Steps))}class fh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initialising","StepList","Step","CompletedAllSteps","Oops","AllDone"]}}class dh extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ActivateCallback","ShowView","StepCompletionEventCallback","CompleteStep","CompleteWorkflow","SendAnalyticsEvent","AppendTrailingSlashToUrl"]}}class $h extends er{constructor(e,t,n,r,o){super(),this.ProfileId=e,this.ProcessInstanceId=t,this.ProcessInstance=n,this.CurrentView=r,this.CssOverrides=o}}function hh(e){return Array.from(e)}function ph(e){return String(e)}function mh(e){return String(e)}function gh(e){return String(e)}function wh(e){return String(e)}function yh(){return null}function vh(e,t){return JSON.stringify(t,xn(2,null),$o(e))}function _h(e){return t=>{return n=wo(e,t),r=()=>null,null!=n?ho(n):r();var n,r}}function bh(e,t,n,r){const o=new tr(null),i=hc(qr(r),o,e);let s;if(ao(r)){const e=xo(e=>{const r=bl(t,Vr(e)),o=Ch(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}},oo(r));s=t=>Oi(xn(2,Tn(e=>n=>n(t,e),[0,[0,2]])),{},e)}else{if(!so(r)){let e;const t=qr(r);throw e=lr(ar("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=ro(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],c=0|a.length;if(0===c)return Vr(s);{const e=0|c,r=uo(s),o=So(new Array(e+1),0,e+1,null);o[0]=Vr(s);for(let s=1;s<=e;s++){const e=Ch(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Ch(e,t,n,r){const o=qr(r),i=pc(o,e);if(null==i){if(Yr(r)){const o=Ch(e,t,n,Xr(r));return e=>hh(Pi(o,e))}if(Jr(r)){const e=qr(Qr(r));if("System.SByte"===e)return e=>ph(e);if("System.Byte"===e)return e=>mh(e);if("System.Int16"===e)return e=>gh(e);if("System.UInt16"===e)return e=>wh(e);if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=qr(r),t=fr(ar("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(Zr(r)){if(co(r)){const o=xo(r=>Ch(e,t,n,r),io(r));return e=>hh(Ni((e,t)=>o[e](t),e))}{const o=qr(Kr(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new on(()=>_h(Ch(e,t,n,Pr(r)[0])));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=Ch(e,t,n,Pr(r)[0]);return e=>hh(Pi(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Pr(r)[0],i=Ch(e,t,n,Pr(r)[1]);if("System.String"===qr(o)||"System.Guid"===qr(o))return e=>Oi((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e},{},e);{let r;const s=Ch(e,t,n,o);return r=e=>s(e),e=>hh(Pi(e=>{const t=e;return[r(t[0]),i(t[1])]},e))}}return bh(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?yh:"System.String"===o?e=>e:"System.SByte"===o?e=>ph(e):"System.Byte"===o?e=>mh(e):"System.Int16"===o?e=>gh(e):"System.UInt16"===o?e=>wh(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=>Dn(e,"O"):"System.DateTimeOffset"===o?e=>Dn(e,"O"):"System.TimeSpan"===o?e=>Ic(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:bh(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Sh(e){return null!=e?mc((e,t)=>new tr(t[0]),e.Coders):gc()}function xh(e,t,n,r,o,i){return vh(e,function(e,t,n,r){const o=go(e,new wl(0)),i=go(n,!0),s=ho(r).ResolveType();return Ch(Sh(t),o,i,s)}(n,r,o,i)(t))}function Ih(e,t){return qu(0,()=>{const n=il((r=lr(ar("Bearer %s"))(e),new Xu(0,"Authorization",r)),t);var r;const o=na.Bind(al(n),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(o,e=>{let t;const r=e;return 1===r.tag?na.Return(new ra(1,r.fields[0])):na.ReturnFrom((t=r.fields[0],429===t.statusCode||t.statusCode>=500?na.Bind(al(n),e=>na.Return(new ra(0,e))):Vu(0,t)))}))})}function Eh(e,t,n){return qu(0,()=>{let r;const o=Ih(n,(r=sl(new Zu(1,xh(0,Uo(function(e){return 1===e.tag?new Q$(1):new Q$(0,id(e.fields[0]))}(e)),new wl(1),void 0,void 0,{ResolveType:()=>Ur(Lr("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Q$,()=>[[["Item",Gr]],[]]))})),ol(new Yu(1),rl(function(e){const t=0|wd(e);return lr(ar("%s/workflows/backend/%i"))(Mu)(t)}(t)))),il(el("application/json"),r)));return na.Delay(()=>na.Bind(o,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(ia(eh,Tf(t.responseText,new wl(1),void 0,{ResolveType:X$}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function kh(e,t){return qu(0,()=>{const n=Ih(t,ol(new Yu(1),rl(function(e){const t=0|wd(e);return lr(ar("%s/workflows/backend/process-instances/%i/activate"))(Mu)(t)}(e))));return na.Delay(()=>na.Bind(n,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(oa(e=>function(e){return new K$(e.CssOverrides,(t=e=>{throw new Error(e)},1===(n=Z$(e.ProcessInstanceDto)).tag?t(n.fields[0]):n.fields[0]));var t,n}(e),Tf(t.responseText,new wl(1),void 0,{ResolveType:nh}))):na.Return(new ra(1,"Unexpected response from backend"))))}))})}function Th(e,t,n){return I$(na.Bind(qu(0,()=>{let r;return Ih(e,(r=sl(new Zu(1,xh(0,Uo(n),new wl(1),void 0,void 0,{ResolveType:()=>Ur(oh())})),ol(new Yu(1),rl(function(e){const t=0|wd(e);return lr(ar("%s/workflows/backend/process-instances/%i/analytics-events"))(Mu)(t)}(t)))),il(el("application/json"),r)))}),e=>na.Return(oa(e=>{},e))))}function Oh(e,t,n,r){let o,i,s;switch(n.tag){case 1:{const e=n.fields[0];return[new $h(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,e,r.CssOverrides),2===e.tag?uu(new dh(5,r.ProcessInstanceId,new rh(0,id(ah(e.fields[0]).Id)))):su()]}case 5:return fu(Th(e,n.fields[0],n.fields[1])),[r,su()];case 2:return[r,(o=r.ProcessInstance,2===o.tag&&0===o.fields[0].tag?(i=oa(e=>e.Id,Sd(n.fields[0].target.tagName,o.fields[0].fields[0])),1===i.tag?su():uu(new dh(3,i.fields[0],new wc(0)))):su())];case 3:{const t=n.fields[0],o=n.fields[1];switch(o.tag){case 1:return[r,su()];case 2:{const e=o.fields[0],n=Lu(e=>e,e=>new dh(1,new fh(4,e)),Gu(0,()=>ia(e=>{const t=e,n=xd(t);return ia(e=>{const r=e;return ia(e=>{const t=e;return 1===Go(t)?Fu(0,new dh(4,new wc(0))):null==n?Fu(0,new dh(1,new fh(3,r,t))):Hu(0,sh(n),e=>new dh(1,new fh(2,e,e,r,t)))},lh(t))},ch(t))},e))());return Lu(e=>{g$(t,e,r.ProfileId)},e=>{},e),[new $h(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(n)]}case 3:return[new $h(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dh(1,new fh(4,o.fields[0].message)))];default:return[r,lu(e=>{fu(e)},e=>function(e,t,n){return Eh(new J$(0,t),e,n)}(r.ProcessInstanceId,t,e),e,e=>new dh(3,t,new wc(2,e)),e=>new dh(3,t,new wc(3,e)))]}}case 4:{const o=n.fields[0];switch(o.tag){case 1:return[r,su()];case 2:{const e=o.fields[0];return 1===e.tag?[new $h(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dh(1,new fh(4,e.fields[0])))]:(w$(e.fields[0],r.ProfileId),[new $h(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),1===t.tag?uu(new dh(1,new fh(5))):su()])}case 3:return[new $h(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),uu(new dh(1,new fh(4,o.fields[0].message)))];default:{const t=r.ProcessInstance;let n,o;switch(2===t.tag&&0===t.fields[0].tag&&2===t.fields[0].fields[0].Status.tag?(n=0,o=t.fields[0].fields[0]):n=1,n){case 0:return w$(o,r.ProfileId),[r,su()];case 1:return[r,lu(e=>{fu(e)},e=>function(e,t){return Eh(new J$(1),e,t)}(r.ProcessInstanceId,e),e,e=>new dh(4,new wc(2,e)),e=>new dh(4,new wc(3,e)))]}}}}case 6:return[r,(s=window.location.pathname+"/"+window.location.search+window.location.hash,Uo(e=>{Cu(Uo(s),1,2)}))];default:{const e=n.fields[0];let t;switch(e.tag){case 3:t=[r,uu(new dh(1,new fh(4,e.fields[0].message)))];break;case 0:case 1:t=[r,su()];break;default:{const n=Lu(e=>e,e=>[r,new fh(4,e)],Gu(0,()=>ia(e=>{const t=e,n=new $h(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,r.CurrentView,t.CssOverrides);return ia(e=>{const r=e;return ia(e=>{let o,i;const s=e;return Hu(0,(o=xd(t.ProcessInstance),null==o?new ra(0,new fh(3,r,s)):(i=o,Gu(0,()=>Hu(0,sh(i),e=>{const t=e,n=[Ou.clientWidth<768,Go(s)];return 1===n[1]?(document.title=i.DisplayName,new fh(2,t,t,r,s)):new fh(n[0]?1:2,t,t,r,s)}))())),e=>[n,e])},lh(t.ProcessInstance))},ch(t.ProcessInstance))},e.fields[0]))());t=[n[0],uu(new dh(1,n[1]))]}}const o=t[0];return[new $h(o.ProfileId,o.ProcessInstanceId,yc(e=>oa(e=>e.ProcessInstance,e),e),o.CurrentView,o.CssOverrides),t[1]]}}}var Ah;function Mh(){return(Mh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ph,Nh,Dh,Rh=function(e){return $("svg",Mh({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},e),Ah||(Ah=$("path",{d:"M2 8l4 4 9-10",strokeWidth:3,stroke:"#FFF",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})))};function zh(){return(zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Lh,Bh,jh=function(e){return $("svg",zh({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Ph||(Ph=$("path",{d:"M11.208 17.438a3.635 3.635 0 100-7.271 3.635 3.635 0 000 7.27zm0-5.857a2.229 2.229 0 110 4.457 2.229 2.229 0 010-4.457zM11.208 18.78a5.455 5.455 0 00-3.952 1.653c-1.054 1.076-1.631 2.538-1.631 4.127a.705.705 0 00.703.703h9.76a.705.705 0 00.703-.703c0-1.589-.577-3.051-1.632-4.127a5.455 5.455 0 00-3.951-1.652zM7.08 23.858c.12-.92.535-1.775 1.182-2.44a4.142 4.142 0 015.892 0 4.322 4.322 0 011.181 2.44H7.08z",fill:"#000"})),Nh||(Nh=$("path",{d:"M31.36 5.273H4.64A3.517 3.517 0 001.126 8.79v17.86a3.517 3.517 0 003.516 3.515h26.718a3.517 3.517 0 003.516-3.516V8.79a3.517 3.517 0 00-3.516-3.516zm2.109 21.375a2.116 2.116 0 01-2.11 2.11H4.641a2.116 2.116 0 01-2.11-2.11V8.79a2.116 2.116 0 012.11-2.11h26.718a2.116 2.116 0 012.11 2.11v17.86z",fill:"#000"})),Dh||(Dh=$("path",{d:"M29.63 17.016h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406zM29.63 21.516h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406zM29.63 12.516h-8.192a.703.703 0 000 1.406h8.192a.703.703 0 100-1.406z",fill:"#000"})))};function Uh(){return(Uh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Fh,Gh,Hh,Wh=function(e){return $("svg",Uh({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Lh||(Lh=$("g",{clipPath:"url(#icon-emergency-contacts_svg__clip0)",fill:"#000"},$("path",{d:"M30.223 24.427c-.204-.15-5.051-3.656-9.3-2.538a.528.528 0 00-.272.174c-.078.095-1.718 2.102-2.065 3.967a9.392 9.392 0 01-1.224-.462c-.979-.444-2.476-1.305-4.055-2.884-.907-.907-1.66-1.825-2.238-2.73a.528.528 0 00-.89.568c.62.969 1.421 1.948 2.382 2.908 3.286 3.286 6.286 3.757 6.412 3.775a.527.527 0 00.604-.522c0-.378.106-.802.27-1.231 1.318.114 5.928.678 9.431 3.139-.465 1.981-1.643 3.71-3.38 4.893-2.258 1.54-5.028 1.871-7.6.91-3.69-1.378-7.087-3.602-10.093-6.608C5.2 24.78 2.976 21.385 1.596 17.692c-.96-2.572-.628-5.342.912-7.6C3.69 8.354 5.418 7.176 7.4 6.711c2.461 3.503 3.025 8.113 3.14 9.432-.43.164-.854.27-1.232.27a.527.527 0 00-.528.54c.002.062.024.637.388 1.594a.527.527 0 10.986-.374 6.108 6.108 0 01-.237-.76c1.876-.33 3.915-1.996 4.01-2.074a.528.528 0 00.175-.273c1.117-4.247-2.388-9.095-2.538-9.3a.527.527 0 00-.355-.21c-.676-.091-1.36-.132-2.032-.12-3.068.05-5.816 1.53-7.541 4.06C-.1 12.043-.474 15.164.608 18.06c1.433 3.835 3.738 7.358 6.85 10.47 3.115 3.115 6.638 5.42 10.472 6.852 1.09.407 2.21.608 3.321.608a9.27 9.27 0 005.242-1.636c2.53-1.725 4.011-4.473 4.062-7.541.01-.672-.03-1.356-.121-2.032a.528.528 0 00-.211-.355zM9.193 6.491c.545-.008 1.098.02 1.646.083.594.879 3.037 4.76 2.283 8.06-.347.27-.922.675-1.566 1.03-.174-1.698-.807-5.756-3.008-9.137.213-.02.428-.032.645-.036zm11.133 17.944c.356-.644.76-1.22 1.032-1.566 3.3-.754 7.18 1.69 8.059 2.282.063.55.091 1.102.083 1.646a8.672 8.672 0 01-.036.646c-3.381-2.201-7.44-2.834-9.138-3.008z"}),$("path",{d:"M26.97.009c-4.98 0-9.03 4.05-9.03 9.03 0 2.346.885 4.549 2.5 6.236-.175.716-.438 1.628-.781 2.366a1.34 1.34 0 00.109 1.333 1.347 1.347 0 001.207.593c1.116-.07 2.669-.435 3.898-1.744a9.03 9.03 0 008.912-2.86.528.528 0 00-.796-.693 7.975 7.975 0 01-8.156 2.454.528.528 0 00-.547.171c-1.02 1.227-2.399 1.558-3.376 1.619a.299.299 0 01-.27-.134.293.293 0 01-.025-.293c.429-.922.737-2.062.92-2.856a.528.528 0 00-.145-.496 7.914 7.914 0 01-2.395-5.696c0-4.398 3.577-7.975 7.975-7.975 4.397 0 7.975 3.577 7.975 7.975a7.882 7.882 0 01-.855 3.596.527.527 0 10.94.477c.644-1.27.97-2.64.97-4.073 0-4.98-4.051-9.03-9.03-9.03z"}),$("path",{d:"M31.554 6.184h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055zM31.554 8.71h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055zM31.554 11.236h-9.168a.528.528 0 100 1.055h9.168a.528.528 0 000-1.055z"}))),Bh||(Bh=$("defs",null,$("clipPath",{id:"icon-emergency-contacts_svg__clip0"},$("path",{fill:"#fff",d:"M0 0h36v36H0z"})))))};function Vh(){return(Vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var qh,Yh,Xh=function(e){return $("svg",Vh({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Fh||(Fh=$("path",{d:"M18.47 19.647a.562.562 0 00-.202-.007 1.343 1.343 0 01-1.188-1.33.59.59 0 00-1.18 0 2.526 2.526 0 001.857 2.431v.591a.59.59 0 001.18 0v-.555a2.521 2.521 0 00-.516-4.99 1.34 1.34 0 111.34-1.34.59.59 0 001.182 0 2.526 2.526 0 00-2.005-2.468v-.538a.59.59 0 00-1.181 0v.573a2.522 2.522 0 00.664 4.954 1.34 1.34 0 01.049 2.68z",fill:"#000"})),Gh||(Gh=$("path",{d:"M9.858 16.423a8.563 8.563 0 108.563-8.562 8.573 8.573 0 00-8.563 8.562zm8.563-7.381a7.382 7.382 0 11-7.382 7.381 7.39 7.39 0 017.382-7.381z",fill:"#000"})),Hh||(Hh=$("path",{d:"M29.895 26.442l-4.626 2.186a3.768 3.768 0 00-3.212-1.982l-4.27-.118a4.51 4.51 0 01-1.94-.5l-.435-.226a7.664 7.664 0 00-7.1.008l.028-.985a.59.59 0 00-.574-.607l-4.683-.128a.59.59 0 00-.606.574l-.283 10.275a.59.59 0 00.574.607l4.683.129h.016a.59.59 0 00.59-.575l.014-.491 1.216-.651a2.086 2.086 0 011.557-.17l7.265 2.038a7.779 7.779 0 001.635.174 7.879 7.879 0 003.29-.718.561.561 0 00.074-.04l10.533-6.813a.59.59 0 00.193-.787 2.983 2.983 0 00-3.94-1.2zM3.39 34.382l.25-9.096 3.502.097-.25 9.095-3.502-.096zm19.112-.155a6.695 6.695 0 01-4.094.457l-7.245-2.034a3.266 3.266 0 00-2.434.267l-.622.333.167-6.048a6.491 6.491 0 016.594-.351l.434.225c.76.392 1.597.608 2.452.633l4.27.117a2.59 2.59 0 012.462 2.064l-6.361-.175a.59.59 0 00-.033 1.18l7.02.194h.016a.59.59 0 00.59-.575 3.746 3.746 0 00-.057-.766l4.745-2.242.014-.006a1.804 1.804 0 012.04.285l-9.958 6.442zM19.012 6.2V.59a.59.59 0 00-1.182 0V6.2a.59.59 0 001.182 0zM23.44 6.2V3.543a.59.59 0 00-1.18 0V6.2a.59.59 0 001.18 0zM14.583 6.2V3.543a.59.59 0 00-1.181 0V6.2a.59.59 0 001.18 0z",fill:"#000"})))};function Zh(){return(Zh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Jh,Kh,Qh,ep=function(e){return $("svg",Zh({viewBox:"0 0 34 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),qh||(qh=$("path",{d:"M16.9 5.158a1.92 1.92 0 00-.006-.012c-.109-.208-.363-.343-.648-.343h-.001c-.286 0-.54.135-.648.344l-.005.01-2.406 4.995c-.109.227.035.48.322.567.287.086.608-.028.717-.254l.463-.961h3.098l.457.96c.085.175.296.284.52.284.066 0 .132-.01.197-.029.287-.085.432-.339.323-.566L16.9 5.158zM15.11 8.625l1.133-2.352 1.122 2.352h-2.255zM23.533 7.596l1.871-2.1c.177-.199.117-.473-.134-.613s-.598-.092-.774.106l-1.642 1.843-1.639-1.842c-.177-.199-.523-.247-.774-.107s-.312.414-.135.612l1.868 2.1-2.191 2.46c-.177.199-.117.473.134.613.097.054.21.08.32.08a.61.61 0 00.454-.187l1.963-2.202 1.959 2.202a.61.61 0 00.455.187.66.66 0 00.319-.08c.251-.14.311-.414.135-.612l-2.189-2.46zM12.271 4.803H8.733c-.307 0-.556.197-.556.44 0 .242.25.439.556.439H9.94v4.626c0 .243.249.44.556.44.307 0 .556-.197.556-.44V5.682h1.22c.307 0 .556-.197.556-.44 0-.242-.25-.439-.556-.439zM6.648 22.468c.338 0 .478.1.733.284.3.216.712.513 1.48.513s1.18-.297 1.48-.513c.255-.183.395-.284.734-.284.338 0 .478.1.732.284.3.216.713.513 1.481.513.307 0 .556-.197.556-.44s-.249-.44-.556-.44c-.338 0-.478-.1-.733-.283-.3-.217-.712-.513-1.48-.513-.769 0-1.18.296-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.101-.732-.284-.3-.217-.712-.513-1.48-.513-.308 0-.556.197-.556.44 0 .242.248.439.555.439zM6.648 24.233c.338 0 .478.1.733.284.3.216.712.513 1.48.513s1.18-.297 1.48-.513c.255-.183.395-.284.734-.284.338 0 .478.101.732.284.3.216.713.513 1.481.513.307 0 .556-.197.556-.44 0-.242-.249-.44-.556-.44-.338 0-.478-.1-.733-.283-.3-.216-.712-.513-1.48-.513-.769 0-1.18.297-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.1-.732-.284-.3-.216-.712-.513-1.48-.513-.308 0-.556.197-.556.44 0 .242.248.44.555.44zM7.38 26.282c.301.217.713.513 1.481.513.768 0 1.18-.296 1.48-.513.255-.183.395-.284.734-.284.338 0 .478.101.732.284.3.217.713.513 1.481.513.307 0 .556-.197.556-.44 0-.242-.249-.439-.556-.439-.338 0-.478-.1-.733-.284-.3-.216-.712-.513-1.48-.513-.769 0-1.18.297-1.481.513-.255.183-.395.284-.733.284-.338 0-.478-.1-.732-.284-.3-.216-.712-.513-1.48-.513-.308 0-.556.197-.556.44s.248.44.555.44c.338 0 .478.1.733.283z",fill:"#000"})),Yh||(Yh=$("path",{d:"M33.415 10.084a.357.357 0 00-.008-.039c-.343-2.034-1.647-3.067-3.908-4.638-.03-.343-.061-.668-.094-.984-.116-1.157-1.262-2.086-2.724-2.21-1.12-.093-2.25-.171-3.359-.232-2.168-.943-4.308-1.624-6.197-1.97a.699.699 0 00-.25 0c-1.891.347-4.031 1.028-6.196 1.97-1.129.062-2.259.14-3.36.233-1.462.123-2.607 1.052-2.724 2.208-.032.319-.063.643-.094.984-2.29 1.591-3.424 2.5-3.91 4.647a.337.337 0 00-.005.029v.005a63.15 63.15 0 000 17.158c.172 1.257 1.45 2.24 3.039 2.34.366.023.732.045 1.097.065.013 0 3.521.116 1.427.116.289 0 1.676.078 1.725-.465.022-.242-.559-.395-.865-.412-.362-.02-2.933-.158-3.297-.18-1.051-.066-1.899-.716-2.02-1.548v-.003c-.159-1.438 1.85-4.039 5.12-6.628.216-.172.216-.45-.001-.622a.664.664 0 00-.786.001c-1.775 1.406-3.595 3.17-4.619 4.796a62.456 62.456 0 01.044-12.533c.805.986 1.999 1.93 2.864 2.55.206.148.421.298.635.442.065.045.132.089.2.133l.011.008a36.255 36.255 0 004.472 2.503c2.531 1.194 5.035 2.039 7.243 2.443a.7.7 0 00.25 0c2.248-.412 4.797-1.278 7.371-2.504a37.96 37.96 0 001.767-.9 33.745 33.745 0 002.807-1.696c.206-.139.413-.284.616-.43.866-.62 2.06-1.564 2.864-2.55.435 4.166.449 8.365.044 12.534-1.024-1.625-2.844-3.39-4.619-4.796a.664.664 0 00-.786 0c-.217.171-.217.45 0 .621 3.269 2.589 5.278 5.19 5.119 6.628v.006c-.123.83-.97 1.48-2.02 1.545-7.72.48-15.552.541-23.279.18-.307-.015-.57.17-.587.412-.018.243.215.45.522.465a215.472 215.472 0 0023.431-.181c1.589-.1 2.867-1.083 3.04-2.34.78-5.694.78-11.468 0-17.162zM17 .89c1.1.21 2.29.538 3.524.97a115.812 115.812 0 00-7.049 0A24.836 24.836 0 0117 .892zM1.689 10.193c.354-1.553 1.01-2.299 2.708-3.533a92.655 92.655 0 00-.267 6.705c-1.613-1.296-2.528-2.47-2.441-3.172zm28.182 3.171a91.19 91.19 0 00-.059-2.977c-.009-.243-.266-.434-.571-.427-.307.007-.549.21-.54.452.045 1.25.064 2.524.057 3.787-.136.096-.273.191-.41.284a32.633 32.633 0 01-2.713 1.64c-.555.3-1.13.594-1.713.87-2.426 1.157-4.817 1.978-6.922 2.378-2.066-.393-4.414-1.192-6.798-2.318a35.088 35.088 0 01-4.328-2.421l-.012-.008-.188-.127c-.146-.098-.29-.197-.431-.297a91.783 91.783 0 01.46-9.707c.074-.736.803-1.327 1.733-1.405a114.117 114.117 0 0119.128 0c.93.078 1.66.669 1.733 1.405a92.098 92.098 0 01.325 4.17c.014.242.276.43.58.42.306-.011.544-.216.53-.459-.035-.654-.08-1.31-.13-1.963 1.736 1.261 2.468 2.065 2.708 3.523.096.7-.82 1.878-2.44 3.18z",fill:"#000"})))};function tp(){return(tp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var np=function(e){return $("svg",tp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Jh||(Jh=$("path",{d:"M29.707 19.027a.524.524 0 00-.524.524.666.666 0 01-1.33 0 .524.524 0 10-1.048 0c0 .945.769 1.713 1.713 1.713.945 0 1.713-.768 1.713-1.713a.524.524 0 00-.524-.523z",fill:"#000"})),Kh||(Kh=$("path",{d:"M34.625 19.113l-1.475-.472a.617.617 0 01-.398-.404 9.507 9.507 0 00-1.394-2.757c-.28-.383-.59-.75-.93-1.098a13 13 0 00.32-2.968c-.022-1.335-.29-2.118-.816-2.394-.284-.148-1.147-.6-5.82 1.539a1.7 1.7 0 00-.31.184 20.386 20.386 0 00-.961-.233l-.119-.024c.379-.827.6-1.726.641-2.654a.524.524 0 10-1.046-.046 6.087 6.087 0 01-3.989 5.45 15.196 15.196 0 00-4.217 0 6.066 6.066 0 01-2.207-1.41 6.063 6.063 0 01-1.787-4.315c0-1.63.635-3.163 1.787-4.316a6.063 6.063 0 014.316-1.787c1.63 0 3.163.634 4.315 1.787.463.463.846.992 1.138 1.571a.524.524 0 10.936-.471 7.143 7.143 0 00-1.333-1.84A7.104 7.104 0 0016.22.36c-1.91 0-3.706.744-5.057 2.094A7.104 7.104 0 009.07 7.511c0 1.91.744 3.705 2.094 5.056.39.39.814.725 1.262 1.005a14.8 14.8 0 00-.968.287.524.524 0 00.332.994 14.06 14.06 0 018.862 0 .524.524 0 10.332-.994 14.74 14.74 0 00-.969-.287 7.148 7.148 0 002.175-2.126 19.451 19.451 0 01.99.219l-.016.069c-.256 1.212-.239 2.284.05 3.187a3.792 3.792 0 001.389 1.953c.78.571 1.724.818 2.578.818.643 0 1.236-.14 1.672-.386.492-.28.905-.867 1.231-1.75a8.458 8.458 0 011.67 2.995c.162.517.565.923 1.078 1.088l1.474.472c.387.124.647.48.647.886v2.446c0 .406-.26.762-.646.886l-2.376.76a1.62 1.62 0 00-.906.737c-.934 1.613-2.401 2.947-4.362 3.967a.821.821 0 00-.43.579L25.47 34.4a.236.236 0 01-.231.191h-2.474a.235.235 0 01-.231-.191l-.422-2.227a.823.823 0 00-.936-.662 21.909 21.909 0 01-5.665.107.83.83 0 00-.908.666l-.4 2.116a.236.236 0 01-.231.191h-2.475a.236.236 0 01-.231-.193l-.733-3.805a.822.822 0 00-.422-.572C6.768 28.237 5 25.256 5 21.4c0-1.948.426-3.671 1.266-5.12.785-1.354 1.93-2.472 3.406-3.325a.524.524 0 00-.525-.907c-2.86 1.654-4.585 4.207-5.06 7.449l-.152-.014a2.61 2.61 0 00-.192-1.046c-.303-.755-.928-1.3-1.59-1.389-.522-.07-1.019.152-1.364.607-.5.66-.418 1.184-.262 1.506.264.543.942.928 2.068 1.17a2.05 2.05 0 01-.102.14c-.665.834-1.449 1.018-1.958 1.035a.55.55 0 00-.536.548v.002c0 .294.232.534.526.547.037.002.077.003.117.003.644 0 1.678-.237 2.67-1.482.157-.197.285-.404.383-.618l.285.03v-.001c-.018.284-.028.572-.028.865 0 2.181.52 4.127 1.546 5.782.945 1.525 2.3 2.775 4.025 3.714l.713 3.7a1.284 1.284 0 001.26 1.044h2.475c.616 0 1.146-.44 1.26-1.044l.362-1.913a23.016 23.016 0 005.528-.104l.382 2.017a1.284 1.284 0 001.26 1.044h2.475c.616 0 1.146-.439 1.26-1.044l.742-3.923c2.093-1.107 3.67-2.561 4.69-4.323a.572.572 0 01.318-.262l2.376-.761A1.973 1.973 0 0036 23.442v-2.445c0-.863-.553-1.62-1.375-1.884zm-5.004-6.227c-.201 1.725-.742 3.2-1.286 3.508-.618.35-2.044.417-3.115-.366-1.072-.784-1.429-2.194-1.032-4.078a.632.632 0 01.36-.438c2.623-1.2 4.135-1.594 4.697-1.594.084 0 .147.01.19.026.168.18.39 1.202.186 2.942zm-28.15 5.817c-.054-.112.074-.308.155-.415.129-.17.247-.205.336-.205a.39.39 0 01.053.004c.241.032.579.297.757.741.043.105.097.278.11.495-.725-.15-1.289-.367-1.411-.62z",fill:"#000"})),Qh||(Qh=$("path",{d:"M16.729 6.91V5.035c.646.046.887.342 1.108.342.277 0 .407-.35.407-.526 0-.453-.887-.647-1.515-.665v-.25c0-.11-.139-.212-.277-.212-.157 0-.268.101-.268.212v.268c-.878.092-1.755.554-1.755 1.718 0 1.182.923 1.515 1.755 1.81v2.17c-.942-.073-1.192-.72-1.497-.72-.23 0-.424.305-.424.527 0 .452.776 1.071 1.92 1.09v.286c0 .11.112.212.269.212.138 0 .277-.101.277-.212v-.314c.997-.139 1.68-.767 1.68-1.903 0-1.256-.877-1.662-1.68-1.958zm-.49-.175c-.49-.185-.887-.379-.887-.905 0-.48.37-.712.887-.776v1.68zm.434 3.15v-1.95c.453.194.813.453.813 1.035 0 .526-.314.822-.813.914z",fill:"#000"})))};class rp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Height","Width"]}}function op(e){return $(Rh,hl(e,1))}class ip extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Active","Complete","Editing","ReadyToComplete","ToComplete"]}}class sp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ToBeCompleted","CompletedAll"]}}function ap(e){let t,n;switch(1===e.tag?(t=0,n=e.fields[2]):(t=0,n=e.fields[3]),t){case 0:return n}}function cp(e,t){const n=t.state;if(1===n.tag){if(gn(n.fields[0],e))return new ip(2);if(1===n.tag)return new ip(1);throw new Error("Match failure")}return function(e,t,n,r){const o=si(e,r,{Equals:(e,t)=>gn(e,t),GetHashCode:e=>hn(e)});let i;switch(i=o?1:gn(t,e)?0:1,i){case 0:return new ip(0);case 1:{let r;switch(r=o&&gn(t,e)?0:1,r){case 0:return new ip(2);case 1:return gn(n,e)?new ip(3):new ip(o?1:4)}}}}(e,n.fields[0],n.fields[1],n.fields[2])}function up(e,t,n){let r;t.dispatch((r=t.state,1===r.tag?new dh(1,new fh(2,e,void 0,r.fields[1],r.fields[2])):new dh(1,new fh(2,e,r.fields[1],r.fields[2],r.fields[3]))))}function lp(e,t){switch(t.tag){case 1:return n=[new rp(0,e),new rp(1,e)],$(Wh,hl(n,1));case 2:return function(e){return $(Xh,hl(e,1))}([new rp(0,e),new rp(1,e)]);case 3:return function(e){return $(ep,hl(e,1))}([new rp(0,e),new rp(1,e)]);case 4:return function(e){return $(np,hl(e,1))}([new rp(0,e),new rp(1,e)]);case 5:return null;default:return function(e){return $(jh,hl(e,1))}([new rp(0,e),new rp(1,e)])}var n}function fp(e){const t=xi(yi(()=>ki(Pi(t=>function(e,t){const n=gn(e,new ih(4));return $("div",Cn(xi(yi(()=>ki(Ci(["className",gr(" ",["row","mb-3","align-items-center"])]),yi(()=>{let r;return ki(Ci(["children",vr.Children.toArray([$("div",{className:gr(" ",["col-auto"]),children:vr.Children.toArray(Array.from(xi(yi(()=>ki(Ci($("span",{className:gr(" ",xi(yi(()=>{switch(cp(e,t).tag){case 4:return Ci("fl-step-tick-to-complete");case 0:return Ci("fl-step-tick-active");case 1:case 2:return Ci("fl-step-tick-complete-or-editing");default:return Ci("fl-step-tick-to-complete")}}))),children:vr.Children.toArray([op([["style",{transform:"scale(0.7)"}],["className",gr(" ",xi(yi(()=>{switch(cp(e,t).tag){case 4:case 0:return Ci("invisible");case 1:case 2:return Ci("visible");default:return Ci("invisible")}})))]])])})),yi(()=>n?bi():Ci($("div",{className:gr(" ",["fl-step-tick-progress-bar"])}))))))))}),$("div",{className:gr(" ",["col-9"]),children:vr.Children.toArray([$("button",{className:gr(" ",xi(yi(()=>ki(Ci("btn"),yi(()=>ki(Ci("btn-block"),yi(()=>ki(Ci("text-left"),yi(()=>ki(Ci("text-nowrap"),yi(()=>{switch(cp(e,t).tag){case 3:return Ci("fl-step-btn-ready-or-complete");case 0:case 2:return Ci("fl-step-btn-active-or-editing");case 1:return Ci("fl-step-btn-ready-or-complete");default:return Ci(lr(ar("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))),children:vr.Children.toArray([$("span",{className:gr(" ",["mr-2"]),children:vr.Children.toArray([lp(36,e)])}),(r=uh(e),$("span",{children:[r]}))])})])})])]),yi(()=>gn(cp(e,t),new ip(4))?bi():Ci(["onClick",n=>{up(e,t)}])))}))))))}(t,e),ap(e.state)),yi(()=>1===e.state.tag?Ci($("button",{className:gr(" ",["col-12","btn","is-primary","btn-block"]),style:{marginTop:"2rem"},children:"Submit",onClick:t=>{e.dispatch(new dh(4,new wc(0)))}})):Ci(null)))));return $("div",{children:vr.Children.toArray(Array.from(t))})}function dp(e){return!(Go(ap(e.state))<=3)}function $p(e){return dp(e)?25:36}function hp(e,t){return dp(e)?ki(["small"],t):t}function pp(e){return $("div",{className:gr(" ",["row","mb-2"]),children:vr.Children.toArray([$("div",{className:gr(" ",["d-flex","w-100","mt-1"]),children:vr.Children.toArray(Array.from(xi(yi(()=>Pi(t=>function(e,t){return $("div",Cn(xi(yi(()=>ki(Ci(["className",gr(" ",["flex-fill","mx-1"])]),yi(()=>ki(Ci(["children",vr.Children.toArray([$("button",{className:gr(" ",xi(yi(()=>ki(Ci("btn"),yi(()=>ki(Ci("btn-block"),yi(()=>ki(Ci("text-center"),yi(()=>ki(Ci("text-nowrap"),yi(()=>ki(Ci("border"),yi(()=>{switch(cp(e,t).tag){case 3:return Ci("fl-step-btn-ready-or-complete");case 0:case 2:return Ci("fl-step-btn-active-or-editing");case 1:return Ci("fl-step-btn-ready-or-complete");default:return Ci(lr(ar("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))))),children:vr.Children.toArray([$("span",{className:gr(" ",["mr-md-2"]),children:vr.Children.toArray([lp($p(t),e)])}),$("span",{children:uh(e),className:gr(" ",hp(t,["d-none","d-md-inline-block"]))})])})])]),yi(()=>gn(cp(e,t),new ip(4))?bi():Ci(["onClick",n=>{up(e,t)}])))))))))}(t,e),ap(e.state))))))})])})}var mp=n(1),gp=n(0),wp=n.n(gp);function yp(e){return(yp="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})(e)}function vp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(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 bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_p(Object(n),!0).forEach((function(t){vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cp(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 Sp(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 xp(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 Ip(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=xp(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 Ep=!1;try{Ep=!0}catch(e){}function kp(e){return mp.b.icon?mp.b.icon(e):null===e?null:"object"===yp(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 Tp(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?vp({},e,t):{}}function Op(e){var t=e.forwardedRef,n=Cp(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,u=kp(r),l=Tp("classes",[].concat(Sp(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,s=e.border,a=e.listItem,c=e.flip,u=e.size,l=e.rotation,f=e.pull,d=(vp(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":s,"fa-li":a,"fa-flip-horizontal":"horizontal"===c||"both"===c,"fa-flip-vertical":"vertical"===c||"both"===c},"fa-".concat(u),null!=u),vp(t,"fa-rotate-".concat(l),null!=l&&0!==l),vp(t,"fa-pull-".concat(f),null!=f),vp(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)),Sp(s.split(" ")))),f=Tp("transform","string"==typeof n.transform?mp.b.transform(n.transform):n.transform),d=Tp("mask",kp(o)),$=Object(mp.a)(u,bp({},l,{},f,{},d,{symbol:i,title:a,titleId:c}));if(!$)return function(){var e;!Ep&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var h=$.abstract,p={ref:t};return Object.keys(n).forEach((function(e){Op.defaultProps.hasOwnProperty(e)||(p[e]=n[e])})),Ap(h[0],p)}Op.displayName="FontAwesomeIcon",Op.propTypes={border:wp.a.bool,className:wp.a.string,mask:wp.a.oneOfType([wp.a.object,wp.a.array,wp.a.string]),fixedWidth:wp.a.bool,inverse:wp.a.bool,flip:wp.a.oneOf(["horizontal","vertical","both"]),icon:wp.a.oneOfType([wp.a.object,wp.a.array,wp.a.string]),listItem:wp.a.bool,pull:wp.a.oneOf(["right","left"]),pulse:wp.a.bool,rotation:wp.a.oneOf([0,90,180,270]),size:wp.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:wp.a.bool,symbol:wp.a.oneOfType([wp.a.bool,wp.a.string]),title:wp.a.string,transform:wp.a.oneOfType([wp.a.string,wp.a.object]),swapOpacity:wp.a.bool},Op.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 Ap=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=Ip(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[xp(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,c=Cp(r,["style"]);return i.attrs.style=bp({},i.attrs.style,{},a),t.apply(void 0,[n.tag,bp({},i.attrs,{},c)].concat(Sp(o)))}.bind(null,ze.createElement),Mp={prefix:"fas",iconName:"chevron-left",icon:[320,512,[],"f053","M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"]};
7
7
  /*!
8
8
  * Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com
9
9
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
10
- */const Nm=(Dm=[],h(Am,{icon:Pm},...Dm));var Dm,Rm,zm,jm,Lm,Um;function Bm(e){let t;const n=e.dispatch,r=e.allSteps,o=e.completedSteps,i=e.readyToCompleteStep,s=e.step;return h("div",{className:wr(" ",["row","mb-1"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col-2"]),children:_r.Children.toArray([Nm]),onClick:e=>{n(new dp(1,function(e,t,n,r){return null==t?new fp(3,n,r):new fp(1,e,t,n,r)}(s,i,o,r)))}}),h("div",{className:wr(" ",["col-8","text-center"]),children:_r.Children.toArray([(t=up(s),h("b",{children:[t]}))])}),h("div",{className:wr(" ",["col-2"])})])})}class Fm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token"]}}class Gm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["app-base-url"]}}function Hm(e,t,n){return h(1===e.tag?Kf.ComponentTagName:2===e.tag?Qf.ComponentTagName:3===e.tag?ed.ComponentTagName:4===e.tag?td.ComponentTagName:5===e.tag?nd.ComponentTagName:Zf.ComponentTagName,pl(t,1),...n)}function Wm(e){let t;return h("div",{className:wr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["Well done!"]}),(t=Ko(["You have completed all sections.",h("br",{}),"If you wish to change anything, click on that specific step.",h("br",{}),h("p",{children:["To submit everything, click on 'Complete Onboarding'."]})]),h("p",{children:_r.Children.toArray(Array.from(t))})),h("div",{className:wr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(fm,e)])})])})])})}function Vm(){let e;return h("div",{className:wr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["You're all set!"]}),(e=Ko(["You have submitted all the required information and have successfully completed your onboarding.",h("br",{}),h("p",{children:["You can now close this browser tab."]})]),h("p",{children:_r.Children.toArray(Array.from(e))}))])})}function $m(e){const t=e.accessToken,n=e.appMode,r=xa(function(e){const t=Ih(e);return[new hp(qf(t.sub),wd(t.workflow.instanceId),new yc(0),new fp(0),Uo()),su()]}(t),(e,r)=>Ap(t,n,e,r),[]),o=r[0],i=r[1];Ws(bc(()=>function(e,t){return Tp(e,t)}(o.ProcessInstanceId,t),e=>{i(new dp(0,e))}),[]),Ws(()=>{(window.ResizeObserver?new window.ResizeObserver(()=>{gh()}):new dh(()=>{gh()})).observe(document.body)},[]),Ws(()=>{const e=[o.ProcessInstance,o.CurrentView];let t;switch(t=2===e[0].tag?2===e[1].tag&&4===e[1].fields[0].tag?0:1:2,t){case 0:break;case 1:Su(Fo(Ru(n)),2,2)}},[o.CurrentView,o.ProcessInstance]),Gs(()=>{window.addEventListener("step-completion",e=>{i(new dp(2,e))})});switch(o.ProcessInstance.tag){case 1:return h("div",{children:["Please wait..."]});case 3:case 2:return h("div",{className:wr(" ",["container-xl","pb-4"]),children:_r.Children.toArray(Array.from(Ii(vi(()=>Ti(Ni(e=>h("style",{children:[e]}),o.CssOverrides),vi(()=>{let e;const r=o.CurrentView;switch(r.tag){case 1:{const e=r.fields[0],t=r.fields[1],n=r.fields[2],o=r.fields[3];return Ti(Si(h("div",{className:wr(" ",["text-center"]),children:_r.Children.toArray([h("div",{className:wr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(fm,{dispatch:i,state:null==t?new sm(1,e,n,o):new sm(0,e,t,n,o)})])})])})])})),vi(()=>(vh(0),Ci())))}case 2:{const o=r.fields[0],s=r.fields[1],a=r.fields[2],c=r.fields[3];return Si((e=Ii(vi(()=>Ti(Ho(c)>1?Si(h("div",{className:wr(" ",["pt-2"]),children:_r.Children.toArray([h(Bm,{step:o,readyToCompleteStep:s,completedSteps:a,allSteps:c,dispatch:i}),h(mm,{dispatch:i,state:null==s?new sm(1,o,a,c):new sm(0,o,s,a,c)})])})):Ci(),vi(()=>Si(h("div",{className:wr(" ",["row","px-1"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col-12","rounded-lg","border","p-3"]),style:{backgroundColor:"#FFFFFF"},children:_r.Children.toArray(Array.from(Ii(vi(()=>4===o.tag?0===ju.tag?pr(window.location.pathname,"/")?Ti(Si(Hm(new ip(4),[new Fm(1,t),new Fm(0,lr(ar("%s/super-selection/backend/v1.0/"))(Mu)),new Gm(0,Ru(n))],[])),vi(()=>(vh(2500),Ci()))):(i(new dp(6)),Ci()):(i(new dp(1,new fp(4,ju.fields[0]))),Ci()):Ti(Si(Hm(o,[new Fm(1,t),new Fm(0,Mu)],[])),vi(()=>(vh(1500),Ci())))))))})])})))))),h("div",{children:_r.Children.toArray(Array.from(e))})))}case 3:return Ti(Si(h("div",{className:wr(" ",["pt-5"]),children:_r.Children.toArray([h(Wm,{dispatch:i,state:new sm(1,void 0,r.fields[0],r.fields[1])})])})),vi(()=>(vh(0),Ci())));case 4:return Ti(Si(h("div",{className:wr(" ",["text-center","mt-5"]),children:"We had an issue. Please try again shortly."})),vi(()=>(vh(0),Ci())));case 5:return Si(h("div",{className:wr(" ",["mt-5"]),children:_r.Children.toArray([h(Vm,null)])}));default:return Si(h("div",{children:["Please wait..."]}))}}))))))});default:return h("div",{children:["Please wait..."]})}}class qm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class Ym extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class Xm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}function Jm(e){return new Xm(0,e)}class Zm extends er{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 Km(){return jr("Workflows.UI.Auth.Types.Credentials",[],Zm,()=>[["id_token",Hr],["access_token",Hr],["expires_in",Vr],["refresh_token",Br(Hr)],["scope",Hr],["token_type",Hr]])}class Qm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}class eg extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","InviteValidation","AuthCodeExchange","NotFound","LoggedOut"]}}function tg(e){let t,n,r,o,i,s,a;const c=function(e){let t,n,r;switch(Go(e)?t=2:"workflows"===Wo(e)?Go($o(e))?t=2:"app"===Wo($o(e))?(t=0,n=$o($o(e))):"embed"===Wo($o(e))?Go($o($o(e)))?t=2:"v1.0"===Wo($o($o(e)))?(t=1,r=$o($o($o(e)))):t=2:t=2:t=2,t){case 0:return new aa(1,n);case 1:return new aa(0,r);case 2:return new aa(2,void 0)}}(e);return 1===c.tag?[Go(c.fields[0])?Go(c.fields[0])?new eg(0):(o=Tu(Wo(c.fields[0])),null!=o?Go(o)?new eg(0):"code"===Wo(o)[0]&&Go($o(o))&&Go($o(c.fields[0]))?(i=Wo(o)[1],new eg(2,Jm(i))):new eg(0):new eg(0)):(t=Tu(Wo(c.fields[0])),null!=t?Go(t)?Go(c.fields[0])?new eg(0):(o=Tu(Wo(c.fields[0])),null!=o?Go(o)?new eg(0):"code"===Wo(o)[0]&&Go($o(o))&&Go($o(c.fields[0]))?(i=Wo(o)[1],new eg(2,Jm(i))):new eg(0):new eg(0)):"invite"===Wo(t)[0]&&Go($o(t))&&Go($o(c.fields[0]))?(n=Wo(t)[1],r=Lc(n),1===r.tag?new eg(3):new eg(1,r.fields[0])):Go(c.fields[0])?new eg(0):(o=Tu(Wo(c.fields[0])),null!=o?Go(o)?new eg(0):"code"===Wo(o)[0]&&Go($o(o))&&Go($o(c.fields[0]))?(i=Wo(o)[1],new eg(2,Jm(i))):new eg(0):new eg(0)):Go(c.fields[0])?new eg(0):(o=Tu(Wo(c.fields[0])),null!=o?Go(o)?new eg(0):"code"===Wo(o)[0]&&Go($o(o))&&Go($o(c.fields[0]))?(i=Wo(o)[1],new eg(2,Jm(i))):new eg(0):new eg(0))),new Du(1)]:2===c.tag?[new eg(3),new Du(2)]:[Go(c.fields[0])||Go($o(c.fields[0]))?new eg(0):(s=Tu(Wo($o(c.fields[0]))),null!=s?Go(s)?new eg(0):"code"===Wo(s)[0]?Go($o(s))?new eg(0):"scope"===Wo($o(s))[0]?Go($o($o(s)))?new eg(0):"session_state"===Wo($o($o(s)))[0]&&Go($o($o($o(s))))&&Go($o($o(c.fields[0])))?(a=Wo(s)[1],new eg(2,Jm(a))):new eg(0):new eg(0):new eg(0):new eg(0)),new Du(0)]}class ng extends er{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class rg extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut"]}}class og extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class ig{constructor(e){this.state=new og(0,xo(new Array(Cn((e,t)=>vn(e,t),e,10)),0,Cn((e,t)=>vn(e,t),e,10),null),0)}}function sg(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 og(0,o,n):new og(1,o,n,i),ho(o[r])}}function ag(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 c=(i+1)%a.length|0;e.state=c===s?new og(1,(r=s,o=a,Array.from(vi(()=>Ti(Ri(r,o),vi(()=>Ti(zi(r,o),vi(()=>ji(e=>Si(null),Ns(0,1,o.length))))))))),a.length,0):new og(1,a,c,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 og(1,o,i,r)}var r,o}class cg extends er{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 ug(e,t){return new cg(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function lg(e){return kn(2,e.view)}function fg(e,t){const n=t.init(e),r=n[0],o=new ig(10);let i=!1,s=r;const a=Tn(1,t.syncDispatch,[e=>{if(i)ag(o,e);else{i=!0;let n=ho(e);for(;null!=n;){const e=po(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),iu(n=>{t.onError([lr(ar("Error in command while handling: %A"))(e),n])},a,n[1]),s=r}catch(n){t.onError([lr(ar("Unable to process the message: %A"))(e),n])}n=sg(o)}i=!1}}]);t.setState(r,a),iu(e=>{t.onError(["Error intitializing:",e])},a,cu(Ko([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),su()}})(),n[1]])))}class dg extends er{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class hg extends g{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function pg(e,t,n,r){return h(hg,new dg(n,()=>t(n,r),e))}function mg(e,t,n){return ug((r,o)=>{xe(e((e,t)=>e===t,In(2,lg(n)),r,o),document.getElementById(t))},n)}function gg(e,t){const n=encodeURIComponent(t.fields[0]);const r=encodeURIComponent("apollo-workflows-app"),o=encodeURIComponent((i=new Du(0),`${window.location.protocol}//${window.location.host}${Ru(i)}`));var i;return qu(0,()=>{let e,t;const i=na.Bind(al((t=ol(new Yu(1),rl(Au+"/connect/token")),e=il(el("application/x-www-form-urlencoded"),t),sl(new Ju(1,`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${o}`),e))),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(i,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(Of(t.responseText,void 0,void 0,{ResolveType:Km})):na.Return(new ra(1,"Unexpected result from backend"))))}))})}function wg(){return vo(e=>{return 1===(t=Of(e,void 0,void 0,{ResolveType:Km})).tag?void 0:ho(t.fields[0]);var t},mo(window.sessionStorage.getItem("credentials")))}function yg(e,t){const n=function(e){return[new qm(0),uu(new Qm(0,new Ym(0),e))]}(t);return[new ng(e.CurrentPage,n[0],e.AppMode),au(e=>new rg(1,e),n[1])]}function vg(e,t){switch(e.tag){case 1:{const n=function(e,t,n){let r;return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?[new qm(2,new ra(1,"SignIn failed: "+e.fields[0].fields[0].fields[0])),su()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new qm(2,new ra(0,e.fields[0].fields[0].fields[0])),(r=window.location.pathname,Fo(e=>{Su(Fo(r),1,2)}))]):[new qm(1),lu(e=>{fu(e)},e=>gg(0,e),e.fields[1],t=>{const n=[new Ym(1,t),e.fields[1]];return new Qm(0,n[0],n[1])},t=>{const n=[new Ym(1,new ra(1,t.message)),e.fields[1]];return new Qm(0,n[0],n[1])})]}(e.fields[0],t.Credentials,t.AppMode),r=n[0],o=[r,t.AppMode];let i,s;switch(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,i){case 0:!function(e){const t=["credentials",Ip(0,new Zm(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:Km})];window.sessionStorage.setItem(t[0],t[1])}(s)}return[new ng(t.CurrentPage,r,t.AppMode),au(e=>new rg(1,e),n[1])]}case 2:return[new ng(new eg(4),t.Credentials,t.AppMode),su()];default:{const n=tg(e.fields[0])[0],r=new ng(n,t.Credentials,t.AppMode);return 2===n.tag?yg(r,n.fields[0]):[r,su()]}}}function _g(e,t){const n=h("div",{className:wr(" ",["workflows-app"]),children:_r.Children.toArray(Array.from(Ii(vi(()=>{const t=e.CurrentPage;switch(t.tag){case 2:return Si(function(){let e,t;return h("div",{className:wr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray([h("div",{className:wr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:wr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:_r.Children.toArray([h("div",{className:"card-body",children:_r.Children.toArray([h("div",{className:wr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("i",{className:wr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),h("h4",{className:wr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),h("p",{className:wr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),h("p",{className:wr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e="Flare HR Pty Ltd © 2015-"+(t=Bn(),Hn(t)),h("small",{children:[e]}))])})])})])})])})])})}());case 1:return Si(h(_h,{inviteCode:t.fields[0]}));case 3:return Si(h("h1",{children:["Not found"]}));case 4:return Si(h(bh,null));default:{const t=e.Credentials;let n,r;switch(2===t.tag&&0===t.fields[0].tag?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return Si(h($m,{appMode:e.AppMode,accessToken:r.access_token}));case 1:return Si(h("h1",{children:["Unauthorised"]}))}}}}))))});return Iu({hashMode:2,onUrlChanged:e=>{t(new rg(0,e))},application:h(m,{},n)})}!function(e){fg(void 0,e)}((Rm="workflows-app",jm=function(){const e=tg(xu(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new ng(t,new qm(0),n);let o;switch(o=2===t.tag?0:1===t.tag?1:0===t.tag&&wn(n,new Du(1))?2:3,o){case 0:return yg(r,t.fields[0]);case 1:return[r,su()];case 2:{const e=wg();return null==e?[r,uu(new rg(2))]:[new ng(r.CurrentPage,new qm(2,new ra(0,e)),r.AppMode),su()]}case 3:return[r,uu(new rg(2))]}},Lm=(e,t)=>vg(e,t),Um=(e,t)=>_g(e,t),zm=new cg(jm,Lm,e=>su(),Um,(e,t)=>{Um(e,t)},e=>{ru(e[0],e[1])},In(2,e=>e)),mg((e,t,n,r)=>pg(e,t,n,r),Rm,zm)))}]);
10
+ */const Pp=(Np=[],$(Op,{icon:Mp},...Np));var Np,Dp,Rp,zp,Lp,Bp;function jp(e){let t;const n=e.dispatch,r=e.allSteps,o=e.completedSteps,i=e.readyToCompleteStep,s=e.step;return $("div",{className:gr(" ",["row","mb-1"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col-2"]),children:vr.Children.toArray([Pp]),onClick:e=>{n(new dh(1,function(e,t,n,r){return null==t?new fh(3,n,r):new fh(1,e,t,n,r)}(s,i,o,r)))}}),$("div",{className:gr(" ",["col-8","text-center"]),children:vr.Children.toArray([(t=uh(s),$("b",{children:[t]}))])}),$("div",{className:gr(" ",["col-2"])})])})}class Up extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token"]}}class Fp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["app-base-url"]}}function Gp(e,t,n){return $(1===e.tag?Kf.ComponentTagName:2===e.tag?Qf.ComponentTagName:3===e.tag?ed.ComponentTagName:4===e.tag?td.ComponentTagName:5===e.tag?nd.ComponentTagName:Jf.ComponentTagName,hl(t,1),...n)}function Hp(e){let t;return $("div",{className:gr(" ",["text-center"]),children:vr.Children.toArray([$("h4",{children:["Well done!"]}),(t=Ko(["You've completed all the steps below.",$("br",{}),"You can review and edit your information by clicking the relevant step, or press Submit to continue."]),$("p",{children:vr.Children.toArray(Array.from(t))})),$("div",{className:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:vr.Children.toArray([$(fp,e)])})])})])})}function Wp(){let e;return $("div",{className:gr(" ",["text-center"]),children:vr.Children.toArray([$("h4",{children:["You're all set!"]}),(e=Ko(["You have submitted all the required information and have successfully completed your onboarding.",$("br",{}),$("p",{children:["You can now close this browser tab."]})]),$("p",{children:vr.Children.toArray(Array.from(e))}))])})}function Vp(e){const t=e.accessToken,n=e.appMode,r=Sa(function(e){const t=x$(e);return[new $h(qf(t.sub),gd(t.workflow.instanceId),new wc(0),new fh(0),Bo()),su()]}(t),(e,r)=>Oh(t,n,e,r),[]),o=r[0],i=r[1];Hs(_c(()=>function(e,t){return kh(e,t)}(o.ProcessInstanceId,t),e=>{i(new dh(0,e))}),[]),Hs(()=>{(window.ResizeObserver?new window.ResizeObserver(()=>{m$()}):new d$(()=>{m$()})).observe(document.body)},[]),Hs(()=>{const e=[o.ProcessInstance,o.CurrentView];let t;switch(t=2===e[0].tag?2===e[1].tag&&4===e[1].fields[0].tag?0:1:2,t){case 0:break;case 1:Cu(Uo(Ru(n)),2,2)}},[o.CurrentView,o.ProcessInstance]),Fs(()=>{window.addEventListener("step-completion",e=>{i(new dh(2,e))})});switch(o.ProcessInstance.tag){case 1:return $("div",{children:["Please wait..."]});case 3:case 2:return $("div",{className:gr(" ",["container-xl","pb-4"]),children:vr.Children.toArray(Array.from(xi(yi(()=>ki(Pi(e=>$("style",{children:[e]}),o.CssOverrides),yi(()=>{let e;const r=o.CurrentView;switch(r.tag){case 1:{const e=r.fields[0],t=r.fields[1],n=r.fields[2],o=r.fields[3];return ki(Ci($("div",{className:gr(" ",["text-center"]),children:vr.Children.toArray([$("div",{className:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:vr.Children.toArray([$(fp,{dispatch:i,state:null==t?new sp(1,e,n,o):new sp(0,e,t,n,o)})])})])})])})),yi(()=>(y$(0),bi())))}case 2:{const o=r.fields[0],s=r.fields[1],a=r.fields[2],c=r.fields[3];return Ci((e=xi(yi(()=>ki(Go(c)>1?Ci($("div",{className:gr(" ",["pt-2"]),children:vr.Children.toArray([$(jp,{step:o,readyToCompleteStep:s,completedSteps:a,allSteps:c,dispatch:i}),$(pp,{dispatch:i,state:null==s?new sp(1,o,a,c):new sp(0,o,s,a,c)})])})):bi(),yi(()=>Ci($("div",{className:gr(" ",["row","px-1"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col-12","rounded-lg","border","p-3"]),style:{backgroundColor:"#FFFFFF"},children:vr.Children.toArray(Array.from(xi(yi(()=>4===o.tag?0===zu.tag?hr(window.location.pathname,"/")?ki(Ci(Gp(new ih(4),[new Up(1,t),new Up(0,lr(ar("%s/super-selection/backend/v1.0/"))(Mu)),new Fp(0,Ru(n))],[])),yi(()=>(y$(2500),bi()))):(i(new dh(6)),bi()):(i(new dh(1,new fh(4,zu.fields[0]))),bi()):ki(Ci(Gp(o,[new Up(1,t),new Up(0,Mu)],[])),yi(()=>(y$(1500),bi())))))))})])})))))),$("div",{children:vr.Children.toArray(Array.from(e))})))}case 3:return ki(Ci($("div",{className:gr(" ",["pt-5"]),children:vr.Children.toArray([$(Hp,{dispatch:i,state:new sp(1,void 0,r.fields[0],r.fields[1])})])})),yi(()=>(y$(0),bi())));case 4:return ki(Ci($("div",{className:gr(" ",["text-center","mt-5"]),children:"We had an issue. Please try again shortly."})),yi(()=>(y$(0),bi())));case 5:return Ci($("div",{className:gr(" ",["mt-5"]),children:vr.Children.toArray([$(Wp,null)])}));default:return Ci($("div",{children:["Please wait..."]}))}}))))))});default:return $("div",{children:["Please wait..."]})}}class qp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class Yp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class Xp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}function Zp(e){return new Xp(0,e)}class Jp extends er{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 Kp(){return zr("Workflows.UI.Auth.Types.Credentials",[],Jp,()=>[["id_token",Gr],["access_token",Gr],["expires_in",Wr],["refresh_token",jr(Gr)],["scope",Gr],["token_type",Gr]])}class Qp extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}class em extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","InviteValidation","AuthCodeExchange","NotFound","LoggedOut"]}}function tm(e){let t,n,r,o,i,s,a;const c=function(e){let t,n,r;switch(Fo(e)?t=2:"workflows"===Ho(e)?Fo(Vo(e))?t=2:"app"===Ho(Vo(e))?(t=0,n=Vo(Vo(e))):"embed"===Ho(Vo(e))?Fo(Vo(Vo(e)))?t=2:"v1.0"===Ho(Vo(Vo(e)))?(t=1,r=Vo(Vo(Vo(e)))):t=2:t=2:t=2,t){case 0:return new aa(1,n);case 1:return new aa(0,r);case 2:return new aa(2,void 0)}}(e);return 1===c.tag?[Fo(c.fields[0])?Fo(c.fields[0])?new em(0):(o=ku(Ho(c.fields[0])),null!=o?Fo(o)?new em(0):"code"===Ho(o)[0]&&Fo(Vo(o))&&Fo(Vo(c.fields[0]))?(i=Ho(o)[1],new em(2,Zp(i))):new em(0):new em(0)):(t=ku(Ho(c.fields[0])),null!=t?Fo(t)?Fo(c.fields[0])?new em(0):(o=ku(Ho(c.fields[0])),null!=o?Fo(o)?new em(0):"code"===Ho(o)[0]&&Fo(Vo(o))&&Fo(Vo(c.fields[0]))?(i=Ho(o)[1],new em(2,Zp(i))):new em(0):new em(0)):"invite"===Ho(t)[0]&&Fo(Vo(t))&&Fo(Vo(c.fields[0]))?(n=Ho(t)[1],r=Lc(n),1===r.tag?new em(3):new em(1,r.fields[0])):Fo(c.fields[0])?new em(0):(o=ku(Ho(c.fields[0])),null!=o?Fo(o)?new em(0):"code"===Ho(o)[0]&&Fo(Vo(o))&&Fo(Vo(c.fields[0]))?(i=Ho(o)[1],new em(2,Zp(i))):new em(0):new em(0)):Fo(c.fields[0])?new em(0):(o=ku(Ho(c.fields[0])),null!=o?Fo(o)?new em(0):"code"===Ho(o)[0]&&Fo(Vo(o))&&Fo(Vo(c.fields[0]))?(i=Ho(o)[1],new em(2,Zp(i))):new em(0):new em(0))),new Du(1)]:2===c.tag?[new em(3),new Du(2)]:[Fo(c.fields[0])||Fo(Vo(c.fields[0]))?new em(0):(s=ku(Ho(Vo(c.fields[0]))),null!=s?Fo(s)?new em(0):"code"===Ho(s)[0]?Fo(Vo(s))?new em(0):"scope"===Ho(Vo(s))[0]?Fo(Vo(Vo(s)))?new em(0):"session_state"===Ho(Vo(Vo(s)))[0]&&Fo(Vo(Vo(Vo(s))))&&Fo(Vo(Vo(c.fields[0])))?(a=Ho(s)[1],new em(2,Zp(a))):new em(0):new em(0):new em(0):new em(0)),new Du(0)]}class nm extends er{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class rm extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut"]}}class om extends Yn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class im{constructor(e){this.state=new om(0,So(new Array(bn((e,t)=>yn(e,t),e,10)),0,bn((e,t)=>yn(e,t),e,10),null),0)}}function sm(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 om(0,o,n):new om(1,o,n,i),$o(o[r])}}function am(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 c=(i+1)%a.length|0;e.state=c===s?new om(1,(r=s,o=a,Array.from(yi(()=>ki(Di(r,o),yi(()=>ki(Ri(r,o),yi(()=>zi(e=>Ci(null),Ps(0,1,o.length))))))))),a.length,0):new om(1,a,c,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 om(1,o,i,r)}var r,o}class cm extends er{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 um(e,t){return new cm(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function lm(e){return En(2,e.view)}function fm(e,t){const n=t.init(e),r=n[0],o=new im(10);let i=!1,s=r;const a=kn(1,t.syncDispatch,[e=>{if(i)am(o,e);else{i=!0;let n=$o(e);for(;null!=n;){const e=ho(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),iu(n=>{t.onError([lr(ar("Error in command while handling: %A"))(e),n])},a,n[1]),s=r}catch(n){t.onError([lr(ar("Unable to process the message: %A"))(e),n])}n=sm(o)}i=!1}}]);t.setState(r,a),iu(e=>{t.onError(["Error intitializing:",e])},a,cu(Ko([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),su()}})(),n[1]])))}class dm extends er{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class $m extends m{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function hm(e,t,n,r){return $($m,new dm(n,()=>t(n,r),e))}function pm(e,t,n){return um((r,o)=>{Se(e((e,t)=>e===t,xn(2,lm(n)),r,o),document.getElementById(t))},n)}function mm(e,t){const n=encodeURIComponent(t.fields[0]);const r=encodeURIComponent("apollo-workflows-app"),o=encodeURIComponent((i=new Du(0),`${window.location.protocol}//${window.location.host}${Ru(i)}`));var i;return qu(0,()=>{let e,t;const i=na.Bind(al((t=ol(new Yu(1),rl(Au+"/connect/token")),e=il(el("application/x-www-form-urlencoded"),t),sl(new Zu(1,`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${o}`),e))),e=>na.Return(new ra(0,e)));return na.Delay(()=>na.Bind(i,e=>{let t;const n=e;return 1===n.tag?na.Return(new ra(1,n.fields[0])):na.ReturnFrom((t=n.fields[0],200===t.statusCode?na.Return(Tf(t.responseText,void 0,void 0,{ResolveType:Kp})):na.Return(new ra(1,"Unexpected result from backend"))))}))})}function gm(){return yo(e=>{return 1===(t=Tf(e,void 0,void 0,{ResolveType:Kp})).tag?void 0:$o(t.fields[0]);var t},po(window.sessionStorage.getItem("credentials")))}function wm(e,t){const n=function(e){return[new qp(0),uu(new Qp(0,new Yp(0),e))]}(t);return[new nm(e.CurrentPage,n[0],e.AppMode),au(e=>new rm(1,e),n[1])]}function ym(e,t){switch(e.tag){case 1:{const n=function(e,t,n){let r;return 1===e.fields[0].tag?1===e.fields[0].fields[0].tag?[new qp(2,new ra(1,"SignIn failed: "+e.fields[0].fields[0].fields[0])),su()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new qp(2,new ra(0,e.fields[0].fields[0].fields[0])),(r=window.location.pathname,Uo(e=>{Cu(Uo(r),1,2)}))]):[new qp(1),lu(e=>{fu(e)},e=>mm(0,e),e.fields[1],t=>{const n=[new Yp(1,t),e.fields[1]];return new Qp(0,n[0],n[1])},t=>{const n=[new Yp(1,new ra(1,t.message)),e.fields[1]];return new Qp(0,n[0],n[1])})]}(e.fields[0],t.Credentials,t.AppMode),r=n[0],o=[r,t.AppMode];let i,s;switch(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,i){case 0:!function(e){const t=["credentials",xh(0,new Jp(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:Kp})];window.sessionStorage.setItem(t[0],t[1])}(s)}return[new nm(t.CurrentPage,r,t.AppMode),au(e=>new rm(1,e),n[1])]}case 2:return[new nm(new em(4),t.Credentials,t.AppMode),su()];default:{const n=tm(e.fields[0])[0],r=new nm(n,t.Credentials,t.AppMode);return 2===n.tag?wm(r,n.fields[0]):[r,su()]}}}function vm(e,t){const n=$("div",{className:gr(" ",["workflows-app"]),children:vr.Children.toArray(Array.from(xi(yi(()=>{const t=e.CurrentPage;switch(t.tag){case 2:return Ci(function(){let e,t;return $("div",{className:gr(" ",["container","vh-100","fade-in"]),children:vr.Children.toArray([$("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:vr.Children.toArray([$("div",{className:gr(" ",["col","col-sm-10","col-md-8","col-lg-5","card","border-light","rounded-lg","shadow-sm"]),children:vr.Children.toArray([$("div",{className:"card-body",children:vr.Children.toArray([$("div",{className:gr(" ",["pt-4","text-center"]),children:vr.Children.toArray([$("i",{className:gr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),$("h4",{className:gr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),$("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),$("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:vr.Children.toArray([(e="Flare HR Pty Ltd © 2015-"+(t=jn(),Gn(t)),$("small",{children:[e]}))])})])})])})])})])})}());case 1:return Ci($(v$,{inviteCode:t.fields[0]}));case 3:return Ci($("h1",{children:["Not found"]}));case 4:return Ci($(_$,null));default:{const t=e.Credentials;let n,r;switch(2===t.tag&&0===t.fields[0].tag?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return Ci($(Vp,{appMode:e.AppMode,accessToken:r.access_token}));case 1:return Ci($("h1",{children:["Unauthorised"]}))}}}}))))});return xu({hashMode:2,onUrlChanged:e=>{t(new rm(0,e))},application:$(p,{},n)})}!function(e){fm(void 0,e)}((Dp="workflows-app",zp=function(){const e=tm(Su(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new nm(t,new qp(0),n);let o;switch(o=2===t.tag?0:1===t.tag?1:0===t.tag&&gn(n,new Du(1))?2:3,o){case 0:return wm(r,t.fields[0]);case 1:return[r,su()];case 2:{const e=gm();return null==e?[r,uu(new rm(2))]:[new nm(r.CurrentPage,new qp(2,new ra(0,e)),r.AppMode),su()]}case 3:return[r,uu(new rm(2))]}},Lp=(e,t)=>ym(e,t),Bp=(e,t)=>vm(e,t),Rp=new cm(zp,Lp,e=>su(),Bp,(e,t)=>{Bp(e,t)},e=>{ru(e[0],e[1])},xn(2,e=>e)),pm((e,t,n,r)=>hm(e,t,n,r),Dp,Rp)))}]);