(()=>{var e={527:(e,t,n)=>{var a,r,i;!function(o){var u=this||(0,eval)("this"),c=u.document,s=u.navigator,l=u.jQuery,f=u.JSON;l||"undefined"==typeof jQuery||(l=jQuery),function(o){r=[t,n],void 0===(i="function"==typeof(a=o)?a.apply(t,r):a)||(e.exports=i)}((function(e,t){function n(e,t){return(null===e||typeof e in x)&&e===t}function a(e,t){var n;return function(){n||(n=w.a.setTimeout((function(){n=o,e()}),t))}}function r(e,t){var n;return function(){clearTimeout(n),n=w.a.setTimeout(e,t)}}function i(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function p(e,t){var n=this.qd,a=n[N];a.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):a.I[t]||n.uc(t,e,a.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var h,b,v,g,m,y,w=void 0!==e?e:{};w.b=function(e,t){for(var n=e.split("."),a=w,r=0;r<n.length-1;r++)a=a[n[r]];a[n[n.length-1]]=t},w.L=function(e,t,n){e[t]=n},w.version="3.5.1",w.b("version",w.version),w.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},w.a=function(){function e(e,t){for(var n in e)r.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function a(e,t,n,a){var r=e[t].match(m)||[];w.a.D(n.match(m),(function(e){w.a.Na(r,e,a)})),e[t]=r.join(" ")}var r=Object.prototype.hasOwnProperty,i={__proto__:[]}instanceof Array,d="function"==typeof Symbol,p={},h={};p[s&&/Firefox\/2/i.test(s.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],p.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(p,(function(e,t){if(t.length)for(var n=0,a=t.length;n<a;n++)h[t[n]]=e}));var b,v={propertychange:!0},g=c&&function(){for(var e=3,t=c.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:o}(),m=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var a=0,r=e.length;a<r;a++)t.call(n,e[a],a,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var a=0,r=e.length;a<r;a++)if(t.call(n,e[a],a,e))return e[a];return o},Pa:function(e,t){var n=w.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&w.a.D(e,(function(e){0>w.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)a.push(t.call(n,e[r],r));return a},jb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r)&&a.push(e[r]);return a},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,a=t.length;n<a;n++)e.push(t[n]);return e},Na:function(e,t,n){var a=w.a.A(w.a.bc(e),t);0>a?n&&e.push(t):n||e.splice(a,1)},Ba:i,extend:t,setPrototypeOf:n,Ab:i?n:t,P:e,Ga:function(e,t,n){if(!e)return e;var a,i={};for(a in e)r.call(e,a)&&(i[a]=t.call(n,e[a],a,e));return i},Tb:function(e){for(;e.firstChild;)w.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=w.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),n=0,a=e.length;n<a;n++)t.appendChild(w.oa(e[n]));return t},Ca:function(e,t){for(var n=0,a=e.length,r=[];n<a;n++){var i=e[n].cloneNode(!0);r.push(t?w.oa(i):i)}return r},va:function(e,t){if(w.a.Tb(e),t)for(var n=0,a=t.length;n<a;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var a=n[0],r=a.parentNode,i=0,o=t.length;i<o;i++)r.insertBefore(t[i],a);for(i=0,o=n.length;i<o;i++)w.removeNode(n[i])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],a=e[e.length-1];for(e.length=0;n!==a;)e.push(n),n=n.nextSibling;e.push(a)}}return e},Zc:function(e,t){7>g?e.setAttribute("selected",t):e.selected=t},Db:function(e){return null===e||e===o?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return w.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!w.a.Lb(e,w.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return w.onError?function(){try{return e.apply(this,arguments)}catch(e){throw w.onError&&w.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(w.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw w.onError&&w.onError(e),e}),0)},B:function(e,t,n){var a=w.a.Ac(n);if(n=v[t],w.options.useOnlyNativeEvents||n||!l)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var r=function(t){a.call(e,t)},i="on"+t;e.attachEvent(i,r),w.a.K.za(e,(function(){e.detachEvent(i,r)}))}else e.addEventListener(t,a,!1);else b||(b="function"==typeof l(e).on?"on":"bind"),l(e)[b](t,a)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==w.a.R(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(n=e.type)&&"radio"!=n),w.options.useOnlyNativeEvents||!l||n)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=c.createEvent(h[t]||"HTMLEvents")).initEvent(t,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else l(e).trigger(t)},f:function(e){return w.O(e)?e():e},bc:function(e){return w.O(e)?e.v():e},Eb:function(e,t,n){var r;t&&("object"==typeof e.classList?(r=e.classList[n?"add":"remove"],w.a.D(t.match(m),(function(t){r.call(e.classList,t)}))):"string"==typeof e.className.baseVal?a(e.className,"baseVal",t,n):a(e,"className",t,n))},Bb:function(e,t){var n=w.a.f(t);null!==n&&n!==o||(n="");var a=w.h.firstChild(e);!a||3!=a.nodeType||w.h.nextSibling(a)?w.h.va(e,[e.ownerDocument.createTextNode(n)]):a.data=n,w.a.Ad(e)},Yc:function(e,t){if(e.name=t,7>=g)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},Ad:function(e){9<=g&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(g){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=w.a.f(e),t=w.a.f(t);for(var n=[],a=e;a<=t;a++)n.push(a);return n},la:function(e){for(var t=[],n=0,a=e.length;n<a;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Zd:6===g,$d:7===g,W:g,Lc:function(e,t){for(var n=w.a.la(e.getElementsByTagName("input")).concat(w.a.la(e.getElementsByTagName("textarea"))),a="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},r=[],i=n.length-1;0<=i;i--)a(n[i])&&r.push(n[i]);return r},Nd:function(e){return"string"==typeof e&&(e=w.a.Db(e))?f&&f.parse?f.parse(e):new Function("return "+e)():null},hc:function(e,t,n){if(!f||!f.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return f.stringify(w.a.f(e),t,n)},Od:function(t,n,a){var r=(a=a||{}).params||{},i=a.includeFields||this.Jc,o=t;if("object"==typeof t&&"form"===w.a.R(t)){o=t.action;for(var u=i.length-1;0<=u;u--)for(var s=w.a.Lc(t,i[u]),l=s.length-1;0<=l;l--)r[s[l].name]=s[l].value}n=w.a.f(n);var f=c.createElement("form");for(var d in f.style.display="none",f.action=o,f.method="post",n)(t=c.createElement("input")).type="hidden",t.name=d,t.value=w.a.hc(w.a.f(n[d])),f.appendChild(t);e(r,(function(e,t){var n=c.createElement("input");n.type="hidden",n.name=e,n.value=t,f.appendChild(n)})),c.body.appendChild(f),a.submitter?a.submitter(f):f.submit(),setTimeout((function(){f.parentNode.removeChild(f)}),0)}}}(),w.b("utils",w.a),w.b("utils.arrayForEach",w.a.D),w.b("utils.arrayFirst",w.a.Lb),w.b("utils.arrayFilter",w.a.jb),w.b("utils.arrayGetDistinctValues",w.a.wc),w.b("utils.arrayIndexOf",w.a.A),w.b("utils.arrayMap",w.a.Mb),w.b("utils.arrayPushAll",w.a.Nb),w.b("utils.arrayRemoveItem",w.a.Pa),w.b("utils.cloneNodes",w.a.Ca),w.b("utils.createSymbolOrString",w.a.Da),w.b("utils.extend",w.a.extend),w.b("utils.fieldsIncludedWithJsonPost",w.a.Jc),w.b("utils.getFormFields",w.a.Lc),w.b("utils.objectMap",w.a.Ga),w.b("utils.peekObservable",w.a.bc),w.b("utils.postJson",w.a.Od),w.b("utils.parseJson",w.a.Nd),w.b("utils.registerEventHandler",w.a.B),w.b("utils.stringifyJson",w.a.hc),w.b("utils.range",w.a.Pd),w.b("utils.toggleDomNodeCssClass",w.a.Eb),w.b("utils.triggerEvent",w.a.Fb),w.b("utils.unwrapObservable",w.a.f),w.b("utils.objectForEach",w.a.P),w.b("utils.addOrRemoveItem",w.a.Na),w.b("utils.setTextContent",w.a.Bb),w.b("unwrap",w.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var a=n.slice(0);return a.push.apply(a,arguments),t.apply(e,a)}}),w.a.g=new function(){var e,t,n=0,a="__ko__"+(new Date).getTime(),r={};return w.a.W?(e=function(e,t){var i=e[a];if(!i||"null"===i||!r[i]){if(!t)return o;i=e[a]="ko"+n++,r[i]={}}return r[i]},t=function(e){var t=e[a];return!!t&&(delete r[t],e[a]=null,!0)}):(e=function(e,t){var n=e[a];return!n&&t&&(n=e[a]={}),n},t=function(e){return!!e[a]&&(delete e[a],!0)}),{get:function(t,n){var a=e(t,!1);return a&&a[n]},set:function(t,n,a){(t=e(t,a!==o))&&(t[n]=a)},Ub:function(t,n,a){return(t=e(t,!0))[n]||(t[n]=a)},clear:t,Z:function(){return n+++a}}},w.b("utils.domData",w.a.g),w.b("utils.domData.clear",w.a.g.clear),w.a.K=new function(){function e(e,t){var n=w.a.g.get(e,a);return n===o&&t&&(n=[],w.a.g.set(e,a,n)),n}function t(t){if(a=e(t,!1))for(var a=a.slice(0),r=0;r<a.length;r++)a[r](t);w.a.g.clear(t),w.a.K.cleanExternalData(t),i[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var a,r=[],i=0;i<e.length;i++)if((!n||8===e[i].nodeType)&&(t(r[r.length]=a=e[i]),e[i]!==a))for(;i--&&-1==w.a.A(r,e[i]););}var a=w.a.g.Z(),r={1:!0,8:!0,9:!0},i={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(t,n){var r=e(t,!1);r&&(w.a.Pa(r,n),0==r.length&&w.a.g.set(t,a,o))},oa:function(e){return w.u.G((function(){r[e.nodeType]&&(t(e),i[e.nodeType]&&n(e.getElementsByTagName("*")))})),e},removeNode:function(e){w.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){l&&"function"==typeof l.cleanData&&l.cleanData([e])}}},w.oa=w.a.K.oa,w.removeNode=w.a.K.removeNode,w.b("cleanNode",w.oa),w.b("removeNode",w.removeNode),w.b("utils.domNodeDisposal",w.a.K),w.b("utils.domNodeDisposal.addDisposeCallback",w.a.K.za),w.b("utils.domNodeDisposal.removeDisposeCallback",w.a.K.yb),h=[0,"",""],m={thead:b=[1,"<table>","</table>"],tbody:b,tfoot:b,tr:[2,"<table><tbody>","</tbody></table>"],td:v=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:v,option:g=[1,"<select multiple='multiple'>","</select>"],optgroup:g},y=8>=w.a.W,w.a.ua=function(e,t){var n;if(l){if(l.parseHTML)n=l.parseHTML(e,t)||[];else if((n=l.clean([e],t))&&n[0]){for(var a=n[0];a.parentNode&&11!==a.parentNode.nodeType;)a=a.parentNode;a.parentNode&&a.parentNode.removeChild(a)}}else{(n=t)||(n=c),a=n.parentWindow||n.defaultView||u;var r,i=w.a.Db(e).toLowerCase(),o=n.createElement("div");for(r=(i=i.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&m[i[1]]||h,i=r[0],r="ignored<div>"+r[1]+e+r[2]+"</div>","function"==typeof a.innerShiv?o.appendChild(a.innerShiv(r)):(y&&n.body.appendChild(o),o.innerHTML=r,y&&o.parentNode.removeChild(o));i--;)o=o.lastChild;n=w.a.la(o.lastChild.childNodes)}return n},w.a.Md=function(e,t){var n=w.a.ua(e,t);return n.length&&n[0].parentElement||w.a.Yb(n)},w.a.fc=function(e,t){if(w.a.Tb(e),null!==(t=w.a.f(t))&&t!==o)if("string"!=typeof t&&(t=t.toString()),l)l(e).html(t);else for(var n=w.a.ua(t,e.ownerDocument),a=0;a<n.length;a++)e.appendChild(n[a])},w.b("utils.parseHtmlFragment",w.a.ua),w.b("utils.setHtml",w.a.fc),w.aa=function(){function e(t,n){if(t)if(8==t.nodeType)null!=(a=w.aa.Uc(t.nodeValue))&&n.push({ud:t,Kd:a});else if(1==t.nodeType)for(var a=0,r=t.childNodes,i=r.length;a<i;a++)e(r[a],n)}var t={};return{Xb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(e,n){var a=t[e];if(a===o)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return a.apply(null,n||[]),!0}finally{delete t[e]}},cd:function(t,n){var a=[];e(t,a);for(var r=0,i=a.length;r<i;r++){var o=a[r].ud,u=[o];n&&w.a.Nb(u,n),w.aa.bd(a[r].Kd,u),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),w.b("memoization",w.aa),w.b("memoization.memoize",w.aa.Xb),w.b("memoization.unmemoize",w.aa.bd),w.b("memoization.parseMemoText",w.aa.Uc),w.b("memoization.unmemoizeDomNodeAndDescendants",w.aa.cd),w.na=function(){function e(){if(r)for(var e,t=r,n=0;o<r;)if(e=a[o++]){if(o>t){if(5e3<=++n){o=r,w.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=r}try{e()}catch(e){w.a.Gc(e)}}}function t(){e(),o=r=a.length=0}var n,a=[],r=0,i=1,o=0;return n=u.MutationObserver?function(e){var t=c.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):c&&"onreadystatechange"in c.createElement("script")?function(e){var t=c.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,c.documentElement.removeChild(t),t=null,e()},c.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,zb:function(e){return r||w.na.scheduler(t),a[r++]=e,i++},cancel:function(e){(e-=i-r)>=o&&e<r&&(a[e]=null)},resetForTesting:function(){var e=r-o;return o=r=a.length=0,e},Sd:e}}(),w.b("tasks",w.na),w.b("tasks.schedule",w.na.zb),w.b("tasks.runEarly",w.na.Sd),w.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return w.$({read:e,write:function(a){clearTimeout(n),n=w.a.setTimeout((function(){e(a)}),t)}})},rateLimit:function(e,t){var n,i,o;"number"==typeof t?n=t:(n=t.timeout,i=t.method),e.Hb=!1,o="function"==typeof i?i:"notifyWhenChangesStop"==i?r:a,e.ub((function(e){return o(e,n,t)}))},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub((function(t){var n,a=!1;return function(){if(!a){w.na.cancel(n),n=w.na.zb(t);try{a=!0,e.notifySubscribers(o,"dirty")}finally{a=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var x={undefined:1,boolean:1,number:1,string:1};w.b("extenders",w.Ta),w.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,w.L(this,"dispose",this.s),w.L(this,"disposeWhenNodeIsRemoved",this.l)},w.ic.prototype.s=function(){this.Ib||(this.fb&&w.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},w.ic.prototype.l=function(e){this.Jb=e,w.a.K.za(e,this.fb=this.s.bind(this))},w.T=function(){w.a.Ab(this,C),C.qb(this)};var C={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var a=this;n=n||"change";var r=new w.ic(a,t?e.bind(t):e,(function(){w.a.Pa(a.U[n],r),a.hb&&a.hb(n)}));return a.Qa&&a.Qa(n),a.U[n]||(a.U[n]=[]),a.U[n].push(r),r},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var n="change"===t&&this.ed||this.U[t].slice(0);try{w.u.xc();for(var a,r=0;a=n[r];++r)a.Ib||a.lc(e)}finally{w.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var t,n,a,r,o,u=this,c=w.O(u);u.gb||(u.gb=u.notifySubscribers,u.notifySubscribers=i);var s=e((function(){u.Ja=!1,c&&r===u&&(r=u.nc?u.nc():u());var e=n||o&&u.sb(a,r);o=n=t=!1,e&&u.gb(a=r)}));u.qc=function(e,n){n&&u.Ja||(o=!n),u.ed=u.U.change.slice(0),u.Ja=t=!0,r=e,s()},u.pc=function(e){t||(a=e,u.gb(e,"beforeChange"))},u.rc=function(){o=!0},u.gd=function(){u.sb(a,u.v(!0))&&(n=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return w.a.P(this.U,(function(e,n){"dirty"!==e&&(t+=n.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&w.a.P(e,(function(e,n){var a=w.Ta[e];"function"==typeof a&&(t=a(t,n)||t)})),t}};w.L(C,"init",C.qb),w.L(C,"subscribe",C.subscribe),w.L(C,"extend",C.extend),w.L(C,"getSubscriptionsCount",C.Bd),w.a.Ba&&w.a.setPrototypeOf(C,Function.prototype),w.T.fn=C,w.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},w.b("subscribable",w.T),w.b("isSubscribable",w.Qc),w.S=w.u=function(){function e(e){a.push(n),n=e}function t(){n=a.pop()}var n,a=[],r=0;return{xc:e,end:t,cc:function(e){if(n){if(!w.Qc(e))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,e,e.fd||(e.fd=++r))}},G:function(n,a,r){try{return e(),n.apply(a,r||[])}finally{t()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),w.b("computedContext",w.S),w.b("computedContext.getDependenciesCount",w.S.qa),w.b("computedContext.getDependencies",w.S.Va),w.b("computedContext.isInitial",w.S.Ya),w.b("computedContext.registerDependency",w.S.cc),w.b("ignoreDependencies",w.Yd=w.u.G);var E=w.a.Da("_latestValue");w.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[E],arguments[0])&&(t.ya(),t[E]=arguments[0],t.xa()),this):(w.u.cc(t),t[E])}return t[E]=e,w.a.Ba||w.a.extend(t,w.T.fn),w.T.fn.qb(t),w.a.Ab(t,k),w.options.deferUpdates&&w.Ta.deferred(t,!0),t};var k={equalityComparer:n,v:function(){return this[E]},xa:function(){this.notifySubscribers(this[E],"spectate"),this.notifySubscribers(this[E])},ya:function(){this.notifySubscribers(this[E],"beforeChange")}};w.a.Ba&&w.a.setPrototypeOf(k,w.T.fn);var T=w.ta.Ma="__ko_proto__";k[T]=w.ta,w.O=function(e){if((e="function"==typeof e&&e[T])&&e!==k[T]&&e!==w.o.fn[T])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},w.Za=function(e){return"function"==typeof e&&(e[T]===k[T]||e[T]===w.o.fn[T]&&e.Nc)},w.b("observable",w.ta),w.b("isObservable",w.O),w.b("isWriteableObservable",w.Za),w.b("isWritableObservable",w.Za),w.b("observable.fn",k),w.L(k,"peek",k.v),w.L(k,"valueHasMutated",k.xa),w.L(k,"valueWillMutate",k.ya),w.Ha=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=w.ta(e),w.a.Ab(e,w.Ha.fn),e.extend({trackArrayChanges:!0})},w.Ha.fn={remove:function(e){for(var t=this.v(),n=[],a="function"!=typeof e||w.O(e)?function(t){return t===e}:e,r=0;r<t.length;r++){var i=t[r];if(a(i)){if(0===n.length&&this.ya(),t[r]!==i)throw Error("Array modified during remove; cannot remove item");n.push(i),t.splice(r,1),r--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===o){var t=this.v(),n=t.slice(0);return this.ya(),t.splice(0,t.length),this.xa(),n}return e?this.remove((function(t){return 0<=w.a.A(e,t)})):[]},destroy:function(e){var t=this.v(),n="function"!=typeof e||w.O(e)?function(t){return t===e}:e;this.ya();for(var a=t.length-1;0<=a;a--){var r=t[a];n(r)&&(r._destroy=!0)}this.xa()},destroyAll:function(e){return e===o?this.destroy((function(){return!0})):e?this.destroy((function(t){return 0<=w.a.A(e,t)})):[]},indexOf:function(e){var t=this();return w.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.ya(),this.v()[n]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},w.a.Ba&&w.a.setPrototypeOf(w.Ha.fn,w.ta.fn),w.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){w.Ha.fn[e]=function(){var t=this.v();this.ya(),this.zc(t,e,arguments);var n=t[e].apply(t,arguments);return this.xa(),n===t?this:n}})),w.a.D(["slice"],(function(e){w.Ha.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),w.Pc=function(e){return w.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},w.b("observableArray",w.Ha),w.b("isObservableArray",w.Pc),w.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(s){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!c||1<s)&&(c=w.a.Pb(i,n,e.Ob)),t=c),i=n,c=null,s=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}u?t():(u=!0,r=e.subscribe((function(){++s}),null,"spectate"),i=[].concat(e.v()||[]),c=null,a=e.subscribe(t))}if(e.Ob={},t&&"object"==typeof t&&w.a.extend(e.Ob,t),e.Ob.sparse=!0,!e.zc){var a,r,i,u=!1,c=null,s=0,l=e.Qa,f=e.hb;e.Qa=function(t){l&&l.call(e,t),"arrayChange"===t&&n()},e.hb=function(t){f&&f.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(a&&a.s(),r&&r.s(),r=a=null,u=!1,i=o)},e.zc=function(e,t,n){function a(e,t,n){return r[r.length]={status:e,value:t,index:n}}if(u&&!s){var r=[],i=e.length,o=n.length,l=0;switch(t){case"push":l=i;case"unshift":for(t=0;t<o;t++)a("added",n[t],l+t);break;case"pop":l=i-1;case"shift":i&&a("deleted",e[l],l);break;case"splice":t=Math.min(Math.max(0,0>n[0]?i+n[0]:n[0]),i),i=1===o?i:Math.min(t+(n[1]||0),i),o=t+o-2,l=Math.max(i,o);for(var f=[],d=[],p=2;t<l;++t,++p)t<i&&d.push(a("deleted",e[t],t)),t<o&&f.push(a("added",n[p],t));w.a.Kc(d,f);break;default:return}c=r}}}};var N=w.a.Da("_state");w.o=w.$=function(e,t,n){function a(){if(0<arguments.length){if("function"!=typeof r)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return r.apply(i.nb,arguments),this}return i.ra||w.u.cc(a),(i.ka||i.J&&a.Xa())&&a.ha(),i.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var r=n.write,i={X:o,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return a[N]=i,a.Nc="function"==typeof r,w.a.Ba||w.a.extend(a,w.T.fn),w.T.fn.qb(a),w.a.Ab(a,S),n.pure?(i.wb=!0,i.J=!0,w.a.extend(a,D)):n.deferEvaluation&&w.a.extend(a,_),w.options.deferUpdates&&w.Ta.deferred(a,!0),i.l&&(i.jc=!0,i.l.nodeType||(i.l=null)),i.J||n.deferEvaluation||a.ha(),i.l&&a.ja()&&w.a.K.za(i.l,i.Rb=function(){a.s()}),a};var S={equalityComparer:n,qa:function(){return this[N].V},Va:function(){var e=[];return w.a.P(this[N].I,(function(t,n){e[n.Ka]=n.da})),e},Vb:function(e){if(!this[N].V)return!1;var t=this.Va();return-1!==w.a.A(t,e)||!!w.a.Lb(t,(function(t){return t.Vb&&t.Vb(e)}))},uc:function(e,t,n){if(this[N].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[N].I[e]=n,n.Ka=this[N].V++,n.La=t.ob()},Xa:function(){var e,t,n=this[N].I;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[N].rb&&this.Ia(!1)},ja:function(){var e=this[N];return e.ka||0<e.V},Rd:function(){this.Ja?this[N].ka&&(this[N].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,"dirty"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[N].Ic),this[N].Ic=w.a.setTimeout((function(){e.ha(!0)}),t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[N],n=t.Sa,a=!1;if(!t.rb&&!t.ra){if(t.l&&!w.a.Sb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{a=this.zd(e)}finally{t.rb=!1}return a}},zd:function(e){var t=this[N],n=!1,a=t.wb?o:!t.V;n={qd:this,mb:t.I,Qb:t.V},w.u.xc({pd:n,od:p,o:this,Ya:a}),t.I={},t.V=0;var r=this.yd(t,n);return t.V?n=this.sb(t.X,r):(this.s(),n=!0),n&&(t.J?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=r,this.notifySubscribers(t.X,"spectate"),!t.J&&e&&this.notifySubscribers(t.X),this.rc&&this.rc()),a&&this.notifySubscribers(t.X,"awake"),n},yd:function(e,t){try{var n=e.Wc;return e.nb?n.call(e.nb):n()}finally{w.u.end(),t.Qb&&!e.J&&w.a.P(t.mb,d),e.sa=e.ka=!1}},v:function(e){var t=this[N];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){w.T.fn.ub.call(this,e),this.nc=function(){return this[N].J||(this[N].sa?this.ha():this[N].ka=!1),this[N].X},this.Ia=function(e){this.pc(this[N].X),this[N].ka=!0,e&&(this[N].sa=!0),this.qc(this,!e)}},s:function(){var e=this[N];!e.J&&e.I&&w.a.P(e.I,(function(e,t){t.s&&t.s()})),e.l&&e.Rb&&w.a.K.yb(e.l,e.Rb),e.I=o,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=o,e.Sa=o,e.Wc=o,this.Nc||(e.nb=o)}},D={Qa:function(e){var t=this,n=t[N];if(!n.ra&&n.J&&"change"==e){if(n.J=!1,n.sa||t.Xa())n.I=null,n.V=0,t.ha()&&t.Gb();else{var a=[];w.a.P(n.I,(function(e,t){a[t.Ka]=e})),w.a.D(a,(function(e,a){var r=n.I[e],i=t.$c(r.da);i.Ka=a,i.La=r.La,n.I[e]=i})),t.Xa()&&t.ha()&&t.Gb()}n.ra||t.notifySubscribers(n.X,"awake")}},hb:function(e){var t=this[N];t.ra||"change"!=e||this.Wa("change")||(w.a.P(t.I,(function(e,n){n.s&&(t.I[e]={da:n.da,Ka:n.Ka,La:n.La},n.s())})),t.J=!0,this.notifySubscribers(o,"asleep"))},ob:function(){var e=this[N];return e.J&&(e.sa||this.Xa())&&this.ha(),w.T.fn.ob.call(this)}},_={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};w.a.Ba&&w.a.setPrototypeOf(S,w.T.fn);var A=w.ta.Ma;S[A]=w.o,w.Oc=function(e){return"function"==typeof e&&e[A]===S[A]},w.Fd=function(e){return w.Oc(e)&&e[N]&&e[N].wb},w.b("computed",w.o),w.b("dependentObservable",w.o),w.b("isComputed",w.Oc),w.b("isPureComputed",w.Fd),w.b("computed.fn",S),w.L(S,"peek",S.v),w.L(S,"dispose",S.s),w.L(S,"isActive",S.ja),w.L(S,"getDependenciesCount",S.qa),w.L(S,"getDependencies",S.Va),w.xb=function(e,t){return"function"==typeof e?w.o(e,t,{pure:!0}):((e=w.a.extend({},e)).pure=!0,w.o(e,t))},w.b("pureComputed",w.xb),function(){function e(n,a,r){if(r=r||new t,"object"!=typeof(n=a(n))||null===n||n===o||n instanceof RegExp||n instanceof Date||n instanceof String||n instanceof Number||n instanceof Boolean)return n;var i=n instanceof Array?[]:{};return r.save(n,i),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(n,(function(t){var u=a(n[t]);switch(typeof u){case"boolean":case"number":case"string":case"function":i[t]=u;break;case"object":case"undefined":var c=r.get(u);i[t]=c!==o?c:e(u,a,r)}})),i}function t(){this.keys=[],this.values=[]}w.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,(function(e){for(var t=0;w.O(e)&&10>t;t++)e=e();return e}))},w.toJSON=function(e,t,n){return e=w.ad(e),w.a.hc(e,t,n)},t.prototype={constructor:t,save:function(e,t){var n=w.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=w.a.A(this.keys,e))?this.values[e]:o}}}(),w.b("toJS",w.ad),w.b("toJSON",w.toJSON),w.Wd=function(e,t,n){function a(t){var a=w.xb(e,n).extend({ma:"always"}),r=a.subscribe((function(e){e&&(r.s(),t(e))}));return a.notifySubscribers(a.v()),r}return"function"!=typeof Promise||t?a(t.bind(n)):new Promise(a)},w.b("when",w.Wd),w.w={M:function(e){switch(w.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?w.a.g.get(e,w.c.options.$b):7>=w.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex]):o;default:return e.value}},cb:function(e,t,n){switch(w.a.R(e)){case"option":"string"==typeof t?(w.a.g.set(e,w.c.options.$b,o),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(w.a.g.set(e,w.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=o);for(var a,r=-1,i=0,u=e.options.length;i<u;++i)if((a=w.w.M(e.options[i]))==t||""===a&&t===o){r=i;break}(n||0<=r||t===o&&1<e.size)&&(e.selectedIndex=r,6===w.a.W&&w.a.setTimeout((function(){e.selectedIndex=r}),0));break;default:null!==t&&t!==o||(t=""),e.value=t}}},w.b("selectExtensions",w.w),w.b("selectExtensions.readValue",w.w.M),w.b("selectExtensions.writeValue",w.w.cb),w.m=function(){function e(e){123===(e=w.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],o=(e+="\n,").match(a),u=[],c=0;if(1<o.length){for(var s,l=0;s=o[l];++l){var f=s.charCodeAt(0);if(44===f){if(0>=c){n.push(t&&u.length?{key:t,value:u.join("")}:{unknown:t||u.join("")}),t=c=0,u=[];continue}}else if(58===f){if(!c&&!t&&1===u.length){t=u.pop();continue}}else{if(47===f&&1<s.length&&(47===s.charCodeAt(1)||42===s.charCodeAt(1)))continue;47===f&&l&&1<s.length?(f=o[l-1].match(r))&&!i[f[0]]&&(o=(e=e.substr(e.indexOf(s)+1)).match(a),l=-1,s="/"):40===f||123===f||91===f?++c:41===f||125===f||93===f?--c:t||u.length||34!==f&&39!==f||(s=s.slice(1,-1))}u.push(s)}if(0<c)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,a=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),r=/[\])"'A-Za-z0-9_$]+$/,i={in:1,return:1,typeof:1},o={};return{Ra:[],wa:o,ac:e,vb:function(a,r){function i(e,a){var r;if(!l){var f=w.getBindingHandler(e);if(f&&f.preprocess&&!(a=f.preprocess(a,e,i)))return;(f=o[e])&&(r=a,0<=w.a.A(t,r)?r=!1:(f=r.match(n),r=null!==f&&(f[1]?"Object("+f[1]+")"+f[2]:r)),f=r),f&&c.push("'"+("string"==typeof o[e]?o[e]:e)+"':function(_z){"+r+"=_z}")}s&&(a="function(){return "+a+" }"),u.push("'"+e+"':"+a)}var u=[],c=[],s=(r=r||{}).valueAccessors,l=r.bindingParams,f="string"==typeof a?e(a):a;return w.a.D(f,(function(e){i(e.key||e.unknown,e.value)})),c.length&&i("_ko_property_writers","{"+c.join(",")+" }"),u.join(",")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},eb:function(e,t,n,a,r){e&&w.O(e)?!w.Za(e)||r&&e.v()===a||e(a):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](a)}}}(),w.b("expressionRewriting",w.m),w.b("expressionRewriting.bindingRewriteValidators",w.m.Ra),w.b("expressionRewriting.parseObjectLiteral",w.m.ac),w.b("expressionRewriting.preProcessBindings",w.m.vb),w.b("expressionRewriting._twoWayBindings",w.m.wa),w.b("jsonExpressionRewriting",w.m),w.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",w.m.vb),function(){function e(e){return 8==e.nodeType&&i.test(r?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&o.test(r?e.text:e.nodeValue)}function n(n,a){for(var r=n,i=1,o=[];r=r.nextSibling;){if(t(r)&&(w.a.g.set(r,s,!0),0==--i))return o;o.push(r),e(r)&&i++}if(!a)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function a(e,t){var a=n(e,t);return a?0<a.length?a[a.length-1].nextSibling:e.nextSibling:null}var r=c&&"\x3c!--test--\x3e"===c.createComment("test").text,i=r?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,o=r?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,u={ul:!0,ol:!0},s="__ko_matchedEndComment__";w.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t))for(var n=0,a=(t=w.h.childNodes(t)).length;n<a;n++)w.removeNode(t[n]);else w.a.Tb(t)},va:function(t,n){if(e(t)){w.h.Ea(t);for(var a=t.nextSibling,r=0,i=n.length;r<i;r++)a.parentNode.insertBefore(n[r],a)}else w.a.va(t,n)},Vc:function(t,n){var a;e(t)?(a=t.nextSibling,t=t.parentNode):a=t.firstChild,a?n!==a&&t.insertBefore(n,a):t.appendChild(n)},Wb:function(t,n,a){a?(a=a.nextSibling,e(t)&&(t=t.parentNode),a?n!==a&&t.insertBefore(n,a):t.appendChild(n)):w.h.Vc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=a(n)),n.nextSibling&&t(n.nextSibling)){var r=n.nextSibling;if(t(r)&&!w.a.g.get(r,s))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:e,Vd:function(e){return(e=(r?e.text:e.nodeValue).match(i))?e[1]:null},Sc:function(n){if(u[w.a.R(n)]){var r=n.firstChild;if(r)do{if(1===r.nodeType){var i,o=null;if(i=r.firstChild)do{if(o)o.push(i);else if(e(i)){var c=a(i,!0);c?i=c:o=[i]}else t(i)&&(o=[i])}while(i=i.nextSibling);if(i=o)for(o=r.nextSibling,c=0;c<i.length;c++)o?n.insertBefore(i[c],o):n.appendChild(i[c])}}while(r=r.nextSibling)}}}}(),w.b("virtualElements",w.h),w.b("virtualElements.allowedBindings",w.h.ea),w.b("virtualElements.emptyNode",w.h.Ea),w.b("virtualElements.insertAfter",w.h.Wb),w.b("virtualElements.prepend",w.h.Vc),w.b("virtualElements.setDomNodeChildren",w.h.va),w.ga=function(){this.nd={}},w.a.extend(w.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||w.j.getComponentNameForNode(e);case 8:return w.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return w.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return w.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return w.h.Vd(e);default:return null}},parseBindingsString:function(e,t,n,a){try{var r,i=this.nd,o=e+(a&&a.valueAccessors||"");if(!(r=i[o])){var u,c="with($context){with($data||{}){return{"+w.m.vb(e,a)+"}}}";u=new Function("$context","$element",c),r=i[o]=u}return r(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),w.ga.instance=new w.ga,w.b("bindingProvider",w.ga),function(){function e(e){var t=(e=w.a.g.get(e,x))&&e.N;t&&(e.N=null,t.Tc())}function t(t,n,a){this.node=t,this.yc=n,this.kb=[],this.H=!1,n.N||w.a.K.za(t,e),a&&a.N&&(a.N.kb.push(t),this.Kb=a)}function n(e){return function(){return e}}function a(e){return e()}function r(e){return w.a.Ga(w.u.G(e),(function(t,n){return function(){return e()[n]}}))}function i(e,t,a){return"function"==typeof e?r(e.bind(null,t,a)):w.a.Ga(e,n)}function s(e,t){return r(this.getBindings.bind(this,e,t))}function f(e,t){var n=w.h.firstChild(t);if(n){var a,r=w.ga.instance,i=r.preprocessNode;if(i){for(;a=n;)n=w.h.nextSibling(a),i.call(r,a);n=w.h.firstChild(t)}for(;a=n;)n=w.h.nextSibling(a),d(e,a)}w.i.ma(t,w.i.H)}function d(e,t){var n=e,a=1===t.nodeType;a&&w.h.Sc(t),(a||w.ga.instance.nodeHasBindings(t))&&(n=p(t,null,e).bindingContextForDescendants),n&&!m[w.a.R(t)]&&f(n,t)}function p(e,t,n){var r,i=w.a.g.Ub(e,x,{}),u=i.hd;if(!t){if(u)throw Error("You cannot apply bindings multiple times to the same element.");i.hd=!0}if(u||(i.context=n),i.Zb||(i.Zb={}),t&&"function"!=typeof t)r=t;else{var c=w.ga.instance,l=c.getBindingAccessors||s,f=w.$((function(){return(r=t?t(n,e):l.call(c,e,n))&&(n[b]&&n[b](),n[g]&&n[g]()),r}),null,{l:e});r&&f.ja()||(f=null)}var d,p=n;if(r){var h=function(){return w.a.Ga(f?f():r,a)},v=f?function(e){return function(){return a(f()[e])}}:function(e){return r[e]};h.get=function(e){return r[e]&&a(v(e))},h.has=function(e){return e in r},w.i.H in r&&w.i.subscribe(e,w.i.H,(function(){var t=(0,r[w.i.H])();if(t){var n=w.h.childNodes(e);n.length&&t(n,w.Ec(n[0]))}})),w.i.pa in r&&(p=w.i.Cb(e,n),w.i.subscribe(e,w.i.pa,(function(){var t=(0,r[w.i.pa])();t&&w.h.firstChild(e)&&t(e)}))),i=function(e){var t=[],n={},a=[];return w.a.P(e,(function r(i){if(!n[i]){var o=w.getBindingHandler(i);o&&(o.after&&(a.push(i),w.a.D(o.after,(function(t){if(e[t]){if(-1!==w.a.A(a,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+a.join(", "));r(t)}})),a.length--),t.push({key:i,Mc:o})),n[i]=!0}})),t}(r),w.a.D(i,(function(t){var n=t.Mc.init,a=t.Mc.update,i=t.key;if(8===e.nodeType&&!w.h.ea[i])throw Error("The binding '"+i+"' cannot be used with virtual elements");try{"function"==typeof n&&w.u.G((function(){var t=n(e,v(i),h,p.$data,p);if(t&&t.controlsDescendantBindings){if(d!==o)throw Error("Multiple bindings ("+d+" and "+i+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=i}})),"function"==typeof a&&w.$((function(){a(e,v(i),h,p.$data,p)}),null,{l:e})}catch(e){throw e.message='Unable to process binding "'+i+": "+r[i]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:i=d===o,bindingContextForDescendants:i&&p}}function h(e,t){return e&&e instanceof w.fa?e:new w.fa(e,o,o,t)}var b=w.a.Da("_subscribable"),v=w.a.Da("_ancestorBindingInfo"),g=w.a.Da("_dataDependency");w.c={};var m={script:!0,textarea:!0,template:!0};w.getBindingHandler=function(e){return w.c[e]};var y={};w.fa=function(e,t,n,a,r){function i(){var e=f?l():l,r=w.a.f(e);return t?(w.a.extend(c,t),v in t&&(c[v]=t[v])):(c.$parents=[],c.$root=r,c.ko=w),c[b]=u,s?r=c.$data:(c.$rawData=e,c.$data=r),n&&(c[n]=r),a&&a(c,t,r),t&&t[b]&&!w.S.o().Vb(t[b])&&t[b](),d&&(c[g]=d),c.$data}var u,c=this,s=e===y,l=s?o:e,f="function"==typeof l&&!w.O(l),d=r&&r.dataDependency;r&&r.exportDependencies?i():((u=w.xb(i)).v(),u.ja()?u.equalityComparer=null:c[b]=o)},w.fa.prototype.createChildContext=function(e,t,n,a){if(!a&&t&&"object"==typeof t&&(t=(a=t).as,n=a.extend),t&&a&&a.noChildContext){var r="function"==typeof e&&!w.O(e);return new w.fa(y,this,null,(function(a){n&&n(a),a[t]=r?e():e}),a)}return new w.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)}),a)},w.fa.prototype.extend=function(e,t){return new w.fa(y,this,null,(function(t){w.a.extend(t,"function"==typeof e?e(t):e)}),t)};var x=w.a.g.Z();t.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},t.prototype.sd=function(e){w.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},t.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,w.a.K.yb(this.node,e),w.i.ma(this.node,w.i.pa),this.Tc())},w.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(e,t,n,a,r){var i=w.a.g.Ub(e,x,{});return i.Fa||(i.Fa=new w.T),r&&r.notifyImmediately&&i.Zb[t]&&w.u.G(n,a,[e]),i.Fa.subscribe(n,a,t)},ma:function(e,t){var n=w.a.g.get(e,x);if(n&&(n.Zb[t]=!0,n.Fa&&n.Fa.notifySubscribers(e,t),t==w.i.H))if(n.N)n.N.Cc();else if(n.N===o&&n.Fa&&n.Fa.Wa(w.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(e,n){var a=w.a.g.Ub(e,x,{});return a.N||(a.N=new t(e,a,n[v])),n[v]==a?n:n.extend((function(e){e[v]=a}))}},w.Td=function(e){return(e=w.a.g.get(e,x))&&e.context},w.ib=function(e,t,n){return 1===e.nodeType&&w.h.Sc(e),p(e,t,h(n))},w.ld=function(e,t,n){return n=h(n),w.ib(e,i(t,n,e),n)},w.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||f(h(e),t)},w.vc=function(e,t,n){if(!l&&u.jQuery&&(l=u.jQuery),2>arguments.length){if(!(t=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(h(e,n),t)},w.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?o:w.Td(e)},w.Ec=function(e){return(e=w.Dc(e))?e.$data:o},w.b("bindingHandlers",w.c),w.b("bindingEvent",w.i),w.b("bindingEvent.subscribe",w.i.subscribe),w.b("bindingEvent.startPossiblyAsyncContentBinding",w.i.Cb),w.b("applyBindings",w.vc),w.b("applyBindingsToDescendants",w.Oa),w.b("applyBindingAccessorsToNode",w.ib),w.b("applyBindingsToNode",w.ld),w.b("contextFor",w.Dc),w.b("dataFor",w.Ec)}(),function(e){function t(t,a){var o,u=Object.prototype.hasOwnProperty.call(r,t)?r[t]:e;u?u.subscribe(a):((u=r[t]=new w.T).subscribe(a),n(t,(function(e,n){var a=!(!n||!n.synchronous);i[t]={definition:e,Gd:a},delete r[t],o||a?u.notifySubscribers(e):w.na.zb((function(){u.notifySubscribers(e)}))})),o=!0)}function n(e,t){a("getConfig",[e],(function(n){n?a("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function a(t,n,r,i){i||(i=w.j.loaders.slice(0));var o=i.shift();if(o){var u=o[t];if(u){var c=!1;if(u.apply(o,n.concat((function(e){c?r(null):null!==e?r(e):a(t,n,r,i)})))!==e&&(c=!0,!o.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else a(t,n,r,i)}else r(null)}var r={},i={};w.j={get:function(n,a){var r=Object.prototype.hasOwnProperty.call(i,n)?i[n]:e;r?r.Gd?w.u.G((function(){a(r.definition)})):w.na.zb((function(){a(r.definition)})):t(n,a)},Bc:function(e){delete i[e]},oc:a},w.j.loaders=[],w.b("components",w.j),w.b("components.get",w.j.get),w.b("components.clearCachedDefinition",w.j.Bc)}(),function(){function e(e,t,n,a){function r(){0==--u&&a(o)}var o={},u=2,c=n.template;n=n.viewModel,c?i(t,c,(function(t){w.j.oc("loadTemplate",[e,t],(function(e){o.template=e,r()}))})):r(),n?i(t,n,(function(t){w.j.oc("loadViewModel",[e,t],(function(e){o[l]=e,r()}))})):r()}function n(e,t,a){if("function"==typeof t)a((function(e){return new t(e)}));else if("function"==typeof t[l])a(t[l]);else if("instance"in t){var r=t.instance;a((function(){return r}))}else"viewModel"in t?n(e,t.viewModel,a):e("Unknown viewModel value: "+t)}function a(e){switch(w.a.R(e)){case"script":return w.a.ua(e.text);case"textarea":return w.a.ua(e.value);case"template":if(r(e.content))return w.a.Ca(e.content.childNodes)}return w.a.Ca(e.childNodes)}function r(e){return u.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function i(e,n,a){"string"==typeof n.require?t||u.require?(t||u.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),a(e)})):e("Uses require, but no AMD loader is present"):a(n)}function o(e){return function(t){throw Error("Component '"+e+"': "+t)}}var s={};w.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(w.j.tb(e))throw Error("Component "+e+" is already registered");s[e]=t},w.j.tb=function(e){return Object.prototype.hasOwnProperty.call(s,e)},w.j.unregister=function(e){delete s[e],w.j.Bc(e)},w.j.Fc={getConfig:function(e,t){t(w.j.tb(e)?s[e]:null)},loadComponent:function(t,n,a){var r=o(t);i(r,n,(function(n){e(t,r,n,a)}))},loadTemplate:function(e,t,n){if(e=o(e),"string"==typeof t)n(w.a.ua(t));else if(t instanceof Array)n(t);else if(r(t))n(w.a.la(t.childNodes));else if(t.element)if(t=t.element,u.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(a(t));else if("string"==typeof t){var i=c.getElementById(t);i?n(a(i)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,a){n(o(e),t,a)}};var l="createViewModel";w.b("components.register",w.j.register),w.b("components.isRegistered",w.j.tb),w.b("components.unregister",w.j.unregister),w.b("components.defaultLoader",w.j.Fc),w.j.loaders.push(w.j.Fc),w.j.dd=s}(),function(){function e(e,n){if(a=e.getAttribute("params")){var a=t.parseBindingsString(a,n,e,{valueAccessors:!0,bindingParams:!0}),r=(a=w.a.Ga(a,(function(t){return w.o(t,null,{l:e})})),w.a.Ga(a,(function(t){var n=t.v();return t.ja()?w.o({read:function(){return w.a.f(t())},write:w.Za(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(r,"$raw")||(r.$raw=a),r}return{$raw:{}}}w.j.getComponentNameForNode=function(e){var t=w.a.R(e);if(w.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=w.a.W&&e.tagName===t))return t},w.j.tc=function(t,n,a,r){if(1===n.nodeType){var i=w.j.getComponentNameForNode(n);if(i){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var o={name:i,params:e(n,a)};t.component=r?function(){return o}:o}}return t};var t=new w.ga;9>w.a.W&&(w.j.register=function(e){return function(t){return e.apply(this,arguments)}}(w.j.register),c.createDocumentFragment=function(e){return function(){var t,n=e(),a=w.j.dd;for(t in a);return n}}(c.createDocumentFragment))}(),function(){var e=0;w.c.component={init:function(t,n,a,r,i){function o(){var e=u&&u.dispose;"function"==typeof e&&e.call(u),s&&s.s(),c=u=s=null}var u,c,s,l=w.a.la(w.h.childNodes(t));return w.h.Ea(t),w.a.K.za(t,o),w.o((function(){var a,r,f=w.a.f(n());if("string"==typeof f?a=f:(a=w.a.f(f.name),r=w.a.f(f.params)),!a)throw Error("No component name specified");var d=w.i.Cb(t,i),p=c=++e;w.j.get(a,(function(e){if(c===p){if(o(),!e)throw Error("Unknown component '"+a+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=w.a.Ca(t),w.h.va(n,e)}(a,e,t);var n=function(e,t,n){var a=e.createViewModel;return a?a.call(e,t,n):t}(e,r,{element:t,templateNodes:l});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=l}}),n&&n.koDescendantsComplete&&(s=w.i.subscribe(t,w.i.pa,n.koDescendantsComplete,n)),u=n,w.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},w.h.ea.component=!0}();var j={class:"className",for:"htmlFor"};w.c.attr={update:function(e,t){var n=w.a.f(t())||{};w.a.P(n,(function(t,n){n=w.a.f(n);var a=t.indexOf(":"),r=(a="lookupNamespaceURI"in e&&0<a&&e.lookupNamespaceURI(t.substr(0,a)),!1===n||null===n||n===o);r?a?e.removeAttributeNS(a,t):e.removeAttribute(t):n=n.toString(),8>=w.a.W&&t in j?(t=j[t],r?e.removeAttribute(t):e[t]=n):r||(a?e.setAttributeNS(a,t,n):e.setAttribute(t,n)),"name"===t&&w.a.Yc(e,r?"":n)}))}},w.c.checked={after:["value","attr"],init:function(e,t,n){function a(){var a=e.checked,c=r();if(!w.S.Ya()&&(a||!u&&!w.S.qa())){var f=w.u.G(t);if(s){var p=l?f.v():f,h=d;d=c,h!==c?a&&(w.a.Na(p,c,!0),w.a.Na(p,h,!1)):w.a.Na(p,c,a),l&&w.Za(f)&&f(p)}else i&&(c===o?c=a:a||(c=o)),w.m.eb(f,n,"checked",c,!0)}}var r=w.xb((function(){return n.has("checkedValue")?w.a.f(n.get("checkedValue")):f?n.has("value")?w.a.f(n.get("value")):e.value:void 0})),i="checkbox"==e.type,u="radio"==e.type;if(i||u){var c=t(),s=i&&w.a.f(c)instanceof Array,l=!(s&&c.push&&c.splice),f=u||s,d=s?r():o;u&&!e.name&&w.c.uniqueName.init(e,(function(){return!0})),w.o(a,null,{l:e}),w.a.B(e,"click",a),w.o((function(){var n=w.a.f(t()),a=r();s?(e.checked=0<=w.a.A(n,a),d=a):e.checked=i&&a===o?!!n:r()===n}),null,{l:e}),c=o}}},w.m.wa.checked=!0,w.c.checkedValue={update:function(e,t){e.value=w.a.f(t())}},w.c.class={update:function(e,t){var n=w.a.Db(w.a.f(t()));w.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,w.a.Eb(e,n,!0)}},w.c.css={update:function(e,t){var n=w.a.f(t());null!==n&&"object"==typeof n?w.a.P(n,(function(t,n){n=w.a.f(n),w.a.Eb(e,t,n)})):w.c.class.update(e,t)}},w.c.enable={update:function(e,t){var n=w.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},w.c.disable={update:function(e,t){w.c.enable.update(e,(function(){return!w.a.f(t())}))}},w.c.event={init:function(e,t,n,a,r){var i=t()||{};w.a.P(i,(function(i){"string"==typeof i&&w.a.B(e,i,(function(e){var o,u=t()[i];if(u){try{var c=w.a.la(arguments);a=r.$data,c.unshift(a),o=u.apply(a,c)}finally{!0!==o&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(i+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},w.c.foreach={Rc:function(e){return function(){var t=e(),n=w.a.bc(t);return n&&"number"!=typeof n.length?(w.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:w.ba.Ma}):{foreach:t,templateEngine:w.ba.Ma}}},init:function(e,t){return w.c.template.init(e,w.c.foreach.Rc(t))},update:function(e,t,n,a,r){return w.c.template.update(e,w.c.foreach.Rc(t),n,a,r)}},w.m.Ra.foreach=!1,w.h.ea.foreach=!0,w.c.hasfocus={init:function(e,t,n){function a(a){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var i;try{i=r.activeElement}catch(e){i=r.body}a=i===e}r=t(),w.m.eb(r,n,"hasfocus",a,!0),e.__ko_hasfocusLastValue=a,e.__ko_hasfocusUpdating=!1}var r=a.bind(null,!0),i=a.bind(null,!1);w.a.B(e,"focus",r),w.a.B(e,"focusin",r),w.a.B(e,"blur",i),w.a.B(e,"focusout",i),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!w.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),w.u.G(w.a.Fb,null,[e,n?"focusin":"focusout"]))}},w.m.wa.hasfocus=!0,w.c.hasFocus=w.c.hasfocus,w.m.wa.hasFocus="hasfocus",w.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){w.a.fc(e,t())}},function(){function e(e,t,n){w.c[e]={init:function(e,a,r,i,o){var u,c,s,l,f,d={};if(t){i=r.get("as");var p=r.get("noChildContext");d={as:i,noChildContext:p,exportDependencies:f=!(i&&p)}}return l=(s="render"==r.get("completeOn"))||r.has(w.i.pa),w.o((function(){var r,i=w.a.f(a()),p=!n!=!i,h=!c;(f||p!==u)&&(l&&(o=w.i.Cb(e,o)),p&&(t&&!f||(d.dataDependency=w.S.o()),r=t?o.createChildContext("function"==typeof i?i:a,d):w.S.qa()?o.extend(null,d):o),h&&w.S.qa()&&(c=w.a.Ca(w.h.childNodes(e),!0)),p?(h||w.h.va(e,w.a.Ca(c)),w.Oa(r,e)):(w.h.Ea(e),s||w.i.ma(e,w.i.H)),u=p)}),null,{l:e}),{controlsDescendantBindings:!0}}},w.m.Ra[e]=!1,w.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),w.c.let={init:function(e,t,n,a,r){return t=r.extend(t),w.Oa(t,e),{controlsDescendantBindings:!0}}},w.h.ea.let=!0;var O={};w.c.options={init:function(e){if("select"!==w.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function a(){return w.a.jb(e.options,(function(e){return e.selected}))}function r(e,t,n){var a=typeof t;return"function"==a?t(e):"string"==a?e[t]:n}function i(t,n){if(h&&l)w.i.ma(e,w.i.H);else if(p.length){var a=0<=w.a.A(p,w.w.M(n[0]));w.a.Zc(n[0],a),h&&!a&&w.u.G(w.a.Fb,null,[e,"change"])}}var u=e.multiple,c=0!=e.length&&u?e.scrollTop:null,s=w.a.f(t()),l=n.get("valueAllowUnset")&&n.has("value"),f=n.get("optionsIncludeDestroyed");t={};var d,p=[];l||(u?p=w.a.Mb(a(),w.w.M):0<=e.selectedIndex&&p.push(w.w.M(e.options[e.selectedIndex]))),s&&(void 0===s.length&&(s=[s]),d=w.a.jb(s,(function(e){return f||e===o||null===e||!w.a.f(e._destroy)})),n.has("optionsCaption")&&null!==(s=w.a.f(n.get("optionsCaption")))&&s!==o&&d.unshift(O));var h=!1;t.beforeRemove=function(t){e.removeChild(t)},s=i,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(s=function(e,t){i(0,t),w.u.G(n.get("optionsAfterRender"),null,[t[0],e!==O?e:o])}),w.a.ec(e,d,(function(t,a,i){return i.length&&(p=!l&&i[0].selected?[w.w.M(i[0])]:[],h=!0),a=e.ownerDocument.createElement("option"),t===O?(w.a.Bb(a,n.get("optionsCaption")),w.w.cb(a,o)):(i=r(t,n.get("optionsValue"),t),w.w.cb(a,w.a.f(i)),t=r(t,n.get("optionsText"),i),w.a.Bb(a,t)),[a]}),t,s),l||(u?p.length&&a().length<p.length:p.length&&0<=e.selectedIndex?w.w.M(e.options[e.selectedIndex])!==p[0]:p.length||0<=e.selectedIndex)&&w.u.G(w.a.Fb,null,[e,"change"]),(l||w.S.Ya())&&w.i.ma(e,w.i.H),w.a.wd(e),c&&20<Math.abs(c-e.scrollTop)&&(e.scrollTop=c)}},w.c.options.$b=w.a.g.Z(),w.c.selectedOptions={init:function(e,t,n){function a(){var a=t(),r=[];w.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&r.push(w.w.M(e))})),w.m.eb(a,n,"selectedOptions",r)}function r(){var n=w.a.f(t()),a=e.scrollTop;n&&"number"==typeof n.length&&w.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=w.a.A(n,w.w.M(e));e.selected!=t&&w.a.Zc(e,t)})),e.scrollTop=a}if("select"!=w.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var i;w.i.subscribe(e,w.i.H,(function(){i?a():(w.a.B(e,"change",a),i=w.o(r,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},w.m.wa.selectedOptions=!0,w.c.style={update:function(e,t){var n=w.a.f(t()||{});w.a.P(n,(function(t,n){if(null!==(n=w.a.f(n))&&n!==o&&!1!==n||(n=""),l)l(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var a=e.style[t];e.style[t]=n,n===a||e.style[t]!=a||isNaN(n)||(e.style[t]=n+"px")}}))}},w.c.submit={init:function(e,t,n,a,r){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");w.a.B(e,"submit",(function(n){var a,i=t();try{a=i.call(r.$data,e)}finally{!0!==a&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}}))}},w.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){w.a.Bb(e,t())}},w.h.ea.text=!0,function(){if(u&&u.navigator){var e,t,n,a,r,i=function(e){if(e)return parseFloat(e[1])},c=u.navigator.userAgent;(e=u.opera&&u.opera.version&&parseInt(u.opera.version()))||(r=i(c.match(/Edge\/([^ ]+)$/)))||i(c.match(/Chrome\/([^ ]+)/))||(t=i(c.match(/Version\/([^ ]+) Safari/)))||(n=i(c.match(/Firefox\/([^ ]+)/)))||(a=w.a.W||i(c.match(/MSIE ([^ ]+)/)))||(a=i(c.match(/rv:([^)]+)/)))}if(8<=a&&10>a)var s=w.a.g.Z(),l=w.a.g.Z(),f=function(e){var t=this.activeElement;(t=t&&w.a.g.get(t,l))&&t(e)},d=function(e,t){var n=e.ownerDocument;w.a.g.get(n,s)||(w.a.g.set(n,s,!0),w.a.B(n,"selectionchange",f)),w.a.g.set(e,l,t)};w.c.textInput={init:function(i,u,c){function s(e,t){w.a.B(i,e,t)}function l(){p||(h=i.value,p=w.a.setTimeout(f,4))}function f(){clearTimeout(p),h=p=o;var e=i.value;b!==e&&(b=e,w.m.eb(u(),c,"textInput",e))}var p,h,b=i.value,v=9==w.a.W?l:f,g=!1;a&&s("keypress",f),11>a&&s("propertychange",(function(e){g||"value"!==e.propertyName||v(e)})),8==a&&(s("keyup",f),s("keydown",f)),d&&(d(i,v),s("dragend",l)),(!a||9<=a)&&s("input",v),5>t&&"textarea"===w.a.R(i)?(s("keydown",l),s("paste",l),s("cut",l)):11>e?s("keydown",l):4>n?(s("DOMAutoComplete",f),s("dragdrop",f),s("drop",f)):r&&"number"===i.type&&s("keydown",l),s("change",f),s("blur",f),w.o((function e(){var t=w.a.f(u());null!==t&&t!==o||(t=""),h!==o&&t===h?w.a.setTimeout(e,4):i.value!==t&&(g=!0,i.value=t,g=!1,b=i.value)}),null,{l:i})}},w.m.wa.textInput=!0,w.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),w.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++w.c.uniqueName.rd;w.a.Yc(e,n)}}},w.c.uniqueName.rd=0,w.c.using={init:function(e,t,n,a,r){var i;return n.has("as")&&(i={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=r.createChildContext(t,i),w.Oa(t,e),{controlsDescendantBindings:!0}}},w.h.ea.using=!0,w.c.value={init:function(e,t,n){var a=w.a.R(e),r="input"==a;if(!r||"checkbox"!=e.type&&"radio"!=e.type){var i=[],u=n.get("valueUpdate"),c=!1,s=null;u&&(i="string"==typeof u?[u]:w.a.wc(u),w.a.Pa(i,"change"));var l,f,d=function(){s=null,c=!1;var a=t(),r=w.w.M(e);w.m.eb(a,n,"value",r)};!w.a.W||!r||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=w.a.A(i,"propertychange")||(w.a.B(e,"propertychange",(function(){c=!0})),w.a.B(e,"focus",(function(){c=!1})),w.a.B(e,"blur",(function(){c&&d()}))),w.a.D(i,(function(t){var n=d;w.a.Ud(t,"after")&&(n=function(){s=w.w.M(e),w.a.setTimeout(d,0)},t=t.substring(5)),w.a.B(e,t,n)})),l=r&&"file"==e.type?function(){var n=w.a.f(t());null===n||n===o||""===n?e.value="":w.u.G(d)}:function(){var r=w.a.f(t()),i=w.w.M(e);null!==s&&r===s?w.a.setTimeout(l,0):r===i&&i!==o||("select"===a?(i=n.get("valueAllowUnset"),w.w.cb(e,r,i),i||r===w.w.M(e)||w.u.G(d)):w.w.cb(e,r))},"select"===a?w.i.subscribe(e,w.i.H,(function(){f?n.get("valueAllowUnset")?l():d():(w.a.B(e,"change",d),f=w.o(l,null,{l:e}))}),null,{notifyImmediately:!0}):(w.a.B(e,"change",d),w.o(l,null,{l:e}))}else w.ib(e,{checkedValue:t})},update:function(){}},w.m.wa.value=!0,w.c.visible={update:function(e,t){var n=w.a.f(t()),a="none"!=e.style.display;n&&!a?e.style.display="":!n&&a&&(e.style.display="none")}},w.c.hidden={update:function(e,t){w.c.visible.update(e,(function(){return!w.a.f(t())}))}},function(e){w.c[e]={init:function(t,n,a,r,i){return w.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),a,r,i)}}}("click"),w.ca=function(){},w.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},w.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},w.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||c).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new w.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new w.C.ia(e);throw Error("Unknown template type: "+e)},w.ca.prototype.renderTemplate=function(e,t,n,a){return e=this.makeTemplateSource(e,a),this.renderTemplateSource(e,t,n,a)},w.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},w.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},w.b("templateEngine",w.ca),w.kc=function(){function e(e,t,n,a){e=w.m.ac(e);for(var r=w.m.Ra,i=0;i<e.length;i++){var o=e[i].key;if(Object.prototype.hasOwnProperty.call(r,o)){var u=r[o];if("function"==typeof u){if(o=u(e[i].value))throw Error(o)}else if(!u)throw Error("This template engine does not support the '"+o+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+w.m.vb(e,{valueAccessors:!0})+" }})()},'"+n.toLowerCase()+"')",a.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return w.kc.Ld(e,t)}),n)},Ld:function(a,r){return a.replace(t,(function(t,n,a,i,o){return e(o,n,a,r)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",r)}))},md:function(e,t){return w.aa.Xb((function(n,a){var r=n.nextSibling;r&&r.nodeName.toLowerCase()===t&&w.ib(r,e,a)}))}}}(),w.b("__tr_ambtns",w.kc.md),function(){w.C={},w.C.F=function(e){if(this.F=e){var t=w.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},w.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?w.a.fc(this.F,t):this.F[e]=t};var e=w.a.g.Z()+"_";w.C.F.prototype.data=function(t){if(1===arguments.length)return w.a.g.get(this.F,e+t);w.a.g.set(this.F,e+t,arguments[1])};var t=w.a.g.Z();w.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var n=w.a.g.get(e,t)||{},a=n.lb||(3===this.ab?e.content:4===this.ab?e:o);if(!a||n.jd){var r=this.text();r&&r!==n.bb&&(a=w.a.Md(r,e.ownerDocument),w.a.g.set(e,t,{lb:a,bb:r,jd:!0}))}return a}n=arguments[0],this.ab!==o&&this.text(""),w.a.g.set(e,t,{lb:n})},w.C.ia=function(e){this.F=e},w.C.ia.prototype=new w.C.F,w.C.ia.prototype.constructor=w.C.ia,w.C.ia.prototype.text=function(){if(0==arguments.length){var e=w.a.g.get(this.F,t)||{};return e.bb===o&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}w.a.g.set(this.F,t,{bb:arguments[0]})},w.b("templateSources",w.C),w.b("templateSources.domElement",w.C.F),w.b("templateSources.anonymousTemplate",w.C.ia)}(),function(){function e(e,t,n){var a;for(t=w.h.nextSibling(t);e&&(a=e)!==t;)n(a,e=w.h.nextSibling(a))}function t(t,n){if(t.length){var a=t[0],r=t[t.length-1],i=a.parentNode,o=w.ga.instance,u=o.preprocessNode;if(u){if(e(a,r,(function(e,t){var n=e.previousSibling,i=u.call(o,e);i&&(e===a&&(a=i[0]||t),e===r&&(r=i[i.length-1]||n))})),t.length=0,!a)return;a===r?t.push(a):(t.push(a,r),w.a.Ua(t,i))}e(a,r,(function(e){1!==e.nodeType&&8!==e.nodeType||w.vc(n,e)})),e(a,r,(function(e){1!==e.nodeType&&8!==e.nodeType||w.aa.cd(e,[n])})),w.a.Ua(t,i)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function a(e,a,r,o,u){u=u||{};var c=(e&&n(e)||r||{}).ownerDocument,s=u.templateEngine||i;if(w.kc.xd(r,s,c),"number"!=typeof(r=s.renderTemplate(r,o,u,c)).length||0<r.length&&"number"!=typeof r[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,a){case"replaceChildren":w.h.va(e,r),c=!0;break;case"replaceNode":w.a.Xc(e,r),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+a)}return c&&(t(r,o),u.afterRender&&w.u.G(u.afterRender,null,[r,o[u.as||"$data"]]),"replaceChildren"==a&&w.i.ma(e,w.i.H)),r}function r(e,t,n){return w.O(e)?e():"function"==typeof e?e(t,n):e}var i;w.gc=function(e){if(e!=o&&!(e instanceof w.ca))throw Error("templateEngine must inherit from ko.templateEngine");i=e},w.dc=function(e,t,u,c,s){if(((u=u||{}).templateEngine||i)==o)throw Error("Set a template engine before calling renderTemplate");if(s=s||"replaceChildren",c){var l=n(c);return w.$((function(){var i=t&&t instanceof w.fa?t:new w.fa(t,null,null,null,{exportDependencies:!0}),o=r(e,i.$data,i);i=a(c,s,o,i,u),"replaceNode"==s&&(l=n(c=i))}),null,{Sa:function(){return!l||!w.a.Sb(l)},l:l&&"replaceNode"==s?l.parentNode:l})}return w.aa.Xb((function(n){w.dc(e,t,u,n,"replaceNode")}))},w.Qd=function(e,n,i,u,c){function s(e,t){w.u.G(w.a.ec,null,[u,e,f,i,l,t]),w.i.ma(u,w.i.H)}function l(e,n){t(n,d),i.afterRender&&i.afterRender(n,e),d=null}function f(t,n){d=c.createChildContext(t,{as:p,noChildContext:i.noChildContext,extend:function(e){e.$index=n,p&&(e[p+"Index"]=n)}});var o=r(e,t,d);return a(u,"ignoreTargetNode",o,d,i)}var d,p=i.as,h=!1===i.includeDestroyed||w.options.foreachHidesDestroyed&&!i.includeDestroyed;if(h||i.beforeRemove||!w.Pc(n))return w.$((function(){var e=w.a.f(n)||[];void 0===e.length&&(e=[e]),h&&(e=w.a.jb(e,(function(e){return e===o||null===e||!w.a.f(e._destroy)}))),s(e)}),null,{l:u});s(n.v());var b=n.subscribe((function(e){s(n(),e)}),null,"arrayChange");return b.l(u),b};var u=w.a.g.Z(),c=w.a.g.Z();w.c.template={init:function(e,t){var n=w.a.f(t());if("string"==typeof n||"name"in n)w.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],w.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var a=n[0]&&n[0].parentNode;a&&w.a.g.get(a,c)||(a=w.a.Yb(n),w.a.g.set(a,c,!0)),new w.C.ia(e).nodes(a)}else{if(!(0<(n=w.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");a=w.a.Yb(n),new w.C.ia(e).nodes(a)}return{controlsDescendantBindings:!0}},update:function(e,t,n,a,r){var i=t();n=!0,a=null,"string"==typeof(t=w.a.f(i))?t={}:(i="name"in t?t.name:e,"if"in t&&(n=w.a.f(t.if)),n&&"ifnot"in t&&(n=!w.a.f(t.ifnot)),n&&!i&&(n=!1)),"foreach"in t?a=w.Qd(i,n&&t.foreach||[],t,e,r):n?(n=r,"data"in t&&(n=r.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),a=w.dc(i,n,t,e)):w.h.Ea(e),r=a,(t=w.a.g.get(e,u))&&"function"==typeof t.s&&t.s(),w.a.g.set(e,u,!r||r.ja&&!r.ja()?o:r)}},w.m.Ra.template=function(e){return 1==(e=w.m.ac(e)).length&&e[0].unknown||w.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},w.h.ea.template=!0}(),w.b("setTemplateEngine",w.gc),w.b("renderTemplate",w.dc),w.a.Kc=function(e,t,n){var a,r,i,o,u;if(e.length&&t.length)for(a=r=0;(!n||a<n)&&(o=e[r]);++r){for(i=0;u=t[i];++i)if(o.value===u.value){o.moved=u.index,u.moved=o.index,t.splice(i,1),a=i=0;break}a+=i}},w.a.Pb=function(){function e(e,t,n,a,r){var i,o,u,c,s,l=Math.min,f=Math.max,d=[],p=e.length,h=t.length,b=h-p||1,v=p+h+1;for(i=0;i<=p;i++)for(c=u,d.push(u=[]),s=l(h,i+b),o=f(0,i-1);o<=s;o++)u[o]=o?i?e[i-1]===t[o-1]?c[o-1]:l(c[o]||v,u[o-1]||v)+1:o+1:i+1;for(l=[],f=[],b=[],i=p,o=h;i||o;)h=d[i][o]-1,o&&h===d[i][o-1]?f.push(l[l.length]={status:n,value:t[--o],index:o}):i&&h===d[i-1][o]?b.push(l[l.length]={status:a,value:e[--i],index:i}):(--o,--i,r.sparse||l.push({status:"retained",value:t[o]}));return w.a.Kc(b,f,!r.dontLimitMoves&&10*p),l.reverse()}return function(t,n,a){return a="boolean"==typeof a?{dontLimitMoves:a}:a||{},n=n||[],(t=t||[]).length<n.length?e(t,n,"added","deleted",a):e(n,t,"deleted","added",a)}}(),w.b("utils.compareArrays",w.a.Pb),function(){function e(e,t,n,a,r){var i=[],u=w.$((function(){var o=t(n,r,w.a.Ua(i,e))||[];0<i.length&&(w.a.Xc(i,o),a&&w.u.G(a,null,[n,o,r])),i.length=0,w.a.Nb(i,o)}),null,{l:e,Sa:function(){return!w.a.kd(i)}});return{Y:i,$:u.ja()?u:o}}var t=w.a.g.Z(),n=w.a.g.Z();w.a.ec=function(a,r,i,u,c,s){function l(e){p={Aa:e,pb:w.ta(C++)},y.push(p),m||S.push(p)}function f(e){p=g[e],C!==p.pb.v()&&N.push(p),p.pb(C++),w.a.Ua(p.Y,a),y.push(p)}function d(e,t){if(e)for(var n=0,a=t.length;n<a;n++)w.a.D(t[n].Y,(function(a){e(a,n,t[n].Aa)}))}void 0===(r=r||[]).length&&(r=[r]),u=u||{};var p,h,b,v,g=w.a.g.get(a,t),m=!g,y=[],x=0,C=0,E=[],k=[],T=[],N=[],S=[],D=0;if(m)w.a.D(r,l);else{if(!s||g&&g._countWaitingForRemove){var _=w.a.Mb(g,(function(e){return e.Aa}));s=w.a.Pb(_,r,{dontLimitMoves:u.dontLimitMoves,sparse:!0})}var A,j,O;for(_=0;A=s[_];_++)switch(j=A.moved,O=A.index,A.status){case"deleted":for(;x<O;)f(x++);j===o&&((p=g[x]).$&&(p.$.s(),p.$=o),w.a.Ua(p.Y,a).length&&(u.beforeRemove&&(y.push(p),D++,p.Aa===n?p=null:T.push(p)),p&&E.push.apply(E,p.Y))),x++;break;case"added":for(;C<O;)f(x++);j!==o?(k.push(y.length),f(j)):l(A.value)}for(;C<r.length;)f(x++);y._countWaitingForRemove=D}w.a.g.set(a,t,y),d(u.beforeMove,N),w.a.D(E,u.beforeRemove?w.oa:w.removeNode);try{v=a.ownerDocument.activeElement}catch(e){}if(k.length)for(;(_=k.shift())!=o;){for(p=y[_],h=o;_;)if((b=y[--_].Y)&&b.length){h=b[b.length-1];break}for(r=0;x=p.Y[r];h=x,r++)w.h.Wb(a,x,h)}for(_=0;p=y[_];_++){for(p.Y||w.a.extend(p,e(a,i,p.Aa,c,p.pb)),r=0;x=p.Y[r];h=x,r++)w.h.Wb(a,x,h);!p.Ed&&c&&(c(p.Aa,p.Y,p.pb),p.Ed=!0,h=p.Y[p.Y.length-1])}for(v&&a.ownerDocument.activeElement!=v&&v.focus(),d(u.beforeRemove,T),_=0;_<T.length;++_)T[_].Aa=n;d(u.afterMove,N),d(u.afterAdd,S)}}(),w.b("utils.setDomNodeChildrenFromArrayMapping",w.a.ec),w.ba=function(){this.allowTemplateRewriting=!1},w.ba.prototype=new w.ca,w.ba.prototype.constructor=w.ba,w.ba.prototype.renderTemplateSource=function(e,t,n,a){return(t=9>w.a.W||!e.nodes?null:e.nodes())?w.a.la(t.cloneNode(!0).childNodes):(e=e.text(),w.a.ua(e,a))},w.ba.Ma=new w.ba,w.gc(w.ba.Ma),w.b("nativeTemplateEngine",w.ba),function(){w.$a=function(){var e=this.Hd=function(){if(!l||!l.tmpl)return 0;try{if(0<=l.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,a,r){if(r=r||c,a=a||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var i=t.data("precompiled");return i||(i=t.text()||"",i=l.template(null,"{{ko_with $item.koBindingContext}}"+i+"{{/ko_with}}"),t.data("precompiled",i)),t=[n.$data],n=l.extend({koBindingContext:n},a.templateOptions),(n=l.tmpl(i,t,n)).appendTo(r.createElement("div")),l.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function(){ return "+e+" })()) }}"},this.addTemplate=function(e,t){c.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(l.tmpl.tag.ko_code={open:"__.push($1||'');"},l.tmpl.tag.ko_with={open:"with($1){",close:"} "})},w.$a.prototype=new w.ca,w.$a.prototype.constructor=w.$a;var e=new w.$a;0<e.Hd&&w.gc(e),w.b("jqueryTmplTemplateEngine",w.$a)}()}))}()}},t={};window.ko=function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}(527)})();