/*! ATOGOV - SPA 2025-03-18, Copyright (c) 2025 Australian Taxation Office */ !function(bt){var e,gt=this||(0,eval)("this"),mt=gt.document,vt=gt.navigator,yt=gt.jQuery,wt=gt.JSON;e=function(L,R){function n(e,t){return(null===e||typeof e in ae)&&e===t}function I(e,t){var n;return function(){n=n||x.a.setTimeout(function(){n=bt,e()},t)}}function V(e,t){var n;return function(){clearTimeout(n),n=x.a.setTimeout(e,t)}}function F(e,t){t&&t!==m?"beforeChange"===t?this.Kb(e):this.Ha(e,t):this.Lb(e)}function q(e,t){null!==t&&t.k&&t.k()}function P(e,t){var n=this.Hc,a=n[_];a.R||(this.lb&&this.Ma[t]?(n.Pb(t,e,this.Ma[t]),this.Ma[t]=null,--this.lb):a.r[t]||n.Pb(t,e,a.s?{ia:e}:n.uc(e)))}function e(e,c,s,l){x.d[e]={init:function(a,r,e,t,o){var i,u;return x.m(function(){var e=x.a.c(r()),t=!s!=!e,n=!u;(n||c||t!==i)&&(n&&x.va.Aa()&&(u=x.a.ua(x.f.childNodes(a),!0)),t?(n||x.f.da(a,x.a.ua(u)),x.eb(l?l(o,e):o,a)):x.f.xa(a),i=t)},null,{i:a}),{controlsDescendantBindings:!0}}},x.h.ta[e]=!1,x.f.Z[e]=!0}var t,H,a,r,J,i,o,U,u,z,W,Q,c,s,G,l,f,d,p,h,x=void 0!==L?L:{};function Y(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}function b(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function K(e,t){return e.__proto__=t,e}function X(e,t,n,a){var r=e[t].match(o)||[];x.a.q(n.match(o),function(e){x.a.pa(r,e,a)}),e[t]=r.join(" ")}function Z(){if(d)for(var e,t=d,n=0;h(e=e||"").length)&&e.substring(0,t.length)===t},Mc:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(3===e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},nb:function(e){return x.a.Mc(e,e.ownerDocument.documentElement)},Qb:function(e){return!!x.a.Sb(e,x.a.nb)},A:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Wb:function(e){return x.onError?function(){try{return e.apply(this,arguments)}catch(b){throw x.onError&&x.onError(b),b}}:e},setTimeout:function(e,t){return setTimeout(x.a.Wb(e),t)},$b:function(e){setTimeout(function(){throw x.onError&&x.onError(e),e},0)},p:function(t,e,n){var a=x.a.Wb(n);if(n=i&&J[e],x.options.useOnlyNativeEvents||n||!yt)if(n||"function"!=typeof t.addEventListener){if("undefined"==typeof t.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var r=function(e){a.call(t,e)},o="on"+e;t.attachEvent(o,r),x.a.F.oa(t,function(){t.detachEvent(o,r)})}else t.addEventListener(e,a,!1);else yt(t).bind(e,a)},Da:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n=!("input"!==x.a.A(e)||!e.type||"click"!=t.toLowerCase())&&("checkbox"==(n=e.type)||"radio"==n);if(x.options.useOnlyNativeEvents||!yt||n)if("function"==typeof mt.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=mt.createEvent(r[t]||"HTMLEvents")).initEvent(t,!0,!0,gt,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if("undefined"==typeof e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else yt(e).trigger(t)},c:function(e){return x.H(e)?e():e},zb:function(e){return x.H(e)?e.t():e},bb:function(t,e,n){var a;e&&("object"==typeof t.classList?(a=t.classList[n?"add":"remove"],x.a.q(e.match(o),function(e){a.call(t.classList,e)})):"string"==typeof t.className.baseVal?X(t.className,"baseVal",e,n):X(t,"className",e,n))},Za:function(e,t){var n=x.a.c(t),a=(null!==n&&n!==bt||(n=""),x.f.firstChild(e));!a||3!=a.nodeType||x.f.nextSibling(a)?x.f.da(e,[e.ownerDocument.createTextNode(n)]):a.data=n,x.a.Rc(e)},rc:function(e,t){if(e.name=t,i<=7)try{e.mergeAttributes(mt.createElement(""),!1)}catch(b){}},Rc:function(e){9<=i&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},Nc:function(e){var t;i&&(t=e.style.width,e.style.width=0,e.style.width=t)},hd:function(e,t){e=x.a.c(e),t=x.a.c(t);for(var n=[],a=e;a<=t;a++)n.push(a);return n},V:function(e){for(var t=[],n=0,a=e.length;n",""],tbody:u,tfoot:u,tr:[2,"","
"],td:z=[3,"","
"],th:z,option:W=[1,""],optgroup:W},c=x.a.C<=8,x.a.ma=function(e,t){if(yt){if(yt.parseHTML)a=yt.parseHTML(e,t)||[];else if((a=yt.clean([e],t))&&a[0]){for(var n=a[0];n.parentNode&&11!==n.parentNode.nodeType;)n=n.parentNode;n.parentNode&&n.parentNode.removeChild(n)}}else{var a,n=(a=(a=t)||mt).parentWindow||a.defaultView||gt,r=x.a.$a(e).toLowerCase(),o=a.createElement("div"),i=(r=r.match(/^<([a-z]+)[ >]/))&&Q[r[1]]||U,r=i[0];for(i="ignored
"+i[1]+e+i[2]+"
","function"==typeof n.innerShiv?o.appendChild(n.innerShiv(i)):(c&&a.appendChild(o),o.innerHTML=i,c&&o.parentNode.removeChild(o));r--;)o=o.lastChild;a=x.a.V(o.lastChild.childNodes)}return a},x.a.Cb=function(e,t){if(x.a.ob(e),null!==(t=x.a.c(t))&&t!==bt)if("string"!=typeof t&&(t=t.toString()),yt)yt(e).html(t);else for(var n=x.a.ma(t,e.ownerDocument),a=0;a]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,et=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g,{Oc:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return x.Gb.dd(e,t)},n)},dd:function(e,o){return e.replace(Ze,function(e,t,n,a,r){return ct(r,t,n,o)}).replace(et,function(e,t){return ct(t,"\x3c!-- ko --\x3e","#comment",o)})},Ec:function(a,r){return x.M.wb(function(e,t){var n=e.nextSibling;n&&n.nodeName.toLowerCase()===r&&x.Ja(n,a,t)})}}),x.b("__tr_ambtns",x.Gb.Ec),x.v={},x.v.n=function(e){var t;(this.n=e)&&(t=x.a.A(e),this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4)},x.v.n.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.n[e];var t=arguments[0];"innerHTML"==e?x.a.Cb(this.n,t):this.n[e]=t},tt=x.a.e.I()+"_",x.v.n.prototype.data=function(e){if(1===arguments.length)return x.a.e.get(this.n,tt+e);x.a.e.set(this.n,tt+e,arguments[1])},j=x.a.e.I(),x.v.n.prototype.nodes=function(){var e=this.n;if(0==arguments.length)return(x.a.e.get(e,j)||{}).jb||(3===this.ab?e.content:4===this.ab?e:bt);x.a.e.set(e,j,{jb:arguments[0]})},x.v.qa=function(e){this.n=e},x.v.qa.prototype=new x.v.n,x.v.qa.prototype.text=function(){var e;if(0==arguments.length)return(e=x.a.e.get(this.n,j)||{}).Hb===bt&&e.jb&&(e.Hb=e.jb.innerHTML),e.Hb;x.a.e.set(this.n,j,{Hb:arguments[0]})},x.b("templateSources",x.v),x.b("templateSources.domElement",x.v.n),x.b("templateSources.anonymousTemplate",x.v.qa),x.Db=function(e){if(e!=bt&&!(e instanceof x.O))throw Error("templateEngine must inherit from ko.templateEngine");nt=e},x.Ab=function(n,a,r,o,i){if(((r=r||{}).templateEngine||nt)==bt)throw Error("Set a template engine before calling renderTemplate");var u;return i=i||"replaceChildren",o?(u=ft(o),x.B(function(){var e=a&&a instanceof x.U?a:new x.U(x.a.c(a)),t=pt(n,e.$data,e),e=dt(o,i,t,e,r);"replaceNode"==i&&(u=ft(o=e))},null,{wa:function(){return!u||!x.a.nb(u)},i:u&&"replaceNode"==i?u.parentNode:u})):x.M.wb(function(e){x.Ab(n,a,r,e,"replaceNode")})},x.kd=function(n,t,a,r,o){function i(e,t){lt(t,c),a.afterRender&&a.afterRender(t,e),c=null}function u(e,t){return c=o.createChildContext(e,a.as,function(e){e.$index=t}),dt(null,"ignoreTargetNode",pt(n,e,c),c,a)}var c;return x.B(function(){var e=x.a.c(t)||[];"undefined"==typeof e.length&&(e=[e]),e=x.a.Ka(e,function(e){return a.includeDestroyed||e===bt||null===e||!x.a.c(e._destroy)}),x.l.w(x.a.Bb,null,[r,e,u,a,i])},null,{i:r})},at=x.a.e.I(),x.d.template={init:function(e,t){var n=x.a.c(t());if("string"==typeof n||n.name)x.f.xa(e);else{if("nodes"in n){if(n=n.nodes||[],x.H(n))throw Error('The "nodes" option must be a plain, non-observable array.')}else n=x.f.childNodes(e);n=x.a.jc(n),new x.v.qa(e).nodes(n)}return{controlsDescendantBindings:!0}},update:function(e,t,n,a,r){var o,i=t();n=!0,a=null,"string"==typeof(t=x.a.c(i))?t={}:(i=t.name,(n="if"in t?x.a.c(t["if"]):n)&&"ifnot"in t&&(n=!x.a.c(t.ifnot)),o=x.a.c(t.data)),"foreach"in t?a=x.kd(i||e,n&&t.foreach||[],t,e,r):n?(r="data"in t?r.createChildContext(o,t.as):r,a=x.Ab(i||e,r,t,e)):x.f.xa(e),r=a,(o=x.a.e.get(e,at))&&"function"==typeof o.k&&o.k(),x.a.e.set(e,at,r&&r.ba()?r:bt)}},x.h.ta.template=function(e){return 1==(e=x.h.yb(e)).length&&e[0].unknown||x.h.ad(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},x.f.Z.template=!0,x.b("setTemplateEngine",x.Db),x.b("renderTemplate",x.Ab),x.a.dc=function(e,t,n){if(e.length&&t.length)for(var a,r,o,i,u=a=0;(!n||u"+t+"<\/script>")},0