/*! ATOOnline 2023-10-31, Copyright (c) 2023 Australian Taxation Office */ !function(a){var g,b=this||eval("this"),c=b.document,d=b.navigator,e=b.jQuery,f=b.JSON;g=function(n,u){function t(e,n){return(null===e||typeof e in A)&&e===n}function i(e,n){var t;return function(){t=t||_.a.setTimeout(function(){t=a,e()},n)}}function o(e,n){var t;return function(){clearTimeout(t),t=_.a.setTimeout(e,n)}}function s(e,n){n&&n!==$?"beforeChange"===n?this.Kb(e):this.Ha(e,n):this.Lb(e)}function r(e,n){null!==n&&n.k&&n.k()}function l(e,n){var t=this.Hc,a=t[P];a.R||(this.lb&&this.Ma[n]?(t.Pb(n,e,this.Ma[n]),this.Ma[n]=null,--this.lb):a.r[n]||t.Pb(n,e,a.s?{ia:e}:t.uc(e)))}function p(e,c,s,l){_.d[e]={init:function(a,r,e,n,i){var o,u;return _.m(function(){var e=_.a.c(r()),n=!s!=!e,t=!u;(t||c||n!==o)&&(t&&_.va.Aa()&&(u=_.a.ua(_.f.childNodes(a),!0)),n?(t||_.f.da(a,_.a.ua(u)),_.eb(l?l(i,e):i,a)):_.f.xa(a),o=n)},null,{i:a}),{controlsDescendantBindings:!0}}},_.h.ta[e]=!1,_.f.Z[e]=!0}var h,v,g,m,y,w,x,k,E,T,C,N,S,_=void 0!==n?n:{};function D(){if(C)for(var e,n=C,t=0;Se.length)&&e.substring(0,n.length)===n},Mc:function(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(3===e.nodeType?e.parentNode:e);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e},nb:function(e){return _.a.Mc(e,e.ownerDocument.documentElement)},Qb:function(e){return!!_.a.Sb(e,_.a.nb)},A:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Wb:function(e){return _.onError?function(){try{return e.apply(this,arguments)}catch(e){throw _.onError&&_.onError(e),e}}:e},setTimeout:function(e,n){return setTimeout(_.a.Wb(e),n)},$b:function(e){setTimeout(function(){throw _.onError&&_.onError(e),e},0)},p:function(n,t,a){var r=_.a.Wb(a);if(a=h&&l[t],_.options.useOnlyNativeEvents||a||!e)if(a||"function"!=typeof n.addEventListener){if(void 0===n.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");function i(e){r.call(n,e)}var o="on"+t;n.attachEvent(o,i),_.a.F.oa(n,function(){n.detachEvent(o,i)})}else n.addEventListener(t,r,!1);else e(n).bind(t,r)},Da:function(n,t){if(!n||!n.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var a;if(a=!("input"!==_.a.A(n)||!n.type||"click"!=t.toLowerCase()||"checkbox"!=(a=n.type)&&"radio"!=a),_.options.useOnlyNativeEvents||!e||a)if("function"==typeof c.createEvent){if("function"!=typeof n.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(a=c.createEvent(s[t]||"HTMLEvents")).initEvent(t,!0,!0,b,0,0,0,0,0,!1,!1,!1,!1,0,n),n.dispatchEvent(a)}else if(a&&n.click)n.click();else{if(void 0===n.fireEvent)throw Error("Browser doesn't support triggering events");n.fireEvent("on"+t)}else e(n).trigger(t)},c:function(e){return _.H(e)?e():e},zb:function(e){return _.H(e)?e.t():e},bb:function(n,e,t){var a;e&&("object"==typeof n.classList?(a=n.classList[t?"add":"remove"],_.a.q(e.match(v),function(e){a.call(n.classList,e)})):"string"==typeof n.className.baseVal?r(n.className,"baseVal",e,t):r(n,"className",e,t))},Za:function(e,n){var t=_.a.c(n);null!==t&&t!==a||(t="");var r=_.f.firstChild(e);!r||3!=r.nodeType||_.f.nextSibling(r)?_.f.da(e,[e.ownerDocument.createTextNode(t)]):r.data=t,_.a.Rc(e)},rc:function(e,n){if(e.name=n,h<=7)try{e.mergeAttributes(c.createElement(""),!1)}catch(e){}},Rc:function(e){9<=h&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},Nc:function(e){if(h){var n=e.style.width;e.style.width=0,e.style.width=n}},hd:function(e,n){e=_.a.c(e),n=_.a.c(n);for(var t=[],a=e;a<=n;a++)t.push(a);return t},V:function(e){for(var n=[],t=0,a=e.length;t",""],tbody:v,tfoot:v,tr:[2,"","
"],td:g=[3,"","
"],th:g,option:m=[1,""],optgroup:m},w=_.a.C<=8,_.a.ma=function(n,t){var a;if(e){if(e.parseHTML)a=e.parseHTML(n,t)||[];else if((a=e.clean([n],t))&&a[0]){for(var r=a[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(a=t)||(a=c),r=a.parentWindow||a.defaultView||b;var i,o=_.a.$a(n).toLowerCase(),u=a.createElement("div");for(o=(i=(o=o.match(/^<([a-z]+)[ >]/))&&y[o[1]]||h)[0],i="ignored
"+i[1]+n+i[2]+"
","function"==typeof r.innerShiv?u.appendChild(r.innerShiv(i)):(w&&a.appendChild(u),u.innerHTML=i,w&&u.parentNode.removeChild(u));o--;)u=u.lastChild;a=_.a.V(u.lastChild.childNodes)}return a},_.a.Cb=function(n,t){if(_.a.ob(n),null!==(t=_.a.c(t))&&t!==a)if("string"!=typeof t&&(t=t.toString()),e)e(n).html(t);else for(var r=_.a.ma(t,n.ownerDocument),i=0;i]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,me=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g,{Oc:function(e,n,t){n.isTemplateRewritten(e,t)||n.rewriteTemplate(e,function(e){return _.Gb.dd(e,n)},t)},dd:function(e,i){return e.replace(ge,function(e,n,t,a,r){return ke(r,n,t,i)}).replace(me,function(e,n){return ke(n,"\x3c!-- ko --\x3e","#comment",i)})},Ec:function(a,r){return _.M.wb(function(e,n){var t=e.nextSibling;t&&t.nodeName.toLowerCase()===r&&_.Ja(t,a,n)})}}),_.b("__tr_ambtns",_.Gb.Ec),function(){_.v={},_.v.n=function(e){if(this.n=e){var n=_.a.A(e);this.ab="script"===n?1:"textarea"===n?2:"template"==n&&e.content&&11===e.content.nodeType?3:4}},_.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 n=arguments[0];"innerHTML"==e?_.a.Cb(this.n,n):this.n[e]=n};var n=_.a.e.I()+"_";_.v.n.prototype.data=function(e){if(1===arguments.length)return _.a.e.get(this.n,n+e);_.a.e.set(this.n,n+e,arguments[1])};var t=_.a.e.I();_.v.n.prototype.nodes=function(){var e=this.n;if(0==arguments.length)return(_.a.e.get(e,t)||{}).jb||(3===this.ab?e.content:4===this.ab?e:a);_.a.e.set(e,t,{jb:arguments[0]})},_.v.qa=function(e){this.n=e},_.v.qa.prototype=new _.v.n,_.v.qa.prototype.text=function(){if(0==arguments.length){var e=_.a.e.get(this.n,t)||{};return e.Hb===a&&e.jb&&(e.Hb=e.jb.innerHTML),e.Hb}_.a.e.set(this.n,t,{Hb:arguments[0]})},_.b("templateSources",_.v),_.b("templateSources.domElement",_.v.n),_.b("templateSources.anonymousTemplate",_.v.qa)}(),function(){function c(e,n,t){var a;for(n=_.f.nextSibling(n);e&&(a=e)!==n;)t(a,e=_.f.nextSibling(a))}function l(e,n){if(e.length){var r=e[0],i=e[e.length-1],t=r.parentNode,o=_.Q.instance,u=o.preprocessNode;if(u){if(c(r,i,function(e,n){var t=e.previousSibling,a=u.call(o,e);a&&(e===r&&(r=a[0]||n),e===i&&(i=a[a.length-1]||t))}),e.length=0,!r)return;r===i?e.push(r):(e.push(r,i),_.a.za(e,t))}c(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||_.Rb(n,e)}),c(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||_.M.yc(e,[n])}),_.a.za(e,t)}}function s(e){return e.nodeType?e:0"+n+"<\/script>")},0