@flarehr/tfn-declaration-app 0.1.454 → 0.1.455

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.
@@ -8,8 +8,8 @@
8
8
  * Font Awesome Free 5.15.4 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
10
  */
11
- 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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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){c(e,t,n[t])}))}return e}function a(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 c,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.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 _e})),n.d(t,"b",(function(){return je}));var s=function(){},l={},f={},d={mark:s,measure:s};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var p=(l.navigator||{}).userAgent,h=void 0===p?"":p,$=l,b=f,m=d,g=($.document,!!b.documentElement&&!!b.head&&"function"==typeof b.addEventListener&&"function"==typeof b.createElement),O=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),y=O.concat([11,12,13,14,15,16,17,18,19,20]),v={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},w=(["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",v.GROUP,v.SWAP_OPACITY,v.PRIMARY,v.SECONDARY].concat(O.map((function(e){return"".concat(e,"x")}))).concat(y.map((function(e){return"w-".concat(e)}))),$.FontAwesomeConfig||{});if(b&&"function"==typeof b.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=a(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=b.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(w[r]=o)}))}var j=u({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},w);j.autoReplaceSvg||(j.observeMutations=!1);var _=u({},j);$.FontAwesomeConfig=_;var E=$||{};E.___FONT_AWESOME___||(E.___FONT_AWESOME___={}),E.___FONT_AWESOME___.styles||(E.___FONT_AWESOME___.styles={}),E.___FONT_AWESOME___.hooks||(E.___FONT_AWESOME___.hooks={}),E.___FONT_AWESOME___.shims||(E.___FONT_AWESOME___.shims=[]);var x=E.___FONT_AWESOME___,S=[];g&&((b.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(b.readyState)||b.addEventListener("DOMContentLoaded",(function e(){b.removeEventListener("DOMContentLoaded",e),1,S.map((function(e){return e()}))})));var C,T=function(){},k=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,A=void 0===r?setTimeout:r,I=[];function N(){for(var e=0;e<I.length;e++)I[e][0](I[e][1]);I=[],C=!1}function P(e,t){I.push([e,t]),C||(C=!0,A(N,0))}function M(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){L(i,e)}}D(i,r)||("fulfilled"===n&&R(i,r),"rejected"===n&&L(i,r))}function D(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?F(e,r):R(e,r))}),(function(t){n||(n=!0,L(e,t))})),!0}}catch(t){return n||L(e,t),!0}return!1}function R(e,t){e!==t&&D(e,t)||F(e,t)}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,P(G,e))}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,P(U,e))}function B(e){e._then=e._then.forEach(M)}function G(e){e._state="fulfilled",B(e)}function U(t){t._state="rejected",B(t),!t._handled&&k&&e.process.emit("unhandledRejection",t._data,t)}function H(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){L(t,e)}try{e((function(e){R(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(T),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&k&&P(H,this)),"fulfilled"===this._state||"rejected"===this._state?P(M,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 c,u=0;u<e.length;u++)(c=e[u])&&"function"==typeof c.then?c.then(i(u),n):r[u]=c;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 q={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function z(e){if(e&&g){var t=b.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=b.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],c=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=i)}return b.head.insertBefore(t,r),e}}function W(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Y(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function J(e){return e.size!==q.size||e.x!==q.x||e.y!==q.y||e.rotate!==q.rotate||e.flipX||e.flipY}function Z(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(u)},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,c=e.transform,a=e.symbol,s=e.title,l=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,$=r.found?r:n,b=$.width,m=$.height,g="fak"===o,O=g?"":"fa-w-".concat(Math.ceil(b/m*16)),y=[_.replacementClass,i?"".concat(_.familyPrefix,"-").concat(i):"",O].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),v={children:[],attributes:u({},d.attributes,{"data-prefix":o,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(m)})},w=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(b/m*16*.0625,"em")}:{};h&&(v.attributes["data-fa-i2svg"]=""),s&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(f||W())},children:[s]});var j=u({},v,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:c,symbol:a,styles:u({},w,d.styles)}),E=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,c=e.maskId,a=e.transform,s=o.width,l=o.icon,f=i.width,d=i.icon,p=Z({transform:a,containerWidth:f,iconWidth:s}),h={tag:"rect",attributes:u({},K,{fill:"white"})},$=l.children?{children:l.children.map(Q)}:{},b={tag:"g",attributes:u({},p.inner),children:[Q(u({tag:l.tag,attributes:u({},l.attributes,p.path)},$))]},m={tag:"g",attributes:u({},p.outer),children:[b]},g="mask-".concat(c||W()),O="clip-".concat(c||W()),y={tag:"mask",attributes:u({},K,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:(t=d,"g"===t.tag?t.children:[t])},y]};return n.push(v,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(g,")")},K)}),{children:n,attributes:r}}(j):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=X(e.styles);if(i.length>0&&(n.style=i),J(o)){var c=Z({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:u({},c.outer),children:[{tag:"g",attributes:u({},c.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:u({},r.icon.attributes,c.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(j),x=E.children,S=E.attributes;return j.children=x,j.attributes=S,a?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u({},o,{id:!0===i?"".concat(t,"-").concat(_.familyPrefix,"-").concat(n):i}),children:r}]}]}(j):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,c=e.transform;if(J(c)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};o.style=X(u({},i,{"transform-origin":"".concat(a.x+c.x/16,"em ").concat(a.y+c.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(j)}var te=function(){},ne=(_.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var o,i,c,u=Object.keys(e),a=u.length,s=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,c=e[u[0]]):(o=0,c=n);o<a;o++)c=s(c,e[i=u[o]],i,e);return c});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 x.hooks.addPack||o?x.styles[e]=u({},x.styles[e]||{},i):x.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var oe=x.styles,ie=x.shims,ce=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}),{})};ce();x.styles;function ue(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ae(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(ae).join(""),"</").concat(t,">")}var se=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"},pe={tag:"path",attributes:u({},fe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},he=u({},de,{attributeName:"opacity"});u({},fe,{cx:"256",cy:"364",r:"28"}),u({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),u({},he,{values:"1;0;1;1;0;1;"}),u({},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"}),u({},he,{values:"1;0;0;0;0;1;"}),u({},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"}),u({},he,{values:"0;0;1;1;0;0;"}),x.styles;function $e(e){var t=e[0],n=e[1],r=a(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}x.styles;function be(){var e="svg-inline--fa",t=_.familyPrefix,n=_.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"),c=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(c,".".concat(n))}return r}function me(){_.autoAddCss&&!we&&(z(be()),we=!0)}function ge(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ae(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(g){var t=b.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Oe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ue(ve.definitions,n,r)||ue(x.styles,n,r)}var ye,ve=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]=u({},e.definitions[t]||{},o[t]),re(t,o[t]),ce()}))}},{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,c=r.icon;e[o]||(e[o]={}),e[o][i]=c})),e}}])&&i(t.prototype,n),r&&i(t,r),e}()),we=!1,je={transform:function(e){return se(e)}},_e=(ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?q:n,o=t.symbol,i=void 0!==o&&o,c=t.mask,a=void 0===c?null:c,s=t.maskId,l=void 0===s?null:s,f=t.title,d=void 0===f?null:f,p=t.titleId,h=void 0===p?null:p,$=t.classes,b=void 0===$?[]:$,m=t.attributes,g=void 0===m?{}:m,O=t.styles,y=void 0===O?{}:O;if(e){var v=e.prefix,w=e.iconName,j=e.icon;return ge(u({type:"icon"},e),(function(){return me(),_.autoA11y&&(d?g["aria-labelledby"]="".concat(_.replacementClass,"-title-").concat(h||W()):(g["aria-hidden"]="true",g.focusable="false")),ee({icons:{main:$e(j),mask:a?$e(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:w,transform:u({},q,r),symbol:i,title:d,maskId:l,titleId:h,extra:{attributes:g,styles:y,classes:b}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Oe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Oe(r||{})),ye(n,u({},t,{mask:r}))})}).call(this,n(32),n(51).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return a}));var r=n(8),o=(n(0),n(6));class i extends r.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function c(e){return Object(r.f)(e)}function u(e,t){sessionStorage.setItem(c(e),t)}function a(e){return Object(o.e)(sessionStorage.getItem(c(e)))}},function(e,t,n){"use strict";var r=u(n(44)),o=u(n(49)),i=u(n(38)),c=u(n(34));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:c.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},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){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(4);n(23),n(22),n(5);function i(e,t,n,i,c){const u=function(e,t,n,o){const i=0|Object(r.d)(e,n);if(0===i)throw new Error("The step of a range cannot be zero");const c=i>0;return n=>{const i=0|Object(r.d)(n,t);return c&&i<=0||!c&&i>=0?[n,o(n,e)]:void 0}}(t,n,i,c);return Object(o.h)(()=>Object(o.C)(u,e))}function c(e,t,n){return i(e,t,n,0,(e,t)=>e+t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(12));var r=u(n(9)),o=u(n(9)),i=n(35),c=(n(36),u(n(37)));function u(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var a=function(e){var t,n;function i(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var u=i.prototype;return u.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},u.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},u.componentWillUnmount=function(){this.cancelNextCallback()},u.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},u.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},u.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),c=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,c,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},u.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},u.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},u.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},u.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},u.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},u.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,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}(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return r.default.createElement(c.default.Provider,{value:null},n(e,o));var i=r.default.Children.only(n);return r.default.createElement(c.default.Provider,{value:null},r.default.cloneElement(i,o))},i}(r.default.Component);function s(){}a.contextType=c.default,a.propTypes={},a.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},a.UNMOUNTED=0,a.EXITED=1,a.ENTERING=2,a.ENTERED=3,a.EXITING=4;var l=(0,i.polyfill)(a);t.default=l},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function c(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,c=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?c="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(c="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==c||null!==u){var a=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==c?"\n "+c:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return c})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(12))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";var r;t.__esModule=!0,t.default=void 0;var o=((r=n(9))&&r.__esModule?r:{default:r}).default.createContext(null);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;u(n(12));var r=u(n(9)),o=n(35),i=u(n(37)),c=n(50);function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function o(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=o.prototype;return u.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},u.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,r):(0,c.getNextChildMapping)(e,n,r),firstRender:!1}},u.handleExited=function(e,t){var n=(0,c.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},u.render=function(){var e=this.props,t=e.component,n=e.childFactory,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,["component","childFactory"]),c=this.state.contextValue,u=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:c},u):r.default.createElement(i.default.Provider,{value:c},r.default.createElement(t,o,u))},o}(r.default.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,o.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return _u}));var r=n(1),o=n(8),i=n(0),c=n(15),u=n(18),a=n(7),s=n(6),l=n(3),f=n(10),d=n(4),p=n(11),h=n(25);class ${constructor(e,t){this.k=e,this.v=t}}function b(e,t){return new $(e,t)}function m(e){return e.k}function g(e){return e.v}class O extends ${constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function y(e,t,n,r,o){return new O(e,t,n,r,o)}function v(e){return e.left}function w(e){return e.right}function j(e){return e.h}function _(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof O){t=e(r+1,v(i)),n=w(i);continue e}return r+1|0}return 0|r}}(0,e)}function E(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof O?j(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof O?j(e):1}else i=0;const c=0|(o<i?i:o);return 0===c?b(t,n):y(t,n,e,r,c+1)}function x(e,t,n,r){let o,i,c,u,a;if(null!=e){const t=e;a=t instanceof O?j(t):1}else a=0;let l;if(null!=r){const e=r;l=e instanceof O?j(e):1}else l=0;if(l>a+2){const c=Object(s.i)(r);if(c instanceof O){if(o=v(c),(null!=o?(i=o,i instanceof O?j(i):1):0)>a+1){const r=Object(s.i)(v(c));if(r instanceof O)return E(E(e,t,n,v(r)),m(r),g(r),E(w(r),m(c),g(c),w(c)));throw new Error("internal error: Map.rebalance")}return E(E(e,t,n,v(c)),m(c),g(c),w(c))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=Object(s.i)(e);if(o instanceof O){if(c=w(o),(null!=c?(u=c,u instanceof O?j(u):1):0)>l+1){const e=Object(s.i)(w(o));if(e instanceof O)return E(E(v(o),m(o),g(o),v(e)),m(e),g(e),E(w(e),t,n,r));throw new Error("internal error: Map.rebalance")}return E(v(o),m(o),g(o),E(w(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return E(e,t,n,r)}function S(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,m(o));return o instanceof O?i<0?x(S(e,t,n,v(o)),m(o),g(o),w(o)):0===i?y(t,n,v(o),w(o),j(o)):x(v(o),m(o),g(o),S(e,t,n,w(o))):i<0?y(t,n,void 0,r,2):0===i?b(t,n):y(t,n,r,void 0,2)}return b(t,n)}function C(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,m(c));if(0===u)return Object(s.f)(g(c));if(c instanceof O){e=r,t=o,n=u<0?v(c):w(c);continue e}return}return}}function T(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof O){e(r,v(i)),r(m(i),g(i)),t=r,n=w(i);continue e}r(m(i),g(i))}break}}(e,t)}function k(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof O){const n=e(t,v(r)),o=t(m(r),g(r)),i=e(t,w(r));return y(m(r),o,n,i,j(r))}return b(m(r),t(m(r),g(r)))}}(e,t)}function A(e,t,n){let r=n;T((e,n)=>{t[r]=[e,n],r=r+1|0},e)}function I(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=S(e,o[0],o[1],n)}return n}function N(e,t){if(Object(r.r)(t))return I(e,t);if(t instanceof l.a)return function(e,t){return Object(l.j)((t,n)=>S(e,n[0],n[1],t),void 0,t)}(e,t);{const n=Object(r.o)(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const c=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=S(r,c[0],c[1],o),n=i}}}(e,void 0,n)}finally{Object(r.k)(n)}}}class P extends o.c{constructor(e,t){super(),this.stack=e,this.started=t}}function M(e){e:for(;;){const t=e;if(Object(l.l)(t))return Object(l.g)();{const n=Object(l.w)(t),r=Object(l.k)(t);if(null!=r){const o=r;if(o instanceof O){e=Object(l.q)([v(o),b(m(o),g(o)),w(o)],n);continue e}return t}e=n;continue e}}}function D(e){return new P(M(Object(l.t)(e)),!1)}function R(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return function(){throw new Error("enumeration already finished")}();if(null!=Object(l.k)(t)){const e=Object(l.k)(t);if(e instanceof O)throw new Error("Please report error: Map iterator, unexpected stack for current");return[m(e),g(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function F(e){let t=D(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>R(t),"System.Collections.IEnumerator.get_Current":()=>R(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return!1;if(null!=Object(l.k)(t)){if(Object(l.k)(t)instanceof O)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=M(Object(l.w)(t)),!Object(l.l)(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Object(l.l)(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=D(e)},Dispose(){}}}class L{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 o=Object(r.o)(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Object(r.D)(e[0])),n=0|t(n,Object(r.D)(e[1]))}}finally{Object(r.k)(o)}return 0|n}(this)}Equals(e){const t=this;if(!(e instanceof L))return!1;{const n=Object(r.o)(t);try{const t=Object(r.o)(e);try{const e=()=>{const o=n["System.Collections.IEnumerator.MoveNext"]();if(o===t["System.Collections.IEnumerator.MoveNext"]()){if(o){const o=n["System.Collections.Generic.IEnumerator`1.get_Current"](),i=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Object(r.n)(o[0],i[0])||!Object(r.n)(o[1],i[1]))&&e()}return!0}return!1};return e()}finally{Object(r.k)(t)}}finally{Object(r.k)(n)}}}toString(){return"map ["+Object(p.f)("; ",Object(d.q)(e=>Object(p.c)("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return F(this.tree)}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return F(this.tree)}CompareTo(e){const t=this;if(e instanceof L)return 0|Object(d.e)((e,n)=>{const o=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==o?o:Object(r.d)(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 V(this,e[0])&&Object(r.n)(U(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){A(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|H(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|H(this)}get size(){return 0|H(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Object(d.q)(e=>[e[0],e[1]],this)}get(e){return U(this,e)}has(e){return V(this,e)}keys(){return Object(d.q)(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Object(d.q)(e=>e[1],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t[1],t[0],n)},n)}}function B(e,t){return new L(e,t)}function G(e){const t=Object(h.a)();return B(t,N(t,e))}function U(e,t){return function(e,t,n){const r=C(e,t,n);if(null==r)throw new Error;return Object(s.i)(r)}(e.comparer,t,e.tree)}function H(e){return _(e.tree)}function V(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,m(c));if(c instanceof O){if(u<0){e=r,t=o,n=v(c);continue e}if(0===u)return!0;e=r,t=o,n=w(c);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function q(e,t,n){return function(e,t,n){return B(e.comparer,S(e.comparer,t,n,e.tree))}(n,e,t)}function z(e,t){return function(e,t){return C(e.comparer,t,e.tree)}(t,e)}function W(e,t){return r=e,B((n=t).comparer,k(r,n.tree));var n,r}function Y(e){return G(e)}function X(){return L.empty}L.empty=B(Object(h.a)(),void 0);class J extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Z(e,t){const n=Object(c.m)(Object(u.c)());return Object(c.g)(()=>Object(c.a)(()=>{Object(u.a)(n.current)})),Object(c.e)(r=>{Object(u.f)(n.current)||Object(u.i)(a.g.Delay(()=>a.g.TryWith(a.g.Delay(()=>(t(new J(1)),a.g.Bind(e(r),e=>(t(new J(2,e)),a.g.Zero())))),e=>(t(new J(3,e)),a.g.Zero()))),n.current)})}var K=n(2);function Q(e){return 1!==e.tag}function ee(e,t){return null==t?new K.e(1,e):new K.e(0,Object(s.i)(t))}function te(e,t,n){return Object(r.n)(n,e)?new K.e(0,void 0):new K.e(1,t)}function ne(e,t){return Object(d.n)(t)?new K.e(1,e):new K.e(0,void 0)}function re(e,t,n){if(1===n.tag);else{const r=n.fields[0];e(r)&&t(r)}return n}function oe(e,t,n){if(1===n.tag){const r=n.fields[0];e(r)&&t(r)}return n}function ie(e,t){return a.g.Bind(t,t=>{const n=function(e,t){return re(e=>!0,e,t)}(e,t);return a.g.Return(n)})}function ce(e,t){return a.g.Bind(t,t=>{const n=function(e,t){return oe(e=>!0,e,t)}(e,t);return a.g.Return(n)})}o.d;o.c;const ue=0,ae=1,se=2,le=3,fe=4;function de(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 pe(e,t=ue){const n={},r=t;function i(e){throw new Error("Cannot infer key and value of "+String(e))}function c(e,t,r){e=function(e,t){switch(t){case ae:return e.charAt(0).toLowerCase()+e.slice(1);case se:return de(e,"_");case le:return de(e,"_").toUpperCase();case fe:return de(e,"-");case ue:default:return e}}(e,t),n[e]=r}for(let t of e){let e=ue;if(null==t&&i(t),t instanceof o.d){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:i(t);break;case 1:c(t[0],e,!0);break;case 2:const n=t[1];c(t[0],e,n);break;default:c(t[0],e,t.slice(1))}else"string"==typeof t?c(t,e,!0):i(t)}return n}function he(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function $e(e,t){return!t.has(e)&&(t.add(e),!0)}function be(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}var me=n(9);function ge(){return(ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oe(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}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ve,we=n(12),je=n.n(we),_e=n(27),Ee=n.n(_e);function xe(e,t){return void 0===e&&(e=""),void 0===t&&(t=ve),t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}var Se="object"==typeof window&&window.Element||function(){};je.a.oneOfType([je.a.string,je.a.func,function(e,t,n){if(!(e[t]instanceof Se))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},je.a.shape({current:je.a.any})]);var Ce=je.a.oneOfType([je.a.func,je.a.string,je.a.shape({$$typeof:je.a.symbol,render:je.a.func}),je.a.arrayOf(je.a.oneOfType([je.a.func,je.a.string,je.a.shape({$$typeof:je.a.symbol,render:je.a.func})]))]),Te=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"];"undefined"==typeof window||!window.document||window.document.createElement;var ke=n(31),Ae=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Ie(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 Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=Ne(Ne({},ke.Transition.propTypes),{},{children:je.a.oneOfType([je.a.arrayOf(je.a.node),je.a.node]),tag:Ce,baseClass:je.a.string,baseClassActive:je.a.string,className:je.a.string,cssModule:je.a.object,innerRef:je.a.oneOfType([je.a.object,je.a.string,je.a.func])}),Me=Ne(Ne({},ke.Transition.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:150,appear:!0,enter:!0,exit:!0,in:!0});function De(e){var t,n,r,o=e.tag,i=e.baseClass,c=e.baseClassActive,u=e.className,a=e.cssModule,s=e.children,l=e.innerRef,f=Oe(e,Ae),d=function(e,t){for(var n,r=Array.isArray(t)?t:[t],o=r.length,i={};o>0;)i[n=r[o-=1]]=e[n];return i}(f,Te),p=(t=f,n=Te,r={},Object.keys(t).forEach((function(e){-1===n.indexOf(e)&&(r[e]=t[e])})),r);return me.default.createElement(ke.Transition,d,(function(e){var t="entered"===e,n=xe(Ee()(u,i,t&&c),a);return me.default.createElement(o,ge({className:n},p,{ref:l}),s)}))}De.propTypes=Pe,De.defaultProps=Me;var Re=De,Fe=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function Le(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 Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ge={children:je.a.node,className:je.a.string,closeClassName:je.a.string,closeAriaLabel:je.a.string,cssModule:je.a.object,color:je.a.string,fade:je.a.bool,isOpen:je.a.bool,toggle:je.a.func,tag:Ce,transition:je.a.shape(Re.propTypes),innerRef:je.a.oneOfType([je.a.object,je.a.string,je.a.func])},Ue={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:Be(Be({},Re.defaultProps),{},{unmountOnExit:!0})};function He(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,o=e.cssModule,i=e.tag,c=e.color,u=e.isOpen,a=e.toggle,s=e.children,l=e.transition,f=e.fade,d=e.innerRef,p=Oe(e,Fe),h=xe(Ee()(t,"alert","alert-"+c,{"alert-dismissible":a}),o),$=xe(Ee()("close",n),o),b=Be(Be(Be({},Re.defaultProps),l),{},{baseClass:f?l.baseClass:"",timeout:f?l.timeout:0});return me.default.createElement(Re,ge({},p,b,{tag:i,className:h,in:u,role:"alert",innerRef:d}),a?me.default.createElement("button",{type:"button",className:$,"aria-label":r,onClick:a},me.default.createElement("span",{"aria-hidden":"true"},"×")):null,s)}He.propTypes=Ge,He.defaultProps=Ue;var Ve=He;class qe extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tag","CSSModule","Color","Transition","IsOpen","Toggle","Custom"]}}function ze(e,t){const n=pe(Object(d.d)(e=>6===e.tag?e.fields[0]:Object(l.g)(),e),1),r=pe(Object(d.c)(e=>6===e.tag?void 0:e,e),1),o=Object.assign({},n,r);return me.createElement(Ve,o,...t)}var We=n(14);class Ye extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Xe(e){switch(e.tag){case 0:return new qe(2,"success");case 2:return new qe(2,"info");default:return new qe(2,"danger")}}function Je(e){switch(e.tag){case 0:case 2:default:return e.fields[0]}}function Ze(e){let t;const n=e.hideAlert,o=e.alert,i=Object(u.c)();return Object(c.i)(()=>{!function(e,t){Object(u.i)(a.g.Delay(()=>a.g.Bind(Object(u.h)(5e3),()=>(e(),a.g.Zero()))),t)}(n,i)},[]),Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["container-lg","fixed-top","mt-2"])],(t=[ze([Xe(o),new qe(5,()=>{Object(u.a)(i),n()})],[Je(o)])],["children",We.a.Children.toArray(Array.from(t))])])))}class Ke{constructor(){}}function Qe(e,t){return new K.e(0,t)}function et(e,t){return t}function tt(e,t,n){return Object(K.g)(n,t)}new Ke;class nt{constructor(){}}function rt(e,t){const n=Qe(0,t);return a.g.Return(n)}function ot(e,t){return a.g.Delay(t)}new nt;class it extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ct extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ut extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}o.d;class at extends o.c{constructor(e,t,n,r,o,i,c){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=c}}class st extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class lt extends o.c{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const ft=new at("",new it(0),Object(l.g)(),!1,void 0,void 0,new ut(0));new lt(0,"","",X(),new st(0,""));function dt(e,t){return Object(p.d)(t)?[t]:Object(p.h)(t,[e],null,0)}function pt(e){return new at(e,ft.method,ft.headers,ft.withCredentials,ft.overridenMimeType,ft.overridenResponseType,ft.content)}function ht(e,t){return new at(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function $t(e,t){return new at(t.url,t.method,Object(l.b)(t.headers,Object(l.t)(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function bt(e,t){return new at(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function mt(e){return Object(u.d)(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,c,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,c=""===u||"text"===u?new st(0,n.responseText):new st("arraybuffer"===u?2:"blob"===u?1:3,n.response),new lt(o,e,i,function(e){const t=Object(h.a)();return B(t,I(t,e))}(Object(f.a)(e=>{const t=Object(l.p)(dt(":",e));return Object(l.l)(t)?void 0:[Object(l.k)(t).toLocaleLowerCase(),Object(p.f)(":",Object(l.w)(t)).trim()]},dt("\r\n",n.getAllResponseHeaders()))),c)))};const o=Object(r.o)(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{Object(r.k)(o)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;n.overrideMimeType(e)}const c=e.overridenResponseType;null==c||(1===c.tag?n.responseType="blob":2===c.tag?n.responseType="arraybuffer":n.responseType="text");const u=[e.method,e.content];0===u[0].tag?n.send(Object(s.f)(void 0)):1===u[1].tag||3===u[1].tag||2===u[1].tag?n.send(Object(s.f)(u[1].fields[0])):n.send(Object(s.f)(void 0))})}var gt=n(24);class Ot extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class yt extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}o.c;class vt{constructor(){this.cache=new Map([])}}function wt(){return new vt}wt(),wt();function jt(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function _t(e,t){switch(e.tag){case 2:return Object(gt.b)(jt(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return jt(t)}}var Et=n(26),xt=n(21),St=n(5),Ct=(n(23),n(22),n(20));function Tt(e,t){kt(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function kt(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function At(e,t){try{return t.contents=function(e){const[t,n]=Object(Ct.e)(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Tt(t.getTime(),r)}(e),!0}catch(e){return!1}}function It(e){return e<0?Math.ceil(e):Math.floor(e)}function Nt(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Pt(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 Pt(e){return Object(St.r)(Object(St.j)(e,1e4))}r.g,r.g;function Mt(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const o=Math.abs(function(e){return It(e/864e5)}(e)),i=Math.abs(function(e){return It(e%864e5/36e5)}(e)),c=Math.abs(function(e){return It(e%36e5/6e4)}(e)),u=Math.abs(function(e){return It(e%6e4/1e3)}(e)),a=Math.abs(function(e){return It(e%1e3)}(e));return`${e<0?"-":""}${0!==o||"c"!==t&&"g"!==t?"c"===t?o+".":o+":":""}${"g"===t?i:Object(r.x)(i,2)}:${Object(r.x)(c,2)}:${Object(r.x)(u,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Object(r.x)(a,3):"."+Object(r.w)(a,3,7):""}`}function Dt(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 Nt(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,c=+t[4],u=+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*Nt(n,c,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Rt{constructor(e,t){const n=new o.b(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const i=Object(r.o)(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Gt(n.contents,e)}}finally{Object(r.k)(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Object(r.o)(this)}GetEnumerator(){return Object(r.o)(Object(d.f)(this.hashMap.values()))}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Gt(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Lt(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ut(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Object(d.p)((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Bt(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Ht(this,e)}get size(){return 0|Bt(this)}add(e){return Gt(this,e),this}clear(){Lt(this)}delete(e){return Ht(this,e)}has(e){return Ut(this,e)}keys(){return Object(d.q)(e=>e,this)}values(){return Object(d.q)(e=>e,this)}entries(){return Object(d.q)(e=>[e,e],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t,t,n)},n)}}function Ft(e,t){const n=0|e.comparer.GetHashCode(t);let r,i=null;return r=[he(e.hashMap,n,new o.b(()=>i,e=>{i=e})),i],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n))]:[!1,n,-1]}function Lt(e){e.hashMap.clear()}function Bt(e){let t=0,n=Object(r.o)(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}}finally{Object(r.k)(n)}return 0|t}function Gt(e,t){const n=Ft(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!1;case 1:if(n[0]){be(e.hashMap,n[1]).push(t);return!0}return e.hashMap.set(n[1],[t]),!0}}function Ut(e,t){const n=Ft(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Ht(e,t){const n=Ft(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return be(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Vt{constructor(e){this.k=e}}function qt(e){return new Vt(e)}function zt(e){return e.k}class Wt extends Vt{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Yt(e,t,n,r){return new Wt(e,t,n,r)}function Xt(e){return e.left}function Jt(e){return e.right}function Zt(e){return e.h}function Kt(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Wt){t=Xt(i),n=e(Jt(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Qt(e,t,n){let r;if(null!=e){const t=e;r=t instanceof Wt?Zt(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof Wt?Zt(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?qt(t):Yt(t,e,n,i+1)}function en(e,t,n){let r,o,i,c,u;if(null!=e){const t=e;u=t instanceof Wt?Zt(t):1}else u=0;let a;if(null!=n){const e=n;a=e instanceof Wt?Zt(e):1}else a=0;if(a>u+2){const i=Object(s.i)(n);if(i instanceof Wt){if(r=Xt(i),(null!=r?(o=r,o instanceof Wt?Zt(o):1):0)>u+1){const n=Object(s.i)(Xt(i));if(n instanceof Wt)return Qt(Qt(e,t,Xt(n)),zt(n),Qt(Jt(n),zt(i),Jt(i)));throw new Error("internal error: Set.rebalance")}return Qt(Qt(e,t,Xt(i)),zt(i),Jt(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=Object(s.i)(e);if(r instanceof Wt){if(i=Jt(r),(null!=i?(c=i,c instanceof Wt?Zt(c):1):0)>a+1){const e=Object(s.i)(Jt(r));if(e instanceof Wt)return Qt(Qt(Xt(r),zt(r),Xt(e)),zt(e),Qt(Jt(e),t,n));throw new Error("internal error: Set.rebalance")}return Qt(Xt(r),zt(r),Qt(Jt(r),t,n))}throw new Error("internal error: Set.rebalance")}return Qt(e,t,n)}function tn(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,zt(r));if(r instanceof Wt)return o<0?en(tn(e,t,Xt(r)),zt(r),Jt(r)):0===o?n:en(Xt(r),zt(r),tn(e,t,Jt(r)));{const o=0|e.Compare(t,zt(r));return o<0?Yt(t,void 0,n,2):0===o?n:Yt(t,n,void 0,2)}}return qt(t)}function nn(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,zt(c));if(c instanceof Wt){if(u<0){e=r,t=o,n=Xt(c);continue e}if(0===u)return!0;e=r,t=o,n=Jt(c);continue e}return 0===u}return!1}}function rn(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Wt){rn(n,Xt(o)),n(zt(o)),e=n,t=Jt(o);continue e}n(zt(o))}break}}class on extends o.c{constructor(e,t){super(),this.stack=e,this.started=t}}function cn(e){e:for(;;){const t=e;if(Object(l.l)(t))return Object(l.g)();{const n=Object(l.k)(t),r=Object(l.w)(t);if(null!=n){const o=n;if(o instanceof Wt){e=Object(l.q)([Xt(o),qt(zt(o)),Jt(o)],r);continue e}return t}e=r;continue e}}}function un(e){return new on(cn(Object(l.t)(e)),!1)}function an(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return function(){throw new Error("Enumeration already started")}();if(null!=Object(l.k)(t)){return zt(Object(l.k)(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function sn(e){let t=un(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>an(t),"System.Collections.IEnumerator.get_Current":()=>an(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return!1;if(null!=Object(l.k)(t)){if(Object(l.k)(t)instanceof Wt)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=cn(Object(l.w)(t)),!Object(l.l)(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Object(l.l)(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=un(e)},Dispose(){}}}function ln(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,c=[o,i];if(Object(l.l)(c[0]))return Object(l.l)(c[1])?0:-1;if(Object(l.l)(c[1]))return 1;if(null!=Object(l.k)(c[1]))if(null!=Object(l.k)(c[0])){const u=Object(l.k)(c[0]),a=Object(l.k)(c[1]);if(u instanceof Wt)if(null==Xt(u)){if(!(a instanceof Wt)){const o=0|r.Compare(zt(u),zt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(Jt(u),Object(l.w)(c[0])),n=Object(l.f)(void 0,Object(l.w)(c[1]));continue e}if(null==Xt(a)){const o=0|r.Compare(zt(u),zt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(Jt(u),Object(l.w)(c[0])),n=Object(l.f)(Jt(a),Object(l.w)(c[1]));continue e}{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof Wt){e=r,t=Object(l.q)([Xt(s),Yt(zt(s),void 0,Jt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,qt(zt(s))],a),n=i;continue e;case 1:if(d instanceof Wt){e=r,t=o,n=Object(l.q)([Xt(d),Yt(zt(d),void 0,Jt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,qt(zt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof Wt){e=r,t=Object(l.q)([Xt(s),Yt(zt(s),void 0,Jt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,qt(zt(s))],a),n=i;continue e;case 1:if(d instanceof Wt){e=r,t=o,n=Object(l.q)([Xt(d),Yt(zt(d),void 0,Jt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,qt(zt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof Wt)){const o=0|r.Compare(zt(u),zt(a));if(0!==o)return 0|o;e=r,t=Object(l.w)(c[0]),n=Object(l.w)(c[1]);continue e}if(null==Xt(a)){const o=0|r.Compare(zt(u),zt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(void 0,Object(l.w)(c[0])),n=Object(l.f)(Jt(a),Object(l.w)(c[1]));continue e}{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof Wt){e=r,t=Object(l.q)([Xt(s),Yt(zt(s),void 0,Jt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,qt(zt(s))],a),n=i;continue e;case 1:if(d instanceof Wt){e=r,t=o,n=Object(l.q)([Xt(d),Yt(zt(d),void 0,Jt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,qt(zt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Object(l.k)(c[1]);const u=[o,i];let a,s,f,d,p;switch(Object(l.l)(u[0])?Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2:null!=Object(l.k)(u[0])?(a=0,s=Object(l.w)(u[0]),f=Object(l.k)(u[0])):Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2,a){case 0:if(f instanceof Wt){e=r,t=Object(l.q)([Xt(f),Yt(zt(f),void 0,Jt(f),0)],s),n=i;continue e}e=r,t=Object(l.q)([void 0,qt(zt(f))],s),n=i;continue e;case 1:if(p instanceof Wt){e=r,t=o,n=Object(l.q)([Xt(p),Yt(zt(p),void 0,Jt(p),0)],d);continue e}e=r,t=o,n=Object(l.q)([void 0,qt(zt(p))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Object(l.k)(c[0])){e=r,t=Object(l.w)(c[0]),n=Object(l.w)(c[1]);continue e}{Object(l.k)(c[0]);const u=[o,i];let a,s,f,d,p;switch(Object(l.l)(u[0])?Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2:null!=Object(l.k)(u[0])?(a=0,s=Object(l.w)(u[0]),f=Object(l.k)(u[0])):Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2,a){case 0:if(f instanceof Wt){e=r,t=Object(l.q)([Xt(f),Yt(zt(f),void 0,Jt(f),0)],s),n=i;continue e}e=r,t=Object(l.q)([void 0,qt(zt(f))],s),n=i;continue e;case 1:if(p instanceof Wt){e=r,t=o,n=Object(l.q)([Xt(p),Yt(zt(p),void 0,Jt(p),0)],d);continue e}e=r,t=o,n=Object(l.q)([void 0,qt(zt(p))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Object(l.t)(t),Object(l.t)(n))}function fn(e,t,n){let r=n;rn(e=>{t[r]=e,r=r+1|0},e)}function dn(e,t){return Object(f.g)((t,n)=>tn(e,n,t),void 0,t)}function pn(e,t){if(Object(r.r)(t))return dn(e,t);if(t instanceof l.a)return function(e,t){return Object(l.j)((t,n)=>tn(e,n,t),void 0,t)}(e,t);{const n=Object(r.o)(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=tn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Object(r.k)(n)}}}class hn{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const o=Object(r.o)(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|(t=0|Object(r.D)(e),(n<<1)+t+631)}}finally{Object(r.k)(o)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof hn&&0===ln(bn(this),mn(this),mn(e))}toString(){return"set ["+Object(p.f)("; ",Object(d.q)(e=>{let t=e;return Object(o.f)(t)},this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|ln(bn(this),mn(this),mn(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 nn(bn(this),e,mn(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){fn(mn(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|gn(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|gn(this)}GetEnumerator(){return sn(mn(this))}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return sn(mn(this))}get size(){return 0|gn(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 On(this,e)}keys(){return Object(d.q)(e=>e,this)}values(){return Object(d.q)(e=>e,this)}entries(){return Object(d.q)(e=>[e,e],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t,t,n)},n)}}function $n(e,t){return new hn(e,t)}function bn(e){return e.comparer}function mn(e){return e.tree}function gn(e){return Kt(mn(e))}function On(e,t){return nn(bn(e),t,mn(e))}function yn(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 vn(e,t){const n=2===t.tag?yn(t.fields[0],t.fields[1],!0):1===t.tag?yn(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?yn(t.fields[0],t.fields[1],!0):4===t.tag?yn(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"+Object(p.f)("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:yn(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function wn(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new K.e(1,vn(e[0],e[1]))}return new K.e(0,r.fields[0])}function jn(e,t){try{return wn("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new K.e(1,"Given an invalid JSON: "+e.message);throw e}}const _n=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 K.e(0,(e+128&255)-128):new K.e(1,[n,new Ot(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new K.e(1,[n,new Ot(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(xt.d)(r,511,!1,8,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[n,new Ot(0,"a sbyte",r)])}return new K.e(1,[n,new Ot(0,"a sbyte",r)])},En=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 K.e(0,255&e):new K.e(1,[n,new Ot(1,"a byte",e,"Value was either too large or too small for a byte")]):new K.e(1,[n,new Ot(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(xt.d)(r,511,!0,8,new o.b(()=>t,e=>{t=e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[n,new Ot(0,"a byte",r)])}return new K.e(1,[n,new Ot(0,"a byte",r)])},xn=e=>t=>{const n="an int16",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new K.e(0,(e+32768&65535)-32768):new K.e(1,[r,new Ot(1,n,e,"Value was either too large or too small for "+n)]):new K.e(1,[r,new Ot(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(xt.d)(i,511,!1,16,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[r,new Ot(0,n,i)])}return new K.e(1,[r,new Ot(0,n,i)])},Sn=e=>t=>{const n="an uint16",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new K.e(0,65535&e):new K.e(1,[r,new Ot(1,n,e,"Value was either too large or too small for "+n)]):new K.e(1,[r,new Ot(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(xt.d)(i,511,!0,16,new o.b(()=>t,e=>{t=e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[r,new Ot(0,n,i)])}return new K.e(1,[r,new Ot(0,n,i)])},Cn=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 K.e(0,~~e):new K.e(1,[n,new Ot(1,"an int",e,"Value was either too large or too small for an int")]):new K.e(1,[n,new Ot(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(xt.d)(r,511,!1,32,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[n,new Ot(0,"an int",r)])}return new K.e(1,[n,new Ot(0,"an int",r)])},Tn=e=>t=>{const n="an uint32",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new K.e(0,e>>>0):new K.e(1,[r,new Ot(1,n,e,"Value was either too large or too small for "+n)]):new K.e(1,[r,new Ot(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(xt.d)(i,511,!0,32,new o.b(()=>t,e=>{t=e})),t],e[0]?new K.e(0,e[1]):new K.e(1,[r,new Ot(0,n,i)])}return new K.e(1,[r,new Ot(0,n,i)])};function kn(e,t){if("string"==typeof t){let n,r=Tt(-621355968e5,0);return n=[At(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new K.e(0,n[1]):new K.e(1,[e,new Ot(0,"a datetimeoffset",t)])}return new K.e(1,[e,new Ot(0,"a datetime",t)])}function An(e,t,n,o){let i;const c=n+".["+Object(r.q)(e)+"]";if(Array.isArray(o)){const n=o;return e<n.length?t(c,n[e]):new K.e(1,[c,new Ot(5,"a longer array. Need index `"+Object(r.q)(e)+"` but there are only `"+(i=n.length,Object(r.q)(i)+"` entries"),o)])}return new K.e(1,[c,new Ot(0,"an array",o)])}function In(e,t,n){if(Array.isArray(n)){let o=-1;return Object(K.g)(l.s,Object(f.g)((n,i)=>{if(o=o+1|0,0===n.tag){const c=e(t+".["+Object(r.q)(o)+"]",i);return 0===c.tag?new K.e(0,Object(l.f)(c.fields[0],n.fields[0])):new K.e(1,c.fields[0])}return n},new K.e(0,Object(l.g)()),n))}return new K.e(1,[t,new Ot(0,"a list",n)])}function Nn(e,t,n){if(Array.isArray(n)){let o=-1;const i=n;return Object(f.g)((n,i)=>{if(o=o+1|0,0===n.tag){const c=n.fields[0],u=e(t+".["+Object(r.q)(o)+"]",i);return 0===u.tag?(c[o]=u.fields[0],new K.e(0,c)):new K.e(1,u.fields[0])}return n},new K.e(0,Object(f.f)(new Array(i.length),0,i.length,null)),i)}return new K.e(1,[t,new Ot(0,"an array",n)])}function Pn(e,t,n){return new K.e(0,e)}function Mn(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new K.e(1,o.fields[0])}function Dn(e,t,n,r){const o=t(n,r);return 1===o.tag?new K.e(1,o.fields[0]):new K.e(0,e(o.fields[0]))}function Rn(e,t){let n;const o=e;return n=e=>t=>An(0,o,e,t),e=>o=>Mn(Object(r.F)(3,e=>{let n;const o=t;return n=e=>t=>An(1,o,e,t),t=>o=>Mn((t,n,r)=>Pn([e,t]),Object(r.F)(2,n),t,o)}),Object(r.F)(2,n),e,o)}function Fn(e){return Y(e)}function Ln(e){return t=e,$n(n={Compare:r.d},pn(n,t));var t,n}function Bn(e,t,n,r){let o,i;return t.length!==r.length?new K.e(1,[n,new Ot(6,(o=0|r.length,i=0|t.length,Object(p.k)(Object(p.g)("Expected %i %s but got %i"))(i)(e)(o)))]):Object(f.i)((e,t,r)=>0===r.tag?Object(K.g)(e=>Object(l.f)(e,r.fields[0]),t(n)(e)):r,r,t,new K.e(0,Object(l.g)()))}function Gn(e,t,n,r,o,c){const u=Object(f.w)(e=>Object(i.E)(e)===r,Object(i.q)(n,!0));if(null!=u){const n=u;return 0===c.length?new K.e(0,Object(i.D)(n,[],!0)):Object(K.g)(e=>Object(i.D)(n,Object(l.x)(e),!0),Bn("union fields",Object(f.k)(n=>Hn(e,t,!1,n[1]),Object(i.p)(n)),o,c))}return new K.e(1,[o,new Ot(6,"Cannot find case "+r+" in "+Object(i.f)(n))])}function Un(e,t,n,c){const u=new o.b(null),a=q(Object(i.f)(c),u,e);let s;if(Object(i.w)(c,!0)){const e=Object(f.k)(e=>[_t(t,Object(i.E)(e)),Hn(a,t,!1,e[1])],Object(i.l)(c,!0));s=t=>n=>Object(K.g)(e=>Object(i.B)(c,Object(l.x)(e),!0),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new K.e(1,[t,new Ot(0,"an object",n)]):Object(f.h)(Object(r.F)(2,e=>{const r=e[0];return o=>0===o.tag?Object(K.g)(e=>Object(l.f)(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),e,new K.e(0,Object(l.g)()))}(e,t,n))}else if(Object(i.y)(c,!0))s=e=>n=>{if("string"==typeof n)return Gn(a,t,c,n,e,[]);if(Array.isArray(n)){const r=n;return Gn(a,t,c,r[0],e,r.slice(1,r.length))}return new K.e(1,[e,new Ot(0,"a string or array",n)])};else{if(!n){let e;const t=Object(i.f)(c);throw e=Object(p.k)(Object(p.g)("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new K.e(1,[e,new Ot(2,"an extra coder for "+Object(i.f)(c),t)])}return u.contents=s,s}function Hn(e,t,n,c){let u,a,h;const $=Object(i.f)(c),b=z($,e);if(null==b){if(Object(i.t)(c)){const n=Hn(e,t,!1,Object(i.g)(c));return e=>t=>Nn(Object(r.F)(2,n),e,t)}if(Object(i.u)(c)){const e=Object(i.f)(Object(i.h)(c));if("System.SByte"===e)return e=>t=>{const n=c,o=e,u=t,a=_n(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,e.toString())):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=c,o=e,u=t,a=En(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,e.toString())):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=c,o=e,u=t,a=xn(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,Object(r.p)(e))):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.UInt16"===e)return e=>t=>{const n=c,o=e,u=t,a=Sn(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,e.toString())):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=c,o=e,u=t,a=Cn(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,Object(r.q)(e))):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=c,o=e,u=t,a=Tn(o)(u);if(1===a.tag)return new K.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new K.e(0,Object(i.H)(n,e.toString())):new K.e(1,[o,new Ot(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};{const e=Object(i.f)(c),t=Object(p.j)(Object(p.g)("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=>t(e)}}if(Object(i.v)(c)){if(Object(i.x)(c)){const n=Object(f.k)(n=>Hn(e,t,!1,n),Object(i.n)(c));return e=>t=>Array.isArray(t)?Object(K.g)(e=>Object(i.C)(Object(l.x)(e),c),Bn("tuple elements",n,e,t)):new K.e(1,[e,new Ot(0,"an array",t)])}{const o=Object(i.f)(Object(i.j)(c));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o)return u=Hn(e,t,!0,Object(i.k)(c)[0]),e=>t=>{return n=Object(r.F)(2,u),o=e,null==(i=t)?new K.e(0,void 0):Object(K.g)(s.f,n(o,i));var n,o,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o)return a=Hn(e,t,!1,Object(i.k)(c)[0]),e=>t=>In(Object(r.F)(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const n=Hn(e,t,!1,Object(i.k)(c)[0]),o=Hn(e,t,!1,Object(i.k)(c)[1]);let u;const a=Object(l.p)([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new K.e(1,[n,new Ot(0,"an object",r)]):Object(d.l)((o,i)=>{if(0===o.tag){const c=e(n,i);if(0===c.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new K.e(0,Object(l.f)([c.fields[0],e.fields[0]],o.fields[0])):new K.e(1,e.fields[0])}return new K.e(1,c.fields[0])}return o},new K.e(0,Object(l.g)()),Object.keys(r))}(Object(r.F)(2,n),Object(r.F)(2,o),e,t),(h=Rn(Object(r.F)(2,n),Object(r.F)(2,o)),e=>t=>In(Object(r.F)(2,h),e,t))]);return u=e=>t=>{return n=e,o=t,((e,t)=>{e:for(;;){const i=e,c=t;if(Object(l.l)(i))return new K.e(1,[n,new Ot(7,c)]);{const u=wn(n,Object(r.F)(2,Object(l.k)(i)),o);if(1===u.tag){e=Object(l.w)(i),t=Object(l.b)(c,Object(l.t)(u.fields[0]));continue e}return new K.e(0,u.fields[0])}}})(a,Object(l.g)());var n,o},e=>t=>Dn(Fn,Object(r.F)(2,u),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const n=Hn(e,t,!1,Object(i.k)(c)[0]);return e=>t=>{const o=Nn(Object(r.F)(2,n),e,t);return 0===o.tag?new K.e(0,Ln(o.fields[0])):new K.e(1,o.fields[0])}}return Un(e,t,n,c)}}return"System.Boolean"===$?e=>t=>{return n=e,"boolean"==typeof(r=t)?new K.e(0,r):new K.e(1,[n,new Ot(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===$?e=>t=>{return n=e,null==(r=t)?new K.e(0,void 0):new K.e(1,[n,new Ot(0,"null",r)]);var n,r}:"System.String"===$?e=>t=>{return n=e,"string"==typeof(r=t)?new K.e(0,r):new K.e(1,[n,new Ot(0,"a string",r)]);var n,r}:"System.SByte"===$?_n:"System.Byte"===$?En:"System.Int16"===$?xn:"System.UInt16"===$?Sn:"System.Int32"===$?Cn:"System.UInt32"===$?Tn:"System.Double"===$?e=>t=>{return n=e,"number"==typeof(r=t)?new K.e(0,r):new K.e(1,[n,new Ot(0,"a float",r)]);var n,r}:"System.Single"===$?e=>t=>{return n=e,"number"==typeof(r=t)?new K.e(0,r):new K.e(1,[n,new Ot(0,"a float32",r)]);var n,r}:"System.DateTime"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r=Object(Ct.d)();return n=[Object(Ct.h)(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new K.e(0,Object(Ct.g)(n[1])):new K.e(1,[e,new Ot(0,"a datetime",t)])}return new K.e(1,[e,new Ot(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===$?e=>t=>kn(e,t):"System.TimeSpan"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Dt(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new K.e(0,n[1]):new K.e(1,[e,new Ot(0,"a timespan",t)])}return new K.e(1,[e,new Ot(0,"a timespan",t)])}(e,t):"System.Guid"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Object(Et.b)(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new K.e(0,n[1]):new K.e(1,[e,new Ot(0,"a guid",t)])}return new K.e(1,[e,new Ot(0,"a guid",t)])}(e,t):"System.Object"===$?e=>e=>new K.e(0,e):Un(e,t,n,c)}{const e=b;return t=>n=>e.contents(t)(n)}}function Vn(e){return null!=e?W((e,t)=>new o.b(t[1]),e.Coders):X()}const qn=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function zn(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const Wn=e=>function(e,t){return 0!=(1<<Yn(e,t)&256)}(e,0);function Yn(e,t){const n=zn(e,t);return qn(n)}Symbol.toStringTag,Symbol.iterator;function Xn(e,t){return Object(d.h)(()=>{const n=new Rt([],t);return Object(d.k)(e=>$e(e,n),e)})}function Jn(e,t,n){return Object(d.h)(()=>{const r=new Rt(e,n);return Object(d.k)(e=>$e(e,r),t)})}o.d;o.c;o.d;o.d;o.c;o.d;o.c;o.d;o.d;class Zn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}o.d;Y([["NZ","New Zealand"],["AUS","Australia"]],r.g);class Kn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class Qn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class er extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class tr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}o.d;class nr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function rr(e){return new nr(0,e)}function or(e){return e.fields[0]}o.c;o.d;o.d;o.d;function ir(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Object(l.l)(i))return Object(K.g)(l.s,r);{const c=et(0,()=>Object(K.f)(e=>tt(0,r,t=>Object(l.f)(e,t)),o(Object(l.k)(i))))();if(1===c.tag)return c;e=c,t=o,n=Object(l.w)(i);continue e}}}(new K.e(0,Object(l.g)()),e,t)}o.c;o.c;o.c;function cr(e){return et(0,()=>{const t=Object(p.b)(Wn,e);return Object(K.f)(()=>Object(K.f)(()=>tt(0,te(0,"TFN is not valid",Object(f.u)(Object(f.l)((e,t)=>e*t,Object(f.k)(e=>Object(xt.c)(e,511,!1,32),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),()=>t),te(9,"TFN must be 9 digits",t.length)),te(e,"TFN must contain digits only",t))})()}function ur(e){return et(0,()=>Object(K.f)(e=>{const t=e;return tt(0,ne("TFN must not contain all zeros",(n=["0"],o=t.split(""),i={Equals:(e,t)=>e===t,GetHashCode:r.C},Object(d.y)(Jn(n,o,i)))),()=>t);var n,o,i},cr(e)))()}function ar(e){switch(e){case 0:return new K.e(0,new Kn(0));case 1:return new K.e(0,new Kn(1));case 2:return new K.e(0,new Kn(2));default:return new K.e(1,"Invalid ResidencyStatus")}}function sr(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}function lr(e){switch(e){case 0:return new K.e(0,new Qn(0));case 1:return new K.e(0,new Qn(1));case 2:return new K.e(0,new Qn(2));case 3:return new K.e(0,new Qn(3));case 4:return new K.e(0,new Qn(4));default:return new K.e(1,"Invalid EmploymentBasis")}}function fr(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function dr(e){switch(e){case 0:return new K.e(0,new Zn(0));case 1:return new K.e(0,new Zn(1));case 2:return new K.e(0,new Zn(2));case 3:return new K.e(0,new Zn(3));case 4:return new K.e(0,new Zn(4));default:return new K.e(1,"Invalid DebtSupport")}}function pr(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const hr=e=>{return ir(dr,(t=e,n={Equals:(e,t)=>e===t,GetHashCode:r.v},Object(d.z)(Xn(t,n))));var t,n},$r=e=>Object(l.o)(pr,e);function br(e){switch(e){case 0:return new K.e(0,new tr(0));case 1:return new K.e(0,new tr(1));case 2:return new K.e(0,new tr(2));default:return new K.e(1,"Invalid ExemptionReason")}}function mr(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class gr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function Or(){return Object(i.L)("Dto.Dto.ProvidedTfnInformationDto",[],gr,()=>[[["Item",i.J]],[["Item",Object(i.e)("Dto.Dto.ExemptionReasonDto",i.s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]])}o.d;o.d;o.d;o.c;class yr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class vr extends o.c{constructor(e,t,n,r,o,i){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.EmploymentBasis=0|r,this.IsTaxFreeThresholdClaimed=o,this.HasDebtSupport=i}}class wr extends o.c{constructor(e,t){super(),this.Meta=e,this.Data=t}}function jr(){return Object(i.I)("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],wr,()=>[["Meta",Object(i.a)(["AccountId",i.J])],["Data",Object(i.G)(Object(i.I)("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],vr,()=>[["TfnInformation",Object(i.L)("Dto.BackendApiModels.Read.TfnInformation",[],yr,()=>[[["Item",i.J]],[["Item",Object(i.e)("Dto.Dto.ExemptionReasonDto",i.s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]])],["PreviousSurname",Object(i.G)(i.J)],["ResidencyStatus",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["EmploymentBasis",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",i.c],["HasDebtSupport",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]])}class _r extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function Er(e){return e}function xr(e){return Array.from(e)}function Sr(e){return Object(Ct.f)(e,"O",{})}function Cr(e){return Mt(e)}function Tr(){return null}function kr(e){return Object(Ct.f)(e,"O",{})}function Ar(e,t){return JSON.stringify(t,Object(r.F)(2,null),Object(s.f)(e))}function Ir(e,t,n,r){const c=new o.b(null),u=q(Object(i.f)(r),c,e);let a;if(Object(i.w)(r,!0)){const e=Object(f.k)(e=>{const r=_t(t,Object(i.E)(e)),o=Nr(u,t,n,e[1]);return t=>c=>{const u=Object(i.m)(t,e);return(!n||n&&null!=u)&&(c[r]=o(u)),c}},Object(i.l)(r,!0));a=t=>Object(d.l)((e,n)=>n(t)(e),{},e)}else{if(!Object(i.y)(r,!0)){let e;const t=Object(i.f)(r);throw e=Object(p.k)(Object(p.g)("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}a=e=>{const o=Object(i.r)(e,r,!0),c=o[0],a=o[1],s=0|a.length;if(0===s)return Object(i.E)(c);{const e=0|s,r=Object(i.p)(c),o=Object(f.f)(new Array(e+1),0,e+1,null);o[0]=Object(i.E)(c);for(let i=1;i<=e;i++){const e=Nr(u,t,n,r[i-1][1]);o[i]=e(a[i-1])}return o}}}return c.contents=a,a}function Nr(e,t,n,o){const c=Object(i.f)(o),u=z(c,e);if(null==u){if(Object(i.t)(o)){const r=Nr(e,t,n,Object(i.g)(o));return e=>xr(Object(d.q)(r,e))}if(Object(i.u)(o)){const e=Object(i.f)(Object(i.h)(o));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Object(i.f)(o);return Object(p.j)(Object(p.g)("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)}}if(Object(i.v)(o)){if(Object(i.x)(o)){const r=Object(f.k)(r=>Nr(e,t,n,r),Object(i.n)(o));return e=>xr(Object(d.r)((e,t)=>r[e](t),Object(i.o)(e)))}{const c=Object(i.f)(Object(i.j)(o));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===c){const c=new r.a(()=>{return r=Nr(e,t,n,Object(i.k)(o)[0]),e=>Object(s.c)(Object(s.d)(r,e),()=>null);var r});return e=>null==e?null:c.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===c||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===c){const r=Nr(e,t,n,Object(i.k)(o)[0]);return e=>xr(Object(d.q)(r,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===c){const r=Object(i.k)(o)[0],c=Nr(e,t,n,Object(i.k)(o)[1]);if("System.String"===Object(i.f)(r)||"System.Guid"===Object(i.f)(r))return e=>Object(d.l)((e,t)=>{const n=t;return e[n[0]]=c(n[1]),e},{},e);{let o;const i=Nr(e,t,n,r);return o=i,e=>xr(Object(d.q)(e=>{const t=e;return[o(t[0]),c(t[1])]},e))}}return Ir(e,t,n,o)}}return"System.Boolean"===c?e=>e:"Microsoft.FSharp.Core.Unit"===c?Tr:"System.String"===c?e=>e:"System.SByte"===c?e=>e:"System.Byte"===c?e=>e:"System.Int16"===c?e=>e:"System.UInt16"===c?e=>e:"System.Int32"===c?e=>e:"System.UInt32"===c?e=>e:"System.Double"===c?e=>e:"System.Single"===c?e=>e:"System.DateTime"===c?kr:"System.DateTimeOffset"===c?Sr:"System.TimeSpan"===c?Cr:"System.Guid"===c?Er:"System.Object"===c?e=>e:Ir(e,t,n,o)}{const e=u;return t=>e.contents(t)}}function Pr(e){return null!=e?W((e,t)=>new o.b(t[0]),e.Coders):X()}function Mr(e){return Object(p.k)(Object(p.g)("%s/tfn-declaration/backend"))(e)}function Dr(e,t){return ot(0,()=>{const n=$t((r=Object(p.k)(Object(p.g)("Bearer %s"))(e),new ct(0,"Authorization",r)),t);var r;let o;const i=mt(n);return o=a.g.Bind(i,e=>a.g.Return(new K.e(0,e))),a.g.Delay(()=>a.g.Bind(o,e=>{let t,r;const o=e;return 1===o.tag?a.g.Return(new K.e(1,o.fields[0])):a.g.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=mt(n),a.g.Bind(r,e=>a.g.Return(new K.e(0,e)))):rt(0,t)))}))})}const Rr=e=>jn(Object(r.F)(2,function(e,t,n){const r=Object(s.b)(t,new yt(0));return Hn(Vn(n),r,!1,e)}(jr(),new yt(1),void 0)),e);function Fr(e,t){return ot(0,()=>{const n=Dr(e,ht(new it(0),pt(Mr(t))));return a.g.Delay(()=>a.g.Bind(n,e=>{let t,n;const r=e;return 1===r.tag?a.g.Return(new K.e(1,r.fields[0])):a.g.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Rr(t.responseText),a.g.Return(n)):a.g.Return(new K.e(1,"Unexpected response from backend"))))}))})}function Lr(e,t,n){return ot(0,()=>{let o;const c=e.PreExistingTfnDec;let u,f;switch(2===c.tag&&0===c.fields[0].tag?(u=0,f=c.fields[0].fields[0]):u=1,u){case 0:o=ot(0,()=>rt(0,f));break;case 1:o=Fr(t,n)}return a.g.Delay(()=>a.g.Bind(o,o=>{let c,u,f;const p=o;return 1===p.tag?a.g.Return(new K.e(1,p.fields[0])):a.g.ReturnFrom((c=p.fields[0],f=function(e,t){return et(0,()=>Object(K.f)(n=>{const o=n,i=Object(s.d)(or,e.PreviousSurname.Value);return Object(K.f)(n=>{const c=0|n;return Object(K.f)(n=>{const u=0|n;return Object(K.f)(n=>{let a,s;const f=n,p=$r(e.DebtSupportCheckboxGroup),h=t.Data;if(null!=h){const e=h;return Qe(0,Object(l.b)(0===o.tag?Object(l.g)():1===o.fields[0].tag?(a=0|mr(o.fields[0].fields[0]),s=e.TfnInformation,1===s.tag&&s.fields[0]===a?Object(l.g)():Object(l.t)(new _r(1,new gr(1,a)))):Object(l.t)(new _r(1,new gr(0,o.fields[0].fields[0].fields[0]))),Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(r.n)(i,e.PreviousSurname)?Object(d.i)():Object(d.v)(new _r(2,i)),Object(d.h)(()=>Object(d.a)(c!==e.ResidencyStatus?Object(d.v)(new _r(3,c)):Object(d.i)(),Object(d.h)(()=>Object(d.a)(u!==e.EmploymentBasis?Object(d.v)(new _r(4,u)):Object(d.i)(),Object(d.h)(()=>Object(d.a)(f!==e.IsTaxFreeThresholdClaimed?Object(d.v)(new _r(5,f)):Object(d.i)(),Object(d.h)(()=>Object(r.n)(Object(l.v)(p,{Compare:r.g}),Object(l.v)(e.HasDebtSupport,{Compare:r.g}))?Object(d.i)():Object(d.v)(new _r(6,p))))))))))))))}return tt(0,0===o.tag?new K.e(1,"New TFN declaration cannot have a truncated TFN"):1===o.fields[0].tag?new K.e(0,new gr(1,mr(o.fields[0].fields[0]))):new K.e(0,new gr(0,o.fields[0].fields[0].fields[0])),e=>Object(l.t)(new _r(0,{AccountId:t.Meta.AccountId,EmploymentBasis:u,HasDebtSupport:p,IsTaxFreeThresholdClaimed:f,PreviousSurname:i,ResidencyStatus:c,TfnInformation:e})))},ee("missing is tax-free threshold claimed",Object(s.d)(e=>1!==e.tag,e.ClaimTaxFreeThreshold.Selected)))},ee("missing employment basis",Object(s.d)(fr,e.EmploymentBasisRadioButtonGroup.Value)))},ee("missing residency status",Object(s.d)(sr,e.ResidencyStatusRadioButtonGroup.Value)))},ee("missing TFN info",e.TfnInformation.Value)))()}(e,c),u=a.g.Return(f),a.g.Delay(()=>a.g.Bind(u,e=>{let r,o,u;const f=e;return 1===f.tag?a.g.Return(new K.e(1,f.fields[0])):a.g.ReturnFrom((r=f.fields[0],Object(l.l)(r)?rt(0,c):(o=Dr(t,(u=bt(new ut(1,Ar(0,function(e,t,n,r){const o=Object(s.b)(t,new yt(0)),i=Object(s.b)(r,!0);return Nr(Pr(n),o,i,e)}(Object(i.A)(Object(i.L)("Dto.Commands.TfnDeclarationCommandDto",[],_r,()=>[[["Item",Object(i.a)(["AccountId",i.J],["EmploymentBasis",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",i.c],["PreviousSurname",Object(i.G)(i.J)],["ResidencyStatus",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",Or()])]],[["Item",Or()]],[["Item",Object(i.G)(i.J)]],[["Item",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",i.c]],[["Item",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]])),new yt(1),void 0,void 0)(r))),ht(new it(2),pt(Mr(n)))),$t(new ct(0,"Content-Type","application/json"),u))),a.g.Delay(()=>a.g.Bind(o,e=>{let t,n;const r=e;return 1===r.tag?a.g.Return(new K.e(1,r.fields[0])):a.g.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Rr(t.responseText),a.g.Return(n)):a.g.Return(new K.e(1,"Unexpected response from backend"))))})))))}))))}))})}n(33);class Br{constructor(){}}function Gr(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(Object(r.n)(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 Ur=new Br;class Hr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Vr{constructor(e){this.state=new Hr(0,Object(f.f)(new Array(Object(r.t)(r.g,e,10)),0,Object(r.t)(r.g,e,10),null),0)}}function qr(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 Hr(0,o,n):new Hr(1,o,n,i),Object(s.f)(o[r])}}function zr(e,t,n){const o=Object(c.m)(e[0]),i=Object(c.m)(new Vr(10));const a=Object(c.d)(e[0]);let f;const p=Object(c.m)(Object(u.c)()),h=Object(c.m)(p.current);Object(c.g)(()=>Object(c.a)(()=>{Object(u.a)(p.current)})),f=h;const $=()=>{setTimeout(()=>{let e;e=f.current,Object(u.f)(e)||a[1](o.current)},0)},b=e=>{var n;(n=Gr(0,()=>{let n=Object(s.f)(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Ur,()=>{let e;return null!=n&&(e=f.current,!Object(u.f)(e))},Gr(0,()=>{const e=t(Object(s.i)(n),o.current);return Object(l.m)(e=>{e(b)},e[1]),n=qr(i.current),o.current=e[0],$(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},m=Object(c.e)(b);return Object(c.j)(()=>Object(c.a)(()=>{let e;Object(d.o)(e=>{Object(r.k)(e)},Object(s.g)((e=o.current,Object(r.s)(e)?e:void 0)))}),n),Object(c.i)(()=>{o.current=e[0],$(),Object(l.m)(e=>{e(m)},e[1])},n),Object(c.h)(()=>{Object(d.o)(m,Object(s.g)(qr(i.current)))}),[a[0],m]}class Wr extends o.c{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Yr(){return new Wr(void 0,{Valid:!1})}function Xr(e){return new Wr(e,{Valid:!0})}function Jr(e){switch(e){case"Under18AndBelowTaxThreshold":return new tr(0);case"Pending":return new tr(1);case"Pensioner":return new tr(2);default:return}}function Zr(e){switch(e){case"AustralianResidentForTaxPurposes":return new Kn(0);case"ForeignResidentForTaxPurposes":return new Kn(1);case"WorkingHolidayMaker":return new Kn(2);default:return}}function Kr(e){switch(e){case"HELP":return new Zn(0);case"VETStudentLoan":return new Zn(1);case"FinancialSupplement":return new Zn(2);case"StudentStartUpLoan":return new Zn(3);case"TradeSupportLoan":return new Zn(4);default:return}}function Qr(e){switch(e){case"FullTime":return new Qn(0);case"PartTime":return new Qn(1);case"LabourHire":return new Qn(2);case"SuperIncomeStream":return new Qn(3);case"Casual":return new Qn(4);default:return}}function eo(e){let t;return Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","mb-2"],(t=[Object(me.createElement)("strong",{children:[e]})],["children",We.a.Children.toArray(Array.from(t))])])))}function to(e,t){let n,o;return Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","mb-2"],(n=[Object(me.createElement)("span",Object(r.h)(Object(l.p)([["className","mr-2"],(o=[Object(me.createElement)("strong",{children:[e]})],["children",We.a.Children.toArray(Array.from(o))])]))),t],["children",We.a.Children.toArray(Array.from(n))])])))}class no extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class ro extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class oo extends o.c{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function io(e){return new oo(e,{Touched:!1})}function co(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new oo(e.fields[0],t.Meta):t:new oo(e.fields[0],{Touched:!0})}function uo(e){let t;const n=Object(r.n)(e.Parent.State.Selected,e.Selection)?Object(l.p)(["btn-secondary","active"]):Object(l.t)("btn-outline-secondary");return Object(me.createElement)("label",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",Object(l.b)(Object(l.t)("btn"),n))],(t=[Object(me.createElement)("input",{type:"radio",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new ro(0,e.Selection))},disabled:Object(r.n)(e.Parent.Disable,e.Selection)}),Object(o.f)(e.Selection)],["children",We.a.Children.toArray(Array.from(t))])])))}function ao(e){let t,n;return Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(t=[Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["btn-group","btn-group-toggle","col-12","col-sm-6"])],(n=[uo({Parent:e,Selection:new no(0)}),uo({Parent:e,Selection:new no(1)})],["children",We.a.Children.toArray(Array.from(n))])])))],["children",We.a.Children.toArray(Array.from(t))])])))}var so=n(16);class lo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class fo extends o.c{constructor(e){super(),this.Selected=e}}function po(e,t,n){const r=function(e,t){return new fo(e.fields[0])}(t);return e(new Wr(r.Selected,{Valid:null!=r.Selected})),[r,Object(so.g)()]}function ho(e){const t=zr((n=e.InitialValue,[new fo(n),Object(so.g)()]),(t,n)=>po(e.OnUpdate,t),[]);var n;const o=Object(d.z)(Object(d.h)(()=>Object(d.d)(n=>{let o;const i=n[0];return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-check","fl-radio-container"])],(o=[Object(me.createElement)("input",{className:"form-check-input",type:"radio",name:e.Name,id:i,checked:Object(s.h)(t[0].Selected)===i,onChange:e=>{e.target.checked;t[1](new lo(0,i))}}),Object(me.createElement)("label",{className:"form-check-label",for:i,children:n[1]})],["children",We.a.Children.toArray(Array.from(o))])]))))},e.ValueLabelPairs)));return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(o))})}class $o extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class bo extends o.c{constructor(e,t){super(),this.Text=e,this.Meta=t}}function mo(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new bo(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new bo(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Wr(o.Text,{Valid:o.Meta.Valid})),[o,Object(so.g)()]}class go extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function Oo(e){const t=zr(function(e,t){const n=Object(s.b)(e,"");return[new bo(n,{Touched:!1,Valid:t(n)}),Object(so.g)()]}(e.InitialValue,e.Validator),(t,n)=>mo(e.OnUpdate,e.Validator,t,n),[]),n=t[0],o=t[1],i=Object(l.p)([Object(me.createElement)("input",Object(r.h)(Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)(["className",Object(p.f)(" ",Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)("form-control"),Object(d.h)(()=>!n.Meta.Valid&&n.Meta.Touched?Object(d.v)("is-invalid"):Object(d.i)())))))]),Object(d.h)(()=>Object(d.a)(Object(d.v)(["type","text"]),Object(d.h)(()=>Object(d.a)(Object(d.v)(["onChange",t=>{const n=t.target.value;o(new $o(0,1===e.InputType.tag?n:Object(p.b)(Wn,n)))}]),Object(d.h)(()=>{let t;return Object(d.a)(Object(d.v)((t=n.Text,["ref",e=>{null==e||Object(r.n)(e.value,t)||(e.value=t)}])),Object(d.h)(()=>Object(d.a)(Object(d.v)(["onBlur",e=>{o(new $o(1))}]),Object(d.h)(()=>Object(r.n)(e.InputType,new go(0))?Object(d.v)(["inputmode","numeric"]):Object(d.i)()))))})))))))))),Object(me.createElement)("div",{className:"invalid-feedback",children:e.InvalidFeedback})]);return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(i))})}class yo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class vo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class wo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class jo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class _o extends o.c{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function Eo(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Wr(Object(s.d)(e=>new wo(1,e),e.Value),e.Meta)}return new Wr(new wo(0,Object(s.h)(e.TruncatedTfn)),{Valid:!0})}const xo=e=>Q(ur(e));function So(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new _o(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new jo(1,new Wr(n.Value,{Valid:!1})));if(1===r.tag)return new _o(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new jo(1,new Wr(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new _o(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new jo(1,new Wr(n.Value,{Valid:xo(t)})))}}return e}function Co(e,t,n){const r=function(e,t){let n,r,o,i,c,u,a,l,f,d;return So(1===e.tag?(n=e.fields[0],r=Object(s.d)(e=>new vo(0,new er(0,e)),n.Value),t.EditingState.tag,new _o(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new jo(1,new Wr(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=Object(s.d)(e=>new vo(1,e),Object(s.a)(Jr,o.Value)),t.EditingState.tag,new _o(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new jo(1,new Wr(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new _o(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new jo(0)):new _o(t.YesNoButtonGroup,t.TruncatedTfn,new Ye(2,"Please click the Save and continue button at the end of\n this form to save the changes to your TFN."),new jo(1,Yr())):4===e.tag?new _o(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(c=e.fields[0],c.tag,a=[c.fields[0],t.EditingState],u=1===a[0].tag?1===a[1].tag?(l=a[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new jo(1,Yr())):new jo(1,Yr()):1===a[1].tag?(f=[a[1].fields[0].Value,t.TruncatedTfn],null!=f[0]&&0===f[0].tag?t.EditingState:null!=f[1]?(d=f[1],new jo(0)):new jo(1,Yr())):new jo(0),new _o(co(c,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,u)))}(t,n);return e(Eo(r)),[r,Object(so.g)()]}function To(e){let t;const n=zr(function(e){let t,n,r;return[So(new _o(io(null!=e&&1===e.tag&&1===e.fields[0].tag?new no(1):new no(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new jo(1,Yr()):1===e.tag?(r=e.fields[0],new jo(1,new Wr(r,{Valid:!1}))):new jo(0))),Object(so.g)()]}(e.InitialValue),(t,n)=>Co(e.OnUpdate,t,n),[]),i=n[0],c=n[1],u=null==i.TruncatedTfn?null:Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-auto","col-sm-auto"])],(t=[Object(me.createElement)("button",{className:Object(p.f)(" ",["btn","btn-secondary"]),type:"button",children:Object(r.n)(i.EditingState,new jo(0))?"Change":"Cancel",onClick:e=>{c(new yo(3))}})],["children",We.a.Children.toArray(Array.from(t))])]))),a=Object(d.z)(Object(d.h)(()=>{let e,t;return Object(d.a)((e=i.CurrentAlert,null==e?Object(d.v)(null):(t=e,Object(d.v)(Object(me.createElement)(Ze,{alert:t,hideAlert:()=>{c(new yo(4))}})))),Object(d.h)(()=>Object(d.a)(Object(d.v)(eo("Do you have your TFN?")),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(me.createElement)(ao,{Disable:void 0,Dispatch:e=>{c(new yo(0,e))},State:i.YesNoButtonGroup})),Object(d.h)(()=>{let e;return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","mt-2"],(e=Object(d.z)(Object(d.h)(()=>{let e,t,n;const a=i.YesNoButtonGroup.Selected;if(null==a)return Object(d.v)(null);if(1===a.tag)return Object(d.v)(Object(me.createElement)(ho,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new tr(1),"My TFN is pending"],[new tr(0),"I'm under 18 and don't have a TFN"],[new tr(2),"I have an exemption from quoting a TFN (such as receiving a social security or service pension)"]])),{InitialValue:(t=Eo(i).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Object(o.f)(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{c(new yo(2,e))},ValueLabelPairs:e})));{const e=[i.TruncatedTfn,i.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return Object(d.a)(Object(d.v)(Object(me.createElement)("h6",{children:["Your Tax File Number"]})),Object(d.h)(()=>{let e,t,o;return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col","col-sm-4"])],(t=[Object(me.createElement)("input",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-control"])],["disabled",!0],(o="xxx-xxx-x"+n,["ref",e=>{null==e||Object(r.n)(e.value,o)||(e.value=o)}])])))],["children",We.a.Children.toArray(Array.from(t))])]))),u],["children",We.a.Children.toArray(Array.from(e))])]))))}));case 1:return Object(d.a)(Object(d.v)(Object(me.createElement)("h6",{children:["Enter Tax File Number"]})),Object(d.h)(()=>{let e,t;return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col","col-sm-4"])],(t=[Object(me.createElement)(Oo,{InitialValue:void 0,InputType:new go(0),InvalidFeedback:"Please enter a valid tax file number",OnUpdate:e=>{c(new yo(1,e))},Validator:xo})],["children",We.a.Children.toArray(Array.from(t))])]))),u],["children",We.a.Children.toArray(Array.from(e))])]))))}))}}})),["children",We.a.Children.toArray(Array.from(e))])]))))}))))))}));return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(a))})}class ko extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class Ao extends o.c{constructor(e,t,n,r,o,i,c,u){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatusRadioButtonGroup=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=c,this.EmploymentBasisRadioButtonGroup=u}}class Io extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function No(){const e=Object(p.h)(document.URL,["/"],null,0),t=Object(f.c)("web",e,{Equals:(e,t)=>e===t,GetHashCode:r.C}),n=Object(f.c)("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:r.C}),o=[Object(s.e)(document.querySelector("tax-component")),t,n];let i;switch(i=null==o[0]?o[1]?o[2]?3:1:o[2]?2:3:0,i){case 0:return new K.e(0,new Io(2,o[0]));case 1:return new K.e(0,new Io(0));case 2:return new K.e(0,new Io(1));case 3:return new K.e(1,"Could not determine the embed mode")}}var Po=n(30);function Mo(e,t){switch(e.tag){case 1:return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 2:{const n=Object(s.a)(Zr,e.fields[0].Value);return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,new Wr(n,{Valid:null!=n}),t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),null==n?Object(so.g)():1===n.tag?Object(so.a)(new ko(3,new ro(1,new no(1),!1))):2===n.tag?Object(so.a)(new ko(3,new ro(1,new no(1),!0))):Object(so.a)(new ko(3,new ro(1,new no(0),!1)))]}case 3:return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,co(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 4:return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 5:{const n=Object(s.a)(Qr,e.fields[0].Value);return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Wr(n,{Valid:null!=n})),Object(so.g)()]}case 6:{const n=e.fields[0],r=new Ao(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Object(so.a)(new ko(7,new Ye(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=No();let r;switch(r=0===n.tag&&(0===n.fields[0].tag||1===n.fields[0].tag)?0:1,r){case 0:{const n=Object(s.e)(document.getElementById("external-loading-page-container"));Object(d.o)((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),Object(s.g)(n));break}}}();const i=Object(so.a)(new ko(10));let c,u;switch(2===n.tag?1===n.fields[0].tag?c=1:(c=0,u=n.fields[0].fields[0]):c=3===n.tag?1:2,c){case 0:{const e=Object(s.d)(e=>function(e,t){return et(0,()=>{let n;return Object(K.f)(n=>Object(K.f)(r=>{const o=t.IsTaxFreeThresholdClaimed?new no(0):new no(1);return Object(K.f)(i=>tt(0,lr(t.EmploymentBasis),c=>new Ao(e.PreExistingTfnDec,e.CurrentAlert,Xr(n),Xr(Object(s.d)(rr,t.PreviousSurname)),Xr(r),io(o),i,Xr(c))),hr(t.HasDebtSupport))},ar(t.ResidencyStatus)),(n=t.TfnInformation,1===n.tag?Object(K.g)(e=>new wo(1,new vo(1,e)),br(n.fields[0])):new K.e(0,new wo(0,n.fields[0]))))})()}(r,e),u.Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}case 1:return[r,o];case 2:return[r,i]}}case 7:return[new Ao(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 8:return[new Ao(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 9:return[new Ao(new J(2,new K.e(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()];case 10:return function(){const e=No();let t;switch(t=0===e.tag&&(0===e.fields[0].tag||1===e.fields[0].tag)?0:1,t){case 0:window.parent.postMessage({sender:"flare",type:"appReady"},"*",Object(s.f)(Object(l.g)()))}}(),[t,Object(so.g)()];default:return[new Ao(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(so.g)()]}}class Do extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Ro extends o.c{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Fo(e){return!Object(p.e)(e)}function Lo(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Ro(e.YesNoButtonGroup,new Wr(e.Data.Value,{Valid:!1})):1===t.tag?new Ro(e.YesNoButtonGroup,new Wr(e.Data.Value,{Valid:!0})):new Ro(e.YesNoButtonGroup,new Wr(e.Data.Value,{Valid:Object(s.b)(Object(s.d)(e=>Fo(e.fields[0]),e.Data.Value),!1)}))}function Bo(e,t,n){const r=function(e,t){let n,r,o;return Lo(1===e.tag?(n=e.fields[0],new Ro(t.YesNoButtonGroup,new Wr(Object(s.d)(e=>new nr(0,e),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Wr(void 0,t.Data.Meta):t.Data,new Ro(co(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Object(so.g)()]}function Go(e){let t;const n=zr((o=e.InitialValue,[Lo(new Ro(io(new no(null!=o?0:1)),new Wr(o,{Valid:!1}))),Object(so.g)()]),(t,n)=>Bo(e.OnUpdate,t,n),[]);var o;const i=n[0],c=n[1],u=Object(l.p)([eo("Have you changed your surname since you last dealt with the Australian Tax Office?"),Object(me.createElement)(ao,{Disable:void 0,Dispatch:e=>{c(new Do(0,e))},State:i.YesNoButtonGroup}),Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","mt-2"],(t=Object(d.z)(Object(d.h)(()=>{const e=i.YesNoButtonGroup.Selected;let t;switch(t=null!=e&&0===e.tag?0:1,t){case 0:return Object(d.a)(Object(d.v)(Object(me.createElement)("h6",{children:["Enter Previous Surname"]})),Object(d.h)(()=>{let e,t;return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-12","col-sm-5"])],(t=[Object(me.createElement)(Oo,{InitialValue:Object(s.d)(or,i.Data.Value),InputType:new go(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{c(new Do(1,e))},Validator:Fo})],["children",We.a.Children.toArray(Array.from(t))])])))],["children",We.a.Children.toArray(Array.from(e))])]))))}));case 1:return Object(d.v)(null)}})),["children",We.a.Children.toArray(Array.from(t))])])))]);return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(u))})}function Uo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ho(e){return e instanceof Uo(e).Element||e instanceof Element}function Vo(e){return e instanceof Uo(e).HTMLElement||e instanceof HTMLElement}function qo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Uo(e).ShadowRoot||e instanceof ShadowRoot)}var zo=Math.max,Wo=Math.min,Yo=Math.round;function Xo(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Vo(e)&&t){var i=e.offsetHeight,c=e.offsetWidth;c>0&&(r=Yo(n.width)/c||1),i>0&&(o=Yo(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Jo(e){var t=Uo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zo(e){return e?(e.nodeName||"").toLowerCase():null}function Ko(e){return((Ho(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qo(e){return Xo(Ko(e)).left+Jo(e).scrollLeft}function ei(e){return Uo(e).getComputedStyle(e)}function ti(e){var t=ei(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ni(e,t,n){void 0===n&&(n=!1);var r,o,i=Vo(t),c=Vo(t)&&function(e){var t=e.getBoundingClientRect(),n=Yo(t.width)/e.offsetWidth||1,r=Yo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=Ko(t),a=Xo(e,c),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Zo(t)||ti(u))&&(s=(r=t)!==Uo(r)&&Vo(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Jo(r)),Vo(t)?((l=Xo(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):u&&(l.x=Qo(u))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ri(e){var t=Xo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oi(e){return"html"===Zo(e)?e:e.assignedSlot||e.parentNode||(qo(e)?e.host:null)||Ko(e)}function ii(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Zo(t))>=0?t.ownerDocument.body:Vo(t)&&ti(t)?t:e(oi(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Uo(r),c=o?[i].concat(i.visualViewport||[],ti(r)?r:[]):r,u=t.concat(c);return o?u:u.concat(ii(oi(c)))}function ci(e){return["table","td","th"].indexOf(Zo(e))>=0}function ui(e){return Vo(e)&&"fixed"!==ei(e).position?e.offsetParent:null}function ai(e){for(var t=Uo(e),n=ui(e);n&&ci(n)&&"static"===ei(n).position;)n=ui(n);return n&&("html"===Zo(n)||"body"===Zo(n)&&"static"===ei(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Vo(e)&&"fixed"===ei(e).position)return null;var n=oi(e);for(qo(n)&&(n=n.host);Vo(n)&&["html","body"].indexOf(Zo(n))<0;){var r=ei(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var si="top",li="bottom",fi="right",di="left",pi=[si,li,fi,di],hi=pi.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),$i=[].concat(pi,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),bi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mi(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var gi={placement:"bottom",modifiers:[],strategy:"absolute"};function Oi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?gi:o;return function(e,t,n){void 0===n&&(n=i);var o,c,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},gi,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:u,setOptions:function(n){var o="function"==typeof n?n(u.options):n;f(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:Ho(e)?ii(e):e.contextElement?ii(e.contextElement):[],popper:ii(t)};var c=function(e){var t=mi(e);return bi.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,u.options.modifiers)));return u.orderedModifiers=c.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:l,options:r});a.push(i||function(){})}})),l.update()},forceUpdate:function(){if(!s){var e=u.elements,t=e.reference,n=e.popper;if(Oi(t,n)){u.rects={reference:ni(t,ai(n),"fixed"===u.options.strategy),popper:ri(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,c=o.options,a=void 0===c?{}:c,f=o.name;"function"==typeof i&&(u=i({state:u,options:a,name:f,instance:l})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(u)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){f(),s=!0}};if(!Oi(e,t))return l;function f(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var vi={passive:!0};function wi(e){return e.split("-")[0]}function ji(e){return e.split("-")[1]}function _i(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ei(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?wi(o):null,c=o?ji(o):null,u=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(i){case si:t={x:u,y:n.y-r.height};break;case li:t={x:u,y:n.y+n.height};break;case fi:t={x:n.x+n.width,y:a};break;case di:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=i?_i(i):null;if(null!=s){var l="y"===s?"height":"width";switch(c){case"start":t[s]=t[s]-(n[l]/2-r[l]/2);break;case"end":t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var xi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Si(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,u=e.position,a=e.gpuAcceleration,s=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=c.x,p=void 0===d?0:d,h=c.y,$=void 0===h?0:h,b="function"==typeof l?l({x:p,y:$}):{x:p,y:$};p=b.x,$=b.y;var m=c.hasOwnProperty("x"),g=c.hasOwnProperty("y"),O=di,y=si,v=window;if(s){var w=ai(n),j="clientHeight",_="clientWidth";if(w===Uo(n)&&"static"!==ei(w=Ko(n)).position&&"absolute"===u&&(j="scrollHeight",_="scrollWidth"),w=w,o===si||(o===di||o===fi)&&"end"===i)y=li,$-=(f&&w===v&&v.visualViewport?v.visualViewport.height:w[j])-r.height,$*=a?1:-1;if(o===di||(o===si||o===li)&&"end"===i)O=fi,p-=(f&&w===v&&v.visualViewport?v.visualViewport.width:w[_])-r.width,p*=a?1:-1}var E,x=Object.assign({position:u},s&&xi),S=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Yo(t*r)/r||0,y:Yo(n*r)/r||0}}({x:p,y:$}):{x:p,y:$};return p=S.x,$=S.y,a?Object.assign({},x,((E={})[y]=g?"0":"",E[O]=m?"0":"",E.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+$+"px)":"translate3d("+p+"px, "+$+"px, 0)",E)):Object.assign({},x,((t={})[y]=g?$+"px":"",t[O]=m?p+"px":"",t.transform="",t))}var Ci={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Vo(o)&&Zo(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vo(r)&&Zo(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ti={left:"right",right:"left",bottom:"top",top:"bottom"};function ki(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ti[e]}))}var Ai={start:"end",end:"start"};function Ii(e){return e.replace(/start|end/g,(function(e){return Ai[e]}))}function Ni(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mi(e,t){return"viewport"===t?Pi(function(e){var t=Uo(e),n=Ko(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,c=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:c+Qo(e),y:u}}(e)):Ho(t)?function(e){var t=Xo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Pi(function(e){var t,n=Ko(e),r=Jo(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=zo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=zo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Qo(e),a=-r.scrollTop;return"rtl"===ei(o||n).direction&&(u+=zo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:u,y:a}}(Ko(e)))}function Di(e,t,n){var r="clippingParents"===t?function(e){var t=ii(oi(e)),n=["absolute","fixed"].indexOf(ei(e).position)>=0&&Vo(e)?ai(e):e;return Ho(n)?t.filter((function(e){return Ho(e)&&Ni(e,n)&&"body"!==Zo(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],c=o.reduce((function(t,n){var r=Mi(e,n);return t.top=zo(r.top,t.top),t.right=Wo(r.right,t.right),t.bottom=Wo(r.bottom,t.bottom),t.left=zo(r.left,t.left),t}),Mi(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ri(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Fi(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Li(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,c=void 0===i?"clippingParents":i,u=n.rootBoundary,a=void 0===u?"viewport":u,s=n.elementContext,l=void 0===s?"popper":s,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,$=Ri("number"!=typeof h?h:Fi(h,pi)),b="popper"===l?"reference":"popper",m=e.rects.popper,g=e.elements[d?b:l],O=Di(Ho(g)?g:g.contextElement||Ko(e.elements.popper),c,a),y=Xo(e.elements.reference),v=Ei({reference:y,element:m,strategy:"absolute",placement:o}),w=Pi(Object.assign({},m,v)),j="popper"===l?w:y,_={top:O.top-j.top+$.top,bottom:j.bottom-O.bottom+$.bottom,left:O.left-j.left+$.left,right:j.right-O.right+$.right},E=e.modifiersData.offset;if("popper"===l&&E){var x=E[o];Object.keys(_).forEach((function(e){var t=[fi,li].indexOf(e)>=0?1:-1,n=[si,li].indexOf(e)>=0?"y":"x";_[e]+=x[n]*t}))}return _}function Bi(e,t,n){return zo(e,Wo(t,n))}function Gi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ui(e){return[si,fi,li,di].some((function(t){return e[t]>=0}))}var Hi=yi({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,c=r.resize,u=void 0===c||c,a=Uo(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,vi)})),u&&a.addEventListener("resize",n.update,vi),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,vi)})),u&&a.removeEventListener("resize",n.update,vi)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ei({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,c=void 0===i||i,u=n.roundOffsets,a=void 0===u||u,s={placement:wi(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Si(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Si(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Ci,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,c=$i.reduce((function(e,n){return e[n]=function(e,t,n){var r=wi(e),o=[di,si].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=i[0],u=i[1];return c=c||0,u=(u||0)*o,[di,fi].indexOf(r)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,i),e}),{}),u=c[t.placement],a=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0===c||c,a=n.fallbackPlacements,s=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,$=n.allowedAutoPlacements,b=t.options.placement,m=wi(b),g=a||(m===b||!h?[ki(b)]:function(e){if("auto"===wi(e))return[];var t=ki(e);return[Ii(e),t,Ii(t)]}(b)),O=[b].concat(g).reduce((function(e,n){return e.concat("auto"===wi(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,u=n.flipVariations,a=n.allowedAutoPlacements,s=void 0===a?$i:a,l=ji(r),f=l?u?hi:hi.filter((function(e){return ji(e)===l})):pi,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Li(e,{placement:n,boundary:o,rootBoundary:i,padding:c})[wi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:$}):n)}),[]),y=t.rects.reference,v=t.rects.popper,w=new Map,j=!0,_=O[0],E=0;E<O.length;E++){var x=O[E],S=wi(x),C="start"===ji(x),T=[si,li].indexOf(S)>=0,k=T?"width":"height",A=Li(t,{placement:x,boundary:l,rootBoundary:f,altBoundary:d,padding:s}),I=T?C?fi:di:C?li:si;y[k]>v[k]&&(I=ki(I));var N=ki(I),P=[];if(i&&P.push(A[S]<=0),u&&P.push(A[I]<=0,A[N]<=0),P.every((function(e){return e}))){_=x,j=!1;break}w.set(x,P)}if(j)for(var M=function(e){var t=O.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},D=h?3:1;D>0;D--){if("break"===M(D))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0!==c&&c,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,$=void 0===h?0:h,b=Li(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:l}),m=wi(t.placement),g=ji(t.placement),O=!g,y=_i(m),v="x"===y?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,_=t.rects.popper,E="function"==typeof $?$(Object.assign({},t.rects,{placement:t.placement})):$,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(i){var T,k="y"===y?si:di,A="y"===y?li:fi,I="y"===y?"height":"width",N=w[y],P=N+b[k],M=N-b[A],D=p?-_[I]/2:0,R="start"===g?j[I]:_[I],F="start"===g?-_[I]:-j[I],L=t.elements.arrow,B=p&&L?ri(L):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=G[k],H=G[A],V=Bi(0,j[I],B[I]),q=O?j[I]/2-D-V-U-x.mainAxis:R-V-U-x.mainAxis,z=O?-j[I]/2+D+V+H+x.mainAxis:F+V+H+x.mainAxis,W=t.elements.arrow&&ai(t.elements.arrow),Y=W?"y"===y?W.clientTop||0:W.clientLeft||0:0,X=null!=(T=null==S?void 0:S[y])?T:0,J=N+z-X,Z=Bi(p?Wo(P,N+q-X-Y):P,N,p?zo(M,J):M);w[y]=Z,C[y]=Z-N}if(u){var K,Q="x"===y?si:di,ee="x"===y?li:fi,te=w[v],ne="y"===v?"height":"width",re=te+b[Q],oe=te-b[ee],ie=-1!==[si,di].indexOf(m),ce=null!=(K=null==S?void 0:S[v])?K:0,ue=ie?re:te-j[ne]-_[ne]-ce+x.altAxis,ae=ie?te+j[ne]+_[ne]-ce-x.altAxis:oe,se=p&&ie?function(e,t,n){var r=Bi(e,t,n);return r>n?n:r}(ue,te,ae):Bi(p?ue:re,te,p?ae:oe);w[v]=se,C[v]=se-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,u=wi(n.placement),a=_i(u),s=[di,fi].indexOf(u)>=0?"height":"width";if(i&&c){var l=function(e,t){return Ri("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Fi(e,pi))}(o.padding,n),f=ri(i),d="y"===a?si:di,p="y"===a?li:fi,h=n.rects.reference[s]+n.rects.reference[a]-c[a]-n.rects.popper[s],$=c[a]-n.rects.reference[a],b=ai(i),m=b?"y"===a?b.clientHeight||0:b.clientWidth||0:0,g=h/2-$/2,O=l[d],y=m-f[s]-l[p],v=m/2-f[s]/2+g,w=Bi(O,v,y),j=a;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-v,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ni(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=Li(t,{elementContext:"reference"}),u=Li(t,{altBoundary:!0}),a=Gi(c,r),s=Gi(u,o,i),l=Ui(a),f=Ui(s);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Vi={passive:!0,capture:!0},qi=function(){return document.body};function zi(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Wi(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Yi(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Xi(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Ji(e){return[].concat(e)}function Zi(e,t){-1===e.indexOf(t)&&e.push(t)}function Ki(e){return e.split("-")[0]}function Qi(e){return[].slice.call(e)}function ec(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function tc(){return document.createElement("div")}function nc(e){return["Element","Fragment"].some((function(t){return Wi(e,t)}))}function rc(e){return Wi(e,"MouseEvent")}function oc(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function ic(e){return nc(e)?[e]:function(e){return Wi(e,"NodeList")}(e)?Qi(e):Array.isArray(e)?e:Qi(document.querySelectorAll(e))}function cc(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function uc(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ac(e){var t,n=Ji(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function sc(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function lc(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var fc={isTouch:!1},dc=0;function pc(){fc.isTouch||(fc.isTouch=!0,window.performance&&document.addEventListener("mousemove",hc))}function hc(){var e=performance.now();e-dc<20&&(fc.isTouch=!1,document.removeEventListener("mousemove",hc)),dc=e}function $c(){var e=document.activeElement;if(oc(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var bc=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var mc={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},gc=Object.assign({appendTo:qi,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},mc,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Oc=Object.keys(gc);function yc(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=gc[o])?r:i);return t}),{});return Object.assign({},e,t)}function vc(e,t){var n=Object.assign({},t,{content:Yi(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(yc(Object.assign({},gc,{plugins:t}))):Oc).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},gc.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function wc(e,t){e.innerHTML=t}function jc(e){var t=tc();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",nc(e)?t.appendChild(e):wc(t,e)),t}function _c(e,t){nc(t.content)?(wc(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?wc(e,t.content):e.textContent=t.content)}function Ec(e){var t=e.firstElementChild,n=Qi(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function xc(e){var t=tc(),n=tc();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=tc();function o(n,r){var o=Ec(t),i=o.box,c=o.content,u=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_c(c,e.props),r.arrow?u?n.arrow!==r.arrow&&(i.removeChild(u),i.appendChild(jc(r.arrow))):i.appendChild(jc(r.arrow)):u&&i.removeChild(u)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),_c(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}xc.$$tippy=!0;var Sc=1,Cc=[],Tc=[];function kc(e,t){var n,r,o,i,c,u,a,s,l=vc(e,Object.assign({},gc,yc(ec(t)))),f=!1,d=!1,p=!1,h=!1,$=[],b=Xi(W,l.interactiveDebounce),m=Sc++,g=(s=l.plugins).filter((function(e,t){return s.indexOf(e)===t})),O={id:m,reference:e,popper:tc(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(O.state.isDestroyed)return;N("onBeforeUpdate",[O,t]),q();var n=O.props,r=vc(e,Object.assign({},n,ec(t),{ignoreAttributes:!0}));O.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),b=Xi(W,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ji(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");M(),I(),w&&w(n,r);O.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[O,t])},setContent:function(e){O.setProps({content:e})},show:function(){0;var e=O.state.isVisible,t=O.state.isDestroyed,n=!O.state.isEnabled,r=fc.isTouch&&!O.props.touch,o=zi(O.props.duration,0,gc.duration);if(e||t||n||r)return;if(C().hasAttribute("disabled"))return;if(N("onShow",[O],!1),!1===O.props.onShow(O))return;O.state.isVisible=!0,S()&&(v.style.visibility="visible");I(),B(),O.state.isMounted||(v.style.transition="none");if(S()){var i=k(),c=i.box,a=i.content;cc([c,a],0)}u=function(){var e;if(O.state.isVisible&&!h){if(h=!0,v.offsetHeight,v.style.transition=O.props.moveTransition,S()&&O.props.animation){var t=k(),n=t.box,r=t.content;cc([n,r],o),uc([n,r],"visible")}P(),M(),Zi(Tc,O),null==(e=O.popperInstance)||e.forceUpdate(),N("onMount",[O]),O.props.animation&&S()&&function(e,t){U(e,t)}(o,(function(){O.state.isShown=!0,N("onShown",[O])}))}},function(){var e,t=O.props.appendTo,n=C();e=O.props.interactive&&t===qi||"parent"===t?n.parentNode:Yi(t,[n]);e.contains(v)||e.appendChild(v);O.state.isMounted=!0,Z(),!1}()},hide:function(){0;var e=!O.state.isVisible,t=O.state.isDestroyed,n=!O.state.isEnabled,r=zi(O.props.duration,1,gc.duration);if(e||t||n)return;if(N("onHide",[O],!1),!1===O.props.onHide(O))return;O.state.isVisible=!1,O.state.isShown=!1,h=!1,f=!1,S()&&(v.style.visibility="hidden");if(D(),G(),I(!0),S()){var o=k(),i=o.box,c=o.content;O.props.animation&&(cc([i,c],r),uc([i,c],"hidden"))}P(),M(),O.props.animation?S()&&function(e,t){U(e,(function(){!O.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(r,O.unmount):O.unmount()},hideWithInteractivity:function(e){0;T().addEventListener("mousemove",b),Zi(Cc,b),b(e)},enable:function(){O.state.isEnabled=!0},disable:function(){O.hide(),O.state.isEnabled=!1},unmount:function(){0;O.state.isVisible&&O.hide();if(!O.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),v.parentNode&&v.parentNode.removeChild(v);Tc=Tc.filter((function(e){return e!==O})),O.state.isMounted=!1,N("onHidden",[O])},destroy:function(){0;if(O.state.isDestroyed)return;O.clearDelayTimeouts(),O.unmount(),q(),delete e._tippy,O.state.isDestroyed=!0,N("onDestroy",[O])}};if(!l.render)return O;var y=l.render(O),v=y.popper,w=y.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+O.id,O.popper=v,e._tippy=O,v._tippy=O;var j=g.map((function(e){return e.fn(O)})),_=e.hasAttribute("aria-expanded");return V(),M(),I(),N("onCreate",[O]),l.showOnCreate&&ee(),v.addEventListener("mouseenter",(function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",b)})),O;function E(){var e=O.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===E()[0]}function S(){var e;return!(null==(e=O.props.render)||!e.$$tippy)}function C(){return a||e}function T(){var e=C().parentNode;return e?ac(e):document}function k(){return Ec(v)}function A(e){return O.state.isMounted&&!O.state.isVisible||fc.isTouch||i&&"focus"===i.type?0:zi(O.props.delay,e?0:1,gc.delay)}function I(e){void 0===e&&(e=!1),v.style.pointerEvents=O.props.interactive&&!e?"":"none",v.style.zIndex=""+O.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),j.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=O.props)[e].apply(r,t)}function P(){var t=O.props.aria;if(t.content){var n="aria-"+t.content,r=v.id;Ji(O.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(O.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function M(){!_&&O.props.aria.expanded&&Ji(O.props.triggerTarget||e).forEach((function(e){O.props.interactive?e.setAttribute("aria-expanded",O.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){T().removeEventListener("mousemove",b),Cc=Cc.filter((function(e){return e!==b}))}function R(t){if(!fc.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!O.props.interactive||!lc(v,n)){if(Ji(O.props.triggerTarget||e).some((function(e){return lc(e,n)}))){if(fc.isTouch)return;if(O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[O,t]);!0===O.props.hideOnClick&&(O.clearDelayTimeouts(),O.hide(),d=!0,setTimeout((function(){d=!1})),O.state.isMounted||G())}}}function F(){p=!0}function L(){p=!1}function B(){var e=T();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Vi),e.addEventListener("touchstart",L,Vi),e.addEventListener("touchmove",F,Vi)}function G(){var e=T();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Vi),e.removeEventListener("touchstart",L,Vi),e.removeEventListener("touchmove",F,Vi)}function U(e,t){var n=k().box;function r(e){e.target===n&&(sc(n,"remove",r),t())}if(0===e)return t();sc(n,"remove",c),sc(n,"add",r),c=r}function H(t,n,r){void 0===r&&(r=!1),Ji(O.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),$.push({node:e,eventType:t,handler:n,options:r})}))}function V(){var e;x()&&(H("touchstart",z,{passive:!0}),H("touchend",Y,{passive:!0})),(e=O.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,z),e){case"mouseenter":H("mouseleave",Y);break;case"focus":H(bc?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function q(){$.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),$=[]}function z(e){var t,n=!1;if(O.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,a=e.currentTarget,M(),!O.state.isVisible&&rc(e)&&Cc.forEach((function(t){return t(e)})),"click"===e.type&&(O.props.trigger.indexOf("mouseenter")<0||f)&&!1!==O.props.hideOnClick&&O.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function W(e){var t=e.target,n=C().contains(t)||v.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,c=Ki(o.placement),u=o.modifiersData.offset;if(!u)return!0;var a="bottom"===c?u.top.y:0,s="top"===c?u.bottom.y:0,l="right"===c?u.left.x:0,f="left"===c?u.right.x:0,d=t.top-r+a>i,p=r-t.bottom-s>i,h=t.left-n+l>i,$=n-t.right-f>i;return d||p||h||$}))}(Q().concat(v).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean),e)&&(D(),te(e))}function Y(e){J(e)||O.props.trigger.indexOf("click")>=0&&f||(O.props.interactive?O.hideWithInteractivity(e):te(e))}function X(e){O.props.trigger.indexOf("focusin")<0&&e.target!==C()||O.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function J(e){return!!fc.isTouch&&x()!==e.type.indexOf("touch")>=0}function Z(){K();var t=O.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,c=t.moveTransition,a=S()?Ec(v).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!c}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=k().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];S()&&a&&l.push({name:"arrow",options:{element:a,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),O.popperInstance=Hi(s,v,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function K(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function Q(){return Qi(v.querySelectorAll("[data-tippy-root]"))}function ee(e){O.clearDelayTimeouts(),e&&N("onTrigger",[O,e]),B();var t=A(!0),r=E(),o=r[0],i=r[1];fc.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){O.show()}),t):O.show()}function te(e){if(O.clearDelayTimeouts(),N("onUntrigger",[O,e]),O.state.isVisible){if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=A(!1);t?r=setTimeout((function(){O.state.isVisible&&O.hide()}),t):o=requestAnimationFrame((function(){O.hide()}))}}else G()}}function Ac(e,t){void 0===t&&(t={});var n=gc.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",pc,Vi),window.addEventListener("blur",$c);var r=Object.assign({},t,{plugins:n}),o=ic(e).reduce((function(e,t){var n=t&&kc(t,r);return n&&e.push(n),e}),[]);return nc(e)?o[0]:o}Ac.defaultProps=gc,Ac.setDefaultProps=function(e){Object.keys(e).forEach((function(t){gc[t]=e[t]}))},Ac.currentInput=fc;Object.assign({},Ci,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Ac.setDefaultProps({render:xc});var Ic=Ac;function Nc(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}var Pc="undefined"!=typeof window&&"undefined"!=typeof document;function Mc(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Dc(){return Pc&&document.createElement("div")}function Rc(e){var t=[];return e.forEach((function(e){t.find((function(t){return function e(t,n){if(t===n)return!0;if("object"==typeof t&&null!=t&&"object"==typeof n&&null!=n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t){if(!n.hasOwnProperty(r))return!1;if(!e(t[r],n[r]))return!1}return!0}return!1}(e,t)}))||t.push(e)})),t}function Fc(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Rc([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Lc=Pc?me.useLayoutEffect:me.useEffect;function Bc(e){var t=Object(me.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Gc(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Uc={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Gc(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Gc(t,"remove",e.props.className)},onAfterUpdate:r}}};function Hc(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,c=t.render,u=t.reference,a=t.disabled,s=void 0!==a&&a,l=t.ignoreAttributes,f=void 0===l||l,d=(t.__source,t.__self,Nc(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),p=void 0!==o,h=void 0!==i,$=Object(me.useState)(!1),b=$[0],m=$[1],g=Object(me.useState)({}),O=g[0],y=g[1],v=Object(me.useState)(),w=v[0],j=v[1],_=Bc((function(){return{container:Dc(),renders:1}})),E=Object.assign({ignoreAttributes:f},d,{content:_.container});p&&(E.trigger="manual",E.hideOnClick=!1),h&&(s=!0);var x=E,S=E.plugins||[];c&&(x=Object.assign({},E,{plugins:h&&null!=i.data?[].concat(S,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,j(n.content)}}}}]):S,render:function(){return{popper:_.container}}}));var C=[u].concat(n?[n.type]:[]);return Lc((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||_.ref||Dc(),Object.assign({},x,{plugins:[Uc].concat(E.plugins||[])}));return _.instance=n,s&&n.disable(),o&&n.show(),h&&i.hook({instance:n,content:r,props:x,setSingletonContent:j}),m(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),C),Lc((function(){var e;if(1!==_.renders){var t=_.instance;t.setProps(Fc(t.props,x)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),p&&(o?t.show():t.hide()),h&&i.hook({instance:t,content:r,props:x,setSingletonContent:j})}else _.renders++})),Lc((function(){var e;if(c){var t=_.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||y({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(C)),me.default.createElement(me.default.Fragment,null,n?Object(me.cloneElement)(n,{ref:function(e){_.ref=e,Mc(n.ref,e)}}):null,b&&Object(me.createPortal)(c?c(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),w,_.instance):r,_.container))}}var Vc=function(e,t){return Object(me.forwardRef)((function(n,r){var o=n.children,i=Nc(n,["children"]);return me.default.createElement(e,Object.assign({},t,i),o?Object(me.cloneElement)(o,{ref:function(e){Mc(r,e),Mc(o.ref,e)}}):null)}))},qc=Vc(Hc(Ic));class zc extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Content"]}}var Wc=n(29);function Yc(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 Xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach((function(t){Zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jc(e){return(Jc="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 Zc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kc(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 Qc(e){return function(e){if(Array.isArray(e))return eu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return eu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tu(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}var nu=["style"];function ru(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=tu(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 ou=!1;try{ou=!0}catch(e){}function iu(e){return e&&"object"===Jc(e)&&e.prefix&&e.iconName&&e.icon?e:Wc.b.icon?Wc.b.icon(e):null===e?null:e&&"object"===Jc(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 cu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Zc({},e,t):{}}var uu=["forwardedRef"];function au(e){var t=e.forwardedRef,n=Kc(e,uu),r=n.icon,o=n.mask,i=n.symbol,c=n.className,u=n.title,a=n.titleId,s=n.maskId,l=iu(r),f=cu("classes",[].concat(Qc(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,c=e.shake,u=e.flash,a=e.spin,s=e.spinPulse,l=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,$=e.listItem,b=e.flip,m=e.size,g=e.rotation,O=e.pull,y=(Zc(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":c,"fa-flash":u,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":s,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":$,"fa-flip-horizontal":"horizontal"===b||"both"===b,"fa-flip-vertical":"vertical"===b||"both"===b},"fa-".concat(m),null!=m),Zc(t,"fa-rotate-".concat(g),null!=g&&0!==g),Zc(t,"fa-pull-".concat(O),null!=O),Zc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(y).map((function(e){return y[e]?e:null})).filter((function(e){return e}))}(n)),Qc(c.split(" ")))),d=cu("transform","string"==typeof n.transform?Wc.b.transform(n.transform):n.transform),p=cu("mask",iu(o)),h=Object(Wc.a)(l,Xc(Xc(Xc(Xc({},f),d),p),{},{symbol:i,title:u,titleId:a,maskId:s}));if(!h)return function(){var e;!ou&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var $=h.abstract,b={ref:t};return Object.keys(n).forEach((function(e){au.defaultProps.hasOwnProperty(e)||(b[e]=n[e])})),su($[0],b)}au.displayName="FontAwesomeIcon",au.propTypes={beat:je.a.bool,border:je.a.bool,bounce:je.a.bool,className:je.a.string,fade:je.a.bool,flash:je.a.bool,mask:je.a.oneOfType([je.a.object,je.a.array,je.a.string]),maskId:je.a.string,fixedWidth:je.a.bool,inverse:je.a.bool,flip:je.a.oneOf(["horizontal","vertical","both"]),icon:je.a.oneOfType([je.a.object,je.a.array,je.a.string]),listItem:je.a.bool,pull:je.a.oneOf(["right","left"]),pulse:je.a.bool,rotation:je.a.oneOf([0,90,180,270]),shake:je.a.bool,size:je.a.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:je.a.bool,spinPulse:je.a.bool,spinReverse:je.a.bool,symbol:je.a.oneOfType([je.a.bool,je.a.string]),title:je.a.string,titleId:je.a.string,transform:je.a.oneOfType([je.a.string,je.a.object]),swapOpacity:je.a.bool},au.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var su=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=ru(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[tu(t)]=r}return e}),{attrs:{}}),c=r.style,u=void 0===c?{}:c,a=Kc(r,nu);return i.attrs.style=Xc(Xc({},i.attrs.style),u),t.apply(void 0,[n.tag,Xc(Xc({},i.attrs),a)].concat(Qc(o)))}.bind(null,me.default.createElement),lu={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]};
11
+ 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 c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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){c(e,t,n[t])}))}return e}function a(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 c,u=e[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.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 _e})),n.d(t,"b",(function(){return je}));var s=function(){},l={},f={},d={mark:s,measure:s};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(f=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var p=(l.navigator||{}).userAgent,h=void 0===p?"":p,$=l,b=f,m=d,g=($.document,!!b.documentElement&&!!b.head&&"function"==typeof b.addEventListener&&"function"==typeof b.createElement),O=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),y=O.concat([11,12,13,14,15,16,17,18,19,20]),v={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},w=(["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",v.GROUP,v.SWAP_OPACITY,v.PRIMARY,v.SECONDARY].concat(O.map((function(e){return"".concat(e,"x")}))).concat(y.map((function(e){return"w-".concat(e)}))),$.FontAwesomeConfig||{});if(b&&"function"==typeof b.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=a(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=b.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(w[r]=o)}))}var j=u({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},w);j.autoReplaceSvg||(j.observeMutations=!1);var _=u({},j);$.FontAwesomeConfig=_;var E=$||{};E.___FONT_AWESOME___||(E.___FONT_AWESOME___={}),E.___FONT_AWESOME___.styles||(E.___FONT_AWESOME___.styles={}),E.___FONT_AWESOME___.hooks||(E.___FONT_AWESOME___.hooks={}),E.___FONT_AWESOME___.shims||(E.___FONT_AWESOME___.shims=[]);var x=E.___FONT_AWESOME___,S=[];g&&((b.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(b.readyState)||b.addEventListener("DOMContentLoaded",(function e(){b.removeEventListener("DOMContentLoaded",e),1,S.map((function(e){return e()}))})));var C,T=function(){},k=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,A=void 0===r?setTimeout:r,I=[];function N(){for(var e=0;e<I.length;e++)I[e][0](I[e][1]);I=[],C=!1}function P(e,t){I.push([e,t]),C||(C=!0,A(N,0))}function M(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){L(i,e)}}D(i,r)||("fulfilled"===n&&R(i,r),"rejected"===n&&L(i,r))}function D(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?F(e,r):R(e,r))}),(function(t){n||(n=!0,L(e,t))})),!0}}catch(t){return n||L(e,t),!0}return!1}function R(e,t){e!==t&&D(e,t)||F(e,t)}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,P(G,e))}function L(e,t){"pending"===e._state&&(e._state="settled",e._data=t,P(U,e))}function B(e){e._then=e._then.forEach(M)}function G(e){e._state="fulfilled",B(e)}function U(t){t._state="rejected",B(t),!t._handled&&k&&e.process.emit("unhandledRejection",t._data,t)}function H(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){L(t,e)}try{e((function(e){R(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(T),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&k&&P(H,this)),"fulfilled"===this._state||"rejected"===this._state?P(M,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 c,u=0;u<e.length;u++)(c=e[u])&&"function"==typeof c.then?c.then(i(u),n):r[u]=c;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 q={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function z(e){if(e&&g){var t=b.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=b.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],c=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(c)>-1&&(r=i)}return b.head.insertBefore(t,r),e}}function W(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Y(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function J(e){return e.size!==q.size||e.x!==q.x||e.y!==q.y||e.rotate!==q.rotate||e.flipX||e.flipY}function Z(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(u)},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,c=e.transform,a=e.symbol,s=e.title,l=e.maskId,f=e.titleId,d=e.extra,p=e.watchable,h=void 0!==p&&p,$=r.found?r:n,b=$.width,m=$.height,g="fak"===o,O=g?"":"fa-w-".concat(Math.ceil(b/m*16)),y=[_.replacementClass,i?"".concat(_.familyPrefix,"-").concat(i):"",O].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),v={children:[],attributes:u({},d.attributes,{"data-prefix":o,"data-icon":i,class:y,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(m)})},w=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(b/m*16*.0625,"em")}:{};h&&(v.attributes["data-fa-i2svg"]=""),s&&v.children.push({tag:"title",attributes:{id:v.attributes["aria-labelledby"]||"title-".concat(f||W())},children:[s]});var j=u({},v,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:c,symbol:a,styles:u({},w,d.styles)}),E=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,c=e.maskId,a=e.transform,s=o.width,l=o.icon,f=i.width,d=i.icon,p=Z({transform:a,containerWidth:f,iconWidth:s}),h={tag:"rect",attributes:u({},K,{fill:"white"})},$=l.children?{children:l.children.map(Q)}:{},b={tag:"g",attributes:u({},p.inner),children:[Q(u({tag:l.tag,attributes:u({},l.attributes,p.path)},$))]},m={tag:"g",attributes:u({},p.outer),children:[b]},g="mask-".concat(c||W()),O="clip-".concat(c||W()),y={tag:"mask",attributes:u({},K,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:(t=d,"g"===t.tag?t.children:[t])},y]};return n.push(v,{tag:"rect",attributes:u({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(g,")")},K)}),{children:n,attributes:r}}(j):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=X(e.styles);if(i.length>0&&(n.style=i),J(o)){var c=Z({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:u({},c.outer),children:[{tag:"g",attributes:u({},c.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:u({},r.icon.attributes,c.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(j),x=E.children,S=E.attributes;return j.children=x,j.attributes=S,a?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:u({},o,{id:!0===i?"".concat(t,"-").concat(_.familyPrefix,"-").concat(n):i}),children:r}]}]}(j):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,c=e.transform;if(J(c)&&n.found&&!r.found){var a={x:n.width/n.height/2,y:.5};o.style=X(u({},i,{"transform-origin":"".concat(a.x+c.x/16,"em ").concat(a.y+c.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(j)}var te=function(){},ne=(_.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var o,i,c,u=Object.keys(e),a=u.length,s=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,c=e[u[0]]):(o=0,c=n);o<a;o++)c=s(c,e[i=u[o]],i,e);return c});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 x.hooks.addPack||o?x.styles[e]=u({},x.styles[e]||{},i):x.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var oe=x.styles,ie=x.shims,ce=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}),{})};ce();x.styles;function ue(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ae(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(ae).join(""),"</").concat(t,">")}var se=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"},pe={tag:"path",attributes:u({},fe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},he=u({},de,{attributeName:"opacity"});u({},fe,{cx:"256",cy:"364",r:"28"}),u({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),u({},he,{values:"1;0;1;1;0;1;"}),u({},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"}),u({},he,{values:"1;0;0;0;0;1;"}),u({},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"}),u({},he,{values:"0;0;1;1;0;0;"}),x.styles;function $e(e){var t=e[0],n=e[1],r=a(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(_.familyPrefix,"-").concat(v.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}x.styles;function be(){var e="svg-inline--fa",t=_.familyPrefix,n=_.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"),c=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(c,".".concat(n))}return r}function me(){_.autoAddCss&&!we&&(z(be()),we=!0)}function ge(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ae(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(g){var t=b.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Oe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ue(ve.definitions,n,r)||ue(x.styles,n,r)}var ye,ve=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]=u({},e.definitions[t]||{},o[t]),re(t,o[t]),ce()}))}},{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,c=r.icon;e[o]||(e[o]={}),e[o][i]=c})),e}}])&&i(t.prototype,n),r&&i(t,r),e}()),we=!1,je={transform:function(e){return se(e)}},_e=(ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?q:n,o=t.symbol,i=void 0!==o&&o,c=t.mask,a=void 0===c?null:c,s=t.maskId,l=void 0===s?null:s,f=t.title,d=void 0===f?null:f,p=t.titleId,h=void 0===p?null:p,$=t.classes,b=void 0===$?[]:$,m=t.attributes,g=void 0===m?{}:m,O=t.styles,y=void 0===O?{}:O;if(e){var v=e.prefix,w=e.iconName,j=e.icon;return ge(u({type:"icon"},e),(function(){return me(),_.autoA11y&&(d?g["aria-labelledby"]="".concat(_.replacementClass,"-title-").concat(h||W()):(g["aria-hidden"]="true",g.focusable="false")),ee({icons:{main:$e(j),mask:a?$e(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:w,transform:u({},q,r),symbol:i,title:d,maskId:l,titleId:h,extra:{attributes:g,styles:y,classes:b}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Oe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Oe(r||{})),ye(n,u({},t,{mask:r}))})}).call(this,n(32),n(51).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return a}));var r=n(8),o=(n(0),n(6));class i extends r.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function c(e){return Object(r.f)(e)}function u(e,t){sessionStorage.setItem(c(e),t)}function a(e){return Object(o.e)(sessionStorage.getItem(c(e)))}},function(e,t,n){"use strict";var r=u(n(44)),o=u(n(49)),i=u(n(38)),c=u(n(34));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:c.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},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){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(4);n(23),n(22),n(5);function i(e,t,n,i,c){const u=function(e,t,n,o){const i=0|Object(r.d)(e,n);if(0===i)throw new Error("The step of a range cannot be zero");const c=i>0;return n=>{const i=0|Object(r.d)(n,t);return c&&i<=0||!c&&i>=0?[n,o(n,e)]:void 0}}(t,n,i,c);return Object(o.h)(()=>Object(o.C)(u,e))}function c(e,t,n){return i(e,t,n,0,(e,t)=>e+t)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(12));var r=u(n(9)),o=u(n(9)),i=n(35),c=(n(36),u(n(37)));function u(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var a=function(e){var t,n;function i(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var u=i.prototype;return u.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},u.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},u.componentWillUnmount=function(){this.cancelNextCallback()},u.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},u.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},u.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context?this.context.isMounting:t,i=this.getTimeouts(),c=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,c,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},u.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},u.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},u.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},u.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},u.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},u.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,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}(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return r.default.createElement(c.default.Provider,{value:null},n(e,o));var i=r.default.Children.only(n);return r.default.createElement(c.default.Provider,{value:null},r.default.cloneElement(i,o))},i}(r.default.Component);function s(){}a.contextType=c.default,a.propTypes={},a.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},a.UNMOUNTED=0,a.EXITED=1,a.ENTERING=2,a.ENTERED=3,a.EXITING=4;var l=(0,i.polyfill)(a);t.default=l},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function c(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,c=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?c="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(c="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==c||null!==u){var a=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==c?"\n "+c:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return c})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(12))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";var r;t.__esModule=!0,t.default=void 0;var o=((r=n(9))&&r.__esModule?r:{default:r}).default.createContext(null);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;u(n(12));var r=u(n(9)),o=n(35),i=u(n(37)),c=n(50);function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function o(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=o.prototype;return u.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},u.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,r):(0,c.getNextChildMapping)(e,n,r),firstRender:!1}},u.handleExited=function(e,t){var n=(0,c.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=a({},t.children);return delete n[e.key],{children:n}})))},u.render=function(){var e=this.props,t=e.component,n=e.childFactory,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,["component","childFactory"]),c=this.state.contextValue,u=l(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.default.createElement(i.default.Provider,{value:c},u):r.default.createElement(i.default.Provider,{value:c},r.default.createElement(t,o,u))},o}(r.default.Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,o.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return ju}));var r=n(1),o=n(8),i=n(0),c=n(15),u=n(18),a=n(7),s=n(6),l=n(3),f=n(10),d=n(4),p=n(11),h=n(25);class ${constructor(e,t){this.k=e,this.v=t}}function b(e,t){return new $(e,t)}function m(e){return e.k}function g(e){return e.v}class O extends ${constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function y(e,t,n,r,o){return new O(e,t,n,r,o)}function v(e){return e.left}function w(e){return e.right}function j(e){return e.h}function _(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof O){t=e(r+1,v(i)),n=w(i);continue e}return r+1|0}return 0|r}}(0,e)}function E(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof O?j(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof O?j(e):1}else i=0;const c=0|(o<i?i:o);return 0===c?b(t,n):y(t,n,e,r,c+1)}function x(e,t,n,r){let o,i,c,u,a;if(null!=e){const t=e;a=t instanceof O?j(t):1}else a=0;let l;if(null!=r){const e=r;l=e instanceof O?j(e):1}else l=0;if(l>a+2){const c=Object(s.i)(r);if(c instanceof O){if(o=v(c),(null!=o?(i=o,i instanceof O?j(i):1):0)>a+1){const r=Object(s.i)(v(c));if(r instanceof O)return E(E(e,t,n,v(r)),m(r),g(r),E(w(r),m(c),g(c),w(c)));throw new Error("internal error: Map.rebalance")}return E(E(e,t,n,v(c)),m(c),g(c),w(c))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=Object(s.i)(e);if(o instanceof O){if(c=w(o),(null!=c?(u=c,u instanceof O?j(u):1):0)>l+1){const e=Object(s.i)(w(o));if(e instanceof O)return E(E(v(o),m(o),g(o),v(e)),m(e),g(e),E(w(e),t,n,r));throw new Error("internal error: Map.rebalance")}return E(v(o),m(o),g(o),E(w(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return E(e,t,n,r)}function S(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,m(o));return o instanceof O?i<0?x(S(e,t,n,v(o)),m(o),g(o),w(o)):0===i?y(t,n,v(o),w(o),j(o)):x(v(o),m(o),g(o),S(e,t,n,w(o))):i<0?y(t,n,void 0,r,2):0===i?b(t,n):y(t,n,r,void 0,2)}return b(t,n)}function C(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,m(c));if(0===u)return Object(s.f)(g(c));if(c instanceof O){e=r,t=o,n=u<0?v(c):w(c);continue e}return}return}}function T(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof O){e(r,v(i)),r(m(i),g(i)),t=r,n=w(i);continue e}r(m(i),g(i))}break}}(e,t)}function k(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof O){const n=e(t,v(r)),o=t(m(r),g(r)),i=e(t,w(r));return y(m(r),o,n,i,j(r))}return b(m(r),t(m(r),g(r)))}}(e,t)}function A(e,t,n){let r=n;T((e,n)=>{t[r]=[e,n],r=r+1|0},e)}function I(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=S(e,o[0],o[1],n)}return n}function N(e,t){if(Object(r.r)(t))return I(e,t);if(t instanceof l.a)return function(e,t){return Object(l.j)((t,n)=>S(e,n[0],n[1],t),void 0,t)}(e,t);{const n=Object(r.o)(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const c=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=S(r,c[0],c[1],o),n=i}}}(e,void 0,n)}finally{Object(r.k)(n)}}}class P extends o.c{constructor(e,t){super(),this.stack=e,this.started=t}}function M(e){e:for(;;){const t=e;if(Object(l.l)(t))return Object(l.g)();{const n=Object(l.w)(t),r=Object(l.k)(t);if(null!=r){const o=r;if(o instanceof O){e=Object(l.q)([v(o),b(m(o),g(o)),w(o)],n);continue e}return t}e=n;continue e}}}function D(e){return new P(M(Object(l.t)(e)),!1)}function R(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return function(){throw new Error("enumeration already finished")}();if(null!=Object(l.k)(t)){const e=Object(l.k)(t);if(e instanceof O)throw new Error("Please report error: Map iterator, unexpected stack for current");return[m(e),g(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function F(e){let t=D(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>R(t),"System.Collections.IEnumerator.get_Current":()=>R(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return!1;if(null!=Object(l.k)(t)){if(Object(l.k)(t)instanceof O)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=M(Object(l.w)(t)),!Object(l.l)(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Object(l.l)(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=D(e)},Dispose(){}}}class L{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 o=Object(r.o)(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,Object(r.D)(e[0])),n=0|t(n,Object(r.D)(e[1]))}}finally{Object(r.k)(o)}return 0|n}(this)}Equals(e){const t=this;if(!(e instanceof L))return!1;{const n=Object(r.o)(t);try{const t=Object(r.o)(e);try{const e=()=>{const o=n["System.Collections.IEnumerator.MoveNext"]();if(o===t["System.Collections.IEnumerator.MoveNext"]()){if(o){const o=n["System.Collections.Generic.IEnumerator`1.get_Current"](),i=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!Object(r.n)(o[0],i[0])||!Object(r.n)(o[1],i[1]))&&e()}return!0}return!1};return e()}finally{Object(r.k)(t)}}finally{Object(r.k)(n)}}}toString(){return"map ["+Object(p.f)("; ",Object(d.q)(e=>Object(p.c)("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return F(this.tree)}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return F(this.tree)}CompareTo(e){const t=this;if(e instanceof L)return 0|Object(d.e)((e,n)=>{const o=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==o?o:Object(r.d)(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 V(this,e[0])&&Object(r.n)(U(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){A(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|H(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|H(this)}get size(){return 0|H(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Object(d.q)(e=>[e[0],e[1]],this)}get(e){return U(this,e)}has(e){return V(this,e)}keys(){return Object(d.q)(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Object(d.q)(e=>e[1],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t[1],t[0],n)},n)}}function B(e,t){return new L(e,t)}function G(e){const t=Object(h.a)();return B(t,N(t,e))}function U(e,t){return function(e,t,n){const r=C(e,t,n);if(null==r)throw new Error;return Object(s.i)(r)}(e.comparer,t,e.tree)}function H(e){return _(e.tree)}function V(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,m(c));if(c instanceof O){if(u<0){e=r,t=o,n=v(c);continue e}if(0===u)return!0;e=r,t=o,n=w(c);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function q(e,t,n){return function(e,t,n){return B(e.comparer,S(e.comparer,t,n,e.tree))}(n,e,t)}function z(e,t){return function(e,t){return C(e.comparer,t,e.tree)}(t,e)}function W(e,t){return r=e,B((n=t).comparer,k(r,n.tree));var n,r}function Y(){return L.empty}L.empty=B(Object(h.a)(),void 0);class X extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function J(e,t){const n=Object(c.m)(Object(u.c)());return Object(c.g)(()=>Object(c.a)(()=>{Object(u.a)(n.current)})),Object(c.e)(r=>{Object(u.f)(n.current)||Object(u.i)(a.g.Delay(()=>a.g.TryWith(a.g.Delay(()=>(t(new X(1)),a.g.Bind(e(r),e=>(t(new X(2,e)),a.g.Zero())))),e=>(t(new X(3,e)),a.g.Zero()))),n.current)})}var Z=n(2);function K(e){return 1!==e.tag}function Q(e,t){return null==t?new Z.e(1,e):new Z.e(0,Object(s.i)(t))}function ee(e,t,n){return Object(r.n)(n,e)?new Z.e(0,void 0):new Z.e(1,t)}function te(e,t){return Object(d.n)(t)?new Z.e(1,e):new Z.e(0,void 0)}function ne(e,t,n){if(1===n.tag);else{const r=n.fields[0];e(r)&&t(r)}return n}function re(e,t,n){if(1===n.tag){const r=n.fields[0];e(r)&&t(r)}return n}function oe(e,t){return a.g.Bind(t,t=>{const n=function(e,t){return ne(e=>!0,e,t)}(e,t);return a.g.Return(n)})}function ie(e,t){return a.g.Bind(t,t=>{const n=function(e,t){return re(e=>!0,e,t)}(e,t);return a.g.Return(n)})}o.d;o.c;const ce=0,ue=1,ae=2,se=3,le=4;function fe(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 de(e,t=ce){const n={},r=t;function i(e){throw new Error("Cannot infer key and value of "+String(e))}function c(e,t,r){e=function(e,t){switch(t){case ue:return e.charAt(0).toLowerCase()+e.slice(1);case ae:return fe(e,"_");case se:return fe(e,"_").toUpperCase();case le:return fe(e,"-");case ce:default:return e}}(e,t),n[e]=r}for(let t of e){let e=ce;if(null==t&&i(t),t instanceof o.d){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:i(t);break;case 1:c(t[0],e,!0);break;case 2:const n=t[1];c(t[0],e,n);break;default:c(t[0],e,t.slice(1))}else"string"==typeof t?c(t,e,!0):i(t)}return n}function pe(e,t,n){return!!e.has(t)&&(n.contents=e.get(t),!0)}function he(e,t){return!t.has(e)&&(t.add(e),!0)}function $e(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}var be=n(9);function me(){return(me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ge(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}function Oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye,ve=n(12),we=n.n(ve),je=n(27),_e=n.n(je);function Ee(e,t){return void 0===e&&(e=""),void 0===t&&(t=ye),t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}var xe="object"==typeof window&&window.Element||function(){};we.a.oneOfType([we.a.string,we.a.func,function(e,t,n){if(!(e[t]instanceof xe))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")},we.a.shape({current:we.a.any})]);var Se=we.a.oneOfType([we.a.func,we.a.string,we.a.shape({$$typeof:we.a.symbol,render:we.a.func}),we.a.arrayOf(we.a.oneOfType([we.a.func,we.a.string,we.a.shape({$$typeof:we.a.symbol,render:we.a.func})]))]),Ce=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"];"undefined"==typeof window||!window.document||window.document.createElement;var Te=n(31),ke=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Ae(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ne=Ie(Ie({},Te.Transition.propTypes),{},{children:we.a.oneOfType([we.a.arrayOf(we.a.node),we.a.node]),tag:Se,baseClass:we.a.string,baseClassActive:we.a.string,className:we.a.string,cssModule:we.a.object,innerRef:we.a.oneOfType([we.a.object,we.a.string,we.a.func])}),Pe=Ie(Ie({},Te.Transition.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:150,appear:!0,enter:!0,exit:!0,in:!0});function Me(e){var t,n,r,o=e.tag,i=e.baseClass,c=e.baseClassActive,u=e.className,a=e.cssModule,s=e.children,l=e.innerRef,f=ge(e,ke),d=function(e,t){for(var n,r=Array.isArray(t)?t:[t],o=r.length,i={};o>0;)i[n=r[o-=1]]=e[n];return i}(f,Ce),p=(t=f,n=Ce,r={},Object.keys(t).forEach((function(e){-1===n.indexOf(e)&&(r[e]=t[e])})),r);return be.default.createElement(Te.Transition,d,(function(e){var t="entered"===e,n=Ee(_e()(u,i,t&&c),a);return be.default.createElement(o,me({className:n},p,{ref:l}),s)}))}Me.propTypes=Ne,Me.defaultProps=Pe;var De=Me,Re=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function Fe(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 Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Be={children:we.a.node,className:we.a.string,closeClassName:we.a.string,closeAriaLabel:we.a.string,cssModule:we.a.object,color:we.a.string,fade:we.a.bool,isOpen:we.a.bool,toggle:we.a.func,tag:Se,transition:we.a.shape(De.propTypes),innerRef:we.a.oneOfType([we.a.object,we.a.string,we.a.func])},Ge={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:Le(Le({},De.defaultProps),{},{unmountOnExit:!0})};function Ue(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,o=e.cssModule,i=e.tag,c=e.color,u=e.isOpen,a=e.toggle,s=e.children,l=e.transition,f=e.fade,d=e.innerRef,p=ge(e,Re),h=Ee(_e()(t,"alert","alert-"+c,{"alert-dismissible":a}),o),$=Ee(_e()("close",n),o),b=Le(Le(Le({},De.defaultProps),l),{},{baseClass:f?l.baseClass:"",timeout:f?l.timeout:0});return be.default.createElement(De,me({},p,b,{tag:i,className:h,in:u,role:"alert",innerRef:d}),a?be.default.createElement("button",{type:"button",className:$,"aria-label":r,onClick:a},be.default.createElement("span",{"aria-hidden":"true"},"×")):null,s)}Ue.propTypes=Be,Ue.defaultProps=Ge;var He=Ue;class Ve extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tag","CSSModule","Color","Transition","IsOpen","Toggle","Custom"]}}function qe(e,t){const n=de(Object(d.d)(e=>6===e.tag?e.fields[0]:Object(l.g)(),e),1),r=de(Object(d.c)(e=>6===e.tag?void 0:e,e),1),o=Object.assign({},n,r);return be.createElement(He,o,...t)}var ze=n(14);class We extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Ye(e){switch(e.tag){case 0:return new Ve(2,"success");case 2:return new Ve(2,"info");default:return new Ve(2,"danger")}}function Xe(e){switch(e.tag){case 0:case 2:default:return e.fields[0]}}function Je(e){let t;const n=e.hideAlert,o=e.alert,i=Object(u.c)();return Object(c.i)(()=>{!function(e,t){Object(u.i)(a.g.Delay(()=>a.g.Bind(Object(u.h)(5e3),()=>(e(),a.g.Zero()))),t)}(n,i)},[]),Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["container-lg","fixed-top","mt-2"])],(t=[qe([Ye(o),new Ve(5,()=>{Object(u.a)(i),n()})],[Xe(o)])],["children",ze.a.Children.toArray(Array.from(t))])])))}class Ze{constructor(){}}function Ke(e,t){return new Z.e(0,t)}function Qe(e,t){return t}function et(e,t,n){return Object(Z.g)(n,t)}new Ze;class tt{constructor(){}}function nt(e,t){const n=Ke(0,t);return a.g.Return(n)}function rt(e,t){return a.g.Delay(t)}new tt;class ot extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class it extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ct extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}o.d;class ut extends o.c{constructor(e,t,n,r,o,i,c){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=c}}class at extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class st extends o.c{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const lt=new ut("",new ot(0),Object(l.g)(),!1,void 0,void 0,new ct(0));new st(0,"","",Y(),new at(0,""));function ft(e,t){return Object(p.d)(t)?[t]:Object(p.h)(t,[e],null,0)}function dt(e){return new ut(e,lt.method,lt.headers,lt.withCredentials,lt.overridenMimeType,lt.overridenResponseType,lt.content)}function pt(e,t){return new ut(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function ht(e,t){return new ut(t.url,t.method,Object(l.b)(t.headers,Object(l.t)(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function $t(e,t){return new ut(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,e)}function bt(e){return Object(u.d)(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,c,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,c=""===u||"text"===u?new at(0,n.responseText):new at("arraybuffer"===u?2:"blob"===u?1:3,n.response),new st(o,e,i,function(e){const t=Object(h.a)();return B(t,I(t,e))}(Object(f.a)(e=>{const t=Object(l.p)(ft(":",e));return Object(l.l)(t)?void 0:[Object(l.k)(t).toLocaleLowerCase(),Object(p.f)(":",Object(l.w)(t)).trim()]},ft("\r\n",n.getAllResponseHeaders()))),c)))};const o=Object(r.o)(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{Object(r.k)(o)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;n.overrideMimeType(e)}const c=e.overridenResponseType;null==c||(1===c.tag?n.responseType="blob":2===c.tag?n.responseType="arraybuffer":n.responseType="text");const u=[e.method,e.content];0===u[0].tag?n.send(Object(s.f)(void 0)):1===u[1].tag||3===u[1].tag||2===u[1].tag?n.send(Object(s.f)(u[1].fields[0])):n.send(Object(s.f)(void 0))})}var mt=n(24);class gt extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ot extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}o.c;class yt{constructor(){this.cache=new Map([])}}function vt(){return new yt}vt(),vt();function wt(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function jt(e,t){switch(e.tag){case 2:return Object(mt.b)(wt(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return wt(t)}}var _t=n(26),Et=n(21),xt=n(5),St=(n(23),n(22),n(20));function Ct(e,t){Tt(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Tt(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function kt(e,t){try{return t.contents=function(e){const[t,n]=Object(St.e)(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Ct(t.getTime(),r)}(e),!0}catch(e){return!1}}function At(e){return e<0?Math.ceil(e):Math.floor(e)}function It(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Nt(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 Nt(e){return Object(xt.r)(Object(xt.j)(e,1e4))}r.g,r.g;function Pt(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const o=Math.abs(function(e){return At(e/864e5)}(e)),i=Math.abs(function(e){return At(e%864e5/36e5)}(e)),c=Math.abs(function(e){return At(e%36e5/6e4)}(e)),u=Math.abs(function(e){return At(e%6e4/1e3)}(e)),a=Math.abs(function(e){return At(e%1e3)}(e));return`${e<0?"-":""}${0!==o||"c"!==t&&"g"!==t?"c"===t?o+".":o+":":""}${"g"===t?i:Object(r.x)(i,2)}:${Object(r.x)(c,2)}:${Object(r.x)(u,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Object(r.x)(a,3):"."+Object(r.w)(a,3,7):""}`}function Mt(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 It(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,c=+t[4],u=+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*It(n,c,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Dt{constructor(e,t){const n=new o.b(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const i=Object(r.o)(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Bt(n.contents,e)}}finally{Object(r.k)(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Object(r.o)(this)}GetEnumerator(){return Object(r.o)(Object(d.f)(this.hashMap.values()))}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Bt(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ft(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Gt(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Object(d.p)((n,r)=>{e[t+n]=r},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Lt(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Ut(this,e)}get size(){return 0|Lt(this)}add(e){return Bt(this,e),this}clear(){Ft(this)}delete(e){return Ut(this,e)}has(e){return Gt(this,e)}keys(){return Object(d.q)(e=>e,this)}values(){return Object(d.q)(e=>e,this)}entries(){return Object(d.q)(e=>[e,e],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t,t,n)},n)}}function Rt(e,t){const n=0|e.comparer.GetHashCode(t);let r,i=null;return r=[pe(e.hashMap,n,new o.b(()=>i,e=>{i=e})),i],r[0]?[!0,n,r[1].findIndex(n=>e.comparer.Equals(t,n))]:[!1,n,-1]}function Ft(e){e.hashMap.clear()}function Lt(e){let t=0,n=Object(r.o)(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}}finally{Object(r.k)(n)}return 0|t}function Bt(e,t){const n=Rt(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!1;case 1:if(n[0]){$e(e.hashMap,n[1]).push(t);return!0}return e.hashMap.set(n[1],[t]),!0}}function Gt(e,t){const n=Rt(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Ut(e,t){const n=Rt(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return $e(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ht{constructor(e){this.k=e}}function Vt(e){return new Ht(e)}function qt(e){return e.k}class zt extends Ht{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Wt(e,t,n,r){return new zt(e,t,n,r)}function Yt(e){return e.left}function Xt(e){return e.right}function Jt(e){return e.h}function Zt(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof zt){t=Yt(i),n=e(Xt(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Kt(e,t,n){let r;if(null!=e){const t=e;r=t instanceof zt?Jt(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof zt?Jt(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Vt(t):Wt(t,e,n,i+1)}function Qt(e,t,n){let r,o,i,c,u;if(null!=e){const t=e;u=t instanceof zt?Jt(t):1}else u=0;let a;if(null!=n){const e=n;a=e instanceof zt?Jt(e):1}else a=0;if(a>u+2){const i=Object(s.i)(n);if(i instanceof zt){if(r=Yt(i),(null!=r?(o=r,o instanceof zt?Jt(o):1):0)>u+1){const n=Object(s.i)(Yt(i));if(n instanceof zt)return Kt(Kt(e,t,Yt(n)),qt(n),Kt(Xt(n),qt(i),Xt(i)));throw new Error("internal error: Set.rebalance")}return Kt(Kt(e,t,Yt(i)),qt(i),Xt(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=Object(s.i)(e);if(r instanceof zt){if(i=Xt(r),(null!=i?(c=i,c instanceof zt?Jt(c):1):0)>a+1){const e=Object(s.i)(Xt(r));if(e instanceof zt)return Kt(Kt(Yt(r),qt(r),Yt(e)),qt(e),Kt(Xt(e),t,n));throw new Error("internal error: Set.rebalance")}return Kt(Yt(r),qt(r),Kt(Xt(r),t,n))}throw new Error("internal error: Set.rebalance")}return Kt(e,t,n)}function en(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,qt(r));if(r instanceof zt)return o<0?Qt(en(e,t,Yt(r)),qt(r),Xt(r)):0===o?n:Qt(Yt(r),qt(r),en(e,t,Xt(r)));{const o=0|e.Compare(t,qt(r));return o<0?Wt(t,void 0,n,2):0===o?n:Wt(t,n,void 0,2)}}return Vt(t)}function tn(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const c=i,u=0|r.Compare(o,qt(c));if(c instanceof zt){if(u<0){e=r,t=o,n=Yt(c);continue e}if(0===u)return!0;e=r,t=o,n=Xt(c);continue e}return 0===u}return!1}}function nn(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof zt){nn(n,Yt(o)),n(qt(o)),e=n,t=Xt(o);continue e}n(qt(o))}break}}class rn extends o.c{constructor(e,t){super(),this.stack=e,this.started=t}}function on(e){e:for(;;){const t=e;if(Object(l.l)(t))return Object(l.g)();{const n=Object(l.k)(t),r=Object(l.w)(t);if(null!=n){const o=n;if(o instanceof zt){e=Object(l.q)([Yt(o),Vt(qt(o)),Xt(o)],r);continue e}return t}e=r;continue e}}}function cn(e){return new rn(on(Object(l.t)(e)),!1)}function un(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return function(){throw new Error("Enumeration already started")}();if(null!=Object(l.k)(t)){return qt(Object(l.k)(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function an(e){let t=cn(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>un(t),"System.Collections.IEnumerator.get_Current":()=>un(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Object(l.l)(t))return!1;if(null!=Object(l.k)(t)){if(Object(l.k)(t)instanceof zt)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=on(Object(l.w)(t)),!Object(l.l)(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Object(l.l)(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=cn(e)},Dispose(){}}}function sn(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,c=[o,i];if(Object(l.l)(c[0]))return Object(l.l)(c[1])?0:-1;if(Object(l.l)(c[1]))return 1;if(null!=Object(l.k)(c[1]))if(null!=Object(l.k)(c[0])){const u=Object(l.k)(c[0]),a=Object(l.k)(c[1]);if(u instanceof zt)if(null==Yt(u)){if(!(a instanceof zt)){const o=0|r.Compare(qt(u),qt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(Xt(u),Object(l.w)(c[0])),n=Object(l.f)(void 0,Object(l.w)(c[1]));continue e}if(null==Yt(a)){const o=0|r.Compare(qt(u),qt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(Xt(u),Object(l.w)(c[0])),n=Object(l.f)(Xt(a),Object(l.w)(c[1]));continue e}{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof zt){e=r,t=Object(l.q)([Yt(s),Wt(qt(s),void 0,Xt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,Vt(qt(s))],a),n=i;continue e;case 1:if(d instanceof zt){e=r,t=o,n=Object(l.q)([Yt(d),Wt(qt(d),void 0,Xt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,Vt(qt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof zt){e=r,t=Object(l.q)([Yt(s),Wt(qt(s),void 0,Xt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,Vt(qt(s))],a),n=i;continue e;case 1:if(d instanceof zt){e=r,t=o,n=Object(l.q)([Yt(d),Wt(qt(d),void 0,Xt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,Vt(qt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof zt)){const o=0|r.Compare(qt(u),qt(a));if(0!==o)return 0|o;e=r,t=Object(l.w)(c[0]),n=Object(l.w)(c[1]);continue e}if(null==Yt(a)){const o=0|r.Compare(qt(u),qt(a));if(0!==o)return 0|o;e=r,t=Object(l.f)(void 0,Object(l.w)(c[0])),n=Object(l.f)(Xt(a),Object(l.w)(c[1]));continue e}{const c=[o,i];let u,a,s,f,d;switch(Object(l.l)(c[0])?Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2:null!=Object(l.k)(c[0])?(u=0,a=Object(l.w)(c[0]),s=Object(l.k)(c[0])):Object(l.l)(c[1])?u=2:null!=Object(l.k)(c[1])?(u=1,f=Object(l.w)(c[1]),d=Object(l.k)(c[1])):u=2,u){case 0:if(s instanceof zt){e=r,t=Object(l.q)([Yt(s),Wt(qt(s),void 0,Xt(s),0)],a),n=i;continue e}e=r,t=Object(l.q)([void 0,Vt(qt(s))],a),n=i;continue e;case 1:if(d instanceof zt){e=r,t=o,n=Object(l.q)([Yt(d),Wt(qt(d),void 0,Xt(d),0)],f);continue e}e=r,t=o,n=Object(l.q)([void 0,Vt(qt(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Object(l.k)(c[1]);const u=[o,i];let a,s,f,d,p;switch(Object(l.l)(u[0])?Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2:null!=Object(l.k)(u[0])?(a=0,s=Object(l.w)(u[0]),f=Object(l.k)(u[0])):Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2,a){case 0:if(f instanceof zt){e=r,t=Object(l.q)([Yt(f),Wt(qt(f),void 0,Xt(f),0)],s),n=i;continue e}e=r,t=Object(l.q)([void 0,Vt(qt(f))],s),n=i;continue e;case 1:if(p instanceof zt){e=r,t=o,n=Object(l.q)([Yt(p),Wt(qt(p),void 0,Xt(p),0)],d);continue e}e=r,t=o,n=Object(l.q)([void 0,Vt(qt(p))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Object(l.k)(c[0])){e=r,t=Object(l.w)(c[0]),n=Object(l.w)(c[1]);continue e}{Object(l.k)(c[0]);const u=[o,i];let a,s,f,d,p;switch(Object(l.l)(u[0])?Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2:null!=Object(l.k)(u[0])?(a=0,s=Object(l.w)(u[0]),f=Object(l.k)(u[0])):Object(l.l)(u[1])?a=2:null!=Object(l.k)(u[1])?(a=1,d=Object(l.w)(u[1]),p=Object(l.k)(u[1])):a=2,a){case 0:if(f instanceof zt){e=r,t=Object(l.q)([Yt(f),Wt(qt(f),void 0,Xt(f),0)],s),n=i;continue e}e=r,t=Object(l.q)([void 0,Vt(qt(f))],s),n=i;continue e;case 1:if(p instanceof zt){e=r,t=o,n=Object(l.q)([Yt(p),Wt(qt(p),void 0,Xt(p),0)],d);continue e}e=r,t=o,n=Object(l.q)([void 0,Vt(qt(p))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Object(l.t)(t),Object(l.t)(n))}function ln(e,t,n){let r=n;nn(e=>{t[r]=e,r=r+1|0},e)}function fn(e,t){return Object(f.g)((t,n)=>en(e,n,t),void 0,t)}function dn(e,t){if(Object(r.r)(t))return fn(e,t);if(t instanceof l.a)return function(e,t){return Object(l.j)((t,n)=>en(e,n,t),void 0,t)}(e,t);{const n=Object(r.o)(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=en(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Object(r.k)(n)}}}class pn{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const o=Object(r.o)(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|(t=0|Object(r.D)(e),(n<<1)+t+631)}}finally{Object(r.k)(o)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof pn&&0===sn($n(this),bn(this),bn(e))}toString(){return"set ["+Object(p.f)("; ",Object(d.q)(e=>{let t=e;return Object(o.f)(t)},this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|sn($n(this),bn(this),bn(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 tn($n(this),e,bn(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ln(bn(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|mn(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|mn(this)}GetEnumerator(){return an(bn(this))}[Symbol.iterator](){return Object(r.E)(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return an(bn(this))}get size(){return 0|mn(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 gn(this,e)}keys(){return Object(d.q)(e=>e,this)}values(){return Object(d.q)(e=>e,this)}entries(){return Object(d.q)(e=>[e,e],this)}forEach(e,t){const n=this;Object(d.o)(t=>{e(t,t,n)},n)}}function hn(e,t){return new pn(e,t)}function $n(e){return e.comparer}function bn(e){return e.tree}function mn(e){return Zt(bn(e))}function gn(e,t){return tn($n(e),t,bn(e))}function On(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 yn(e,t){const n=2===t.tag?On(t.fields[0],t.fields[1],!0):1===t.tag?On(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?On(t.fields[0],t.fields[1],!0):4===t.tag?On(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"+Object(p.f)("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:On(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function vn(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Z.e(1,yn(e[0],e[1]))}return new Z.e(0,r.fields[0])}function wn(e,t){try{return vn("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Z.e(1,"Given an invalid JSON: "+e.message);throw e}}const jn=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 Z.e(0,(e+128&255)-128):new Z.e(1,[n,new gt(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Z.e(1,[n,new gt(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(Et.d)(r,511,!1,8,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[n,new gt(0,"a sbyte",r)])}return new Z.e(1,[n,new gt(0,"a sbyte",r)])},_n=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 Z.e(0,255&e):new Z.e(1,[n,new gt(1,"a byte",e,"Value was either too large or too small for a byte")]):new Z.e(1,[n,new gt(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(Et.d)(r,511,!0,8,new o.b(()=>t,e=>{t=e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[n,new gt(0,"a byte",r)])}return new Z.e(1,[n,new gt(0,"a byte",r)])},En=e=>t=>{const n="an int16",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new Z.e(0,(e+32768&65535)-32768):new Z.e(1,[r,new gt(1,n,e,"Value was either too large or too small for "+n)]):new Z.e(1,[r,new gt(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(Et.d)(i,511,!1,16,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[r,new gt(0,n,i)])}return new Z.e(1,[r,new gt(0,n,i)])},xn=e=>t=>{const n="an uint16",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new Z.e(0,65535&e):new Z.e(1,[r,new gt(1,n,e,"Value was either too large or too small for "+n)]):new Z.e(1,[r,new gt(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(Et.d)(i,511,!0,16,new o.b(()=>t,e=>{t=e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[r,new gt(0,n,i)])}return new Z.e(1,[r,new gt(0,n,i)])},Sn=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 Z.e(0,~~e):new Z.e(1,[n,new gt(1,"an int",e,"Value was either too large or too small for an int")]):new Z.e(1,[n,new gt(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[Object(Et.d)(r,511,!1,32,new o.b(()=>t,e=>{t=0|e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[n,new gt(0,"an int",r)])}return new Z.e(1,[n,new gt(0,"an int",r)])},Cn=e=>t=>{const n="an uint32",r=e,i=t;if("number"==typeof i){const e=i;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new Z.e(0,e>>>0):new Z.e(1,[r,new gt(1,n,e,"Value was either too large or too small for "+n)]):new Z.e(1,[r,new gt(1,n,e,"Value is not an integral value")])}if("string"==typeof i){let e,t=0;return e=[Object(Et.d)(i,511,!0,32,new o.b(()=>t,e=>{t=e})),t],e[0]?new Z.e(0,e[1]):new Z.e(1,[r,new gt(0,n,i)])}return new Z.e(1,[r,new gt(0,n,i)])};function Tn(e,t){if("string"==typeof t){let n,r=Ct(-621355968e5,0);return n=[kt(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new Z.e(0,n[1]):new Z.e(1,[e,new gt(0,"a datetimeoffset",t)])}return new Z.e(1,[e,new gt(0,"a datetime",t)])}function kn(e,t,n,o){let i;const c=n+".["+Object(r.q)(e)+"]";if(Array.isArray(o)){const n=o;return e<n.length?t(c,n[e]):new Z.e(1,[c,new gt(5,"a longer array. Need index `"+Object(r.q)(e)+"` but there are only `"+(i=n.length,Object(r.q)(i)+"` entries"),o)])}return new Z.e(1,[c,new gt(0,"an array",o)])}function An(e,t,n){if(Array.isArray(n)){let o=-1;return Object(Z.g)(l.s,Object(f.g)((n,i)=>{if(o=o+1|0,0===n.tag){const c=e(t+".["+Object(r.q)(o)+"]",i);return 0===c.tag?new Z.e(0,Object(l.f)(c.fields[0],n.fields[0])):new Z.e(1,c.fields[0])}return n},new Z.e(0,Object(l.g)()),n))}return new Z.e(1,[t,new gt(0,"a list",n)])}function In(e,t,n){if(Array.isArray(n)){let o=-1;const i=n;return Object(f.g)((n,i)=>{if(o=o+1|0,0===n.tag){const c=n.fields[0],u=e(t+".["+Object(r.q)(o)+"]",i);return 0===u.tag?(c[o]=u.fields[0],new Z.e(0,c)):new Z.e(1,u.fields[0])}return n},new Z.e(0,Object(f.f)(new Array(i.length),0,i.length,null)),i)}return new Z.e(1,[t,new gt(0,"an array",n)])}function Nn(e,t,n){return new Z.e(0,e)}function Pn(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Z.e(1,o.fields[0])}function Mn(e,t,n,r){const o=t(n,r);return 1===o.tag?new Z.e(1,o.fields[0]):new Z.e(0,e(o.fields[0]))}function Dn(e,t){let n;const o=e;return n=e=>t=>kn(0,o,e,t),e=>o=>Pn(Object(r.F)(3,e=>{let n;const o=t;return n=e=>t=>kn(1,o,e,t),t=>o=>Pn((t,n,r)=>Nn([e,t]),Object(r.F)(2,n),t,o)}),Object(r.F)(2,n),e,o)}function Rn(e){return G(e)}function Fn(e){return t=e,hn(n={Compare:r.d},dn(n,t));var t,n}function Ln(e,t,n,r){let o,i;return t.length!==r.length?new Z.e(1,[n,new gt(6,(o=0|r.length,i=0|t.length,Object(p.k)(Object(p.g)("Expected %i %s but got %i"))(i)(e)(o)))]):Object(f.i)((e,t,r)=>0===r.tag?Object(Z.g)(e=>Object(l.f)(e,r.fields[0]),t(n)(e)):r,r,t,new Z.e(0,Object(l.g)()))}function Bn(e,t,n,r,o,c){const u=Object(f.w)(e=>Object(i.E)(e)===r,Object(i.q)(n,!0));if(null!=u){const n=u;return 0===c.length?new Z.e(0,Object(i.D)(n,[],!0)):Object(Z.g)(e=>Object(i.D)(n,Object(l.x)(e),!0),Ln("union fields",Object(f.k)(n=>Un(e,t,!1,n[1]),Object(i.p)(n)),o,c))}return new Z.e(1,[o,new gt(6,"Cannot find case "+r+" in "+Object(i.f)(n))])}function Gn(e,t,n,c){const u=new o.b(null),a=q(Object(i.f)(c),u,e);let s;if(Object(i.w)(c,!0)){const e=Object(f.k)(e=>[jt(t,Object(i.E)(e)),Un(a,t,!1,e[1])],Object(i.l)(c,!0));s=t=>n=>Object(Z.g)(e=>Object(i.B)(c,Object(l.x)(e),!0),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Z.e(1,[t,new gt(0,"an object",n)]):Object(f.h)(Object(r.F)(2,e=>{const r=e[0];return o=>0===o.tag?Object(Z.g)(e=>Object(l.f)(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),e,new Z.e(0,Object(l.g)()))}(e,t,n))}else if(Object(i.y)(c,!0))s=e=>n=>{if("string"==typeof n)return Bn(a,t,c,n,e,[]);if(Array.isArray(n)){const r=n;return Bn(a,t,c,r[0],e,r.slice(1,r.length))}return new Z.e(1,[e,new gt(0,"a string or array",n)])};else{if(!n){let e;const t=Object(i.f)(c);throw e=Object(p.k)(Object(p.g)("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Z.e(1,[e,new gt(2,"an extra coder for "+Object(i.f)(c),t)])}return u.contents=s,s}function Un(e,t,n,c){let u,a,h;const $=Object(i.f)(c),b=z($,e);if(null==b){if(Object(i.t)(c)){const n=Un(e,t,!1,Object(i.g)(c));return e=>t=>In(Object(r.F)(2,n),e,t)}if(Object(i.u)(c)){const e=Object(i.f)(Object(i.h)(c));if("System.SByte"===e)return e=>t=>{const n=c,o=e,u=t,a=jn(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,e.toString())):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=c,o=e,u=t,a=_n(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,e.toString())):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=c,o=e,u=t,a=En(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,Object(r.p)(e))):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.UInt16"===e)return e=>t=>{const n=c,o=e,u=t,a=xn(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,e.toString())):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=c,o=e,u=t,a=Sn(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,Object(r.q)(e))):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=c,o=e,u=t,a=Cn(o)(u);if(1===a.tag)return new Z.e(1,a.fields[0]);{const e=a.fields[0];return Object(d.g)(e,Object(i.i)(n),{Equals:(e,t)=>e===t,GetHashCode:r.v})?new Z.e(0,Object(i.H)(n,e.toString())):new Z.e(1,[o,new gt(1,Object(i.f)(n),u,"Unkown value provided for the enum")])}};{const e=Object(i.f)(c),t=Object(p.j)(Object(p.g)("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=>t(e)}}if(Object(i.v)(c)){if(Object(i.x)(c)){const n=Object(f.k)(n=>Un(e,t,!1,n),Object(i.n)(c));return e=>t=>Array.isArray(t)?Object(Z.g)(e=>Object(i.C)(Object(l.x)(e),c),Ln("tuple elements",n,e,t)):new Z.e(1,[e,new gt(0,"an array",t)])}{const o=Object(i.f)(Object(i.j)(c));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o)return u=Un(e,t,!0,Object(i.k)(c)[0]),e=>t=>{return n=Object(r.F)(2,u),o=e,null==(i=t)?new Z.e(0,void 0):Object(Z.g)(s.f,n(o,i));var n,o,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o)return a=Un(e,t,!1,Object(i.k)(c)[0]),e=>t=>An(Object(r.F)(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const n=Un(e,t,!1,Object(i.k)(c)[0]),o=Un(e,t,!1,Object(i.k)(c)[1]);let u;const a=Object(l.p)([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Z.e(1,[n,new gt(0,"an object",r)]):Object(d.l)((o,i)=>{if(0===o.tag){const c=e(n,i);if(0===c.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new Z.e(0,Object(l.f)([c.fields[0],e.fields[0]],o.fields[0])):new Z.e(1,e.fields[0])}return new Z.e(1,c.fields[0])}return o},new Z.e(0,Object(l.g)()),Object.keys(r))}(Object(r.F)(2,n),Object(r.F)(2,o),e,t),(h=Dn(Object(r.F)(2,n),Object(r.F)(2,o)),e=>t=>An(Object(r.F)(2,h),e,t))]);return u=e=>t=>{return n=e,o=t,((e,t)=>{e:for(;;){const i=e,c=t;if(Object(l.l)(i))return new Z.e(1,[n,new gt(7,c)]);{const u=vn(n,Object(r.F)(2,Object(l.k)(i)),o);if(1===u.tag){e=Object(l.w)(i),t=Object(l.b)(c,Object(l.t)(u.fields[0]));continue e}return new Z.e(0,u.fields[0])}}})(a,Object(l.g)());var n,o},e=>t=>Mn(Rn,Object(r.F)(2,u),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const n=Un(e,t,!1,Object(i.k)(c)[0]);return e=>t=>{const o=In(Object(r.F)(2,n),e,t);return 0===o.tag?new Z.e(0,Fn(o.fields[0])):new Z.e(1,o.fields[0])}}return Gn(e,t,n,c)}}return"System.Boolean"===$?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Z.e(0,r):new Z.e(1,[n,new gt(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===$?e=>t=>{return n=e,null==(r=t)?new Z.e(0,void 0):new Z.e(1,[n,new gt(0,"null",r)]);var n,r}:"System.String"===$?e=>t=>{return n=e,"string"==typeof(r=t)?new Z.e(0,r):new Z.e(1,[n,new gt(0,"a string",r)]);var n,r}:"System.SByte"===$?jn:"System.Byte"===$?_n:"System.Int16"===$?En:"System.UInt16"===$?xn:"System.Int32"===$?Sn:"System.UInt32"===$?Cn:"System.Double"===$?e=>t=>{return n=e,"number"==typeof(r=t)?new Z.e(0,r):new Z.e(1,[n,new gt(0,"a float",r)]);var n,r}:"System.Single"===$?e=>t=>{return n=e,"number"==typeof(r=t)?new Z.e(0,r):new Z.e(1,[n,new gt(0,"a float32",r)]);var n,r}:"System.DateTime"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r=Object(St.d)();return n=[Object(St.h)(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new Z.e(0,Object(St.g)(n[1])):new Z.e(1,[e,new gt(0,"a datetime",t)])}return new Z.e(1,[e,new gt(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===$?e=>t=>Tn(e,t):"System.TimeSpan"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[Mt(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new Z.e(0,n[1]):new Z.e(1,[e,new gt(0,"a timespan",t)])}return new Z.e(1,[e,new gt(0,"a timespan",t)])}(e,t):"System.Guid"===$?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Object(_t.b)(t,new o.b(()=>r,e=>{r=e})),r],n[0]?new Z.e(0,n[1]):new Z.e(1,[e,new gt(0,"a guid",t)])}return new Z.e(1,[e,new gt(0,"a guid",t)])}(e,t):"System.Object"===$?e=>e=>new Z.e(0,e):Gn(e,t,n,c)}{const e=b;return t=>n=>e.contents(t)(n)}}function Hn(e){return null!=e?W((e,t)=>new o.b(t[1]),e.Coders):Y()}const Vn=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map(e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35}),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();function qn(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const zn=e=>function(e,t){return 0!=(1<<Wn(e,t)&256)}(e,0);function Wn(e,t){const n=qn(e,t);return Vn(n)}Symbol.toStringTag,Symbol.iterator;function Yn(e,t){return Object(d.h)(()=>{const n=new Dt([],t);return Object(d.k)(e=>he(e,n),e)})}function Xn(e,t,n){return Object(d.h)(()=>{const r=new Dt(e,n);return Object(d.k)(e=>he(e,r),t)})}o.d;o.c;o.d;o.d;o.c;o.d;o.c;o.d;o.d;class Jn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Zn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class Kn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class Qn extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class er extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}o.d;class tr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function nr(e){return new tr(0,e)}function rr(e){return e.fields[0]}o.c;o.d;o.d;o.d;function or(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Object(l.l)(i))return Object(Z.g)(l.s,r);{const c=Qe(0,()=>Object(Z.f)(e=>et(0,r,t=>Object(l.f)(e,t)),o(Object(l.k)(i))))();if(1===c.tag)return c;e=c,t=o,n=Object(l.w)(i);continue e}}}(new Z.e(0,Object(l.g)()),e,t)}o.c;o.c;o.c;function ir(e){return Qe(0,()=>{const t=Object(p.b)(zn,e);return Object(Z.f)(()=>Object(Z.f)(()=>et(0,ee(0,"TFN is not valid",Object(f.u)(Object(f.l)((e,t)=>e*t,Object(f.k)(e=>Object(Et.c)(e,511,!1,32),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),()=>t),ee(9,"TFN must be 9 digits",t.length)),ee(e,"TFN must contain digits only",t))})()}function cr(e){return Qe(0,()=>Object(Z.f)(e=>{const t=e;return et(0,te("TFN must not contain all zeros",(n=["0"],o=t.split(""),i={Equals:(e,t)=>e===t,GetHashCode:r.C},Object(d.y)(Xn(n,o,i)))),()=>t);var n,o,i},ir(e)))()}function ur(e){switch(e){case 0:return new Z.e(0,new Zn(0));case 1:return new Z.e(0,new Zn(1));case 2:return new Z.e(0,new Zn(2));default:return new Z.e(1,"Invalid ResidencyStatus")}}function ar(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}function sr(e){switch(e){case 0:return new Z.e(0,new Kn(0));case 1:return new Z.e(0,new Kn(1));case 2:return new Z.e(0,new Kn(2));case 3:return new Z.e(0,new Kn(3));case 4:return new Z.e(0,new Kn(4));default:return new Z.e(1,"Invalid EmploymentBasis")}}function lr(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function fr(e){switch(e){case 0:return new Z.e(0,new Jn(0));case 1:return new Z.e(0,new Jn(1));case 2:return new Z.e(0,new Jn(2));case 3:return new Z.e(0,new Jn(3));case 4:return new Z.e(0,new Jn(4));default:return new Z.e(1,"Invalid DebtSupport")}}function dr(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const pr=e=>{return or(fr,(t=e,n={Equals:(e,t)=>e===t,GetHashCode:r.v},Object(d.z)(Yn(t,n))));var t,n},hr=e=>Object(l.o)(dr,e);function $r(e){switch(e){case 0:return new Z.e(0,new er(0));case 1:return new Z.e(0,new er(1));case 2:return new Z.e(0,new er(2));default:return new Z.e(1,"Invalid ExemptionReason")}}function br(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class mr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function gr(){return Object(i.L)("Dto.Dto.ProvidedTfnInformationDto",[],mr,()=>[[["Item",i.J]],[["Item",Object(i.e)("Dto.Dto.ExemptionReasonDto",i.s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]])}o.d;o.d;o.d;o.c;class Or extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class yr extends o.c{constructor(e,t,n,r,o,i){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.EmploymentBasis=0|r,this.IsTaxFreeThresholdClaimed=o,this.HasDebtSupport=i}}class vr extends o.c{constructor(e,t){super(),this.Meta=e,this.Data=t}}function wr(){return Object(i.I)("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],vr,()=>[["Meta",Object(i.a)(["AccountId",i.J])],["Data",Object(i.G)(Object(i.I)("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],yr,()=>[["TfnInformation",Object(i.L)("Dto.BackendApiModels.Read.TfnInformation",[],Or,()=>[[["Item",i.J]],[["Item",Object(i.e)("Dto.Dto.ExemptionReasonDto",i.s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]])],["PreviousSurname",Object(i.G)(i.J)],["ResidencyStatus",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["EmploymentBasis",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",i.c],["HasDebtSupport",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]])}class jr extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function _r(e){return e}function Er(e){return Array.from(e)}function xr(e){return Object(St.f)(e,"O",{})}function Sr(e){return Pt(e)}function Cr(){return null}function Tr(e){return Object(St.f)(e,"O",{})}function kr(e,t){return JSON.stringify(t,Object(r.F)(2,null),Object(s.f)(e))}function Ar(e,t,n,r){const c=new o.b(null),u=q(Object(i.f)(r),c,e);let a;if(Object(i.w)(r,!0)){const e=Object(f.k)(e=>{const r=jt(t,Object(i.E)(e)),o=Ir(u,t,n,e[1]);return t=>c=>{const u=Object(i.m)(t,e);return(!n||n&&null!=u)&&(c[r]=o(u)),c}},Object(i.l)(r,!0));a=t=>Object(d.l)((e,n)=>n(t)(e),{},e)}else{if(!Object(i.y)(r,!0)){let e;const t=Object(i.f)(r);throw e=Object(p.k)(Object(p.g)("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}a=e=>{const o=Object(i.r)(e,r,!0),c=o[0],a=o[1],s=0|a.length;if(0===s)return Object(i.E)(c);{const e=0|s,r=Object(i.p)(c),o=Object(f.f)(new Array(e+1),0,e+1,null);o[0]=Object(i.E)(c);for(let i=1;i<=e;i++){const e=Ir(u,t,n,r[i-1][1]);o[i]=e(a[i-1])}return o}}}return c.contents=a,a}function Ir(e,t,n,o){const c=Object(i.f)(o),u=z(c,e);if(null==u){if(Object(i.t)(o)){const r=Ir(e,t,n,Object(i.g)(o));return e=>Er(Object(d.q)(r,e))}if(Object(i.u)(o)){const e=Object(i.f)(Object(i.h)(o));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Object(i.f)(o);return Object(p.j)(Object(p.g)("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)}}if(Object(i.v)(o)){if(Object(i.x)(o)){const r=Object(f.k)(r=>Ir(e,t,n,r),Object(i.n)(o));return e=>Er(Object(d.r)((e,t)=>r[e](t),Object(i.o)(e)))}{const c=Object(i.f)(Object(i.j)(o));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===c){const c=new r.a(()=>{return r=Ir(e,t,n,Object(i.k)(o)[0]),e=>Object(s.c)(Object(s.d)(r,e),()=>null);var r});return e=>null==e?null:c.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===c||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===c){const r=Ir(e,t,n,Object(i.k)(o)[0]);return e=>Er(Object(d.q)(r,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===c){const r=Object(i.k)(o)[0],c=Ir(e,t,n,Object(i.k)(o)[1]);if("System.String"===Object(i.f)(r)||"System.Guid"===Object(i.f)(r))return e=>Object(d.l)((e,t)=>{const n=t;return e[n[0]]=c(n[1]),e},{},e);{let o;const i=Ir(e,t,n,r);return o=i,e=>Er(Object(d.q)(e=>{const t=e;return[o(t[0]),c(t[1])]},e))}}return Ar(e,t,n,o)}}return"System.Boolean"===c?e=>e:"Microsoft.FSharp.Core.Unit"===c?Cr:"System.String"===c?e=>e:"System.SByte"===c?e=>e:"System.Byte"===c?e=>e:"System.Int16"===c?e=>e:"System.UInt16"===c?e=>e:"System.Int32"===c?e=>e:"System.UInt32"===c?e=>e:"System.Double"===c?e=>e:"System.Single"===c?e=>e:"System.DateTime"===c?Tr:"System.DateTimeOffset"===c?xr:"System.TimeSpan"===c?Sr:"System.Guid"===c?_r:"System.Object"===c?e=>e:Ar(e,t,n,o)}{const e=u;return t=>e.contents(t)}}function Nr(e){return null!=e?W((e,t)=>new o.b(t[0]),e.Coders):Y()}function Pr(e){return Object(p.k)(Object(p.g)("%s/tfn-declaration/backend"))(e)}function Mr(e,t){return rt(0,()=>{const n=ht((r=Object(p.k)(Object(p.g)("Bearer %s"))(e),new it(0,"Authorization",r)),t);var r;let o;const i=bt(n);return o=a.g.Bind(i,e=>a.g.Return(new Z.e(0,e))),a.g.Delay(()=>a.g.Bind(o,e=>{let t,r;const o=e;return 1===o.tag?a.g.Return(new Z.e(1,o.fields[0])):a.g.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=bt(n),a.g.Bind(r,e=>a.g.Return(new Z.e(0,e)))):nt(0,t)))}))})}const Dr=e=>wn(Object(r.F)(2,function(e,t,n){const r=Object(s.b)(t,new Ot(0));return Un(Hn(n),r,!1,e)}(wr(),new Ot(1),void 0)),e);function Rr(e,t){return rt(0,()=>{const n=Mr(e,pt(new ot(0),dt(Pr(t))));return a.g.Delay(()=>a.g.Bind(n,e=>{let t,n;const r=e;return 1===r.tag?a.g.Return(new Z.e(1,r.fields[0])):a.g.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Dr(t.responseText),a.g.Return(n)):a.g.Return(new Z.e(1,"Unexpected response from backend"))))}))})}function Fr(e,t,n){return rt(0,()=>{let o;const c=e.PreExistingTfnDec;let u,f;switch(2===c.tag&&0===c.fields[0].tag?(u=0,f=c.fields[0].fields[0]):u=1,u){case 0:o=rt(0,()=>nt(0,f));break;case 1:o=Rr(t,n)}return a.g.Delay(()=>a.g.Bind(o,o=>{let c,u,f;const p=o;return 1===p.tag?a.g.Return(new Z.e(1,p.fields[0])):a.g.ReturnFrom((c=p.fields[0],f=function(e,t){return Qe(0,()=>Object(Z.f)(n=>{const o=n,i=Object(s.d)(rr,e.PreviousSurname.Value);return Object(Z.f)(n=>{const c=0|n;return Object(Z.f)(n=>{const u=0|n;return Object(Z.f)(n=>{let a,s;const f=n,p=hr(e.DebtSupportCheckboxGroup),h=t.Data;if(null!=h){const e=h;return Ke(0,Object(l.b)(0===o.tag?Object(l.g)():1===o.fields[0].tag?(a=0|br(o.fields[0].fields[0]),s=e.TfnInformation,1===s.tag&&s.fields[0]===a?Object(l.g)():Object(l.t)(new jr(1,new mr(1,a)))):Object(l.t)(new jr(1,new mr(0,o.fields[0].fields[0].fields[0]))),Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(r.n)(i,e.PreviousSurname)?Object(d.i)():Object(d.v)(new jr(2,i)),Object(d.h)(()=>Object(d.a)(c!==e.ResidencyStatus?Object(d.v)(new jr(3,c)):Object(d.i)(),Object(d.h)(()=>Object(d.a)(u!==e.EmploymentBasis?Object(d.v)(new jr(4,u)):Object(d.i)(),Object(d.h)(()=>Object(d.a)(f!==e.IsTaxFreeThresholdClaimed?Object(d.v)(new jr(5,f)):Object(d.i)(),Object(d.h)(()=>Object(r.n)(Object(l.v)(p,{Compare:r.g}),Object(l.v)(e.HasDebtSupport,{Compare:r.g}))?Object(d.i)():Object(d.v)(new jr(6,p))))))))))))))}return et(0,0===o.tag?new Z.e(1,"New TFN declaration cannot have a truncated TFN"):1===o.fields[0].tag?new Z.e(0,new mr(1,br(o.fields[0].fields[0]))):new Z.e(0,new mr(0,o.fields[0].fields[0].fields[0])),e=>Object(l.t)(new jr(0,{AccountId:t.Meta.AccountId,EmploymentBasis:u,HasDebtSupport:p,IsTaxFreeThresholdClaimed:f,PreviousSurname:i,ResidencyStatus:c,TfnInformation:e})))},Q("missing is tax-free threshold claimed",Object(s.d)(e=>1!==e.tag,e.ClaimTaxFreeThreshold.Selected)))},Q("missing employment basis",Object(s.d)(lr,e.EmploymentBasisRadioButtonGroup.Value)))},Q("missing residency status",Object(s.d)(ar,e.ResidencyStatusRadioButtonGroup.Value)))},Q("missing TFN info",e.TfnInformation.Value)))()}(e,c),u=a.g.Return(f),a.g.Delay(()=>a.g.Bind(u,e=>{let r,o,u;const f=e;return 1===f.tag?a.g.Return(new Z.e(1,f.fields[0])):a.g.ReturnFrom((r=f.fields[0],Object(l.l)(r)?nt(0,c):(o=Mr(t,(u=$t(new ct(1,kr(0,function(e,t,n,r){const o=Object(s.b)(t,new Ot(0)),i=Object(s.b)(r,!0);return Ir(Nr(n),o,i,e)}(Object(i.A)(Object(i.L)("Dto.Commands.TfnDeclarationCommandDto",[],jr,()=>[[["Item",Object(i.a)(["AccountId",i.J],["EmploymentBasis",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",i.c],["PreviousSurname",Object(i.G)(i.J)],["ResidencyStatus",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",gr()])]],[["Item",gr()]],[["Item",Object(i.G)(i.J)]],[["Item",Object(i.e)("Dto.Dto.ResidencyStatusDto",i.s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",Object(i.e)("Dto.Dto.EmploymentBasisDto",i.s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",i.c]],[["Item",Object(i.A)(Object(i.e)("Dto.Dto.DebtSupportDto",i.s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]])),new Ot(1),void 0,void 0)(r))),pt(new ot(2),dt(Pr(n)))),ht(new it(0,"Content-Type","application/json"),u))),a.g.Delay(()=>a.g.Bind(o,e=>{let t,n;const r=e;return 1===r.tag?a.g.Return(new Z.e(1,r.fields[0])):a.g.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Dr(t.responseText),a.g.Return(n)):a.g.Return(new Z.e(1,"Unexpected response from backend"))))})))))}))))}))})}n(33);class Lr{constructor(){}}function Br(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(Object(r.n)(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 Gr=new Lr;class Ur extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Hr{constructor(e){this.state=new Ur(0,Object(f.f)(new Array(Object(r.t)(r.g,e,10)),0,Object(r.t)(r.g,e,10),null),0)}}function Vr(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 Ur(0,o,n):new Ur(1,o,n,i),Object(s.f)(o[r])}}function qr(e,t,n){const o=Object(c.m)(e[0]),i=Object(c.m)(new Hr(10));const a=Object(c.d)(e[0]);let f;const p=Object(c.m)(Object(u.c)()),h=Object(c.m)(p.current);Object(c.g)(()=>Object(c.a)(()=>{Object(u.a)(p.current)})),f=h;const $=()=>{setTimeout(()=>{let e;e=f.current,Object(u.f)(e)||a[1](o.current)},0)},b=e=>{var n;(n=Br(0,()=>{let n=Object(s.f)(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Gr,()=>{let e;return null!=n&&(e=f.current,!Object(u.f)(e))},Br(0,()=>{const e=t(Object(s.i)(n),o.current);return Object(l.m)(e=>{e(b)},e[1]),n=Vr(i.current),o.current=e[0],$(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},m=Object(c.e)(b);return Object(c.j)(()=>Object(c.a)(()=>{let e;Object(d.o)(e=>{Object(r.k)(e)},Object(s.g)((e=o.current,Object(r.s)(e)?e:void 0)))}),n),Object(c.i)(()=>{o.current=e[0],$(),Object(l.m)(e=>{e(m)},e[1])},n),Object(c.h)(()=>{Object(d.o)(m,Object(s.g)(Vr(i.current)))}),[a[0],m]}class zr extends o.c{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Wr(){return new zr(void 0,{Valid:!1})}function Yr(e){return new zr(e,{Valid:!0})}function Xr(e){switch(e){case"Under18AndBelowTaxThreshold":return new er(0);case"Pending":return new er(1);case"Pensioner":return new er(2);default:return}}function Jr(e){switch(e){case"AustralianResidentForTaxPurposes":return new Zn(0);case"ForeignResidentForTaxPurposes":return new Zn(1);case"WorkingHolidayMaker":return new Zn(2);default:return}}function Zr(e){switch(e){case"HELP":return new Jn(0);case"VETStudentLoan":return new Jn(1);case"FinancialSupplement":return new Jn(2);case"StudentStartUpLoan":return new Jn(3);case"TradeSupportLoan":return new Jn(4);default:return}}function Kr(e){switch(e){case"FullTime":return new Kn(0);case"PartTime":return new Kn(1);case"LabourHire":return new Kn(2);case"SuperIncomeStream":return new Kn(3);case"Casual":return new Kn(4);default:return}}function Qr(e){let t;return Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","mb-2"],(t=[Object(be.createElement)("strong",{children:[e]})],["children",ze.a.Children.toArray(Array.from(t))])])))}function eo(e,t){let n,o;return Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","mb-2"],(n=[Object(be.createElement)("span",Object(r.h)(Object(l.p)([["className","mr-2"],(o=[Object(be.createElement)("strong",{children:[e]})],["children",ze.a.Children.toArray(Array.from(o))])]))),t],["children",ze.a.Children.toArray(Array.from(n))])])))}class to extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class no extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class ro extends o.c{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function oo(e){return new ro(e,{Touched:!1})}function io(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new ro(e.fields[0],t.Meta):t:new ro(e.fields[0],{Touched:!0})}function co(e){let t;const n=Object(r.n)(e.Parent.State.Selected,e.Selection)?Object(l.p)(["btn-secondary","active"]):Object(l.t)("btn-outline-secondary");return Object(be.createElement)("label",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",Object(l.b)(Object(l.t)("btn"),n))],(t=[Object(be.createElement)("input",{type:"radio",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new no(0,e.Selection))},disabled:Object(r.n)(e.Parent.Disable,e.Selection)}),Object(o.f)(e.Selection)],["children",ze.a.Children.toArray(Array.from(t))])])))}function uo(e){let t,n;return Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(t=[Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["btn-group","btn-group-toggle","col-12","col-sm-6"])],(n=[co({Parent:e,Selection:new to(0)}),co({Parent:e,Selection:new to(1)})],["children",ze.a.Children.toArray(Array.from(n))])])))],["children",ze.a.Children.toArray(Array.from(t))])])))}var ao=n(16);class so extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class lo extends o.c{constructor(e){super(),this.Selected=e}}function fo(e,t,n){const r=function(e,t){return new lo(e.fields[0])}(t);return e(new zr(r.Selected,{Valid:null!=r.Selected})),[r,Object(ao.g)()]}function po(e){const t=qr((n=e.InitialValue,[new lo(n),Object(ao.g)()]),(t,n)=>fo(e.OnUpdate,t),[]);var n;const o=Object(d.z)(Object(d.h)(()=>Object(d.d)(n=>{let o;const i=n[0];return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-check","fl-radio-container"])],(o=[Object(be.createElement)("input",{className:"form-check-input",type:"radio",name:e.Name,id:i,checked:Object(s.h)(t[0].Selected)===i,onChange:e=>{e.target.checked;t[1](new so(0,i))}}),Object(be.createElement)("label",{className:"form-check-label",for:i,children:n[1]})],["children",ze.a.Children.toArray(Array.from(o))])]))))},e.ValueLabelPairs)));return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(o))})}class ho extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class $o extends o.c{constructor(e,t){super(),this.Text=e,this.Meta=t}}function bo(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new $o(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new $o(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new zr(o.Text,{Valid:o.Meta.Valid})),[o,Object(ao.g)()]}class mo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function go(e){const t=qr(function(e,t){const n=Object(s.b)(e,"");return[new $o(n,{Touched:!1,Valid:t(n)}),Object(ao.g)()]}(e.InitialValue,e.Validator),(t,n)=>bo(e.OnUpdate,e.Validator,t,n),[]),n=t[0],o=t[1],i=Object(l.p)([Object(be.createElement)("input",Object(r.h)(Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)(["className",Object(p.f)(" ",Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)("form-control"),Object(d.h)(()=>!n.Meta.Valid&&n.Meta.Touched?Object(d.v)("is-invalid"):Object(d.i)())))))]),Object(d.h)(()=>Object(d.a)(Object(d.v)(["type","text"]),Object(d.h)(()=>Object(d.a)(Object(d.v)(["onChange",t=>{const n=t.target.value;o(new ho(0,1===e.InputType.tag?n:Object(p.b)(zn,n)))}]),Object(d.h)(()=>{let t;return Object(d.a)(Object(d.v)((t=n.Text,["ref",e=>{null==e||Object(r.n)(e.value,t)||(e.value=t)}])),Object(d.h)(()=>Object(d.a)(Object(d.v)(["onBlur",e=>{o(new ho(1))}]),Object(d.h)(()=>Object(r.n)(e.InputType,new mo(0))?Object(d.v)(["inputmode","numeric"]):Object(d.i)()))))})))))))))),Object(be.createElement)("div",{className:"invalid-feedback",children:e.InvalidFeedback})]);return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(i))})}class Oo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class yo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class vo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class wo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class jo extends o.c{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function _o(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new zr(Object(s.d)(e=>new vo(1,e),e.Value),e.Meta)}return new zr(new vo(0,Object(s.h)(e.TruncatedTfn)),{Valid:!0})}const Eo=e=>K(cr(e));function xo(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new jo(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new wo(1,new zr(n.Value,{Valid:!1})));if(1===r.tag)return new jo(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new wo(1,new zr(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new jo(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new wo(1,new zr(n.Value,{Valid:Eo(t)})))}}return e}function So(e,t,n){const r=function(e,t){let n,r,o,i,c,u,a,l,f,d;return xo(1===e.tag?(n=e.fields[0],r=Object(s.d)(e=>new yo(0,new Qn(0,e)),n.Value),t.EditingState.tag,new jo(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new wo(1,new zr(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=Object(s.d)(e=>new yo(1,e),Object(s.a)(Xr,o.Value)),t.EditingState.tag,new jo(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new wo(1,new zr(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new jo(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new wo(0)):new jo(t.YesNoButtonGroup,t.TruncatedTfn,new We(2,"Please click the Save and continue button at the end of\n this form to save the changes to your TFN."),new wo(1,Wr())):4===e.tag?new jo(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(c=e.fields[0],c.tag,a=[c.fields[0],t.EditingState],u=1===a[0].tag?1===a[1].tag?(l=a[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new wo(1,Wr())):new wo(1,Wr()):1===a[1].tag?(f=[a[1].fields[0].Value,t.TruncatedTfn],null!=f[0]&&0===f[0].tag?t.EditingState:null!=f[1]?(d=f[1],new wo(0)):new wo(1,Wr())):new wo(0),new jo(io(c,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,u)))}(t,n);return e(_o(r)),[r,Object(ao.g)()]}function Co(e){let t;const n=qr(function(e){let t,n,r;return[xo(new jo(oo(null!=e&&1===e.tag&&1===e.fields[0].tag?new to(1):new to(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new wo(1,Wr()):1===e.tag?(r=e.fields[0],new wo(1,new zr(r,{Valid:!1}))):new wo(0))),Object(ao.g)()]}(e.InitialValue),(t,n)=>So(e.OnUpdate,t,n),[]),i=n[0],c=n[1],u=null==i.TruncatedTfn?null:Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-auto","col-sm-auto"])],(t=[Object(be.createElement)("button",{className:Object(p.f)(" ",["btn","btn-secondary"]),type:"button",children:Object(r.n)(i.EditingState,new wo(0))?"Change":"Cancel",onClick:e=>{c(new Oo(3))}})],["children",ze.a.Children.toArray(Array.from(t))])]))),a=Object(d.z)(Object(d.h)(()=>{let e,t;return Object(d.a)((e=i.CurrentAlert,null==e?Object(d.v)(null):(t=e,Object(d.v)(Object(be.createElement)(Je,{alert:t,hideAlert:()=>{c(new Oo(4))}})))),Object(d.h)(()=>Object(d.a)(Object(d.v)(Qr("Do you have your TFN?")),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(be.createElement)(uo,{Disable:void 0,Dispatch:e=>{c(new Oo(0,e))},State:i.YesNoButtonGroup})),Object(d.h)(()=>{let e;return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","mt-2"],(e=Object(d.z)(Object(d.h)(()=>{let e,t,n;const a=i.YesNoButtonGroup.Selected;if(null==a)return Object(d.v)(null);if(1===a.tag)return Object(d.v)(Object(be.createElement)(po,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new er(1),"My TFN is pending"],[new er(0),"I'm under 18 and don't have a TFN"],[new er(2),"I have an exemption from quoting a TFN (such as receiving a social security or service pension)"]])),{InitialValue:(t=_o(i).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Object(o.f)(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{c(new Oo(2,e))},ValueLabelPairs:e})));{const e=[i.TruncatedTfn,i.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return Object(d.a)(Object(d.v)(Object(be.createElement)("h6",{children:["Your Tax File Number"]})),Object(d.h)(()=>{let e,t,o;return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col","col-sm-4"])],(t=[Object(be.createElement)("input",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-control"])],["disabled",!0],(o="xxx-xxx-x"+n,["ref",e=>{null==e||Object(r.n)(e.value,o)||(e.value=o)}])])))],["children",ze.a.Children.toArray(Array.from(t))])]))),u],["children",ze.a.Children.toArray(Array.from(e))])]))))}));case 1:return Object(d.a)(Object(d.v)(Object(be.createElement)("h6",{children:["Enter Tax File Number"]})),Object(d.h)(()=>{let e,t;return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col","col-sm-4"])],(t=[Object(be.createElement)(go,{InitialValue:void 0,InputType:new mo(0),InvalidFeedback:"Please enter a valid tax file number",OnUpdate:e=>{c(new Oo(1,e))},Validator:Eo})],["children",ze.a.Children.toArray(Array.from(t))])]))),u],["children",ze.a.Children.toArray(Array.from(e))])]))))}))}}})),["children",ze.a.Children.toArray(Array.from(e))])]))))}))))))}));return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(a))})}class To extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class ko extends o.c{constructor(e,t,n,r,o,i,c,u){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatusRadioButtonGroup=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=c,this.EmploymentBasisRadioButtonGroup=u}}class Ao extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function Io(){const e=Object(p.h)(document.URL,["/"],null,0),t=Object(f.c)("web",e,{Equals:(e,t)=>e===t,GetHashCode:r.C}),n=Object(f.c)("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:r.C}),o=[Object(s.e)(document.querySelector("tax-component")),t,n];let i;switch(i=null==o[0]?o[1]?o[2]?3:1:o[2]?2:3:0,i){case 0:return new Z.e(0,new Ao(2,o[0]));case 1:return new Z.e(0,new Ao(0));case 2:return new Z.e(0,new Ao(1));case 3:return new Z.e(1,"Could not determine the embed mode")}}var No=n(30);function Po(e,t){switch(e.tag){case 1:return[new ko(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 2:{const n=Object(s.a)(Jr,e.fields[0].Value);return[new ko(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,new zr(n,{Valid:null!=n}),t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),null==n?Object(ao.g)():1===n.tag?Object(ao.a)(new To(3,new no(1,new to(1),!1))):2===n.tag?Object(ao.a)(new To(3,new no(1,new to(1),!0))):Object(ao.a)(new To(3,new no(1,new to(0),!1)))]}case 3:return[new ko(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,io(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 4:return[new ko(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 5:{const n=Object(s.a)(Kr,e.fields[0].Value);return[new ko(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new zr(n,{Valid:null!=n})),Object(ao.g)()]}case 6:{const n=e.fields[0],r=new ko(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Object(ao.a)(new To(7,new We(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=Io();let r;switch(r=0===n.tag&&(0===n.fields[0].tag||1===n.fields[0].tag)?0:1,r){case 0:{const n=Object(s.e)(document.getElementById("external-loading-page-container"));Object(d.o)((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),Object(s.g)(n));break}}}();const i=Object(ao.a)(new To(10));let c,u;switch(2===n.tag?1===n.fields[0].tag?c=1:(c=0,u=n.fields[0].fields[0]):c=3===n.tag?1:2,c){case 0:{const e=Object(s.d)(e=>function(e,t){return Qe(0,()=>{let n;return Object(Z.f)(n=>Object(Z.f)(r=>{const o=t.IsTaxFreeThresholdClaimed?new to(0):new to(1);return Object(Z.f)(i=>et(0,sr(t.EmploymentBasis),c=>new ko(e.PreExistingTfnDec,e.CurrentAlert,Yr(n),Yr(Object(s.d)(nr,t.PreviousSurname)),Yr(r),oo(o),i,Yr(c))),pr(t.HasDebtSupport))},ur(t.ResidencyStatus)),(n=t.TfnInformation,1===n.tag?Object(Z.g)(e=>new vo(1,new yo(1,e)),$r(n.fields[0])):new Z.e(0,new vo(0,n.fields[0]))))})()}(r,e),u.Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}case 1:return[r,o];case 2:return[r,i]}}case 7:return[new ko(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 8:return[new ko(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 9:return[new ko(new X(2,new Z.e(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()];case 10:return function(){const e=Io();let t;switch(t=0===e.tag&&(0===e.fields[0].tag||1===e.fields[0].tag)?0:1,t){case 0:window.parent.postMessage({sender:"flare",type:"appReady"},"*",Object(s.f)(Object(l.g)()))}}(),[t,Object(ao.g)()];default:return[new ko(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Object(ao.g)()]}}class Mo extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Do extends o.c{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Ro(e){return!Object(p.e)(e)}function Fo(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Do(e.YesNoButtonGroup,new zr(e.Data.Value,{Valid:!1})):1===t.tag?new Do(e.YesNoButtonGroup,new zr(e.Data.Value,{Valid:!0})):new Do(e.YesNoButtonGroup,new zr(e.Data.Value,{Valid:Object(s.b)(Object(s.d)(e=>Ro(e.fields[0]),e.Data.Value),!1)}))}function Lo(e,t,n){const r=function(e,t){let n,r,o;return Fo(1===e.tag?(n=e.fields[0],new Do(t.YesNoButtonGroup,new zr(Object(s.d)(e=>new tr(0,e),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new zr(void 0,t.Data.Meta):t.Data,new Do(io(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Object(ao.g)()]}function Bo(e){let t;const n=qr((o=e.InitialValue,[Fo(new Do(oo(new to(null!=o?0:1)),new zr(o,{Valid:!1}))),Object(ao.g)()]),(t,n)=>Lo(e.OnUpdate,t,n),[]);var o;const i=n[0],c=n[1],u=Object(l.p)([Qr("Have you changed your surname since you last dealt with the Australian Tax Office?"),Object(be.createElement)(uo,{Disable:void 0,Dispatch:e=>{c(new Mo(0,e))},State:i.YesNoButtonGroup}),Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","mt-2"],(t=Object(d.z)(Object(d.h)(()=>{const e=i.YesNoButtonGroup.Selected;let t;switch(t=null!=e&&0===e.tag?0:1,t){case 0:return Object(d.a)(Object(d.v)(Object(be.createElement)("h6",{children:["Enter Previous Surname"]})),Object(d.h)(()=>{let e,t;return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className","row"],(e=[Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-12","col-sm-5"])],(t=[Object(be.createElement)(go,{InitialValue:Object(s.d)(rr,i.Data.Value),InputType:new mo(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{c(new Mo(1,e))},Validator:Ro})],["children",ze.a.Children.toArray(Array.from(t))])])))],["children",ze.a.Children.toArray(Array.from(e))])]))))}));case 1:return Object(d.v)(null)}})),["children",ze.a.Children.toArray(Array.from(t))])])))]);return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(u))})}function Go(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Uo(e){return e instanceof Go(e).Element||e instanceof Element}function Ho(e){return e instanceof Go(e).HTMLElement||e instanceof HTMLElement}function Vo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Go(e).ShadowRoot||e instanceof ShadowRoot)}var qo=Math.max,zo=Math.min,Wo=Math.round;function Yo(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Ho(e)&&t){var i=e.offsetHeight,c=e.offsetWidth;c>0&&(r=Wo(n.width)/c||1),i>0&&(o=Wo(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Xo(e){var t=Go(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jo(e){return e?(e.nodeName||"").toLowerCase():null}function Zo(e){return((Uo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ko(e){return Yo(Zo(e)).left+Xo(e).scrollLeft}function Qo(e){return Go(e).getComputedStyle(e)}function ei(e){var t=Qo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ti(e,t,n){void 0===n&&(n=!1);var r,o,i=Ho(t),c=Ho(t)&&function(e){var t=e.getBoundingClientRect(),n=Wo(t.width)/e.offsetWidth||1,r=Wo(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),u=Zo(t),a=Yo(e,c),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Jo(t)||ei(u))&&(s=(r=t)!==Go(r)&&Ho(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Xo(r)),Ho(t)?((l=Yo(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):u&&(l.x=Ko(u))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ni(e){var t=Yo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ri(e){return"html"===Jo(e)?e:e.assignedSlot||e.parentNode||(Vo(e)?e.host:null)||Zo(e)}function oi(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(Jo(t))>=0?t.ownerDocument.body:Ho(t)&&ei(t)?t:e(ri(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Go(r),c=o?[i].concat(i.visualViewport||[],ei(r)?r:[]):r,u=t.concat(c);return o?u:u.concat(oi(ri(c)))}function ii(e){return["table","td","th"].indexOf(Jo(e))>=0}function ci(e){return Ho(e)&&"fixed"!==Qo(e).position?e.offsetParent:null}function ui(e){for(var t=Go(e),n=ci(e);n&&ii(n)&&"static"===Qo(n).position;)n=ci(n);return n&&("html"===Jo(n)||"body"===Jo(n)&&"static"===Qo(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ho(e)&&"fixed"===Qo(e).position)return null;var n=ri(e);for(Vo(n)&&(n=n.host);Ho(n)&&["html","body"].indexOf(Jo(n))<0;){var r=Qo(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ai="top",si="bottom",li="right",fi="left",di=[ai,si,li,fi],pi=di.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),hi=[].concat(di,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),$i=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function bi(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}var mi={placement:"bottom",modifiers:[],strategy:"absolute"};function gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Oi(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?mi:o;return function(e,t,n){void 0===n&&(n=i);var o,c,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},mi,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:u,setOptions:function(n){var o="function"==typeof n?n(u.options):n;f(),u.options=Object.assign({},i,u.options,o),u.scrollParents={reference:Uo(e)?oi(e):e.contextElement?oi(e.contextElement):[],popper:oi(t)};var c=function(e){var t=bi(e);return $i.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,u.options.modifiers)));return u.orderedModifiers=c.filter((function(e){return e.enabled})),u.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:u,name:t,instance:l,options:r});a.push(i||function(){})}})),l.update()},forceUpdate:function(){if(!s){var e=u.elements,t=e.reference,n=e.popper;if(gi(t,n)){u.rects={reference:ti(t,ui(n),"fixed"===u.options.strategy),popper:ni(n)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(e){return u.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,c=o.options,a=void 0===c?{}:c,f=o.name;"function"==typeof i&&(u=i({state:u,options:a,name:f,instance:l})||u)}else u.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(u)}))},function(){return c||(c=new Promise((function(e){Promise.resolve().then((function(){c=void 0,e(o())}))}))),c}),destroy:function(){f(),s=!0}};if(!gi(e,t))return l;function f(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var yi={passive:!0};function vi(e){return e.split("-")[0]}function wi(e){return e.split("-")[1]}function ji(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _i(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?vi(o):null,c=o?wi(o):null,u=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(i){case ai:t={x:u,y:n.y-r.height};break;case si:t={x:u,y:n.y+n.height};break;case li:t={x:n.x+n.width,y:a};break;case fi:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=i?ji(i):null;if(null!=s){var l="y"===s?"height":"width";switch(c){case"start":t[s]=t[s]-(n[l]/2-r[l]/2);break;case"end":t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var Ei={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xi(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,u=e.position,a=e.gpuAcceleration,s=e.adaptive,l=e.roundOffsets,f=e.isFixed,d=c.x,p=void 0===d?0:d,h=c.y,$=void 0===h?0:h,b="function"==typeof l?l({x:p,y:$}):{x:p,y:$};p=b.x,$=b.y;var m=c.hasOwnProperty("x"),g=c.hasOwnProperty("y"),O=fi,y=ai,v=window;if(s){var w=ui(n),j="clientHeight",_="clientWidth";if(w===Go(n)&&"static"!==Qo(w=Zo(n)).position&&"absolute"===u&&(j="scrollHeight",_="scrollWidth"),w=w,o===ai||(o===fi||o===li)&&"end"===i)y=si,$-=(f&&w===v&&v.visualViewport?v.visualViewport.height:w[j])-r.height,$*=a?1:-1;if(o===fi||(o===ai||o===si)&&"end"===i)O=li,p-=(f&&w===v&&v.visualViewport?v.visualViewport.width:w[_])-r.width,p*=a?1:-1}var E,x=Object.assign({position:u},s&&Ei),S=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Wo(t*r)/r||0,y:Wo(n*r)/r||0}}({x:p,y:$}):{x:p,y:$};return p=S.x,$=S.y,a?Object.assign({},x,((E={})[y]=g?"0":"",E[O]=m?"0":"",E.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+$+"px)":"translate3d("+p+"px, "+$+"px, 0)",E)):Object.assign({},x,((t={})[y]=g?$+"px":"",t[O]=m?p+"px":"",t.transform="",t))}var Si={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Ho(o)&&Jo(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ho(r)&&Jo(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Ci={left:"right",right:"left",bottom:"top",top:"bottom"};function Ti(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ci[e]}))}var ki={start:"end",end:"start"};function Ai(e){return e.replace(/start|end/g,(function(e){return ki[e]}))}function Ii(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ni(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pi(e,t){return"viewport"===t?Ni(function(e){var t=Go(e),n=Zo(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,c=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:c+Ko(e),y:u}}(e)):Uo(t)?function(e){var t=Yo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ni(function(e){var t,n=Zo(e),r=Xo(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=qo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=qo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Ko(e),a=-r.scrollTop;return"rtl"===Qo(o||n).direction&&(u+=qo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:u,y:a}}(Zo(e)))}function Mi(e,t,n){var r="clippingParents"===t?function(e){var t=oi(ri(e)),n=["absolute","fixed"].indexOf(Qo(e).position)>=0&&Ho(e)?ui(e):e;return Uo(n)?t.filter((function(e){return Uo(e)&&Ii(e,n)&&"body"!==Jo(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],c=o.reduce((function(t,n){var r=Pi(e,n);return t.top=qo(r.top,t.top),t.right=zo(r.right,t.right),t.bottom=zo(r.bottom,t.bottom),t.left=qo(r.left,t.left),t}),Pi(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Di(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ri(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Fi(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,c=void 0===i?"clippingParents":i,u=n.rootBoundary,a=void 0===u?"viewport":u,s=n.elementContext,l=void 0===s?"popper":s,f=n.altBoundary,d=void 0!==f&&f,p=n.padding,h=void 0===p?0:p,$=Di("number"!=typeof h?h:Ri(h,di)),b="popper"===l?"reference":"popper",m=e.rects.popper,g=e.elements[d?b:l],O=Mi(Uo(g)?g:g.contextElement||Zo(e.elements.popper),c,a),y=Yo(e.elements.reference),v=_i({reference:y,element:m,strategy:"absolute",placement:o}),w=Ni(Object.assign({},m,v)),j="popper"===l?w:y,_={top:O.top-j.top+$.top,bottom:j.bottom-O.bottom+$.bottom,left:O.left-j.left+$.left,right:j.right-O.right+$.right},E=e.modifiersData.offset;if("popper"===l&&E){var x=E[o];Object.keys(_).forEach((function(e){var t=[li,si].indexOf(e)>=0?1:-1,n=[ai,si].indexOf(e)>=0?"y":"x";_[e]+=x[n]*t}))}return _}function Li(e,t,n){return qo(e,zo(t,n))}function Bi(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Gi(e){return[ai,li,si,fi].some((function(t){return e[t]>=0}))}var Ui=Oi({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,c=r.resize,u=void 0===c||c,a=Go(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach((function(e){e.addEventListener("scroll",n.update,yi)})),u&&a.addEventListener("resize",n.update,yi),function(){i&&s.forEach((function(e){e.removeEventListener("scroll",n.update,yi)})),u&&a.removeEventListener("resize",n.update,yi)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_i({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,c=void 0===i||i,u=n.roundOffsets,a=void 0===u||u,s={placement:vi(t.placement),variation:wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xi(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xi(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Si,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,c=hi.reduce((function(e,n){return e[n]=function(e,t,n){var r=vi(e),o=[fi,ai].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=i[0],u=i[1];return c=c||0,u=(u||0)*o,[fi,li].indexOf(r)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,i),e}),{}),u=c[t.placement],a=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0===c||c,a=n.fallbackPlacements,s=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,$=n.allowedAutoPlacements,b=t.options.placement,m=vi(b),g=a||(m===b||!h?[Ti(b)]:function(e){if("auto"===vi(e))return[];var t=Ti(e);return[Ai(e),t,Ai(t)]}(b)),O=[b].concat(g).reduce((function(e,n){return e.concat("auto"===vi(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,c=n.padding,u=n.flipVariations,a=n.allowedAutoPlacements,s=void 0===a?hi:a,l=wi(r),f=l?u?pi:pi.filter((function(e){return wi(e)===l})):di,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Fi(e,{placement:n,boundary:o,rootBoundary:i,padding:c})[vi(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:$}):n)}),[]),y=t.rects.reference,v=t.rects.popper,w=new Map,j=!0,_=O[0],E=0;E<O.length;E++){var x=O[E],S=vi(x),C="start"===wi(x),T=[ai,si].indexOf(S)>=0,k=T?"width":"height",A=Fi(t,{placement:x,boundary:l,rootBoundary:f,altBoundary:d,padding:s}),I=T?C?li:fi:C?si:ai;y[k]>v[k]&&(I=Ti(I));var N=Ti(I),P=[];if(i&&P.push(A[S]<=0),u&&P.push(A[I]<=0,A[N]<=0),P.every((function(e){return e}))){_=x,j=!1;break}w.set(x,P)}if(j)for(var M=function(e){var t=O.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},D=h?3:1;D>0;D--){if("break"===M(D))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,c=n.altAxis,u=void 0!==c&&c,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,$=void 0===h?0:h,b=Fi(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:l}),m=vi(t.placement),g=wi(t.placement),O=!g,y=ji(m),v="x"===y?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,_=t.rects.popper,E="function"==typeof $?$(Object.assign({},t.rects,{placement:t.placement})):$,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(w){if(i){var T,k="y"===y?ai:fi,A="y"===y?si:li,I="y"===y?"height":"width",N=w[y],P=N+b[k],M=N-b[A],D=p?-_[I]/2:0,R="start"===g?j[I]:_[I],F="start"===g?-_[I]:-j[I],L=t.elements.arrow,B=p&&L?ni(L):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=G[k],H=G[A],V=Li(0,j[I],B[I]),q=O?j[I]/2-D-V-U-x.mainAxis:R-V-U-x.mainAxis,z=O?-j[I]/2+D+V+H+x.mainAxis:F+V+H+x.mainAxis,W=t.elements.arrow&&ui(t.elements.arrow),Y=W?"y"===y?W.clientTop||0:W.clientLeft||0:0,X=null!=(T=null==S?void 0:S[y])?T:0,J=N+z-X,Z=Li(p?zo(P,N+q-X-Y):P,N,p?qo(M,J):M);w[y]=Z,C[y]=Z-N}if(u){var K,Q="x"===y?ai:fi,ee="x"===y?si:li,te=w[v],ne="y"===v?"height":"width",re=te+b[Q],oe=te-b[ee],ie=-1!==[ai,fi].indexOf(m),ce=null!=(K=null==S?void 0:S[v])?K:0,ue=ie?re:te-j[ne]-_[ne]-ce+x.altAxis,ae=ie?te+j[ne]+_[ne]-ce-x.altAxis:oe,se=p&&ie?function(e,t,n){var r=Li(e,t,n);return r>n?n:r}(ue,te,ae):Li(p?ue:re,te,p?ae:oe);w[v]=se,C[v]=se-te}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,c=n.modifiersData.popperOffsets,u=vi(n.placement),a=ji(u),s=[fi,li].indexOf(u)>=0?"height":"width";if(i&&c){var l=function(e,t){return Di("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ri(e,di))}(o.padding,n),f=ni(i),d="y"===a?ai:fi,p="y"===a?si:li,h=n.rects.reference[s]+n.rects.reference[a]-c[a]-n.rects.popper[s],$=c[a]-n.rects.reference[a],b=ui(i),m=b?"y"===a?b.clientHeight||0:b.clientWidth||0:0,g=h/2-$/2,O=l[d],y=m-f[s]-l[p],v=m/2-f[s]/2+g,w=Li(O,v,y),j=a;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-v,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Ii(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=Fi(t,{elementContext:"reference"}),u=Fi(t,{altBoundary:!0}),a=Bi(c,r),s=Bi(u,o,i),l=Gi(a),f=Gi(s);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),Hi={passive:!0,capture:!0},Vi=function(){return document.body};function qi(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function zi(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Wi(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Yi(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function Xi(e){return[].concat(e)}function Ji(e,t){-1===e.indexOf(t)&&e.push(t)}function Zi(e){return e.split("-")[0]}function Ki(e){return[].slice.call(e)}function Qi(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function ec(){return document.createElement("div")}function tc(e){return["Element","Fragment"].some((function(t){return zi(e,t)}))}function nc(e){return zi(e,"MouseEvent")}function rc(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function oc(e){return tc(e)?[e]:function(e){return zi(e,"NodeList")}(e)?Ki(e):Array.isArray(e)?e:Ki(document.querySelectorAll(e))}function ic(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function cc(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function uc(e){var t,n=Xi(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ac(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function sc(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var lc={isTouch:!1},fc=0;function dc(){lc.isTouch||(lc.isTouch=!0,window.performance&&document.addEventListener("mousemove",pc))}function pc(){var e=performance.now();e-fc<20&&(lc.isTouch=!1,document.removeEventListener("mousemove",pc)),fc=e}function hc(){var e=document.activeElement;if(rc(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var $c=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var bc={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mc=Object.assign({appendTo:Vi,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},bc,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),gc=Object.keys(mc);function Oc(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=mc[o])?r:i);return t}),{});return Object.assign({},e,t)}function yc(e,t){var n=Object.assign({},t,{content:Wi(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Oc(Object.assign({},mc,{plugins:t}))):gc).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mc.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function vc(e,t){e.innerHTML=t}function wc(e){var t=ec();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",tc(e)?t.appendChild(e):vc(t,e)),t}function jc(e,t){tc(t.content)?(vc(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?vc(e,t.content):e.textContent=t.content)}function _c(e){var t=e.firstElementChild,n=Ki(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Ec(e){var t=ec(),n=ec();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ec();function o(n,r){var o=_c(t),i=o.box,c=o.content,u=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||jc(c,e.props),r.arrow?u?n.arrow!==r.arrow&&(i.removeChild(u),i.appendChild(wc(r.arrow))):i.appendChild(wc(r.arrow)):u&&i.removeChild(u)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),jc(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ec.$$tippy=!0;var xc=1,Sc=[],Cc=[];function Tc(e,t){var n,r,o,i,c,u,a,s,l=yc(e,Object.assign({},mc,Oc(Qi(t)))),f=!1,d=!1,p=!1,h=!1,$=[],b=Yi(W,l.interactiveDebounce),m=xc++,g=(s=l.plugins).filter((function(e,t){return s.indexOf(e)===t})),O={id:m,reference:e,popper:ec(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){0;if(O.state.isDestroyed)return;N("onBeforeUpdate",[O,t]),q();var n=O.props,r=yc(e,Object.assign({},n,Qi(t),{ignoreAttributes:!0}));O.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),b=Yi(W,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Xi(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");M(),I(),w&&w(n,r);O.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[O,t])},setContent:function(e){O.setProps({content:e})},show:function(){0;var e=O.state.isVisible,t=O.state.isDestroyed,n=!O.state.isEnabled,r=lc.isTouch&&!O.props.touch,o=qi(O.props.duration,0,mc.duration);if(e||t||n||r)return;if(C().hasAttribute("disabled"))return;if(N("onShow",[O],!1),!1===O.props.onShow(O))return;O.state.isVisible=!0,S()&&(v.style.visibility="visible");I(),B(),O.state.isMounted||(v.style.transition="none");if(S()){var i=k(),c=i.box,a=i.content;ic([c,a],0)}u=function(){var e;if(O.state.isVisible&&!h){if(h=!0,v.offsetHeight,v.style.transition=O.props.moveTransition,S()&&O.props.animation){var t=k(),n=t.box,r=t.content;ic([n,r],o),cc([n,r],"visible")}P(),M(),Ji(Cc,O),null==(e=O.popperInstance)||e.forceUpdate(),N("onMount",[O]),O.props.animation&&S()&&function(e,t){U(e,t)}(o,(function(){O.state.isShown=!0,N("onShown",[O])}))}},function(){var e,t=O.props.appendTo,n=C();e=O.props.interactive&&t===Vi||"parent"===t?n.parentNode:Wi(t,[n]);e.contains(v)||e.appendChild(v);O.state.isMounted=!0,Z(),!1}()},hide:function(){0;var e=!O.state.isVisible,t=O.state.isDestroyed,n=!O.state.isEnabled,r=qi(O.props.duration,1,mc.duration);if(e||t||n)return;if(N("onHide",[O],!1),!1===O.props.onHide(O))return;O.state.isVisible=!1,O.state.isShown=!1,h=!1,f=!1,S()&&(v.style.visibility="hidden");if(D(),G(),I(!0),S()){var o=k(),i=o.box,c=o.content;O.props.animation&&(ic([i,c],r),cc([i,c],"hidden"))}P(),M(),O.props.animation?S()&&function(e,t){U(e,(function(){!O.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()}))}(r,O.unmount):O.unmount()},hideWithInteractivity:function(e){0;T().addEventListener("mousemove",b),Ji(Sc,b),b(e)},enable:function(){O.state.isEnabled=!0},disable:function(){O.hide(),O.state.isEnabled=!1},unmount:function(){0;O.state.isVisible&&O.hide();if(!O.state.isMounted)return;K(),Q().forEach((function(e){e._tippy.unmount()})),v.parentNode&&v.parentNode.removeChild(v);Cc=Cc.filter((function(e){return e!==O})),O.state.isMounted=!1,N("onHidden",[O])},destroy:function(){0;if(O.state.isDestroyed)return;O.clearDelayTimeouts(),O.unmount(),q(),delete e._tippy,O.state.isDestroyed=!0,N("onDestroy",[O])}};if(!l.render)return O;var y=l.render(O),v=y.popper,w=y.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+O.id,O.popper=v,e._tippy=O,v._tippy=O;var j=g.map((function(e){return e.fn(O)})),_=e.hasAttribute("aria-expanded");return V(),M(),I(),N("onCreate",[O]),l.showOnCreate&&ee(),v.addEventListener("mouseenter",(function(){O.props.interactive&&O.state.isVisible&&O.clearDelayTimeouts()})),v.addEventListener("mouseleave",(function(){O.props.interactive&&O.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",b)})),O;function E(){var e=O.props.touch;return Array.isArray(e)?e:[e,0]}function x(){return"hold"===E()[0]}function S(){var e;return!(null==(e=O.props.render)||!e.$$tippy)}function C(){return a||e}function T(){var e=C().parentNode;return e?uc(e):document}function k(){return _c(v)}function A(e){return O.state.isMounted&&!O.state.isVisible||lc.isTouch||i&&"focus"===i.type?0:qi(O.props.delay,e?0:1,mc.delay)}function I(e){void 0===e&&(e=!1),v.style.pointerEvents=O.props.interactive&&!e?"":"none",v.style.zIndex=""+O.props.zIndex}function N(e,t,n){var r;(void 0===n&&(n=!0),j.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=O.props)[e].apply(r,t)}function P(){var t=O.props.aria;if(t.content){var n="aria-"+t.content,r=v.id;Xi(O.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(O.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function M(){!_&&O.props.aria.expanded&&Xi(O.props.triggerTarget||e).forEach((function(e){O.props.interactive?e.setAttribute("aria-expanded",O.state.isVisible&&e===C()?"true":"false"):e.removeAttribute("aria-expanded")}))}function D(){T().removeEventListener("mousemove",b),Sc=Sc.filter((function(e){return e!==b}))}function R(t){if(!lc.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!O.props.interactive||!sc(v,n)){if(Xi(O.props.triggerTarget||e).some((function(e){return sc(e,n)}))){if(lc.isTouch)return;if(O.state.isVisible&&O.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[O,t]);!0===O.props.hideOnClick&&(O.clearDelayTimeouts(),O.hide(),d=!0,setTimeout((function(){d=!1})),O.state.isMounted||G())}}}function F(){p=!0}function L(){p=!1}function B(){var e=T();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Hi),e.addEventListener("touchstart",L,Hi),e.addEventListener("touchmove",F,Hi)}function G(){var e=T();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Hi),e.removeEventListener("touchstart",L,Hi),e.removeEventListener("touchmove",F,Hi)}function U(e,t){var n=k().box;function r(e){e.target===n&&(ac(n,"remove",r),t())}if(0===e)return t();ac(n,"remove",c),ac(n,"add",r),c=r}function H(t,n,r){void 0===r&&(r=!1),Xi(O.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),$.push({node:e,eventType:t,handler:n,options:r})}))}function V(){var e;x()&&(H("touchstart",z,{passive:!0}),H("touchend",Y,{passive:!0})),(e=O.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,z),e){case"mouseenter":H("mouseleave",Y);break;case"focus":H($c?"focusout":"blur",X);break;case"focusin":H("focusout",X)}}))}function q(){$.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),$=[]}function z(e){var t,n=!1;if(O.state.isEnabled&&!J(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,a=e.currentTarget,M(),!O.state.isVisible&&nc(e)&&Sc.forEach((function(t){return t(e)})),"click"===e.type&&(O.props.trigger.indexOf("mouseenter")<0||f)&&!1!==O.props.hideOnClick&&O.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function W(e){var t=e.target,n=C().contains(t)||v.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,c=Zi(o.placement),u=o.modifiersData.offset;if(!u)return!0;var a="bottom"===c?u.top.y:0,s="top"===c?u.bottom.y:0,l="right"===c?u.left.x:0,f="left"===c?u.right.x:0,d=t.top-r+a>i,p=r-t.bottom-s>i,h=t.left-n+l>i,$=n-t.right-f>i;return d||p||h||$}))}(Q().concat(v).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean),e)&&(D(),te(e))}function Y(e){J(e)||O.props.trigger.indexOf("click")>=0&&f||(O.props.interactive?O.hideWithInteractivity(e):te(e))}function X(e){O.props.trigger.indexOf("focusin")<0&&e.target!==C()||O.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function J(e){return!!lc.isTouch&&x()!==e.type.indexOf("touch")>=0}function Z(){K();var t=O.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,c=t.moveTransition,a=S()?_c(v).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||C()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!c}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=k().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];S()&&a&&l.push({name:"arrow",options:{element:a,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),O.popperInstance=Ui(s,v,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function K(){O.popperInstance&&(O.popperInstance.destroy(),O.popperInstance=null)}function Q(){return Ki(v.querySelectorAll("[data-tippy-root]"))}function ee(e){O.clearDelayTimeouts(),e&&N("onTrigger",[O,e]),B();var t=A(!0),r=E(),o=r[0],i=r[1];lc.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){O.show()}),t):O.show()}function te(e){if(O.clearDelayTimeouts(),N("onUntrigger",[O,e]),O.state.isVisible){if(!(O.props.trigger.indexOf("mouseenter")>=0&&O.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=A(!1);t?r=setTimeout((function(){O.state.isVisible&&O.hide()}),t):o=requestAnimationFrame((function(){O.hide()}))}}else G()}}function kc(e,t){void 0===t&&(t={});var n=mc.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",dc,Hi),window.addEventListener("blur",hc);var r=Object.assign({},t,{plugins:n}),o=oc(e).reduce((function(e,t){var n=t&&Tc(t,r);return n&&e.push(n),e}),[]);return tc(e)?o[0]:o}kc.defaultProps=mc,kc.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mc[t]=e[t]}))},kc.currentInput=lc;Object.assign({},Si,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});kc.setDefaultProps({render:Ec});var Ac=kc;function Ic(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}var Nc="undefined"!=typeof window&&"undefined"!=typeof document;function Pc(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Mc(){return Nc&&document.createElement("div")}function Dc(e){var t=[];return e.forEach((function(e){t.find((function(t){return function e(t,n){if(t===n)return!0;if("object"==typeof t&&null!=t&&"object"==typeof n&&null!=n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t){if(!n.hasOwnProperty(r))return!1;if(!e(t[r],n[r]))return!1}return!0}return!1}(e,t)}))||t.push(e)})),t}function Rc(e,t){var n,r;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Dc([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]))})})}var Fc=Nc?be.useLayoutEffect:be.useEffect;function Lc(e){var t=Object(be.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Bc(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Gc={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Bc(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Bc(t,"remove",e.props.className)},onAfterUpdate:r}}};function Uc(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,c=t.render,u=t.reference,a=t.disabled,s=void 0!==a&&a,l=t.ignoreAttributes,f=void 0===l||l,d=(t.__source,t.__self,Ic(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),p=void 0!==o,h=void 0!==i,$=Object(be.useState)(!1),b=$[0],m=$[1],g=Object(be.useState)({}),O=g[0],y=g[1],v=Object(be.useState)(),w=v[0],j=v[1],_=Lc((function(){return{container:Mc(),renders:1}})),E=Object.assign({ignoreAttributes:f},d,{content:_.container});p&&(E.trigger="manual",E.hideOnClick=!1),h&&(s=!0);var x=E,S=E.plugins||[];c&&(x=Object.assign({},E,{plugins:h&&null!=i.data?[].concat(S,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,j(n.content)}}}}]):S,render:function(){return{popper:_.container}}}));var C=[u].concat(n?[n.type]:[]);return Fc((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||_.ref||Mc(),Object.assign({},x,{plugins:[Gc].concat(E.plugins||[])}));return _.instance=n,s&&n.disable(),o&&n.show(),h&&i.hook({instance:n,content:r,props:x,setSingletonContent:j}),m(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),C),Fc((function(){var e;if(1!==_.renders){var t=_.instance;t.setProps(Rc(t.props,x)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),p&&(o?t.show():t.hide()),h&&i.hook({instance:t,content:r,props:x,setSingletonContent:j})}else _.renders++})),Fc((function(){var e;if(c){var t=_.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||y({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(C)),be.default.createElement(be.default.Fragment,null,n?Object(be.cloneElement)(n,{ref:function(e){_.ref=e,Pc(n.ref,e)}}):null,b&&Object(be.createPortal)(c?c(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),w,_.instance):r,_.container))}}var Hc=function(e,t){return Object(be.forwardRef)((function(n,r){var o=n.children,i=Ic(n,["children"]);return be.default.createElement(e,Object.assign({},t,i),o?Object(be.cloneElement)(o,{ref:function(e){Pc(r,e),Pc(o.ref,e)}}):null)}))},Vc=Hc(Uc(Ac));class qc extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Content"]}}var zc=n(29);function Wc(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 Yc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach((function(t){Jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xc(e){return(Xc="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 Jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zc(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 Kc(e){return function(e){if(Array.isArray(e))return Qc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eu(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}var tu=["style"];function nu(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=eu(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 ru=!1;try{ru=!0}catch(e){}function ou(e){return e&&"object"===Xc(e)&&e.prefix&&e.iconName&&e.icon?e:zc.b.icon?zc.b.icon(e):null===e?null:e&&"object"===Xc(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 iu(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Jc({},e,t):{}}var cu=["forwardedRef"];function uu(e){var t=e.forwardedRef,n=Zc(e,cu),r=n.icon,o=n.mask,i=n.symbol,c=n.className,u=n.title,a=n.titleId,s=n.maskId,l=ou(r),f=iu("classes",[].concat(Kc(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,c=e.shake,u=e.flash,a=e.spin,s=e.spinPulse,l=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,h=e.border,$=e.listItem,b=e.flip,m=e.size,g=e.rotation,O=e.pull,y=(Jc(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":c,"fa-flash":u,"fa-spin":a,"fa-spin-reverse":l,"fa-spin-pulse":s,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":h,"fa-li":$,"fa-flip-horizontal":"horizontal"===b||"both"===b,"fa-flip-vertical":"vertical"===b||"both"===b},"fa-".concat(m),null!=m),Jc(t,"fa-rotate-".concat(g),null!=g&&0!==g),Jc(t,"fa-pull-".concat(O),null!=O),Jc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(y).map((function(e){return y[e]?e:null})).filter((function(e){return e}))}(n)),Kc(c.split(" ")))),d=iu("transform","string"==typeof n.transform?zc.b.transform(n.transform):n.transform),p=iu("mask",ou(o)),h=Object(zc.a)(l,Yc(Yc(Yc(Yc({},f),d),p),{},{symbol:i,title:u,titleId:a,maskId:s}));if(!h)return function(){var e;!ru&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var $=h.abstract,b={ref:t};return Object.keys(n).forEach((function(e){uu.defaultProps.hasOwnProperty(e)||(b[e]=n[e])})),au($[0],b)}uu.displayName="FontAwesomeIcon",uu.propTypes={beat:we.a.bool,border:we.a.bool,bounce:we.a.bool,className:we.a.string,fade:we.a.bool,flash:we.a.bool,mask:we.a.oneOfType([we.a.object,we.a.array,we.a.string]),maskId:we.a.string,fixedWidth:we.a.bool,inverse:we.a.bool,flip:we.a.oneOf(["horizontal","vertical","both"]),icon:we.a.oneOfType([we.a.object,we.a.array,we.a.string]),listItem:we.a.bool,pull:we.a.oneOf(["right","left"]),pulse:we.a.bool,rotation:we.a.oneOf([0,90,180,270]),shake:we.a.bool,size:we.a.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:we.a.bool,spinPulse:we.a.bool,spinReverse:we.a.bool,symbol:we.a.oneOfType([we.a.bool,we.a.string]),title:we.a.string,titleId:we.a.string,transform:we.a.oneOfType([we.a.string,we.a.object]),swapOpacity:we.a.bool},uu.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var au=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=nu(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[eu(t)]=r}return e}),{attrs:{}}),c=r.style,u=void 0===c?{}:c,a=Zc(r,tu);return i.attrs.style=Yc(Yc({},i.attrs.style),u),t.apply(void 0,[n.tag,Yc(Yc({},i.attrs),a)].concat(Kc(o)))}.bind(null,be.default.createElement),su={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]};
12
12
  /*!
13
13
  * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
14
14
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
15
- */const fu=(du={icon:lu},pu=[],me.createElement(au,du,...pu));var du,pu;function hu(e){return function(e,t){const n=pe(e,1);return me.createElement(qc,n,...t)}([new zc(0,e.content)],[Object(me.createElement)("span",{children:We.a.Children.toArray([fu])})])}class $u extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class bu extends o.c{constructor(e){super(),this.Selected=e}}function mu(e,t){return Object(l.h)(t=>e===t,t.Selected)}function gu(e,t,n){const r=function(e,t){const n=e.fields[0];return mu(n,t)?new bu(Object(l.i)(e=>n!==e,t.Selected)):new bu(Object(l.b)(Object(l.t)(n),t.Selected))}(t,n);return e(r.Selected),[r,Object(so.g)()]}function Ou(e){const t=zr((n=e.InitialValue,[new bu(n),Object(so.g)()]),(t,n)=>gu(e.OnUpdate,t,n),[]);var n;const o=Object(d.z)(Object(d.h)(()=>Object(d.d)(e=>{let n;const o=e[0];return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-check","fl-checkbox-container"])],(n=[Object(me.createElement)("input",{className:"form-check-input",type:"checkbox",id:o,checked:mu(o,t[0])}),Object(me.createElement)("label",{className:"form-check-label",for:o,children:e[1]})],["children",We.a.Children.toArray(Array.from(n))]),["onChange",e=>{e.target.checked;t[1](new $u(0,o))}]]))))},e.ValueLabelPairs)));return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(o))})}function yu(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatusRadioButtonGroup.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!Object(r.n)(t,new J(1))}function vu(){return Object(me.createElement)("hr",{className:Object(p.f)(" ",["mt-4","mb-4"])})}const wu=(()=>{const e=Object(l.p)([Object(me.createElement)("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently,\n or are studying for a period in excess of 6 months."]}),Object(me.createElement)("p",{children:["Select Working holiday maker if you are in Australia on a working holiday visa (subclass 417)\n or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),Object(me.createElement)("span",{children:["If none of the above applies, select Foreign resident unless you are in receipt of an Australian Government pension or allowance.\n Foreign resident tax rates are different."]})]);return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(e))})})(),ju=(()=>{const e=Object(l.p)([Object(me.createElement)("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job.\n It will mean that the first $18,200 of your annual income is not taxed. This is called the tax-free threshold.\n If you answer no then you must be claiming it from another employer."]}),Object(me.createElement)("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),Object(me.createElement)("span",{children:["Answer no if none of the above applies or you are a working holiday maker."]})]);return Object(me.createElement)("div",{children:We.a.Children.toArray(Array.from(e))})})();function _u(e){const t=e.backendUrl,n=e.accessToken,i=zr([new Ao(new J(0),void 0,Yr(),Xr(void 0),Xr(new Kn(0)),io(new no(0)),Object(l.g)(),Xr(new Qn(0))),Object(so.g)()],Mo,[]),f=i[0],h=i[1];Object(c.i)(Z(()=>Fr(n,t),e=>{h(new ko(6,e))}),[]);const $=Object(c.d)(new J(0)),b=$[0],m=Z(()=>function(e,t,n,r){return ce(e=>{r(new Ye(1,"There was an error saving your tax declaration. Please try saving again."))},ie(e=>{r(new Ye(0,"Your tax declaration has been saved."))},Lr(e,t,n)))}(f,n,t,e=>{h(new ko(7,e))}),e=>{let t,n;switch($[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,t){case 0:Object(u.i)(a.g.Delay(()=>a.g.Bind(Object(u.h)(400),()=>(function(){let e;const t=No();0===t.tag&&(0===t.fields[0].tag?Object(d.o)(e=>{window.parent.location.href=e},Object(s.g)(Object(Po.b)(new Po.a(0)))):1===t.fields[0].tag?Object(d.o)(e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)},Object(s.g)(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),a.g.Zero())))),h(new ko(9,n))}});switch(f.PreExistingTfnDec.tag){case 0:case 1:return Object(me.createElement)("div",{children:["Please wait..."]});default:{const e=Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(me.createElement)("style",{children:['.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}']})),Object(d.h)(()=>{let e,t;return Object(d.a)((e=f.CurrentAlert,null==e?Object(d.v)(null):(t=e,Object(d.v)(Object(me.createElement)(Ze,{alert:t,hideAlert:()=>{h(new ko(8))}})))),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(me.createElement)("h3",{className:"mb-4",children:"Tax Declaration"})),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(me.createElement)(To,{InitialValue:f.TfnInformation.Value,OnUpdate:e=>{h(new ko(0,e))}})),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(me.createElement)(Go,{InitialValue:f.PreviousSurname.Value,OnUpdate:e=>{h(new ko(1,e))}})),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(to("Are you an Australian resident for tax purposes or a working holiday maker?",Object(me.createElement)(hu,{content:wu}))),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(me.createElement)(ho,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Kn(0),"Australian resident for tax purposes"],[new Kn(1),"Foreign resident"],[new Kn(2),"Working holiday maker"]])),{InitialValue:Object(s.d)(o.f,f.ResidencyStatusRadioButtonGroup.Value),Name:"ResidencyStatus",OnUpdate:e=>{h(new ko(2,e))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(to("Would you like to claim the tax-free threshold from this payer?",Object(me.createElement)(hu,{content:ju}))),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(me.createElement)(ao,{Disable:(e=f.ResidencyStatusRadioButtonGroup.Value,null!=e&&2===e.tag?new no(0):void 0),Dispatch:e=>{h(new ko(3,e))},State:f.ClaimTaxFreeThreshold})),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(eo("Do you have any of the following outstanding debts or loans?")),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(me.createElement)(Ou,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Zn(0),"Higher Education Loan Program (HELP)"],[new Zn(1),"VET Student Loan (VSL)"],[new Zn(2),"Financial Supplement (FS)"],[new Zn(3),"Student Start-up Loan (SSL)"],[new Zn(4),"Trade Support Loan (TSL)"]])),{InitialValue:Object(l.o)(o.f,f.DebtSupportCheckboxGroup),OnUpdate:e=>{h(new ko(4,Object(l.c)(Kr,e)))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(eo("On what basis are you paid?")),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(me.createElement)(ho,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Qn(0),"Full-time"],[new Qn(1),"Part-time"],[new Qn(2),"Labour Hire"],[new Qn(3),"Superannuation or annuity income stream"],[new Qn(4),"Casual"]])),{InitialValue:Object(s.d)(o.f,f.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{h(new ko(5,e))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(vu()),Object(d.h)(()=>{let e,t,n;return Object(d.v)(Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["row","justify-content-end"])],(e=[Object(me.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-12","col-sm-auto"])],(t=[Object(me.createElement)("button",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["btn","is-primary","btn-block"])],["type","button"],["disabled",!yu(f,b)],["onClick",e=>{yu(f,b)&&m()}],(n=[Object(me.createElement)("span",{className:Object(p.f)(" ",Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)("spinner-grow"),Object(d.h)(()=>Object(d.a)(Object(d.v)("spinner-grow-sm"),Object(d.h)(()=>Object(d.a)(Object(d.v)("mr-2"),Object(d.h)(()=>Object(r.n)(b,new J(1))?Object(d.i)():Object(d.v)("d-none"))))))))))}),Object(me.createElement)("span",{children:["Save and continue"]})],["children",We.a.Children.toArray(Array.from(n))])])))],["children",We.a.Children.toArray(Array.from(t))])])))],["children",We.a.Children.toArray(Array.from(e))])]))))}))))}))))))}))))))}))))))}))))))))))))))}))));return Object(me.createElement)("form",{children:We.a.Children.toArray(Array.from(e))})}}}},,,function(e,t,n){"use strict";var r=n(43);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(12));var r=u(n(45)),o=u(n(48)),i=u(n(9)),c=u(n(34));n(36);function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=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 s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(e,r),o&&l(e,o),i&&l(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=a({},this.props);return delete e.classNames,i.default.createElement(c.default,a({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=n(46);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(47));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;c(n(12));var r=c(n(9)),o=n(9),i=c(n(38));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n;function c(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=c.prototype;return u.handleLifecycle=function(e,t,n){var i,c=this.props.children,u=r.default.Children.toArray(c)[t];u.props[e]&&(i=u.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},u.render=function(){var e=this.props,t=e.children,n=e.in,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,["children","in"]),c=r.default.Children.toArray(t),u=c[0],a=c[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},c}(r.default.Component);u.propTypes={};var a=u;t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:c(n,"appear",e),enter:c(n,"enter",e),exit:c(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var u=o(e.children),a=i(t,u);return Object.keys(a).forEach((function(o){var i=a[o];if((0,r.isValidElement)(i)){var s=o in t,l=o in u,f=t[o],d=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!d?l||!s||d?l&&s&&(0,r.isValidElement)(f)&&(a[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:c(i,"exit",e),enter:c(i,"enter",e)})):a[o]=(0,r.cloneElement)(i,{in:!1}):a[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:c(i,"exit",e),enter:c(i,"enter",e)})}})),a};var r=n(9);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var c in e)c in t?i.length&&(o[c]=i,i=[]):i.push(c);var u={};for(var a in t){if(o[a])for(r=0;r<o[a].length;r++){var s=o[a][r];u[o[a][r]]=n(s)}u[a]=n(a)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}},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(52),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(32))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,c,u,a=1,s={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(c="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(c)&&h(+t.data.slice(c.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),r=function(t){e.postMessage(c+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 s[a]=o,r(a),a++},d.clearImmediate=p}function p(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=s[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{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(32),n(53))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function u(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:c}catch(e){r=c}}();var a,s=[],l=!1,f=-1;function d(){l&&a&&(l=!1,a.length?s=a.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(a=s,s=[];++f<t;)a&&a[f].run();f=-1,t=s.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function $(){}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];s.push(new h(e,t)),1!==s.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=$,o.addListener=$,o.once=$,o.off=$,o.removeListener=$,o.removeAllListeners=$,o.emit=$,o.prependListener=$,o.prependOnceListener=$,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";n.r(t),n.d(t,"TaxComponent",(function(){return p}));var r=n(9),o=n(39),i=n(13);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return Object(i.c)(t,n)}function a(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Object(i.g)(u,c({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},c=0,u=t.attributes,a=t.childNodes;for(c=u.length;c--;)"slot"!==u[c].name&&(o[u[c].name]=u[c].value,o[s(u[c].name)]=u[c].value);for(c=a.length;c--;){var l=e(a[c],null),f=a[c].slot;f?o[f]=Object(i.g)(d,{name:f},l):r[c]=l}var p=n?Object(i.g)(d,null,r):r;return Object(i.g)(n||t.nodeName.toLowerCase(),o,p)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?i.h:i.j)(this._vdom,this._root)}function s(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function l(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[s(e)]=n,this._vdom=Object(i.c)(this._vdom,r),Object(i.j)(this._vdom,this._root)}}function f(){Object(i.j)(this._vdom=null,this._root)}function d(e,t){var n=this;return Object(i.g)("slot",c({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function p(e){return Object(r.createElement)(o.a,{accessToken:e.accessToken,backendUrl:e.backendUrl})}(function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=a,o.prototype.attributeChangedCallback=l,o.prototype.disconnectedCallback=f,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)})(e=>Object(r.createElement)(p,e),"tax-component")}]);
15
+ */const lu=(fu={icon:su},du=[],be.createElement(uu,fu,...du));var fu,du;function pu(e){return function(e,t){const n=de(e,1);return be.createElement(Vc,n,...t)}([new qc(0,e.content)],[Object(be.createElement)("span",{children:ze.a.Children.toArray([lu])})])}class hu extends o.d{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class $u extends o.c{constructor(e){super(),this.Selected=e}}function bu(e,t){return Object(l.h)(t=>e===t,t.Selected)}function mu(e,t,n){const r=function(e,t){const n=e.fields[0];return bu(n,t)?new $u(Object(l.i)(e=>n!==e,t.Selected)):new $u(Object(l.b)(Object(l.t)(n),t.Selected))}(t,n);return e(r.Selected),[r,Object(ao.g)()]}function gu(e){const t=qr((n=e.InitialValue,[new $u(n),Object(ao.g)()]),(t,n)=>mu(e.OnUpdate,t,n),[]);var n;const o=Object(d.z)(Object(d.h)(()=>Object(d.d)(e=>{let n;const o=e[0];return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["form-check","fl-checkbox-container"])],(n=[Object(be.createElement)("input",{className:"form-check-input",type:"checkbox",id:o,checked:bu(o,t[0])}),Object(be.createElement)("label",{className:"form-check-label",for:o,children:e[1]})],["children",ze.a.Children.toArray(Array.from(n))]),["onChange",e=>{e.target.checked;t[1](new hu(0,o))}]]))))},e.ValueLabelPairs)));return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(o))})}function Ou(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatusRadioButtonGroup.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!Object(r.n)(t,new X(1))}function yu(){return Object(be.createElement)("hr",{className:Object(p.f)(" ",["mt-4","mb-4"])})}const vu=(()=>{const e=Object(l.p)([Object(be.createElement)("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently,\n or are studying for a period in excess of 6 months."]}),Object(be.createElement)("p",{children:["Select Working holiday maker if you are in Australia on a working holiday visa (subclass 417)\n or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),Object(be.createElement)("span",{children:["If none of the above applies, select Foreign resident unless you are in receipt of an Australian Government pension or allowance.\n Foreign resident tax rates are different."]})]);return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(e))})})(),wu=(()=>{const e=Object(l.p)([Object(be.createElement)("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job.\n It will mean that the first $18,200 of your annual income is not taxed. This is called the tax-free threshold.\n If you answer no then you must be claiming it from another employer."]}),Object(be.createElement)("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),Object(be.createElement)("span",{children:["Answer no if none of the above applies or you are a working holiday maker."]})]);return Object(be.createElement)("div",{children:ze.a.Children.toArray(Array.from(e))})})();function ju(e){const t=e.backendUrl,n=e.accessToken,i=qr([new ko(new X(0),void 0,Wr(),Yr(void 0),Yr(new Zn(0)),oo(new to(0)),Object(l.g)(),Yr(new Kn(0))),Object(ao.g)()],Po,[]),f=i[0],h=i[1];Object(c.i)(J(()=>Rr(n,t),e=>{h(new To(6,e))}),[]);const $=Object(c.d)(new X(0)),b=$[0],m=J(()=>function(e,t,n,r){return ie(e=>{r(new We(1,"There was an error saving your tax declaration. Please try saving again."))},oe(e=>{r(new We(0,"Your tax declaration has been saved."))},Fr(e,t,n)))}(f,n,t,e=>{h(new To(7,e))}),e=>{let t,n;switch($[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,t){case 0:Object(u.i)(a.g.Delay(()=>a.g.Bind(Object(u.h)(400),()=>(function(){let e;const t=Io();0===t.tag&&(0===t.fields[0].tag?Object(d.o)(e=>{window.parent.location.href=e},Object(s.g)(Object(No.b)(new No.a(0)))):1===t.fields[0].tag?Object(d.o)(e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)},Object(s.g)(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),a.g.Zero())))),h(new To(9,n))}});switch(f.PreExistingTfnDec.tag){case 0:case 1:return Object(be.createElement)("div",{children:["Please wait..."]});default:{const e=Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(be.createElement)("style",{children:['.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}']})),Object(d.h)(()=>{let e,t;return Object(d.a)((e=f.CurrentAlert,null==e?Object(d.v)(null):(t=e,Object(d.v)(Object(be.createElement)(Je,{alert:t,hideAlert:()=>{h(new To(8))}})))),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(be.createElement)("h3",{className:"mb-4",children:"Tax Declaration"})),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(be.createElement)(Co,{InitialValue:f.TfnInformation.Value,OnUpdate:e=>{h(new To(0,e))}})),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(Object(be.createElement)(Bo,{InitialValue:f.PreviousSurname.Value,OnUpdate:e=>{h(new To(1,e))}})),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(eo("Are you an Australian resident for tax purposes or a working holiday maker?",Object(be.createElement)(pu,{content:vu}))),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(be.createElement)(po,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Zn(0),"Australian resident for tax purposes"],[new Zn(1),"Foreign resident"],[new Zn(2),"Working holiday maker"]])),{InitialValue:Object(s.d)(o.f,f.ResidencyStatusRadioButtonGroup.Value),Name:"ResidencyStatus",OnUpdate:e=>{h(new To(2,e))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(eo("Would you like to claim the tax-free threshold from this payer?",Object(be.createElement)(pu,{content:wu}))),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(be.createElement)(uo,{Disable:(e=f.ResidencyStatusRadioButtonGroup.Value,null!=e&&2===e.tag?new to(0):void 0),Dispatch:e=>{h(new To(3,e))},State:f.ClaimTaxFreeThreshold})),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(Qr("Do you have any of the following outstanding debts or loans?")),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(be.createElement)(gu,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Jn(0),"Higher Education Loan Program (HELP)"],[new Jn(1),"VET Student Loan (VSL)"],[new Jn(2),"Financial Supplement (FS)"],[new Jn(3),"Student Start-up Loan (SSL)"],[new Jn(4),"Trade Support Loan (TSL)"]])),{InitialValue:Object(l.o)(o.f,f.DebtSupportCheckboxGroup),OnUpdate:e=>{h(new To(4,Object(l.c)(Zr,e)))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>Object(d.a)(Object(d.v)(Qr("On what basis are you paid?")),Object(d.h)(()=>{let e;return Object(d.a)(Object(d.v)(Object(be.createElement)(po,(e=Object(l.o)(e=>[Object(o.f)(e[0]),e[1]],Object(l.p)([[new Kn(0),"Full-time"],[new Kn(1),"Part-time"],[new Kn(2),"Labour Hire"],[new Kn(3),"Superannuation or annuity income stream"],[new Kn(4),"Casual"]])),{InitialValue:Object(s.d)(o.f,f.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{h(new To(5,e))},ValueLabelPairs:e}))),Object(d.h)(()=>Object(d.a)(Object(d.v)(yu()),Object(d.h)(()=>{let e,t,n;return Object(d.v)(Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["row","justify-content-end"])],(e=[Object(be.createElement)("div",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["col-12","col-sm-auto"])],(t=[Object(be.createElement)("button",Object(r.h)(Object(l.p)([["className",Object(p.f)(" ",["btn","is-primary","btn-block"])],["type","button"],["disabled",!Ou(f,b)],["onClick",e=>{Ou(f,b)&&m()}],(n=[Object(be.createElement)("span",{className:Object(p.f)(" ",Object(d.z)(Object(d.h)(()=>Object(d.a)(Object(d.v)("spinner-grow"),Object(d.h)(()=>Object(d.a)(Object(d.v)("spinner-grow-sm"),Object(d.h)(()=>Object(d.a)(Object(d.v)("mr-2"),Object(d.h)(()=>Object(r.n)(b,new X(1))?Object(d.i)():Object(d.v)("d-none"))))))))))}),Object(be.createElement)("span",{children:["Save and continue"]})],["children",ze.a.Children.toArray(Array.from(n))])])))],["children",ze.a.Children.toArray(Array.from(t))])])))],["children",ze.a.Children.toArray(Array.from(e))])]))))}))))}))))))}))))))}))))))}))))))))))))))}))));return Object(be.createElement)("form",{children:ze.a.Children.toArray(Array.from(e))})}}}},,,function(e,t,n){"use strict";var r=n(43);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,c){if(c!==r){var u=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 u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(12));var r=u(n(45)),o=u(n(48)),i=u(n(9)),c=u(n(34));n(36);function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=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 s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(e,r),o&&l(e,o),i&&l(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=a({},this.props);return delete e.classNames,i.default.createElement(c.default,a({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=n(46);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(47));e.exports=t.default},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;c(n(12));var r=c(n(9)),o=n(9),i=c(n(38));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n;function c(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=c.prototype;return u.handleLifecycle=function(e,t,n){var i,c=this.props.children,u=r.default.Children.toArray(c)[t];u.props[e]&&(i=u.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},u.render=function(){var e=this.props,t=e.children,n=e.in,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,["children","in"]),c=r.default.Children.toArray(t),u=c[0],a=c[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},c}(r.default.Component);u.propTypes={};var a=u;t.default=a,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:c(n,"appear",e),enter:c(n,"enter",e),exit:c(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var u=o(e.children),a=i(t,u);return Object.keys(a).forEach((function(o){var i=a[o];if((0,r.isValidElement)(i)){var s=o in t,l=o in u,f=t[o],d=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!d?l||!s||d?l&&s&&(0,r.isValidElement)(f)&&(a[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:c(i,"exit",e),enter:c(i,"enter",e)})):a[o]=(0,r.cloneElement)(i,{in:!1}):a[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:c(i,"exit",e),enter:c(i,"enter",e)})}})),a};var r=n(9);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var c in e)c in t?i.length&&(o[c]=i,i=[]):i.push(c);var u={};for(var a in t){if(o[a])for(r=0;r<o[a].length;r++){var s=o[a][r];u[o[a][r]]=n(s)}u[a]=n(a)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}},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(52),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(32))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,c,u,a=1,s={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(c="setImmediate$"+Math.random()+"$",u=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(c)&&h(+t.data.slice(c.length))},e.addEventListener?e.addEventListener("message",u,!1):e.attachEvent("onmessage",u),r=function(t){e.postMessage(c+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 s[a]=o,r(a),a++},d.clearImmediate=p}function p(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=s[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{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(32),n(53))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function u(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:c}catch(e){r=c}}();var a,s=[],l=!1,f=-1;function d(){l&&a&&(l=!1,a.length?s=a.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=s.length;t;){for(a=s,s=[];++f<t;)a&&a[f].run();f=-1,t=s.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===c||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function $(){}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];s.push(new h(e,t)),1!==s.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=$,o.addListener=$,o.once=$,o.off=$,o.removeListener=$,o.removeAllListeners=$,o.emit=$,o.prependListener=$,o.prependOnceListener=$,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";n.r(t),n.d(t,"TaxComponent",(function(){return p}));var r=n(9),o=n(39),i=n(13);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return Object(i.c)(t,n)}function a(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Object(i.g)(u,c({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},c=0,u=t.attributes,a=t.childNodes;for(c=u.length;c--;)"slot"!==u[c].name&&(o[u[c].name]=u[c].value,o[s(u[c].name)]=u[c].value);for(c=a.length;c--;){var l=e(a[c],null),f=a[c].slot;f?o[f]=Object(i.g)(d,{name:f},l):r[c]=l}var p=n?Object(i.g)(d,null,r):r;return Object(i.g)(n||t.nodeName.toLowerCase(),o,p)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?i.h:i.j)(this._vdom,this._root)}function s(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function l(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[s(e)]=n,this._vdom=Object(i.c)(this._vdom,r),Object(i.j)(this._vdom,this._root)}}function f(){Object(i.j)(this._vdom=null,this._root)}function d(e,t){var n=this;return Object(i.g)("slot",c({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function p(e){return Object(r.createElement)(o.a,{accessToken:e.accessToken,backendUrl:e.backendUrl})}(function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=a,o.prototype.attributeChangedCallback=l,o.prototype.disconnectedCallback=f,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)})(e=>Object(r.createElement)(p,e),"tax-component")}]);