@flarehr/workflows-app 2.12.1 → 2.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/workflows-app.js +2 -2
- package/package.json +1 -1
package/dist/workflows-app.js
CHANGED
|
@@ -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 Se})),n.d(t,"b",(function(){return xe}));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,w=f,g=d,v=(m.document,!!w.documentElement&&!!w.head&&"function"==typeof w.addEventListener&&"function"==typeof w.createElement),y=(~p.indexOf("MSIE")||p.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),_=y.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(y.map((function(e){return"".concat(e,"x")}))).concat(_.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(w&&"function"==typeof w.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=w.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(C[r]=o)}))}var x=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);x.autoReplaceSvg||(x.observeMutations=!1);var S=a({},x);m.FontAwesomeConfig=S;var k=m||{};k.___FONT_AWESOME___||(k.___FONT_AWESOME___={}),k.___FONT_AWESOME___.styles||(k.___FONT_AWESOME___.styles={}),k.___FONT_AWESOME___.hooks||(k.___FONT_AWESOME___.hooks={}),k.___FONT_AWESOME___.shims||(k.___FONT_AWESOME___.shims=[]);var I=k.___FONT_AWESOME___,E=[];v&&((w.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(w.readyState)||w.addEventListener("DOMContentLoaded",(function e(){w.removeEventListener("DOMContentLoaded",e),1,E.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){F(i,e)}}j(i,r)||("fulfilled"===n&&z(i,r),"rejected"===n&&F(i,r))}function j(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,F(e,t))})),!0}}catch(t){return n||F(e,t),!0}return!1}function z(e,t){e!==t&&j(e,t)||L(e,t)}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(B,e))}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(H,e))}function U(e){e._then=e._then.forEach(R)}function B(e){e._state="fulfilled",U(e)}function H(t){t._state="rejected",U(t),!t._handled&&A&&e.process.emit("unhandledRejection",t._data,t)}function W(t){e.process.emit("rejectionHandled",t)}function V(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof V==!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){F(t,e)}try{e((function(e){z(t,e)}),n)}catch(e){n(e)}}(e,this)}V.prototype={constructor:V,_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(W,this)),"fulfilled"===this._state||"rejected"===this._state?D(R,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},V.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new V((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)}))},V.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new V((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)}))},V.resolve=function(e){return e&&"object"===o(e)&&e.constructor===V?e:new V((function(t){t(e)}))},V.reject=function(e){return new V((function(t,n){n(e)}))};var G={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $(e){if(e&&v){var t=w.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=w.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 w.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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Z(e){return e.size!==G.size||e.x!==G.x||e.y!==G.y||e.rotate!==G.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,h=e.watchable,p=void 0!==h&&h,m=r.found?r:n,w=m.width,g=m.height,v="fak"===o,y=v?"":"fa-w-".concat(Math.ceil(w/g*16)),_=[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(" "),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(w," ").concat(g)})},C=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(w/g*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 x=a({},b,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:s,symbol:c,styles:a({},C,d.styles)}),k=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=J({transform:c,containerWidth:f,iconWidth:u}),p={tag:"rect",attributes:a({},K,{fill:"white"})},m=l.children?{children:l.children.map(Q)}:{},w={tag:"g",attributes:a({},h.inner),children:[Q(a({tag:l.tag,attributes:a({},l.attributes,h.path)},m))]},g={tag:"g",attributes:a({},h.outer),children:[w]},v="mask-".concat(s||q()),y="clip-".concat(s||q()),_={tag:"mask",attributes:a({},K,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},_]};return n.push(b,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},K)}),{children:n,attributes:r}}(x):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}}(x),I=k.children,E=k.attributes;return x.children=I,x.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}]}]}(x):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}]}(x)}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"},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;"}),I.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(S.familyPrefix,"-").concat(b.GROUP)},children:[{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(b.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(b.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}I.styles;function we(){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&&!Ce&&($(we()),Ce=!0)}function ve(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(v){var t=w.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(be.definitions,n,r)||ae(I.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,xe={transform:function(e){return ue(e)}},Se=(_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?G: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,w=void 0===m?[]:m,g=t.attributes,v=void 0===g?{}:g,y=t.styles,_=void 0===y?{}:y;if(e){var b=e.prefix,C=e.iconName,x=e.icon;return ve(a({type:"icon"},e),(function(){return ge(),S.autoA11y&&(d?v["aria-labelledby"]="".concat(S.replacementClass,"-title-").concat(p||q()):(v["aria-hidden"]="true",v.focusable="false")),ee({icons:{main:me(x),mask:c?me(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:C,transform:a({},G,r),symbol:i,title:d,maskId:l,titleId:p,extra:{attributes:v,styles:_,classes:w}})}))}},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||{})),_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 Wm}));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 w(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 v(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 v(e)}}function y(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?g(o):i,o.__h),A(n,o),o.__e!=i&&v(o)))}))}function b(e,t,n,r,o,i,s,a,l,f){var d,h,w,v,y,_,b,x=r&&r.__k||u,k=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v?p(null,v,null,null,v):Array.isArray(v)?p(m,{children:v},null,null,null):v.__b>0?p(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(w=x[d])||w&&v.key==w.key&&v.type===w.type)x[d]=void 0;else for(h=0;h<k;h++){if((w=x[h])&&v.key==w.key&&v.type===w.type){x[h]=void 0;break}w=null}O(e,v,w=w||c,o,i,s,a,l,f),y=v.__e,(h=v.ref)&&w.ref!=h&&(b||(b=[]),w.ref&&b.push(w.ref,null,v),b.push(h,v.__c||y,v)),null!=y?(null==_&&(_=y),"function"==typeof v.type&&null!=v.__k&&v.__k===w.__k?v.__d=l=C(v,l,e):l=S(e,v,w,x,y,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&w.__e==l&&l.parentNode!=e&&(l=g(w))}for(n.__e=_,d=k;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=g(r,d+1)),N(x[d],x[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):S(n,o,o,e.__k,o.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(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 k(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||k(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||k(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:E,i):e.removeEventListener(t,i?T: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 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,g,v,y,_,C,x,S,k=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 k){if(_=t.props,C=(l=k.contextType)&&o[l.__c],x=l?C?C.props.value:l.__:o,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(_,x):(t.__c=d=new w(_,x),d.constructor=k,d.render=D),C&&C.sub(d),d.props=_,d.state||(d.state={}),d.context=x,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,k.getDerivedStateFromProps(_,d.__s))),p=d.props,g=d.state,h)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&_!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,x)||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,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,g,v)}))}d.context=x,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||(v=d.getSnapshotBeforeUpdate(p,g)),S=null!=l&&l.type===m&&null==l.key?l.props.children:l,b(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=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,w=t.props,g=t.type,v=0;if("svg"===g&&(o=!0),null!=i)for(;v<i.length;v++)if((l=i[v])&&(l===e||(g?l.localName==g:3==l.nodeType))){e=l,i[v]=null;break}if(null==e){if(null===g)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,w.is&&w),i=null,a=!1}if(null===g)m===w||a&&e.data===w||(e.data=w);else{if(i=i&&u.slice.call(e.childNodes),f=(m=n.props||c).dangerouslySetInnerHTML,h=w.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||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,w,m,o,a),h)t.__k=[];else if(v=t.props.children,b(e,Array.isArray(v)?v:[v],t,n,r,o&&"foreignObject"!==g,i,s,e.firstChild,a),null!=i)for(v=i.length;v--;)null!=i[v]&&d(i[v]);a||("value"in w&&void 0!==(v=w.value)&&(v!==e.value||"progress"===g&&!v)&&I(e,"value",v,m.value,!1),"checked"in w&&void 0!==(v=w.checked)&&v!==e.checked&&I(e,"checked",v,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 j(e,t){R(e,t,j)}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),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},w.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))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),y(this))},w.prototype.render=m,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,a=0;var L,F,U,B=0,H=[],W=r.__b,V=r.__r,G=r.diffed,$=r.__c,q=r.unmount;function Y(e,t){r.__h&&r.__h(F,e,B||t),B=0;var n=F.__H||(F.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return B=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=F),r.__}function J(e,t){var n=Y(L++,3);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,F.__H.__h.push(n))}function K(e,t){var n=Y(L++,4);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,F.__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(){H.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)}})),H=[]}r.__b=function(e){F=null,W&&W(e)},r.__r=function(e){V&&V(e),L=0;var t=(F=e.__c).__H;t&&(t.__h.forEach(re),t.__h.forEach(oe),t.__h=[])},r.diffed=function(e){G&&G(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==H.push(t)&&U===r.requestAnimationFrame||((U=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ne&&(t=requestAnimationFrame(n))})(te)),F=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=F;"function"==typeof e.__c&&e.__c(),F=t}function oe(e){var t=F;e.__c=e.__(),F=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 w).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:x(x(e).map(t))},he={map:de,forEach:de,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},pe=r.__e;function me(){this.__u=0,this.t=null,this.__b=null}function we(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);pe(e,t,n)},(me.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=we(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 ve=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ye(e){return this.getChildContext=function(){return e.context},e.children}function _e(e){var t=this,n=e.i;t.componentWillUnmount=function(){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(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new w).__e=function(e){var t=this,n=we(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ve(t,e,r)):o()};n?n(i):i()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(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){ve(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]/,xe=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=""),R(e,t),"function"==typeof n&&n(),e?e.__c:null}function ke(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.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 Te(){return this.cancelBubble}function Oe(){return this.defaultPrevented}r.event=function(e){return Ie&&(e=Ie(e)),e.persist=Ee,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)&&!xe(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=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(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 je,ze={useState:X,useReducer:Z,useEffect:J,useLayoutEffect:K,useRef:function(e){return B=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){B=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 B=8,Q((function(){return e}),t)},useContext:function(e){var t=F.context[e.__c],n=Y(L++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(F)),t.props.value):e.__},useDebugValue:ee,version:"16.8.0",Children:he,render:Se,hydrate:ke,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(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 h.bind(null,e)},cloneElement:function(e){return Re(e)?z.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:w,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:ge,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: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 Fe(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&je.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 Ue(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Fe(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 Be(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(je||(je={}));const He=Symbol("numeric");function We(e){return"number"==typeof e||(null==e?void 0:e[He])}function Ve(e,t){return"number"==typeof e?e*t:e[He]().multiply(t)}function Ge(e,t){return"number"==typeof e?e.toFixed(t):e[He]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[He]().toPrecision(t)}function qe(e,t){return"number"==typeof e?e.toExponential(t):e[He]().toExponential(t)}function Ye(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[He]().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 Tt(this,e)},Ze.prototype.toString=function(e){return _t(this,e)},Ze.prototype.toJSON=function(){return _t(this)},Ze.prototype[He]=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:Ft(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 wt}else{if(e<=-ct)return gt;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 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 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),wt=nt(-1,-1,!0),gt=nt(0,-2147483648,!1);function vt(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 _t(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(bt(e))return"0";if(Ct(e)){if(St(e,gt)){var n=tt(t),r=Nt(e,n),o=Mt(Pt(r,n),e);return _t(r,t)+vt(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=(vt(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 xt(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 kt(e,t){return Tt(e,t)<0}function It(e,t){return Tt(e,t)>0}function Et(e,t){return Tt(e,t)>=0}function Tt(e,t){if(Je(t)||(t=it(t)),St(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&&St(e,gt)?gt:At(Dt(e),dt)}function At(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 Mt(e,t){return Je(t)||(t=it(t)),At(e,Ot(t))}function Pt(e,t){if(bt(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(bt(t))return e.unsigned?ft:lt;if(St(e,gt))return xt(t)?gt:lt;if(St(t,gt))return xt(e)?gt: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(kt(e,ut)&&kt(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,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(Je(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)),It(t,e))return ft;if(It(t,zt(e,1)))return ht;o=ft}else{if(St(e,gt))return St(t,dt)||St(t,pt)?gt:St(t,gt)?dt:St(n=Rt(Nt(jt(e,1),t),1),lt)?Ct(t)?dt:pt:o=At(n,Nt(r=Mt(e,Pt(t,n)),t));if(St(t,gt))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;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=Pt(a,t);Ct(c)||It(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 Je(t)&&(t=vt(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 jt(e,t){return Je(t)&&(t=vt(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=vt(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 Ft(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 Ut=At,Bt=Pt,Ht=Nt,Wt=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):Mt(e,Pt(Nt(e,t),t))},Vt=Ot,Gt=function(e,t){return Je(t)||(t=it(t)),nt(e.low&t.low,e.high&t.high,e.unsigned)},$t=Tt,qt=nt,Yt=vt,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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class en{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 tn(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function nn(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function rn(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class on{static id(e){return on.idMap.has(e)||on.idMap.set(e,++on.count),on.idMap.get(e)}}function sn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function an(e){return 2654435761*e|0}function cn(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function un(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return an(e);case"string":return sn(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]=un(e[r]);return cn(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return cn(Object.values(e).map(e=>un(e)))}return an(on.id(e))}}function ln(e){return null==e?0:Kt(e)?e.GetHashCode():an(on.id(e))}function fn(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 dn(e,t){return fn(e,t,hn)}function hn(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)&&dn(e,t):e instanceof Date?t instanceof Date&&0===pn(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]||!hn(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function pn(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+nn(e),r=t.getTime()+nn(t)),n===r?0:n<r?-1:1}function mn(e,t){return e===t?0:e<t?-1:1}function wn(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,gn)}function gn(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)?wn(e,t):-1:e instanceof Date?t instanceof Date?pn(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=gn(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function vn(e,t,n){return e(t,n)>0?t:n}function yn(e){const t={};for(const n of e)t[n[0]]=n[1];return t}on.idMap=new WeakMap,on.count=0;function _n(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,a)=>t(e)(n)(r)(o)(i)(s)(a);break;case 8:n=(e,n,r,o,i,s,a,c)=>t(e)(n)(r)(o)(i)(s)(a)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function bn(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>a=>t(e,n,r,o,i,s,a);case 8:return e=>n=>r=>o=>i=>s=>a=>c=>t(e,n,r,o,i,s,a,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function Cn(e,t){return t.length>e?(...e)=>(...n)=>t.apply(void 0,e.concat(n)):t}function xn(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>a=>t.apply(void 0,n.concat([e,r,o,i,s,a]));case 7:return e=>r=>o=>i=>s=>a=>c=>t.apply(void 0,n.concat([e,r,o,i,s,a,c]));case 8:return e=>r=>o=>i=>s=>a=>c=>u=>t.apply(void 0,n.concat([e,r,o,i,s,a,c,u]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}function Sn(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=bn(e,n)),t>1&&(n=_n(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}const kn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function In(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+tn(~~(e/36e5),2)+":"+tn(n,2)}function En(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 Tn(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 On(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," ")+In(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Tn(i,t,!0);switch(t){case"D":case"d":return En(i,"first");case"T":case"t":return En(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+In(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function An(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Tn(e,t,n);switch(t){case"D":case"d":return n?En(e,"first"):e.toLocaleDateString();case"T":case"t":return n?En(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 tn(e.getFullYear(),4)+"-"+tn(e.getMonth()+1,2)+"-"+tn(e.getDate(),2)+"T"+tn(e.getHours(),2)+":"+tn(e.getMinutes(),2)+":"+tn(e.getSeconds(),2)+"."+tn(e.getMilliseconds(),3)+(t?In(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function Mn(e,t,n){return null!=e.offset?On(e,t):An(e,t)}function Pn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Nn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function Dn(e,t){try{return t.contents=function(e,t=!1){const n=Nn(e),r=kn.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return Pn(n.getTime(),o)}(e),!0}catch(e){return!1}}function Rn(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=Pn(c,a);return e<=99&&u.setFullYear(e,t-1,n),u}function jn(){return Rn(Fn(e=Pn(Date.now(),2)),Ln(e),zn(e),0,0,0,0,e.kind);var e}function zn(e){return 1===e.kind?e.getUTCDate():e.getDate()}function Ln(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function Fn(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function Un(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 Bn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Hn(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}function Wn(e){let t=0,n="[";for(const r of e){if(0===t)n+=Vn(r);else{if(100===t){n+="; ...";break}n+="; "+Vn(r)}t++}return n+"]"}function Vn(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return Wn(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+Vn(n,t+1)).join("\n ")+" }":n.name}}return String(e)}function Gn(e,t){if(e===t)return 0;if(null==t)return-1;for(;null!=e.tail;){if(null==t.tail)return 1;const n=gn(e.head,t.head);if(0!==n)return n;e=e.tail,t=t.tail}return null==t.tail?0:-1}class $n{constructor(e,t){this.head=e,this.tail=t}[Symbol.iterator](){let e=this;return{next:()=>{const t=null==e?void 0:e.head,n=null==(null==e?void 0:e.tail);return e=null==e?void 0:e.tail,{done:n,value:t}}}}toJSON(){return Array.from(this)}toString(){return Wn(this)}GetHashCode(){return cn(Array.from(this).map(un))}Equals(e){return 0===Gn(this,e)}CompareTo(e){return Gn(this,e)}}class qn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",t=!0;if(1===this.fields.length){const n=Vn(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>Vn(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>un(e));return e.splice(0,0,an(this.tag)),cn(e)}Equals(e){return this===e||!!Qt(this,e)&&(this.tag===e.tag&&dn(this.fields,e.fields))}CompareTo(e){return this===e?0:Qt(this,e)?this.tag===e.tag?wn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function Yn(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Xn(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+Vn(t)).join("\n ")+" }"}function Zn(e){return cn(Object.values(e).map(e=>un(e)))}function Jn(e,t){if(e===t)return!0;if(Qt(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!hn(e[n[r]],t[n[r]]))return!1;return!0}return!1}function Kn(e,t){if(e===t)return 0;if(Qt(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=gn(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class Qn{toJSON(){return Yn(this)}toString(){return Xn(this)}GetHashCode(){return Zn(this)}Equals(e){return Jn(this,e)}CompareTo(e){return Kn(this,e)}}class er{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 tr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,nr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,rr=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function or(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function ir(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 sr(e){return{input:e,cont:(t=e,e=>tr.test(t)?function e(t,n,r=new er(null)){return(...o)=>{let i=t;for(const e of o)i=dr(i,e,r);return tr.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function ar(e,t){let n=0;return e.replace(nr,(e,r,o,i,s,a)=>fr(t[n++],r,o,i,s,a))}function cr(e,t){return"string"==typeof t?e(t):t.cont(e)}function ur(e){return cr(e=>e,e)}function lr(e){return cr(e=>{throw new Error(e)},e)}function fr(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",We(e))switch("x"!==i.toLowerCase()&&(or(e,0)?(e=Ve(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=Ge(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?$e(e,o):$e(e);break;case"e":case"E":e=null!=o?qe(e,o):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?Mn(e):Vn(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=vr(e,r-s.length,i,o)):vr(s+e,r,i,o)}return t?t+e:e}function dr(e,t,n){return e.replace(tr,(e,r,o,i,s,a)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return fr(t,r,o,i,s,a).replace(/%/g,"%%")})}function hr(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(rr,(e,n,r,o,i,s)=>{let a=t[n];if(We(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ge(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=Ge(Ve(a,100),i)+" %";break;case"d":case"D":a=null!=i?vr(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?vr(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)=>(or(a,0)&&(a=Ve(a,-1),e="-"),a=Ge(a,null!=r?r.length-1:0),vr(a,(n||"").length-e.length+(null!=r?r.length:0),"0"))),a=e+a}}else a=a instanceof Date?Mn(a,s||o):Vn(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=vr(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 wr(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 vr(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 _r=ze;class br{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return un(this.value)}Equals(e){return null!=e&&hn(this.value,e instanceof br?e.value:e)}CompareTo(e){return null==e?1:gn(this.value,e instanceof br?e.value:e)}}function Cr(e){return null==e||e instanceof br?new br(e):e}function xr(e){if(null==e)throw new Error("Option has no value");return e instanceof br?e.value:e}function Sr(e){return null==e?void 0:e}function kr(e){return null==e?[]:[xr(e)]}function Ir(e,t){return null!=e?xr(e):t}function Er(e,t){return null!=t?Cr(e(xr(t))):void 0}function Tr(e,t){return null!=t?e(xr(t)):void 0}var Or={GetHashCode(){return cn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[He](){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)}}},Ar="[big.js] ",Mr=Ar+"Invalid ",Pr=Mr+"decimal places",Nr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Dr(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!Nr.test(t+=""))throw Error(Mr+"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=Rr(e,zr.DP,zr.RM)}function Rr(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function jr(e,t,n,r){var o,i,s=e.constructor,a=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?Mr+"precision":Pr);for(n=r-(e=new s(e)).e,e.c.length>++r&&Rr(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!a||4==t)?"-"+i:i}Or.abs=function(){var e=new this.constructor(this);return e.s=1,e},Or.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},Or.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(Pr);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var a,c,u,l,f,d=o.slice(),h=a=o.length,p=r.length,m=r.slice(0,a),w=m.length,g=e,v=g.c=[],y=0,_=s+(g.e=n.e-e.e)+1;for(g.s=i,i=_<0?0:_,d.unshift(0);w++<a;)m.push(0);do{for(u=0;u<10;u++){if(a!=(w=m.length))l=a>w?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=w==a?o:d;w;){if(m[--w]<c[w]){for(f=w;f&&!m[--f];)m[f]=9;--m[f],m[w]+=10}m[w]-=c[w]}for(;!m[0];)m.shift()}v[y++]=l?u:++u,m[0]&&l?m[w]=r[h]||0:m=[r[h]]}while((h++<p||void 0!==m[0])&&i--);return v[0]||1==y||(v.shift(),g.e--),y>_&&Rr(g,s,t.RM,void 0!==m[0]),g},Or.eq=function(e){return!this.cmp(e)},Or.gt=function(e){return this.cmp(e)>0},Or.gte=function(e){return this.cmp(e)>-1},Or.lt=function(e){return this.cmp(e)<0},Or.lte=function(e){return this.cmp(e)<1},Or.minus=Or.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,e):new i(u[0]?s:0);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},Or.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)))},Or.plus=Or.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,a=r.c,c=e.e,u=e.c;if(!a[0]||!u[0])return u[0]?e:new n(a[0]?r:0*o);if(a=a.slice(),o=s-c){for(o>0?(c=s,t=u):(o=-o,t=a),t.reverse();o--;)t.push(0);t.reverse()}for(a.length-u.length<0&&(t=u,u=a,a=t),o=u.length,i=0;o;a[o]%=10)i=(a[--o]=a[o]+u[o]+i)/10|0;for(i&&(a.unshift(i),++c),o=a.length;0===a[--o];)a.pop();return e.c=a,e.e=c,e},Or.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(Mr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Or.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Pr);return Rr(new n(this),e,void 0===t?n.RM:t)},Or.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(Ar+"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?"1e":(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 Rr(e,r.DP-=4,r.RM)},Or.times=Or.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 new n(0*e.s);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]=(t[u]+a)%10}for(a?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Or.toExponential=function(e){return jr(this,1,e,e)},Or.toFixed=function(e){return jr(this,2,e,this.e+e)},Or.toPrecision=function(e){return jr(this,3,e,e-1)},Or.toString=function(){return jr(this)},Or.valueOf=Or.toJSON=function(){return jr(this,4)};var zr=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=Rr(e,28,0)).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)):Dr(r,n),r.constructor=t}return t.prototype=Or,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),Lr=zr;new Lr(0),new Lr(1),new Lr(-1),new Lr("79228162514264337593543950335"),new Lr("-79228162514264337593543950335");class Fr{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 Ur(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Fr(e[Symbol.iterator]())}function Br(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 Hr{constructor(e){this.f=e}[Symbol.iterator](){return new Hr(this.f)}next(){var e;return this.iter=null!==(e=this.iter)&&void 0!==e?e:this.f(),this.iter.next()}toString(){return"seq ["+Array.from(this).join("; ")+"]"}}function Wr(e){return new Hr(e)}function Vr(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Gr(e,t){return Yr(()=>{let n=!1;let r=[e[Symbol.iterator](),void 0];return co(()=>{var e,o;let i;if(!n){if(i=null===(e=r[0])||void 0===e?void 0:e.next(),null!=i&&!i.done)return[i.value,r];n=!0,r=[void 0,t[Symbol.iterator]()]}return i=null===(o=r[1])||void 0===o?void 0:o.next(),null==i||i.done?void 0:[i.value,r]},r)})}function $r(e){return Yr(()=>{const t=e[Symbol.iterator]();let n;return co(e=>{let r=!1;for(;!r;)if(null==e){const n=t.next();n.done?r=!0:e=n.value[Symbol.iterator]()}else{const t=e.next();t.done?e=void 0:(n=t.value,r=!0)}return null!=e?[n,e]:void 0},void 0)})}function qr(e,t){return $r(no(e,t))}function Yr(e){return Wr(()=>e()[Symbol.iterator]())}function Xr(){return Yr(()=>[])}function Zr(e){return Yr(()=>[e])}function Jr(e,t){let n;for(const r=t[Symbol.iterator]();n=r.next(),!n.done;)if(e(n.value))return!0;return!1}function Kr(e,t){return Jr(t=>hn(t,e),t)}function Qr(e,t,n){if(Vr(n))return n.reduce(e,t);{let r;for(let o=0,i=n[Symbol.iterator]();r=i.next(),!r.done;o++)t=e(t,r.value,o);return t}}function eo(e,t){Qr((t,n)=>{e(n)},void 0,t)}function to(e,t){Qr((t,n,r)=>{e(null!=r?r:0,n)},void 0,t)}function no(e,t){return Yr(()=>co(t=>{const n=t.next();return n.done?void 0:[e(n.value),t]},t[Symbol.iterator]()))}function ro(e,t){return Yr(()=>{let n=0;return co(t=>{const r=t.next();return r.done?void 0:[e(n++,r.value),t]},t[Symbol.iterator]())})}function oo(e,t,n){if(0===t)throw new Error("Step cannot be 0");return Yr(()=>co(e=>t>0&&e<=n||t<0&&e>=n?[e,e+t]:void 0,e))}function io(e,t){return Wr(()=>{const n=t[Symbol.iterator]();for(let t=1;t<=e;t++)if(n.next().done)throw new Error("Seq has not enough elements");return n})}function so(e,t,n){return Qr((t,r)=>n.Add(t,e(r)),n.GetZero(),t)}function ao(e,t,n=!1){return Yr(()=>{const r=t[Symbol.iterator]();return co(t=>{if(t<e){const e=r.next();if(!e.done)return[e.value,t+1];if(!n)throw new Error("Seq has not enough elements")}},0)})}function co(e,t){return Wr(()=>{let n=t;return{next(){const t=e(n);if(null!=t){const e=xr(t);if(null!=e)return n=e[1],{done:!1,value:e[0]}}return{done:!0,value:void 0}}}})}class uo{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class lo{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 Io(this)}GetHashCode(){return ho(this)}Equals(e){return po(this,e)}}function fo(e){return null!=e.generics?e.generics:[]}function ho(e){return cn([sn(e.fullname),...fo(e).map(ho)])}function po(e,t){return""===e.fullname?""===t.fullname&&fn(zo(e),zo(t),([e,t],[n,r])=>e===n&&po(t,r)):e.fullname===t.fullname&&fn(fo(e),fo(t),po)}function mo(e,t,n,r){return new lo(e,t,n,r)}function wo(e,t,n,r){return new lo(e,t,n,void 0,r)}function go(e,t,n,r){const o=new lo(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new uo(o,n,e[n],t))});return o}function vo(...e){return new lo("System.Tuple`"+e.length,e)}function yo(e){return new lo("Microsoft.FSharp.Core.FSharpOption`1",[e])}function _o(e){return new lo("Microsoft.FSharp.Collections.FSharpList`1",[e])}const bo=new lo("System.Object"),Co=(new lo("Microsoft.FSharp.Core.Unit"),new lo("System.Char"),new lo("System.String")),xo=(new lo("System.Boolean"),new lo("System.SByte"),new lo("System.Byte"),new lo("System.Int16"),new lo("System.UInt16"),new lo("System.Int32")),So=(new lo("System.UInt32"),new lo("System.Single"),new lo("System.Double"));new lo("System.Decimal");function ko(e){if(Array.isArray(e))return e[0];if(e instanceof uo)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Io(e){const t=null==e.generics||Eo(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>Io(e)).join(",")+"]":e.fullname}function Eo(e){return e.fullname.endsWith("[]")}function To(e){var t;return Eo(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}function Oo(e){return null!=e.generics&&e.generics.length>0}function Ao(e){return null!=e.enumCases&&e.enumCases.length>0}function Mo(e){return null==e.generics?e:new lo(e.fullname,e.generics.map(()=>bo))}function Po(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function No(e){if(Ao(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function Do(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 Ro(e,t){const n=parseInt(t,10);return Do(e,isNaN(n)?t:n)[1]}function jo(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function zo(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function Lo(e){if(Bo(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}function Fo(e){return e instanceof lo?null!=e.cases:e instanceof qn}function Uo(e){return e instanceof lo?null!=e.fields:e instanceof Qn}function Bo(e){return e.fullname.startsWith("System.Tuple")&&!Eo(e)}function Ho(e){return null==e.fields?[]:e.fields}function Wo(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):{}}const Vo=0,Go=1,$o=2,qo=3,Yo=4;function Xo(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 Zo(e,t=Vo){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 Go:return e.charAt(0).toLowerCase()+e.slice(1);case $o:return Xo(e,"_");case qo:return Xo(e,"_").toUpperCase();case Yo:return Xo(e,"-");case Vo:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Vo;if(null==t&&o(t),t instanceof qn){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 Jo(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function Ko(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Qo{constructor(e,t){const n=new er(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const r=Ur(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();oi(n.contents,e[0],e[1])}}finally{r.Dispose()}}get[Symbol.toStringTag](){return"Dictionary"}"System.Collections.IEnumerable.GetEnumerator"(){return Ur(this)}GetEnumerator(){return Ur($r(this.hashMap.values()))}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){oi(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){ni(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=ti(this,e[0]);let n;switch(n=null!=t&&hn(t[1],e[1])?0:1,n){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){to((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ri(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=this,n=ti(t,e[0]);return null!=n&&(hn(n[1],e[1])&&ii(t,e[0]),!0)}get size(){return 0|ri(this)}clear(){ni(this)}delete(e){return ii(this,e)}entries(){return no(e=>[e[0],e[1]],this)}get(e){return function(e,t){const n=ti(e,t);if(null!=n)return n[1];throw new Error("The item was not found in collection")}(this,e)}has(e){return function(e,t){const n=ei(e,t);let r;r=n[0]&&n[2]>-1?0:1;switch(r){case 0:return!0;case 1:return!1}}(this,e)}keys(){return no(e=>e[0],this)}set(e,t){return function(e,t,n){const r=ei(e,t);let o;o=r[0]&&r[2]>-1?0:1;switch(o){case 0:Ko(e.hashMap,r[1])[r[2]]=[t,n];break;case 1:if(r[0]){Ko(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}(this,e,t),this}values(){return no(e=>e[1],this)}forEach(e,t){const n=this;eo(t=>{e(t[1],t[0],n)},n)}}function ei(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[Jo(e.hashMap,n,new er(()=>o,e=>{o=e})),o],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n[0]))]:[!1,n,-1]}function ti(e,t){const n=ei(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ko(e.hashMap,n[1])[n[2]];case 1:return}}function ni(e){e.hashMap.clear()}function ri(e){return so(e=>e.length,e.hashMap.values(),{GetZero:()=>0,Add:(e,t)=>e+t})}function oi(e,t,n){const r=ei(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]){Ko(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function ii(e,t){const n=ei(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ko(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}Symbol.toStringTag,Symbol.iterator;function si(e,t){return"function"==typeof e?new e(t):new Array(t)}function ai(){throw new Error("Arrays had different lengths")}function ci(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function ui(e,t,n){const r=0|t.length,o=si(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function li(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=si(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function fi(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function di(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;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&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>gn(e,t),t,n)}function hi(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&ai();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)}function pi(){return new $n}function mi(e){return new $n(e,pi())}function wi(e,t){return new $n(e,t)}function gi(e){if(null!=e.tail)return e.tail;throw new Error("List was empty")}function vi(e,t,n){for(;;){const r=e,o=t,i=n;if(null==i.tail)return o;e=r,t=r(o,i.head),n=i.tail}}function yi(e){return vi((e,t)=>new $n(t,e),new $n,e)}function _i(e){return yi(Qr((e,t)=>new $n(t,e),new $n,e))}function bi(e){return vi((e,t)=>e+1,0,e)}function Ci(e,t){return vi((e,t)=>new $n(t,e),t,yi(e))}function xi(e,t){return yi(vi((t,n)=>new $n(e(n),t),new $n,t))}function Si(e,t){return vi((t,n)=>{e(n)},void 0,t)}function ki(e,t){let n=t;for(let t=function(e){if(Jt(e))return e.length;{let t=0;for(const n of e)t++;return t}}(e)-1;t>=0;t--)n=new $n(e[t],n);return n}function Ii(e){return ki(e,new $n)}function Ei(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i.tail){const s=r(o,i.head);if(null==s){e=r,t=o+1,n=i.tail;continue e}return s}return}}(e,0,t)}function Ti(e,t){return Ei((t,n)=>e(n)?Cr(n):void 0,t)}function Oi(e,t){return yi(vi((t,n)=>e(n)?new $n(n,t):t,new $n,t))}function Ai(e,t,n){return(t=>{for(;;){const r=t;if(null==r.tail)return!1;if(n.Equals(e,r.head))return!0;t=r.tail}})(t)}function Mi(e,t){for(;;){const n=e,r=t;if(null==r.tail)return!1;if(n(r.head))return!0;e=n,t=r.tail}}const Pi=e=>{J(()=>{const t=e();return()=>{t.Dispose()}})},Ni=(e,t)=>{J(()=>{const t=e();return()=>{t.Dispose()}},t)},Di=e=>{K(()=>{const t=e();return()=>{t.Dispose()}})};function Ri(e,t,n,r){const o=_r.memo(e,_n(2,Ir(bn(2,n),null)));return eo(t=>{e.displayName=t},kr(t)),e=>_r.createElement(o,ji(r,e))}function ji(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function zi(e){return{Dispose(){e()}}}function Li(e){Pi(e)}function Fi(e,t){Ni(e,t)}function Ui(e){Hi(e,[])}function Bi(e){Fi(e,[])}function Hi(e,t){Ni(t=>(e(),zi(()=>{})),t)}function Wi(e,t){return _r.useCallback(e,Ir(t,[]))}function Vi(e){return _r.useRef(e)}function Gi(e,t){return _r.useMemo(e,Ir(t,[]))}function $i(e){const t=Vi(e),n=Wi(e=>t.current(e),[]);var r;return r=()=>{t.current=e},Di(e=>(r(),zi(()=>{}))),n}function qi(e){return _r.useState(e)}class Yi{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 Xi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xi.prototype)}}class Zi{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Zi.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Ji(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xi);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 Ki(e,t){return Ji(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 Qi(e){return Ji(t=>t.onSuccess(e))}const es=new class{Bind(e,t){return Ki(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Ji(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 Qi(e)}ReturnFrom(e){return e}TryFinally(e,t){return Ji(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 Ji(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 Ji(e=>e.onSuccess(void 0))}};class ts extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function ns(e,t){return 0===t.tag?new ts(0,e(t.fields[0])):new ts(1,t.fields[0])}function rs(e,t){return 0===t.tag?e(t.fields[0]):new ts(1,t.fields[0])}class os extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function is(e){}function ss(e){const t=new Yi("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function as(e){e.cancel()}function cs(e){return null!=e&&e.isCancelled}const us=new Yi;function ls(e){return Ji(t=>{e({onSuccess:e=>t.onSuccess(function(e){return new os(0,e)}(e)),onError:e=>t.onSuccess(new os(1,e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function fs(e){return Ji(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ds(e){return Ji(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Xi)})})}function hs(e,t){return function(e,t){return ps(e,t)}(e,t)}function ps(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Zi;e({onSuccess:t||is,onError:n||is,onCancel:r||is,cancelToken:o||us,trampoline:i})}class ms{constructor(){}}function ws(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(hn(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 gs=new ms;class vs extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class ys{constructor(e){this.state=new vs(0,ci(new Array(vn((e,t)=>mn(e,t),e,10)),0,vn((e,t)=>mn(e,t),e,10),null),0)}}function _s(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 vs(0,o,n):new vs(1,o,n,i),Cr(o[r])}}function bs(e,t,n){const r=Vi(e[0]),o=Vi(new ys(10));const i=qi(e[0]);let s;const a=Vi(ss()),c=Vi(a.current);Bi(()=>zi(()=>{as(a.current)})),s=c;const u=()=>{setTimeout(()=>{let e;e=s.current,cs(e)||i[1](r.current)},0)},l=e=>{var n;(n=ws(0,()=>{let n=Cr(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(gs,()=>{let e;return null!=n&&(e=s.current,!cs(e))},ws(0,()=>{const e=t(xr(n),r.current);return Si(e=>{e(l)},e[1]),n=_s(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=$i(l);var d;return Fi(()=>zi(()=>{let e;var t;eo(e=>{e.Dispose()},kr((e=r.current,null!=(t=e)&&"function"==typeof t.Dispose?e:void 0)))}),n),Hi(()=>{r.current=e[0],u(),Si(e=>{e(f)},e[1])},n),d=()=>{eo(f,kr(_s(o.current)))},Pi(e=>(d(),zi(()=>{}))),[i[0],f]}class Cs extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}class xs extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}class Ss extends Qn{constructor(e){super(),this.AuthCode=e}}class ks extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}class Is extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}function Es(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationContextDto",[],Is,()=>[["CssOverrides",_o(Co)],["MaskedEmail",Co]])}function Ts(e){return new Cs(e.CssOverrides,e.MaskedEmail)}class Os extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}function As(){return go("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationOutcomeDto",[],Os,()=>[[["Item",Es()]],[],[],[],[["Item",Es()]]])}class Ms extends Qn{constructor(e){super(),this.AuthCode=e}}class Ps extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}function Ns(){return go("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ValidationOutcomeDto",[],Ps,()=>[[["Item",wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.CodeMatchContextDto",[],Ms,()=>[["AuthCode",Co]])]],[],[],[],[]])}function Ds(e){switch(e.tag){case 1:return new ks(1);case 2:return new ks(2);case 3:return new ks(3);case 4:return new ks(4);default:return new ks(0,(t=e.fields[0],new Ss(t.AuthCode)))}var t}function Rs(){return e=(e,t)=>gn(e,t),{Compare:(t,n)=>e(t,n)};var e}function js(){return Rs()}class zs{constructor(e,t){this.k=e,this.v=t}}function Ls(e,t){return new zs(e,t)}function Fs(e){return e.k}function Us(e){return e.v}class Bs extends zs{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function Hs(e,t,n,r,o){return new Bs(e,t,n,r,o)}function Ws(e){return e.left}function Vs(e){return e.right}function Gs(e){return e.h}function $s(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Bs){t=e(r+1,Ws(i)),n=Vs(i);continue e}return r+1|0}return 0|r}}(0,e)}function qs(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof Bs?Gs(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Bs?Gs(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ls(t,n):Hs(t,n,e,r,s+1)}function Ys(e,t,n,r){let o,i,s,a,c;if(null!=e){const t=e;c=t instanceof Bs?Gs(t):1}else c=0;let u;if(null!=r){const e=r;u=e instanceof Bs?Gs(e):1}else u=0;if(u>c+2){const s=xr(r);if(s instanceof Bs){if(o=Ws(s),(null!=o?(i=o,i instanceof Bs?Gs(i):1):0)>c+1){const r=xr(Ws(s));if(r instanceof Bs)return qs(qs(e,t,n,Ws(r)),Fs(r),Us(r),qs(Vs(r),Fs(s),Us(s),Vs(s)));throw new Error("internal error: Map.rebalance")}return qs(qs(e,t,n,Ws(s)),Fs(s),Us(s),Vs(s))}throw new Error("internal error: Map.rebalance")}if(c>u+2){const o=xr(e);if(o instanceof Bs){if(s=Vs(o),(null!=s?(a=s,a instanceof Bs?Gs(a):1):0)>u+1){const e=xr(Vs(o));if(e instanceof Bs)return qs(qs(Ws(o),Fs(o),Us(o),Ws(e)),Fs(e),Us(e),qs(Vs(e),t,n,r));throw new Error("internal error: Map.rebalance")}return qs(Ws(o),Fs(o),Us(o),qs(Vs(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return qs(e,t,n,r)}function Xs(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Fs(o));return o instanceof Bs?i<0?Ys(Xs(e,t,n,Ws(o)),Fs(o),Us(o),Vs(o)):0===i?Hs(t,n,Ws(o),Vs(o),Gs(o)):Ys(Ws(o),Fs(o),Us(o),Xs(e,t,n,Vs(o))):i<0?Hs(t,n,void 0,r,2):0===i?Ls(t,n):Hs(t,n,r,void 0,2)}return Ls(t,n)}function Zs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Fs(s));if(0===a)return Cr(Us(s));if(s instanceof Bs){e=r,t=o,n=a<0?Ws(s):Vs(s);continue e}return}return}}function Js(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Bs){e(r,Ws(i)),r(Fs(i),Us(i)),t=r,n=Vs(i);continue e}r(Fs(i),Us(i))}break}}(e,t)}function Ks(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof Bs){const n=e(t,Ws(r)),o=t(Fs(r),Us(r)),i=e(t,Vs(r));return Hs(Fs(r),o,n,i,Gs(r))}return Ls(Fs(r),t(Fs(r),Us(r)))}}(e,t)}function Qs(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Xs(e,o[0],o[1],n)}return n}function ea(e,t){if(Jt(t))return Qs(e,t);if(t instanceof $n)return function(e,t){return vi((t,n)=>Xs(e,n[0],n[1],t),void 0,t)}(e,t);{const n=Ur(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=Xs(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class ta extends Qn{constructor(e,t){super(),this.stack=e,this.started=t}}function na(e){e:for(;;){const t=e;if(null==t.tail)return new $n;{const n=t.tail,r=t.head;if(null!=r){const o=r;if(o instanceof Bs){e=new $n(Ws(o),new $n(Ls(Fs(o),Us(o)),new $n(Vs(o),n)));continue e}return t}e=n}}}function ra(e){return new ta(na(new $n(e,new $n)),!1)}function oa(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){const e=t.head;if(e instanceof Bs)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Fs(e),Us(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration already finished")}()}return function(){throw new Error("enumeration not started")}()}function ia(e){let t=ra(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>oa(t),"System.Collections.IEnumerator.get_Current":()=>oa(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){if(t.head instanceof Bs)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=na(t.tail),!(null==e.stack.tail)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return!1}return e.started=!0,!(null==e.stack.tail)}(t),"System.Collections.IEnumerator.Reset"(){t=ra(e)},Dispose(){}}}class sa{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=Ur(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,un(e[0])),n=t(n,un(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof sa))return!1;{const t=Ur(this);try{const n=Ur(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!(!hn(r[0],o[0])||!hn(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+gr("; ",no(e=>hr("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return ia(this.tree)}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ia(this.tree)}CompareTo(e){const t=this;if(e instanceof sa)return 0|function(e,t,n){if(t===n)return 0;let r,o,i=0;for(const s=t[Symbol.iterator](),a=n[Symbol.iterator]();(r=s.next(),o=a.next(),!r.done&&!o.done)&&(i=e(r.value,o.value),0===i););return 0!==i?i:r.done&&!o.done?-1:!r.done&&o.done?1:0}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:gn(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!!fa(this,e[0])&&hn(ua(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=0|n;Js((e,n)=>{t[r]=[e,n],r+=1},e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|la(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|la(this)}get size(){return 0|la(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return no(e=>[e[0],e[1]],this)}get(e){return ua(this,e)}has(e){return fa(this,e)}keys(){return no(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return no(e=>e[1],this)}forEach(e,t){const n=this;eo(t=>{e(t[1],t[0],n)},n)}}function aa(e,t){return new sa(e,t)}function ca(e){const t=js();return aa(t,ea(t,e))}function ua(e,t){return function(e,t,n){const r=Zs(e,t,n);if(null==r)throw new Error;return xr(r)}(e.comparer,t,e.tree)}function la(e){return $s(e.tree)}function fa(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,Fs(s));if(s instanceof Bs){if(a<0){e=r,t=o,n=Ws(s);continue e}if(0===a)return!0;e=r,t=o,n=Vs(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function da(e,t,n){return function(e,t,n){return aa(e.comparer,Xs(e.comparer,t,n,e.tree))}(n,e,t)}function ha(e,t){return function(e,t){return Zs(e.comparer,t,e.tree)}(t,e)}function pa(e,t){return r=e,aa((n=t).comparer,Ks(r,n.tree));var n,r}function ma(){return sa.empty}sa.empty=aa(js(),void 0);class wa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ga(e,t){switch(t.tag){case 1:return new wa(1);case 3:return new wa(3,t.fields[0]);case 2:try{return new wa(2,e(t.fields[0]))}catch(e){return new wa(3,e)}default:return new wa(0)}}function va(e,t){const n=qi(new wa(0)),r=n[1];let o;const i=Vi(ss()),s=Vi(i.current);Bi(()=>zi(()=>{as(i.current)})),o=s;const a=es.Delay(()=>es.TryWith(es.Delay(()=>(r(new wa(1)),es.Bind(e,e=>(r(new wa(2,e)),es.Zero())))),e=>(r(new wa(3,e)),es.Zero())));return Hi(()=>{hs(a,o.current)},t),n[0]}function ya(e,t){const n=Vi(ss());return Bi(()=>zi(()=>{as(n.current)})),$i(r=>{cs(n.current)||hs(es.Delay(()=>es.TryWith(es.Delay(()=>(t(new wa(1)),es.Bind(e(r),e=>(t(new wa(2,e)),es.Zero())))),e=>(t(new wa(3,e)),es.Zero()))),n.current)})}function _a(e){return e<0?Math.ceil(e):Math.floor(e)}function ba(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Ca(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 Ca(e){return Xt(Ht(e,1e4))}function xa(e){return ba(0,e,0)}function Sa(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 _a(e/864e5)}(e)),o=Math.abs(function(e){return _a(e%864e5/36e5)}(e)),i=Math.abs(function(e){return _a(e%36e5/6e4)}(e)),s=Math.abs(function(e){return _a(e%6e4/1e3)}(e)),a=Math.abs(function(e){return _a(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:tn(o,2)}:${tn(i,2)}:${tn(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+tn(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 ka(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 ba(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*ba(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}function Ia(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),r.exec(e)}(Un(e),t);return null!=n?gi(_i(Yr(()=>{return no(e=>e||"",(e=()=>Ur(n),t=e=>e["System.Collections.IEnumerator.MoveNext"](),r=e=>e["System.Collections.IEnumerator.get_Current"](),Yr(()=>co(e=>t(e)?[r(e),e]:void 0,e()))));var e,t,r}))):void 0}function Ea(e,t){return mr(t)?new ts(1,ur(sr("%s cannot be null or empty"))(e)):new ts(0,t)}function Ta(e){const t=function(e){let t;const n=Ia(".*?@(.*)",e);switch(t=null!=n&&null!=n.tail&&null==n.tail.tail?0:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new ts(0,t)}return new ts(1,"Email is not in the correct format")}class Oa{constructor(e,t=1){if("string"==typeof e&&"number"==typeof t)if(1===t)try{this.url=new URL(e),this.kind=t}catch(e){throw new Error("Invalid URI: The format of the URI could not be determined.")}else if(2===t){let n=!1;try{new URL(e);n=!1}catch(e){n=!0}if(!n)throw new Error("uri is not a relative path");this.url=e,this.kind=t}else this.url=e,this.kind=t;else if(e instanceof Oa&&"string"==typeof t){if(1!==e.kind)throw new Error("base uri should has Absolute kind");this.url=new URL(t,e.url),this.kind=1}else if(e instanceof Oa&&t instanceof Oa){if(1!==e.kind)throw new Error("base uri should has Absolute kind");if(2!==t.kind)throw new Error("relative uri should has Relative kind");this.url=new URL(t.url,e.url),this.kind=1}}toString(){return decodeURIComponent(this.parseUrl().toString())}parseUrl(){if(1===this.kind)return this.url;if(0===this.kind)return new URL(this.url);throw new Error("relative url can not parse as a URI")}get isAbsoluteUri(){try{return this.parseUrl(),!0}catch(e){return!1}}get absoluteUri(){if(1===this.kind)return this.url.href;if(0===this.kind)return this.url;throw new Error("This operation is not supported for a relative URI.")}get scheme(){const e=this.parseUrl().protocol;return e.slice(0,e.length-1)}get host(){return this.parseUrl().host}get absolutePath(){return this.parseUrl().pathname}get query(){return this.parseUrl().search}get pathAndQuery(){const e=this.parseUrl();return e.pathname+e.search}get fragment(){return this.parseUrl().hash}}var Aa=Oa;class Ma extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SecondFactorCode"]}}function Pa(e){return!mr(e)&&function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),r.test(e)}(e,"^(\\d{6})$")}function Na(e){return Pa(e)?new ts(0,new Ma(0,e)):new ts(1,"Invalid second factor code format.")}class Da extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}xa(5);class Ra extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InviteCode"]}}function ja(e){return function(e){return!wr(e)}(e)?new ts(0,new Ra(0,e)):new ts(1,"Invalid invite code format.")}function za(e){return e.fields[0]}class La extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}class Fa extends Qn{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}class Ua extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Logo"]}}class Ba extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompanyName"]}}class Ha extends Qn{constructor(e,t){super(),this.Email=e,this.Phone=t}}class Wa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class Va extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}const Ga=e=>ns(e=>new Wa(0,e),rs(e=>Ta(e),Ea("Email",e)));const $a=e=>ns(e=>new Va(0,e),Ea("Phone",e));function qa(e){return function(e){try{const t=new Aa(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch(e){return[!1,void 0]}}(e)[0]?new ts(0,new Ua(0,e)):new ts(1,"Invalid logo url.")}ba(10,0,0,0);xa(30);class Ya extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initializing","WaitingForInput","Failed"]}}class Xa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InitInvite","ActivateInvite","ValidateMfa","ProcessInput","ShowValidation"]}}class Za extends Qn{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 Ja{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class Ka{constructor(e,t){this._subscriber=e,this.delegates=t||new Array}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e){eo(t=>t(e),this.delegates)}AddHandler(e){null==this._dotnetDelegates&&(this._dotnetDelegates=new Map);const t=t=>e(null,t);this._dotnetDelegates.set(e,t),this._addHandler(t)}RemoveHandler(e){if(null!=this._dotnetDelegates){const t=this._dotnetDelegates.get(e);null!=t&&(this._dotnetDelegates.delete(e),this._removeHandler(t))}}Subscribe(e){return"function"==typeof e?this._subscribeFromCallback(e):this._subscribeFromObserver(e)}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}_subscribeFromObserver(e){if(this._subscriber)return this._subscriber(e);const t=e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_subscribeFromCallback(e){return this._addHandler(e),{Dispose:()=>{this._removeHandler(e)}}}}var Qa=Ka;var ec=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 Qa}get 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 tc(e,t){console.error(Cr(e),t)}function nc(e,t){let n,r=new ec(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Ja(e))}(t,n.Elapsed),n.Enabled=!0,n.Start()}function rc(e,t,n){Si(n=>{try{n(t)}catch(t){e(t)}},n)}function oc(){return pi()}function ic(e,t){return xi(t=>n=>{t(t=>{n(e(t))})},t)}function sc(e){return t=e,yi(Qr((e,t)=>vi((e,t)=>new $n(t,e),e,t),new $n,t));var t}function ac(e){return mi(t=>{t(e)})}function cc(e,t,n,r,o){return mi(i=>{e(es.Delay(()=>es.Bind(ls(t(n)),e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),es.Zero()})))})}function uc(e){nc(0,t=>{hs(e)})}const lc=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function fc(e){return Er(e=>e.passive&&!lc?{capture:e.capture,once:e.once,passive:!1}:e,e)}function dc(e){return Tr(e=>e.capture?{capture:!0}:void 0,e)}const hc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,pc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,mc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function wc(e){function t(e){return e.replace(pc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(hc.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Bn(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(pc.test(n))return t(n);if(mc.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function gc(e,t){try{return t.contents=wc(e),!0}catch(e){return!1}}function vc(e,t){return 0===t.indexOf(e)?t:void 0}function yc(e,t){return pr(t,e)?t:void 0}function _c(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=vc("/",e),null!=t?(n=t,"#"+n):(r=vc("#/",e),null!=r?(o=r,o):(i=vc("#",e),null!=i?(s=i,"#/"+yr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=vc("/",e),null!=t?(n=t,n):"/"+e}}(t)(gr("/",xi(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function bc(e,t,n){1===t?history.pushState(void 0,"",_c(e,n)):history.replaceState(void 0,"",_c(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Cc(e,t){return n=e=>{if(wr(e))return pi();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Bn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return pi();if(null!=vc("?",t))return mi(t);{const e=t.split("?");if(di(0,e,null)||1!==e.length){if(di(0,e,null)||2!==e.length)return pi();if(""===e[1]){const t=e[0];return mi(decodeURIComponent(t))}{const t=e[0],n=e[1];return Ii([decodeURIComponent(t),"?"+n])}}{const t=e[0];return mi(decodeURIComponent(t))}}}},r=Ii((null!=vc("#",e)?yr(e,1,e.length-1):1!==t||null==yc("#",e)&&null==yc("#/",e)?e:"").split("/")),_i(qr(n,r));var n,r}const xc=Ri(e=>{const t=$i(t=>{const n=Ir(e.onUrlChanged,e=>{});return function(e,t,n){return t(Cc(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Ir(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=Gi(()=>fc(r),[r]),i=Gi(()=>dc(r),[r]),s=Gi(()=>e=>{n(e)},[n]);Li($i(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),zi(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}else{const e="popstate",n=t,r=void 0,o=Gi(()=>fc(r),[r]),i=Gi(()=>dc(r),[r]),s=Gi(()=>e=>{n(e)},[n]);Li($i(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),zi(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=Gi(()=>fc(void 0),[void 0]),i=Gi(()=>dc(void 0),[void 0]),s=Gi(()=>e=>{r(e)},[r]);Li($i(()=>(null==o?window.addEventListener(n,s):window.addEventListener(n,s,o),zi(()=>{null==i?window.removeEventListener(n,s):window.removeEventListener(n,s,i)}))));const a=e.application;return null==a?null:a},void 0,kc,Sc);var Sc,kc;function Ic(e){try{const t=new URLSearchParams(e);return _i(Yr(()=>no(e=>[e[0],e[1]],t.entries())))}catch(e){return}}const Ec=document.getElementById("workflows-app"),Tc=Ec.getAttribute("data-identity-url"),Oc=Ec.getAttribute("data-backend-url"),Ac=Ii(["workflows","app"]),Mc=Ii(["workflows","embed","v1.0","app"]);class Pc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone","Unknown"]}}function Nc(e){switch(e.tag){case 0:return _c(Mc,2);case 1:return _c(Ac,2);default:return _c(Mc,2)}}class Dc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Autodev","Test","Prod","Sandbox"]}}function Rc(e){switch(e.tag){case 1:return"test";case 2:return"";case 3:return"sandbox";default:return"autodev"}}const jc=(()=>{const e=Ii(new Aa(Oc).host.split("."));let t;switch(t=null!=e.tail?"autodev-partner"===e.head?0:"test-partner"===e.head?1:"partner"===e.head?2:"sandbox-partner"===e.head?3:4:4,t){case 0:return new ts(0,new Dc(0));case 1:return new ts(0,new Dc(1));case 2:return new ts(0,new Dc(2));case 3:return new ts(0,new Dc(3));case 4:return new ts(1,"Invalid environment")}})();function zc(e,t,n){return 1===n.tag?t(n.fields[0]):e(n.fields[0])}function Lc(e,t){return null==t?new ts(1,e):new ts(0,xr(t))}function Fc(e,t){return 1===t.tag?e:t.fields[0]}class Uc{constructor(){}}function Bc(e,t){return new ts(0,t)}function Hc(e,t){return t}function Wc(e,t,n){return ns(n,t)}new Uc;class Vc{constructor(){}}function Gc(e,t){return es.Return(Bc(0,t))}function $c(e,t){return es.Delay(t)}new Vc;class qc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Yc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Xc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Zc extends Qn{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 Jc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Kc extends Qn{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}function Qc(e){return new Yc(0,"Content-Type",e)}const eu=new Zc("",new qc(0),pi(),!1,void 0,void 0,new Xc(0));new Kc(0,"","",ma(),new Jc(0,""));function tu(e,t){return mr(t)?[t]:function(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>Bn(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}(t,[e],null,0)}function nu(e){return new Zc(e,eu.method,eu.headers,eu.withCredentials,eu.overridenMimeType,eu.overridenResponseType,eu.content)}function ru(e,t){return new Zc(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function ou(e,t){return new Zc(t.url,t.method,Ci(t.headers,mi(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function iu(e,t){return new Zc(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function su(e){return fs(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;var c,u;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 Jc(0,n.responseText):new Jc("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Kc(o,e,i,function(e){const t=js();return aa(t,Qs(t,e))}((c=e=>{const t=Ii(tu(":",e));return null!=t.tail?[t.head.toLocaleLowerCase(),gr(":",t.tail).trim()]:void 0},ui(e=>xr(c(e)),tu("\r\n",n.getAllResponseHeaders()).filter(e=>null!=c(e)),u))),s)))};const r=Ur(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(Cr(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(Cr(s[1].fields[0])):n.send(Cr(void 0))})}class au extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class cu extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class uu{constructor(){this.cache=new Map([])}}function lu(){return new uu}lu(),lu();function fu(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function du(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Un(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=Hn(e,s),c=Hn.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)}(fu(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return fu(t)}}class hu extends Qn{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function pu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*pu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}qt(2013265921,0,!1),qt(2013265921,0,!0);li(28,e=>pu(2,e),Int32Array);function mu(e){return e.bound}function wu(e,t){return e.digits[t]}function gu(e,t){return Zt(wu(e,t),!1,2)}function vu(e,t,n){e.digits[t]=n}function yu(e,t){for(;;){const n=e,r=t;if(0===r)return qt(1,0,!1);if(r%2!=0)return Bt(n,yu(Bt(n,n),~~(r/2)));e=Bt(n,n),t=~~(r/2)}}function _u(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*_u(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const bu=qt(16777216,0,!1),Cu=qt(16777215,0,!1);qt(16777215,0,!0);function xu(e){return new hu(e,new Int32Array(e))}function Su(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=t,e}function ku(e){const t=0|(e<0?0:e);if(t<16777216){const e=xu(1);return e.digits[0]=t,Su(e)}{const e=xu(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/_u(16777216,n))%16777216;return Su(e)}}function Iu(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;return 0|t}}const Eu=ku(1),Tu=ku(0);function Ou(e){return e.bound-1}function Au(e){return 0===e.bound}function Mu(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 Pu(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 Nu(e,t){return-1===Pu(e,t)}function Du(e,t,n){for(;;){const r=e,o=t,i=n;if(!($t(o,qt(0,0,!1))>0))break;{const s=Ut(gu(r,i),o);vu(r,i,~~Yt(Gt(s,Cu))),e=r,t=Ht(s,bu),n=i+1}}}function Ru(e,t){const n=0|mu(e),r=xu(n+1),o=Zt(t,!1,2);let i=qt(0,0,!1);for(let t=0;t<=n-1;t++){const n=Ut(Ut(i,gu(r,t)),Bt(gu(e,t),o));vu(r,t,~~Yt(Gt(n,Cu))),i=Ht(n,bu)}return Du(r,i,n),Su(r)}function ju(e,t){const n=1===mu(e),r=1===mu(t);return n&&r?function(e,t){const n=xu(2),r=Bt(Zt(e,!1,2),Zt(t,!1,2));return vu(n,0,~~Yt(Gt(r,Cu))),vu(n,1,~~Yt(Ht(r,bu))),Su(n)}(wu(e,0),wu(t,0)):n?Ru(t,wu(e,0)):r?Ru(e,wu(t,0)):function(e,t){const n=xu(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=0|o;for(let e=0;e<=t.bound-1;e++){const n=Zt(t.digits[e],!1,2),o=Ut(Ut(Zt(r[a],!1,2),s),Bt(i,n));r[a]=~~Yt(Gt(o,Cu)),s=Ht(o,bu),a+=1}Du(n,s,a)}return Su(n)}(e,t)}class zu extends Qn{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 Lu(e,t,n,r){return new zu(e,_u(2,e),t,n,r,~~(24/e),li(~~(24/e),t=>_u(2,e*t),Int32Array))}const Fu=[Lu(1,28,268435456,268435456),Lu(2,26,67108864,134217728),Lu(3,24,16777216,50331648),Lu(4,22,4194304,16777216),Lu(5,20,1048576,5242880),Lu(6,18,262144,1572864),Lu(7,16,65536,458752),Lu(8,14,16384,131072),Lu(9,12,4096,36864),Lu(10,10,1024,10240),Lu(11,8,256,2816),Lu(12,6,64,768),Lu(13,4,16,208)];li(24,e=>_u(2,e)-1,Int32Array),li(24,e=>_u(2,e),Int32Array),li(24,e=>yu(qt(2,0,!1),e));Fu[0].bigN;function Uu(e,t){return ju(e,t)}function Bu(e,t,n,r){const o=[e.digits,Ou(e)],i=o[0],s=[n.digits,Ou(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Bt(u,Zt(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=0|~~Yt(Gt(f,Cu)),t=Ht(f,bu);e<=i[l+r]?i[l+r]=i[l+r]-e:(i[l+r]=i[l+r]+(16777216-e),t=Ut(t,qt(1,0,!1))),f=l<a?Ut(t,Bt(u,Zt(c[l+1],!1,2))):t,l+=1}Su(e)}function Hu(e,t,n,r){const o=[e.digits,Ou(e)],i=o[0],s=[n.digits,Ou(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Bt(u,Zt(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=0|~~Yt(Gt(f,Cu)),t=Ht(f,bu);e<16777216-i[l+r]?i[l+r]=i[l+r]+e:(i[l+r]=e-(16777216-i[l+r]),t=Ut(t,qt(1,0,!1))),f=l<a?Ut(t,Bt(u,Zt(c[l+1],!1,2))):t,l+=1}Su(e)}function Wu(e,t,n){const r=[Ou(t),Ou(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(Ht(Ut(Bt(Zt(s[o],!1,2),bu),Zt(s[o-1],!1,2)),Zt(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Yt(Ht(Ut(Bt(Zt(s[o],!1,2),bu),Zt(s[o-1],!1,2)),Ut(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 Vu(e,t){if(Au(t))throw new Error;if(Ou(e)<Ou(t))return[Tu,e];{const n=function(e){return new hu(e.bound,e.digits.slice())}(e),r=xu(Ou(e)-Ou(t)+1+1);let o=0|Ou(e);const i=0|Ou(t);let s=o-i|0;const a=e=>{};let c=!1;for(;!c;){a([r,n,s,o]);const e=0|Wu(n,t,s);e>0?(Bu(n,e,t,s),Hu(r,e,Eu,s),a([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(a([r,n,s-1,o]),s-=1):(a([r,n,s-1,o-1]),s-=1,o-=1)))}return[Su(r),Su(n)]}}ku(2);function Gu(e){return ku(e)}function $u(e){return function(e){const t=$t(e,qt(0,0,!1))<0?qt(0,0,!1):e,n=xu(3);for(let e=0;e<=2;e++)n.digits[e]=~~Yt(Wt(Ht(t,yu(bu,e)),bu));return Su(n)}(e)}function qu(e){const t=0|Ou(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,c=o;if(null==c.tail){const e=0|Iu(a);return i&&0===e?s:new $n(rn(e),s)}{const u=c.tail,l=Vu(a,c.head[1]),f=l[1],d=l[0];if(i&&Au(d)){e=i,t=s,r=f,o=u;continue e}e=i,t=n(!1,s,f,u),r=d,o=u}}},r=n(!0,new $n,e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(Ou(s)>t)return new $n([i,s],o);e=new $n([i,s],o),n=i+1,r=Uu(s,s)}})(new $n,0,ku(10)));return null==r.tail?"0":gr("",Array.from(r))}function Yu(e){return e.bound<=1}function Xu(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class Zu extends Qn{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|Qu(e)){case-1:return Au(el(e))?"0":"-"+qu(el(e));case 0:return"0";case 1:return qu(el(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Zu&&tl(this,e)}GetHashCode(){return 0|(0===Qu(e=this)?1:Qu(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(el(e))|0);var e}CompareTo(e){if(e instanceof Zu)return 0|function(e,t){return nl(e,t)?-1:tl(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Ju(e,t){return new Zu(e,t)}function Ku(e){return Yu(e)&&Xu(e)<Zu.smallLim?Zu.smallPosTab[Xu(e)]:e}function Qu(e){return e.signInt}function el(e){return e.v}function tl(e,t){const n=[Qu(e),Qu(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 Mu(el(e),el(t));case 2:case 3:return!!Au(el(e))&&Au(el(t));case 4:return!0;case 5:case 6:return Au(el(t));case 7:case 8:return Au(el(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function nl(e,t){const n=[Qu(e),Qu(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 Nu(el(e),el(t));case 1:return Nu(el(t),el(e));case 2:return!1;case 3:return!Au(el(e))||!Au(el(t));case 4:return!1;case 5:return!Au(el(t));case 6:case 7:return!1;case 8:return!Au(el(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function rl(e){return e>=0?Ju(1,Ku(Gu(e))):Ju(-1,Ku(-2147483648===e?$u(Vt(Zt(e,!1,2))):Gu(Be(e))))}function ol(){return Zu.one}function il(){return Zu.two}function sl(){return Zu.zero}Zu.smallLim=4096,Zu.smallPosTab=li(Zu.smallLim,e=>Gu(e)),Zu.one=rl(1),Zu.two=rl(2),Zu.zero=rl(0);sl(),ol(),il();sl(),ol();function al(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function cl(e,t){try{return t.contents=function(e){const t=Nn(e),n=kn.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return al(t.getTime(),r)}(e),!0}catch(e){return!1}}class ul{constructor(e){this.k=e}}function ll(e){return new ul(e)}function fl(e){return e.k}class dl extends ul{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function hl(e,t,n,r){return new dl(e,t,n,r)}function pl(e){return e.left}function ml(e){return e.right}function wl(e){return e.h}function gl(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof dl){t=pl(i),n=e(ml(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function vl(e,t,n){let r;if(null!=e){const t=e;r=t instanceof dl?wl(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof dl?wl(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?ll(t):hl(t,e,n,i+1)}function yl(e,t,n){let r,o,i,s,a;if(null!=e){const t=e;a=t instanceof dl?wl(t):1}else a=0;let c;if(null!=n){const e=n;c=e instanceof dl?wl(e):1}else c=0;if(c>a+2){const i=xr(n);if(i instanceof dl){if(r=pl(i),(null!=r?(o=r,o instanceof dl?wl(o):1):0)>a+1){const n=xr(pl(i));if(n instanceof dl)return vl(vl(e,t,pl(n)),fl(n),vl(ml(n),fl(i),ml(i)));throw new Error("internal error: Set.rebalance")}return vl(vl(e,t,pl(i)),fl(i),ml(i))}throw new Error("internal error: Set.rebalance")}if(a>c+2){const r=xr(e);if(r instanceof dl){if(i=ml(r),(null!=i?(s=i,s instanceof dl?wl(s):1):0)>c+1){const e=xr(ml(r));if(e instanceof dl)return vl(vl(pl(r),fl(r),pl(e)),fl(e),vl(ml(e),t,n));throw new Error("internal error: Set.rebalance")}return vl(pl(r),fl(r),vl(ml(r),t,n))}throw new Error("internal error: Set.rebalance")}return vl(e,t,n)}function _l(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,fl(r));if(r instanceof dl)return o<0?yl(_l(e,t,pl(r)),fl(r),ml(r)):0===o?n:yl(pl(r),fl(r),_l(e,t,ml(r)));{const o=0|e.Compare(t,fl(r));return o<0?hl(t,void 0,n,2):0===o?n:hl(t,n,void 0,2)}}return ll(t)}function bl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,fl(s));if(s instanceof dl){if(a<0){e=r,t=o,n=pl(s);continue e}if(0===a)return!0;e=r,t=o,n=ml(s);continue e}return 0===a}return!1}}function Cl(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof dl){Cl(n,pl(o)),n(fl(o)),e=n,t=ml(o);continue e}n(fl(o))}break}}class xl extends Qn{constructor(e,t){super(),this.stack=e,this.started=t}}function Sl(e){e:for(;;){const t=e;if(null==t.tail)return new $n;{const n=t.head,r=t.tail;if(null!=n){const o=n;if(o instanceof dl){e=new $n(pl(o),new $n(ll(fl(o)),new $n(ml(o),r)));continue e}return t}e=r}}}function kl(e){return new xl(Sl(new $n(e,new $n)),!1)}function Il(e){if(e.started){const t=e.stack;if(null==t.tail)return function(){throw new Error("Enumeration already started")}();if(null!=t.head){return fl(t.head)}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function El(e){let t=kl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Il(t),"System.Collections.IEnumerator.get_Current":()=>Il(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){if(t.head instanceof dl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Sl(t.tail),!(null==e.stack.tail)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return!1}return e.started=!0,!(null==e.stack.tail)}(t),"System.Collections.IEnumerator.Reset"(){t=kl(e)},Dispose(){}}}function Tl(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(null==s[0].tail)return null==s[1].tail?0:-1;if(null==s[1].tail)return 1;if(null!=s[1].head)if(null!=s[0].head){const a=s[0].head,c=s[1].head;if(a instanceof dl)if(null==pl(a)){if(!(c instanceof dl)){const o=0|r.Compare(fl(a),fl(c));if(0!==o)return 0|o;e=r,t=new $n(ml(a),s[0].tail),n=new $n(void 0,s[1].tail);continue e}if(null==pl(c)){const o=0|r.Compare(fl(a),fl(c));if(0!==o)return 0|o;e=r,t=new $n(ml(a),s[0].tail),n=new $n(ml(c),s[1].tail);continue e}{const s=[o,i];let a,c,u,l,f;switch(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof dl){e=r,t=new $n(pl(u),new $n(hl(fl(u),void 0,ml(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ll(fl(u)),c)),n=i;continue e;case 1:if(f instanceof dl){e=r,t=o,n=new $n(pl(f),new $n(hl(fl(f),void 0,ml(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ll(fl(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(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof dl){e=r,t=new $n(pl(u),new $n(hl(fl(u),void 0,ml(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ll(fl(u)),c)),n=i;continue e;case 1:if(f instanceof dl){e=r,t=o,n=new $n(pl(f),new $n(hl(fl(f),void 0,ml(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ll(fl(f)),l));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof dl)){const o=0|r.Compare(fl(a),fl(c));if(0!==o)return 0|o;e=r,t=s[0].tail,n=s[1].tail;continue e}if(null==pl(c)){const o=0|r.Compare(fl(a),fl(c));if(0!==o)return 0|o;e=r,t=new $n(void 0,s[0].tail),n=new $n(ml(c),s[1].tail);continue e}{const s=[o,i];let a,c,u,l,f;switch(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof dl){e=r,t=new $n(pl(u),new $n(hl(fl(u),void 0,ml(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ll(fl(u)),c)),n=i;continue e;case 1:if(f instanceof dl){e=r,t=o,n=new $n(pl(f),new $n(hl(fl(f),void 0,ml(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ll(fl(f)),l));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{s[1].head;const a=[o,i];let c,u,l,f,d;switch(null!=a[0].tail&&null!=a[0].head?(c=0,u=a[0].tail,l=a[0].head):null!=a[1].tail&&null!=a[1].head?(c=1,f=a[1].tail,d=a[1].head):c=2,c){case 0:if(l instanceof dl){e=r,t=new $n(pl(l),new $n(hl(fl(l),void 0,ml(l),0),u)),n=i;continue e}e=r,t=new $n(void 0,new $n(ll(fl(l)),u)),n=i;continue e;case 1:if(d instanceof dl){e=r,t=o,n=new $n(pl(d),new $n(hl(fl(d),void 0,ml(d),0),f));continue e}e=r,t=o,n=new $n(void 0,new $n(ll(fl(d)),f));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==s[0].head){e=r,t=s[0].tail,n=s[1].tail;continue e}{s[0].head;const a=[o,i];let c,u,l,f,d;switch(null!=a[0].tail&&null!=a[0].head?(c=0,u=a[0].tail,l=a[0].head):null!=a[1].tail&&null!=a[1].head?(c=1,f=a[1].tail,d=a[1].head):c=2,c){case 0:if(l instanceof dl){e=r,t=new $n(pl(l),new $n(hl(fl(l),void 0,ml(l),0),u)),n=i;continue e}e=r,t=new $n(void 0,new $n(ll(fl(l)),u)),n=i;continue e;case 1:if(d instanceof dl){e=r,t=o,n=new $n(pl(d),new $n(hl(fl(d),void 0,ml(d),0),f));continue e}e=r,t=o,n=new $n(void 0,new $n(ll(fl(d)),f));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,new $n(t,new $n),new $n(n,new $n))}function Ol(e,t,n){let r=0|n;Cl(e=>{t[r]=e,r+=1},e)}function Al(e,t){const n=Ur(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=_l(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}class Ml{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=Ur(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+un(e)+631}}finally{n.Dispose()}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Ml&&0===Tl(Nl(this),Dl(this),Dl(e))}toString(){return"set ["+gr("; ",no(e=>Vn(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Tl(Nl(this),Dl(this),Dl(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 bl(Nl(this),e,Dl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Ol(Dl(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Rl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Rl(this)}GetEnumerator(){return El(Dl(this))}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return El(Dl(this))}get size(){return 0|Rl(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 jl(this,e)}keys(){return no(e=>e,this)}values(){return no(e=>e,this)}entries(){return no(e=>[e,e],this)}forEach(e,t){const n=this;eo(t=>{e(t,t,n)},n)}}function Pl(e,t){return new Ml(e,t)}function Nl(e){return e.comparer}function Dl(e){return e.tree}function Rl(e){return gl(Dl(e))}function jl(e,t){return bl(Nl(e),t,Dl(e))}function zl(e,t){return Pl(t,Al(t,e))}function Ll(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 Fl(e,t){const n=2===t.tag?Ll(t.fields[0],t.fields[1],!0):1===t.tag?Ll(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?Ll(t.fields[0],t.fields[1],!0):4===t.tag?Ll(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]:Ll(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Ul(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ts(1,Fl(e[0],e[1]))}return new ts(0,r.fields[0])}function Bl(e,t){try{return Ul("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ts(1,"Given an invalid JSON: "+e.message);throw e}}const Hl=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 ts(0,(e+128&255)-128):new ts(1,[n,new au(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new ts(1,[n,new au(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!1,8,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new au(0,"a sbyte",r)])}return new ts(1,[n,new au(0,"a sbyte",r)])},Wl=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 ts(0,255&e):new ts(1,[n,new au(1,"a byte",e,"Value was either too large or too small for a byte")]):new ts(1,[n,new au(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!0,8,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new au(0,"a byte",r)])}return new ts(1,[n,new au(0,"a byte",r)])},Vl=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 ts(0,(e+32768&65535)-32768):new ts(1,[r,new au(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new au(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!1,16,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new au(0,n,o)])}return new ts(1,[r,new au(0,n,o)])},Gl=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 ts(0,65535&e):new ts(1,[r,new au(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new au(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!0,16,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new au(0,n,o)])}return new ts(1,[r,new au(0,n,o)])},$l=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 ts(0,~~e):new ts(1,[n,new au(1,"an int",e,"Value was either too large or too small for an int")]):new ts(1,[n,new au(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!1,32,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new au(0,"an int",r)])}return new ts(1,[n,new au(0,"an int",r)])},ql=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 ts(0,e>>>0):new ts(1,[r,new au(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new au(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!0,32,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new au(0,n,o)])}return new ts(1,[r,new au(0,n,o)])};function Yl(e,t){if("string"==typeof t){let r,o=Pn(-621355968e5,0);return r=[Dn(t,new er(()=>o,e=>{o=e})),o],r[0]?new ts(0,1===(n=r[1]).kind?n:Pn(n.getTime(),1)):new ts(1,[e,new au(0,"a datetime",t)])}return new ts(1,[e,new au(0,"a datetime",t)]);var n}function Xl(e,t){if("string"==typeof t){let n,r=al(-621355968e5,0);return n=[cl(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new au(0,"a datetimeoffset",t)])}return new ts(1,[e,new au(0,"a datetime",t)])}function Zl(e,t,n,r){let o;const i=n+".["+rn(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ts(1,[i,new au(5,"a longer array. Need index `"+rn(e)+"` but there are only `"+(o=0|n.length,rn(o)+"` entries"),r)])}return new ts(1,[i,new au(0,"an array",r)])}function Jl(e,t,n){if(Array.isArray(n)){let r=-1;return ns(e=>yi(e),fi((n,o)=>{if(r+=1,0===n.tag){const i=e(t+".["+rn(r)+"]",o);return 0===i.tag?new ts(0,wi(i.fields[0],n.fields[0])):new ts(1,i.fields[0])}return n},new ts(0,pi()),n))}return new ts(1,[t,new au(0,"a list",n)])}function Kl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return fi((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+rn(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ts(0,i)):new ts(1,s.fields[0])}return n},new ts(0,ci(new Array(o.length),0,o.length,null)),o)}return new ts(1,[t,new au(0,"an array",n)])}function Ql(e,t,n){return new ts(0,e)}function ef(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ts(1,o.fields[0])}function tf(e,t,n,r){const o=t(n,r);return 1===o.tag?new ts(1,o.fields[0]):new ts(0,e(o.fields[0]))}function nf(e,t){let n;const r=e;return n=e=>t=>Zl(0,r,e,t),e=>r=>ef(_n(3,e=>{let n;const r=t;return n=e=>t=>Zl(1,r,e,t),t=>r=>ef((t,n,r)=>Ql([e,t]),_n(2,n),t,r)}),_n(2,n),e,r)}function rf(e){return ca(e)}function of(e,t,n,r){let o,i;return t.length!==r.length?new ts(1,[n,new au(6,(o=0|r.length,i=0|t.length,ur(sr("Expected %i %s but got %i"))(i)(e)(o)))]):hi(_n(3,Sn(e=>t=>r=>0===r.tag?ns(e=>wi(e,r.fields[0]),t(n,e)):r,[0,[0,2],0])),r,t,new ts(0,pi()))}function sf(e,t,n,r,o,i){const s=(a=e=>ko(e)===r,jo(n).find(a));var a;if(null!=s){const n=s;return 0===i.length?new ts(0,Wo(n,[])):ns(e=>Wo(n,Array.from(e)),of("union fields",ui(n=>cf(e,t,!1,n[1]),Ho(n)),o,i))}return new ts(1,[o,new au(6,"Cannot find case "+r+" in "+Io(n))])}function af(e,t,n,r){const o=new er(null),i=da(Io(r),o,e);let s;if(Uo(r)){const e=ui(e=>[du(t,ko(e)),cf(i,t,!1,e[1])],zo(r));s=t=>n=>ns(e=>function(e,t){const n=zo(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,Array.from(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ts(1,[t,new au(0,"an object",n)]):(r=_n(2,e=>{const r=e[0];return o=>0===o.tag?ns(e=>wi(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),o=e,i=new ts(0,pi()),o.reduceRight((e,t)=>r(t,e),i));var r,o,i}(e,t,n))}else if(Fo(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 ts(1,[e,new au(0,"a string or array",n)])};else{if(!n){let e;const t=Io(r);throw e=ur(sr("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new ts(1,[e,new au(2,"an extra coder for "+Io(r),t)])}return o.contents=s,s}function cf(e,t,n,r){let o;const i=Io(r),s=ha(i,e);if(null==s){if(Eo(r)){const n=cf(e,t,!1,To(r));return e=>t=>Kl(_n(2,n),e,t)}if(Ao(r)){const e=Io(Po(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Hl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new au(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Wl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new au(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Vl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,(a=(a=e)<0&&null!=c&&10!==c?65535+a+1:a).toString(c))):new ts(1,[o,new au(1,Io(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=Gl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new au(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=$l(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,rn(e))):new ts(1,[o,new au(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ql(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new au(1,Io(n),i,"Unkown value provided for the enum")])}};{const e=Io(r),t=lr(sr("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(Oo(r)){if(Bo(r)){const n=ui(n=>cf(e,t,!1,n),Lo(r));return e=>t=>Array.isArray(t)?ns(e=>Array.from(e),of("tuple elements",n,e,t)):new ts(1,[e,new au(0,"an array",t)])}{const i=Io(Mo(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=cf(e,t,!0,fo(r)[0]);return e=>t=>{return r=_n(2,n),o=e,null==(i=t)?new ts(0,void 0):ns(e=>Cr(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=cf(e,t,!1,fo(r)[0]);return e=>t=>Jl(_n(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=cf(e,t,!1,fo(r)[0]),i=cf(e,t,!1,fo(r)[1]);let s;const a=Ii([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ts(1,[n,new au(0,"an object",r)]):Qr((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 ts(0,wi([s.fields[0],e.fields[0]],o.fields[0])):new ts(1,e.fields[0])}return new ts(1,s.fields[0])}return o},new ts(0,pi()),Object.keys(r))}(_n(2,n),_n(2,i),e,t),(o=nf(_n(2,n),_n(2,i)),e=>t=>Jl(_n(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(null==o.tail)return new ts(1,[n,new au(7,i)]);{const s=Ul(n,_n(2,o.head),r);if(1===s.tag){e=o.tail,t=Ci(i,mi(s.fields[0]));continue e}return new ts(0,s.fields[0])}}})(a,pi());var n,r},e=>t=>tf(e=>rf(e),_n(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=cf(e,t,!1,fo(r)[0]);return e=>t=>{const r=Kl(_n(2,n),e,t);return 0===r.tag?new ts(0,zl(r.fields[0],{Compare:(e,t)=>gn(e,t)})):new ts(1,r.fields[0])}}return af(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ts(0,r):new ts(1,[n,new au(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new ts(0,void 0):new ts(1,[n,new au(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new ts(0,r):new ts(1,[n,new au(0,"a string",r)]);var n,r}:"System.SByte"===i?Hl:"System.Byte"===i?Wl:"System.Int16"===i?Vl:"System.UInt16"===i?Gl:"System.Int32"===i?$l:"System.UInt32"===i?ql:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ts(0,r):new ts(1,[n,new au(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ts(0,r):new ts(1,[n,new au(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>Yl(e,t):"System.DateTimeOffset"===i?e=>t=>Xl(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ka(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new au(0,"a timespan",t)])}return new ts(1,[e,new au(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=[gc(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new au(0,"a guid",t)])}return new ts(1,[e,new au(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new ts(0,e):af(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function uf(e){return null!=e?pa((e,t)=>new er(t[1]),e.Coders):ma()}function lf(e,t,n){const r=Ir(e,new cu(0)),o=xr(n).ResolveType();return cf(uf(t),r,!1,o)}function ff(e,t,n,r){return Bl(_n(2,lf(t,n,r)),e)}function df(e){return $c(0,()=>{const t=es.Bind(su(e),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(t,t=>{let n;const r=t;return 1===r.tag?es.Return(new ts(1,r.fields[0])):es.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?es.Bind(su(e),e=>es.Return(new ts(0,e))):Gc(0,n)))}))})}function hf(e){return $c(0,()=>{const t=df(ru(new qc(1),nu(function(e){const t=za(e);return ur(sr("%s/workflows/public-backend/invites/%s/activate"))(Oc)(t)}(e))));return es.Delay(()=>es.Bind(t,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>function(e){switch(e.tag){case 1:return new xs(1);case 2:return new xs(2);case 3:return new xs(3);case 4:return new xs(4,Ts(e.fields[0]));default:return new xs(0,Ts(e.fields[0]))}}(e),ff(t.responseText,new cu(1),void 0,{ResolveType:As}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function pf(e,t){return $c(0,()=>{const n=df(ru(new qc(1),nu(function(e,t){const n=encodeURIComponent(t),r=za(e);return ur(sr("%s/workflows/public-backend/invites/%s/confirm?mfa=%s"))(Oc)(r)(n)}(e,t))));return es.Delay(()=>es.Bind(n,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>Ds(e),ff(t.responseText,new cu(1),void 0,{ResolveType:Ns}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function mf(e){return hf(e)}function wf(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 Za(t.InviteToken,n.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(1),n.CssOverrides),oc()];case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"We couldn't find this invite. Reach out to your employer to get another one."),t.CssOverrides),oc()];case 2:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Your invite has expired. Reach out to your employer to get another one."),t.CssOverrides),oc()];case 3:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Your invite has been locked. Try refreshing this page in 30 minutes."),t.CssOverrides),oc()]}}case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Oops, looks like something went wrong. Try refreshing this page."),t.CssOverrides),oc()];case 2:return[t,oc()]}}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 Za(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),ac(new Xa(0))];case 1:return[new Za(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),oc()];case 4:return[new Za(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),oc()];case 3:return[new Za(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),oc()];default:return[t,(s=Nc(new Pc(1)),mi(e=>{bc(mi(s+function(e){const t=gr("&",xi(e=>gr("=",[encodeURIComponent(e[0]),encodeURIComponent(e[1])]),e));return""===t?"":"?"+t}(mi(["code",u.fields[0].AuthCode]))),1,2)}))]}case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!1,t.CanRetry,new Ya(2,"Oops, looks like something went wrong. Please try again."),t.CssOverrides),oc()];case 2:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!0,t.CanRetry,t.Ui,t.CssOverrides),oc()]}}case 3:{const n=e.fields[0];return[(a=Na(n),1===a.tag?new Za(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 Za(t.InviteToken,t.MaskedEmail,{Error:void 0,Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides)),oc()]}case 4:return[new Za(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),oc()];default:return[t,ac(new Xa(1,va(mf(t.InviteToken),[])))]}}function gf(e,t){return es.Delay(()=>es.Bind(ds(e),()=>es.ReturnFrom(t)))}class vf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProfileId"]}}function yf(e){return new vf(0,e)}function _f(e){return e.fields[0]}class bf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessStepId"]}}class Cf extends Qn{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}const xf=new Cf(new bf(0,"personal-details"),"Personal Details","apollo-personal-details-app"),Sf=new Cf(new bf(0,"emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),kf=new Cf(new bf(0,"bank"),"Bank","bank-component"),If=new Cf(new bf(0,"tax"),"Tax","tax-component"),Ef=new Cf(new bf(0,"super"),"Super","super-selection-app"),Tf=Ii([xf,Sf,kf,If,Ef]);function Of(e){const t=new bf(0,e);return function(e){return Mi(t=>hn(t.Id,e),Tf)}(t)?new ts(0,t):new ts(1,"Invalid step Id.")}function Af(e){return e.fields[0]}class Mf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessConfigId"]}}class Pf extends Qn{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}const Nf=new Pf(new Mf(0,wc("00000000-0000-0000-0000-000000000000")),"onboarding-default",Ii([kf,If,Ef])),Df=new Pf(new Mf(0,wc("00000000-0000-0000-0000-000000000001")),"PEBTS",Ii([xf,Sf,kf,If,Ef])),Rf=new Qo([[Nf.Id,Nf],[Df.Id,Df]],{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)});function jf(e){return e.fields[0]}class zf extends Qn{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class Lf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class Ff extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessInstanceId"]}}function Uf(e){return new Ff(0,e)}function Bf(e){return e.fields[0]}class Hf extends Qn{constructor(e,t){super(),this.Name=e,this.Value=t}}class Wf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagName"]}}class Vf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagValue"]}}function Gf(e,t){return Hc(0,()=>{return rs(e=>{return Wc(0,wr(n=t)?new ts(1,"Tag value is empty"):n.length<100?new ts(0,new Vf(0,n)):new ts(1,"Tag value is too long"),t=>new Hf(e,t));var n},wr(n=e)?new ts(1,"Tag name is empty"):n.length<100?new ts(0,new Wf(0,n)):new ts(1,"Tag name is too long"));var n})()}class $f extends Qn{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 qf(e,t){const n=Ti(t=>0===function(...e){switch(e.length){case 2:return ir(e[0],e[1],!1);case 3:return ir(e[0],e[1],e[2]);case 4:return ir(e[0],e[1],!0===e[2]);case 5:return ir(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ir(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ir(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 Lc(ur(ar("Invalid ComponentTagName %A%P()",[e])),n)}function Yf(e){const t=e.Status;switch(t.tag){case 0:case 2:case 3:return;default:return null!=(n=Oi(e=>!Mi(t=>hn(e.Id,t[0]),t.fields[0].CompletedSteps),e.Configuration.Steps)).tail?Cr(n.head):void 0}var n}function Xf(){return Sr(document.getElementById("external-loading-page-container"))}function Zf(){return null!=Xf()}var Jf,Kf=[];!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Jf||(Jf={}));var Qf,ed=function(e){return Object.freeze(e)},td=function(e,t){this.inlineSize=e,this.blockSize=t,ed(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,ed(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}(),rd=function(e){return e instanceof SVGElement&&"getBBox"in e},od=function(e){if(rd(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)},id=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)},sd="undefined"!=typeof window?window:{},ad=new WeakMap,cd=/auto|scroll/,ud=/^tb|vertical/,ld=/msie|trident/i.test(sd.navigator&&sd.navigator.userAgent),fd=function(e){return parseFloat(e||"0")},dd=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new td((n?t:e)||0,(n?e:t)||0)},hd=ed({devicePixelContentBoxSize:dd(),borderBoxSize:dd(),contentBoxSize:dd(),contentRect:new nd(0,0,0,0)}),pd=function(e,t){if(void 0===t&&(t=!1),ad.has(e)&&!t)return ad.get(e);if(od(e))return ad.set(e,hd),hd;var n=getComputedStyle(e),r=rd(e)&&e.ownerSVGElement&&e.getBBox(),o=!ld&&"border-box"===n.boxSizing,i=ud.test(n.writingMode||""),s=!r&&cd.test(n.overflowY||""),a=!r&&cd.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),h=r?0:fd(n.borderRightWidth),p=r?0:fd(n.borderBottomWidth),m=f+u,w=c+l,g=(r?0:fd(n.borderLeftWidth))+h,v=d+p,y=a?e.offsetHeight-v-e.clientHeight:0,_=s?e.offsetWidth-g-e.clientWidth:0,b=o?m+g:0,C=o?w+v:0,x=r?r.width:fd(n.width)-b-_,S=r?r.height:fd(n.height)-C-y,k=x+m+_+g,I=S+w+y+v,E=ed({devicePixelContentBoxSize:dd(Math.round(x*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:dd(k,I,i),contentBoxSize:dd(x,S,i),contentRect:new nd(f,c,x,S)});return ad.set(e,E),E},md=function(e,t,n){var r=pd(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Jf.DEVICE_PIXEL_CONTENT_BOX:return s;case Jf.BORDER_BOX:return o;default:return i}},wd=function(e){var t=pd(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=ed([t.borderBoxSize]),this.contentBoxSize=ed([t.contentBoxSize]),this.devicePixelContentBoxSize=ed([t.devicePixelContentBoxSize])},gd=function(e){if(od(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},vd=function(){var e=1/0,t=[];Kf.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new wd(t.target),o=gd(t.target);r.push(n),t.lastReportedSize=md(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},yd=function(e){Kf.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(gd(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},_d=function(){var e,t=0;for(yd(t);Kf.some((function(e){return e.activeTargets.length>0}));)t=vd(),yd(t);return Kf.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},bd=[],Cd=function(e){if(!Qf){var t=0,n=document.createTextNode("");new MutationObserver((function(){return bd.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Qf=function(){n.textContent=""+(t?t--:t++)}}bd.push(e),Qf()},xd=0,Sd={attributes:!0,characterData:!0,childList:!0,subtree:!0},kd=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Id=function(e){return void 0===e&&(e=0),Date.now()+e},Ed=!1,Td=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),!Ed){Ed=!0;var n,r=Id(e);n=function(){var n=!1;try{n=_d()}finally{if(Ed=!1,e=r-Id(),!xd)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Cd((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,Sd)};document.body?t():sd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),kd.forEach((function(t){return sd.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),kd.forEach((function(t){return sd.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Od=function(e){!xd&&e>0&&Td.start(),!(xd+=e)&&Td.stop()},Ad=function(){function e(e,t){this.target=e,this.observedBox=t||Jf.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=md(this.target,this.observedBox,!0);return e=this.target,rd(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}(),Md=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Pd=new WeakMap,Nd=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Dd=function(){function e(){}return e.connect=function(e,t){var n=new Md(e,t);Pd.set(e,n)},e.observe=function(e,t,n){var r=Pd.get(e),o=0===r.observationTargets.length;Nd(r.observationTargets,t)<0&&(o&&Kf.push(r),r.observationTargets.push(new Ad(t,n&&n.box)),Od(1),Td.schedule())},e.unobserve=function(e,t){var n=Pd.get(e),r=Nd(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Kf.splice(Kf.indexOf(n),1),n.observationTargets.splice(r,1),Od(-1))},e.disconnect=function(e){var t=this,n=Pd.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Rd=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.");Dd.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(!id(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Dd.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(!id(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Dd.unobserve(this,e)},e.prototype.disconnect=function(){Dd.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class jd extends Qn{constructor(e,t,n){super(),this.instanceId=0|e,this.name=t,this.type=n}}function zd(e){return new jd(Bf(e.Id),e.Configuration.Name,jf(e.Configuration.Id))}function Ld(e){Zf()||window.parent.postMessage(e,"*")}function Fd(){Ld(function(e,t){const n={type:"contentResized",sender:"flare"};return n.height=e,n.width=t,n}(document.body.offsetHeight,-1))}function Ud(e,t,n){const r=function(e,t){const n=Ti(t=>hn(t.Id,e),t.Configuration.Steps);return Lc(ur(ar("Invalid ProcessStep Id %A%P()",[e])),n)}(e,t);1===r.tag||Ld(function(e,t,n,r){const o={type:"stepSubmitSuccess",sender:"flare"};return o.workflow=zd(n),o.profileId=_f(r),o.step={name:t,type:Af(e)},o}(e,r.fields[0].DisplayName,t,n))}function Bd(e,t){Ld(function(e,t){const n={type:"workflowSubmitSuccess",sender:"flare"};return n.workflow=zd(e),n.profileId=_f(t),n}(e,t))}function Hd(e){Zf()&&function(e,t){hs(es.Delay(()=>es.Bind(ds(e),()=>(t(),es.Zero()))))}(e,()=>{eo(e=>{document.body.removeChild(e)},kr(Xf())),Ld(function(){const e={type:"appReady",sender:"flare"};return e}()),Fd()})}function Wd(e){const t=bs((n=e.inviteCode,[new Za(n,void 0,{Error:void 0,Input:"",IsDirty:!1,IsTouched:!1},!1,!1,new Ya(0),pi()),oc()]),(e,t)=>wf(e,t),[]);var n;const r=t[0],o=t[1];Ui(ya(()=>gf(1e3,mf(r.InviteToken)),e=>{o(new Xa(1,e))}));const i=ya(()=>{return gf(500,(e=r.InviteToken,t=r.MfaCodeForm.Input,pf(e,t)));var e,t},e=>{o(new Xa(2,e))});return Ui(()=>{Hd(0)}),h("div",{className:gr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(no(e=>h("style",{children:[e]}),r.CssOverrides),Yr(()=>Zr(h("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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(_i(Yr(()=>{let e,t;return Gr((e=r.Ui,2===e.tag?Zr(h("div",{className:gr(" ",["pt-4","text-center","fade-in"]),children:_r.Children.toArray([h("i",{className:gr(" ",["fad","fa-5x","fa-exclamation-circle","text-danger"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal","text-danger"]),children:"This doesn't look right"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:e.fields[0]})])})):1===e.tag?Zr(h("form",{className:gr(" ",["pt-4","text-center","fade-in"]),onSubmit:e=>{e.preventDefault(),i()},children:_r.Children.toArray([h("i",{className:gr(" ",["fad","fa-5x","fa-shield-check","text-primary"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Authenticate Your Account"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:_r.Children.toArray(["Protecting your account is our top priority. Check your email ",(t=Ir(r.MaskedEmail,""),h("strong",{children:[t]}))," for the code that we have just sent you."])}),h("div",{className:gr(" ",["input-group","input-group-lg","has-validation"]),children:_r.Children.toArray([h("input",{"aria-describedby":gr(" ",["button-verify"]),"aria-label":"Authorization code",autoFocus:!0,className:gr(" ",Ci(mi("form-control"),r.MfaCodeForm.IsDirty&&r.MfaCodeForm.IsTouched&&null!=r.MfaCodeForm.Error?mi("is-invalid"):pi())),placeholder:"Enter the code here",required:!0,maxLength:6,type:"text",onChange:e=>{o(new Xa(3,e.target.value))},onBlur:e=>{o(new Xa(4))}}),h("div",{className:"input-group-append",children:_r.Children.toArray([h("button",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["btn","btn-lg","btn-dark"])]),Yr(()=>Gr(Zr(["id","button-verify"]),Yr(()=>Gr(Zr(["type","submit"]),Yr(()=>Gr(Zr(["disabled",!(!r.MfaCodeForm.IsTouched||null==r.MfaCodeForm.Error)||r.IsValidationPending]),Yr(()=>r.IsValidationPending?Zr(["children",_r.Children.toArray([h("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","px-3"]),children:_r.Children.toArray([h("div",{className:gr(" ",["dot-flashing"])})])})])]):Zr(["children","Verify"])))))))))))))])}),h("div",{className:"invalid-feedback text-left",children:Ir(r.MfaCodeForm.Error,"Incorrect validation code")})])})])})):Zr(h("div",{className:gr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","py-2"]),children:_r.Children.toArray([h("div",{className:gr(" ",["dot-flashing my-4"])})])}),h("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Verifying your invite"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"Hold tight. It won't be long."})])}))),Yr(()=>{let e,t;return Zr(h("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e=ur(ar("Flare HR Pty Ltd © 2015-%P()",[(t=jn(),Fn(t))])),h("small",{children:[e]}))])}))}))}))))})])})])}))))))))})}function Vd(){return Ui(()=>{Hd(0)}),h("div",{className:gr(" ",["text-center","mt-5"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","justify-content-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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 Gd(e){this.message=e}Gd.prototype=new Error,Gd.prototype.name="InvalidCharacterError";var $d="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Gd("'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 qd(e){this.message=e}qd.prototype=new Error,qd.prototype.name="InvalidTokenError";var Yd=function(e,t){if("string"!=typeof e)throw new qd("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($d(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 $d(t)}}(e.split(".")[n]))}catch(e){throw new qd("Invalid token specified: "+e.message)}};function Xd(e){return t=void 0,n=e,es.Bind(n,e=>es.Return(Fc(t,e)));var t,n}function Zd(e,t){return function(e,t,n){for(;;){const r=e,o=t,i=n;if(null==i.tail)return r;{const s=Hc(0,()=>rs(e=>Wc(0,r,t=>Ci(t,mi(e))),o(i.head)))();if(1===s.tag)return s;e=s,t=o,n=i.tail}}}(new ts(0,pi()),e,t)}function Jd(e){return Zd(e=>e,e)}function Kd(e,t){return null!=t?ns(e=>Cr(e),e(xr(t))):new ts(0,void 0)}class Qd extends Qn{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}function eh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteBrandingDto",[],Qd,()=>[["CompanyName",yo(Co)],["Logo",yo(Co)],["Support",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SupportDto",[],th,()=>[["Email",yo(Co)],["Phone",yo(Co)]]))]])}class th extends Qn{constructor(e,t){super(),this.Email=e,this.Phone=t}}function nh(e){return Hc(0,()=>rs(t=>rs(n=>Wc(0,Kd(e=>function(e){return Hc(0,()=>rs(t=>Wc(0,Kd($a,e.Phone),e=>new Ha(t,e)),Kd(Ga,e.Email)))()}(e),e.Support),e=>new Fa(n,t,e)),Kd(e=>function(e){return wr(e)?new ts(1,"Invalid company name."):new ts(0,new Ba(0,e))}(e),e.CompanyName)),Kd(e=>qa(e),e.Logo)))()}class rh extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}class oh extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}function ih(e){return Hc(0,()=>rs(t=>rs(n=>Wc(0,Kd(e=>nh(e),e.Branding),r=>new La(t,e.DateIssued,n,r)),Kd(e=>function(e){return Hc(0,()=>Wc(0,Na(e.Code),t=>new Da(t,e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)))()}(e),e.SecondFactor)),ja(e.Code)))()}class sh extends Qn{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}function ah(e){return Hc(0,()=>rs(t=>{const n=new Cf(t,e.DisplayName,e.ComponentTagName);return Ai(n,Tf,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)})?new ts(0,n):new ts(1,"Step is not registered.")},Of(e.Id)))()}class ch extends Qn{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class uh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}function lh(e){switch(e.tag){case 1:{const t=function(e){return Hc(0,()=>Wc(0,Jd(xi(e=>Hc(0,()=>Wc(0,Of(e[0]),t=>[t,e[1]]))(),e.CompletedSteps)),t=>new zf(e.ActivatedDates,t)))()}(e.fields[0]);return 1===t.tag?new ts(1,t.fields[0]):new ts(0,new Lf(1,t.fields[0]))}case 2:return new ts(0,new Lf(2,e.fields[0]));case 3:return new ts(0,new Lf(3,e.fields[0]));default:return new ts(0,new Lf(0))}}class fh extends Qn{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}function dh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],fh,()=>[["Id",mo("System.Guid")],["Name",Co],["Steps",_o(wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],sh,()=>[["Id",Co],["DisplayName",Co],["ComponentTagName",Co]]))]])}function hh(e){return Hc(0,()=>rs(t=>Wc(0,function(e){const t=new Mf(0,e);return Kr(t,Rf.keys())?new ts(0,t):new ts(1,"Invalid Type")}(e.Id),n=>new Pf(n,e.Name,t)),Jd(xi(e=>ah(e),e.Steps))))()}class ph extends Qn{constructor(e,t){super(),this.Name=e,this.Value=t}}function mh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],ph,()=>[["Name",Co],["Value",Co]])}function wh(e){return Gf(e.Name,e.Value)}class gh extends Qn{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 vh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],gh,()=>[["Id",xo],["DateCreated",mo("System.DateTime")],["Configuration",dh()],["Status",go("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],uh,()=>[[],[["Item",wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],ch,()=>[["ActivatedDates",_o(mo("System.DateTime"))],["CompletedSteps",_o(vo(Co,mo("System.DateTime")))]])]],[["Item",mo("System.DateTime")]],[["Item",mo("System.DateTime")]]])],["Invite",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],oh,()=>[["Code",Co],["DateIssued",mo("System.DateTime")],["SecondFactor",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],rh,()=>[["Code",Co],["DateIssued",mo("System.DateTime")],["NumberOfAttempts",xo],["DateOfLastAttempt",yo(mo("System.DateTime"))]]))],["Branding",yo(eh())]]))],["Tags",yo(_o(mh()))],["Creator",yo(Co)]])}function yh(e){return Hc(0,()=>rs(t=>{const n=t;return rs(t=>{let r;const o=t;return rs(t=>rs(r=>Wc(0,Kd(e=>Jd(xi(e=>wh(e),e)),e.Tags),o=>new $f(Uf(e.Id),n,e.DateCreated,t,r,o,Er(e=>yf(e),e.Creator))),Kd(e=>ih(e),e.Invite)),1===o.tag?(r=o.fields[0],Hc(0,()=>Wc(0,Jd(xi(e=>{const t=[e[0],e[1]],r=t[0];return Mi(e=>hn(e.Id,r),n.Steps)?new ts(0,[r,t[1]]):new ts(1,"Step id is not configured for this Process Instance.")},r.CompletedSteps)),e=>new Lf(1,new zf(r.ActivatedDates,e))))()):new ts(0,o))},lh(e.Status))},hh(e.Configuration)))()}class _h extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}class bh extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstance=t}}class Ch extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}const xh=e=>yh(e);class Sh extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstanceDto=t}}function kh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],Sh,()=>[["CssOverrides",_o(Co)],["ProcessInstanceDto",vh()]])}class Ih extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["WorkflowInstanceStepActivated"]}}function Eh(){return go("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],Ih,()=>[[["Item",Co]]])}class Th extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super"]}}function Oh(e){return hn(e,xf)?new ts(0,new Th(0)):hn(e,Sf)?new ts(0,new Th(1)):hn(e,kf)?new ts(0,new Th(2)):hn(e,If)?new ts(0,new Th(3)):hn(e,Ef)?new ts(0,new Th(4)):new ts(1,"Invalid step")}function Ah(e){switch(e.tag){case 1:return Sf;case 2:return kf;case 3:return If;case 4:return Ef;default:return xf}}function Mh(e){return Jd(xi(e=>Oh(e),function(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return pi();default:{const n=xi(e=>e[0],t.fields[0].CompletedSteps);return Oi(e=>Ai(e.Id,n,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)}),e.Configuration.Steps)}}}(e)))}function Ph(e){switch(e.tag){case 1:return"Emergency Contacts";case 2:return"Bank Details";case 3:return"Tax Details";case 4:return"Super Selection";default:return"Personal Details"}}function Nh(e){return Jd(xi(e=>Oh(e),e.Configuration.Steps))}class Dh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initialising","StepList","Step","CompletedAllSteps","Oops","AllDone"]}}class Rh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ActivateCallback","ShowView","StepCompletionEventCallback","CompleteStep","CompleteWorkflow","SendAnalyticsEvent","AppendTrailingSlashToUrl"]}}class jh extends Qn{constructor(e,t,n,r,o){super(),this.ProfileId=e,this.ProcessInstanceId=t,this.ProcessInstance=n,this.CurrentView=r,this.CssOverrides=o}}function zh(e){return Array.from(e)}function Lh(e){return String(e)}function Fh(e){return String(e)}function Uh(e){return String(e)}function Bh(e){return String(e)}function Hh(){return null}function Wh(e,t){return JSON.stringify(t,_n(2,null),Cr(e))}function Vh(e){return t=>{return n=Er(e,t),r=()=>null,null!=n?xr(n):r();var n,r}}function Gh(e,t,n,r){const o=new er(null),i=da(Io(r),o,e);let s;if(Uo(r)){const e=ui(e=>{const r=du(t,ko(e)),o=$h(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}},zo(r));s=t=>Qr(_n(2,Sn(e=>n=>n(t,e),[0,[0,2]])),{},e)}else{if(!Fo(r)){let e;const t=Io(r);throw e=ur(sr("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=jo(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 ko(s);{const e=0|c,r=Ho(s),o=ci(new Array(e+1),0,e+1,null);o[0]=ko(s);for(let s=1;s<=e;s++){const e=$h(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function $h(e,t,n,r){const o=Io(r),i=ha(o,e);if(null==i){if(Eo(r)){const o=$h(e,t,n,To(r));return e=>zh(no(o,e))}if(Ao(r)){const e=Io(Po(r));if("System.SByte"===e)return e=>Lh(e);if("System.Byte"===e)return e=>Fh(e);if("System.Int16"===e)return e=>Uh(e);if("System.UInt16"===e)return e=>Bh(e);if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Io(r),t=lr(sr("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(Oo(r)){if(Bo(r)){const o=ui(r=>$h(e,t,n,r),Lo(r));return e=>zh(ro((e,t)=>o[e](t),e))}{const o=Io(Mo(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new en(()=>Vh($h(e,t,n,fo(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=$h(e,t,n,fo(r)[0]);return e=>zh(no(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=fo(r)[0],i=$h(e,t,n,fo(r)[1]);if("System.String"===Io(o)||"System.Guid"===Io(o))return e=>Qr((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e},{},e);{let r;const s=$h(e,t,n,o);return r=e=>s(e),e=>zh(no(e=>{const t=e;return[r(t[0]),i(t[1])]},e))}}return Gh(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Hh:"System.String"===o?e=>e:"System.SByte"===o?e=>Lh(e):"System.Byte"===o?e=>Fh(e):"System.Int16"===o?e=>Uh(e):"System.UInt16"===o?e=>Bh(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=>Mn(e,"O"):"System.DateTimeOffset"===o?e=>Mn(e,"O"):"System.TimeSpan"===o?e=>Sa(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:Gh(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function qh(e){return null!=e?pa((e,t)=>new er(t[0]),e.Coders):ma()}function Yh(e,t,n,r,o,i){return Wh(e,function(e,t,n,r){const o=Ir(e,new cu(0)),i=Ir(n,!0),s=xr(r).ResolveType();return $h(qh(t),o,i,s)}(n,r,o,i)(t))}function Xh(e,t){return $c(0,()=>{const n=ou((r=ur(sr("Bearer %s"))(e),new Yc(0,"Authorization",r)),t);var r;const o=es.Bind(su(n),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(o,e=>{let t;const r=e;return 1===r.tag?es.Return(new ts(1,r.fields[0])):es.ReturnFrom((t=r.fields[0],429===t.statusCode||t.statusCode>=500?es.Bind(su(n),e=>es.Return(new ts(0,e))):Gc(0,t)))}))})}function Zh(e,t,n){return $c(0,()=>{let r;const o=Xh(n,(r=iu(new Xc(1,Yh(0,mi(function(e){return 1===e.tag?new Ch(1):new Ch(0,Af(e.fields[0]))}(e)),new cu(1),void 0,void 0,{ResolveType:()=>_o(go("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Ch,()=>[[["Item",Co]],[]]))})),ru(new qc(1),nu(function(e){const t=0|Bf(e);return ur(sr("%s/workflows/backend/%i"))(Oc)(t)}(t)))),ou(Qc("application/json"),r)));return es.Delay(()=>es.Bind(o,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(rs(xh,ff(t.responseText,new cu(1),void 0,{ResolveType:vh}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function Jh(e,t){return $c(0,()=>{const n=Xh(t,ru(new qc(1),nu(function(e){const t=0|Bf(e);return ur(sr("%s/workflows/backend/process-instances/%i/activate"))(Oc)(t)}(e))));return es.Delay(()=>es.Bind(n,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>function(e){return new bh(e.CssOverrides,(t=e=>{throw new Error(e)},1===(n=yh(e.ProcessInstanceDto)).tag?t(n.fields[0]):n.fields[0]));var t,n}(e),ff(t.responseText,new cu(1),void 0,{ResolveType:kh}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function Kh(e,t,n){return Xd(es.Bind($c(0,()=>{let r;return Xh(e,(r=iu(new Xc(1,Yh(0,mi(n),new cu(1),void 0,void 0,{ResolveType:()=>_o(Eh())})),ru(new qc(1),nu(function(e){const t=0|Bf(e);return ur(sr("%s/workflows/backend/process-instances/%i/analytics-events"))(Oc)(t)}(t)))),ou(Qc("application/json"),r)))}),e=>es.Return(ns(e=>{},e))))}function Qh(e,t,n,r){let o,i,s;switch(n.tag){case 1:{const e=n.fields[0];return[new jh(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,e,r.CssOverrides),2===e.tag?ac(new Rh(5,r.ProcessInstanceId,new Ih(0,Af(Ah(e.fields[0]).Id)))):oc()]}case 5:return uc(Kh(e,n.fields[0],n.fields[1])),[r,oc()];case 2:return[r,(o=r.ProcessInstance,2===o.tag&&0===o.fields[0].tag?(i=ns(e=>e.Id,qf(n.fields[0].target.tagName,o.fields[0].fields[0])),1===i.tag?oc():ac(new Rh(3,i.fields[0],new wa(0)))):oc())];case 3:{const t=n.fields[0],o=n.fields[1];switch(o.tag){case 1:return[r,oc()];case 2:{const e=o.fields[0],n=zc(e=>e,e=>new Dh(4,e),Hc(0,()=>rs(e=>{const t=e,n=Yf(t);return rs(e=>{const r=e;return rs(e=>{const t=e;return null==n?Bc(0,new Dh(3,r,t)):Wc(0,Oh(n),e=>new Dh(2,e,e,r,t))},Nh(t))},Mh(t))},e))());return zc(e=>{Ud(t,e,r.ProfileId)},e=>{},e),[new jh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new Rh(1,n))]}case 3:return[new jh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new Rh(1,new Dh(4,o.fields[0].message)))];default:return[r,cc(e=>{uc(e)},e=>function(e,t,n){return Zh(new _h(0,t),e,n)}(r.ProcessInstanceId,t,e),e,e=>new Rh(3,t,new wa(2,e)),e=>new Rh(3,t,new wa(3,e)))]}}case 4:{const o=n.fields[0];switch(o.tag){case 1:return[r,oc()];case 2:{const e=o.fields[0];return 1===e.tag?[new jh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new Rh(1,new Dh(4,e.fields[0])))]:(Bd(e.fields[0],r.ProfileId),[new jh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),1===t.tag?ac(new Rh(1,new Dh(5))):oc()])}case 3:return[new jh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new Rh(1,new Dh(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 Bd(o,r.ProfileId),[r,oc()];case 1:return[r,cc(e=>{uc(e)},e=>function(e,t){return Zh(new _h(1),e,t)}(r.ProcessInstanceId,e),e,e=>new Rh(4,new wa(2,e)),e=>new Rh(4,new wa(3,e)))]}}}}case 6:return[r,(s=window.location.pathname+"/"+window.location.search+window.location.hash,mi(e=>{bc(mi(s),1,2)}))];default:{const e=n.fields[0];let t;switch(e.tag){case 3:t=[r,ac(new Rh(1,new Dh(4,e.fields[0].message)))];break;case 0:case 1:t=[r,oc()];break;default:{const n=zc(e=>e,e=>[r,new Dh(4,e)],Hc(0,()=>rs(e=>{const t=e,n=new jh(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,r.CurrentView,t.CssOverrides);return rs(e=>{const r=e;return rs(e=>{let o,i;const s=e;return Wc(0,(o=Yf(t.ProcessInstance),null==o?new ts(0,new Dh(3,r,s)):(i=o,Hc(0,()=>Wc(0,Oh(i),e=>{const t=e;return Ec.clientWidth<768?new Dh(1,t,t,r,s):new Dh(2,t,t,r,s)}))())),e=>[n,e])},Nh(t.ProcessInstance))},Mh(t.ProcessInstance))},e.fields[0]))());t=[n[0],ac(new Rh(1,n[1]))]}}const o=t[0];return[new jh(o.ProfileId,o.ProcessInstanceId,ga(e=>ns(e=>e.ProcessInstance,e),e),o.CurrentView,o.CssOverrides),t[1]]}}}var ep;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,rp,op,ip=function(e){return h("svg",tp({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},e),ep||(ep=h("path",{d:"M2 8l4 4 9-10",strokeWidth:3,stroke:"#FFF",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})))};function sp(){return(sp=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 ap,cp,up=function(e){return h("svg",sp({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"})),rp||(rp=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"})),op||(op=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 lp(){return(lp=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 fp,dp,hp,pp=function(e){return h("svg",lp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),ap||(ap=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"}))),cp||(cp=h("defs",null,h("clipPath",{id:"icon-emergency-contacts_svg__clip0"},h("path",{fill:"#fff",d:"M0 0h36v36H0z"})))))};function mp(){return(mp=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 wp,gp,vp=function(e){return h("svg",mp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),fp||(fp=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"})),dp||(dp=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"})),hp||(hp=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 yp(){return(yp=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 _p,bp,Cp,xp=function(e){return h("svg",yp({viewBox:"0 0 34 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),wp||(wp=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"})),gp||(gp=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 Sp(){return(Sp=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 kp=function(e){return h("svg",Sp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_p||(_p=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"})),bp||(bp=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"})),Cp||(Cp=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 Ip extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Height","Width"]}}function Ep(e){return h(ip,Zo(e,1))}class Tp extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Active","Complete","Editing","ReadyToComplete","ToComplete"]}}class Op extends qn{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 Mp(e,t){const n=t.state;if(1===n.tag){if(hn(n.fields[0],e))return new Tp(2);if(1===n.tag)return new Tp(1);throw new Error("The match cases were incomplete")}return function(e,t,n,r){const o=Ai(e,r,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)});let i;switch(i=o?1:hn(t,e)?0:1,i){case 0:return new Tp(0);case 1:{let r;switch(r=o&&hn(t,e)?0:1,r){case 0:return new Tp(2);case 1:return hn(n,e)?new Tp(3):new Tp(o?1:4)}}}}(e,n.fields[0],n.fields[1],n.fields[2])}function Pp(e,t,n){let r;t.dispatch((r=t.state,1===r.tag?new Rh(1,new Dh(2,e,void 0,r.fields[1],r.fields[2])):new Rh(1,new Dh(2,e,r.fields[1],r.fields[2],r.fields[3]))))}function Np(e,t){switch(t.tag){case 1:return n=[new Ip(0,e),new Ip(1,e)],h(pp,Zo(n,1));case 2:return function(e){return h(vp,Zo(e,1))}([new Ip(0,e),new Ip(1,e)]);case 3:return function(e){return h(xp,Zo(e,1))}([new Ip(0,e),new Ip(1,e)]);case 4:return function(e){return h(kp,Zo(e,1))}([new Ip(0,e),new Ip(1,e)]);default:return function(e){return h(up,Zo(e,1))}([new Ip(0,e),new Ip(1,e)])}var n}function Dp(e){const t=_i(Yr(()=>Gr(no(t=>function(e,t){const n=hn(e,new Th(4));return h("div",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["row","mb-3","align-items-center"])]),Yr(()=>{let r;return Gr(Zr(["children",_r.Children.toArray([h("div",{className:gr(" ",["col-auto"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(Zr(h("span",{className:gr(" ",_i(Yr(()=>{switch(Mp(e,t).tag){case 4:return Zr("fl-step-tick-to-complete");case 0:return Zr("fl-step-tick-active");case 1:case 2:return Zr("fl-step-tick-complete-or-editing");default:return Zr("fl-step-tick-to-complete")}}))),children:_r.Children.toArray([Ep([["style",{transform:"scale(0.7)"}],["className",gr(" ",_i(Yr(()=>{switch(Mp(e,t).tag){case 4:case 0:return Zr("invisible");case 1:case 2:return Zr("visible");default:return Zr("invisible")}})))]])])})),Yr(()=>n?Xr():Zr(h("div",{className:gr(" ",["fl-step-tick-progress-bar"])}))))))))}),h("div",{className:gr(" ",["col-9"]),children:_r.Children.toArray([h("button",{className:gr(" ",_i(Yr(()=>Gr(Zr("btn"),Yr(()=>Gr(Zr("btn-block"),Yr(()=>Gr(Zr("text-left"),Yr(()=>Gr(Zr("text-nowrap"),Yr(()=>{switch(Mp(e,t).tag){case 3:return Zr("fl-step-btn-ready-or-complete");case 0:case 2:return Zr("fl-step-btn-active-or-editing");case 1:return Zr("fl-step-btn-ready-or-complete");default:return Zr(ur(sr("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))),children:_r.Children.toArray([h("span",{className:gr(" ",["mr-2"]),children:_r.Children.toArray([Np(36,e)])}),(r=Ph(e),h("span",{children:[r]}))])})])})])]),Yr(()=>hn(Mp(e,t),new Tp(4))?Xr():Zr(["onClick",n=>{Pp(e,t)}])))}))))))}(t,e),Ap(e.state)),Yr(()=>1===e.state.tag?Zr(h("button",{className:gr(" ",["col-12","btn","is-primary","btn-block"]),style:{marginTop:"2rem"},children:"Complete Onboarding",onClick:t=>{e.dispatch(new Rh(4,new wa(0)))}})):Zr(null)))));return h("div",{children:_r.Children.toArray(Array.from(t))})}function Rp(e){return!(bi(Ap(e.state))<=3)}function jp(e){return Rp(e)?25:36}function zp(e,t){return Rp(e)?Gr(["small"],t):t}function Lp(e){return h("div",{className:gr(" ",["row","mb-2"]),children:_r.Children.toArray([h("div",{className:gr(" ",["d-flex","w-100","mt-1"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>no(t=>function(e,t){return h("div",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["flex-fill","mx-1"])]),Yr(()=>Gr(Zr(["children",_r.Children.toArray([h("button",{className:gr(" ",_i(Yr(()=>Gr(Zr("btn"),Yr(()=>Gr(Zr("btn-block"),Yr(()=>Gr(Zr("text-center"),Yr(()=>Gr(Zr("text-nowrap"),Yr(()=>Gr(Zr("border"),Yr(()=>{switch(Mp(e,t).tag){case 3:return Zr("fl-step-btn-ready-or-complete");case 0:case 2:return Zr("fl-step-btn-active-or-editing");case 1:return Zr("fl-step-btn-ready-or-complete");default:return Zr(ur(sr("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))))),children:_r.Children.toArray([h("span",{className:gr(" ",["mr-md-2"]),children:_r.Children.toArray([Np(jp(t),e)])}),h("span",{children:Ph(e),className:gr(" ",zp(t,["d-none","d-md-inline-block"]))})])})])]),Yr(()=>hn(Mp(e,t),new Tp(4))?Xr():Zr(["onClick",n=>{Pp(e,t)}])))))))))}(t,e),Ap(e.state))))))})])})}var Fp=n(1),Up=n(0),Bp=n.n(Up);function Hp(e){return(Hp="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 Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vp(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 Gp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(n),!0).forEach((function(t){Wp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $p(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 qp(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 Yp(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 Xp(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=Yp(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 Zp=!1;try{Zp=!0}catch(e){}function Jp(e){return Fp.b.icon?Fp.b.icon(e):null===e?null:"object"===Hp(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 Kp(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Wp({},e,t):{}}function Qp(e){var t=e.forwardedRef,n=$p(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,u=Jp(r),l=Kp("classes",[].concat(qp(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=(Wp(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),Wp(t,"fa-rotate-".concat(l),null!=l&&0!==l),Wp(t,"fa-pull-".concat(f),null!=f),Wp(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)),qp(s.split(" ")))),f=Kp("transform","string"==typeof n.transform?Fp.b.transform(n.transform):n.transform),d=Kp("mask",Jp(o)),h=Object(Fp.a)(u,Gp({},l,{},f,{},d,{symbol:i,title:a,titleId:c}));if(!h)return function(){var e;!Zp&&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){Qp.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),em(p[0],m)}Qp.displayName="FontAwesomeIcon",Qp.propTypes={border:Bp.a.bool,className:Bp.a.string,mask:Bp.a.oneOfType([Bp.a.object,Bp.a.array,Bp.a.string]),fixedWidth:Bp.a.bool,inverse:Bp.a.bool,flip:Bp.a.oneOf(["horizontal","vertical","both"]),icon:Bp.a.oneOfType([Bp.a.object,Bp.a.array,Bp.a.string]),listItem:Bp.a.bool,pull:Bp.a.oneOf(["right","left"]),pulse:Bp.a.bool,rotation:Bp.a.oneOf([0,90,180,270]),size:Bp.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Bp.a.bool,symbol:Bp.a.oneOfType([Bp.a.bool,Bp.a.string]),title:Bp.a.string,transform:Bp.a.oneOfType([Bp.a.string,Bp.a.object]),swapOpacity:Bp.a.bool},Qp.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 em=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=Xp(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Yp(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,c=$p(r,["style"]);return i.attrs.style=Gp({},i.attrs.style,{},a),t.apply(void 0,[n.tag,Gp({},i.attrs,{},c)].concat(qp(o)))}.bind(null,ze.createElement),tm={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 xe}));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,w=f,g=d,v=(m.document,!!w.documentElement&&!!w.head&&"function"==typeof w.addEventListener&&"function"==typeof w.createElement),y=(~p.indexOf("MSIE")||p.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),_=y.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(y.map((function(e){return"".concat(e,"x")}))).concat(_.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(w&&"function"==typeof w.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=w.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(C[r]=o)}))}var x=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);x.autoReplaceSvg||(x.observeMutations=!1);var S=a({},x);m.FontAwesomeConfig=S;var k=m||{};k.___FONT_AWESOME___||(k.___FONT_AWESOME___={}),k.___FONT_AWESOME___.styles||(k.___FONT_AWESOME___.styles={}),k.___FONT_AWESOME___.hooks||(k.___FONT_AWESOME___.hooks={}),k.___FONT_AWESOME___.shims||(k.___FONT_AWESOME___.shims=[]);var I=k.___FONT_AWESOME___,E=[];v&&((w.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(w.readyState)||w.addEventListener("DOMContentLoaded",(function e(){w.removeEventListener("DOMContentLoaded",e),1,E.map((function(e){return e()}))})));var T,O=function(){},A=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,P=void 0===r?setTimeout:r,M=[];function N(){for(var e=0;e<M.length;e++)M[e][0](M[e][1]);M=[],T=!1}function D(e,t){M.push([e,t]),T||(T=!0,P(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){F(i,e)}}z(i,r)||("fulfilled"===n&&j(i,r),"rejected"===n&&F(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,F(e,t))})),!0}}catch(t){return n||F(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(B,e))}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,D(H,e))}function U(e){e._then=e._then.forEach(R)}function B(e){e._state="fulfilled",U(e)}function H(t){t._state="rejected",U(t),!t._handled&&A&&e.process.emit("unhandledRejection",t._data,t)}function W(t){e.process.emit("rejectionHandled",t)}function V(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof V==!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){F(t,e)}try{e((function(e){j(t,e)}),n)}catch(e){n(e)}}(e,this)}V.prototype={constructor:V,_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(W,this)),"fulfilled"===this._state||"rejected"===this._state?D(R,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},V.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new V((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)}))},V.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new V((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)}))},V.resolve=function(e){return e&&"object"===o(e)&&e.constructor===V?e:new V((function(t){t(e)}))},V.reject=function(e){return new V((function(t,n){n(e)}))};var G={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $(e){if(e&&v){var t=w.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=w.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 w.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,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Z(e){return e.size!==G.size||e.x!==G.x||e.y!==G.y||e.rotate!==G.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,h=e.watchable,p=void 0!==h&&h,m=r.found?r:n,w=m.width,g=m.height,v="fak"===o,y=v?"":"fa-w-".concat(Math.ceil(w/g*16)),_=[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(" "),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(w," ").concat(g)})},C=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(w/g*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 x=a({},b,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:s,symbol:c,styles:a({},C,d.styles)}),k=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=J({transform:c,containerWidth:f,iconWidth:u}),p={tag:"rect",attributes:a({},K,{fill:"white"})},m=l.children?{children:l.children.map(Q)}:{},w={tag:"g",attributes:a({},h.inner),children:[Q(a({tag:l.tag,attributes:a({},l.attributes,h.path)},m))]},g={tag:"g",attributes:a({},h.outer),children:[w]},v="mask-".concat(s||q()),y="clip-".concat(s||q()),_={tag:"mask",attributes:a({},K,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},_]};return n.push(b,{tag:"rect",attributes:a({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")")},K)}),{children:n,attributes:r}}(x):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}}(x),I=k.children,E=k.attributes;return x.children=I,x.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}]}]}(x):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}]}(x)}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"},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;"}),I.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(S.familyPrefix,"-").concat(b.GROUP)},children:[{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(b.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(S.familyPrefix,"-").concat(b.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}I.styles;function we(){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&&!Ce&&($(we()),Ce=!0)}function ve(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(v){var t=w.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(be.definitions,n,r)||ae(I.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,xe={transform:function(e){return ue(e)}},Se=(_e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?G: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,w=void 0===m?[]:m,g=t.attributes,v=void 0===g?{}:g,y=t.styles,_=void 0===y?{}:y;if(e){var b=e.prefix,C=e.iconName,x=e.icon;return ve(a({type:"icon"},e),(function(){return ge(),S.autoA11y&&(d?v["aria-labelledby"]="".concat(S.replacementClass,"-title-").concat(p||q()):(v["aria-hidden"]="true",v.focusable="false")),ee({icons:{main:me(x),mask:c?me(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:C,transform:a({},G,r),symbol:i,title:d,maskId:l,titleId:p,extra:{attributes:v,styles:_,classes:w}})}))}},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||{})),_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 Bm}));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 w(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 v(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 v(e)}}function y(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?g(o):i,o.__h),A(n,o),o.__e!=i&&v(o)))}))}function b(e,t,n,r,o,i,s,a,l,f){var d,h,w,v,y,_,b,x=r&&r.__k||u,k=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v?p(null,v,null,null,v):Array.isArray(v)?p(m,{children:v},null,null,null):v.__b>0?p(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(w=x[d])||w&&v.key==w.key&&v.type===w.type)x[d]=void 0;else for(h=0;h<k;h++){if((w=x[h])&&v.key==w.key&&v.type===w.type){x[h]=void 0;break}w=null}O(e,v,w=w||c,o,i,s,a,l,f),y=v.__e,(h=v.ref)&&w.ref!=h&&(b||(b=[]),w.ref&&b.push(w.ref,null,v),b.push(h,v.__c||y,v)),null!=y?(null==_&&(_=y),"function"==typeof v.type&&null!=v.__k&&v.__k===w.__k?v.__d=l=C(v,l,e):l=S(e,v,w,x,y,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&w.__e==l&&l.parentNode!=e&&(l=g(w))}for(n.__e=_,d=k;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=g(r,d+1)),N(x[d],x[d]));if(b)for(d=0;d<b.length;d++)M(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):S(n,o,o,e.__k,o.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(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 k(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||k(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||k(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:E,i):e.removeEventListener(t,i?T: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 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,g,v,y,_,C,x,S,k=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 k){if(_=t.props,C=(l=k.contextType)&&o[l.__c],x=l?C?C.props.value:l.__:o,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(_,x):(t.__c=d=new w(_,x),d.constructor=k,d.render=D),C&&C.sub(d),d.props=_,d.state||(d.state={}),d.context=x,d.__n=o,h=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,k.getDerivedStateFromProps(_,d.__s))),p=d.props,g=d.state,h)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&_!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,x)||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,x),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,g,v)}))}d.context=x,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||(v=d.getSnapshotBeforeUpdate(p,g)),S=null!=l&&l.type===m&&null==l.key?l.props.children:l,b(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=P(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 P(e,t,n,r,o,i,s,a){var l,f,h,p,m=n.props,w=t.props,g=t.type,v=0;if("svg"===g&&(o=!0),null!=i)for(;v<i.length;v++)if((l=i[v])&&(l===e||(g?l.localName==g:3==l.nodeType))){e=l,i[v]=null;break}if(null==e){if(null===g)return document.createTextNode(w);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,w.is&&w),i=null,a=!1}if(null===g)m===w||a&&e.data===w||(e.data=w);else{if(i=i&&u.slice.call(e.childNodes),f=(m=n.props||c).dangerouslySetInnerHTML,h=w.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||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,w,m,o,a),h)t.__k=[];else if(v=t.props.children,b(e,Array.isArray(v)?v:[v],t,n,r,o&&"foreignObject"!==g,i,s,e.firstChild,a),null!=i)for(v=i.length;v--;)null!=i[v]&&d(i[v]);a||("value"in w&&void 0!==(v=w.value)&&(v!==e.value||"progress"===g&&!v)&&I(e,"value",v,m.value,!1),"checked"in w&&void 0!==(v=w.checked)&&v!==e.checked&&I(e,"checked",v,m.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 N(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]&&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},w.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))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),y(this))},w.prototype.render=m,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,a=0;var L,F,U,B=0,H=[],W=r.__b,V=r.__r,G=r.diffed,$=r.__c,q=r.unmount;function Y(e,t){r.__h&&r.__h(F,e,B||t),B=0;var n=F.__H||(F.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function X(e){return B=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=F),r.__}function J(e,t){var n=Y(L++,3);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,F.__H.__h.push(n))}function K(e,t){var n=Y(L++,4);!r.__s&&ie(n.__H,t)&&(n.__=e,n.__H=t,F.__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(){H.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)}})),H=[]}r.__b=function(e){F=null,W&&W(e)},r.__r=function(e){V&&V(e),L=0;var t=(F=e.__c).__H;t&&(t.__h.forEach(re),t.__h.forEach(oe),t.__h=[])},r.diffed=function(e){G&&G(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==H.push(t)&&U===r.requestAnimationFrame||((U=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ne&&(t=requestAnimationFrame(n))})(te)),F=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=F;"function"==typeof e.__c&&e.__c(),F=t}function oe(e){var t=F;e.__c=e.__(),F=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 w).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:x(x(e).map(t))},he={map:de,forEach:de,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},pe=r.__e;function me(){this.__u=0,this.t=null,this.__b=null}function we(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);pe(e,t,n)},(me.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=we(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 ve=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ye(e){return this.getChildContext=function(){return e.context},e.children}function _e(e){var t=this,n=e.i;t.componentWillUnmount=function(){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(ye,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(ge.prototype=new w).__e=function(e){var t=this,n=we(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ve(t,e,r)):o()};n?n(i):i()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(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){ve(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]/,xe=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=""),R(e,t),"function"==typeof n&&n(),e?e.__c:null}function ke(e,t,n){return z(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.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 Te(){return this.cancelBubble}function Oe(){return this.defaultPrevented}r.event=function(e){return Ie&&(e=Ie(e)),e.persist=Ee,e.isPropagationStopped=Te,e.isDefaultPrevented=Oe,e.nativeEvent=e};var Ae,Pe={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)&&!xe(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=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(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&&(Pe.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Pe)),e.$$typeof=be,Me&&Me(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:Z,useEffect:J,useLayoutEffect:K,useRef:function(e){return B=5,Q((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){B=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 B=8,Q((function(){return e}),t)},useContext:function(e){var t=F.context[e.__c],n=Y(L++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(F)),t.props.value):e.__},useDebugValue:ee,version:"16.8.0",Children:he,render:Se,hydrate:ke,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(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 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:w,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:ge,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: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 Fe(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 Ue(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=Fe(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 Be(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ze||(ze={}));const He=Symbol("numeric");function We(e){return"number"==typeof e||(null==e?void 0:e[He])}function Ve(e,t){return"number"==typeof e?e*t:e[He]().multiply(t)}function Ge(e,t){return"number"==typeof e?e.toFixed(t):e[He]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[He]().toPrecision(t)}function qe(e,t){return"number"==typeof e?e.toExponential(t):e[He]().toExponential(t)}function Ye(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[He]().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 Tt(this,e)},Ze.prototype.toString=function(e){return _t(this,e)},Ze.prototype.toJSON=function(){return _t(this)},Ze.prototype[He]=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:()=>_t(e.unsigned?e:Ft(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 wt}else{if(e<=-ct)return gt;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 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 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(Mt(i,tt(rt(n,a))),tt(c));else i=At(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),ht=et(1,!0),pt=et(-1),mt=nt(-1,2147483647,!1),wt=nt(-1,-1,!0),gt=nt(0,-2147483648,!1);function vt(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 _t(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(bt(e))return"0";if(Ct(e)){if(St(e,gt)){var n=tt(t),r=Nt(e,n),o=Pt(Mt(r,n),e);return _t(r,t)+vt(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=(vt(Pt(s,Mt(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 xt(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 kt(e,t){return Tt(e,t)<0}function It(e,t){return Tt(e,t)>0}function Et(e,t){return Tt(e,t)>=0}function Tt(e,t){if(Je(t)||(t=it(t)),St(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(Pt(e,t))?-1:1}function Ot(e){return!e.unsigned&&St(e,gt)?gt:At(Dt(e),dt)}function At(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 Pt(e,t){return Je(t)||(t=it(t)),At(e,Ot(t))}function Mt(e,t){if(bt(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(bt(t))return e.unsigned?ft:lt;if(St(e,gt))return xt(t)?gt:lt;if(St(t,gt))return xt(e)?gt:lt;if(Ct(e))return Ct(t)?Mt(Ot(e),Ot(t)):Ot(Mt(Ot(e),t));if(Ct(t))return Ot(Mt(e,Ot(t)));if(kt(e,ut)&&kt(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,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(Je(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)),It(t,e))return ft;if(It(t,jt(e,1)))return ht;o=ft}else{if(St(e,gt))return St(t,dt)||St(t,pt)?gt:St(t,gt)?dt:St(n=Rt(Nt(zt(e,1),t),1),lt)?Ct(t)?dt:pt:o=At(n,Nt(r=Pt(e,Mt(t,n)),t));if(St(t,gt))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;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);Ct(c)||It(c,r);)c=Mt(a=tt(n-=s,e.unsigned),t);bt(a)&&(a=dt),o=At(o,a),r=Pt(r,c)}return o}function Dt(e){return nt(~e.low,~e.high,e.unsigned)}function Rt(e,t){return Je(t)&&(t=vt(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 Je(t)&&(t=vt(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(Je(t)&&(t=vt(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 Ft(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 Ut=At,Bt=Mt,Ht=Nt,Wt=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):Pt(e,Mt(Nt(e,t),t))},Vt=Ot,Gt=function(e,t){return Je(t)||(t=it(t)),nt(e.low&t.low,e.high&t.high,e.unsigned)},$t=Tt,qt=nt,Yt=vt,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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}class en{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 tn(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function nn(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function rn(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class on{static id(e){return on.idMap.has(e)||on.idMap.set(e,++on.count),on.idMap.get(e)}}function sn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function an(e){return 2654435761*e|0}function cn(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function un(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return an(e);case"string":return sn(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]=un(e[r]);return cn(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return cn(Object.values(e).map(e=>un(e)))}return an(on.id(e))}}function ln(e){return null==e?0:Kt(e)?e.GetHashCode():an(on.id(e))}function fn(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 dn(e,t){return fn(e,t,hn)}function hn(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)&&dn(e,t):e instanceof Date?t instanceof Date&&0===pn(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]||!hn(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function pn(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+nn(e),r=t.getTime()+nn(t)),n===r?0:n<r?-1:1}function mn(e,t){return e===t?0:e<t?-1:1}function wn(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,gn)}function gn(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)?wn(e,t):-1:e instanceof Date?t instanceof Date?pn(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=gn(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function vn(e,t,n){return e(t,n)>0?t:n}function yn(e){const t={};for(const n of e)t[n[0]]=n[1];return t}on.idMap=new WeakMap,on.count=0;function _n(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,a)=>t(e)(n)(r)(o)(i)(s)(a);break;case 8:n=(e,n,r,o,i,s,a,c)=>t(e)(n)(r)(o)(i)(s)(a)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function bn(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>a=>t(e,n,r,o,i,s,a);case 8:return e=>n=>r=>o=>i=>s=>a=>c=>t(e,n,r,o,i,s,a,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function Cn(e,t){return t.length>e?(...e)=>(...n)=>t.apply(void 0,e.concat(n)):t}function xn(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>a=>t.apply(void 0,n.concat([e,r,o,i,s,a]));case 7:return e=>r=>o=>i=>s=>a=>c=>t.apply(void 0,n.concat([e,r,o,i,s,a,c]));case 8:return e=>r=>o=>i=>s=>a=>c=>u=>t.apply(void 0,n.concat([e,r,o,i,s,a,c,u]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}function Sn(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=bn(e,n)),t>1&&(n=_n(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}const kn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function In(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+tn(~~(e/36e5),2)+":"+tn(n,2)}function En(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 Tn(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 On(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," ")+In(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Tn(i,t,!0);switch(t){case"D":case"d":return En(i,"first");case"T":case"t":return En(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+In(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function An(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Tn(e,t,n);switch(t){case"D":case"d":return n?En(e,"first"):e.toLocaleDateString();case"T":case"t":return n?En(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 tn(e.getFullYear(),4)+"-"+tn(e.getMonth()+1,2)+"-"+tn(e.getDate(),2)+"T"+tn(e.getHours(),2)+":"+tn(e.getMinutes(),2)+":"+tn(e.getSeconds(),2)+"."+tn(e.getMilliseconds(),3)+(t?In(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function Pn(e,t,n){return null!=e.offset?On(e,t):An(e,t)}function Mn(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Nn(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function Dn(e,t){try{return t.contents=function(e,t=!1){const n=Nn(e),r=kn.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return Mn(n.getTime(),o)}(e),!0}catch(e){return!1}}function Rn(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=Mn(c,a);return e<=99&&u.setFullYear(e,t-1,n),u}function zn(){return Rn(Fn(e=Mn(Date.now(),2)),Ln(e),jn(e),0,0,0,0,e.kind);var e}function jn(e){return 1===e.kind?e.getUTCDate():e.getDate()}function Ln(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function Fn(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}function Un(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 Bn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Hn(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}function Wn(e){let t=0,n="[";for(const r of e){if(0===t)n+=Vn(r);else{if(100===t){n+="; ...";break}n+="; "+Vn(r)}t++}return n+"]"}function Vn(e,t=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return Wn(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+Vn(n,t+1)).join("\n ")+" }":n.name}}return String(e)}function Gn(e,t){if(e===t)return 0;if(null==t)return-1;for(;null!=e.tail;){if(null==t.tail)return 1;const n=gn(e.head,t.head);if(0!==n)return n;e=e.tail,t=t.tail}return null==t.tail?0:-1}class $n{constructor(e,t){this.head=e,this.tail=t}[Symbol.iterator](){let e=this;return{next:()=>{const t=null==e?void 0:e.head,n=null==(null==e?void 0:e.tail);return e=null==e?void 0:e.tail,{done:n,value:t}}}}toJSON(){return Array.from(this)}toString(){return Wn(this)}GetHashCode(){return cn(Array.from(this).map(un))}Equals(e){return 0===Gn(this,e)}CompareTo(e){return Gn(this,e)}}class qn{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",t=!0;if(1===this.fields.length){const n=Vn(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>Vn(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>un(e));return e.splice(0,0,an(this.tag)),cn(e)}Equals(e){return this===e||!!Qt(this,e)&&(this.tag===e.tag&&dn(this.fields,e.fields))}CompareTo(e){return this===e?0:Qt(this,e)?this.tag===e.tag?wn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function Yn(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Xn(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+Vn(t)).join("\n ")+" }"}function Zn(e){return cn(Object.values(e).map(e=>un(e)))}function Jn(e,t){if(e===t)return!0;if(Qt(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!hn(e[n[r]],t[n[r]]))return!1;return!0}return!1}function Kn(e,t){if(e===t)return 0;if(Qt(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=gn(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class Qn{toJSON(){return Yn(this)}toString(){return Xn(this)}GetHashCode(){return Zn(this)}Equals(e){return Jn(this,e)}CompareTo(e){return Kn(this,e)}}class er{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 tr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,nr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,rr=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function or(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function ir(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 sr(e){return{input:e,cont:(t=e,e=>tr.test(t)?function e(t,n,r=new er(null)){return(...o)=>{let i=t;for(const e of o)i=dr(i,e,r);return tr.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function ar(e,t){let n=0;return e.replace(nr,(e,r,o,i,s,a)=>fr(t[n++],r,o,i,s,a))}function cr(e,t){return"string"==typeof t?e(t):t.cont(e)}function ur(e){return cr(e=>e,e)}function lr(e){return cr(e=>{throw new Error(e)},e)}function fr(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",We(e))switch("x"!==i.toLowerCase()&&(or(e,0)?(e=Ve(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=Ge(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?$e(e,o):$e(e);break;case"e":case"E":e=null!=o?qe(e,o):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?Pn(e):Vn(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=vr(e,r-s.length,i,o)):vr(s+e,r,i,o)}return t?t+e:e}function dr(e,t,n){return e.replace(tr,(e,r,o,i,s,a)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return fr(t,r,o,i,s,a).replace(/%/g,"%%")})}function hr(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(rr,(e,n,r,o,i,s)=>{let a=t[n];if(We(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ge(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=Ge(Ve(a,100),i)+" %";break;case"d":case"D":a=null!=i?vr(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?vr(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)=>(or(a,0)&&(a=Ve(a,-1),e="-"),a=Ge(a,null!=r?r.length-1:0),vr(a,(n||"").length-e.length+(null!=r?r.length:0),"0"))),a=e+a}}else a=a instanceof Date?Pn(a,s||o):Vn(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=vr(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 wr(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 vr(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 _r=je;class br{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return un(this.value)}Equals(e){return null!=e&&hn(this.value,e instanceof br?e.value:e)}CompareTo(e){return null==e?1:gn(this.value,e instanceof br?e.value:e)}}function Cr(e){return null==e||e instanceof br?new br(e):e}function xr(e){if(null==e)throw new Error("Option has no value");return e instanceof br?e.value:e}function Sr(e){return null==e?void 0:e}function kr(e){return null==e?[]:[xr(e)]}function Ir(e,t){return null!=e?xr(e):t}function Er(e,t){return null!=t?Cr(e(xr(t))):void 0}function Tr(e,t){return null!=t?e(xr(t)):void 0}var Or={GetHashCode(){return cn([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[He](){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)}}},Ar="[big.js] ",Pr=Ar+"Invalid ",Mr=Pr+"decimal places",Nr=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Dr(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!Nr.test(t+=""))throw Error(Pr+"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=Rr(e,jr.DP,jr.RM)}function Rr(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function zr(e,t,n,r){var o,i,s=e.constructor,a=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?Pr+"precision":Mr);for(n=r-(e=new s(e)).e,e.c.length>++r&&Rr(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!a||4==t)?"-"+i:i}Or.abs=function(){var e=new this.constructor(this);return e.s=1,e},Or.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},Or.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(Mr);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var a,c,u,l,f,d=o.slice(),h=a=o.length,p=r.length,m=r.slice(0,a),w=m.length,g=e,v=g.c=[],y=0,_=s+(g.e=n.e-e.e)+1;for(g.s=i,i=_<0?0:_,d.unshift(0);w++<a;)m.push(0);do{for(u=0;u<10;u++){if(a!=(w=m.length))l=a>w?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=w==a?o:d;w;){if(m[--w]<c[w]){for(f=w;f&&!m[--f];)m[f]=9;--m[f],m[w]+=10}m[w]-=c[w]}for(;!m[0];)m.shift()}v[y++]=l?u:++u,m[0]&&l?m[w]=r[h]||0:m=[r[h]]}while((h++<p||void 0!==m[0])&&i--);return v[0]||1==y||(v.shift(),g.e--),y>_&&Rr(g,s,t.RM,void 0!==m[0]),g},Or.eq=function(e){return!this.cmp(e)},Or.gt=function(e){return this.cmp(e)>0},Or.gte=function(e){return this.cmp(e)>-1},Or.lt=function(e){return this.cmp(e)<0},Or.lte=function(e){return this.cmp(e)<1},Or.minus=Or.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,e):new i(u[0]?s:0);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},Or.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)))},Or.plus=Or.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,a=r.c,c=e.e,u=e.c;if(!a[0]||!u[0])return u[0]?e:new n(a[0]?r:0*o);if(a=a.slice(),o=s-c){for(o>0?(c=s,t=u):(o=-o,t=a),t.reverse();o--;)t.push(0);t.reverse()}for(a.length-u.length<0&&(t=u,u=a,a=t),o=u.length,i=0;o;a[o]%=10)i=(a[--o]=a[o]+u[o]+i)/10|0;for(i&&(a.unshift(i),++c),o=a.length;0===a[--o];)a.pop();return e.c=a,e.e=c,e},Or.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(Pr+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Or.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Mr);return Rr(new n(this),e,void 0===t?n.RM:t)},Or.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(Ar+"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?"1e":(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 Rr(e,r.DP-=4,r.RM)},Or.times=Or.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 new n(0*e.s);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]=(t[u]+a)%10}for(a?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Or.toExponential=function(e){return zr(this,1,e,e)},Or.toFixed=function(e){return zr(this,2,e,this.e+e)},Or.toPrecision=function(e){return zr(this,3,e,e-1)},Or.toString=function(){return zr(this)},Or.valueOf=Or.toJSON=function(){return zr(this,4)};var jr=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=Rr(e,28,0)).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)):Dr(r,n),r.constructor=t}return t.prototype=Or,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),Lr=jr;new Lr(0),new Lr(1),new Lr(-1),new Lr("79228162514264337593543950335"),new Lr("-79228162514264337593543950335");class Fr{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 Ur(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Fr(e[Symbol.iterator]())}function Br(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 Hr{constructor(e){this.f=e}[Symbol.iterator](){return new Hr(this.f)}next(){var e;return this.iter=null!==(e=this.iter)&&void 0!==e?e:this.f(),this.iter.next()}toString(){return"seq ["+Array.from(this).join("; ")+"]"}}function Wr(e){return new Hr(e)}function Vr(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Gr(e,t){return Yr(()=>{let n=!1;let r=[e[Symbol.iterator](),void 0];return co(()=>{var e,o;let i;if(!n){if(i=null===(e=r[0])||void 0===e?void 0:e.next(),null!=i&&!i.done)return[i.value,r];n=!0,r=[void 0,t[Symbol.iterator]()]}return i=null===(o=r[1])||void 0===o?void 0:o.next(),null==i||i.done?void 0:[i.value,r]},r)})}function $r(e){return Yr(()=>{const t=e[Symbol.iterator]();let n;return co(e=>{let r=!1;for(;!r;)if(null==e){const n=t.next();n.done?r=!0:e=n.value[Symbol.iterator]()}else{const t=e.next();t.done?e=void 0:(n=t.value,r=!0)}return null!=e?[n,e]:void 0},void 0)})}function qr(e,t){return $r(no(e,t))}function Yr(e){return Wr(()=>e()[Symbol.iterator]())}function Xr(){return Yr(()=>[])}function Zr(e){return Yr(()=>[e])}function Jr(e,t){let n;for(const r=t[Symbol.iterator]();n=r.next(),!n.done;)if(e(n.value))return!0;return!1}function Kr(e,t){return Jr(t=>hn(t,e),t)}function Qr(e,t,n){if(Vr(n))return n.reduce(e,t);{let r;for(let o=0,i=n[Symbol.iterator]();r=i.next(),!r.done;o++)t=e(t,r.value,o);return t}}function eo(e,t){Qr((t,n)=>{e(n)},void 0,t)}function to(e,t){Qr((t,n,r)=>{e(null!=r?r:0,n)},void 0,t)}function no(e,t){return Yr(()=>co(t=>{const n=t.next();return n.done?void 0:[e(n.value),t]},t[Symbol.iterator]()))}function ro(e,t){return Yr(()=>{let n=0;return co(t=>{const r=t.next();return r.done?void 0:[e(n++,r.value),t]},t[Symbol.iterator]())})}function oo(e,t,n){if(0===t)throw new Error("Step cannot be 0");return Yr(()=>co(e=>t>0&&e<=n||t<0&&e>=n?[e,e+t]:void 0,e))}function io(e,t){return Wr(()=>{const n=t[Symbol.iterator]();for(let t=1;t<=e;t++)if(n.next().done)throw new Error("Seq has not enough elements");return n})}function so(e,t,n){return Qr((t,r)=>n.Add(t,e(r)),n.GetZero(),t)}function ao(e,t,n=!1){return Yr(()=>{const r=t[Symbol.iterator]();return co(t=>{if(t<e){const e=r.next();if(!e.done)return[e.value,t+1];if(!n)throw new Error("Seq has not enough elements")}},0)})}function co(e,t){return Wr(()=>{let n=t;return{next(){const t=e(n);if(null!=t){const e=xr(t);if(null!=e)return n=e[1],{done:!1,value:e[0]}}return{done:!0,value:void 0}}}})}class uo{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class lo{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 Io(this)}GetHashCode(){return ho(this)}Equals(e){return po(this,e)}}function fo(e){return null!=e.generics?e.generics:[]}function ho(e){return cn([sn(e.fullname),...fo(e).map(ho)])}function po(e,t){return""===e.fullname?""===t.fullname&&fn(jo(e),jo(t),([e,t],[n,r])=>e===n&&po(t,r)):e.fullname===t.fullname&&fn(fo(e),fo(t),po)}function mo(e,t,n,r){return new lo(e,t,n,r)}function wo(e,t,n,r){return new lo(e,t,n,void 0,r)}function go(e,t,n,r){const o=new lo(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new uo(o,n,e[n],t))});return o}function vo(...e){return new lo("System.Tuple`"+e.length,e)}function yo(e){return new lo("Microsoft.FSharp.Core.FSharpOption`1",[e])}function _o(e){return new lo("Microsoft.FSharp.Collections.FSharpList`1",[e])}const bo=new lo("System.Object"),Co=(new lo("Microsoft.FSharp.Core.Unit"),new lo("System.Char"),new lo("System.String")),xo=(new lo("System.Boolean"),new lo("System.SByte"),new lo("System.Byte"),new lo("System.Int16"),new lo("System.UInt16"),new lo("System.Int32")),So=(new lo("System.UInt32"),new lo("System.Single"),new lo("System.Double"));new lo("System.Decimal");function ko(e){if(Array.isArray(e))return e[0];if(e instanceof uo)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function Io(e){const t=null==e.generics||Eo(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>Io(e)).join(",")+"]":e.fullname}function Eo(e){return e.fullname.endsWith("[]")}function To(e){var t;return Eo(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}function Oo(e){return null!=e.generics&&e.generics.length>0}function Ao(e){return null!=e.enumCases&&e.enumCases.length>0}function Po(e){return null==e.generics?e:new lo(e.fullname,e.generics.map(()=>bo))}function Mo(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function No(e){if(Ao(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function Do(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 Ro(e,t){const n=parseInt(t,10);return Do(e,isNaN(n)?t:n)[1]}function zo(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function jo(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function Lo(e){if(Bo(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}function Fo(e){return e instanceof lo?null!=e.cases:e instanceof qn}function Uo(e){return e instanceof lo?null!=e.fields:e instanceof Qn}function Bo(e){return e.fullname.startsWith("System.Tuple")&&!Eo(e)}function Ho(e){return null==e.fields?[]:e.fields}function Wo(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):{}}const Vo=0,Go=1,$o=2,qo=3,Yo=4;function Xo(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 Zo(e,t=Vo){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 Go:return e.charAt(0).toLowerCase()+e.slice(1);case $o:return Xo(e,"_");case qo:return Xo(e,"_").toUpperCase();case Yo:return Xo(e,"-");case Vo:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Vo;if(null==t&&o(t),t instanceof qn){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 Jo(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function Ko(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Qo{constructor(e,t){const n=new er(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-1"]=1;const r=Ur(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();oi(n.contents,e[0],e[1])}}finally{r.Dispose()}}get[Symbol.toStringTag](){return"Dictionary"}"System.Collections.IEnumerable.GetEnumerator"(){return Ur(this)}GetEnumerator(){return Ur($r(this.hashMap.values()))}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){oi(this,e[0],e[1])}"System.Collections.Generic.ICollection`1.Clear"(){ni(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){const t=ti(this,e[0]);let n;switch(n=null!=t&&hn(t[1],e[1])?0:1,n){case 0:return!0;case 1:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){to((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ri(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){const t=this,n=ti(t,e[0]);return null!=n&&(hn(n[1],e[1])&&ii(t,e[0]),!0)}get size(){return 0|ri(this)}clear(){ni(this)}delete(e){return ii(this,e)}entries(){return no(e=>[e[0],e[1]],this)}get(e){return function(e,t){const n=ti(e,t);if(null!=n)return n[1];throw new Error("The item was not found in collection")}(this,e)}has(e){return function(e,t){const n=ei(e,t);let r;r=n[0]&&n[2]>-1?0:1;switch(r){case 0:return!0;case 1:return!1}}(this,e)}keys(){return no(e=>e[0],this)}set(e,t){return function(e,t,n){const r=ei(e,t);let o;o=r[0]&&r[2]>-1?0:1;switch(o){case 0:Ko(e.hashMap,r[1])[r[2]]=[t,n];break;case 1:if(r[0]){Ko(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}(this,e,t),this}values(){return no(e=>e[1],this)}forEach(e,t){const n=this;eo(t=>{e(t[1],t[0],n)},n)}}function ei(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[Jo(e.hashMap,n,new er(()=>o,e=>{o=e})),o],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n[0]))]:[!1,n,-1]}function ti(e,t){const n=ei(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ko(e.hashMap,n[1])[n[2]];case 1:return}}function ni(e){e.hashMap.clear()}function ri(e){return so(e=>e.length,e.hashMap.values(),{GetZero:()=>0,Add:(e,t)=>e+t})}function oi(e,t,n){const r=ei(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]){Ko(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}}function ii(e,t){const n=ei(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ko(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}Symbol.toStringTag,Symbol.iterator;function si(e,t){return"function"==typeof e?new e(t):new Array(t)}function ai(){throw new Error("Arrays had different lengths")}function ci(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function ui(e,t,n){const r=0|t.length,o=si(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function li(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=si(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function fi(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function di(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;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&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>gn(e,t),t,n)}function hi(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&ai();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)}function pi(){return new $n}function mi(e){return new $n(e,pi())}function wi(e,t){return new $n(e,t)}function gi(e){if(null!=e.tail)return e.tail;throw new Error("List was empty")}function vi(e,t,n){for(;;){const r=e,o=t,i=n;if(null==i.tail)return o;e=r,t=r(o,i.head),n=i.tail}}function yi(e){return vi((e,t)=>new $n(t,e),new $n,e)}function _i(e){return yi(Qr((e,t)=>new $n(t,e),new $n,e))}function bi(e){return vi((e,t)=>e+1,0,e)}function Ci(e,t){return vi((e,t)=>new $n(t,e),t,yi(e))}function xi(e,t){return yi(vi((t,n)=>new $n(e(n),t),new $n,t))}function Si(e,t){return vi((t,n)=>{e(n)},void 0,t)}function ki(e,t){let n=t;for(let t=function(e){if(Jt(e))return e.length;{let t=0;for(const n of e)t++;return t}}(e)-1;t>=0;t--)n=new $n(e[t],n);return n}function Ii(e){return ki(e,new $n)}function Ei(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i.tail){const s=r(o,i.head);if(null==s){e=r,t=o+1,n=i.tail;continue e}return s}return}}(e,0,t)}function Ti(e,t){return Ei((t,n)=>e(n)?Cr(n):void 0,t)}function Oi(e,t){return yi(vi((t,n)=>e(n)?new $n(n,t):t,new $n,t))}function Ai(e,t,n){return(t=>{for(;;){const r=t;if(null==r.tail)return!1;if(n.Equals(e,r.head))return!0;t=r.tail}})(t)}function Pi(e,t){for(;;){const n=e,r=t;if(null==r.tail)return!1;if(n(r.head))return!0;e=n,t=r.tail}}const Mi=e=>{J(()=>{const t=e();return()=>{t.Dispose()}})},Ni=(e,t)=>{J(()=>{const t=e();return()=>{t.Dispose()}},t)},Di=e=>{K(()=>{const t=e();return()=>{t.Dispose()}})};function Ri(e,t,n,r){const o=_r.memo(e,_n(2,Ir(bn(2,n),null)));return eo(t=>{e.displayName=t},kr(t)),e=>_r.createElement(o,zi(r,e))}function zi(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function ji(e){return{Dispose(){e()}}}function Li(e){Mi(e)}function Fi(e,t){Ni(e,t)}function Ui(e){Hi(e,[])}function Bi(e){Fi(e,[])}function Hi(e,t){Ni(t=>(e(),ji(()=>{})),t)}function Wi(e,t){return _r.useCallback(e,Ir(t,[]))}function Vi(e){return _r.useRef(e)}function Gi(e,t){return _r.useMemo(e,Ir(t,[]))}function $i(e){const t=Vi(e),n=Wi(e=>t.current(e),[]);var r;return r=()=>{t.current=e},Di(e=>(r(),ji(()=>{}))),n}function qi(e){return _r.useState(e)}class Yi{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 Xi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Xi.prototype)}}class Zi{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Zi.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Ji(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Xi);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 Ki(e,t){return Ji(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 Qi(e){return Ji(t=>t.onSuccess(e))}const es=new class{Bind(e,t){return Ki(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Ji(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 Qi(e)}ReturnFrom(e){return e}TryFinally(e,t){return Ji(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 Ji(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 Ji(e=>e.onSuccess(void 0))}};class ts extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function ns(e,t){return 0===t.tag?new ts(0,e(t.fields[0])):new ts(1,t.fields[0])}function rs(e,t){return 0===t.tag?e(t.fields[0]):new ts(1,t.fields[0])}class os extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function is(e){}function ss(e){const t=new Yi("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function as(e){e.cancel()}function cs(e){return null!=e&&e.isCancelled}const us=new Yi;function ls(e){return Ji(t=>{e({onSuccess:e=>t.onSuccess(function(e){return new os(0,e)}(e)),onError:e=>t.onSuccess(new os(1,e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function fs(e){return Ji(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ds(e){return Ji(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Xi)})})}function hs(e,t){return function(e,t){return ps(e,t)}(e,t)}function ps(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Zi;e({onSuccess:t||is,onError:n||is,onCancel:r||is,cancelToken:o||us,trampoline:i})}class ms{constructor(){}}function ws(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(hn(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 gs=new ms;class vs extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class ys{constructor(e){this.state=new vs(0,ci(new Array(vn((e,t)=>mn(e,t),e,10)),0,vn((e,t)=>mn(e,t),e,10),null),0)}}function _s(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 vs(0,o,n):new vs(1,o,n,i),Cr(o[r])}}function bs(e,t,n){const r=Vi(e[0]),o=Vi(new ys(10));const i=qi(e[0]);let s;const a=Vi(ss()),c=Vi(a.current);Bi(()=>ji(()=>{as(a.current)})),s=c;const u=()=>{setTimeout(()=>{let e;e=s.current,cs(e)||i[1](r.current)},0)},l=e=>{var n;(n=ws(0,()=>{let n=Cr(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(gs,()=>{let e;return null!=n&&(e=s.current,!cs(e))},ws(0,()=>{const e=t(xr(n),r.current);return Si(e=>{e(l)},e[1]),n=_s(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=$i(l);var d;return Fi(()=>ji(()=>{let e;var t;eo(e=>{e.Dispose()},kr((e=r.current,null!=(t=e)&&"function"==typeof t.Dispose?e:void 0)))}),n),Hi(()=>{r.current=e[0],u(),Si(e=>{e(f)},e[1])},n),d=()=>{eo(f,kr(_s(o.current)))},Mi(e=>(d(),ji(()=>{}))),[i[0],f]}class Cs extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}class xs extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}class Ss extends Qn{constructor(e){super(),this.AuthCode=e}}class ks extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}class Is extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.MaskedEmail=t}}function Es(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationContextDto",[],Is,()=>[["CssOverrides",_o(Co)],["MaskedEmail",Co]])}function Ts(e){return new Cs(e.CssOverrides,e.MaskedEmail)}class Os extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Activated","InviteCodeInvalid","InviteExpired","InviteLocked","AwaitingConfirmation"]}}function As(){return go("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ActivationOutcomeDto",[],Os,()=>[[["Item",Es()]],[],[],[],[["Item",Es()]]])}class Ps extends Qn{constructor(e){super(),this.AuthCode=e}}class Ms extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CodeMatch","CodeMismatch","CodeExpired","InviteLocked","NoSecondFactorCodeIssued"]}}function Ns(){return go("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.ValidationOutcomeDto",[],Ms,()=>[[["Item",wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.ApiDto.Backend.Read.CodeMatchContextDto",[],Ps,()=>[["AuthCode",Co]])]],[],[],[],[]])}function Ds(e){switch(e.tag){case 1:return new ks(1);case 2:return new ks(2);case 3:return new ks(3);case 4:return new ks(4);default:return new ks(0,(t=e.fields[0],new Ss(t.AuthCode)))}var t}function Rs(){return e=(e,t)=>gn(e,t),{Compare:(t,n)=>e(t,n)};var e}function zs(){return Rs()}class js{constructor(e,t){this.k=e,this.v=t}}function Ls(e,t){return new js(e,t)}function Fs(e){return e.k}function Us(e){return e.v}class Bs extends js{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function Hs(e,t,n,r,o){return new Bs(e,t,n,r,o)}function Ws(e){return e.left}function Vs(e){return e.right}function Gs(e){return e.h}function $s(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Bs){t=e(r+1,Ws(i)),n=Vs(i);continue e}return r+1|0}return 0|r}}(0,e)}function qs(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof Bs?Gs(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Bs?Gs(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?Ls(t,n):Hs(t,n,e,r,s+1)}function Ys(e,t,n,r){let o,i,s,a,c;if(null!=e){const t=e;c=t instanceof Bs?Gs(t):1}else c=0;let u;if(null!=r){const e=r;u=e instanceof Bs?Gs(e):1}else u=0;if(u>c+2){const s=xr(r);if(s instanceof Bs){if(o=Ws(s),(null!=o?(i=o,i instanceof Bs?Gs(i):1):0)>c+1){const r=xr(Ws(s));if(r instanceof Bs)return qs(qs(e,t,n,Ws(r)),Fs(r),Us(r),qs(Vs(r),Fs(s),Us(s),Vs(s)));throw new Error("internal error: Map.rebalance")}return qs(qs(e,t,n,Ws(s)),Fs(s),Us(s),Vs(s))}throw new Error("internal error: Map.rebalance")}if(c>u+2){const o=xr(e);if(o instanceof Bs){if(s=Vs(o),(null!=s?(a=s,a instanceof Bs?Gs(a):1):0)>u+1){const e=xr(Vs(o));if(e instanceof Bs)return qs(qs(Ws(o),Fs(o),Us(o),Ws(e)),Fs(e),Us(e),qs(Vs(e),t,n,r));throw new Error("internal error: Map.rebalance")}return qs(Ws(o),Fs(o),Us(o),qs(Vs(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return qs(e,t,n,r)}function Xs(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,Fs(o));return o instanceof Bs?i<0?Ys(Xs(e,t,n,Ws(o)),Fs(o),Us(o),Vs(o)):0===i?Hs(t,n,Ws(o),Vs(o),Gs(o)):Ys(Ws(o),Fs(o),Us(o),Xs(e,t,n,Vs(o))):i<0?Hs(t,n,void 0,r,2):0===i?Ls(t,n):Hs(t,n,r,void 0,2)}return Ls(t,n)}function Zs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Fs(s));if(0===a)return Cr(Us(s));if(s instanceof Bs){e=r,t=o,n=a<0?Ws(s):Vs(s);continue e}return}return}}function Js(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof Bs){e(r,Ws(i)),r(Fs(i),Us(i)),t=r,n=Vs(i);continue e}r(Fs(i),Us(i))}break}}(e,t)}function Ks(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof Bs){const n=e(t,Ws(r)),o=t(Fs(r),Us(r)),i=e(t,Vs(r));return Hs(Fs(r),o,n,i,Gs(r))}return Ls(Fs(r),t(Fs(r),Us(r)))}}(e,t)}function Qs(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Xs(e,o[0],o[1],n)}return n}function ea(e,t){if(Jt(t))return Qs(e,t);if(t instanceof $n)return function(e,t){return vi((t,n)=>Xs(e,n[0],n[1],t),void 0,t)}(e,t);{const n=Ur(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=Xs(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class ta extends Qn{constructor(e,t){super(),this.stack=e,this.started=t}}function na(e){e:for(;;){const t=e;if(null==t.tail)return new $n;{const n=t.tail,r=t.head;if(null!=r){const o=r;if(o instanceof Bs){e=new $n(Ws(o),new $n(Ls(Fs(o),Us(o)),new $n(Vs(o),n)));continue e}return t}e=n}}}function ra(e){return new ta(na(new $n(e,new $n)),!1)}function oa(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){const e=t.head;if(e instanceof Bs)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Fs(e),Us(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration already finished")}()}return function(){throw new Error("enumeration not started")}()}function ia(e){let t=ra(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>oa(t),"System.Collections.IEnumerator.get_Current":()=>oa(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){if(t.head instanceof Bs)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=na(t.tail),!(null==e.stack.tail)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return!1}return e.started=!0,!(null==e.stack.tail)}(t),"System.Collections.IEnumerator.Reset"(){t=ra(e)},Dispose(){}}}class sa{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=Ur(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,un(e[0])),n=t(n,un(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof sa))return!1;{const t=Ur(this);try{const n=Ur(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!(!hn(r[0],o[0])||!hn(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+gr("; ",no(e=>hr("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return ia(this.tree)}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ia(this.tree)}CompareTo(e){const t=this;if(e instanceof sa)return 0|function(e,t,n){if(t===n)return 0;let r,o,i=0;for(const s=t[Symbol.iterator](),a=n[Symbol.iterator]();(r=s.next(),o=a.next(),!r.done&&!o.done)&&(i=e(r.value,o.value),0===i););return 0!==i?i:r.done&&!o.done?-1:!r.done&&o.done?1:0}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:gn(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!!fa(this,e[0])&&hn(ua(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=0|n;Js((e,n)=>{t[r]=[e,n],r+=1},e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|la(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|la(this)}get size(){return 0|la(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return no(e=>[e[0],e[1]],this)}get(e){return ua(this,e)}has(e){return fa(this,e)}keys(){return no(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return no(e=>e[1],this)}forEach(e,t){const n=this;eo(t=>{e(t[1],t[0],n)},n)}}function aa(e,t){return new sa(e,t)}function ca(e){const t=zs();return aa(t,ea(t,e))}function ua(e,t){return function(e,t,n){const r=Zs(e,t,n);if(null==r)throw new Error;return xr(r)}(e.comparer,t,e.tree)}function la(e){return $s(e.tree)}function fa(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,Fs(s));if(s instanceof Bs){if(a<0){e=r,t=o,n=Ws(s);continue e}if(0===a)return!0;e=r,t=o,n=Vs(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function da(e,t,n){return function(e,t,n){return aa(e.comparer,Xs(e.comparer,t,n,e.tree))}(n,e,t)}function ha(e,t){return function(e,t){return Zs(e.comparer,t,e.tree)}(t,e)}function pa(e,t){return r=e,aa((n=t).comparer,Ks(r,n.tree));var n,r}function ma(){return sa.empty}sa.empty=aa(zs(),void 0);class wa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ga(e,t){switch(t.tag){case 1:return new wa(1);case 3:return new wa(3,t.fields[0]);case 2:try{return new wa(2,e(t.fields[0]))}catch(e){return new wa(3,e)}default:return new wa(0)}}function va(e,t){const n=qi(new wa(0)),r=n[1];let o;const i=Vi(ss()),s=Vi(i.current);Bi(()=>ji(()=>{as(i.current)})),o=s;const a=es.Delay(()=>es.TryWith(es.Delay(()=>(r(new wa(1)),es.Bind(e,e=>(r(new wa(2,e)),es.Zero())))),e=>(r(new wa(3,e)),es.Zero())));return Hi(()=>{hs(a,o.current)},t),n[0]}function ya(e,t){const n=Vi(ss());return Bi(()=>ji(()=>{as(n.current)})),$i(r=>{cs(n.current)||hs(es.Delay(()=>es.TryWith(es.Delay(()=>(t(new wa(1)),es.Bind(e(r),e=>(t(new wa(2,e)),es.Zero())))),e=>(t(new wa(3,e)),es.Zero()))),n.current)})}function _a(e){return e<0?Math.ceil(e):Math.floor(e)}function ba(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Ca(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 Ca(e){return Xt(Ht(e,1e4))}function xa(e){return ba(0,e,0)}function Sa(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 _a(e/864e5)}(e)),o=Math.abs(function(e){return _a(e%864e5/36e5)}(e)),i=Math.abs(function(e){return _a(e%36e5/6e4)}(e)),s=Math.abs(function(e){return _a(e%6e4/1e3)}(e)),a=Math.abs(function(e){return _a(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:tn(o,2)}:${tn(i,2)}:${tn(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+tn(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 ka(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 ba(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*ba(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}function Ia(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),r.exec(e)}(Un(e),t);return null!=n?gi(_i(Yr(()=>{return no(e=>e||"",(e=()=>Ur(n),t=e=>e["System.Collections.IEnumerator.MoveNext"](),r=e=>e["System.Collections.IEnumerator.get_Current"](),Yr(()=>co(e=>t(e)?[r(e),e]:void 0,e()))));var e,t,r}))):void 0}function Ea(e,t){return mr(t)?new ts(1,ur(sr("%s cannot be null or empty"))(e)):new ts(0,t)}function Ta(e){const t=function(e){let t;const n=Ia(".*?@(.*)",e);switch(t=null!=n&&null!=n.tail&&null==n.tail.tail?0:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new ts(0,t)}return new ts(1,"Email is not in the correct format")}class Oa{constructor(e,t=1){if("string"==typeof e&&"number"==typeof t)if(1===t)try{this.url=new URL(e),this.kind=t}catch(e){throw new Error("Invalid URI: The format of the URI could not be determined.")}else if(2===t){let n=!1;try{new URL(e);n=!1}catch(e){n=!0}if(!n)throw new Error("uri is not a relative path");this.url=e,this.kind=t}else this.url=e,this.kind=t;else if(e instanceof Oa&&"string"==typeof t){if(1!==e.kind)throw new Error("base uri should has Absolute kind");this.url=new URL(t,e.url),this.kind=1}else if(e instanceof Oa&&t instanceof Oa){if(1!==e.kind)throw new Error("base uri should has Absolute kind");if(2!==t.kind)throw new Error("relative uri should has Relative kind");this.url=new URL(t.url,e.url),this.kind=1}}toString(){return decodeURIComponent(this.parseUrl().toString())}parseUrl(){if(1===this.kind)return this.url;if(0===this.kind)return new URL(this.url);throw new Error("relative url can not parse as a URI")}get isAbsoluteUri(){try{return this.parseUrl(),!0}catch(e){return!1}}get absoluteUri(){if(1===this.kind)return this.url.href;if(0===this.kind)return this.url;throw new Error("This operation is not supported for a relative URI.")}get scheme(){const e=this.parseUrl().protocol;return e.slice(0,e.length-1)}get host(){return this.parseUrl().host}get absolutePath(){return this.parseUrl().pathname}get query(){return this.parseUrl().search}get pathAndQuery(){const e=this.parseUrl();return e.pathname+e.search}get fragment(){return this.parseUrl().hash}}var Aa=Oa;class Pa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SecondFactorCode"]}}function Ma(e){return!mr(e)&&function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Un(t,n),r.test(e)}(e,"^(\\d{6})$")}function Na(e){return Ma(e)?new ts(0,new Pa(0,e)):new ts(1,"Invalid second factor code format.")}class Da extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}xa(5);class Ra extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InviteCode"]}}function za(e){return function(e){return!wr(e)}(e)?new ts(0,new Ra(0,e)):new ts(1,"Invalid invite code format.")}function ja(e){return e.fields[0]}class La extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}class Fa extends Qn{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}class Ua extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Logo"]}}class Ba extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompanyName"]}}class Ha extends Qn{constructor(e,t){super(),this.Email=e,this.Phone=t}}class Wa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class Va extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Phone"]}}const Ga=e=>ns(e=>new Wa(0,e),rs(e=>Ta(e),Ea("Email",e)));const $a=e=>ns(e=>new Va(0,e),Ea("Phone",e));function qa(e){return function(e){try{const t=new Aa(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch(e){return[!1,void 0]}}(e)[0]?new ts(0,new Ua(0,e)):new ts(1,"Invalid logo url.")}ba(10,0,0,0);xa(30);class Ya extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initializing","WaitingForInput","Failed"]}}class Xa extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["InitInvite","ActivateInvite","ValidateMfa","ProcessInput","ShowValidation"]}}class Za extends Qn{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 Ja{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class Ka{constructor(e,t){this._subscriber=e,this.delegates=t||new Array}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e){eo(t=>t(e),this.delegates)}AddHandler(e){null==this._dotnetDelegates&&(this._dotnetDelegates=new Map);const t=t=>e(null,t);this._dotnetDelegates.set(e,t),this._addHandler(t)}RemoveHandler(e){if(null!=this._dotnetDelegates){const t=this._dotnetDelegates.get(e);null!=t&&(this._dotnetDelegates.delete(e),this._removeHandler(t))}}Subscribe(e){return"function"==typeof e?this._subscribeFromCallback(e):this._subscribeFromObserver(e)}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}_subscribeFromObserver(e){if(this._subscriber)return this._subscriber(e);const t=e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_subscribeFromCallback(e){return this._addHandler(e),{Dispose:()=>{this._removeHandler(e)}}}}var Qa=Ka;var ec=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 Qa}get 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 tc(e,t){console.error(Cr(e),t)}function nc(e,t){let n,r=new ec(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Ja(e))}(t,n.Elapsed),n.Enabled=!0,n.Start()}function rc(e,t,n){Si(n=>{try{n(t)}catch(t){e(t)}},n)}function oc(){return pi()}function ic(e,t){return xi(t=>n=>{t(t=>{n(e(t))})},t)}function sc(e){return t=e,yi(Qr((e,t)=>vi((e,t)=>new $n(t,e),e,t),new $n,t));var t}function ac(e){return mi(t=>{t(e)})}function cc(e,t,n,r,o){return mi(i=>{e(es.Delay(()=>es.Bind(ls(t(n)),e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),es.Zero()})))})}function uc(e){nc(0,t=>{hs(e)})}const lc=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function fc(e){return Er(e=>e.passive&&!lc?{capture:e.capture,once:e.once,passive:!1}:e,e)}function dc(e){return Tr(e=>e.capture?{capture:!0}:void 0,e)}const hc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,pc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,mc=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function wc(e){function t(e){return e.replace(pc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(hc.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Bn(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(pc.test(n))return t(n);if(mc.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function gc(e,t){try{return t.contents=wc(e),!0}catch(e){return!1}}function vc(e,t){return 0===t.indexOf(e)?t:void 0}function yc(e,t){return pr(t,e)?t:void 0}function _c(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=vc("/",e),null!=t?(n=t,"#"+n):(r=vc("#/",e),null!=r?(o=r,o):(i=vc("#",e),null!=i?(s=i,"#/"+yr(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=vc("/",e),null!=t?(n=t,n):"/"+e}}(t)(gr("/",xi(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function bc(e,t,n){1===t?history.pushState(void 0,"",_c(e,n)):history.replaceState(void 0,"",_c(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Cc(e,t){return n=e=>{if(wr(e))return pi();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Bn(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return pi();if(null!=vc("?",t))return mi(t);{const e=t.split("?");if(di(0,e,null)||1!==e.length){if(di(0,e,null)||2!==e.length)return pi();if(""===e[1]){const t=e[0];return mi(decodeURIComponent(t))}{const t=e[0],n=e[1];return Ii([decodeURIComponent(t),"?"+n])}}{const t=e[0];return mi(decodeURIComponent(t))}}}},r=Ii((null!=vc("#",e)?yr(e,1,e.length-1):1!==t||null==yc("#",e)&&null==yc("#/",e)?e:"").split("/")),_i(qr(n,r));var n,r}const xc=Ri(e=>{const t=$i(t=>{const n=Ir(e.onUrlChanged,e=>{});return function(e,t,n){return t(Cc(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Ir(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=Gi(()=>fc(r),[r]),i=Gi(()=>dc(r),[r]),s=Gi(()=>e=>{n(e)},[n]);Li($i(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),ji(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}else{const e="popstate",n=t,r=void 0,o=Gi(()=>fc(r),[r]),i=Gi(()=>dc(r),[r]),s=Gi(()=>e=>{n(e)},[n]);Li($i(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),ji(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=Gi(()=>fc(void 0),[void 0]),i=Gi(()=>dc(void 0),[void 0]),s=Gi(()=>e=>{r(e)},[r]);Li($i(()=>(null==o?window.addEventListener(n,s):window.addEventListener(n,s,o),ji(()=>{null==i?window.removeEventListener(n,s):window.removeEventListener(n,s,i)}))));const a=e.application;return null==a?null:a},void 0,kc,Sc);var Sc,kc;function Ic(e){try{const t=new URLSearchParams(e);return _i(Yr(()=>no(e=>[e[0],e[1]],t.entries())))}catch(e){return}}const Ec=document.getElementById("workflows-app"),Tc=Ec.getAttribute("data-identity-url"),Oc=Ec.getAttribute("data-backend-url"),Ac=Ii(["workflows","app"]),Pc=Ii(["workflows","embed","v1.0","app"]);class Mc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Embedded","Standalone","Unknown"]}}function Nc(e){switch(e.tag){case 0:return _c(Pc,2);case 1:return _c(Ac,2);default:return _c(Pc,2)}}class Dc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Autodev","Test","Prod","Sandbox"]}}const Rc=(()=>{const e=Ii(new Aa(Oc).host.split("."));let t;switch(t=null!=e.tail?"autodev-partner"===e.head?0:"test-partner"===e.head?1:"partner"===e.head?2:"sandbox-partner"===e.head?3:4:4,t){case 0:return new ts(0,new Dc(0));case 1:return new ts(0,new Dc(1));case 2:return new ts(0,new Dc(2));case 3:return new ts(0,new Dc(3));case 4:return new ts(1,"Invalid environment")}})();function zc(e,t,n){return 1===n.tag?t(n.fields[0]):e(n.fields[0])}function jc(e,t){return null==t?new ts(1,e):new ts(0,xr(t))}function Lc(e,t){return 1===t.tag?e:t.fields[0]}class Fc{constructor(){}}function Uc(e,t){return new ts(0,t)}function Bc(e,t){return t}function Hc(e,t,n){return ns(n,t)}new Fc;class Wc{constructor(){}}function Vc(e,t){return es.Return(Uc(0,t))}function Gc(e,t){return es.Delay(t)}new Wc;class $c extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class qc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Yc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Xc extends Qn{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 Zc extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Jc extends Qn{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}function Kc(e){return new qc(0,"Content-Type",e)}const Qc=new Xc("",new $c(0),pi(),!1,void 0,void 0,new Yc(0));new Jc(0,"","",ma(),new Zc(0,""));function eu(e,t){return mr(t)?[t]:function(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>Bn(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}(t,[e],null,0)}function tu(e){return new Xc(e,Qc.method,Qc.headers,Qc.withCredentials,Qc.overridenMimeType,Qc.overridenResponseType,Qc.content)}function nu(e,t){return new Xc(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function ru(e,t){return new Xc(t.url,t.method,Ci(t.headers,mi(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function ou(e,t){return new Xc(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function iu(e){return fs(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;var c,u;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 Zc(0,n.responseText):new Zc("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Jc(o,e,i,function(e){const t=zs();return aa(t,Qs(t,e))}((c=e=>{const t=Ii(eu(":",e));return null!=t.tail?[t.head.toLocaleLowerCase(),gr(":",t.tail).trim()]:void 0},ui(e=>xr(c(e)),eu("\r\n",n.getAllResponseHeaders()).filter(e=>null!=c(e)),u))),s)))};const r=Ur(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(Cr(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(Cr(s[1].fields[0])):n.send(Cr(void 0))})}class su extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class au extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class cu{constructor(){this.cache=new Map([])}}function uu(){return new cu}uu(),uu();function lu(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function fu(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Un(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=Hn(e,s),c=Hn.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)}(lu(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return lu(t)}}class du extends Qn{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function hu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*hu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}qt(2013265921,0,!1),qt(2013265921,0,!0);li(28,e=>hu(2,e),Int32Array);function pu(e){return e.bound}function mu(e,t){return e.digits[t]}function wu(e,t){return Zt(mu(e,t),!1,2)}function gu(e,t,n){e.digits[t]=n}function vu(e,t){for(;;){const n=e,r=t;if(0===r)return qt(1,0,!1);if(r%2!=0)return Bt(n,vu(Bt(n,n),~~(r/2)));e=Bt(n,n),t=~~(r/2)}}function yu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*yu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const _u=qt(16777216,0,!1),bu=qt(16777215,0,!1);qt(16777215,0,!0);function Cu(e){return new du(e,new Int32Array(e))}function xu(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=t,e}function Su(e){const t=0|(e<0?0:e);if(t<16777216){const e=Cu(1);return e.digits[0]=t,xu(e)}{const e=Cu(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/yu(16777216,n))%16777216;return xu(e)}}function ku(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;return 0|t}}const Iu=Su(1),Eu=Su(0);function Tu(e){return e.bound-1}function Ou(e){return 0===e.bound}function Au(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 Pu(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 Mu(e,t){return-1===Pu(e,t)}function Nu(e,t,n){for(;;){const r=e,o=t,i=n;if(!($t(o,qt(0,0,!1))>0))break;{const s=Ut(wu(r,i),o);gu(r,i,~~Yt(Gt(s,bu))),e=r,t=Ht(s,_u),n=i+1}}}function Du(e,t){const n=0|pu(e),r=Cu(n+1),o=Zt(t,!1,2);let i=qt(0,0,!1);for(let t=0;t<=n-1;t++){const n=Ut(Ut(i,wu(r,t)),Bt(wu(e,t),o));gu(r,t,~~Yt(Gt(n,bu))),i=Ht(n,_u)}return Nu(r,i,n),xu(r)}function Ru(e,t){const n=1===pu(e),r=1===pu(t);return n&&r?function(e,t){const n=Cu(2),r=Bt(Zt(e,!1,2),Zt(t,!1,2));return gu(n,0,~~Yt(Gt(r,bu))),gu(n,1,~~Yt(Ht(r,_u))),xu(n)}(mu(e,0),mu(t,0)):n?Du(t,mu(e,0)):r?Du(e,mu(t,0)):function(e,t){const n=Cu(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=0|o;for(let e=0;e<=t.bound-1;e++){const n=Zt(t.digits[e],!1,2),o=Ut(Ut(Zt(r[a],!1,2),s),Bt(i,n));r[a]=~~Yt(Gt(o,bu)),s=Ht(o,_u),a+=1}Nu(n,s,a)}return xu(n)}(e,t)}class zu extends Qn{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 ju(e,t,n,r){return new zu(e,yu(2,e),t,n,r,~~(24/e),li(~~(24/e),t=>yu(2,e*t),Int32Array))}const Lu=[ju(1,28,268435456,268435456),ju(2,26,67108864,134217728),ju(3,24,16777216,50331648),ju(4,22,4194304,16777216),ju(5,20,1048576,5242880),ju(6,18,262144,1572864),ju(7,16,65536,458752),ju(8,14,16384,131072),ju(9,12,4096,36864),ju(10,10,1024,10240),ju(11,8,256,2816),ju(12,6,64,768),ju(13,4,16,208)];li(24,e=>yu(2,e)-1,Int32Array),li(24,e=>yu(2,e),Int32Array),li(24,e=>vu(qt(2,0,!1),e));Lu[0].bigN;function Fu(e,t){return Ru(e,t)}function Uu(e,t,n,r){const o=[e.digits,Tu(e)],i=o[0],s=[n.digits,Tu(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Bt(u,Zt(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=0|~~Yt(Gt(f,bu)),t=Ht(f,_u);e<=i[l+r]?i[l+r]=i[l+r]-e:(i[l+r]=i[l+r]+(16777216-e),t=Ut(t,qt(1,0,!1))),f=l<a?Ut(t,Bt(u,Zt(c[l+1],!1,2))):t,l+=1}xu(e)}function Bu(e,t,n,r){const o=[e.digits,Tu(e)],i=o[0],s=[n.digits,Tu(n)],a=0|s[1],c=s[0],u=Zt(t,!1,2);let l=0,f=Bt(u,Zt(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=0|~~Yt(Gt(f,bu)),t=Ht(f,_u);e<16777216-i[l+r]?i[l+r]=i[l+r]+e:(i[l+r]=e-(16777216-i[l+r]),t=Ut(t,qt(1,0,!1))),f=l<a?Ut(t,Bt(u,Zt(c[l+1],!1,2))):t,l+=1}xu(e)}function Hu(e,t,n){const r=[Tu(t),Tu(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(Ht(Ut(Bt(Zt(s[o],!1,2),_u),Zt(s[o-1],!1,2)),Zt(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Yt(Ht(Ut(Bt(Zt(s[o],!1,2),_u),Zt(s[o-1],!1,2)),Ut(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 Wu(e,t){if(Ou(t))throw new Error;if(Tu(e)<Tu(t))return[Eu,e];{const n=function(e){return new du(e.bound,e.digits.slice())}(e),r=Cu(Tu(e)-Tu(t)+1+1);let o=0|Tu(e);const i=0|Tu(t);let s=o-i|0;const a=e=>{};let c=!1;for(;!c;){a([r,n,s,o]);const e=0|Hu(n,t,s);e>0?(Uu(n,e,t,s),Bu(r,e,Iu,s),a([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(a([r,n,s-1,o]),s-=1):(a([r,n,s-1,o-1]),s-=1,o-=1)))}return[xu(r),xu(n)]}}Su(2);function Vu(e){return Su(e)}function Gu(e){return function(e){const t=$t(e,qt(0,0,!1))<0?qt(0,0,!1):e,n=Cu(3);for(let e=0;e<=2;e++)n.digits[e]=~~Yt(Wt(Ht(t,vu(_u,e)),_u));return xu(n)}(e)}function $u(e){const t=0|Tu(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,a=r,c=o;if(null==c.tail){const e=0|ku(a);return i&&0===e?s:new $n(rn(e),s)}{const u=c.tail,l=Wu(a,c.head[1]),f=l[1],d=l[0];if(i&&Ou(d)){e=i,t=s,r=f,o=u;continue e}e=i,t=n(!1,s,f,u),r=d,o=u}}},r=n(!0,new $n,e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(Tu(s)>t)return new $n([i,s],o);e=new $n([i,s],o),n=i+1,r=Fu(s,s)}})(new $n,0,Su(10)));return null==r.tail?"0":gr("",Array.from(r))}function qu(e){return e.bound<=1}function Yu(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class Xu extends Qn{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|Ku(e)){case-1:return Ou(Qu(e))?"0":"-"+$u(Qu(e));case 0:return"0";case 1:return $u(Qu(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof Xu&&el(this,e)}GetHashCode(){return 0|(0===Ku(e=this)?1:Ku(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(Qu(e))|0);var e}CompareTo(e){if(e instanceof Xu)return 0|function(e,t){return tl(e,t)?-1:el(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Zu(e,t){return new Xu(e,t)}function Ju(e){return qu(e)&&Yu(e)<Xu.smallLim?Xu.smallPosTab[Yu(e)]:e}function Ku(e){return e.signInt}function Qu(e){return e.v}function el(e,t){const n=[Ku(e),Ku(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 Au(Qu(e),Qu(t));case 2:case 3:return!!Ou(Qu(e))&&Ou(Qu(t));case 4:return!0;case 5:case 6:return Ou(Qu(t));case 7:case 8:return Ou(Qu(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function tl(e,t){const n=[Ku(e),Ku(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 Mu(Qu(e),Qu(t));case 1:return Mu(Qu(t),Qu(e));case 2:return!1;case 3:return!Ou(Qu(e))||!Ou(Qu(t));case 4:return!1;case 5:return!Ou(Qu(t));case 6:case 7:return!1;case 8:return!Ou(Qu(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function nl(e){return e>=0?Zu(1,Ju(Vu(e))):Zu(-1,Ju(-2147483648===e?Gu(Vt(Zt(e,!1,2))):Vu(Be(e))))}function rl(){return Xu.one}function ol(){return Xu.two}function il(){return Xu.zero}Xu.smallLim=4096,Xu.smallPosTab=li(Xu.smallLim,e=>Vu(e)),Xu.one=nl(1),Xu.two=nl(2),Xu.zero=nl(0);il(),rl(),ol();il(),rl();function sl(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function al(e,t){try{return t.contents=function(e){const t=Nn(e),n=kn.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return sl(t.getTime(),r)}(e),!0}catch(e){return!1}}class cl{constructor(e){this.k=e}}function ul(e){return new cl(e)}function ll(e){return e.k}class fl extends cl{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function dl(e,t,n,r){return new fl(e,t,n,r)}function hl(e){return e.left}function pl(e){return e.right}function ml(e){return e.h}function wl(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof fl){t=hl(i),n=e(pl(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function gl(e,t,n){let r;if(null!=e){const t=e;r=t instanceof fl?ml(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof fl?ml(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?ul(t):dl(t,e,n,i+1)}function vl(e,t,n){let r,o,i,s,a;if(null!=e){const t=e;a=t instanceof fl?ml(t):1}else a=0;let c;if(null!=n){const e=n;c=e instanceof fl?ml(e):1}else c=0;if(c>a+2){const i=xr(n);if(i instanceof fl){if(r=hl(i),(null!=r?(o=r,o instanceof fl?ml(o):1):0)>a+1){const n=xr(hl(i));if(n instanceof fl)return gl(gl(e,t,hl(n)),ll(n),gl(pl(n),ll(i),pl(i)));throw new Error("internal error: Set.rebalance")}return gl(gl(e,t,hl(i)),ll(i),pl(i))}throw new Error("internal error: Set.rebalance")}if(a>c+2){const r=xr(e);if(r instanceof fl){if(i=pl(r),(null!=i?(s=i,s instanceof fl?ml(s):1):0)>c+1){const e=xr(pl(r));if(e instanceof fl)return gl(gl(hl(r),ll(r),hl(e)),ll(e),gl(pl(e),t,n));throw new Error("internal error: Set.rebalance")}return gl(hl(r),ll(r),gl(pl(r),t,n))}throw new Error("internal error: Set.rebalance")}return gl(e,t,n)}function yl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,ll(r));if(r instanceof fl)return o<0?vl(yl(e,t,hl(r)),ll(r),pl(r)):0===o?n:vl(hl(r),ll(r),yl(e,t,pl(r)));{const o=0|e.Compare(t,ll(r));return o<0?dl(t,void 0,n,2):0===o?n:dl(t,n,void 0,2)}}return ul(t)}function _l(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,ll(s));if(s instanceof fl){if(a<0){e=r,t=o,n=hl(s);continue e}if(0===a)return!0;e=r,t=o,n=pl(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 fl){bl(n,hl(o)),n(ll(o)),e=n,t=pl(o);continue e}n(ll(o))}break}}class Cl extends Qn{constructor(e,t){super(),this.stack=e,this.started=t}}function xl(e){e:for(;;){const t=e;if(null==t.tail)return new $n;{const n=t.head,r=t.tail;if(null!=n){const o=n;if(o instanceof fl){e=new $n(hl(o),new $n(ul(ll(o)),new $n(pl(o),r)));continue e}return t}e=r}}}function Sl(e){return new Cl(xl(new $n(e,new $n)),!1)}function kl(e){if(e.started){const t=e.stack;if(null==t.tail)return function(){throw new Error("Enumeration already started")}();if(null!=t.head){return ll(t.head)}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Il(e){let t=Sl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>kl(t),"System.Collections.IEnumerator.get_Current":()=>kl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(null!=t.tail){if(null!=t.head){if(t.head instanceof fl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=xl(t.tail),!(null==e.stack.tail)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return!1}return e.started=!0,!(null==e.stack.tail)}(t),"System.Collections.IEnumerator.Reset"(){t=Sl(e)},Dispose(){}}}function El(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(null==s[0].tail)return null==s[1].tail?0:-1;if(null==s[1].tail)return 1;if(null!=s[1].head)if(null!=s[0].head){const a=s[0].head,c=s[1].head;if(a instanceof fl)if(null==hl(a)){if(!(c instanceof fl)){const o=0|r.Compare(ll(a),ll(c));if(0!==o)return 0|o;e=r,t=new $n(pl(a),s[0].tail),n=new $n(void 0,s[1].tail);continue e}if(null==hl(c)){const o=0|r.Compare(ll(a),ll(c));if(0!==o)return 0|o;e=r,t=new $n(pl(a),s[0].tail),n=new $n(pl(c),s[1].tail);continue e}{const s=[o,i];let a,c,u,l,f;switch(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof fl){e=r,t=new $n(hl(u),new $n(dl(ll(u),void 0,pl(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ul(ll(u)),c)),n=i;continue e;case 1:if(f instanceof fl){e=r,t=o,n=new $n(hl(f),new $n(dl(ll(f),void 0,pl(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ul(ll(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(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof fl){e=r,t=new $n(hl(u),new $n(dl(ll(u),void 0,pl(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ul(ll(u)),c)),n=i;continue e;case 1:if(f instanceof fl){e=r,t=o,n=new $n(hl(f),new $n(dl(ll(f),void 0,pl(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ul(ll(f)),l));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof fl)){const o=0|r.Compare(ll(a),ll(c));if(0!==o)return 0|o;e=r,t=s[0].tail,n=s[1].tail;continue e}if(null==hl(c)){const o=0|r.Compare(ll(a),ll(c));if(0!==o)return 0|o;e=r,t=new $n(void 0,s[0].tail),n=new $n(pl(c),s[1].tail);continue e}{const s=[o,i];let a,c,u,l,f;switch(null!=s[0].tail&&null!=s[0].head?(a=0,c=s[0].tail,u=s[0].head):null!=s[1].tail&&null!=s[1].head?(a=1,l=s[1].tail,f=s[1].head):a=2,a){case 0:if(u instanceof fl){e=r,t=new $n(hl(u),new $n(dl(ll(u),void 0,pl(u),0),c)),n=i;continue e}e=r,t=new $n(void 0,new $n(ul(ll(u)),c)),n=i;continue e;case 1:if(f instanceof fl){e=r,t=o,n=new $n(hl(f),new $n(dl(ll(f),void 0,pl(f),0),l));continue e}e=r,t=o,n=new $n(void 0,new $n(ul(ll(f)),l));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{s[1].head;const a=[o,i];let c,u,l,f,d;switch(null!=a[0].tail&&null!=a[0].head?(c=0,u=a[0].tail,l=a[0].head):null!=a[1].tail&&null!=a[1].head?(c=1,f=a[1].tail,d=a[1].head):c=2,c){case 0:if(l instanceof fl){e=r,t=new $n(hl(l),new $n(dl(ll(l),void 0,pl(l),0),u)),n=i;continue e}e=r,t=new $n(void 0,new $n(ul(ll(l)),u)),n=i;continue e;case 1:if(d instanceof fl){e=r,t=o,n=new $n(hl(d),new $n(dl(ll(d),void 0,pl(d),0),f));continue e}e=r,t=o,n=new $n(void 0,new $n(ul(ll(d)),f));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==s[0].head){e=r,t=s[0].tail,n=s[1].tail;continue e}{s[0].head;const a=[o,i];let c,u,l,f,d;switch(null!=a[0].tail&&null!=a[0].head?(c=0,u=a[0].tail,l=a[0].head):null!=a[1].tail&&null!=a[1].head?(c=1,f=a[1].tail,d=a[1].head):c=2,c){case 0:if(l instanceof fl){e=r,t=new $n(hl(l),new $n(dl(ll(l),void 0,pl(l),0),u)),n=i;continue e}e=r,t=new $n(void 0,new $n(ul(ll(l)),u)),n=i;continue e;case 1:if(d instanceof fl){e=r,t=o,n=new $n(hl(d),new $n(dl(ll(d),void 0,pl(d),0),f));continue e}e=r,t=o,n=new $n(void 0,new $n(ul(ll(d)),f));continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,new $n(t,new $n),new $n(n,new $n))}function Tl(e,t,n){let r=0|n;bl(e=>{t[r]=e,r+=1},e)}function Ol(e,t){const n=Ur(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=yl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}class Al{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=Ur(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+un(e)+631}}finally{n.Dispose()}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Al&&0===El(Ml(this),Nl(this),Nl(e))}toString(){return"set ["+gr("; ",no(e=>Vn(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|El(Ml(this),Nl(this),Nl(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 _l(Ml(this),e,Nl(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Tl(Nl(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Dl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Dl(this)}GetEnumerator(){return Il(Nl(this))}[Symbol.iterator](){return Br(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Il(Nl(this))}get size(){return 0|Dl(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 Rl(this,e)}keys(){return no(e=>e,this)}values(){return no(e=>e,this)}entries(){return no(e=>[e,e],this)}forEach(e,t){const n=this;eo(t=>{e(t,t,n)},n)}}function Pl(e,t){return new Al(e,t)}function Ml(e){return e.comparer}function Nl(e){return e.tree}function Dl(e){return wl(Nl(e))}function Rl(e,t){return _l(Ml(e),t,Nl(e))}function zl(e,t){return Pl(t,Ol(t,e))}function jl(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 Ll(e,t){const n=2===t.tag?jl(t.fields[0],t.fields[1],!0):1===t.tag?jl(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?jl(t.fields[0],t.fields[1],!0):4===t.tag?jl(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]:jl(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Fl(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ts(1,Ll(e[0],e[1]))}return new ts(0,r.fields[0])}function Ul(e,t){try{return Fl("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ts(1,"Given an invalid JSON: "+e.message);throw e}}const Bl=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 ts(0,(e+128&255)-128):new ts(1,[n,new su(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new ts(1,[n,new su(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!1,8,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new su(0,"a sbyte",r)])}return new ts(1,[n,new su(0,"a sbyte",r)])},Hl=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 ts(0,255&e):new ts(1,[n,new su(1,"a byte",e,"Value was either too large or too small for a byte")]):new ts(1,[n,new su(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!0,8,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new su(0,"a byte",r)])}return new ts(1,[n,new su(0,"a byte",r)])},Wl=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 ts(0,(e+32768&65535)-32768):new ts(1,[r,new su(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new su(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!1,16,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new su(0,n,o)])}return new ts(1,[r,new su(0,n,o)])},Vl=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 ts(0,65535&e):new ts(1,[r,new su(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new su(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!0,16,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new su(0,n,o)])}return new ts(1,[r,new su(0,n,o)])},Gl=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 ts(0,~~e):new ts(1,[n,new su(1,"an int",e,"Value was either too large or too small for an int")]):new ts(1,[n,new su(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Ue(r,511,!1,32,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[n,new su(0,"an int",r)])}return new ts(1,[n,new su(0,"an int",r)])},$l=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 ts(0,e>>>0):new ts(1,[r,new su(1,n,e,"Value was either too large or too small for "+n)]):new ts(1,[r,new su(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[Ue(o,511,!0,32,new er(()=>t,e=>{t=e})),t],e[0]?new ts(0,e[1]):new ts(1,[r,new su(0,n,o)])}return new ts(1,[r,new su(0,n,o)])};function ql(e,t){if("string"==typeof t){let r,o=Mn(-621355968e5,0);return r=[Dn(t,new er(()=>o,e=>{o=e})),o],r[0]?new ts(0,1===(n=r[1]).kind?n:Mn(n.getTime(),1)):new ts(1,[e,new su(0,"a datetime",t)])}return new ts(1,[e,new su(0,"a datetime",t)]);var n}function Yl(e,t){if("string"==typeof t){let n,r=sl(-621355968e5,0);return n=[al(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new su(0,"a datetimeoffset",t)])}return new ts(1,[e,new su(0,"a datetime",t)])}function Xl(e,t,n,r){let o;const i=n+".["+rn(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ts(1,[i,new su(5,"a longer array. Need index `"+rn(e)+"` but there are only `"+(o=0|n.length,rn(o)+"` entries"),r)])}return new ts(1,[i,new su(0,"an array",r)])}function Zl(e,t,n){if(Array.isArray(n)){let r=-1;return ns(e=>yi(e),fi((n,o)=>{if(r+=1,0===n.tag){const i=e(t+".["+rn(r)+"]",o);return 0===i.tag?new ts(0,wi(i.fields[0],n.fields[0])):new ts(1,i.fields[0])}return n},new ts(0,pi()),n))}return new ts(1,[t,new su(0,"a list",n)])}function Jl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return fi((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+rn(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ts(0,i)):new ts(1,s.fields[0])}return n},new ts(0,ci(new Array(o.length),0,o.length,null)),o)}return new ts(1,[t,new su(0,"an array",n)])}function Kl(e,t,n){return new ts(0,e)}function Ql(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ts(1,o.fields[0])}function ef(e,t,n,r){const o=t(n,r);return 1===o.tag?new ts(1,o.fields[0]):new ts(0,e(o.fields[0]))}function tf(e,t){let n;const r=e;return n=e=>t=>Xl(0,r,e,t),e=>r=>Ql(_n(3,e=>{let n;const r=t;return n=e=>t=>Xl(1,r,e,t),t=>r=>Ql((t,n,r)=>Kl([e,t]),_n(2,n),t,r)}),_n(2,n),e,r)}function nf(e){return ca(e)}function rf(e,t,n,r){let o,i;return t.length!==r.length?new ts(1,[n,new su(6,(o=0|r.length,i=0|t.length,ur(sr("Expected %i %s but got %i"))(i)(e)(o)))]):hi(_n(3,Sn(e=>t=>r=>0===r.tag?ns(e=>wi(e,r.fields[0]),t(n,e)):r,[0,[0,2],0])),r,t,new ts(0,pi()))}function of(e,t,n,r,o,i){const s=(a=e=>ko(e)===r,zo(n).find(a));var a;if(null!=s){const n=s;return 0===i.length?new ts(0,Wo(n,[])):ns(e=>Wo(n,Array.from(e)),rf("union fields",ui(n=>af(e,t,!1,n[1]),Ho(n)),o,i))}return new ts(1,[o,new su(6,"Cannot find case "+r+" in "+Io(n))])}function sf(e,t,n,r){const o=new er(null),i=da(Io(r),o,e);let s;if(Uo(r)){const e=ui(e=>[fu(t,ko(e)),af(i,t,!1,e[1])],jo(r));s=t=>n=>ns(e=>function(e,t){const n=jo(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,Array.from(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ts(1,[t,new su(0,"an object",n)]):(r=_n(2,e=>{const r=e[0];return o=>0===o.tag?ns(e=>wi(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),o=e,i=new ts(0,pi()),o.reduceRight((e,t)=>r(t,e),i));var r,o,i}(e,t,n))}else if(Fo(r))s=e=>n=>{if("string"==typeof n)return of(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return of(i,t,r,o[0],e,o.slice(1,o.length))}return new ts(1,[e,new su(0,"a string or array",n)])};else{if(!n){let e;const t=Io(r);throw e=ur(sr("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new ts(1,[e,new su(2,"an extra coder for "+Io(r),t)])}return o.contents=s,s}function af(e,t,n,r){let o;const i=Io(r),s=ha(i,e);if(null==s){if(Eo(r)){const n=af(e,t,!1,To(r));return e=>t=>Jl(_n(2,n),e,t)}if(Ao(r)){const e=Io(Mo(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Bl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new su(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Hl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new su(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Wl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,(a=(a=e)<0&&null!=c&&10!==c?65535+a+1:a).toString(c))):new ts(1,[o,new su(1,Io(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=Vl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new su(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Gl(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=0|s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,rn(e))):new ts(1,[o,new su(1,Io(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=$l(o)(i);if(1===s.tag)return new ts(1,s.fields[0]);{const e=s.fields[0];return Kr(e,No(n))?new ts(0,Ro(n,e.toString())):new ts(1,[o,new su(1,Io(n),i,"Unkown value provided for the enum")])}};{const e=Io(r),t=lr(sr("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(Oo(r)){if(Bo(r)){const n=ui(n=>af(e,t,!1,n),Lo(r));return e=>t=>Array.isArray(t)?ns(e=>Array.from(e),rf("tuple elements",n,e,t)):new ts(1,[e,new su(0,"an array",t)])}{const i=Io(Po(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=af(e,t,!0,fo(r)[0]);return e=>t=>{return r=_n(2,n),o=e,null==(i=t)?new ts(0,void 0):ns(e=>Cr(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=af(e,t,!1,fo(r)[0]);return e=>t=>Zl(_n(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=af(e,t,!1,fo(r)[0]),i=af(e,t,!1,fo(r)[1]);let s;const a=Ii([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ts(1,[n,new su(0,"an object",r)]):Qr((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 ts(0,wi([s.fields[0],e.fields[0]],o.fields[0])):new ts(1,e.fields[0])}return new ts(1,s.fields[0])}return o},new ts(0,pi()),Object.keys(r))}(_n(2,n),_n(2,i),e,t),(o=tf(_n(2,n),_n(2,i)),e=>t=>Zl(_n(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(null==o.tail)return new ts(1,[n,new su(7,i)]);{const s=Fl(n,_n(2,o.head),r);if(1===s.tag){e=o.tail,t=Ci(i,mi(s.fields[0]));continue e}return new ts(0,s.fields[0])}}})(a,pi());var n,r},e=>t=>ef(e=>nf(e),_n(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=af(e,t,!1,fo(r)[0]);return e=>t=>{const r=Jl(_n(2,n),e,t);return 0===r.tag?new ts(0,zl(r.fields[0],{Compare:(e,t)=>gn(e,t)})):new ts(1,r.fields[0])}}return sf(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ts(0,r):new ts(1,[n,new su(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new ts(0,void 0):new ts(1,[n,new su(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new ts(0,r):new ts(1,[n,new su(0,"a string",r)]);var n,r}:"System.SByte"===i?Bl:"System.Byte"===i?Hl:"System.Int16"===i?Wl:"System.UInt16"===i?Vl:"System.Int32"===i?Gl:"System.UInt32"===i?$l:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ts(0,r):new ts(1,[n,new su(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new ts(0,r):new ts(1,[n,new su(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>ql(e,t):"System.DateTimeOffset"===i?e=>t=>Yl(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ka(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new su(0,"a timespan",t)])}return new ts(1,[e,new su(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=[gc(t,new er(()=>r,e=>{r=e})),r],n[0]?new ts(0,n[1]):new ts(1,[e,new su(0,"a guid",t)])}return new ts(1,[e,new su(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new ts(0,e):sf(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function cf(e){return null!=e?pa((e,t)=>new er(t[1]),e.Coders):ma()}function uf(e,t,n){const r=Ir(e,new au(0)),o=xr(n).ResolveType();return af(cf(t),r,!1,o)}function lf(e,t,n,r){return Ul(_n(2,uf(t,n,r)),e)}function ff(e){return Gc(0,()=>{const t=es.Bind(iu(e),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(t,t=>{let n;const r=t;return 1===r.tag?es.Return(new ts(1,r.fields[0])):es.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?es.Bind(iu(e),e=>es.Return(new ts(0,e))):Vc(0,n)))}))})}function df(e){return Gc(0,()=>{const t=ff(nu(new $c(1),tu(function(e){const t=ja(e);return ur(sr("%s/workflows/public-backend/invites/%s/activate"))(Oc)(t)}(e))));return es.Delay(()=>es.Bind(t,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>function(e){switch(e.tag){case 1:return new xs(1);case 2:return new xs(2);case 3:return new xs(3);case 4:return new xs(4,Ts(e.fields[0]));default:return new xs(0,Ts(e.fields[0]))}}(e),lf(t.responseText,new au(1),void 0,{ResolveType:As}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function hf(e,t){return Gc(0,()=>{const n=ff(nu(new $c(1),tu(function(e,t){const n=encodeURIComponent(t),r=ja(e);return ur(sr("%s/workflows/public-backend/invites/%s/confirm?mfa=%s"))(Oc)(r)(n)}(e,t))));return es.Delay(()=>es.Bind(n,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>Ds(e),lf(t.responseText,new au(1),void 0,{ResolveType:Ns}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function pf(e){return df(e)}function mf(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 Za(t.InviteToken,n.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(1),n.CssOverrides),oc()];case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"We couldn't find this invite. Reach out to your employer to get another one."),t.CssOverrides),oc()];case 2:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Your invite has expired. Reach out to your employer to get another one."),t.CssOverrides),oc()];case 3:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Your invite has been locked. Try refreshing this page in 30 minutes."),t.CssOverrides),oc()]}}case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,t.IsValidationPending,t.CanRetry,new Ya(2,"Oops, looks like something went wrong. Try refreshing this page."),t.CssOverrides),oc()];case 2:return[t,oc()]}}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 Za(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),ac(new Xa(0))];case 1:return[new Za(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),oc()];case 4:return[new Za(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),oc()];case 3:return[new Za(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),oc()];default:return[t,(s=Nc(new Mc(1)),mi(e=>{bc(mi(s+function(e){const t=gr("&",xi(e=>gr("=",[encodeURIComponent(e[0]),encodeURIComponent(e[1])]),e));return""===t?"":"?"+t}(mi(["code",u.fields[0].AuthCode]))),1,2)}))]}case 1:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!1,t.CanRetry,new Ya(2,"Oops, looks like something went wrong. Please try again."),t.CssOverrides),oc()];case 2:return[new Za(t.InviteToken,t.MaskedEmail,t.MfaCodeForm,!0,t.CanRetry,t.Ui,t.CssOverrides),oc()]}}case 3:{const n=e.fields[0];return[(a=Na(n),1===a.tag?new Za(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 Za(t.InviteToken,t.MaskedEmail,{Error:void 0,Input:n,IsDirty:!0,IsTouched:t.MfaCodeForm.IsTouched},t.IsValidationPending,t.CanRetry,t.Ui,t.CssOverrides)),oc()]}case 4:return[new Za(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),oc()];default:return[t,ac(new Xa(1,va(pf(t.InviteToken),[])))]}}function wf(e,t){return es.Delay(()=>es.Bind(ds(e),()=>es.ReturnFrom(t)))}class gf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProfileId"]}}function vf(e){return new gf(0,e)}function yf(e){return e.fields[0]}class _f extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessStepId"]}}class bf extends Qn{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}const Cf=new bf(new _f(0,"personal-details"),"Personal Details","apollo-personal-details-app"),xf=new bf(new _f(0,"emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),Sf=new bf(new _f(0,"bank"),"Bank","bank-component"),kf=new bf(new _f(0,"tax"),"Tax","tax-component"),If=new bf(new _f(0,"super"),"Super","super-selection-app"),Ef=new bf(new _f(0,"pay-enrolment"),"Pay Enrolment","workplace-link"),Tf=Ii([Cf,xf,Sf,kf,If,Ef]);function Of(e){const t=new _f(0,e);return function(e){return Pi(t=>hn(t.Id,e),Tf)}(t)?new ts(0,t):new ts(1,"Invalid step Id.")}function Af(e){return e.fields[0]}class Pf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessConfigId"]}}class Mf extends Qn{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}const Nf=new Mf(new Pf(0,wc("00000000-0000-0000-0000-000000000000")),"onboarding-default",Ii([Sf,kf,If])),Df=new Mf(new Pf(0,wc("00000000-0000-0000-0000-000000000001")),"PEBTS",Ii([Cf,xf,Sf,kf,If])),Rf=new Mf(new Pf(0,wc("00000000-0000-0000-0000-000000000002")),"PS",Ii([Cf,If])),zf=new Mf(new Pf(0,wc("00000000-0000-0000-0001-000000000000")),"Pay Enrolment",mi(Ef)),jf=new Qo([[Nf.Id,Nf],[Df.Id,Df],[Rf.Id,Rf],[zf.Id,zf]],{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)});function Lf(e){return e.fields[0]}class Ff extends Qn{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class Uf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}class Bf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ProcessInstanceId"]}}function Hf(e){return new Bf(0,e)}function Wf(e){return e.fields[0]}class Vf extends Qn{constructor(e,t){super(),this.Name=e,this.Value=t}}class Gf extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagName"]}}class $f extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TagValue"]}}function qf(e,t){return Bc(0,()=>{return rs(e=>{return Hc(0,wr(n=t)?new ts(1,"Tag value is empty"):n.length<100?new ts(0,new $f(0,n)):new ts(1,"Tag value is too long"),t=>new Vf(e,t));var n},wr(n=e)?new ts(1,"Tag name is empty"):n.length<100?new ts(0,new Gf(0,n)):new ts(1,"Tag name is too long"));var n})()}class Yf extends Qn{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 Xf(e,t){const n=Ti(t=>0===function(...e){switch(e.length){case 2:return ir(e[0],e[1],!1);case 3:return ir(e[0],e[1],e[2]);case 4:return ir(e[0],e[1],!0===e[2]);case 5:return ir(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ir(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ir(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 jc(ur(ar("Invalid ComponentTagName %A%P()",[e])),n)}function Zf(e){const t=e.Status;switch(t.tag){case 0:case 2:case 3:return;default:return null!=(n=Oi(e=>!Pi(t=>hn(e.Id,t[0]),t.fields[0].CompletedSteps),e.Configuration.Steps)).tail?Cr(n.head):void 0}var n}function Jf(){return Sr(document.getElementById("external-loading-page-container"))}function Kf(){return null!=Jf()}var Qf,ed=[];!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Qf||(Qf={}));var td,nd=function(e){return Object.freeze(e)},rd=function(e,t){this.inlineSize=e,this.blockSize=t,nd(this)},od=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,nd(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}(),id=function(e){return e instanceof SVGElement&&"getBBox"in e},sd=function(e){if(id(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)},ad=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)},cd="undefined"!=typeof window?window:{},ud=new WeakMap,ld=/auto|scroll/,fd=/^tb|vertical/,dd=/msie|trident/i.test(cd.navigator&&cd.navigator.userAgent),hd=function(e){return parseFloat(e||"0")},pd=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new rd((n?t:e)||0,(n?e:t)||0)},md=nd({devicePixelContentBoxSize:pd(),borderBoxSize:pd(),contentBoxSize:pd(),contentRect:new od(0,0,0,0)}),wd=function(e,t){if(void 0===t&&(t=!1),ud.has(e)&&!t)return ud.get(e);if(sd(e))return ud.set(e,md),md;var n=getComputedStyle(e),r=id(e)&&e.ownerSVGElement&&e.getBBox(),o=!dd&&"border-box"===n.boxSizing,i=fd.test(n.writingMode||""),s=!r&&ld.test(n.overflowY||""),a=!r&&ld.test(n.overflowX||""),c=r?0:hd(n.paddingTop),u=r?0:hd(n.paddingRight),l=r?0:hd(n.paddingBottom),f=r?0:hd(n.paddingLeft),d=r?0:hd(n.borderTopWidth),h=r?0:hd(n.borderRightWidth),p=r?0:hd(n.borderBottomWidth),m=f+u,w=c+l,g=(r?0:hd(n.borderLeftWidth))+h,v=d+p,y=a?e.offsetHeight-v-e.clientHeight:0,_=s?e.offsetWidth-g-e.clientWidth:0,b=o?m+g:0,C=o?w+v:0,x=r?r.width:hd(n.width)-b-_,S=r?r.height:hd(n.height)-C-y,k=x+m+_+g,I=S+w+y+v,E=nd({devicePixelContentBoxSize:pd(Math.round(x*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:pd(k,I,i),contentBoxSize:pd(x,S,i),contentRect:new od(f,c,x,S)});return ud.set(e,E),E},gd=function(e,t,n){var r=wd(e,n),o=r.borderBoxSize,i=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case Qf.DEVICE_PIXEL_CONTENT_BOX:return s;case Qf.BORDER_BOX:return o;default:return i}},vd=function(e){var t=wd(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=nd([t.borderBoxSize]),this.contentBoxSize=nd([t.contentBoxSize]),this.devicePixelContentBoxSize=nd([t.devicePixelContentBoxSize])},yd=function(e){if(sd(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_d=function(){var e=1/0,t=[];ed.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new vd(t.target),o=yd(t.target);r.push(n),t.lastReportedSize=gd(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},bd=function(e){ed.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))}))}))},Cd=function(){var e,t=0;for(bd(t);ed.some((function(e){return e.activeTargets.length>0}));)t=_d(),bd(t);return ed.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},xd=[],Sd=function(e){if(!td){var t=0,n=document.createTextNode("");new MutationObserver((function(){return xd.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),td=function(){n.textContent=""+(t?t--:t++)}}xd.push(e),td()},kd=0,Id={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ed=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Td=function(e){return void 0===e&&(e=0),Date.now()+e},Od=!1,Ad=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),!Od){Od=!0;var n,r=Td(e);n=function(){var n=!1;try{n=Cd()}finally{if(Od=!1,e=r-Td(),!kd)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Sd((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,Id)};document.body?t():cd.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ed.forEach((function(t){return cd.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ed.forEach((function(t){return cd.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Pd=function(e){!kd&&e>0&&Ad.start(),!(kd+=e)&&Ad.stop()},Md=function(){function e(e,t){this.target=e,this.observedBox=t||Qf.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=gd(this.target,this.observedBox,!0);return e=this.target,id(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}(),Nd=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Dd=new WeakMap,Rd=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},zd=function(){function e(){}return e.connect=function(e,t){var n=new Nd(e,t);Dd.set(e,n)},e.observe=function(e,t,n){var r=Dd.get(e),o=0===r.observationTargets.length;Rd(r.observationTargets,t)<0&&(o&&ed.push(r),r.observationTargets.push(new Md(t,n&&n.box)),Pd(1),Ad.schedule())},e.unobserve=function(e,t){var n=Dd.get(e),r=Rd(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&ed.splice(ed.indexOf(n),1),n.observationTargets.splice(r,1),Pd(-1))},e.disconnect=function(e){var t=this,n=Dd.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),jd=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.");zd.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(!ad(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zd.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(!ad(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zd.unobserve(this,e)},e.prototype.disconnect=function(){zd.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Ld extends Qn{constructor(e,t,n){super(),this.instanceId=0|e,this.name=t,this.type=n}}function Fd(e){return new Ld(Wf(e.Id),e.Configuration.Name,Lf(e.Configuration.Id))}function Ud(e){Kf()||window.parent.postMessage(e,"*")}function Bd(){Ud(function(e,t){const n={type:"contentResized",sender:"flare"};return n.height=e,n.width=t,n}(document.body.offsetHeight,-1))}function Hd(e,t,n){const r=function(e,t){const n=Ti(t=>hn(t.Id,e),t.Configuration.Steps);return jc(ur(ar("Invalid ProcessStep Id %A%P()",[e])),n)}(e,t);1===r.tag||Ud(function(e,t,n,r){const o={type:"stepSubmitSuccess",sender:"flare"};return o.workflow=Fd(n),o.profileId=yf(r),o.step={name:t,type:Af(e)},o}(e,r.fields[0].DisplayName,t,n))}function Wd(e,t){Ud(function(e,t){const n={type:"workflowSubmitSuccess",sender:"flare"};return n.workflow=Fd(e),n.profileId=yf(t),n}(e,t))}function Vd(e){Kf()&&function(e,t){hs(es.Delay(()=>es.Bind(ds(e),()=>(t(),es.Zero()))))}(e,()=>{eo(e=>{document.body.removeChild(e)},kr(Jf())),Ud(function(){const e={type:"appReady",sender:"flare"};return e}()),Bd()})}function Gd(e){const t=bs((n=e.inviteCode,[new Za(n,void 0,{Error:void 0,Input:"",IsDirty:!1,IsTouched:!1},!1,!1,new Ya(0),pi()),oc()]),(e,t)=>mf(e,t),[]);var n;const r=t[0],o=t[1];Ui(ya(()=>wf(1e3,pf(r.InviteToken)),e=>{o(new Xa(1,e))}));const i=ya(()=>{return wf(500,(e=r.InviteToken,t=r.MfaCodeForm.Input,hf(e,t)));var e,t},e=>{o(new Xa(2,e))});return Ui(()=>{Vd(0)}),h("div",{className:gr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(no(e=>h("style",{children:[e]}),r.CssOverrides),Yr(()=>Zr(h("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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(_i(Yr(()=>{let e,t;return Gr((e=r.Ui,2===e.tag?Zr(h("div",{className:gr(" ",["pt-4","text-center","fade-in"]),children:_r.Children.toArray([h("i",{className:gr(" ",["fad","fa-5x","fa-exclamation-circle","text-danger"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal","text-danger"]),children:"This doesn't look right"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:e.fields[0]})])})):1===e.tag?Zr(h("form",{className:gr(" ",["pt-4","text-center","fade-in"]),onSubmit:e=>{e.preventDefault(),i()},children:_r.Children.toArray([h("i",{className:gr(" ",["fad","fa-5x","fa-shield-check","text-primary"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Authenticate Your Account"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:_r.Children.toArray(["Protecting your account is our top priority. Check your email ",(t=Ir(r.MaskedEmail,""),h("strong",{children:[t]}))," for the code that we have just sent you."])}),h("div",{className:gr(" ",["input-group","input-group-lg","has-validation"]),children:_r.Children.toArray([h("input",{"aria-describedby":gr(" ",["button-verify"]),"aria-label":"Authorization code",autoFocus:!0,className:gr(" ",Ci(mi("form-control"),r.MfaCodeForm.IsDirty&&r.MfaCodeForm.IsTouched&&null!=r.MfaCodeForm.Error?mi("is-invalid"):pi())),placeholder:"Enter the code here",required:!0,maxLength:6,type:"text",onChange:e=>{o(new Xa(3,e.target.value))},onBlur:e=>{o(new Xa(4))}}),h("div",{className:"input-group-append",children:_r.Children.toArray([h("button",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["btn","btn-lg","btn-dark"])]),Yr(()=>Gr(Zr(["id","button-verify"]),Yr(()=>Gr(Zr(["type","submit"]),Yr(()=>Gr(Zr(["disabled",!(!r.MfaCodeForm.IsTouched||null==r.MfaCodeForm.Error)||r.IsValidationPending]),Yr(()=>r.IsValidationPending?Zr(["children",_r.Children.toArray([h("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","px-3"]),children:_r.Children.toArray([h("div",{className:gr(" ",["dot-flashing"])})])})])]):Zr(["children","Verify"])))))))))))))])}),h("div",{className:"invalid-feedback text-left",children:Ir(r.MfaCodeForm.Error,"Incorrect validation code")})])})])})):Zr(h("div",{className:gr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["d-flex","justify-content-center","align-items-center","position-relative","py-2"]),children:_r.Children.toArray([h("div",{className:gr(" ",["dot-flashing my-4"])})])}),h("h4",{className:gr(" ",["my-4","font-weight-normal"]),children:"Verifying your invite"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"Hold tight. It won't be long."})])}))),Yr(()=>{let e,t;return Zr(h("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e=ur(ar("Flare HR Pty Ltd © 2015-%P()",[(t=zn(),Fn(t))])),h("small",{children:[e]}))])}))}))}))))})])})])}))))))))})}function $d(){return Ui(()=>{Vd(0)}),h("div",{className:gr(" ",["text-center","mt-5"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","justify-content-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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 qd(e){this.message=e}qd.prototype=new Error,qd.prototype.name="InvalidCharacterError";var Yd="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new qd("'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 Xd(e){this.message=e}Xd.prototype=new Error,Xd.prototype.name="InvalidTokenError";var Zd=function(e,t){if("string"!=typeof e)throw new Xd("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(Yd(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 Yd(t)}}(e.split(".")[n]))}catch(e){throw new Xd("Invalid token specified: "+e.message)}};function Jd(e){return t=void 0,n=e,es.Bind(n,e=>es.Return(Lc(t,e)));var t,n}function Kd(e,t){return function(e,t,n){for(;;){const r=e,o=t,i=n;if(null==i.tail)return r;{const s=Bc(0,()=>rs(e=>Hc(0,r,t=>Ci(t,mi(e))),o(i.head)))();if(1===s.tag)return s;e=s,t=o,n=i.tail}}}(new ts(0,pi()),e,t)}function Qd(e){return Kd(e=>e,e)}function eh(e,t){return null!=t?ns(e=>Cr(e),e(xr(t))):new ts(0,void 0)}class th extends Qn{constructor(e,t,n){super(),this.CompanyName=e,this.Logo=t,this.Support=n}}function nh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteBrandingDto",[],th,()=>[["CompanyName",yo(Co)],["Logo",yo(Co)],["Support",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SupportDto",[],rh,()=>[["Email",yo(Co)],["Phone",yo(Co)]]))]])}class rh extends Qn{constructor(e,t){super(),this.Email=e,this.Phone=t}}function oh(e){return Bc(0,()=>rs(t=>rs(n=>Hc(0,eh(e=>function(e){return Bc(0,()=>rs(t=>Hc(0,eh($a,e.Phone),e=>new Ha(t,e)),eh(Ga,e.Email)))()}(e),e.Support),e=>new Fa(n,t,e)),eh(e=>function(e){return wr(e)?new ts(1,"Invalid company name."):new ts(0,new Ba(0,e))}(e),e.CompanyName)),eh(e=>qa(e),e.Logo)))()}class ih extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.NumberOfAttempts=0|n,this.DateOfLastAttempt=r}}class sh extends Qn{constructor(e,t,n,r){super(),this.Code=e,this.DateIssued=t,this.SecondFactor=n,this.Branding=r}}function ah(e){return Bc(0,()=>rs(t=>rs(n=>Hc(0,eh(e=>oh(e),e.Branding),r=>new La(t,e.DateIssued,n,r)),eh(e=>function(e){return Bc(0,()=>Hc(0,Na(e.Code),t=>new Da(t,e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)))()}(e),e.SecondFactor)),za(e.Code)))()}class ch extends Qn{constructor(e,t,n){super(),this.Id=e,this.DisplayName=t,this.ComponentTagName=n}}function uh(e){return Bc(0,()=>rs(t=>{const n=new bf(t,e.DisplayName,e.ComponentTagName);return Ai(n,Tf,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)})?new ts(0,n):new ts(1,"Step is not registered.")},Of(e.Id)))()}class lh extends Qn{constructor(e,t){super(),this.ActivatedDates=e,this.CompletedSteps=t}}class fh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Inactive","Active","Complete","Abandoned"]}}function dh(e){switch(e.tag){case 1:{const t=function(e){return Bc(0,()=>Hc(0,Qd(xi(e=>Bc(0,()=>Hc(0,Of(e[0]),t=>[t,e[1]]))(),e.CompletedSteps)),t=>new Ff(e.ActivatedDates,t)))()}(e.fields[0]);return 1===t.tag?new ts(1,t.fields[0]):new ts(0,new Uf(1,t.fields[0]))}case 2:return new ts(0,new Uf(2,e.fields[0]));case 3:return new ts(0,new Uf(3,e.fields[0]));default:return new ts(0,new Uf(0))}}class hh extends Qn{constructor(e,t,n){super(),this.Id=e,this.Name=t,this.Steps=n}}function ph(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],hh,()=>[["Id",mo("System.Guid")],["Name",Co],["Steps",_o(wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],ch,()=>[["Id",Co],["DisplayName",Co],["ComponentTagName",Co]]))]])}function mh(e){return Bc(0,()=>rs(t=>Hc(0,function(e){const t=new Pf(0,e);return Kr(t,jf.keys())?new ts(0,t):new ts(1,"Invalid Type")}(e.Id),n=>new Mf(n,e.Name,t)),Qd(xi(e=>uh(e),e.Steps))))()}class wh extends Qn{constructor(e,t){super(),this.Name=e,this.Value=t}}function gh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],wh,()=>[["Name",Co],["Value",Co]])}function vh(e){return qf(e.Name,e.Value)}class yh extends Qn{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 _h(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],yh,()=>[["Id",xo],["DateCreated",mo("System.DateTime")],["Configuration",ph()],["Status",go("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],fh,()=>[[],[["Item",wo("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],lh,()=>[["ActivatedDates",_o(mo("System.DateTime"))],["CompletedSteps",_o(vo(Co,mo("System.DateTime")))]])]],[["Item",mo("System.DateTime")]],[["Item",mo("System.DateTime")]]])],["Invite",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],sh,()=>[["Code",Co],["DateIssued",mo("System.DateTime")],["SecondFactor",yo(wo("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],ih,()=>[["Code",Co],["DateIssued",mo("System.DateTime")],["NumberOfAttempts",xo],["DateOfLastAttempt",yo(mo("System.DateTime"))]]))],["Branding",yo(nh())]]))],["Tags",yo(_o(gh()))],["Creator",yo(Co)]])}function bh(e){return Bc(0,()=>rs(t=>{const n=t;return rs(t=>{let r;const o=t;return rs(t=>rs(r=>Hc(0,eh(e=>Qd(xi(e=>vh(e),e)),e.Tags),o=>new Yf(Hf(e.Id),n,e.DateCreated,t,r,o,Er(e=>vf(e),e.Creator))),eh(e=>ah(e),e.Invite)),1===o.tag?(r=o.fields[0],Bc(0,()=>Hc(0,Qd(xi(e=>{const t=[e[0],e[1]],r=t[0];return Pi(e=>hn(e.Id,r),n.Steps)?new ts(0,[r,t[1]]):new ts(1,"Step id is not configured for this Process Instance.")},r.CompletedSteps)),e=>new Uf(1,new Ff(r.ActivatedDates,e))))()):new ts(0,o))},dh(e.Status))},mh(e.Configuration)))()}class Ch extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}class xh extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstance=t}}class Sh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CompleteStep","Complete"]}}const kh=e=>bh(e);class Ih extends Qn{constructor(e,t){super(),this.CssOverrides=e,this.ProcessInstanceDto=t}}function Eh(){return wo("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],Ih,()=>[["CssOverrides",_o(Co)],["ProcessInstanceDto",_h()]])}class Th extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["WorkflowInstanceStepActivated"]}}function Oh(){return go("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventDto",[],Th,()=>[[["Item",Co]]])}class Ah extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","PayEnrolment"]}}function Ph(e){return hn(e,Cf)?new ts(0,new Ah(0)):hn(e,xf)?new ts(0,new Ah(1)):hn(e,Sf)?new ts(0,new Ah(2)):hn(e,kf)?new ts(0,new Ah(3)):hn(e,If)?new ts(0,new Ah(4)):hn(e,Ef)?new ts(0,new Ah(5)):new ts(1,"Invalid step")}function Mh(e){switch(e.tag){case 1:return xf;case 2:return Sf;case 3:return kf;case 4:return If;case 5:return Ef;default:return Cf}}function Nh(e){return Qd(xi(e=>Ph(e),function(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return pi();default:{const n=xi(e=>e[0],t.fields[0].CompletedSteps);return Oi(e=>Ai(e.Id,n,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)}),e.Configuration.Steps)}}}(e)))}function Dh(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 Ef.DisplayName;default:return"Personal Details"}}function Rh(e){return Qd(xi(e=>Ph(e),e.Configuration.Steps))}class zh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Initialising","StepList","Step","CompletedAllSteps","Oops","AllDone"]}}class jh extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ActivateCallback","ShowView","StepCompletionEventCallback","CompleteStep","CompleteWorkflow","SendAnalyticsEvent","AppendTrailingSlashToUrl"]}}class Lh extends Qn{constructor(e,t,n,r,o){super(),this.ProfileId=e,this.ProcessInstanceId=t,this.ProcessInstance=n,this.CurrentView=r,this.CssOverrides=o}}function Fh(e){return Array.from(e)}function Uh(e){return String(e)}function Bh(e){return String(e)}function Hh(e){return String(e)}function Wh(e){return String(e)}function Vh(){return null}function Gh(e,t){return JSON.stringify(t,_n(2,null),Cr(e))}function $h(e){return t=>{return n=Er(e,t),r=()=>null,null!=n?xr(n):r();var n,r}}function qh(e,t,n,r){const o=new er(null),i=da(Io(r),o,e);let s;if(Uo(r)){const e=ui(e=>{const r=fu(t,ko(e)),o=Yh(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}},jo(r));s=t=>Qr(_n(2,Sn(e=>n=>n(t,e),[0,[0,2]])),{},e)}else{if(!Fo(r)){let e;const t=Io(r);throw e=ur(sr("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=zo(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 ko(s);{const e=0|c,r=Ho(s),o=ci(new Array(e+1),0,e+1,null);o[0]=ko(s);for(let s=1;s<=e;s++){const e=Yh(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function Yh(e,t,n,r){const o=Io(r),i=ha(o,e);if(null==i){if(Eo(r)){const o=Yh(e,t,n,To(r));return e=>Fh(no(o,e))}if(Ao(r)){const e=Io(Mo(r));if("System.SByte"===e)return e=>Uh(e);if("System.Byte"===e)return e=>Bh(e);if("System.Int16"===e)return e=>Hh(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=Io(r),t=lr(sr("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(Oo(r)){if(Bo(r)){const o=ui(r=>Yh(e,t,n,r),Lo(r));return e=>Fh(ro((e,t)=>o[e](t),e))}{const o=Io(Po(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new en(()=>$h(Yh(e,t,n,fo(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=Yh(e,t,n,fo(r)[0]);return e=>Fh(no(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=fo(r)[0],i=Yh(e,t,n,fo(r)[1]);if("System.String"===Io(o)||"System.Guid"===Io(o))return e=>Qr((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e},{},e);{let r;const s=Yh(e,t,n,o);return r=e=>s(e),e=>Fh(no(e=>{const t=e;return[r(t[0]),i(t[1])]},e))}}return qh(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Vh:"System.String"===o?e=>e:"System.SByte"===o?e=>Uh(e):"System.Byte"===o?e=>Bh(e):"System.Int16"===o?e=>Hh(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=>Pn(e,"O"):"System.DateTimeOffset"===o?e=>Pn(e,"O"):"System.TimeSpan"===o?e=>Sa(e):"System.Guid"===o?e=>e:"System.Object"===o?e=>e:qh(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Xh(e){return null!=e?pa((e,t)=>new er(t[0]),e.Coders):ma()}function Zh(e,t,n,r,o,i){return Gh(e,function(e,t,n,r){const o=Ir(e,new au(0)),i=Ir(n,!0),s=xr(r).ResolveType();return Yh(Xh(t),o,i,s)}(n,r,o,i)(t))}function Jh(e,t){return Gc(0,()=>{const n=ru((r=ur(sr("Bearer %s"))(e),new qc(0,"Authorization",r)),t);var r;const o=es.Bind(iu(n),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(o,e=>{let t;const r=e;return 1===r.tag?es.Return(new ts(1,r.fields[0])):es.ReturnFrom((t=r.fields[0],429===t.statusCode||t.statusCode>=500?es.Bind(iu(n),e=>es.Return(new ts(0,e))):Vc(0,t)))}))})}function Kh(e,t,n){return Gc(0,()=>{let r;const o=Jh(n,(r=ou(new Yc(1,Zh(0,mi(function(e){return 1===e.tag?new Sh(1):new Sh(0,Af(e.fields[0]))}(e)),new au(1),void 0,void 0,{ResolveType:()=>_o(go("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandDto",[],Sh,()=>[[["Item",Co]],[]]))})),nu(new $c(1),tu(function(e){const t=0|Wf(e);return ur(sr("%s/workflows/backend/%i"))(Oc)(t)}(t)))),ru(Kc("application/json"),r)));return es.Delay(()=>es.Bind(o,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(rs(kh,lf(t.responseText,new au(1),void 0,{ResolveType:_h}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function Qh(e,t){return Gc(0,()=>{const n=Jh(t,nu(new $c(1),tu(function(e){const t=0|Wf(e);return ur(sr("%s/workflows/backend/process-instances/%i/activate"))(Oc)(t)}(e))));return es.Delay(()=>es.Bind(n,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ns(e=>function(e){return new xh(e.CssOverrides,(t=e=>{throw new Error(e)},1===(n=bh(e.ProcessInstanceDto)).tag?t(n.fields[0]):n.fields[0]));var t,n}(e),lf(t.responseText,new au(1),void 0,{ResolveType:Eh}))):es.Return(new ts(1,"Unexpected response from backend"))))}))})}function ep(e,t,n){return Jd(es.Bind(Gc(0,()=>{let r;return Jh(e,(r=ou(new Yc(1,Zh(0,mi(n),new au(1),void 0,void 0,{ResolveType:()=>_o(Oh())})),nu(new $c(1),tu(function(e){const t=0|Wf(e);return ur(sr("%s/workflows/backend/process-instances/%i/analytics-events"))(Oc)(t)}(t)))),ru(Kc("application/json"),r)))}),e=>es.Return(ns(e=>{},e))))}function tp(e,t,n,r){let o,i,s;switch(n.tag){case 1:{const e=n.fields[0];return[new Lh(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,e,r.CssOverrides),2===e.tag?ac(new jh(5,r.ProcessInstanceId,new Th(0,Af(Mh(e.fields[0]).Id)))):oc()]}case 5:return uc(ep(e,n.fields[0],n.fields[1])),[r,oc()];case 2:return[r,(o=r.ProcessInstance,2===o.tag&&0===o.fields[0].tag?(i=ns(e=>e.Id,Xf(n.fields[0].target.tagName,o.fields[0].fields[0])),1===i.tag?oc():ac(new jh(3,i.fields[0],new wa(0)))):oc())];case 3:{const t=n.fields[0],o=n.fields[1];switch(o.tag){case 1:return[r,oc()];case 2:{const e=o.fields[0],n=zc(e=>e,e=>new jh(1,new zh(4,e)),Bc(0,()=>rs(e=>{const t=e,n=Zf(t);return rs(e=>{const r=e;return rs(e=>{const t=e;return 1===bi(t)?Uc(0,new jh(4,new wa(0))):null==n?Uc(0,new jh(1,new zh(3,r,t))):Hc(0,Ph(n),e=>new jh(1,new zh(2,e,e,r,t)))},Rh(t))},Nh(t))},e))());return zc(e=>{Hd(t,e,r.ProfileId)},e=>{},e),[new Lh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(n)]}case 3:return[new Lh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new jh(1,new zh(4,o.fields[0].message)))];default:return[r,cc(e=>{uc(e)},e=>function(e,t,n){return Kh(new Ch(0,t),e,n)}(r.ProcessInstanceId,t,e),e,e=>new jh(3,t,new wa(2,e)),e=>new jh(3,t,new wa(3,e)))]}}case 4:{const o=n.fields[0];switch(o.tag){case 1:return[r,oc()];case 2:{const e=o.fields[0];return 1===e.tag?[new Lh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new jh(1,new zh(4,e.fields[0])))]:(Wd(e.fields[0],r.ProfileId),[new Lh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),1===t.tag?ac(new jh(1,new zh(5))):oc()])}case 3:return[new Lh(r.ProfileId,r.ProcessInstanceId,o,r.CurrentView,r.CssOverrides),ac(new jh(1,new zh(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 Wd(o,r.ProfileId),[r,oc()];case 1:return[r,cc(e=>{uc(e)},e=>function(e,t){return Kh(new Ch(1),e,t)}(r.ProcessInstanceId,e),e,e=>new jh(4,new wa(2,e)),e=>new jh(4,new wa(3,e)))]}}}}case 6:return[r,(s=window.location.pathname+"/"+window.location.search+window.location.hash,mi(e=>{bc(mi(s),1,2)}))];default:{const e=n.fields[0];let t;switch(e.tag){case 3:t=[r,ac(new jh(1,new zh(4,e.fields[0].message)))];break;case 0:case 1:t=[r,oc()];break;default:{const n=zc(e=>e,e=>[r,new zh(4,e)],Bc(0,()=>rs(e=>{const t=e,n=new Lh(r.ProfileId,r.ProcessInstanceId,r.ProcessInstance,r.CurrentView,t.CssOverrides);return rs(e=>{const r=e;return rs(e=>{let o,i;const s=e;return Hc(0,(o=Zf(t.ProcessInstance),null==o?new ts(0,new zh(3,r,s)):(i=o,Bc(0,()=>Hc(0,Ph(i),e=>{const t=e,n=[Ec.clientWidth<768,bi(s)];return 1===n[1]?(document.title=i.DisplayName,new zh(2,t,t,r,s)):new zh(n[0]?1:2,t,t,r,s)}))())),e=>[n,e])},Rh(t.ProcessInstance))},Nh(t.ProcessInstance))},e.fields[0]))());t=[n[0],ac(new jh(1,n[1]))]}}const o=t[0];return[new Lh(o.ProfileId,o.ProcessInstanceId,ga(e=>ns(e=>e.ProcessInstance,e),e),o.CurrentView,o.CssOverrides),t[1]]}}}var np;function rp(){return(rp=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 op,ip,sp,ap=function(e){return h("svg",rp({width:17,height:14,xmlns:"http://www.w3.org/2000/svg"},e),np||(np=h("path",{d:"M2 8l4 4 9-10",strokeWidth:3,stroke:"#FFF",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"})))};function cp(){return(cp=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 up,lp,fp=function(e){return h("svg",cp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),op||(op=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"})),ip||(ip=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"})),sp||(sp=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 dp(){return(dp=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 hp,pp,mp,wp=function(e){return h("svg",dp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),up||(up=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"}))),lp||(lp=h("defs",null,h("clipPath",{id:"icon-emergency-contacts_svg__clip0"},h("path",{fill:"#fff",d:"M0 0h36v36H0z"})))))};function gp(){return(gp=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 vp,yp,_p=function(e){return h("svg",gp({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),hp||(hp=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"})),pp||(pp=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"})),mp||(mp=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 bp(){return(bp=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 Cp,xp,Sp,kp=function(e){return h("svg",bp({viewBox:"0 0 34 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),vp||(vp=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 Ip(){return(Ip=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 Ep=function(e){return h("svg",Ip({viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Cp||(Cp=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"})),xp||(xp=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"})),Sp||(Sp=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 Tp extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Height","Width"]}}function Op(e){return h(ap,Zo(e,1))}class Ap extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Active","Complete","Editing","ReadyToComplete","ToComplete"]}}class Pp extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ToBeCompleted","CompletedAll"]}}function Mp(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 Np(e,t){const n=t.state;if(1===n.tag){if(hn(n.fields[0],e))return new Ap(2);if(1===n.tag)return new Ap(1);throw new Error("The match cases were incomplete")}return function(e,t,n,r){const o=Ai(e,r,{Equals:(e,t)=>hn(e,t),GetHashCode:e=>ln(e)});let i;switch(i=o?1:hn(t,e)?0:1,i){case 0:return new Ap(0);case 1:{let r;switch(r=o&&hn(t,e)?0:1,r){case 0:return new Ap(2);case 1:return hn(n,e)?new Ap(3):new Ap(o?1:4)}}}}(e,n.fields[0],n.fields[1],n.fields[2])}function Dp(e,t,n){let r;t.dispatch((r=t.state,1===r.tag?new jh(1,new zh(2,e,void 0,r.fields[1],r.fields[2])):new jh(1,new zh(2,e,r.fields[1],r.fields[2],r.fields[3]))))}function Rp(e,t){switch(t.tag){case 1:return n=[new Tp(0,e),new Tp(1,e)],h(wp,Zo(n,1));case 2:return function(e){return h(_p,Zo(e,1))}([new Tp(0,e),new Tp(1,e)]);case 3:return function(e){return h(kp,Zo(e,1))}([new Tp(0,e),new Tp(1,e)]);case 4:return function(e){return h(Ep,Zo(e,1))}([new Tp(0,e),new Tp(1,e)]);case 5:return null;default:return function(e){return h(fp,Zo(e,1))}([new Tp(0,e),new Tp(1,e)])}var n}function zp(e){const t=_i(Yr(()=>Gr(no(t=>function(e,t){const n=hn(e,new Ah(4));return h("div",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["row","mb-3","align-items-center"])]),Yr(()=>{let r;return Gr(Zr(["children",_r.Children.toArray([h("div",{className:gr(" ",["col-auto"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(Zr(h("span",{className:gr(" ",_i(Yr(()=>{switch(Np(e,t).tag){case 4:return Zr("fl-step-tick-to-complete");case 0:return Zr("fl-step-tick-active");case 1:case 2:return Zr("fl-step-tick-complete-or-editing");default:return Zr("fl-step-tick-to-complete")}}))),children:_r.Children.toArray([Op([["style",{transform:"scale(0.7)"}],["className",gr(" ",_i(Yr(()=>{switch(Np(e,t).tag){case 4:case 0:return Zr("invisible");case 1:case 2:return Zr("visible");default:return Zr("invisible")}})))]])])})),Yr(()=>n?Xr():Zr(h("div",{className:gr(" ",["fl-step-tick-progress-bar"])}))))))))}),h("div",{className:gr(" ",["col-9"]),children:_r.Children.toArray([h("button",{className:gr(" ",_i(Yr(()=>Gr(Zr("btn"),Yr(()=>Gr(Zr("btn-block"),Yr(()=>Gr(Zr("text-left"),Yr(()=>Gr(Zr("text-nowrap"),Yr(()=>{switch(Np(e,t).tag){case 3:return Zr("fl-step-btn-ready-or-complete");case 0:case 2:return Zr("fl-step-btn-active-or-editing");case 1:return Zr("fl-step-btn-ready-or-complete");default:return Zr(ur(sr("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))),children:_r.Children.toArray([h("span",{className:gr(" ",["mr-2"]),children:_r.Children.toArray([Rp(36,e)])}),(r=Dh(e),h("span",{children:[r]}))])})])})])]),Yr(()=>hn(Np(e,t),new Ap(4))?Xr():Zr(["onClick",n=>{Dp(e,t)}])))}))))))}(t,e),Mp(e.state)),Yr(()=>1===e.state.tag?Zr(h("button",{className:gr(" ",["col-12","btn","is-primary","btn-block"]),style:{marginTop:"2rem"},children:"Complete Onboarding",onClick:t=>{e.dispatch(new jh(4,new wa(0)))}})):Zr(null)))));return h("div",{children:_r.Children.toArray(Array.from(t))})}function jp(e){return!(bi(Mp(e.state))<=3)}function Lp(e){return jp(e)?25:36}function Fp(e,t){return jp(e)?Gr(["small"],t):t}function Up(e){return h("div",{className:gr(" ",["row","mb-2"]),children:_r.Children.toArray([h("div",{className:gr(" ",["d-flex","w-100","mt-1"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>no(t=>function(e,t){return h("div",yn(_i(Yr(()=>Gr(Zr(["className",gr(" ",["flex-fill","mx-1"])]),Yr(()=>Gr(Zr(["children",_r.Children.toArray([h("button",{className:gr(" ",_i(Yr(()=>Gr(Zr("btn"),Yr(()=>Gr(Zr("btn-block"),Yr(()=>Gr(Zr("text-center"),Yr(()=>Gr(Zr("text-nowrap"),Yr(()=>Gr(Zr("border"),Yr(()=>{switch(Np(e,t).tag){case 3:return Zr("fl-step-btn-ready-or-complete");case 0:case 2:return Zr("fl-step-btn-active-or-editing");case 1:return Zr("fl-step-btn-ready-or-complete");default:return Zr(ur(sr("%s %s"))("disabled")("fl-step-btn-to-complete"))}}))))))))))))),children:_r.Children.toArray([h("span",{className:gr(" ",["mr-md-2"]),children:_r.Children.toArray([Rp(Lp(t),e)])}),h("span",{children:Dh(e),className:gr(" ",Fp(t,["d-none","d-md-inline-block"]))})])})])]),Yr(()=>hn(Np(e,t),new Ap(4))?Xr():Zr(["onClick",n=>{Dp(e,t)}])))))))))}(t,e),Mp(e.state))))))})])})}var Bp=n(1),Hp=n(0),Wp=n.n(Hp);function Vp(e){return(Vp="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 Gp(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 qp(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){Gp(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 Yp(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 Xp(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 Zp(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 Jp(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=Zp(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 Kp=!1;try{Kp=!0}catch(e){}function Qp(e){return Bp.b.icon?Bp.b.icon(e):null===e?null:"object"===Vp(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 em(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Gp({},e,t):{}}function tm(e){var t=e.forwardedRef,n=Yp(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,c=n.titleId,u=Qp(r),l=em("classes",[].concat(Xp(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=(Gp(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),Gp(t,"fa-rotate-".concat(l),null!=l&&0!==l),Gp(t,"fa-pull-".concat(f),null!=f),Gp(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)),Xp(s.split(" ")))),f=em("transform","string"==typeof n.transform?Bp.b.transform(n.transform):n.transform),d=em("mask",Qp(o)),h=Object(Bp.a)(u,qp({},l,{},f,{},d,{symbol:i,title:a,titleId:c}));if(!h)return function(){var e;!Kp&&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){tm.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),nm(p[0],m)}tm.displayName="FontAwesomeIcon",tm.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},tm.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 nm=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=Jp(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Zp(t)]=r}return e}),{attrs:{}}),s=r.style,a=void 0===s?{}:s,c=Yp(r,["style"]);return i.attrs.style=qp({},i.attrs.style,{},a),t.apply(void 0,[n.tag,qp({},i.attrs,{},c)].concat(Xp(o)))}.bind(null,je.createElement),rm={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=(rm=[],h(Qp,{icon:tm},...rm));var rm,om,im,sm,am,cm;function um(e){let t;const n=e.dispatch,r=e.allSteps,o=e.completedSteps,i=e.readyToCompleteStep,s=e.step;return h("div",{className:gr(" ",["row","mb-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-2"]),children:_r.Children.toArray([nm]),onClick:e=>{n(new Rh(1,function(e,t,n,r){return null==t?new Dh(3,n,r):new Dh(1,e,t,n,r)}(s,i,o,r)))}}),h("div",{className:gr(" ",["col-8","text-center"]),children:_r.Children.toArray([(t=Ph(s),h("b",{children:[t]}))])}),h("div",{className:gr(" ",["col-2"])})])})}class lm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token"]}}class fm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["app-base-url","slate-join-app-url"]}}function dm(e,t,n){return h(1===e.tag?Sf.ComponentTagName:2===e.tag?kf.ComponentTagName:3===e.tag?If.ComponentTagName:4===e.tag?Ef.ComponentTagName:xf.ComponentTagName,Zo(t,1),...n)}function hm(e){let t;return h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["Well done!"]}),(t=Ii(["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:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(Dp,e)])})])})])})}function pm(){let e;return h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["You're all set!"]}),(e=Ii(["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 mm(e){const t=e.accessToken,n=e.appMode,r=bs(function(e){const t=Yd(e);return[new jh(yf(t.sub),Uf(t.workflow.instanceId),new wa(0),new Dh(0),pi()),oc()]}(t),(e,r)=>Qh(t,n,e,r),[]),o=r[0],i=r[1];Hi(ya(()=>function(e,t){return Jh(e,t)}(o.ProcessInstanceId,t),e=>{i(new Rh(0,e))}),[]),Hi(()=>{(window.ResizeObserver?new window.ResizeObserver(()=>{Fd()}):new Rd(()=>{Fd()})).observe(document.body)},[]),Hi(()=>{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:bc(mi(Nc(n)),2,2)}},[o.CurrentView,o.ProcessInstance]),Ui(()=>{window.addEventListener("step-completion",e=>{i(new Rh(2,e))})});switch(o.ProcessInstance.tag){case 1:return h("div",{children:["Please wait..."]});case 3:case 2:return h("div",{className:gr(" ",["container-xl","pb-4"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(no(e=>h("style",{children:[e]}),o.CssOverrides),Yr(()=>{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 Gr(Zr(h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(Dp,{dispatch:i,state:null==t?new Op(1,e,n,o):new Op(0,e,t,n,o)})])})])})])})),Yr(()=>(Hd(0),Xr())))}case 2:{const o=r.fields[0],s=r.fields[1],a=r.fields[2],c=r.fields[3];return Zr((e=Ii([h("div",{className:gr(" ",["pt-2"]),children:_r.Children.toArray([h(um,{step:o,readyToCompleteStep:s,completedSteps:a,allSteps:c,dispatch:i}),h(Lp,{dispatch:i,state:null==s?new Op(1,o,a,c):new Op(0,o,s,a,c)})])}),h("div",{className:gr(" ",["row","px-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","rounded-lg","border","p-3"]),style:{backgroundColor:"#FFFFFF"},children:_r.Children.toArray(Array.from(_i(Yr(()=>{if(4===o.tag){if(0===jc.tag){const e=jc.fields[0];if(pr(window.location.pathname,"/")){const r=2===e.tag?Rc(e):3===e.tag?"preprod-":Rc(e)+"-";return Gr(Zr(dm(new Th(4),[new lm(1,t),new lm(0,ur(sr("%s/super-selection/backend/v1.0/"))(Oc)),new fm(0,Nc(n)),new fm(1,ur(sr("https://%sjoin.slatesuper.com.au/confirm"))(r))],[])),Yr(()=>(Hd(2500),Xr())))}return i(new Rh(6)),Xr()}return i(new Rh(1,new Dh(4,jc.fields[0]))),Xr()}return Gr(Zr(dm(o,[new lm(1,t),new lm(0,Oc)],[])),Yr(()=>(Hd(1500),Xr())))}))))})])})]),h("div",{children:_r.Children.toArray(Array.from(e))})))}case 3:return Gr(Zr(h("div",{className:gr(" ",["pt-5"]),children:_r.Children.toArray([h(hm,{dispatch:i,state:new Op(1,void 0,r.fields[0],r.fields[1])})])})),Yr(()=>(Hd(0),Xr())));case 4:return Gr(Zr(h("div",{className:gr(" ",["text-center","mt-5"]),children:"We had an issue. Please try again shortly."})),Yr(()=>(Hd(0),Xr())));case 5:return Zr(h("div",{className:gr(" ",["mt-5"]),children:_r.Children.toArray([h(pm,null)])}));default:return Zr(h("div",{children:["Please wait..."]}))}}))))))});default:return h("div",{children:["Please wait..."]})}}class wm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class gm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class vm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}function ym(e){return new vm(0,e)}class _m extends Qn{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 bm(){return wo("Workflows.UI.Auth.Types.Credentials",[],_m,()=>[["id_token",Co],["access_token",Co],["expires_in",So],["refresh_token",yo(Co)],["scope",Co],["token_type",Co]])}class Cm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}class xm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","InviteValidation","AuthCodeExchange","NotFound","LoggedOut"]}}function Sm(e){let t,n,r,o,i,s,a;const c=function(e){let t,n,r;switch(null!=e.tail&&"workflows"===e.head&&null!=e.tail.tail?"app"===e.tail.head?(t=0,n=e.tail.tail):"embed"===e.tail.head&&null!=e.tail.tail.tail&&"v1.0"===e.tail.tail.head?(t=1,r=e.tail.tail.tail):t=2:t=2,t){case 0:return new os(1,n);case 1:return new os(0,r);case 2:return new os(2,void 0)}}(e);return 1===c.tag?[null!=c.fields[0].tail?(t=Ic(c.fields[0].head),null!=t&&null!=t.tail&&"invite"===t.head[0]&&null==t.tail.tail&&null==c.fields[0].tail.tail?(n=t.head[1],r=ja(n),1===r.tag?new xm(3):new xm(1,r.fields[0])):null!=c.fields[0].tail?(o=Ic(c.fields[0].head),null!=o&&null!=o.tail&&"code"===o.head[0]&&null==o.tail.tail&&null==c.fields[0].tail.tail?(i=o.head[1],new xm(2,ym(i))):new xm(0)):new xm(0)):null!=c.fields[0].tail?(o=Ic(c.fields[0].head),null!=o&&null!=o.tail&&"code"===o.head[0]&&null==o.tail.tail&&null==c.fields[0].tail.tail?(i=o.head[1],new xm(2,ym(i))):new xm(0)):new xm(0),new Pc(1)]:2===c.tag?[new xm(3),new Pc(2)]:[null!=c.fields[0].tail&&null!=c.fields[0].tail.tail?(s=Ic(c.fields[0].tail.head),null!=s&&null!=s.tail&&"code"===s.head[0]&&null!=s.tail.tail&&"scope"===s.tail.head[0]&&null!=s.tail.tail.tail&&"session_state"===s.tail.tail.head[0]&&null==s.tail.tail.tail.tail&&null==c.fields[0].tail.tail.tail?(a=s.head[1],new xm(2,ym(a))):new xm(0)):new xm(0),new Pc(0)]}class km extends Qn{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class Im extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut"]}}class Em extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Tm{constructor(e){this.state=new Em(0,ci(new Array(vn((e,t)=>mn(e,t),e,10)),0,vn((e,t)=>mn(e,t),e,10),null),0)}}function Om(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 Em(0,o,n):new Em(1,o,n,i),Cr(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 Em(1,(r=s,o=a,Array.from(Yr(()=>Gr(io(r,o),Yr(()=>Gr(ao(r,o),Yr(()=>qr(e=>Zr(null),oo(0,1,o.length))))))))),a.length,0):new Em(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 Em(1,o,i,r)}var r,o}class Mm extends Qn{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 Pm(e,t){return new Mm(t.init,t.update,t.subscribe,Cn(2,t.view),e,t.onError,t.syncDispatch)}function Nm(e){return bn(2,Cn(2,e.view))}function Dm(e,t){const n=t.init(e),r=n[0],o=new Tm(10);let i=!1,s=r;const a=xn(1,t.syncDispatch,[e=>{if(i)Am(o,e);else{i=!0;let n=Cr(e);for(;null!=n;){const e=xr(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),rc(n=>{t.onError([ur(sr("Error in command while handling: %A"))(e),n])},a,n[1]),s=r}catch(n){t.onError([ur(sr("Unable to process the message: %A"))(e),n])}n=Om(o)}i=!1}}]);t.setState(r,a),rc(e=>{t.onError(["Error intitializing:",e])},a,sc(Ii([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),oc()}})(),n[1]])))}class Rm extends Qn{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class jm extends w{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function zm(e,t,n,r){return h(jm,new Rm(n,()=>t(n,r),e))}function Lm(e,t,n){return Pm((r,o)=>{Se(e((e,t)=>e===t,_n(2,Nm(n)),r,o),document.getElementById(t))},n)}function Fm(e,t){const n=encodeURIComponent(t.fields[0]);const r=encodeURIComponent("apollo-workflows-app"),o=encodeURIComponent((i=new Pc(0),ur(ar("%P()//%P()%P()",[window.location.protocol,window.location.host,Nc(i)]))));var i;return $c(0,()=>{let e,t;const i=es.Bind(su((t=ru(new qc(1),nu(ur(ar("%P()/connect/token",[Tc])))),e=ou(Qc("application/x-www-form-urlencoded"),t),iu(new Xc(1,ur(ar("grant_type=authorization_code&code=%P()&client_id=%P()&redirect_uri=%P()",[n,r,o]))),e))),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(i,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(ff(t.responseText,void 0,void 0,{ResolveType:bm})):es.Return(new ts(1,"Unexpected result from backend"))))}))})}function Um(){return Tr(e=>{return 1===(t=ff(e,void 0,void 0,{ResolveType:bm})).tag?void 0:Cr(t.fields[0]);var t},Sr(window.sessionStorage.getItem("credentials")))}function Bm(e,t){const n=function(e){return[new wm(0),ac(new Cm(0,new gm(0),e))]}(t);return[new km(e.CurrentPage,n[0],e.AppMode),ic(e=>new Im(1,e),n[1])]}function Hm(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 wm(2,new ts(1,ur(ar("SignIn failed: %P()",[e.fields[0].fields[0].fields[0]])))),oc()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new wm(2,new ts(0,e.fields[0].fields[0].fields[0])),(r=window.location.pathname,mi(e=>{bc(mi(r),1,2)}))]):[new wm(1),cc(e=>{uc(e)},e=>Fm(0,e),e.fields[1],t=>{const n=[new gm(1,t),e.fields[1]];return new Cm(0,n[0],n[1])},t=>{const n=[new gm(1,new ts(1,t.message)),e.fields[1]];return new Cm(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",Yh(0,new _m(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:bm})];window.sessionStorage.setItem(t[0],t[1])}(s)}return[new km(t.CurrentPage,r,t.AppMode),ic(e=>new Im(1,e),n[1])]}case 2:return[new km(new xm(4),t.Credentials,t.AppMode),oc()];default:{const n=Sm(e.fields[0])[0],r=new km(n,t.Credentials,t.AppMode);return 2===n.tag?Bm(r,n.fields[0]):[r,oc()]}}}function Wm(e,t){const n=h("div",{className:gr(" ",["workflows-app"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>{const t=e.CurrentPage;switch(t.tag){case 2:return Zr(function(){let e,t;return h("div",{className:gr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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:gr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("i",{className:gr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),h("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e=ur(ar("Flare HR Pty Ltd © 2015-%P()",[(t=jn(),Fn(t))])),h("small",{children:[e]}))])})])})])})])})])})}());case 1:return Zr(h(Wd,{inviteCode:t.fields[0]}));case 3:return Zr(h("h1",{children:["Not found"]}));case 4:return Zr(h(Vd,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 Zr(h(mm,{appMode:e.AppMode,accessToken:r.access_token}));case 1:return Zr(h("h1",{children:["Unauthorised"]}))}}}}))))});return xc({hashMode:2,onUrlChanged:e=>{t(new Im(0,e))},application:h(m,{},n)})}!function(e){Dm(void 0,e)}((om="workflows-app",sm=function(){const e=Sm(Cc(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new km(t,new wm(0),n);let o;switch(o=2===t.tag?0:1===t.tag?1:0===t.tag&&hn(n,new Pc(1))?2:3,o){case 0:return Bm(r,t.fields[0]);case 1:return[r,oc()];case 2:{const e=Um();return null==e?[r,ac(new Im(2))]:[new km(r.CurrentPage,new wm(2,new ts(0,e)),r.AppMode),oc()]}case 3:return[r,ac(new Im(2))]}},am=(e,t)=>Hm(e,t),cm=(e,t)=>Wm(e,t),im=new Mm(sm,am,e=>oc(),cm,(e,t)=>{cm(e,t)},e=>{tc(e[0],e[1])},_n(2,e=>e)),Lm((e,t,n,r)=>zm(e,t,n,r),om,im)))}]);
|
|
10
|
+
*/const om=(im=[],h(tm,{icon:rm},...im));var im;function sm(e){let t;const n=e.dispatch,r=e.allSteps,o=e.completedSteps,i=e.readyToCompleteStep,s=e.step;return h("div",{className:gr(" ",["row","mb-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-2"]),children:_r.Children.toArray([om]),onClick:e=>{n(new jh(1,function(e,t,n,r){return null==t?new zh(3,n,r):new zh(1,e,t,n,r)}(s,i,o,r)))}}),h("div",{className:gr(" ",["col-8","text-center"]),children:_r.Children.toArray([(t=Dh(s),h("b",{children:[t]}))])}),h("div",{className:gr(" ",["col-2"])})])})}class am extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token"]}}class cm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["app-base-url"]}}function um(e,t,n){return h(1===e.tag?xf.ComponentTagName:2===e.tag?Sf.ComponentTagName:3===e.tag?kf.ComponentTagName:4===e.tag?If.ComponentTagName:5===e.tag?Ef.ComponentTagName:Cf.ComponentTagName,Zo(t,1),...n)}function lm(e){let t;return h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["Well done!"]}),(t=Ii(["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:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(zp,e)])})])})])})}function fm(){let e;return h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("h4",{children:["You're all set!"]}),(e=Ii(["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))}))])})}const dm=(Vd(1500),h("workplace-link",{},"Pay Enrolment",h("br",{}),h("button",{children:"Submit",onClick:e=>{document.getElementsByTagName("workplace-link")[0].dispatchEvent(new CustomEvent("step-completion",{bubbles:!0}))}})));function hm(e){const t=e.accessToken,n=e.appMode,r=bs(function(e){const t=Zd(e);return[new Lh(vf(t.sub),Hf(t.workflow.instanceId),new wa(0),new zh(0),pi()),oc()]}(t),(e,r)=>tp(t,n,e,r),[]),o=r[0],i=r[1];Hi(ya(()=>function(e,t){return Qh(e,t)}(o.ProcessInstanceId,t),e=>{i(new jh(0,e))}),[]),Hi(()=>{(window.ResizeObserver?new window.ResizeObserver(()=>{Bd()}):new jd(()=>{Bd()})).observe(document.body)},[]),Hi(()=>{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:bc(mi(Nc(n)),2,2)}},[o.CurrentView,o.ProcessInstance]),Ui(()=>{window.addEventListener("step-completion",e=>{i(new jh(2,e))})});switch(o.ProcessInstance.tag){case 1:return h("div",{children:["Please wait..."]});case 3:case 2:return h("div",{className:gr(" ",["container-xl","pb-4"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>Gr(no(e=>h("style",{children:[e]}),o.CssOverrides),Yr(()=>{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 Gr(Zr(h("div",{className:gr(" ",["text-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","justify-content-center","mt-4","mx-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","col-sm-6","col-md-4","text-left"]),children:_r.Children.toArray([h(zp,{dispatch:i,state:null==t?new Pp(1,e,n,o):new Pp(0,e,t,n,o)})])})])})])})),Yr(()=>(Vd(0),Xr())))}case 2:{const o=r.fields[0],s=r.fields[1],a=r.fields[2],c=r.fields[3];return Zr((e=_i(Yr(()=>Gr(bi(c)>1?Zr(h("div",{className:gr(" ",["pt-2"]),children:_r.Children.toArray([h(sm,{step:o,readyToCompleteStep:s,completedSteps:a,allSteps:c,dispatch:i}),h(Up,{dispatch:i,state:null==s?new Pp(1,o,a,c):new Pp(0,o,s,a,c)})])})):Xr(),Yr(()=>Zr(h("div",{className:gr(" ",["row","px-1"]),children:_r.Children.toArray([h("div",{className:gr(" ",["col-12","rounded-lg","border","p-3"]),style:{backgroundColor:"#FFFFFF"},children:_r.Children.toArray(Array.from(_i(Yr(()=>{switch(o.tag){case 4:return 0===Rc.tag?pr(window.location.pathname,"/")?Gr(Zr(um(new Ah(4),[new am(1,t),new am(0,ur(sr("%s/super-selection/backend/v1.0/"))(Oc)),new cm(0,Nc(n))],[])),Yr(()=>(Vd(2500),Xr()))):(i(new jh(6)),Xr()):(i(new jh(1,new zh(4,Rc.fields[0]))),Xr());case 5:return Zr(dm);default:return Gr(Zr(um(o,[new am(1,t),new am(0,Oc)],[])),Yr(()=>(Vd(1500),Xr())))}}))))})])})))))),h("div",{children:_r.Children.toArray(Array.from(e))})))}case 3:return Gr(Zr(h("div",{className:gr(" ",["pt-5"]),children:_r.Children.toArray([h(lm,{dispatch:i,state:new Pp(1,void 0,r.fields[0],r.fields[1])})])})),Yr(()=>(Vd(0),Xr())));case 4:return Gr(Zr(h("div",{className:gr(" ",["text-center","mt-5"]),children:"We had an issue. Please try again shortly."})),Yr(()=>(Vd(0),Xr())));case 5:return Zr(h("div",{className:gr(" ",["mt-5"]),children:_r.Children.toArray([h(fm,null)])}));default:return Zr(h("div",{children:["Please wait..."]}))}}))))))});default:return h("div",{children:["Please wait..."]})}}class pm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class mm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class wm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AuthCode"]}}function gm(e){return new wm(0,e)}class vm extends Qn{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 ym(){return wo("Workflows.UI.Auth.Types.Credentials",[],vm,()=>[["id_token",Co],["access_token",Co],["expires_in",So],["refresh_token",yo(Co)],["scope",Co],["token_type",Co]])}class _m extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SignIn"]}}class bm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","InviteValidation","AuthCodeExchange","NotFound","LoggedOut"]}}function Cm(e){let t,n,r,o,i,s,a;const c=function(e){let t,n,r;switch(null!=e.tail&&"workflows"===e.head&&null!=e.tail.tail?"app"===e.tail.head?(t=0,n=e.tail.tail):"embed"===e.tail.head&&null!=e.tail.tail.tail&&"v1.0"===e.tail.tail.head?(t=1,r=e.tail.tail.tail):t=2:t=2,t){case 0:return new os(1,n);case 1:return new os(0,r);case 2:return new os(2,void 0)}}(e);return 1===c.tag?[null!=c.fields[0].tail?(t=Ic(c.fields[0].head),null!=t&&null!=t.tail&&"invite"===t.head[0]&&null==t.tail.tail&&null==c.fields[0].tail.tail?(n=t.head[1],r=za(n),1===r.tag?new bm(3):new bm(1,r.fields[0])):null!=c.fields[0].tail?(o=Ic(c.fields[0].head),null!=o&&null!=o.tail&&"code"===o.head[0]&&null==o.tail.tail&&null==c.fields[0].tail.tail?(i=o.head[1],new bm(2,gm(i))):new bm(0)):new bm(0)):null!=c.fields[0].tail?(o=Ic(c.fields[0].head),null!=o&&null!=o.tail&&"code"===o.head[0]&&null==o.tail.tail&&null==c.fields[0].tail.tail?(i=o.head[1],new bm(2,gm(i))):new bm(0)):new bm(0),new Mc(1)]:2===c.tag?[new bm(3),new Mc(2)]:[null!=c.fields[0].tail&&null!=c.fields[0].tail.tail?(s=Ic(c.fields[0].tail.head),null!=s&&null!=s.tail&&"code"===s.head[0]&&null!=s.tail.tail&&"scope"===s.tail.head[0]&&null!=s.tail.tail.tail&&"session_state"===s.tail.tail.head[0]&&null==s.tail.tail.tail.tail&&null==c.fields[0].tail.tail.tail?(a=s.head[1],new bm(2,gm(a))):new bm(0)):new bm(0),new Mc(0)]}class xm extends Qn{constructor(e,t,n){super(),this.CurrentPage=e,this.Credentials=t,this.AppMode=n}}class Sm extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg","DisplayLoggedOut"]}}class km extends qn{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Im{constructor(e){this.state=new km(0,ci(new Array(vn((e,t)=>mn(e,t),e,10)),0,vn((e,t)=>mn(e,t),e,10),null),0)}}function Em(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 km(0,o,n):new km(1,o,n,i),Cr(o[r])}}function Tm(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 km(1,(r=s,o=a,Array.from(Yr(()=>Gr(io(r,o),Yr(()=>Gr(ao(r,o),Yr(()=>qr(e=>Zr(null),oo(0,1,o.length))))))))),a.length,0):new km(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 km(1,o,i,r)}var r,o}class Om extends Qn{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 Am(e,t){return new Om(t.init,t.update,t.subscribe,Cn(2,t.view),e,t.onError,t.syncDispatch)}function Pm(e){return bn(2,Cn(2,e.view))}function Mm(e,t){const n=t.init(e),r=n[0],o=new Im(10);let i=!1,s=r;const a=xn(1,t.syncDispatch,[e=>{if(i)Tm(o,e);else{i=!0;let n=Cr(e);for(;null!=n;){const e=xr(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),rc(n=>{t.onError([ur(sr("Error in command while handling: %A"))(e),n])},a,n[1]),s=r}catch(n){t.onError([ur(sr("Unable to process the message: %A"))(e),n])}n=Em(o)}i=!1}}]);t.setState(r,a),rc(e=>{t.onError(["Error intitializing:",e])},a,sc(Ii([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),oc()}})(),n[1]])))}class Nm extends Qn{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class Dm extends w{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}function Rm(e,t,n,r){return h(Dm,new Nm(n,()=>t(n,r),e))}function zm(e,t,n){return Am((r,o)=>{Se(e((e,t)=>e===t,_n(2,Pm(n)),r,o),document.getElementById(t))},n)}function jm(e,t){const n=encodeURIComponent(t.fields[0]);const r=encodeURIComponent("apollo-workflows-app"),o=encodeURIComponent((i=new Mc(0),ur(ar("%P()//%P()%P()",[window.location.protocol,window.location.host,Nc(i)]))));var i;return Gc(0,()=>{let e,t;const i=es.Bind(iu((t=nu(new $c(1),tu(ur(ar("%P()/connect/token",[Tc])))),e=ru(Kc("application/x-www-form-urlencoded"),t),ou(new Yc(1,ur(ar("grant_type=authorization_code&code=%P()&client_id=%P()&redirect_uri=%P()",[n,r,o]))),e))),e=>es.Return(new ts(0,e)));return es.Delay(()=>es.Bind(i,e=>{let t;const n=e;return 1===n.tag?es.Return(new ts(1,n.fields[0])):es.ReturnFrom((t=n.fields[0],200===t.statusCode?es.Return(lf(t.responseText,void 0,void 0,{ResolveType:ym})):es.Return(new ts(1,"Unexpected result from backend"))))}))})}function Lm(){return Tr(e=>{return 1===(t=lf(e,void 0,void 0,{ResolveType:ym})).tag?void 0:Cr(t.fields[0]);var t},Sr(window.sessionStorage.getItem("credentials")))}function Fm(e,t){const n=function(e){return[new pm(0),ac(new _m(0,new mm(0),e))]}(t);return[new xm(e.CurrentPage,n[0],e.AppMode),ic(e=>new Sm(1,e),n[1])]}function Um(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 pm(2,new ts(1,ur(ar("SignIn failed: %P()",[e.fields[0].fields[0].fields[0]])))),oc()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new pm(2,new ts(0,e.fields[0].fields[0].fields[0])),(r=window.location.pathname,mi(e=>{bc(mi(r),1,2)}))]):[new pm(1),cc(e=>{uc(e)},e=>jm(0,e),e.fields[1],t=>{const n=[new mm(1,t),e.fields[1]];return new _m(0,n[0],n[1])},t=>{const n=[new mm(1,new ts(1,t.message)),e.fields[1]];return new _m(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",Zh(0,new vm(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),void 0,void 0,void 0,{ResolveType:ym})];window.sessionStorage.setItem(t[0],t[1])}(s)}return[new xm(t.CurrentPage,r,t.AppMode),ic(e=>new Sm(1,e),n[1])]}case 2:return[new xm(new bm(4),t.Credentials,t.AppMode),oc()];default:{const n=Cm(e.fields[0])[0],r=new xm(n,t.Credentials,t.AppMode);return 2===n.tag?Fm(r,n.fields[0]):[r,oc()]}}}function Bm(e,t){const n=h("div",{className:gr(" ",["workflows-app"]),children:_r.Children.toArray(Array.from(_i(Yr(()=>{const t=e.CurrentPage;switch(t.tag){case 2:return Zr(function(){let e,t;return h("div",{className:gr(" ",["container","vh-100","fade-in"]),children:_r.Children.toArray([h("div",{className:gr(" ",["row","h-100","justify-content-center","align-items-center"]),children:_r.Children.toArray([h("div",{className:gr(" ",["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:gr(" ",["pt-4","text-center"]),children:_r.Children.toArray([h("i",{className:gr(" ",["fas","fa-5x","fa-shield-check","text-success"])}),h("h4",{className:gr(" ",["my-4","font-weight-normal","text-success"]),children:"Your identity is confirmed"}),h("p",{className:gr(" ",["mt-3","mb-5","text-muted"]),children:"You will be redirected in a moment."})])}),h("p",{className:gr(" ",["mt-5","mb-0","text-black-50","text-right"]),children:_r.Children.toArray([(e=ur(ar("Flare HR Pty Ltd © 2015-%P()",[(t=zn(),Fn(t))])),h("small",{children:[e]}))])})])})])})])})])})}());case 1:return Zr(h(Gd,{inviteCode:t.fields[0]}));case 3:return Zr(h("h1",{children:["Not found"]}));case 4:return Zr(h($d,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 Zr(h(hm,{appMode:e.AppMode,accessToken:r.access_token}));case 1:return Zr(h("h1",{children:["Unauthorised"]}))}}}}))))});return xc({hashMode:2,onUrlChanged:e=>{t(new Sm(0,e))},application:h(m,{},n)})}var Hm,Wm,Vm,Gm,$m;!function(e){Mm(void 0,e)}((Hm="workflows-app",Vm=function(){const e=Cm(Cc(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new xm(t,new pm(0),n);let o;switch(o=2===t.tag?0:1===t.tag?1:0===t.tag&&hn(n,new Mc(1))?2:3,o){case 0:return Fm(r,t.fields[0]);case 1:return[r,oc()];case 2:{const e=Lm();return null==e?[r,ac(new Sm(2))]:[new xm(r.CurrentPage,new pm(2,new ts(0,e)),r.AppMode),oc()]}case 3:return[r,ac(new Sm(2))]}},Gm=(e,t)=>Um(e,t),$m=(e,t)=>Bm(e,t),Wm=new Om(Vm,Gm,e=>oc(),$m,(e,t)=>{$m(e,t)},e=>{tc(e[0],e[1])},_n(2,e=>e)),zm((e,t,n,r)=>Rm(e,t,n,r),Hm,Wm)))}]);
|