c.m.nextSibling(d),Y(a,d);c.l.notify(b,c.l.G)}functionY(a,b){vard=a;if(1===b.nodeType||c.Ab.mc(b))d=Z(b,null,a).bindingContextForDescendants;d&&!b.matches?.("SCRIPT,TEXTAREA,TEMPLATE")&&X(d,b)}functionja(a){varb=[],d={},f=[];c.g.O(a,functione(k){if(!d[k]){varg=c.h[k];g&&(g.after&&(f.push(k),g.after.forEach(h=>{if(a[h]){if(f.includes(h))throwError("Cannot combine the following bindings, because they have a cyclic dependency: "+f.join(", "));e(h)}}),f.length--),b.push({key:k,Ib:g}));d[k]=!0}});
returnb}functionZ(a,b,d){varf=c.g.i.bb(a,K,{}),l=f.Wb;if(!b){if(l)throwError("You cannot apply bindings multiple times to the same element.");f.Wb=!0}l||(f.context=d);f.fb||(f.fb={});if(b&&"function"!==typeofb)vark=b;else{vare=c.s(()=>{if(k=b?b(d,a):c.Ab.bc(a,d))d[L]?.(),d[aa]?.();returnk},{o:a});k&&e.isActive()||(e=null)}varg=d,h;if(k){varn=e?m=>()=>e()[m]():m=>k[m],p={get:m=>k[m]&&n(m)(),has:m=>mink};c.l.Gink&&c.l.subscribe(a,c.l.G,()=>{varm=k[c.l.G]();if(m){varr=c.m.childNodes(a);
r.length&&m(r,c.Eb(r[0]))}});c.l.gaink&&(g=c.l.kb(a,d),c.l.subscribe(a,c.l.ga,()=>{varm=k[c.l.ga]();m&&c.m.firstChild(a)&&m(a)}));ja(k).forEach(m=>{varr=m.Ib.init,q=m.Ib.update,t=m.key;if(8===a.nodeType&&!c.m.ca[t])throwError("The binding '"+t+"' cannot be used with virtual elements");try{"function"==typeofr&&c.u.S(()=>{varu=r(a,n(t),p,g.$data,g);if(u&&u.controlsDescendantBindings){if(void0!==h)throwError("Multiple bindings ("+h+" and "+t+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");
h=t}}),"function"==typeofq&&c.s(()=>q(a,n(t),p,g.$data,g),{o:a})}catch(u){throwu.message='Unable to process binding "'+t+": "+k[t]+'"\nMessage: '+u.message,u;}})}f=void0===h;return{shouldBindDescendants:f,bindingContextForDescendants:f&&g}}functionQ(a,b){returna&&ainstanceofc.ea?a:newc.ea(a,void0,void0,b)}varM=V.document,R={},c="undefined"!==typeofR?R:{};c.v=(a,b)=>{a=a.split(".");for(vard=c,f=0,l=a.length-1;f<l;f++)d=d[a[f]];d[a[l]]=b};c.ha=(a,b,d)=>{a[b]=d};c.v("version","3.5.1-sm");
a[a.length-1].parentNode!==b;)--a.length;if(1<a.length){b=a[0];vard=a[a.length-1];for(a.length=0;b!==d;)a.push(b),b=b.nextSibling;a.push(d)}}returna},Qb:a=>null==a?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,""),Za:a=>a.ownerDocument.documentElement.contains(1!==a.nodeType?a.parentNode:a),Sb:(a,b)=>{if(!a?.nodeType)throwError("element must be a DOM node when calling triggerEvent");a.dispatchEvent(newEvent(b))},j:a=>c.T(a)?a():a,jb:(a,b)=>a.textContent=c.g.j(b)||""};c.v("utils",
!0)},k=(e,g)=>{for(varh=[],n,p=0;p<e.length;p++)if(!g||8===e[p].nodeType)if(l(h[h.length]=n=e[p]),e[p]!==n)for(;p--&&!h.includes(e[p]););};return{na:(e,g)=>{if("function"!=typeofg)throwError("Callback must be a function");f(e,1).add(g)},ib:(e,g)=>{varh=f(e);h&&(h.delete(g),h.size||c.g.i.set(e,a,null))},fa:e=>{c.u.S(()=>{b[e.nodeType]&&(l(e),d[e.nodeType]&&k(e.getElementsByTagName("*")))});returne},removeNode:e=>{c.fa(e);e.parentNode&&e.parentNode.removeChild(e)}}})();c.fa=c.g.K.fa;c.removeNode=
c.V.fn=D;c.jc=a=>"function"==typeofa?.subscribe&&"function"==typeofa.D;(()=>{vara=[],b,d=0;c.u={zb:f=>{a.push(b);b=f},end:()=>b=a.pop(),Ob:f=>{if(b){if(!c.jc(f))throwError("Only subscribable things can act as dependencies");b.Xb.call(b.Yb,f,f.Ub||(f.Ub=++d))}},S:(f,l,k)=>{try{returna.push(b),b=void0,f.apply(l,k||[])}finally{b=a.pop()}},Ba:()=>b?.s.Ba(),eb:()=>b?.eb,s:()=>b?.s}})();constB=Symbol("_latestValue");c.ba=a=>{functionb(){if(0<arguments.length)returnb.Ha(b[B],arguments[0])&&(b.nb(),
a!==F[G]&&a!==c.s.fn[G])throwError("Invalid object that looks like an observable; possibly from another Knockout instance");return!!a};c.kc=a=>"function"==typeofa&&(a[G]===F[G]||a[G]===c.s.fn[G]&&a.fc);c.v("observable",c.ba);c.v("isObservable",c.T);c.v("observable.fn",F);c.ha(F,"valueHasMutated",F.Ma);c.ja=a=>{a=a||[];if("object"!=typeofa||!("length"ina))throwError("The argument passed when initializing an observable array must be an array, or null, or undefined.");a=c.ba(a);Object.setPrototypeOf(a,
c.ja.fn);returna.extend({trackArrayChanges:!0})};c.ja.fn={remove:function(a){for(varb=this.P(),d=!1,f="function"!=typeofa||c.T(a)?e=>e===a:a,l=b.length;l--;){vark=b[l];if(f(k)){if(b[l]!==k)throwError("Array modified during remove; cannot remove item");d||this.nb();d=!0;b.splice(l,1)}}d&&this.Ma()}};Object.setPrototypeOf(c.ja.fn,c.ba.fn);Object.getOwnPropertyNames(Array.prototype).forEach(a=>{"function"===typeofArray.prototype[a]&&"constructor"!=a&&("copyWithin fill pop push reverse shift sort splice unshift".split(" ").includes(a)?
0;m<v;m++)t("added",q[m],z+m);break;case"pop":z=w-1;case"shift":w&&t("deleted",m[z],z);break;case"splice":z=Math.min(Math.max(0,0>q[0]?w+q[0]:q[0]),w);w=1===v?w:Math.min(z+(q[1]||0),w);v=z+v-2;r=Math.max(w,v);for(varC=[],H=[],O=2;z<r;++z,++O)z<w&&H.push(t("deleted",m[z],z)),z<v&&C.push(t("added",q[O],z));c.g.Hb(H,C);break;default:return}l=u}}}};vary=Symbol("_state");c.s=(a,b)=>{functiond(){if(0<arguments.length){if("function"!==typeoff)throwError("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.");
f(...arguments);returnthis}l.$||c.u.Ob(d);(l.Y||l.C&&d.sa())&&d.U();returnl.M}"object"===typeofa?b=a:(b=b||{},a&&(b.read=a));if("function"!=typeofb.read)throwError("Pass a function that returns the value of the ko.computed");varf=b.write,l={M:void0,aa:!0,Y:!0,Ga:!1,lb:!1,$:!1,hb:!1,C:!1,Nb:b.read,o:b.disposeWhenNodeIsRemoved||b.o||null,oa:b.disposeWhen||b.oa,Ya:null,B:{},J:0,Gb:null};d[y]=l;d.fc="function"===typeoff;c.V.fn.Fa(d);Object.setPrototypeOf(d,J);b.pure&&(l.hb=!0,l.C=!0,c.g.extend(d,
la));l.o&&(l.lb=!0,l.o.nodeType||(l.o=null));l.C||d.U();l.o&&d.isActive()&&c.g.K.na(l.o,l.Ya=()=>{d.A()});returnd};varJ={qa:P,Ba:function(){returnthis[y].J},cc:function(){vara=[];c.g.O(this[y].B,(b,d)=>a[d.la]=d.X);returna},cb:function(a){if(!this[y].J)return!1;varb=this.cc();returnb.includes(a)||!!b.find(d=>d.cb&&d.cb(a))},vb:function(a,b,d){if(this[y].hb&&b===this)throwError("A 'pure' computed must not be called recursively");this[y].B[a]=d;d.la=this[y].J++;d.ma=b.Ca()},sa:function(){vara,
0;p=[];continue}}elseif(58===t){if(!m&&!u&&1===p.length){u=p.pop();continue}}elseif(47===t&&1<q.length&&(47===q.charCodeAt(1)||42===q.charCodeAt(1)))continue;else47===t&&r&&1<q.length?(t=n[r-1].match(f))&&!l[t[0]]&&(g=g.slice(g.indexOf(q)+1),n=g.match(d),r=-1,q="/"):40===t||123===t||91===t?++m:41===t||125===t||93===t?--m:u||p.length||34!==t&&39!==t||(q=q.slice(1,-1));p.push(q)}if(0<m)throwError("Unbalanced parentheses, braces, or brackets");}returnh},e=newSet;return{Sa:[],mb:e,nc:k,oc:(g,h)=>
n.key==h),ob:(g,h,n,p,m)=>{if(g&&c.T(g))!c.kc(g)||m&&g.P()===p||g(p);elseh.get("_ko_property_writers")?.[n]?.(p)}}})();(()=>{functiona(e){return8==e.nodeType&&f.test(e.nodeValue)}functionb(e){return8==e.nodeType&&l.test(e.nodeValue)}functiond(e,g){for(varh=e,n=1,p=[];h=h.nextSibling;){if(b(h)&&(c.g.i.set(h,k,!0),!--n))returnp;p.push(h);a(h)&&++n}if(!g)throwError("Cannot find closing comment tag to match: "+e.nodeValue);returnnull}varf=/^\s*ko(?:\s+([\s\S]+))?\s*$/,l=/^\s*\/ko\s*$/,k="__ko_matchedEndComment__";
c.m={ca:{},childNodes:e=>a(e)?d(e):e.childNodes,pa:e=>{a(e)?(e=d(e))&&[...e].forEach(g=>c.removeNode(g)):c.g.$a(e)},ta:(e,g)=>{a(e)?(c.m.pa(e),e.after(...g)):c.g.ta(e,g)},prepend:(e,g)=>{a(e)?e.nextSibling.before(g):e.prepend(g)},ic:(e,g,h)=>{h?h.after(g):c.m.prepend(e,g)},firstChild:e=>{if(a(e))returne=e.nextSibling,!e||b(e)?null:e;letg=e.firstChild;if(g&&b(g))throwError("Found invalid end comment, as the first child of "+e);returng},nextSibling:e=>{if(a(e)){varg=d(e,void0);e=g?(g.length?g[g.length-
1]:e).nextSibling:null}if((g=e.nextSibling)&&b(g)){if(b(g)&&!c.g.i.get(g,k))throwError("Found end comment without a matching opening comment, as child of "+e);returnnull}returng},dc:a,uc:e=>(e=e.nodeValue.match(f))?e[1]:null}})();constba=newMap;c.Ab=newclass{mc(a){switch(a.nodeType){case1:returnnull!=a.getAttribute("data-bind");case8:returnc.m.dc(a)}return!1}bc(a,b){a:{switch(a.nodeType){case1:vard=a.getAttribute("data-bind");breaka;case8:d=c.m.uc(a);breaka}d=null}if(d)try{letl={valueAccessors:!0},
k=ba.get(d);if(!k){varf="with($context){with($data||{}){return{"+c.I.oc(d,l)+"}}}";k=newFunction("$context","$element",f);ba.set(d,k)}returnk(b,a)}catch(l){throwl.message="Unable to parse bindings.\nBindings value: "+d+"\nMessage: "+l.message,l;}returnnull}};constL=Symbol("_subscribable"),N=Symbol("_ancestorBindingInfo"),aa=Symbol("_dataDependency"),ca={},K=c.g.i.Z();c.h={};c.ea=class{constructor(a,b,d,f,l){vark=this,e=a===ca,g=e?void0:a,h="function"==typeofg&&!c.T(g),n=l?.dataDependency;
b,d,f,l)=>{vark=c.g.i.bb(a,K,{});k.za||(k.za=newc.V);l?.notifyImmediately&&k.fb[b]&&c.u.S(d,f,[a]);returnk.za.subscribe(d,f,b)},notify:(a,b)=>{vard=c.g.i.get(a,K);if(d&&(d.fb[b]=!0,d.za?.D(a,b),b==c.l.G))if(d.H)d.H.Db();elseif(void0===d.H&&d.za?.ra(c.l.ga))throwError("descendantsComplete event not supported for bindings on this node");},kb:(a,b)=>{vard=c.g.i.bb(a,K,{});d.H||(d.H=newma(a,d,b[N]));returnb[N]==d?b:b.extend(f=>{f[N]=d})}};c.tc=a=>(a=c.g.i.get(a,K))&&a.context;c.wb=(a,b,d)=>
Z(a,b,Q(d));c.yb=(a,b)=>{1!==b.nodeType&&8!==b.nodeType||X(Q(a),b)};c.xb=function(a,b,d){if(2>arguments.length){if(b=M.body,!b)throwError("ko.applyBindings: could not find document.body; has the document been loaded?");}elseif(!b||1!==b.nodeType&&8!==b.nodeType)throwError("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");Y(Q(a,d),b)};c.Eb=a=>(a=a&&[1,8].includes(a.nodeType)&&c.tc(a))?a.$data:void0;c.v("bindingHandlers",c.h);c.v("applyBindings",
c.xb);c.v("applyBindingAccessorsToNode",c.wb);c.v("dataFor",c.Eb);(()=>{vara=Object.create(null),b=newMap;c.Ua={get:(k,e)=>{if(b.has(k))e(b.get(k));else{varg=a[k];g?g.subscribe(e):(g=a[k]=newc.V,g.subscribe(e),l(k,h=>{b.set(k,h);deletea[k];g.D(h)}))}},register:(k,e)=>{if(!e)throwError("Invalid configuration for "+k);if(d[k])throwError("Component "+k+" is already registered");d[k]=e}};vard=Object.create(null),f=(k,e)=>{throwError(`Component '${k}': ${e}`);},l=(k,e)=>{varg={},h=d[k]||{},n=
h.template;h=h.viewModel;if(n){n.element||f(k,"Unknown template value: "+n);n=n.element;varp=M.getElementById(n);p||f(k,"Cannot find element with ID "+n);p.matches("TEMPLATE")||f(k,"Template Source Element not a <template>");g.template=c.g.xa(p.content.childNodes)}h&&("function"!==typeofh.createViewModel&&f(k,"Unknown viewModel value: "+h),g.createViewModel=h.createViewModel);e(g.template&&g.createViewModel?g:null)};c.v("components",c.Ua);c.v("components.register",c.Ua.register)})();(()=>{vara=
0;c.h.component={init:(b,d,f,l,k)=>{vare,g,h,n=()=>{varm=e&&e.dispose;"function"===typeofm&&m.call(e);h&&h.A();g=e=h=null},p=[...c.m.childNodes(b)];c.m.pa(b);c.g.K.na(b,n);c.s(()=>{varm=c.g.j(d());if("string"!==typeofm){varr=c.g.j(m.params);m=c.g.j(m.name)}if(!m)throwError("No component name specified");varq=c.l.kb(b,k),t=g=++a;c.Ua.get(m,u=>{if(g===t){n();if(!u)throwError("Unknown component '"+m+"'");varw=u.template;if(!w)throwError("Component '"+m+"' has no template");c.m.ta(b,c.g.xa(w));
!0));q?(t||c.m.ta(l,c.g.xa(n)),c.yb(u,l)):(c.m.pa(l),c.l.notify(l,c.l.G))},{o:l});return{controlsDescendantBindings:!0}}};c.I.Sa[b]=!1;c.m.ca[b]=!0}a("if");a("ifnot",!1,!0);a("with",!0)})();varU={};c.h.options={init:a=>{if(!a.matches("SELECT"))throwError("options binding applies only to SELECT elements");letb=a.length;for(;b--;)a.remove(b);return{controlsDescendantBindings:!0}},update:(a,b,d)=>{varf=a.multiple,l=0!=a.length&&f?a.scrollTop:null,k=c.g.j(b()),e=d.get("valueAllowUnset")&&d.has("value"),
isNaN(f)||(a.style[d]=f+"px")}})}};c.h.submit={init:(a,b,d,f,l)=>{if("function"!=typeofb())throwError("The value for a submit binding must be a function");a.addEventListener("submit",k=>{vare=b();try{varg=e.call(l.$data,a)}finally{!0!==g&&k.preventDefault()}})}};c.h.text={init:()=>({controlsDescendantBindings:!0}),update:(a,b)=>{8===a.nodeType&&(a.text||a.after(a.text=M.createTextNode("")),a=a.text);c.g.jb(a,b())}};c.m.ca.text=!0;c.h.textInput={init:(a,b,d)=>{varf=a.value,l,k,e=()=>{clearTimeout(l);
e[0],n=h.parentNode;a(h,e[e.length-1],p=>{1!==p.nodeType&&8!==p.nodeType||c.xb(g,p)});c.g.Aa(e,n)}},d=(e,g,h,n)=>{varp=(e&&(e.nodeType?e:0<e.length?e[0]:null)||h||{}).ownerDocument;if("string"==typeofh){p=p||M;p=p.getElementById(h);if(!p)throwError("Cannot find template with ID "+h);h=newc.Ka.Xa(p)}elseif([1,8].includes(h.nodeType))h=newc.Ka.Qa(h);elsethrowError("Unknown template type: "+h);h=(h=h.Ja?h.Ja():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeofh.length||0<h.length&&
"number"!=typeofh[0].nodeType)throwError("Template engine must return an array of DOM nodes");p=!1;switch(g){case"replaceChildren":c.m.ta(e,h);p=!0;break;case"ignoreTargetNode":break;default:throwError("Unknown renderMode: "+g);}p&&(b(h,n),"replaceChildren"==g&&c.l.notify(e,c.l.G));returnh},f=(e,g,h)=>c.T(e)?e():"function"===typeofe?e(g,h):e;c.rc=function(e,g,h,n){h=h||{};varp=p||"replaceChildren";if(n){varm=n.nodeType?n:0<n.length?n[0]:null;returnc.s(()=>{varr=ginstanceofc.ea?g:newc.ea(g,
{varv=c.g.j(g)||[];"undefined"==typeofv.length&&(v=[v]);m(v)},{o:n})};varl=c.g.i.Z(),k=c.g.i.Z();c.h.template={init:(e,g)=>{g=c.g.j(g());if("string"==typeofg||"name"ing)c.m.pa(e);elseif("nodes"ing){g=g.nodes||[];if(c.T(g))throwError('The "nodes" option must be a plain, non-observable array.');leth=g[0]?.parentNode;h&&c.g.i.get(h,k)||(h=c.g.Lb(g),c.g.i.set(h,k,!0));(newc.Ka.Qa(e)).Ja(h)}elseif(g=c.m.childNodes(e),g.length)g=c.g.Lb(g),(newc.Ka.Qa(e)).Ja(g);elsethrowError("Anonymous template defined, but no template content was provided");
e.length&&e[0].unknown||c.I.lc(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"};c.m.ca.template=!0})();c.g.Hb=(a,b,d)=>{varf=0,l,k=b.length;k&&a.every(e=>{l=b.findIndex(g=>e.value===g.value);0<=l&&(e.moved=b[l].index,b[l].moved=e.index,b.splice(l,1),f=l=0,--k);f+=k;returnk&&(!d||f<d)})};c.g.Cb=(()=>{vara=(b,d,f,l,k)=>{for(vare=Math.min,g=Math.max,h=[],n=-1,p=b.length,m,r=d.length,q=r-p||1,t=p+r+1,u,w,v;++n<=p;)for(w=u,h.push(u=[]),v=e(r,n+