(()=>{var G;typeof ko<"u"&&(G=ko);(function(){/*! * Knockout JavaScript library v3.5.1 * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */(function(){(function(E){var O=this||(0,eval)("this"),A=O.document,Q=O.navigator,_=O.jQuery,q=O.JSON;_||typeof jQuery>"u"||(_=jQuery),function(K){K(O.ko={})}(function(K,ee){function Y(t,n){return t===null||typeof t in ue?t===n:!1}function ne(t,n){var r;return function(){r||(r=e.a.setTimeout(function(){r=E,t()},n))}}function re(t,n){var r;return function(){clearTimeout(r),r=e.a.setTimeout(t,n)}}function ie(t,n){n&&n!=="change"?n==="beforeChange"?this.pc(t):this.gb(t,n):this.qc(t)}function oe(t,n){n!==null&&n.s&&n.s()}function ae(t,n){var r=this.qd,i=r[k];i.ra||(this.Qb&&this.mb[n]?(r.uc(n,t,this.mb[n]),this.mb[n]=null,--this.Qb):i.I[n]||r.uc(n,t,i.J?{da:t}:r.$c(t)),t.Ja&&t.gd())}var e=typeof K<"u"?K:{};e.b=function(t,n){for(var r=t.split("."),i=e,s=0;s",d[0];);return 4e.a.A(v,d)&&v.push(d)}),v},Mb:function(o,v,d){var y=[];if(o)for(var b=0,g=o.length;by?d&&o.push(v):d||o.splice(y,1)},Ba:c,extend:n,setPrototypeOf:r,Ab:c?r:n,P:t,Ga:function(o,v,d){if(!o)return o;var y={},b;for(b in o)s.call(o,b)&&(y[b]=v.call(d,o[b],b,o));return y},Tb:function(o){for(;o.firstChild;)e.removeNode(o.firstChild)},Yb:function(o){o=e.a.la(o);for(var v=(o[0]&&o[0].ownerDocument||A).createElement("div"),d=0,y=o.length;dp?o.setAttribute("selected",v):o.selected=v},Db:function(o){return o===null||o===E?"":o.trim?o.trim():o.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(o,v){return o=o||"",v.length>o.length?!1:o.substring(0,v.length)===v},vd:function(o,v){if(o===v)return!0;if(o.nodeType===11)return!1;if(v.contains)return v.contains(o.nodeType!==1?o.parentNode:o);if(v.compareDocumentPosition)return(v.compareDocumentPosition(o)&16)==16;for(;o&&o!=v;)o=o.parentNode;return!!o},Sb:function(o){return e.a.vd(o,o.ownerDocument.documentElement)},kd:function(o){return!!e.a.Lb(o,e.a.Sb)},R:function(o){return o&&o.tagName&&o.tagName.toLowerCase()},Ac:function(o){return e.onError?function(){try{return o.apply(this,arguments)}catch(v){throw e.onError&&e.onError(v),v}}:o},setTimeout:function(o,v){return setTimeout(e.a.Ac(o),v)},Gc:function(o){setTimeout(function(){throw e.onError&&e.onError(o),o},0)},B:function(o,v,d){var y=e.a.Ac(d);if(d=a[v],e.options.useOnlyNativeEvents||d||!_)if(d||typeof o.addEventListener!="function")if(typeof o.attachEvent<"u"){var b=function(w){y.call(o,w)},g="on"+v;o.attachEvent(g,b),e.a.K.za(o,function(){o.detachEvent(g,b)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else o.addEventListener(v,y,!1);else m||(m=typeof _(o).on=="function"?"on":"bind"),_(o)[m](v,y)},Fb:function(o,v){if(!o||!o.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var d;if(e.a.R(o)==="input"&&o.type&&v.toLowerCase()=="click"?(d=o.type,d=d=="checkbox"||d=="radio"):d=!1,e.options.useOnlyNativeEvents||!_||d)if(typeof A.createEvent=="function")if(typeof o.dispatchEvent=="function")d=A.createEvent(u[v]||"HTMLEvents"),d.initEvent(v,!0,!0,O,0,0,0,0,0,!1,!1,!1,!1,0,o),o.dispatchEvent(d);else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&o.click)o.click();else if(typeof o.fireEvent<"u")o.fireEvent("on"+v);else throw Error("Browser doesn't support triggering events");else _(o).trigger(v)},f:function(o){return e.O(o)?o():o},bc:function(o){return e.O(o)?o.v():o},Eb:function(o,v,d){var y;v&&(typeof o.classList=="object"?(y=o.classList[d?"add":"remove"],e.a.D(v.match(h),function(b){y.call(o.classList,b)})):typeof o.className.baseVal=="string"?i(o.className,"baseVal",v,d):i(o,"className",v,d))},Bb:function(o,v){var d=e.a.f(v);(d===null||d===E)&&(d="");var y=e.h.firstChild(o);!y||y.nodeType!=3||e.h.nextSibling(y)?e.h.va(o,[o.ownerDocument.createTextNode(d)]):y.data=d,e.a.Ad(o)},Yc:function(o,v){if(o.name=v,7>=p)try{var d=o.name.replace(/[&<>'"]/g,function(y){return"&#"+y.charCodeAt(0)+";"});o.mergeAttributes(A.createElement(""),!1)}catch{}},Ad:function(o){9<=p&&(o=o.nodeType==1?o:o.parentNode,o.style&&(o.style.zoom=o.style.zoom))},wd:function(o){if(p){var v=o.style.width;o.style.width=0,o.style.width=v}},Pd:function(o,v){o=e.a.f(o),v=e.a.f(v);for(var d=[],y=o;y<=v;y++)d.push(y);return d},la:function(o){for(var v=[],d=0,y=o.length;d",""],r=[3,"","
"],i=[1,""],s={thead:n,tbody:n,tfoot:n,tr:[2,"","
"],td:r,th:r,option:i,optgroup:i},c=8>=e.a.W;e.a.ua=function(l,f){var u;if(_){if(_.parseHTML)u=_.parseHTML(l,f)||[];else if((u=_.clean([l],f))&&u[0]){for(var a=u[0];a.parentNode&&a.parentNode.nodeType!==11;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(u=f)||(u=A);var a=u.parentWindow||u.defaultView||O,p=e.a.Db(l).toLowerCase(),h=u.createElement("div"),m;for(m=(p=p.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&s[p[1]]||t,p=m[0],m="ignored
"+m[1]+l+m[2]+"
",typeof a.innerShiv=="function"?h.appendChild(a.innerShiv(m)):(c&&u.body.appendChild(h),h.innerHTML=m,c&&h.parentNode.removeChild(h));p--;)h=h.lastChild;u=e.a.la(h.lastChild.childNodes)}return u},e.a.Md=function(l,f){var u=e.a.ua(l,f);return u.length&&u[0].parentElement||e.a.Yb(u)},e.a.fc=function(l,f){if(e.a.Tb(l),f=e.a.f(f),f!==null&&f!==E)if(typeof f!="string"&&(f=f.toString()),_)_(l).html(f);else for(var u=e.a.ua(f,l.ownerDocument),a=0;a"},bd:function(r,i){var s=n[r];if(s===E)throw Error("Couldn't find any memo with ID "+r+". Perhaps it's already been unmemoized.");try{return s.apply(null,i||[]),!0}finally{delete n[r]}},cd:function(r,i){var s=[];t(r,s);for(var c=0,l=s.length;cf){if(5e3<=++u){l=s,e.a.Gc(Error("'Too much recursion' after processing "+u+" task groups."));break}f=s}try{a()}catch(p){e.a.Gc(p)}}}}function n(){t(),l=s=i.length=0}var r,i=[],s=0,c=1,l=0;return O.MutationObserver?r=function(f){var u=A.createElement("div");return new MutationObserver(f).observe(u,{attributes:!0}),function(){u.classList.toggle("foo")}}(n):r=A&&"onreadystatechange"in A.createElement("script")?function(f){var u=A.createElement("script");u.onreadystatechange=function(){u.onreadystatechange=null,A.documentElement.removeChild(u),u=null,f()},A.documentElement.appendChild(u)}:function(f){setTimeout(f,0)},{scheduler:r,zb:function(f){return s||e.na.scheduler(n),i[s++]=f,c++},cancel:function(f){f=f-(c-s),f>=l&&fo[0]?y+o[0]:o[0]),y);for(var y=b===1?y:Math.min(m+(o[1]||0),y),b=m+b-2,g=Math.max(y,b),w=[],x=[],T=2;mc;c++)s=s();return s})},e.toJSON=function(i,s,c){return i=e.ad(i),e.a.hc(i,s,c)},r.prototype={constructor:r,save:function(i,s){var c=e.a.A(this.keys,i);0<=c?this.values[c]=s:(this.keys.push(i),this.values.push(s))},get:function(i){return i=e.a.A(this.keys,i),0<=i?this.values[i]:E}}}(),e.b("toJS",e.ad),e.b("toJSON",e.toJSON),e.Wd=function(t,n,r){function i(s){var c=e.xb(t,r).extend({ma:"always"}),l=c.subscribe(function(f){f&&(l.s(),s(f))});return c.notifySubscribers(c.v()),l}return typeof Promise!="function"||n?i(n.bind(r)):new Promise(i)},e.b("when",e.Wd),function(){e.w={M:function(t){switch(e.a.R(t)){case"option":return t.__ko__hasDomDataOptionValue__===!0?e.a.g.get(t,e.c.options.$b):7>=e.a.W?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return 0<=t.selectedIndex?e.w.M(t.options[t.selectedIndex]):E;default:return t.value}},cb:function(t,n,r){switch(e.a.R(t)){case"option":typeof n=="string"?(e.a.g.set(t,e.c.options.$b,E),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n):(e.a.g.set(t,e.c.options.$b,n),t.__ko__hasDomDataOptionValue__=!0,t.value=typeof n=="number"?n:"");break;case"select":(n===""||n===null)&&(n=E);for(var i=-1,s=0,c=t.options.length,l;s=m){u.push(p&&h.length?{key:p,value:h.join("")}:{unknown:p||h.join("")}),p=m=0,h=[];continue}}else if(d===58){if(!m&&!p&&h.length===1){p=h.pop();continue}}else{if(d===47&&1",c=s?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,l=s?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,f={ul:!0,ol:!0},u="__ko_matchedEndComment__";e.h={ea:{},childNodes:function(a){return t(a)?r(a):a.childNodes},Ea:function(a){if(t(a)){a=e.h.childNodes(a);for(var p=0,h=a.length;parguments.length){if(w=A.body,!w)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!w||w.nodeType!==1&&w.nodeType!==8)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");u(h(g,x),w)},e.Dc=function(g){return!g||g.nodeType!==1&&g.nodeType!==8?E:e.Td(g)},e.Ec=function(g){return(g=e.Dc(g))?g.$data:E},e.b("bindingHandlers",e.c),e.b("bindingEvent",e.i),e.b("bindingEvent.subscribe",e.i.subscribe),e.b("bindingEvent.startPossiblyAsyncContentBinding",e.i.Cb),e.b("applyBindings",e.vc),e.b("applyBindingsToDescendants",e.Oa),e.b("applyBindingAccessorsToNode",e.ib),e.b("applyBindingsToNode",e.ld),e.b("contextFor",e.Dc),e.b("dataFor",e.Ec)}(),function(t){function n(l,f){var u=Object.prototype.hasOwnProperty.call(s,l)?s[l]:t,a;u?u.subscribe(f):(u=s[l]=new e.T,u.subscribe(f),r(l,function(p,h){var m=!(!h||!h.synchronous);c[l]={definition:p,Gd:m},delete s[l],a||m?u.notifySubscribers(p):e.na.zb(function(){u.notifySubscribers(p)})}),a=!0)}function r(l,f){i("getConfig",[l],function(u){u?i("loadComponent",[l,u],function(a){f(a,u)}):f(null,null)})}function i(l,f,u,a){a||(a=e.j.loaders.slice(0));var p=a.shift();if(p){var h=p[l];if(h){var m=!1;if(h.apply(p,f.concat(function(o){m?u(null):o!==null?u(o):i(l,f,u,a)}))!==t&&(m=!0,!p.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(l,f,u,a)}else u(null)}var s={},c={};e.j={get:function(l,f){var u=Object.prototype.hasOwnProperty.call(c,l)?c[l]:t;u?u.Gd?e.u.G(function(){f(u.definition)}):e.na.zb(function(){f(u.definition)}):n(l,f)},Bc:function(l){delete c[l]},oc:i},e.j.loaders=[],e.b("components",e.j),e.b("components.get",e.j.get),e.b("components.clearCachedDefinition",e.j.Bc)}(),function(){function t(u,a,p,h){function m(){--v===0&&h(o)}var o={},v=2,d=p.template;p=p.viewModel,d?s(a,d,function(y){e.j.oc("loadTemplate",[u,y],function(b){o.template=b,m()})}):m(),p?s(a,p,function(y){e.j.oc("loadViewModel",[u,y],function(b){o[f]=b,m()})}):m()}function n(u,a,p){if(typeof a=="function")p(function(m){return new a(m)});else if(typeof a[f]=="function")p(a[f]);else if("instance"in a){var h=a.instance;p(function(){return h})}else"viewModel"in a?n(u,a.viewModel,p):u("Unknown viewModel value: "+a)}function r(u){switch(e.a.R(u)){case"script":return e.a.ua(u.text);case"textarea":return e.a.ua(u.value);case"template":if(i(u.content))return e.a.Ca(u.content.childNodes)}return e.a.Ca(u.childNodes)}function i(u){return O.DocumentFragment?u instanceof DocumentFragment:u&&u.nodeType===11}function s(u,a,p){typeof a.require=="string"?ee||O.require?(ee||O.require)([a.require],function(h){h&&typeof h=="object"&&h.Xd&&h.default&&(h=h.default),p(h)}):u("Uses require, but no AMD loader is present"):p(a)}function c(u){return function(a){throw Error("Component '"+u+"': "+a)}}var l={};e.j.register=function(u,a){if(!a)throw Error("Invalid configuration for "+u);if(e.j.tb(u))throw Error("Component "+u+" is already registered");l[u]=a},e.j.tb=function(u){return Object.prototype.hasOwnProperty.call(l,u)},e.j.unregister=function(u){delete l[u],e.j.Bc(u)},e.j.Fc={getConfig:function(u,a){a(e.j.tb(u)?l[u]:null)},loadComponent:function(u,a,p){var h=c(u);s(h,a,function(m){t(u,h,m,p)})},loadTemplate:function(u,a,p){if(u=c(u),typeof a=="string")p(e.a.ua(a));else if(a instanceof Array)p(a);else if(i(a))p(e.a.la(a.childNodes));else if(a.element)if(a=a.element,O.HTMLElement?a instanceof HTMLElement:a&&a.tagName&&a.nodeType===1)p(r(a));else if(typeof a=="string"){var h=A.getElementById(a);h?p(r(h)):u("Cannot find element with ID "+a)}else u("Unknown element type: "+a);else u("Unknown template value: "+a)},loadViewModel:function(u,a,p){n(c(u),a,p)}};var f="createViewModel";e.b("components.register",e.j.register),e.b("components.isRegistered",e.j.tb),e.b("components.unregister",e.j.unregister),e.b("components.defaultLoader",e.j.Fc),e.j.loaders.push(e.j.Fc),e.j.dd=l}(),function(){function t(r,i){var s=r.getAttribute("params");if(s){var s=n.parseBindingsString(s,i,r,{valueAccessors:!0,bindingParams:!0}),s=e.a.Ga(s,function(f){return e.o(f,null,{l:r})}),c=e.a.Ga(s,function(f){var u=f.v();return f.ja()?e.o({read:function(){return e.a.f(f())},write:e.Za(u)&&function(a){f()(a)},l:r}):u});return Object.prototype.hasOwnProperty.call(c,"$raw")||(c.$raw=s),c}return{$raw:{}}}e.j.getComponentNameForNode=function(r){var i=e.a.R(r);if(e.j.tb(i)&&(i.indexOf("-")!=-1||""+r=="[object HTMLUnknownElement]"||8>=e.a.W&&r.tagName===i))return i},e.j.tc=function(r,i,s,c){if(i.nodeType===1){var l=e.j.getComponentNameForNode(i);if(l){if(r=r||{},r.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var f={name:l,params:t(i,s)};r.component=c?function(){return f}:f}}return r};var n=new e.ga;9>e.a.W&&(e.j.register=function(r){return function(i){return r.apply(this,arguments)}}(e.j.register),A.createDocumentFragment=function(r){return function(){var i=r(),s=e.j.dd,c;for(c in s);return i}}(A.createDocumentFragment))}(),function(){function t(i,s,c){if(s=s.template,!s)throw Error("Component '"+i+"' has no template");i=e.a.Ca(s),e.h.va(c,i)}function n(i,s,c){var l=i.createViewModel;return l?l.call(i,s,c):s}var r=0;e.c.component={init:function(i,s,c,l,f){function u(){var o=a&&a.dispose;typeof o=="function"&&o.call(a),h&&h.s(),p=a=h=null}var a,p,h,m=e.a.la(e.h.childNodes(i));return e.h.Ea(i),e.a.K.za(i,u),e.o(function(){var o=e.a.f(s()),v,d;if(typeof o=="string"?v=o:(v=e.a.f(o.name),d=e.a.f(o.params)),!v)throw Error("No component name specified");var y=e.i.Cb(i,f),b=p=++r;e.j.get(v,function(g){if(p===b){if(u(),!g)throw Error("Unknown component '"+v+"'");t(v,g,i);var w=n(g,d,{element:i,templateNodes:m});g=y.createChildContext(w,{extend:function(x){x.$component=w,x.$componentTemplateNodes=m}}),w&&w.koDescendantsComplete&&(h=e.i.subscribe(i,e.i.pa,w.koDescendantsComplete,w)),a=w,e.Oa(g,i)}})},null,{l:i}),{controlsDescendantBindings:!0}}},e.h.ea.component=!0}();var te={class:"className",for:"htmlFor"};e.c.attr={update:function(t,n){var r=e.a.f(n())||{};e.a.P(r,function(i,s){s=e.a.f(s);var c=i.indexOf(":"),c="lookupNamespaceURI"in t&&0=e.a.W&&i in te?(i=te[i],l?t.removeAttribute(i):t[i]=s):l||(c?t.setAttributeNS(c,i,s):t.setAttribute(i,s)),i==="name"&&e.a.Yc(t,l?"":s)})}},function(){e.c.checked={after:["value","attr"],init:function(t,n,r){function i(){var o=t.checked,v=c();if(!e.S.Ya()&&(o||!f&&!e.S.qa())){var d=e.u.G(n);if(a){var y=p?d.v():d,b=m;m=v,b!==v?o&&(e.a.Na(y,v,!0),e.a.Na(y,b,!1)):e.a.Na(y,v,o),p&&e.Za(d)&&d(y)}else l&&(v===E?v=o:o||(v=E)),e.m.eb(d,r,"checked",v,!0)}}function s(){var o=e.a.f(n()),v=c();a?(t.checked=0<=e.a.A(o,v),m=v):t.checked=l&&v===E?!!o:c()===o}var c=e.xb(function(){if(r.has("checkedValue"))return e.a.f(r.get("checkedValue"));if(h)return r.has("value")?e.a.f(r.get("value")):t.value}),l=t.type=="checkbox",f=t.type=="radio";if(l||f){var u=n(),a=l&&e.a.f(u)instanceof Array,p=!(a&&u.push&&u.splice),h=f||a,m=a?c():E;f&&!t.name&&e.c.uniqueName.init(t,function(){return!0}),e.o(i,null,{l:t}),e.a.B(t,"click",i),e.o(s,null,{l:t}),u=E}}},e.m.wa.checked=!0,e.c.checkedValue={update:function(t,n){t.value=e.a.f(n())}}}(),e.c.class={update:function(t,n){var r=e.a.Db(e.a.f(n()));e.a.Eb(t,t.__ko__cssValue,!1),t.__ko__cssValue=r,e.a.Eb(t,r,!0)}},e.c.css={update:function(t,n){var r=e.a.f(n());r!==null&&typeof r=="object"?e.a.P(r,function(i,s){s=e.a.f(s),e.a.Eb(t,i,s)}):e.c.class.update(t,n)}},e.c.enable={update:function(t,n){var r=e.a.f(n());r&&t.disabled?t.removeAttribute("disabled"):r||t.disabled||(t.disabled=!0)}},e.c.disable={update:function(t,n){e.c.enable.update(t,function(){return!e.a.f(n())})}},e.c.event={init:function(t,n,r,i,s){var c=n()||{};e.a.P(c,function(l){typeof l=="string"&&e.a.B(t,l,function(f){var u,a=n()[l];if(a){try{var p=e.a.la(arguments);i=s.$data,p.unshift(i),u=a.apply(i,p)}finally{u!==!0&&(f.preventDefault?f.preventDefault():f.returnValue=!1)}r.get(l+"Bubble")===!1&&(f.cancelBubble=!0,f.stopPropagation&&f.stopPropagation())}})})}},e.c.foreach={Rc:function(t){return function(){var n=t(),r=e.a.bc(n);return!r||typeof r.length=="number"?{foreach:n,templateEngine:e.ba.Ma}:(e.a.f(n),{foreach:r.data,as:r.as,noChildContext:r.noChildContext,includeDestroyed:r.includeDestroyed,afterAdd:r.afterAdd,beforeRemove:r.beforeRemove,afterRender:r.afterRender,beforeMove:r.beforeMove,afterMove:r.afterMove,templateEngine:e.ba.Ma})}},init:function(t,n){return e.c.template.init(t,e.c.foreach.Rc(n))},update:function(t,n,r,i,s){return e.c.template.update(t,e.c.foreach.Rc(n),r,i,s)}},e.m.Ra.foreach=!1,e.h.ea.foreach=!0,e.c.hasfocus={init:function(t,n,r){function i(l){t.__ko_hasfocusUpdating=!0;var f=t.ownerDocument;if("activeElement"in f){var u;try{u=f.activeElement}catch{u=f.body}l=u===t}f=n(),e.m.eb(f,r,"hasfocus",l,!0),t.__ko_hasfocusLastValue=l,t.__ko_hasfocusUpdating=!1}var s=i.bind(null,!0),c=i.bind(null,!1);e.a.B(t,"focus",s),e.a.B(t,"focusin",s),e.a.B(t,"blur",c),e.a.B(t,"focusout",c),t.__ko_hasfocusLastValue=!1},update:function(t,n){var r=!!e.a.f(n());t.__ko_hasfocusUpdating||t.__ko_hasfocusLastValue===r||(r?t.focus():t.blur(),!r&&t.__ko_hasfocusLastValue&&t.ownerDocument.body.focus(),e.u.G(e.a.Fb,null,[t,r?"focusin":"focusout"]))}},e.m.wa.hasfocus=!0,e.c.hasFocus=e.c.hasfocus,e.m.wa.hasFocus="hasfocus",e.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(t,n){e.a.fc(t,n())}},function(){function t(n,r,i){e.c[n]={init:function(s,c,l,f,u){var a,p,h={},m,o,v;if(r){f=l.get("as");var d=l.get("noChildContext");v=!(f&&d),h={as:f,noChildContext:d,exportDependencies:v}}return o=(m=l.get("completeOn")=="render")||l.has(e.i.pa),e.o(function(){var y=e.a.f(c()),b=!i!=!y,g=!p,w;(v||b!==a)&&(o&&(u=e.i.Cb(s,u)),b&&((!r||v)&&(h.dataDependency=e.S.o()),w=r?u.createChildContext(typeof y=="function"?y:c,h):e.S.qa()?u.extend(null,h):u),g&&e.S.qa()&&(p=e.a.Ca(e.h.childNodes(s),!0)),b?(g||e.h.va(s,e.a.Ca(p)),e.Oa(w,s)):(e.h.Ea(s),m||e.i.ma(s,e.i.H)),a=b)},null,{l:s}),{controlsDescendantBindings:!0}}},e.m.Ra[n]=!1,e.h.ea[n]=!0}t("if"),t("ifnot",!1,!0),t("with",!0)}(),e.c.let={init:function(t,n,r,i,s){return n=s.extend(n),e.Oa(n,t),{controlsDescendantBindings:!0}}},e.h.ea.let=!0;var X={};e.c.options={init:function(t){if(e.a.R(t)!=="select")throw Error("options binding applies only to SELECT elements");for(;0"u"&&(u=[u]),h=e.a.jb(u,function(d){return p||d===E||d===null||!e.a.f(d._destroy)}),r.has("optionsCaption")&&(u=e.a.f(r.get("optionsCaption")),u!==null&&u!==E&&h.unshift(X)));var o=!1;if(n.beforeRemove=function(d){t.removeChild(d)},u=c,r.has("optionsAfterRender")&&typeof r.get("optionsAfterRender")=="function"&&(u=function(d,y){c(0,y),e.u.G(r.get("optionsAfterRender"),null,[y[0],d!==X?d:E])}),e.a.ec(t,h,function(d,y,b){return b.length&&(m=!a&&b[0].selected?[e.w.M(b[0])]:[],o=!0),y=t.ownerDocument.createElement("option"),d===X?(e.a.Bb(y,r.get("optionsCaption")),e.w.cb(y,E)):(b=s(d,r.get("optionsValue"),d),e.w.cb(y,e.a.f(b)),d=s(d,r.get("optionsText"),b),e.a.Bb(y,d)),[y]},n,u),!a){var v;l?v=m.length&&i().lengthc)var f=e.a.g.Z(),u=e.a.g.Z(),a=function(h){var m=this.activeElement;(m=m&&e.a.g.get(m,u))&&m(h)},p=function(h,m){var o=h.ownerDocument;e.a.g.get(o,f)||(e.a.g.set(o,f,!0),e.a.B(o,"selectionchange",a)),e.a.g.set(h,u,m)};e.c.textInput={init:function(h,m,o){function v(N,S){e.a.B(h,N,S)}function d(){var N=e.a.f(m());(N===null||N===E)&&(N=""),x!==E&&N===x?e.a.setTimeout(d,4):h.value!==N&&(C=!0,h.value=N,C=!1,g=h.value)}function y(){w||(x=h.value,w=e.a.setTimeout(b,4))}function b(){clearTimeout(w),x=w=E;var N=h.value;g!==N&&(g=N,e.m.eb(m(),o,"textInput",N))}var g=h.value,w,x,T=e.a.W==9?y:b,C=!1;c&&v("keypress",b),11>c&&v("propertychange",function(N){C||N.propertyName!=="value"||T(N)}),c==8&&(v("keyup",b),v("keydown",b)),p&&(p(h,T),v("dragend",y)),(!c||9<=c)&&v("input",T),5>i&&e.a.R(h)==="textarea"?(v("keydown",y),v("paste",y),v("cut",y)):11>r?v("keydown",y):4>s?(v("DOMAutoComplete",b),v("dragdrop",b),v("drop",b)):l&&h.type==="number"&&v("keydown",y),v("change",b),v("blur",b),e.o(d,null,{l:h})}},e.m.wa.textInput=!0,e.c.textinput={preprocess:function(h,m,o){o("textInput",h)}}}(),e.c.uniqueName={init:function(t,n){if(n()){var r="ko_unique_"+ ++e.c.uniqueName.rd;e.a.Yc(t,r)}}},e.c.uniqueName.rd=0,e.c.using={init:function(t,n,r,i,s){var c;return r.has("as")&&(c={as:r.get("as"),noChildContext:r.get("noChildContext")}),n=s.createChildContext(n,c),e.Oa(n,t),{controlsDescendantBindings:!0}}},e.h.ea.using=!0,e.c.value={init:function(t,n,r){var i=e.a.R(t),s=i=="input";if(!s||t.type!="checkbox"&&t.type!="radio"){var c=[],l=r.get("valueUpdate"),f=!1,u=null;l&&(typeof l=="string"?c=[l]:c=e.a.wc(l),e.a.Pa(c,"change"));var a=function(){u=null,f=!1;var m=n(),o=e.w.M(t);e.m.eb(m,r,"value",o)};!e.a.W||!s||t.type!="text"||t.autocomplete=="off"||t.form&&t.form.autocomplete=="off"||e.a.A(c,"propertychange")!=-1||(e.a.B(t,"propertychange",function(){f=!0}),e.a.B(t,"focus",function(){f=!1}),e.a.B(t,"blur",function(){f&&a()})),e.a.D(c,function(m){var o=a;e.a.Ud(m,"after")&&(o=function(){u=e.w.M(t),e.a.setTimeout(a,0)},m=m.substring(5)),e.a.B(t,m,o)});var p;if(p=s&&t.type=="file"?function(){var m=e.a.f(n());m===null||m===E||m===""?t.value="":e.u.G(a)}:function(){var m=e.a.f(n()),o=e.w.M(t);u!==null&&m===u?e.a.setTimeout(p,0):(m!==o||o===E)&&(i==="select"?(o=r.get("valueAllowUnset"),e.w.cb(t,m,o),o||m===e.w.M(t)||e.u.G(a)):e.w.cb(t,m))},i==="select"){var h;e.i.subscribe(t,e.i.H,function(){h?r.get("valueAllowUnset")?p():a():(e.a.B(t,"change",a),h=e.o(p,null,{l:t}))},null,{notifyImmediately:!0})}else e.a.B(t,"change",a),e.o(p,null,{l:t})}else e.ib(t,{checkedValue:n})},update:function(){}},e.m.wa.value=!0,e.c.visible={update:function(t,n){var r=e.a.f(n()),i=t.style.display!="none";r&&!i?t.style.display="":!r&&i&&(t.style.display="none")}},e.c.hidden={update:function(t,n){e.c.visible.update(t,function(){return!e.a.f(n())})}},function(t){e.c[t]={init:function(n,r,i,s,c){return e.c.event.init.call(this,n,function(){var l={};return l[t]=r(),l},i,s,c)}}}("click"),e.ca=function(){},e.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},e.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},e.ca.prototype.makeTemplateSource=function(t,n){if(typeof t=="string"){n=n||A;var r=n.getElementById(t);if(!r)throw Error("Cannot find template with ID "+t);return new e.C.F(r)}if(t.nodeType==1||t.nodeType==8)return new e.C.ia(t);throw Error("Unknown template type: "+t)},e.ca.prototype.renderTemplate=function(t,n,r,i){return t=this.makeTemplateSource(t,i),this.renderTemplateSource(t,n,r,i)},e.ca.prototype.isTemplateRewritten=function(t,n){return this.allowTemplateRewriting===!1?!0:this.makeTemplateSource(t,n).data("isRewritten")},e.ca.prototype.rewriteTemplate=function(t,n,r){t=this.makeTemplateSource(t,r),n=n(t.text()),t.text(n),t.data("isRewritten",!0)},e.b("templateEngine",e.ca),e.kc=function(){function t(i,s,c,l){i=e.m.ac(i);for(var f=e.m.Ra,u=0;u]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,r=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(i,s,c){s.isTemplateRewritten(i,c)||s.rewriteTemplate(i,function(l){return e.kc.Ld(l,s)},c)},Ld:function(i,s){return i.replace(n,function(c,l,f,u,a){return t(a,l,f,s)}).replace(r,function(c,l){return t(l,"","#comment",s)})},md:function(i,s){return e.aa.Xb(function(c,l){var f=c.nextSibling;f&&f.nodeName.toLowerCase()===s&&e.ib(f,i,l)})}}}(),e.b("__tr_ambtns",e.kc.md),function(){e.C={},e.C.F=function(r){if(this.F=r){var i=e.a.R(r);this.ab=i==="script"?1:i==="textarea"?2:i=="template"&&r.content&&r.content.nodeType===11?3:4}},e.C.F.prototype.text=function(){var r=this.ab===1?"text":this.ab===2?"value":"innerHTML";if(arguments.length==0)return this.F[r];var i=arguments[0];r==="innerHTML"?e.a.fc(this.F,i):this.F[r]=i};var t=e.a.g.Z()+"_";e.C.F.prototype.data=function(r){if(arguments.length===1)return e.a.g.get(this.F,t+r);e.a.g.set(this.F,t+r,arguments[1])};var n=e.a.g.Z();e.C.F.prototype.nodes=function(){var r=this.F;if(arguments.length==0){var i=e.a.g.get(r,n)||{},s=i.lb||(this.ab===3?r.content:this.ab===4?r:E);if(!s||i.jd){var c=this.text();c&&c!==i.bb&&(s=e.a.Md(c,r.ownerDocument),e.a.g.set(r,n,{lb:s,bb:c,jd:!0}))}return s}i=arguments[0],this.ab!==E&&this.text(""),e.a.g.set(r,n,{lb:i})},e.C.ia=function(r){this.F=r},e.C.ia.prototype=new e.C.F,e.C.ia.prototype.constructor=e.C.ia,e.C.ia.prototype.text=function(){if(arguments.length==0){var r=e.a.g.get(this.F,n)||{};return r.bb===E&&r.lb&&(r.bb=r.lb.innerHTML),r.bb}e.a.g.set(this.F,n,{bb:arguments[0]})},e.b("templateSources",e.C),e.b("templateSources.domElement",e.C.F),e.b("templateSources.anonymousTemplate",e.C.ia)}(),function(){function t(u,a,p){var h;for(a=e.h.nextSibling(a);u&&(h=u)!==a;)u=e.h.nextSibling(h),p(h,u)}function n(u,a){if(u.length){var p=u[0],h=u[u.length-1],m=p.parentNode,o=e.ga.instance,v=o.preprocessNode;if(v){if(t(p,h,function(d,y){var b=d.previousSibling,g=v.call(o,d);g&&(d===p&&(p=g[0]||y),d===h&&(h=g[g.length-1]||b))}),u.length=0,!p)return;p===h?u.push(p):(u.push(p,h),e.a.Ua(u,m))}t(p,h,function(d){d.nodeType!==1&&d.nodeType!==8||e.vc(a,d)}),t(p,h,function(d){d.nodeType!==1&&d.nodeType!==8||e.aa.cd(d,[a])}),e.a.Ua(u,m)}}function r(u){return u.nodeType?u:0"u"&&(x=[x]),g&&(x=e.a.jb(x,function(T){return T===E||T===null||!e.a.f(T._destroy)})),o(x)},null,{l:h});o(a.v());var w=a.subscribe(function(x){o(a(),x)},null,"arrayChange");return w.l(h),w};var l=e.a.g.Z(),f=e.a.g.Z();e.c.template={init:function(u,a){var p=e.a.f(a());if(typeof p=="string"||"name"in p)e.h.Ea(u);else if("nodes"in p){if(p=p.nodes||[],e.O(p))throw Error('The "nodes" option must be a plain, non-observable array.');var h=p[0]&&p[0].parentNode;h&&e.a.g.get(h,f)||(h=e.a.Yb(p),e.a.g.set(h,f,!0)),new e.C.ia(u).nodes(h)}else if(p=e.h.childNodes(u),0"u"&&(s=[s]),l=l||{};var m=e.a.g.get(i,n),o=!m,v=[],d=0,y=0,b=[],g=[],w=[],x=[],T=[],C,N=0;if(o)e.a.D(s,a);else{if(!u||m&&m._countWaitingForRemove){var S=e.a.Mb(m,function(D){return D.Aa});u=e.a.Pb(S,s,{dontLimitMoves:l.dontLimitMoves,sparse:!0})}for(var S=0,M,j,R;M=u[S];S++)switch(j=M.moved,R=M.index,M.status){case"deleted":for(;de.a.W)&&t.nodes?t.nodes():null)?e.a.la(n.cloneNode(!0).childNodes):(t=t.text(),e.a.ua(t,i))},e.ba.Ma=new e.ba,e.gc(e.ba.Ma),e.b("nativeTemplateEngine",e.ba),function(){e.$a=function(){var n=this.Hd=function(){if(!_||!_.tmpl)return 0;try{if(0<=_.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch{}return 1}();this.renderTemplateSource=function(r,i,s,c){if(c=c||A,s=s||{},2>n)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var l=r.data("precompiled");return l||(l=r.text()||"",l=_.template(null,"{{ko_with $item.koBindingContext}}"+l+"{{/ko_with}}"),r.data("precompiled",l)),r=[i.$data],i=_.extend({koBindingContext:i},s.templateOptions),i=_.tmpl(l,r,i),i.appendTo(c.createElement("div")),_.fragments={},i},this.createJavaScriptEvaluatorBlock=function(r){return"{{ko_code ((function() { return "+r+" })()) }}"},this.addTemplate=function(r,i){A.write("