/*! * Knockout JavaScript library v3.5.0-pre * (c) The Knockout.js team - http://knockoutjs.com/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ (function() {(function(n){var y=this||(0,eval)("this"),t=y.document,N=y.navigator,w=y.jQuery,I=y.JSON;(function(n){"function"===typeof define&&define.amd?define(["exports","require"],n):"object"===typeof exports&&"object"===typeof module?n(module.exports||exports):n(y.ko={})})(function(O,P){function K(a,c){return null===a||typeof a in T?a===c:!1}function U(b,c){var d;return function(){d||(d=a.a.setTimeout(function(){d=n;b()},c))}}function V(b,c){var d;return function(){clearTimeout(d);d=a.a.setTimeout(b,c)}}function W(a, c){c&&"change"!==c?"beforeChange"===c?this.Vb(a):this.Ua(a,c):this.Wb(a)}function X(a,c){null!==c&&c.o&&c.o()}function Y(a,c){var d=this.Wc,e=d[u];e.da||(this.Ab&&this.$a[c]?(d.Zb(c,a,this.$a[c]),this.$a[c]=null,--this.Ab):e.F[c]||d.Zb(c,a,e.G?{ta:a}:d.Ic(a)),a.tb&&a.Rc())}function L(b,c,d,e){a.f[b]={init:function(b,h,g,l,k){var m,q;a.u(function(){var l=h(),g=a.a.c(l),g=c?null!=g:!d!==!g,z=!q;if(z||c||g!==m)z&&a.Ja.Na()&&(q=a.a.wa(a.g.childNodes(b),!0)),g?(z||a.g.oa(b,a.a.wa(q)),a.Ga(e?e(k,l):k,b)): a.g.Ka(b),m=g},null,{l:b});return{controlsDescendantBindings:!0}}};a.j.Ia[b]=!1;a.g.$[b]=!0}var a="undefined"!==typeof O?O:{};a.b=function(b,c){for(var d=b.split("."),e=a,f=0;fa.a.A(c,b[d])&&c.push(b[d]);return c},ub:function(a,b){a=a||[];for(var c=[],d=0,e=a.length;dk?d&&b.push(c):d||b.splice(k,1)},va:h,extend:c,setPrototypeOf:d,nb:h?d:c,L:b,Qa:function(a,b){if(!a)return a;var c={},d;for(d in a)f.call(a,d)&&(c[d]=b(a[d],d,a));return c},Db:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},wc:function(b){b=a.a.fa(b);for(var c=(b[0]&&b[0].ownerDocument||t).createElement("div"),d=0,e=b.length;dq?a.setAttribute("selected",b):a.selected=b},pb:function(a){return null===a||a===n?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ad:function(a,b){a=a||"";return b.length>a.length?!1:a.substring(0,b.length)===b},ad:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(1!==a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16== (b.compareDocumentPosition(a)&16);for(;a&&a!=b;)a=a.parentNode;return!!a},Cb:function(b){return a.a.ad(b,b.ownerDocument.documentElement)},$b:function(b){return!!a.a.bc(b,a.a.Cb)},K:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},fc:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(c){throw a.onError&&a.onError(c),c;}}:b},setTimeout:function(b,c){return setTimeout(a.a.fc(b),c)},kc:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},C:function(b, c,d){var e=a.a.fc(d);d=m[c];if(a.options.useOnlyNativeEvents||d||!w)if(d||"function"!=typeof b.addEventListener)if("undefined"!=typeof b.attachEvent){var k=function(a){e.call(b,a)},f="on"+c;b.attachEvent(f,k);a.a.O.Ea(b,function(){b.detachEvent(f,k)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else b.addEventListener(c,e,!1);else p||(p="function"==typeof w(b).on?"on":"bind"),w(b)[p](c,e)},Ra:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent"); var d;"input"===a.a.K(b)&&b.type&&"click"==c.toLowerCase()?(d=b.type,d="checkbox"==d||"radio"==d):d=!1;if(a.options.useOnlyNativeEvents||!w||d)if("function"==typeof t.createEvent)if("function"==typeof b.dispatchEvent)d=t.createEvent(k[c]||"HTMLEvents"),d.initEvent(c,!0,!0,y,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&b.click)b.click();else if("undefined"!=typeof b.fireEvent)b.fireEvent("on"+c);else throw Error("Browser doesn't support triggering events"); else w(b).trigger(c)},c:function(b){return a.J(b)?b():b},Cd:function(b){return a.J(b)?b:a.T(b)},Aa:function(b){return a.J(b)?b.B():b},rb:function(b,c,d){var k;c&&("object"===typeof b.classList?(k=b.classList[d?"add":"remove"],a.a.D(c.match(r),function(a){k.call(b.classList,a)})):"string"===typeof b.className.baseVal?e(b.className,"baseVal",c,d):e(b,"className",c,d))},ob:function(b,c){var d=a.a.c(c);if(null===d||d===n)d="";var e=a.g.firstChild(b);!e||3!=e.nodeType||a.g.nextSibling(e)?a.g.oa(b,[b.ownerDocument.createTextNode(d)]): e.data=d;a.a.fd(b)},Fc:function(a,b){a.name=b;if(7>=q)try{a.mergeAttributes(t.createElement(""),!1)}catch(c){}},fd:function(a){9<=q&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},bd:function(a){if(q){var b=a.style.width;a.style.width=0;a.style.width=b}},vd:function(b,c){b=a.a.c(b);c=a.a.c(c);for(var d=[],e=b;e<=c;e++)d.push(e);return d},fa:function(a){for(var b=[],c=0,d=a.length;c",""],d=[3,"","
"], e=[1,""],f={thead:c,tbody:c,tfoot:c,tr:[2,"","
"],td:d,th:d,option:e,optgroup:e},h=8>=a.a.ca;a.a.za=function(c,d){var e;if(w)if(w.parseHTML)e=w.parseHTML(c,d)||[];else{if((e=w.clean([c],d))&&e[0]){for(var m=e[0];m.parentNode&&11!==m.parentNode.nodeType;)m=m.parentNode;m.parentNode&&m.parentNode.removeChild(m)}}else{(e=d)||(e=t);var m=e.parentWindow||e.defaultView||y,q=a.a.pb(c).toLowerCase(),r=e.createElement("div"),p;p=(q=q.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&& f[q[1]]||b;q=p[0];p="ignored
"+p[1]+c+p[2]+"
";"function"==typeof m.innerShiv?r.appendChild(m.innerShiv(p)):(h&&e.appendChild(r),r.innerHTML=p,h&&r.parentNode.removeChild(r));for(;q--;)r=r.lastChild;e=a.a.fa(r.lastChild.childNodes)}return e};a.a.Mb=function(b,c){a.a.Db(b);c=a.a.c(c);if(null!==c&&c!==n)if("string"!=typeof c&&(c=c.toString()),w)w(b).html(c);else for(var d=a.a.za(c,b.ownerDocument),e=0;eb){if(5E3<=++c){g=f;a.a.kc(Error("'Too much recursion' after processing "+c+" task groups."));break}b=f}try{d()}catch(q){a.a.kc(q)}}}function c(){b();g=f=e.length=0}var d,e=[],f=0,h=1,g=0;y.MutationObserver?d=function(a){var b=t.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c): d=t&&"onreadystatechange"in t.createElement("script")?function(a){var b=t.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;t.documentElement.removeChild(b);b=null;a()};t.documentElement.appendChild(b)}:function(a){setTimeout(a,0)};return{scheduler:d,mb:function(b){f||a.ga.scheduler(c);e[f++]=b;return h++},cancel:function(a){a=a-(h-f);a>=g&&ad[0]?l+d[0]:d[0]), l);for(var l=1===h?l:Math.min(c+(d[1]||0),l),h=c+h-2,H=Math.max(l,h),n=[],Q=[],v=2;cc;c++)b=b();return b})};a.toJSON=function(b,c,d){b=a.Kc(b);return a.a.Ob(b,c,d)};d.prototype={constructor:d,save:function(b,c){var d=a.a.A(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b),this.values.push(c))},get:function(b){b=a.a.A(this.keys,b);return 0<=b?this.values[b]:n}}})();a.b("toJS",a.Kc);a.b("toJSON",a.toJSON);(function(){a.m={H:function(b){switch(a.a.K(b)){case "option":return!0===b.__ko__hasDomDataOptionValue__?a.a.h.get(b,a.f.options.Hb):7>=a.a.ca?b.getAttributeNode("value")&& b.getAttributeNode("value").specified?b.value:b.text:b.value;case "select":return 0<=b.selectedIndex?a.m.H(b.options[b.selectedIndex]):n;default:return b.value}},sa:function(b,c,d){switch(a.a.K(b)){case "option":switch(typeof c){case "string":a.a.h.set(b,a.f.options.Hb,n);"__ko__hasDomDataOptionValue__"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.a.h.set(b,a.f.options.Hb,c),b.__ko__hasDomDataOptionValue__=!0,b.value="number"===typeof c?c:""}break;case "select":if(""===c|| null===c)c=n;for(var e=-1,f=0,h=b.options.length,g;f=p){c.push(q&&g.length?{key:q,value:g.join("")}:{unknown:q||g.join("")});q=p=0;g=[];continue}}else if(58===x){if(!p&&!q&&1===g.length){q=g.pop();continue}}else if(47===x&&1=a.a.ca&&b.tagName===c))return c};a.i.Yb=function(c,e,f,h){if(1===e.nodeType){var g=a.i.getComponentNameForNode(e);if(g){c=c||{};if(c.component)throw Error('Cannot use the "component" binding on a custom element matching a component'); var l={name:g,params:b(e,f)};c.component=h?function(){return l}:l}}return c};var c=new a.ba;9>a.a.ca&&(a.i.register=function(a){return function(b){return a.apply(this,arguments)}}(a.i.register),t.createDocumentFragment=function(b){return function(){var c=b(),f=a.i.Oc,h;for(h in f);return c}}(t.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.a.wa(c);a.g.oa(d,b)}function d(a,b,c,d){var e=a.createViewModel;return e?e.call(a, d,{element:b,templateNodes:c}):d}var e=0;a.f.component={init:function(f,h,g,l,k){function m(){var a=q&&q.dispose;"function"===typeof a&&a.call(q);r=q=null}var q,r,p=a.a.fa(a.g.childNodes(f));a.a.O.Ea(f,m);a.u(function(){var g=a.a.c(h()),l,n;"string"===typeof g?l=g:(l=a.a.c(g.name),n=a.a.c(g.params));if(!l)throw Error("No component name specified");var G=r=++e;a.i.get(l,function(e){if(r===G){m();if(!e)throw Error("Unknown component '"+l+"'");c(l,e,f);var g=d(e,f,p,n);e=k.createChildContext(g,b,function(a){a.$component= g;a.$componentTemplateNodes=p});q=g;a.Ga(e,f)}})},null,{l:f});return{controlsDescendantBindings:!0}}};a.g.$.component=!0})();var S={"class":"className","for":"htmlFor"};a.f.attr={update:function(b,c){var d=a.a.c(c())||{};a.a.L(d,function(c,d){d=a.a.c(d);var h=!1===d||null===d||d===n;h&&b.removeAttribute(c);8>=a.a.ca&&c in S?(c=S[c],h?b.removeAttribute(c):b[c]=d):h||b.setAttribute(c,d.toString());"name"===c&&a.a.Fc(b,h?"":d.toString())})}};(function(){a.f.checked={after:["value","attr"],init:function(b, c,d){function e(){var e=b.checked,f=z?h():e;if(!a.Ja.hb()&&(!k||e)){var l=a.s.I(c);if(q){var m=r?l.B():l;p!==f?(e&&(a.a.Fa(m,f,!0,g),a.a.Fa(m,p,!1,g)),p=f):a.a.Fa(m,f,e,g);r&&a.Oa(l)&&l(m)}else a.j.Ba(l,d,"checked",f,!0)}}function f(){var d=a.a.c(c());q?b.checked=0<=a.a.A(d,h(),g):l?b.checked=d:b.checked=h()===d}var h=a.Ac(function(){return d.has("checkedValue")?a.a.c(d.get("checkedValue")):d.has("value")?a.a.c(d.get("value")):b.value}),g=d.has("checkedArrayContainsObservables")&&d.get("checkedArrayContainsObservables"), l="checkbox"==b.type,k="radio"==b.type;if(l||k){var m=c(),q=l&&a.a.c(m)instanceof Array,r=!(q&&m.push&&m.splice),p=q?h():n,z=k||q;k&&!b.name&&a.f.uniqueName.init(b,function(){return!0});a.u(e,null,{l:b});a.a.C(b,"click",e);a.u(f,null,{l:b});m=n}}};a.j.pa.checked=!0;a.f.checkedValue={update:function(b,c){b.value=a.a.c(c())}}})();a.f["class"]={update:function(b,c){var d=a.a.pb(a.a.c(c()));a.a.rb(b,b.__ko__cssValue,!1);b.__ko__cssValue=d;a.a.rb(b,d,!0)}};a.f.css={update:function(b,c){var d=a.a.c(c()); null!==d&&"object"==typeof d?a.a.L(d,function(c,d){d=a.a.c(d);a.a.rb(b,c,d)}):a.f["class"].update(b,c)}};a.f.enable={update:function(b,c){var d=a.a.c(c());d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.f.disable={update:function(b,c){a.f.enable.update(b,function(){return!a.a.c(c())})}};a.f.event={init:function(b,c,d,e,f){var h=c()||{};a.a.L(h,function(g){"string"==typeof g&&a.a.C(b,g,function(b){var h,m=c()[g];if(m){try{var q=a.a.fa(arguments);e=f.$data;q.unshift(e); h=m.apply(e,q)}finally{!0!==h&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(g+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.f.foreach={vc:function(b){return function(){var c=b(),d=a.a.Aa(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.X.Da};a.a.c(c);return{foreach:d.data,separatorTemplate:d.separatorTemplate,as:d.as,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender, beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.X.Da}}},init:function(b,c){return a.f.template.init(b,a.f.foreach.vc(c))},update:function(b,c,d,e,f){return a.f.template.update(b,a.f.foreach.vc(c),d,e,f)}};a.j.Ia.foreach=!1;a.g.$.foreach=!0;a.f.hasfocus={init:function(b,c,d){function e(e){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if("activeElement"in f){var h;try{h=f.activeElement}catch(m){h=f.body}e=h===b}f=c();a.j.Ba(f,d,"hasfocus",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating= !1}var f=e.bind(null,!0),h=e.bind(null,!1);a.a.C(b,"focus",f);a.a.C(b,"focusin",f);a.a.C(b,"blur",h);a.a.C(b,"focusout",h)},update:function(b,c){var d=!!a.a.c(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.s.I(a.a.Ra,null,[b,d?"focusin":"focusout"]))}};a.j.pa.hasfocus=!0;a.f.hasFocus=a.f.hasfocus;a.j.pa.hasFocus=!0;a.f.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.a.Mb(b, c())}};L("if");L("ifnot",!1,!0);L("with",!0,!1,function(a,c){return a.hc(c)});a.f.let={init:function(b,c,d,e,f){c=f.extend(c);a.Ga(c,b);return{controlsDescendantBindings:!0}}};a.g.$.let=!0;var M={};a.f.options={init:function(b){if("select"!==a.a.K(b))throw Error("options binding applies only to SELECT elements");for(;0h)var g=a.a.h.S(),l=a.a.h.S(),k=function(b){var c=this.activeElement;(c=c&&a.a.h.get(c,l))&& c(b)},m=function(b,c){var d=b.ownerDocument;a.a.h.get(d,g)||(a.a.h.set(d,g,!0),a.a.C(d,"selectionchange",k));a.a.h.set(b,l,c)};a.f.textInput={init:function(b,c,g){function l(c,d){a.a.C(b,c,d)}function k(){var d=a.a.c(c());if(null===d||d===n)d="";t!==n&&d===t?a.a.setTimeout(k,4):b.value!==d&&(H=d,b.value=d)}function x(){u||(t=b.value,u=a.a.setTimeout(G,4))}function G(){clearTimeout(u);t=u=n;var d=b.value;H!==d&&(H=d,a.j.Ba(c(),g,"textInput",d))}var H=b.value,u,t,v=9==a.a.ca?x:G;h&&l("keypress",G); 11>h&&l("propertychange",function(a){"value"===a.propertyName&&v(a)});8==h&&(l("keyup",G),l("keydown",G));m&&(m(b,v),l("dragend",x));(!h||9<=h)&&l("input",v);5>e&&"textarea"===a.a.K(b)?(l("keydown",x),l("paste",x),l("cut",x)):11>d?l("keydown",x):4>f&&(l("DOMAutoComplete",G),l("dragdrop",G),l("drop",G));l("change",G);l("blur",G);a.u(k,null,{l:b})}};a.j.pa.textInput=!0;a.f.textinput={preprocess:function(a,b,c){c("textInput",a)}}})();a.f.uniqueName={init:function(b,c){if(c()){var d="ko_unique_"+ ++a.f.uniqueName.Xc; a.a.Fc(b,d)}}};a.f.uniqueName.Xc=0;a.f.using={init:function(b,c,d,e,f){c=f.createChildContext(c);a.Ga(c,b);return{controlsDescendantBindings:!0}}};a.g.$.using=!0;a.f.value={after:["options","foreach"],init:function(b,c,d){var e=a.a.K(b),f="input"==e;if(!f||"checkbox"!=b.type&&"radio"!=b.type){var h=["change"],g=d.get("valueUpdate"),l=!1,k=null;g&&("string"==typeof g&&(g=[g]),a.a.Ya(h,g),h=a.a.cc(h));var m=function(){a.ja.Kb(function(){k=null;l=!1;var e=c(),f=a.m.H(b);a.j.Ba(e,d,"value",f)})};!a.a.ca|| !f||"text"!=b.type||"off"==b.autocomplete||b.form&&"off"==b.form.autocomplete||-1!=a.a.A(h,"propertychange")||(a.a.C(b,"propertychange",function(){l=!0}),a.a.C(b,"focus",function(){l=!1}),a.a.C(b,"blur",function(){l&&m()}));a.a.D(h,function(c){var d=m;a.a.Ad(c,"after")&&(d=function(){k=a.m.H(b);a.a.setTimeout(m,0)},c=c.substring(5));a.a.C(b,c,d)});var q;q=f&&"file"==b.type?function(){var d=a.a.c(c());null===d||d===n||""===d?b.value="":m()}:function(){var f=a.a.c(c()),g=a.m.H(b);if(null!==k&&f===k)a.a.setTimeout(q, 0);else if(f!==g)if("select"===e){var l=d.get("valueAllowUnset"),h=function(){a.m.sa(b,f,l);a.j.Ba(c(),d,"value",f)};a.ja.Kb(function(){h();l||f===a.m.H(b)?a.a.setTimeout(h,0):a.s.I(a.a.Ra,null,[b,"change"])})}else a.m.sa(b,f)};a.u(q,null,{l:b})}else a.Wa(b,{checkedValue:c})},update:function(){}};a.j.pa.value=!0;a.f.visible={update:function(b,c){var d=a.a.c(c()),e="none"!=b.style.display;d&&!e?b.style.display="":!d&&e&&(b.style.display="none")}};(function(b){a.f[b]={init:function(c,d,e,f,h){return a.f.event.init.call(this, c,function(){var a={};a[b]=d();return a},e,f,h)}}})("click");a.Y=function(){};a.Y.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource");};a.Y.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock");};a.Y.prototype.makeTemplateSource=function(b,c){if("string"==typeof b){c=c||t;var d=c.getElementById(b);if(!d)throw Error("Cannot find template with ID "+b);return new a.w.v(d)}if(1==b.nodeType||8==b.nodeType)return new a.w.ha(b); throw Error("Unknown template type: "+b);};a.Y.prototype.renderTemplate=function(a,c,d,e){a=this.makeTemplateSource(a,e);return this.renderTemplateSource(a,c,d,e)};a.Y.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.Y.prototype.rewriteTemplate=function(a,c,d){a=this.makeTemplateSource(a,d);c=c(a.text());a.text(c);a.data("isRewritten",!0)};a.b("templateEngine",a.Y);a.Qb=function(){function b(b,c,d,g){b=a.j.Ib(b); for(var l=a.j.Ia,k=0;k]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi, d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{cd:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.Qb.rd(b,c)},d)},rd:function(a,f){return a.replace(c,function(a,c,d,e,m){return b(m,c,d,f)}).replace(d,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},Tc:function(b,c){return a.W.Gb(function(d,g){var l=d.nextSibling;l&&l.nodeName.toLowerCase()===c&&a.Wa(l,b,g)})}}}();a.b("__tr_ambtns",a.Qb.Tc);(function(){a.w={};a.w.v=function(b){if(this.v=b){var c= a.a.K(b);this.qb="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.w.v.prototype.text=function(){var b=1===this.qb?"text":2===this.qb?"value":"innerHTML";if(0==arguments.length)return this.v[b];var c=arguments[0];"innerHTML"===b?a.a.Mb(this.v,c):this.v[b]=c};var b=a.a.h.S()+"_";a.w.v.prototype.data=function(c){if(1===arguments.length)return a.a.h.get(this.v,b+c);a.a.h.set(this.v,b+c,arguments[1])};var c=a.a.h.S();a.w.v.prototype.nodes=function(){var b=this.v; if(0==arguments.length)return(a.a.h.get(b,c)||{}).yb||(3===this.qb?b.content:4===this.qb?b:n);a.a.h.set(b,c,{yb:arguments[0]})};a.w.ha=function(a){this.v=a};a.w.ha.prototype=new a.w.v;a.w.ha.prototype.constructor=a.w.ha;a.w.ha.prototype.text=function(){if(0==arguments.length){var b=a.a.h.get(this.v,c)||{};b.Rb===n&&b.yb&&(b.Rb=b.yb.innerHTML);return b.Rb}a.a.h.set(this.v,c,{Rb:arguments[0]})};a.b("templateSources",a.w);a.b("templateSources.domElement",a.w.v);a.b("templateSources.anonymousTemplate", a.w.ha)})();(function(){function b(b,c,d){var e;for(c=a.g.nextSibling(c);b&&(e=b)!==c;)b=a.g.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],g=e.parentNode,h=a.ba.instance,n=h.preprocessNode;if(n){b(e,f,function(a,b){var c=a.previousSibling,d=n.call(h,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;if(!e)return;e===f?c.push(e):(c.push(e,f),a.a.Ma(c,g))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.ac(d,b)});b(e,f,function(b){1!==b.nodeType&& 8!==b.nodeType||a.W.Mc(b,[d])});a.a.Ma(c,g)}}function d(a){return a.nodeType?a:0a.a.ca?0:b.nodes)? b.nodes():null)return a.a.fa(c.cloneNode(!0).childNodes);b=b.text();return a.a.za(b,e)};a.X.Da=new a.X;a.Nb(a.X.Da);a.b("nativeTemplateEngine",a.X);(function(){a.Pa=function(){var a=this.nd=function(){if(!w||!w.tmpl)return 0;try{if(0<=w.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(a){}return 1}();this.renderTemplateSource=function(b,e,f,h){h=h||t;f=f||{};if(2>a)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var g=b.data("precompiled"); g||(g=b.text()||"",g=w.template(null,"{{ko_with $item.koBindingContext}}"+g+"{{/ko_with}}"),b.data("precompiled",g));b=[e.$data];e=w.extend({koBindingContext:e},f.templateOptions);e=w.tmpl(g,b,e);e.appendTo(h.createElement("div"));w.fragments={};return e};this.createJavaScriptEvaluatorBlock=function(a){return"{{ko_code ((function() { return "+a+" })()) }}"};this.addTemplate=function(a,b){t.write("