Dropped the knockout.js tasks from compiled code

This commit is contained in:
the-djmaze 2022-09-12 22:31:37 +02:00
parent d1f71508fe
commit a3a4a057e5
2 changed files with 69 additions and 136 deletions

View file

@ -233,63 +233,6 @@ ko.cleanNode = ko.utils.domNodeDisposal.cleanNode; // Shorthand name for conveni
ko.removeNode = ko.utils.domNodeDisposal.removeNode; // Shorthand name for convenience
ko.exportSymbol('utils.domNodeDisposal', ko.utils.domNodeDisposal);
ko.exportSymbol('utils.domNodeDisposal.addDisposeCallback', ko.utils.domNodeDisposal.addDisposeCallback);
ko.tasks = (() => {
var taskQueue = [],
taskQueueLength = 0,
nextIndexToProcess = 0,
processTasks = () => {
if (taskQueueLength) {
// Each mark represents the end of a logical group of tasks and the number of these groups is
// limited to prevent unchecked recursion.
var mark = taskQueueLength, countMarks = 0;
// nextIndexToProcess keeps track of where we are in the queue; processTasks can be called recursively without issue
for (var task; nextIndexToProcess < taskQueueLength; ) {
if (task = taskQueue[nextIndexToProcess++]) {
if (nextIndexToProcess > mark) {
if (++countMarks >= 5000) {
nextIndexToProcess = taskQueueLength; // skip all tasks remaining in the queue since any of them could be causing the recursion
setTimeout(() => {
throw Error(`'Too much recursion' after processing ${countMarks} task groups.`)
}, 0)
break;
}
mark = taskQueueLength;
}
try {
task();
} catch (ex) {
setTimeout(() => { throw ex }, 0);
}
}
}
}
},
scheduledProcess = () => {
processTasks();
// Reset the queue
nextIndexToProcess = taskQueueLength = taskQueue.length = 0;
},
// Chrome 27+, Firefox 14+, IE 11+, Opera 15+, Safari 6.1+
// From https://github.com/petkaantonov/bluebird * Copyright (c) 2014 Petka Antonov * License: MIT
scheduler = (callback => {
var div = document.createElement("div");
new MutationObserver(callback).observe(div, {attributes: true});
return () => div.classList.toggle("foo");
})(scheduledProcess);
return {
schedule: func => {
taskQueueLength || scheduler(scheduledProcess);
taskQueue[taskQueueLength++] = func;
}
};
})();
ko.extenders = {
'debounce': (target, timeout) => target.limit(callback => debounce(callback, timeout)),
@ -2291,11 +2234,10 @@ ko.expressionRewriting = (() => {
ko.components = {
get: (componentName, callback) => {
if (loadedDefinitionsCache.has(componentName)) {
ko.tasks.schedule(() => callback(loadedDefinitionsCache.get(componentName)));
callback(loadedDefinitionsCache.get(componentName));
} else {
// Join the loading process that is already underway, or start a new one.
var subscribable = loadingSubscribablesCache[componentName],
completedAsync;
var subscribable = loadingSubscribablesCache[componentName];
if (subscribable) {
subscribable.subscribe(callback);
} else {
@ -2313,15 +2255,8 @@ ko.expressionRewriting = (() => {
//
// You can bypass the 'always asynchronous' feature by putting the synchronous:true
// flag on your component configuration when you register it.
if (completedAsync) {
// Note that notifySubscribers ignores any dependencies read within the callback.
// See comment in loaderRegistryBehaviors.js for reasoning
subscribable.notifySubscribers(definition);
} else {
ko.tasks.schedule(() => subscribable.notifySubscribers(definition));
}
subscribable.notifySubscribers(definition);
});
completedAsync = true;
}
}
},

View file

@ -4,72 +4,70 @@
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(T=>{function O(a,c){return null===a||U[typeof a]?a===c:!1}function V(a,c){var e;return()=>{e||(e=setTimeout(()=>{e=0;a()},c))}}function W(a,c){var e;return()=>{clearTimeout(e);e=setTimeout(a,c)}}function X(a,c){c?.A?.()}function Y(a,c){var e=this.bc,f=e[A];f.aa||(this.Wa&&this.Ca[c]?(e.vb(c,a,this.Ca[c]),this.Ca[c]=null,--this.Wa):f.C[c]||e.vb(c,a,f.D?{X:a}:e.Tb(a)),a.la&&a.Yb())}var L=T.document,P={},b="undefined"!==typeof P?P:{};b.v=(a,c)=>{a=a.split(".");for(var e=b,f=0,k=a.length-1;f<k;f++)e=
e[a[f]];e[a[k]]=c};b.ja=(a,c,e)=>{a[c]=e};b.v("version","3.5.1-sm");b.g={extend:(a,c)=>c?Object.assign(a,c):a,P:(a,c)=>a&&Object.entries(a).forEach(e=>c(e[0],e[1])),$a:a=>[...a.childNodes].forEach(c=>b.removeNode(c)),Mb:a=>{a=[...a];var c=(a[0]?.ownerDocument||L).createElement("div");a.forEach(e=>c.append(b.ga(e)));return c},Ba:(a,c)=>Array.prototype.map.call(a,c?e=>b.ga(e.cloneNode(!0)):e=>e.cloneNode(!0)),wa:(a,c)=>{b.g.$a(a);c&&a.append(...c)},Da:(a,c)=>{if(a.length){for(c=8===c.nodeType&&c.parentNode||
c;a.length&&a[0].parentNode!==c;)a.splice(0,1);for(;1<a.length&&a[a.length-1].parentNode!==c;)--a.length;if(1<a.length){c=a[0];var e=a[a.length-1];for(a.length=0;c!==e;)a.push(c),c=c.nextSibling;a.push(e)}}return a},Sb: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),Vb:(a,c)=>{if(!a?.nodeType)throw Error("element must be a DOM node when calling triggerEvent");a.dispatchEvent(new Event(c))},
j:a=>b.T(a)?a():a,jb:(a,c)=>a.textContent=b.g.j(c)||""};b.v("utils",b.g);b.v("unwrap",b.g.j);(()=>{let a=0,c="__ko__"+Date.now(),e=new WeakMap;b.g.i={get:(f,k)=>(e.get(f)||{})[k],set:(f,k,n)=>{e.has(f)?e.get(f)[k]=n:e.set(f,{[k]:n});return n},bb:function(f,k,n){return this.get(f,k)||this.set(f,k,n)},clear:f=>e.delete(f),Z:()=>a++ +c}})();b.g.L=(()=>{var a=b.g.i.Z(),c={1:1,8:1,9:1},e={1:1,9:1};const f=(d,g)=>{var h=b.g.i.get(d,a);g&&!h&&(h=new Set,b.g.i.set(d,a,h));return h},k=d=>{var g=f(d);g&&(new Set(g)).forEach(h=>
h(d));b.g.i.clear(d);e[d.nodeType]&&n(d.childNodes,!0)},n=(d,g)=>{for(var h=[],r,t=0;t<d.length;t++)if(!g||8===d[t].nodeType)if(k(h[h.length]=r=d[t]),d[t]!==r)for(;t--&&!h.includes(d[t]););};return{oa:(d,g)=>{if("function"!=typeof g)throw Error("Callback must be a function");f(d,1).add(g)},ib:(d,g)=>{var h=f(d);h&&(h.delete(g),h.size||b.g.i.set(d,a,null))},ga:d=>{b.u.S(()=>{c[d.nodeType]&&(k(d),e[d.nodeType]&&n(d.getElementsByTagName("*")))});return d},removeNode:d=>{b.ga(d);d.parentNode&&d.parentNode.removeChild(d)}}})();
b.ga=b.g.L.ga;b.removeNode=b.g.L.removeNode;b.v("utils.domNodeDisposal",b.g.L);b.v("utils.domNodeDisposal.addDisposeCallback",b.g.L.oa);b.Ub=(()=>{var a=[],c=0,e=0,f=()=>{if(c)for(var d=c,g=0,h;e<c;)if(h=a[e++]){if(e>d){if(5E3<=++g){e=c;setTimeout(()=>{throw Error(`'Too much recursion' after processing ${g} task groups.`);},0);break}d=c}try{h()}catch(r){setTimeout(()=>{throw r;},0)}}},k=()=>{f();e=c=a.length=0},n=(d=>{var g=L.createElement("div");(new MutationObserver(d)).observe(g,{attributes:!0});
return()=>g.classList.toggle("foo")})(k);return{Qb:d=>{c||n(k);a[c++]=d}}})();b.ab={debounce:(a,c)=>a.Ka(e=>W(e,c)),rateLimit:(a,c)=>{if("number"==typeof c)var e=c;else{e=c.timeout;var f=c.method}var k="function"==typeof f?f:V;a.Ka(n=>k(n,e,c))},notify:(a,c)=>{a.sa="always"==c?null:O}};var U={undefined:1,"boolean":1,number:1,string:1};b.v("extenders",b.ab);class Z{constructor(a,c,e){this.X=a;this.pb=c;this.va=e;this.Qa=!1;this.M=this.$=null;b.ja(this,"dispose",this.A)}A(){this.Qa||(this.M&&b.g.L.ib(this.$,
this.M),this.Qa=!0,this.va(),this.X=this.pb=this.va=this.$=this.M=null)}o(a){this.$=a;b.g.L.oa(a,this.M=this.A.bind(this))}}b.V=function(){Object.setPrototypeOf(this,G);G.Ha(this)};var G={Ha:a=>{a.W=new Map;a.W.set("change",new Set);a.ub=1},subscribe:function(a,c,e){var f=this;e=e||"change";var k=new Z(f,c?a.bind(c):a,()=>{f.W.get(e).delete(k);f.za&&f.za(e)});f.pa&&f.pa(e);f.W.has(e)||f.W.set(e,new Set);f.W.get(e).add(k);return k},B:function(a,c){c=c||"change";"change"===c&&this.Na();if(this.ta(c)){c=
"change"===c&&this.Wb||new Set(this.W.get(c));try{b.u.zb(),c.forEach(e=>{e.Qa||e.pb(a)})}finally{b.u.end()}}},Fa:function(){return this.ub},ic:function(a){return this.Fa()!==a},Na:function(){++this.ub},Ka:function(a){var c=this,e=b.T(c),f,k,n,d,g;c.ya||(c.ya=c.B,c.B=function(r,t){t&&"change"!==t?"beforeChange"===t?this.rb(r):this.ya(r,t):this.sb(r)});var h=a(()=>{c.la=!1;e&&d===c&&(d=c.qb?c.qb():c());var r=k||g&&c.Ja(n,d);g=k=f=!1;r&&c.ya(n=d)});c.sb=(r,t)=>{t&&c.la||(g=!t);c.Wb=new Set(c.W.get("change"));
c.la=f=!0;d=r;h()};c.rb=r=>{f||(n=r,c.ya(r,"beforeChange"))};c.tb=()=>{g=!0};c.Yb=()=>{c.Ja(n,c.J(!0))&&(k=!0)}},ta:function(a){return(this.W.get(a)||[]).size},Ja:function(a,c){return!this.sa||!this.sa(a,c)},toString:()=>"[object Object]",extend:function(a){var c=this;a&&b.g.P(a,(e,f)=>{e=b.ab[e];"function"==typeof e&&(c=e(c,f)||c)});return c}};b.ja(G,"init",G.Ha);b.ja(G,"subscribe",G.subscribe);b.ja(G,"extend",G.extend);Object.setPrototypeOf(G,Function.prototype);b.V.fn=G;b.lc=a=>"function"==typeof a?.subscribe&&
"function"==typeof a.B;(()=>{var a=[],c,e=0;b.u={zb:f=>{a.push(c);c=f},end:()=>c=a.pop(),Pb:f=>{if(c){if(!b.lc(f))throw Error("Only subscribable things can act as dependencies");c.$b.call(c.ac,f,f.Xb||(f.Xb=++e))}},S:(f,k,n)=>{try{return a.push(c),c=void 0,f.apply(k,n||[])}finally{c=a.pop()}},Ea:()=>c?.s.Ea(),eb:()=>c?.eb,s:()=>c?.s}})();const F=Symbol("_latestValue");b.ca=a=>{function c(){if(0<arguments.length)return c.Ja(c[F],arguments[0])&&(c.nb(),c[F]=arguments[0],c.Oa()),this;b.u.Pb(c);return c[F]}
c[F]=a;Object.defineProperty(c,"length",{get:()=>null==c[F]?void 0:c[F].length});b.V.fn.Ha(c);Object.setPrototypeOf(c,I);return c};var I={toJSON:function(){let a=this[F];return a?.toJSON?.()||a},sa:O,J:function(){return this[F]},Oa:function(){this.B(this[F],"spectate");this.B(this[F])},nb:function(){this.B(this[F],"beforeChange")}};Object.setPrototypeOf(I,b.V.fn);var J=b.ca.rc="__ko_proto__";I[J]=b.ca;b.T=a=>{if((a="function"==typeof a&&a[J])&&a!==I[J]&&a!==b.s.fn[J])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");
return!!a};b.mc=a=>"function"==typeof a&&(a[J]===I[J]||a[J]===b.s.fn[J]&&a.jc);b.v("observable",b.ca);b.v("isObservable",b.T);b.v("observable.fn",I);b.ja(I,"valueHasMutated",I.Oa);b.ka=a=>{a=a||[];if("object"!=typeof a||!("length"in a))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");a=b.ca(a);Object.setPrototypeOf(a,b.ka.fn);return a.extend({trackArrayChanges:!0})};b.ka.fn={remove:function(a){for(var c=this.J(),e=!1,f="function"!=typeof a||
b.T(a)?d=>d===a:a,k=c.length;k--;){var n=c[k];if(f(n)){if(c[k]!==n)throw Error("Array modified during remove; cannot remove item");e||this.nb();e=!0;c.splice(k,1)}}e&&this.Oa()}};Object.setPrototypeOf(b.ka.fn,b.ca.fn);Object.getOwnPropertyNames(Array.prototype).forEach(a=>{"function"===typeof Array.prototype[a]&&"constructor"!=a&&("copyWithin fill pop push reverse shift sort splice unshift".split(" ").includes(a)?b.ka.fn[a]=function(...c){var e=this.J();this.nb();this.Bb(e,a,c);c=e[a](...c);this.Oa();
return c===e?this:c}:b.ka.fn[a]=function(...c){return this()[a](...c)})});b.Kb=a=>b.T(a)&&"function"==typeof a.remove&&"function"==typeof a.push;b.v("observableArray",b.ka);b.v("isObservableArray",b.Kb);b.ab.trackArrayChanges=(a,c)=>{function e(){function q(){if(g){var m=[].concat(a.J()||[]);if(a.ta("arrayChange")){if(!k||1<g)k=b.g.Cb(h,m,a.Ta);var l=k}h=m;k=null;g=0;l?.length&&a.B(l,"arrayChange")}}f?q():(f=!0,d=a.subscribe(()=>++g,null,"spectate"),h=[].concat(a.J()||[]),k=null,n=a.subscribe(q))}
a.Ta={};"object"==typeof c&&b.g.extend(a.Ta,c);a.Ta.sparse=!0;if(!a.Bb){var f=!1,k=null,n,d,g=0,h,r=a.pa,t=a.za;a.pa=q=>{r&&r.call(a,q);"arrayChange"===q&&e()};a.za=q=>{t&&t.call(a,q);"arrayChange"!==q||a.ta("arrayChange")||(n&&n.A(),d&&d.A(),d=n=null,f=!1,h=void 0)};a.Bb=(q,m,l)=>{function p(D,B,y){return u[u.length]={status:D,value:B,index:y}}if(f&&!g){var u=[],w=q.length,v=l.length,z=0;switch(m){case "push":z=w;case "unshift":for(q=0;q<v;q++)p("added",l[q],z+q);break;case "pop":z=w-1;case "shift":w&&
p("deleted",q[z],z);break;case "splice":z=Math.min(Math.max(0,0>l[0]?w+l[0]:l[0]),w);w=1===v?w:Math.min(z+(l[1]||0),w);v=z+v-2;m=Math.max(w,v);var x=[],E=[];for(let D=z,B=2;D<m;++D,++B)D<w&&E.push(p("deleted",q[D],D)),D<v&&x.push(p("added",l[B],D));b.g.Hb(E,x);break;default:return}k=u}}}};var A=Symbol("_state");b.s=(a,c)=>{function e(){if(0<arguments.length){if("function"!==typeof f)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.");
f(...arguments);return this}k.aa||b.u.Pb(e);(k.Y||k.D&&e.ua())&&e.U();return k.N}"object"===typeof a?c=a:(c=c||{},a&&(c.read=a));if("function"!=typeof c.read)throw Error("Pass a function that returns the value of the ko.computed");var f=c.write,k={N:void 0,ba:!0,Y:!0,Ia:!1,lb:!1,aa:!1,hb:!1,D:!1,Ob:c.read,o:c.disposeWhenNodeIsRemoved||c.o||null,qa:c.disposeWhen||c.qa,Ya:null,C:{},K:0,Gb:null};e[A]=k;e.jc="function"===typeof f;b.V.fn.Ha(e);Object.setPrototypeOf(e,M);c.pure?(k.hb=!0,k.D=!0,b.g.extend(e,
aa)):c.deferEvaluation&&b.g.extend(e,ba);k.o&&(k.lb=!0,k.o.nodeType||(k.o=null));k.D||c.deferEvaluation||e.U();k.o&&e.isActive()&&b.g.L.oa(k.o,k.Ya=()=>{e.A()});return e};var M={sa:O,Ea:function(){return this[A].K},fc:function(){var a=[];b.g.P(this[A].C,(c,e)=>a[e.ma]=e.X);return a},cb:function(a){if(!this[A].K)return!1;var c=this.fc();return c.includes(a)||!!c.find(e=>e.cb&&e.cb(a))},vb:function(a,c,e){if(this[A].hb&&c===this)throw Error("A 'pure' computed must not be called recursively");this[A].C[a]=
e;e.ma=this[A].K++;e.na=c.Fa()},ua:function(){var a,c=this[A].C;for(a in c)if(Object.prototype.hasOwnProperty.call(c,a)){var e=c[a];if(this.xa&&e.X.la||e.X.ic(e.na))return!0}},xc:function(){this[A].Ia||this.xa?.(!1)},isActive:function(){var a=this[A];return a.Y||0<a.K},yc:function(){this.la?this[A].Y&&(this[A].ba=!0):this.Fb()},Tb:function(a){return a.subscribe(this.Fb,this)},Fb:function(){var a=this,c=a.throttleEvaluation;0<=c?(clearTimeout(this[A].Gb),this[A].Gb=setTimeout(()=>a.U(!0),c)):a.xa?
a.xa(!0):a.U(!0)},U:function(a){var c=this[A],e=c.qa,f=!1;if(!c.Ia&&!c.aa){if(c.o&&!b.g.Za(c.o)||e?.()){if(!c.lb){this.A();return}}else c.lb=!1;c.Ia=!0;try{f=this.dc(a)}finally{c.Ia=!1}return f}},dc:function(a){var c=this[A],e=c.hb?void 0:!c.K;var f={bc:this,Ca:c.C,Wa:c.K};b.u.zb({ac:f,$b:Y,s:this,eb:e});c.C={};c.K=0;a:{try{var k=c.Ob();break a}finally{b.u.end(),f.Wa&&!c.D&&b.g.P(f.Ca,X),c.ba=c.Y=!1}k=void 0}c.K?f=this.Ja(c.N,k):(this.A(),f=!0);f&&(c.D?this.Na():this.B(c.N,"beforeChange"),c.N=k,this.B(c.N,
"spectate"),!c.D&&a&&this.B(c.N),this.tb&&this.tb());e&&this.B(c.N,"awake");return f},J:function(a){var c=this[A];(c.Y&&(a||!c.K)||c.D&&this.ua())&&this.U();return c.N},Ka:function(a){b.V.fn.Ka.call(this,a);this.qb=function(){this[A].D||(this[A].ba?this.U():this[A].Y=!1);return this[A].N};this.xa=function(c){this.rb(this[A].N);this[A].Y=!0;c&&(this[A].ba=!0);this.sb(this,!c)}},A:function(){var a=this[A];!a.D&&a.C&&b.g.P(a.C,(c,e)=>e.A?.());a.o&&a.Ya&&b.g.L.ib(a.o,a.Ya);a.C=void 0;a.K=0;a.aa=!0;a.ba=
!1;a.Y=!1;a.D=!1;a.o=void 0;a.qa=void 0;a.Ob=void 0}},aa={pa:function(a){var c=this,e=c[A];if(!e.aa&&e.D&&"change"==a){e.D=!1;if(e.ba||c.ua())e.C=null,e.K=0,c.U()&&c.Na();else{var f=[];b.g.P(e.C,(k,n)=>f[n.ma]=k);f.forEach((k,n)=>{var d=e.C[k],g=c.Tb(d.X);g.ma=n;g.na=d.na;e.C[k]=g});c.ua()&&c.U()&&c.Na()}e.aa||c.B(e.N,"awake")}},za:function(a){var c=this[A];c.aa||"change"!=a||this.ta("change")||(b.g.P(c.C,(e,f)=>{f.A&&(c.C[e]={X:f.X,ma:f.ma,na:f.na},f.A())}),c.D=!0,this.B(void 0,"asleep"))},Fa:function(){var a=
this[A];a.D&&(a.ba||this.ua())&&this.U();return b.V.fn.Fa.call(this)}},ba={pa:function(a){"change"!=a&&"beforeChange"!=a||this.J()}};Object.setPrototypeOf(M,b.V.fn);var Q=b.ca.rc;M[Q]=b.s;b.v("computed",b.s);b.v("isComputed",a=>"function"==typeof a&&a[Q]===M[Q]);b.v("computed.fn",M);b.ja(M,"dispose",M.A);b.sc=a=>{if("function"===typeof a)return b.s(a,{pure:!0});a={...a,pure:!0};return b.s(a)};(()=>{b.F={R:a=>{switch(a.nodeName){case "OPTION":return!0===a.__ko__hasDomDataOptionValue__?b.g.i.get(a,
b.h.options.gb):a.value;case "SELECT":return 0<=a.selectedIndex?b.F.R(a.options[a.selectedIndex]):void 0;default:return a.value}},Pa:(a,c,e)=>{switch(a.nodeName){case "OPTION":"string"===typeof c?(b.g.i.set(a,b.h.options.gb,void 0),delete a.__ko__hasDomDataOptionValue__,a.value=c):(b.g.i.set(a,b.h.options.gb,c),a.__ko__hasDomDataOptionValue__=!0,a.value="number"===typeof c?c:"");break;case "SELECT":for(var f=-1,k=""===c||null==c,n=0,d=a.options.length,g;n<d;++n)if(g=b.F.R(a.options[n]),g==c||""===
g&&k){f=n;break}if(e||0<=f||k&&1<a.size)a.selectedIndex=f;break;default:a.value=null==c?"":c}}}})();b.I=(()=>{function a(g){g=b.g.Sb(g);123===g.charCodeAt(0)&&(g=g.slice(1,-1));g+="\n,";var h=[],r=g.match(f),t=[],q=0;if(1<r.length){for(var m=0,l;l=r[m++];){var p=l.charCodeAt(0);if(44===p){if(0>=q){h.push(u&&t.length?{key:u,value:t.join("")}:{unknown:u||t.join("")});var u=q=0;t=[];continue}}else if(58===p){if(!q&&!u&&1===t.length){u=t.pop();continue}}else if(47===p&&1<l.length&&(47===l.charCodeAt(1)||
42===l.charCodeAt(1)))continue;else 47===p&&m&&1<l.length?(p=r[m-1].match(k))&&!n[p[0]]&&(g=g.slice(g.indexOf(l)+1),r=g.match(f),m=-1,l="/"):40===p||123===p||91===p?++q:41===p||125===p||93===p?--q:u||t.length||34!==p&&39!==p||(l=l.slice(1,-1));t.push(l)}if(0<q)throw Error("Unbalanced parentheses, braces, or brackets");}return h}var c=["true","false","null","undefined"],e=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,f=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]",
"g"),k=/[\])"'A-Za-z0-9_$]+$/,n={"in":1,"return":1,"typeof":1},d=new Set;return{Sa:[],mb:d,pc:a,qc:function(g,h){function r(p,u){if(!l){var w=b.h[p];if(w&&w.preprocess&&!(u=w.preprocess(u,p,r)))return;if(w=d.has(p)){var v=u;c.includes(v)?v=!1:(w=v.match(e),v=null===w?!1:w[1]?"Object("+w[1]+")"+w[2]:v);w=v}w&&q.push("'"+p+"':function(_z){"+v+"=_z}")}m&&(u="function(){return "+u+" }");t.push("'"+p+"':"+u)}h=h||{};var t=[],q=[],m=h.valueAccessors,l=h.bindingParams;("string"===typeof g?a(g):g).forEach(p=>
r(p.key||p.unknown,p.value));q.length&&r("_ko_property_writers","{"+q.join(",")+" }");return t.join(",")},nc:(g,h)=>-1<g.findIndex(r=>r.key==h),ob:(g,h,r,t,q)=>{if(g&&b.T(g))!b.mc(g)||q&&g.J()===t||g(t);else if((g=h.get("_ko_property_writers"))&&g[r])g[r](t)}}})();(()=>{function a(d){return 8==d.nodeType&&f.test(d.nodeValue)}function c(d){return 8==d.nodeType&&k.test(d.nodeValue)}function e(d,g){for(var h=d,r=1,t=[];h=h.nextSibling;){if(c(h)&&(b.g.i.set(h,n,!0),!--r))return t;t.push(h);a(h)&&++r}if(!g)throw Error("Cannot find closing comment tag to match: "+
d.nodeValue);return null}var f=/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=/^\s*\/ko\s*$/,n="__ko_matchedEndComment__";b.m={da:{},childNodes:d=>a(d)?e(d):d.childNodes,ra:d=>{a(d)?(d=e(d))&&[...d].forEach(g=>b.removeNode(g)):b.g.$a(d)},wa:(d,g)=>{a(d)?(b.m.ra(d),d.after(...g)):b.g.wa(d,g)},prepend:(d,g)=>{a(d)?d.nextSibling.before(g):d.prepend(g)},Jb:(d,g,h)=>{h?h.after(g):b.m.prepend(d,g)},firstChild:d=>{if(a(d))return d=d.nextSibling,!d||c(d)?null:d;let g=d.firstChild;if(g&&c(g))throw Error("Found invalid end comment, as the first child of "+
d);return g},nextSibling:d=>{if(a(d)){var g=e(d,void 0);d=g?(g.length?g[g.length-1]:d).nextSibling:null}if((g=d.nextSibling)&&c(g)){if(c(g)&&!b.g.i.get(g,n))throw Error("Found end comment without a matching opening comment, as child of "+d);return null}return g},hc:a,wc:d=>(d=d.nodeValue.match(f))?d[1]:null}})();(()=>{const a=new Map;b.Ab=new class{oc(c){switch(c.nodeType){case 1:return null!=c.getAttribute("data-bind");case 8:return b.m.hc(c);default:return!1}}ec(c,e){a:{switch(c.nodeType){case 1:var f=
c.getAttribute("data-bind");break a;case 8:f=b.m.wc(c);break a}f=null}if(f)try{let n={valueAccessors:!0},d=a.get(f);if(!d){var k="with($context){with($data||{}){return{"+b.I.qc(f,n)+"}}}";d=new Function("$context","$element",k);a.set(f,d)}return d(e,c)}catch(n){throw n.message="Unable to parse bindings.\nBindings value: "+f+"\nMessage: "+n.message,n;}return null}}})();(()=>{function a(m){var l=(m=b.g.i.get(m,t))&&m.H;l&&(m.H=null,l.Nb())}function c(m,l){for(var p,u=b.m.firstChild(l);p=u;)u=b.m.nextSibling(p),
e(m,p);b.l.notify(l,b.l.G)}function e(m,l){var p=m;if(1===l.nodeType||b.Ab.oc(l))p=k(l,null,m).bindingContextForDescendants;p&&l.matches&&!l.matches("SCRIPT,TEXTAREA,TEMPLATE")&&c(p,l)}function f(m){var l=[],p={},u=[];b.g.P(m,function z(v){if(!p[v]){var x=b.h[v];x&&(x.after&&(u.push(v),x.after.forEach(E=>{if(m[E]){if(u.includes(E))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+u.join(", "));z(E)}}),u.length--),l.push({key:v,Ib:x}));p[v]=!0}});return l}
function k(m,l,p){var u=b.g.i.bb(m,t,{}),w=u.Zb;if(!l){if(w)throw Error("You cannot apply bindings multiple times to the same element.");u.Zb=!0}w||(u.context=p);u.fb||(u.fb={});if(l&&"function"!==typeof l)var v=l;else{var z=b.s(()=>{if(v=l?l(p,m):b.Ab.ec(m,p)){if(p[d])p[d]();if(p[h])p[h]()}return v},{o:m});v&&z.isActive()||(z=null)}var x=p,E;if(v){var D=z?y=>()=>z()[y]():y=>v[y],B={get:y=>v[y]&&D(y)(),has:y=>y in v};b.l.G in v&&b.l.subscribe(m,b.l.G,()=>{var y=v[b.l.G]();if(y){var C=b.m.childNodes(m);
(T=>{function O(a,c){return null===a||U[typeof a]?a===c:!1}function V(a,c){var d;return()=>{d||(d=setTimeout(()=>{d=0;a()},c))}}function W(a,c){var d;return()=>{clearTimeout(d);d=setTimeout(a,c)}}function X(a,c){c?.A?.()}function Y(a,c){var d=this.$b,f=d[A];f.aa||(this.Wa&&this.Ca[c]?(d.vb(c,a,this.Ca[c]),this.Ca[c]=null,--this.Wa):f.B[c]||d.vb(c,a,f.C?{X:a}:d.Sb(a)),a.la&&a.Wb())}var M=T.document,P={},b="undefined"!==typeof P?P:{};b.v=(a,c)=>{a=a.split(".");for(var d=b,f=0,k=a.length-1;f<k;f++)d=
d[a[f]];d[a[k]]=c};b.ja=(a,c,d)=>{a[c]=d};b.v("version","3.5.1-sm");b.g={extend:(a,c)=>c?Object.assign(a,c):a,P:(a,c)=>a&&Object.entries(a).forEach(d=>c(d[0],d[1])),$a:a=>[...a.childNodes].forEach(c=>b.removeNode(c)),Mb:a=>{a=[...a];var c=(a[0]?.ownerDocument||M).createElement("div");a.forEach(d=>c.append(b.ga(d)));return c},Ba:(a,c)=>Array.prototype.map.call(a,c?d=>b.ga(d.cloneNode(!0)):d=>d.cloneNode(!0)),wa:(a,c)=>{b.g.$a(a);c&&a.append(...c)},Da:(a,c)=>{if(a.length){for(c=8===c.nodeType&&c.parentNode||
c;a.length&&a[0].parentNode!==c;)a.splice(0,1);for(;1<a.length&&a[a.length-1].parentNode!==c;)--a.length;if(1<a.length){c=a[0];var d=a[a.length-1];for(a.length=0;c!==d;)a.push(c),c=c.nextSibling;a.push(d)}}return a},Rb: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),Tb:(a,c)=>{if(!a?.nodeType)throw Error("element must be a DOM node when calling triggerEvent");a.dispatchEvent(new Event(c))},
j:a=>b.T(a)?a():a,jb:(a,c)=>a.textContent=b.g.j(c)||""};b.v("utils",b.g);b.v("unwrap",b.g.j);(()=>{let a=0,c="__ko__"+Date.now(),d=new WeakMap;b.g.i={get:(f,k)=>(d.get(f)||{})[k],set:(f,k,n)=>{d.has(f)?d.get(f)[k]=n:d.set(f,{[k]:n});return n},bb:function(f,k,n){return this.get(f,k)||this.set(f,k,n)},clear:f=>d.delete(f),Z:()=>a++ +c}})();b.g.L=(()=>{var a=b.g.i.Z(),c={1:1,8:1,9:1},d={1:1,9:1};const f=(e,g)=>{var h=b.g.i.get(e,a);g&&!h&&(h=new Set,b.g.i.set(e,a,h));return h},k=e=>{var g=f(e);g&&(new Set(g)).forEach(h=>
h(e));b.g.i.clear(e);d[e.nodeType]&&n(e.childNodes,!0)},n=(e,g)=>{for(var h=[],r,t=0;t<e.length;t++)if(!g||8===e[t].nodeType)if(k(h[h.length]=r=e[t]),e[t]!==r)for(;t--&&!h.includes(e[t]););};return{oa:(e,g)=>{if("function"!=typeof g)throw Error("Callback must be a function");f(e,1).add(g)},ib:(e,g)=>{var h=f(e);h&&(h.delete(g),h.size||b.g.i.set(e,a,null))},ga:e=>{b.u.S(()=>{c[e.nodeType]&&(k(e),d[e.nodeType]&&n(e.getElementsByTagName("*")))});return e},removeNode:e=>{b.ga(e);e.parentNode&&e.parentNode.removeChild(e)}}})();
b.ga=b.g.L.ga;b.removeNode=b.g.L.removeNode;b.v("utils.domNodeDisposal",b.g.L);b.v("utils.domNodeDisposal.addDisposeCallback",b.g.L.oa);b.ab={debounce:(a,c)=>a.Ka(d=>W(d,c)),rateLimit:(a,c)=>{if("number"==typeof c)var d=c;else{d=c.timeout;var f=c.method}var k="function"==typeof f?f:V;a.Ka(n=>k(n,d,c))},notify:(a,c)=>{a.sa="always"==c?null:O}};var U={undefined:1,"boolean":1,number:1,string:1};b.v("extenders",b.ab);class Z{constructor(a,c,d){this.X=a;this.pb=c;this.va=d;this.Qa=!1;this.M=this.$=null;
b.ja(this,"dispose",this.A)}A(){this.Qa||(this.M&&b.g.L.ib(this.$,this.M),this.Qa=!0,this.va(),this.X=this.pb=this.va=this.$=this.M=null)}o(a){this.$=a;b.g.L.oa(a,this.M=this.A.bind(this))}}b.V=function(){Object.setPrototypeOf(this,G);G.Ha(this)};var G={Ha:a=>{a.W=new Map;a.W.set("change",new Set);a.ub=1},subscribe:function(a,c,d){var f=this;d=d||"change";var k=new Z(f,c?a.bind(c):a,()=>{f.W.get(d).delete(k);f.za&&f.za(d)});f.pa&&f.pa(d);f.W.has(d)||f.W.set(d,new Set);f.W.get(d).add(k);return k},
D:function(a,c){c=c||"change";"change"===c&&this.Na();if(this.ta(c)){c="change"===c&&this.Ub||new Set(this.W.get(c));try{b.u.zb(),c.forEach(d=>{d.Qa||d.pb(a)})}finally{b.u.end()}}},Fa:function(){return this.ub},fc:function(a){return this.Fa()!==a},Na:function(){++this.ub},Ka:function(a){var c=this,d=b.T(c),f,k,n,e,g;c.ya||(c.ya=c.D,c.D=function(r,t){t&&"change"!==t?"beforeChange"===t?this.rb(r):this.ya(r,t):this.sb(r)});var h=a(()=>{c.la=!1;d&&e===c&&(e=c.qb?c.qb():c());var r=k||g&&c.Ja(n,e);g=k=
f=!1;r&&c.ya(n=e)});c.sb=(r,t)=>{t&&c.la||(g=!t);c.Ub=new Set(c.W.get("change"));c.la=f=!0;e=r;h()};c.rb=r=>{f||(n=r,c.ya(r,"beforeChange"))};c.tb=()=>{g=!0};c.Wb=()=>{c.Ja(n,c.J(!0))&&(k=!0)}},ta:function(a){return(this.W.get(a)||[]).size},Ja:function(a,c){return!this.sa||!this.sa(a,c)},toString:()=>"[object Object]",extend:function(a){var c=this;a&&b.g.P(a,(d,f)=>{d=b.ab[d];"function"==typeof d&&(c=d(c,f)||c)});return c}};b.ja(G,"init",G.Ha);b.ja(G,"subscribe",G.subscribe);b.ja(G,"extend",G.extend);
Object.setPrototypeOf(G,Function.prototype);b.V.fn=G;b.jc=a=>"function"==typeof a?.subscribe&&"function"==typeof a.D;(()=>{var a=[],c,d=0;b.u={zb:f=>{a.push(c);c=f},end:()=>c=a.pop(),Pb:f=>{if(c){if(!b.jc(f))throw Error("Only subscribable things can act as dependencies");c.Yb.call(c.Zb,f,f.Vb||(f.Vb=++d))}},S:(f,k,n)=>{try{return a.push(c),c=void 0,f.apply(k,n||[])}finally{c=a.pop()}},Ea:()=>c?.s.Ea(),eb:()=>c?.eb,s:()=>c?.s}})();const F=Symbol("_latestValue");b.ca=a=>{function c(){if(0<arguments.length)return c.Ja(c[F],
arguments[0])&&(c.nb(),c[F]=arguments[0],c.Oa()),this;b.u.Pb(c);return c[F]}c[F]=a;Object.defineProperty(c,"length",{get:()=>null==c[F]?void 0:c[F].length});b.V.fn.Ha(c);Object.setPrototypeOf(c,I);return c};var I={toJSON:function(){let a=this[F];return a?.toJSON?.()||a},sa:O,J:function(){return this[F]},Oa:function(){this.D(this[F],"spectate");this.D(this[F])},nb:function(){this.D(this[F],"beforeChange")}};Object.setPrototypeOf(I,b.V.fn);var J=b.ca.pc="__ko_proto__";I[J]=b.ca;b.T=a=>{if((a="function"==
typeof a&&a[J])&&a!==I[J]&&a!==b.s.fn[J])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!a};b.kc=a=>"function"==typeof a&&(a[J]===I[J]||a[J]===b.s.fn[J]&&a.hc);b.v("observable",b.ca);b.v("isObservable",b.T);b.v("observable.fn",I);b.ja(I,"valueHasMutated",I.Oa);b.ka=a=>{a=a||[];if("object"!=typeof a||!("length"in a))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");a=b.ca(a);
Object.setPrototypeOf(a,b.ka.fn);return a.extend({trackArrayChanges:!0})};b.ka.fn={remove:function(a){for(var c=this.J(),d=!1,f="function"!=typeof a||b.T(a)?e=>e===a:a,k=c.length;k--;){var n=c[k];if(f(n)){if(c[k]!==n)throw Error("Array modified during remove; cannot remove item");d||this.nb();d=!0;c.splice(k,1)}}d&&this.Oa()}};Object.setPrototypeOf(b.ka.fn,b.ca.fn);Object.getOwnPropertyNames(Array.prototype).forEach(a=>{"function"===typeof Array.prototype[a]&&"constructor"!=a&&("copyWithin fill pop push reverse shift sort splice unshift".split(" ").includes(a)?
b.ka.fn[a]=function(...c){var d=this.J();this.nb();this.Bb(d,a,c);c=d[a](...c);this.Oa();return c===d?this:c}:b.ka.fn[a]=function(...c){return this()[a](...c)})});b.Kb=a=>b.T(a)&&"function"==typeof a.remove&&"function"==typeof a.push;b.v("observableArray",b.ka);b.v("isObservableArray",b.Kb);b.ab.trackArrayChanges=(a,c)=>{function d(){function q(){if(g){var m=[].concat(a.J()||[]);if(a.ta("arrayChange")){if(!k||1<g)k=b.g.Cb(h,m,a.Ta);var l=k}h=m;k=null;g=0;l?.length&&a.D(l,"arrayChange")}}f?q():(f=
!0,e=a.subscribe(()=>++g,null,"spectate"),h=[].concat(a.J()||[]),k=null,n=a.subscribe(q))}a.Ta={};"object"==typeof c&&b.g.extend(a.Ta,c);a.Ta.sparse=!0;if(!a.Bb){var f=!1,k=null,n,e,g=0,h,r=a.pa,t=a.za;a.pa=q=>{r&&r.call(a,q);"arrayChange"===q&&d()};a.za=q=>{t&&t.call(a,q);"arrayChange"!==q||a.ta("arrayChange")||(n&&n.A(),e&&e.A(),e=n=null,f=!1,h=void 0)};a.Bb=(q,m,l)=>{function p(D,B,y){return u[u.length]={status:D,value:B,index:y}}if(f&&!g){var u=[],w=q.length,v=l.length,z=0;switch(m){case "push":z=
w;case "unshift":for(q=0;q<v;q++)p("added",l[q],z+q);break;case "pop":z=w-1;case "shift":w&&p("deleted",q[z],z);break;case "splice":z=Math.min(Math.max(0,0>l[0]?w+l[0]:l[0]),w);w=1===v?w:Math.min(z+(l[1]||0),w);v=z+v-2;m=Math.max(w,v);var x=[],E=[];for(let D=z,B=2;D<m;++D,++B)D<w&&E.push(p("deleted",q[D],D)),D<v&&x.push(p("added",l[B],D));b.g.Hb(E,x);break;default:return}k=u}}}};var A=Symbol("_state");b.s=(a,c)=>{function d(){if(0<arguments.length){if("function"!==typeof f)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.");
f(...arguments);return this}k.aa||b.u.Pb(d);(k.Y||k.C&&d.ua())&&d.U();return k.N}"object"===typeof a?c=a:(c=c||{},a&&(c.read=a));if("function"!=typeof c.read)throw Error("Pass a function that returns the value of the ko.computed");var f=c.write,k={N:void 0,ba:!0,Y:!0,Ia:!1,lb:!1,aa:!1,hb:!1,C:!1,Ob:c.read,o:c.disposeWhenNodeIsRemoved||c.o||null,qa:c.disposeWhen||c.qa,Ya:null,B:{},K:0,Gb:null};d[A]=k;d.hc="function"===typeof f;b.V.fn.Ha(d);Object.setPrototypeOf(d,L);c.pure?(k.hb=!0,k.C=!0,b.g.extend(d,
aa)):c.deferEvaluation&&b.g.extend(d,ba);k.o&&(k.lb=!0,k.o.nodeType||(k.o=null));k.C||c.deferEvaluation||d.U();k.o&&d.isActive()&&b.g.L.oa(k.o,k.Ya=()=>{d.A()});return d};var L={sa:O,Ea:function(){return this[A].K},dc:function(){var a=[];b.g.P(this[A].B,(c,d)=>a[d.ma]=d.X);return a},cb:function(a){if(!this[A].K)return!1;var c=this.dc();return c.includes(a)||!!c.find(d=>d.cb&&d.cb(a))},vb:function(a,c,d){if(this[A].hb&&c===this)throw Error("A 'pure' computed must not be called recursively");this[A].B[a]=
d;d.ma=this[A].K++;d.na=c.Fa()},ua:function(){var a,c=this[A].B;for(a in c)if(Object.prototype.hasOwnProperty.call(c,a)){var d=c[a];if(this.xa&&d.X.la||d.X.fc(d.na))return!0}},vc:function(){this[A].Ia||this.xa?.(!1)},isActive:function(){var a=this[A];return a.Y||0<a.K},wc:function(){this.la?this[A].Y&&(this[A].ba=!0):this.Fb()},Sb:function(a){return a.subscribe(this.Fb,this)},Fb:function(){var a=this,c=a.throttleEvaluation;0<=c?(clearTimeout(this[A].Gb),this[A].Gb=setTimeout(()=>a.U(!0),c)):a.xa?
a.xa(!0):a.U(!0)},U:function(a){var c=this[A],d=c.qa,f=!1;if(!c.Ia&&!c.aa){if(c.o&&!b.g.Za(c.o)||d?.()){if(!c.lb){this.A();return}}else c.lb=!1;c.Ia=!0;try{f=this.bc(a)}finally{c.Ia=!1}return f}},bc:function(a){var c=this[A],d=c.hb?void 0:!c.K;var f={$b:this,Ca:c.B,Wa:c.K};b.u.zb({Zb:f,Yb:Y,s:this,eb:d});c.B={};c.K=0;a:{try{var k=c.Ob();break a}finally{b.u.end(),f.Wa&&!c.C&&b.g.P(f.Ca,X),c.ba=c.Y=!1}k=void 0}c.K?f=this.Ja(c.N,k):(this.A(),f=!0);f&&(c.C?this.Na():this.D(c.N,"beforeChange"),c.N=k,this.D(c.N,
"spectate"),!c.C&&a&&this.D(c.N),this.tb&&this.tb());d&&this.D(c.N,"awake");return f},J:function(a){var c=this[A];(c.Y&&(a||!c.K)||c.C&&this.ua())&&this.U();return c.N},Ka:function(a){b.V.fn.Ka.call(this,a);this.qb=function(){this[A].C||(this[A].ba?this.U():this[A].Y=!1);return this[A].N};this.xa=function(c){this.rb(this[A].N);this[A].Y=!0;c&&(this[A].ba=!0);this.sb(this,!c)}},A:function(){var a=this[A];!a.C&&a.B&&b.g.P(a.B,(c,d)=>d.A?.());a.o&&a.Ya&&b.g.L.ib(a.o,a.Ya);a.B=void 0;a.K=0;a.aa=!0;a.ba=
!1;a.Y=!1;a.C=!1;a.o=void 0;a.qa=void 0;a.Ob=void 0}},aa={pa:function(a){var c=this,d=c[A];if(!d.aa&&d.C&&"change"==a){d.C=!1;if(d.ba||c.ua())d.B=null,d.K=0,c.U()&&c.Na();else{var f=[];b.g.P(d.B,(k,n)=>f[n.ma]=k);f.forEach((k,n)=>{var e=d.B[k],g=c.Sb(e.X);g.ma=n;g.na=e.na;d.B[k]=g});c.ua()&&c.U()&&c.Na()}d.aa||c.D(d.N,"awake")}},za:function(a){var c=this[A];c.aa||"change"!=a||this.ta("change")||(b.g.P(c.B,(d,f)=>{f.A&&(c.B[d]={X:f.X,ma:f.ma,na:f.na},f.A())}),c.C=!0,this.D(void 0,"asleep"))},Fa:function(){var a=
this[A];a.C&&(a.ba||this.ua())&&this.U();return b.V.fn.Fa.call(this)}},ba={pa:function(a){"change"!=a&&"beforeChange"!=a||this.J()}};Object.setPrototypeOf(L,b.V.fn);var Q=b.ca.pc;L[Q]=b.s;b.v("computed",b.s);b.v("isComputed",a=>"function"==typeof a&&a[Q]===L[Q]);b.v("computed.fn",L);b.ja(L,"dispose",L.A);b.qc=a=>{if("function"===typeof a)return b.s(a,{pure:!0});a={...a,pure:!0};return b.s(a)};(()=>{b.F={R:a=>{switch(a.nodeName){case "OPTION":return!0===a.__ko__hasDomDataOptionValue__?b.g.i.get(a,
b.h.options.gb):a.value;case "SELECT":return 0<=a.selectedIndex?b.F.R(a.options[a.selectedIndex]):void 0;default:return a.value}},Pa:(a,c,d)=>{switch(a.nodeName){case "OPTION":"string"===typeof c?(b.g.i.set(a,b.h.options.gb,void 0),delete a.__ko__hasDomDataOptionValue__,a.value=c):(b.g.i.set(a,b.h.options.gb,c),a.__ko__hasDomDataOptionValue__=!0,a.value="number"===typeof c?c:"");break;case "SELECT":for(var f=-1,k=""===c||null==c,n=0,e=a.options.length,g;n<e;++n)if(g=b.F.R(a.options[n]),g==c||""===
g&&k){f=n;break}if(d||0<=f||k&&1<a.size)a.selectedIndex=f;break;default:a.value=null==c?"":c}}}})();b.I=(()=>{function a(g){g=b.g.Rb(g);123===g.charCodeAt(0)&&(g=g.slice(1,-1));g+="\n,";var h=[],r=g.match(f),t=[],q=0;if(1<r.length){for(var m=0,l;l=r[m++];){var p=l.charCodeAt(0);if(44===p){if(0>=q){h.push(u&&t.length?{key:u,value:t.join("")}:{unknown:u||t.join("")});var u=q=0;t=[];continue}}else if(58===p){if(!q&&!u&&1===t.length){u=t.pop();continue}}else if(47===p&&1<l.length&&(47===l.charCodeAt(1)||
42===l.charCodeAt(1)))continue;else 47===p&&m&&1<l.length?(p=r[m-1].match(k))&&!n[p[0]]&&(g=g.slice(g.indexOf(l)+1),r=g.match(f),m=-1,l="/"):40===p||123===p||91===p?++q:41===p||125===p||93===p?--q:u||t.length||34!==p&&39!==p||(l=l.slice(1,-1));t.push(l)}if(0<q)throw Error("Unbalanced parentheses, braces, or brackets");}return h}var c=["true","false","null","undefined"],d=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,f=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]",
"g"),k=/[\])"'A-Za-z0-9_$]+$/,n={"in":1,"return":1,"typeof":1},e=new Set;return{Sa:[],mb:e,nc:a,oc:function(g,h){function r(p,u){if(!l){var w=b.h[p];if(w&&w.preprocess&&!(u=w.preprocess(u,p,r)))return;if(w=e.has(p)){var v=u;c.includes(v)?v=!1:(w=v.match(d),v=null===w?!1:w[1]?"Object("+w[1]+")"+w[2]:v);w=v}w&&q.push("'"+p+"':function(_z){"+v+"=_z}")}m&&(u="function(){return "+u+" }");t.push("'"+p+"':"+u)}h=h||{};var t=[],q=[],m=h.valueAccessors,l=h.bindingParams;("string"===typeof g?a(g):g).forEach(p=>
r(p.key||p.unknown,p.value));q.length&&r("_ko_property_writers","{"+q.join(",")+" }");return t.join(",")},lc:(g,h)=>-1<g.findIndex(r=>r.key==h),ob:(g,h,r,t,q)=>{if(g&&b.T(g))!b.kc(g)||q&&g.J()===t||g(t);else if((g=h.get("_ko_property_writers"))&&g[r])g[r](t)}}})();(()=>{function a(e){return 8==e.nodeType&&f.test(e.nodeValue)}function c(e){return 8==e.nodeType&&k.test(e.nodeValue)}function d(e,g){for(var h=e,r=1,t=[];h=h.nextSibling;){if(c(h)&&(b.g.i.set(h,n,!0),!--r))return t;t.push(h);a(h)&&++r}if(!g)throw Error("Cannot find closing comment tag to match: "+
e.nodeValue);return null}var f=/^\s*ko(?:\s+([\s\S]+))?\s*$/,k=/^\s*\/ko\s*$/,n="__ko_matchedEndComment__";b.m={da:{},childNodes:e=>a(e)?d(e):e.childNodes,ra:e=>{a(e)?(e=d(e))&&[...e].forEach(g=>b.removeNode(g)):b.g.$a(e)},wa:(e,g)=>{a(e)?(b.m.ra(e),e.after(...g)):b.g.wa(e,g)},prepend:(e,g)=>{a(e)?e.nextSibling.before(g):e.prepend(g)},Jb:(e,g,h)=>{h?h.after(g):b.m.prepend(e,g)},firstChild:e=>{if(a(e))return e=e.nextSibling,!e||c(e)?null:e;let g=e.firstChild;if(g&&c(g))throw Error("Found invalid end comment, as the first child of "+
e);return g},nextSibling:e=>{if(a(e)){var g=d(e,void 0);e=g?(g.length?g[g.length-1]:e).nextSibling:null}if((g=e.nextSibling)&&c(g)){if(c(g)&&!b.g.i.get(g,n))throw Error("Found end comment without a matching opening comment, as child of "+e);return null}return g},ec:a,uc:e=>(e=e.nodeValue.match(f))?e[1]:null}})();(()=>{const a=new Map;b.Ab=new class{mc(c){switch(c.nodeType){case 1:return null!=c.getAttribute("data-bind");case 8:return b.m.ec(c);default:return!1}}cc(c,d){a:{switch(c.nodeType){case 1:var f=
c.getAttribute("data-bind");break a;case 8:f=b.m.uc(c);break a}f=null}if(f)try{let n={valueAccessors:!0},e=a.get(f);if(!e){var k="with($context){with($data||{}){return{"+b.I.oc(f,n)+"}}}";e=new Function("$context","$element",k);a.set(f,e)}return e(d,c)}catch(n){throw n.message="Unable to parse bindings.\nBindings value: "+f+"\nMessage: "+n.message,n;}return null}}})();(()=>{function a(m){var l=(m=b.g.i.get(m,t))&&m.H;l&&(m.H=null,l.Nb())}function c(m,l){for(var p,u=b.m.firstChild(l);p=u;)u=b.m.nextSibling(p),
d(m,p);b.l.notify(l,b.l.G)}function d(m,l){var p=m;if(1===l.nodeType||b.Ab.mc(l))p=k(l,null,m).bindingContextForDescendants;p&&l.matches&&!l.matches("SCRIPT,TEXTAREA,TEMPLATE")&&c(p,l)}function f(m){var l=[],p={},u=[];b.g.P(m,function z(v){if(!p[v]){var x=b.h[v];x&&(x.after&&(u.push(v),x.after.forEach(E=>{if(m[E]){if(u.includes(E))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+u.join(", "));z(E)}}),u.length--),l.push({key:v,Ib:x}));p[v]=!0}});return l}
function k(m,l,p){var u=b.g.i.bb(m,t,{}),w=u.Xb;if(!l){if(w)throw Error("You cannot apply bindings multiple times to the same element.");u.Xb=!0}w||(u.context=p);u.fb||(u.fb={});if(l&&"function"!==typeof l)var v=l;else{var z=b.s(()=>{if(v=l?l(p,m):b.Ab.cc(m,p)){if(p[e])p[e]();if(p[h])p[h]()}return v},{o:m});v&&z.isActive()||(z=null)}var x=p,E;if(v){var D=z?y=>()=>z()[y]():y=>v[y],B={get:y=>v[y]&&D(y)(),has:y=>y in v};b.l.G in v&&b.l.subscribe(m,b.l.G,()=>{var y=v[b.l.G]();if(y){var C=b.m.childNodes(m);
C.length&&y(C,b.Eb(C[0]))}});b.l.ha in v&&(x=b.l.kb(m,p),b.l.subscribe(m,b.l.ha,()=>{var y=v[b.l.ha]();y&&b.m.firstChild(m)&&y(m)}));f(v).forEach(y=>{var C=y.Ib.init,K=y.Ib.update,H=y.key;if(8===m.nodeType&&!b.m.da[H])throw Error("The binding '"+H+"' cannot be used with virtual elements");try{"function"==typeof C&&b.u.S(()=>{var N=C(m,D(H),B,x.$data,x);if(N&&N.controlsDescendantBindings){if(void 0!==E)throw Error("Multiple bindings ("+E+" and "+H+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");
E=H}}),"function"==typeof K&&b.s(()=>K(m,D(H),B,x.$data,x),{o:m})}catch(N){throw N.message='Unable to process binding "'+H+": "+v[H]+'"\nMessage: '+N.message,N;}})}u=void 0===E;return{shouldBindDescendants:u,bindingContextForDescendants:u&&x}}function n(m,l){return m&&m instanceof b.fa?m:new b.fa(m,void 0,void 0,l)}var d=Symbol("_subscribable"),g=Symbol("_ancestorBindingInfo"),h=Symbol("_dataDependency");b.h={};var r={};b.fa=class{constructor(m,l,p,u,w){var v=this,z=m===r,x=z?void 0:m,E="function"==
typeof x&&!b.T(x),D=w&&w.dataDependency;m=()=>{var y=E?x():x,C=b.g.j(y);l?(b.g.extend(v,l),g in l&&(v[g]=l[g])):(v.$parents=[],v.$root=C,v.ko=b);v[d]=B;z?C=v.$data:(v.$rawData=y,v.$data=C);p&&(v[p]=C);u&&u(v,l,C);if(l&&l[d]&&!b.u.s().cb(l[d]))l[d]();D&&(v[h]=D);return v.$data};if(w&&w.exportDependencies)m();else{var B=b.sc(m);B.J();B.isActive()?B.sa=null:v[d]=void 0}}createChildContext(m,l,p,u){!u&&l&&"object"==typeof l&&(u=l,l=u.as,p=u.extend);return new b.fa(m,this,l,(w,v)=>{w.$parentContext=v;
w.$parent=v.$data;w.$parents=(v.$parents||[]).slice(0);w.$parents.unshift(w.$parent);p&&p(w)},u)}extend(m,l){return new b.fa(r,this,null,p=>b.g.extend(p,"function"==typeof m?m(p):m),l)}};var t=b.g.i.Z();class q{constructor(m,l,p){this.M=m;this.va=l;this.Aa=new Set;this.G=!1;l.H||b.g.L.oa(m,a);p&&p.H&&(p.H.Aa.add(m),this.$=p)}Nb(){this.$&&this.$.H&&this.$.H.cc(this.M)}cc(m){this.Aa.delete(m);!this.Aa.size&&this.G&&this.Db()}Db(){this.G=!0;this.va.H&&!this.Aa.size&&(this.va.H=null,b.g.L.ib(this.M,a),
b.l.notify(this.M,b.l.ha),this.Nb())}}b.l={G:"childrenComplete",ha:"descendantsComplete",subscribe:(m,l,p,u,w)=>{var v=b.g.i.bb(m,t,{});v.ia||(v.ia=new b.V);w&&w.notifyImmediately&&v.fb[l]&&b.u.S(p,u,[m]);return v.ia.subscribe(p,u,l)},notify:(m,l)=>{var p=b.g.i.get(m,t);if(p&&(p.fb[l]=!0,p.ia&&p.ia.B(m,l),l==b.l.G))if(p.H)p.H.Db();else if(void 0===p.H&&p.ia&&p.ia.ta(b.l.ha))throw Error("descendantsComplete event not supported for bindings on this node");},kb:(m,l)=>{var p=b.g.i.bb(m,t,{});p.H||(p.H=
new q(m,p,l[g]));return l[g]==p?l:l.extend(u=>{u[g]=p})}};b.vc=m=>(m=b.g.i.get(m,t))&&m.context;b.wb=(m,l,p)=>k(m,l,n(p));b.yb=(m,l)=>{1!==l.nodeType&&8!==l.nodeType||c(n(m),l)};b.xb=function(m,l,p){if(2>arguments.length){if(l=L.body,!l)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!l||1!==l.nodeType&&8!==l.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");e(n(m,p),l)};
b.Eb=m=>(m=m&&[1,8].includes(m.nodeType)&&b.vc(m))?m.$data:void 0;b.v("bindingHandlers",b.h);b.v("applyBindings",b.xb);b.v("applyBindingAccessorsToNode",b.wb);b.v("dataFor",b.Eb)})();(()=>{var a=Object.create(null),c=new Map;b.Ua={get:(n,d)=>{if(c.has(n))b.Ub.Qb(()=>d(c.get(n)));else{var g=a[n];if(g)g.subscribe(d);else{g=a[n]=new b.V;g.subscribe(d);k(n,r=>{c.set(n,r);delete a[n];h?g.B(r):b.Ub.Qb(()=>g.B(r))});var h=!0}}},register:(n,d)=>{if(!d)throw Error("Invalid configuration for "+n);if(e[n])throw Error("Component "+
n+" is already registered");e[n]=d}};var e=Object.create(null),f=(n,d)=>{throw Error(`Component '${n}': ${d}`);},k=(n,d)=>{var g={},h=e[n]||{},r=h.template;h=h.viewModel;if(r){r.element||f(n,"Unknown template value: "+r);r=r.element;var t=L.getElementById(r);t||f(n,"Cannot find element with ID "+r);t.matches("TEMPLATE")||f(n,"Template Source Element not a <template>");g.template=b.g.Ba(t.content.childNodes)}h&&("function"!==typeof h.createViewModel&&f(n,"Unknown viewModel value: "+h),g.createViewModel=
h.createViewModel);d(g.template&&g.createViewModel?g:null)};b.v("components",b.Ua);b.v("components.register",b.Ua.register)})();(()=>{var a=0;b.h.component={init:(c,e,f,k,n)=>{var d,g,h,r=()=>{var q=d&&d.dispose;"function"===typeof q&&q.call(d);h&&h.A();g=d=h=null},t=[...b.m.childNodes(c)];b.m.ra(c);b.g.L.oa(c,r);b.s(()=>{var q=b.g.j(e());if("string"!==typeof q){var m=b.g.j(q.params);q=b.g.j(q.name)}if(!q)throw Error("No component name specified");var l=b.l.kb(c,n),p=g=++a;b.Ua.get(q,u=>{if(g===p){r();
if(!u)throw Error("Unknown component '"+q+"'");var w=u.template;if(!w)throw Error("Component '"+q+"' has no template");b.m.wa(c,b.g.Ba(w));d=u.createViewModel(m,{element:c,templateNodes:t});b.yb(l.createChildContext(d,{extend:v=>{v.$component=d;v.$componentTemplateNodes=t}}),c)}})},{o:c});return{controlsDescendantBindings:!0}}};b.m.da.component=!0})();b.h.attr={update:(a,c)=>{c=b.g.j(c())||{};b.g.P(c,function(e,f){f=b.g.j(f);var k=e.indexOf(":");k="lookupNamespaceURI"in a&&0<k&&a.lookupNamespaceURI(e.slice(0,
k));var n=!1===f||null==f;n?k?a.removeAttributeNS(k,e):a.removeAttribute(e):(f=f.toString(),k?a.setAttributeNS(k,e,f):a.setAttribute(e,f));"name"===e&&(a.name=n?"":f)})}};var R=(a,c,e)=>c&&c.split(/\s+/).forEach(f=>a.classList.toggle(f,e));b.h.css={update:(a,c)=>{c=b.g.j(c());"object"==typeof c?b.g.P(c,(e,f)=>{f=b.g.j(f);R(a,e,!!f)}):(c=b.g.Sb(c),R(a,a.__ko__cssValue,!1),a.__ko__cssValue=c,R(a,c,!0))}};b.h.enable={update:(a,c)=>{(c=b.g.j(c()))&&a.disabled?a.removeAttribute("disabled"):c||a.disabled||
(a.disabled=!0)}};b.h.disable={update:(a,c)=>b.h.enable.update(a,()=>!b.g.j(c()))};b.h.event={init:(a,c,e,f,k)=>{e=c()||{};b.g.P(e,n=>{"string"==typeof n&&a.addEventListener(n,(...d)=>{var g=c()[n];if(g)try{f=k.$data;var h=g.apply(f,[f,...d])}finally{!0!==h&&d[0].preventDefault()}})})}};b.h.foreach={Lb:a=>()=>{var c=a(),e=b.T(c)?c.J():c;if(!e||"number"==typeof e.length)return{foreach:c};b.g.j(c);return{foreach:e.data,as:e.as,beforeRemove:e.beforeRemove}},init:(a,c)=>b.h.template.init(a,b.h.foreach.Lb(c)),
update:(a,c,e,f,k)=>b.h.template.update(a,b.h.foreach.Lb(c),e,f,k)};b.I.Sa.foreach=!1;b.m.da.foreach=!0;b.h.hasfocus={init:(a,c,e)=>{var f=n=>{a.__ko_hasfocusUpdating=!0;n=a.ownerDocument.activeElement===a;var d=c();b.I.ob(d,e,"hasfocus",n,!0);a.__ko_hasfocusLastValue=n;a.__ko_hasfocusUpdating=!1},k=f.bind(null,!0);f=f.bind(null,!1);a.addEventListener("focus",k);a.addEventListener("focusin",k);a.addEventListener("blur",f);a.addEventListener("focusout",f);a.__ko_hasfocusLastValue=!1},update:(a,c)=>
{c=!!b.g.j(c());a.__ko_hasfocusUpdating||a.__ko_hasfocusLastValue===c||(c?a.focus():a.blur())}};b.I.mb.add("hasfocus");b.h.html={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{b.g.$a(a);c=b.g.j(c());if(null!=c){const e=L.createElement("template");e.innerHTML="string"!=typeof c?c.toString():c;a.appendChild(e.content)}}};(()=>{function a(c,e,f){b.h[c]={init:(k,n,d,g,h)=>{var r,t={};e&&(t={as:d.get("as"),exportDependencies:!0});var q=d.has(b.l.ha);b.s(()=>{var m=b.g.j(n()),l=!f!==!m,p=!r;
q&&(h=b.l.kb(k,h));if(l){t.dataDependency=b.u.s();var u=e?h.createChildContext("function"==typeof m?m:n,t):b.u.Ea()?h.extend(null,t):h}p&&b.u.Ea()&&(r=b.g.Ba(b.m.childNodes(k),!0));l?(p||b.m.wa(k,b.g.Ba(r)),b.yb(u,k)):(b.m.ra(k),b.l.notify(k,b.l.G))},{o:k});return{controlsDescendantBindings:!0}}};b.I.Sa[c]=!1;b.m.da[c]=!0}a("if");a("ifnot",!1,!0);a("with",!0)})();var S={};b.h.options={init:a=>{if(!a.matches("SELECT"))throw Error("options binding applies only to SELECT elements");let c=a.length;for(;c--;)a.remove(c);
return{controlsDescendantBindings:!0}},update:(a,c,e)=>{var f=a.multiple,k=0!=a.length&&f?a.scrollTop:null,n=b.g.j(c()),d=e.get("valueAllowUnset")&&e.has("value"),g={},h=[];c=()=>Array.from(a.options).filter(l=>l.selected);var r=(l,p,u)=>{var w=typeof p;return"function"==w?p(l):"string"==w?l[p]:u},t=(l,p)=>{m&&d?b.l.notify(a,b.l.G):h.length&&(l=h.includes(b.F.R(p[0])),p[0].selected=l,m&&!l&&b.u.S(b.g.Vb,null,[a,"change"]))};d||(f?h=c().map(b.F.R):0<=a.selectedIndex&&h.push(b.F.R(a.options[a.selectedIndex])));
if(n){"undefined"==typeof n.length&&(n=[n]);var q=n.filter(l=>l||null==l);e.has("optionsCaption")&&(n=b.g.j(e.get("optionsCaption")),null!==n&&void 0!==n&&q.unshift(S))}var m=!1;g.beforeRemove=l=>a.removeChild(l);n=t;e.has("optionsAfterRender")&&"function"==typeof e.get("optionsAfterRender")&&(n=(l,p)=>{t(l,p);b.u.S(e.get("optionsAfterRender"),null,[p[0],l!==S?l:void 0])});b.g.Rb(a,q,(l,p,u)=>{u.length&&(h=!d&&u[0].selected?[b.F.R(u[0])]:[],m=!0);p=a.ownerDocument.createElement("option");l===S?(b.g.jb(p,
e.get("optionsCaption")),b.F.Pa(p,void 0)):(u=r(l,e.get("optionsValue"),l),b.F.Pa(p,b.g.j(u)),l=r(l,e.get("optionsText"),u),b.g.jb(p,l));return[p]},g,n);d||(q=h.length,(f?q&&c().length<q:q&&0<=a.selectedIndex?b.F.R(a.options[a.selectedIndex])!==h[0]:q||0<=a.selectedIndex)&&b.u.S(b.g.Vb,null,[a,"change"]));(d||b.u.eb())&&b.l.notify(a,b.l.G);k&&20<Math.abs(k-a.scrollTop)&&(a.scrollTop=k)}};b.h.options.gb=b.g.i.Z();b.h.style={update:(a,c)=>{c=b.g.j(c()||{});b.g.P(c,(e,f)=>{f=b.g.j(f);if(null==f||!1===
f)f="";if(/^--/.test(e))a.style.setProperty(e,f);else{e=e.replace(/-(\w)/g,(n,d)=>d.toUpperCase());var k=a.style[e];a.style[e]=f;f===k||a.style[e]!=k||isNaN(f)||(a.style[e]=f+"px")}})}};b.h.submit={init:(a,c,e,f,k)=>{if("function"!=typeof c())throw Error("The value for a submit binding must be a function");a.addEventListener("submit",n=>{var d=c();try{var g=d.call(k.$data,a)}finally{!0!==g&&n.preventDefault()}})}};b.h.text={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{8===a.nodeType&&
(a.text||a.after(a.text=L.createTextNode("")),a=a.text);b.g.jb(a,c())}};b.m.da.text=!0;b.h.textInput={init:(a,c,e)=>{var f=a.value,k,n,d=()=>{clearTimeout(k);n=k=void 0;var h=a.value;f!==h&&(f=h,b.I.ob(c(),e,"textInput",h))},g=()=>{var h=b.g.j(c());null==h&&(h="");void 0!==n&&h===n?setTimeout(g,4):a.value!==h&&(a.value=h,f=a.value)};a.addEventListener("input",d);a.addEventListener("change",d);a.addEventListener("blur",d);b.s(g,{o:a})}};b.I.mb.add("textInput");b.h.textinput={preprocess:(a,c,e)=>e("textInput",
a)};b.h.value={init:(a,c,e)=>{var f=a.matches("SELECT"),k=a.matches("INPUT");if(!k||"checkbox"!=a.type&&"radio"!=a.type){var n=new Set,d=e.get("valueUpdate"),g=null;d&&("string"==typeof d?n.add(d):d.forEach(q=>n.add(q)),n.delete("change"));var h=()=>{g=null;var q=c(),m=b.F.R(a);b.I.ob(q,e,"value",m)};n.forEach(q=>{var m=h;(q||"").startsWith("after")&&(m=()=>{g=b.F.R(a);setTimeout(h,0)},q=q.slice(5));a.addEventListener(q,m)});var r=k&&"file"==a.type?()=>{var q=b.g.j(c());null==q||""===q?a.value="":
b.u.S(h)}:()=>{var q=b.g.j(c()),m=b.F.R(a);if(null!==g&&q===g)setTimeout(r,0);else if(q!==m||void 0===m)f?(m=e.get("valueAllowUnset"),b.F.Pa(a,q,m),m||q===b.F.R(a)||b.u.S(h)):b.F.Pa(a,q)};if(f){var t;b.l.subscribe(a,b.l.G,()=>{t?e.get("valueAllowUnset")?r():h():(a.addEventListener("change",h),t=b.s(r,{o:a}))},null,{notifyImmediately:!0})}else a.addEventListener("change",h),b.s(r,{o:a})}else b.wb(a,{checkedValue:c})},update:()=>{}};b.I.mb.add("value");b.h.visible={update:(a,c)=>{c=b.g.j(c());var e=
"none"!=a.style.display;c&&!e?a.style.display="":e&&!c&&(a.style.display="none")}};b.h.hidden={update:(a,c)=>a.hidden=!!b.g.j(c())};(function(a){b.h[a]={init:function(c,e,f,k,n){return b.h.event.init.call(this,c,()=>({[a]:e()}),f,k,n)}}})("click");(()=>{let a=b.g.i.Z();class c{constructor(f){this.Xa=f}La(...f){let k=this.Xa;if(!f.length)return b.g.i.get(k,a)||(11===this.M?k.content:1===this.M?k:void 0);b.g.i.set(k,a,f[0])}}class e extends c{constructor(f){super(f);f&&(this.M=f.matches("TEMPLATE")&&
f.content?f.content.nodeType:1)}}b.Ma={Xa:e,Ra:c}})();(()=>{var a=(d,g,h)=>{var r;for(g=b.m.nextSibling(g);d&&(r=d)!==g;)d=b.m.nextSibling(r),h(r,d)},c=(d,g)=>{if(d.length){var h=d[0],r=h.parentNode;a(h,d[d.length-1],t=>{1!==t.nodeType&&8!==t.nodeType||b.xb(g,t)});b.g.Da(d,r)}},e=(d,g,h,r)=>{var t=(d&&(d.nodeType?d:0<d.length?d[0]:null)||h||{}).ownerDocument;if("string"==typeof h){t=t||L;t=t.getElementById(h);if(!t)throw Error("Cannot find template with ID "+h);h=new b.Ma.Xa(t)}else if([1,8].includes(h.nodeType))h=
new b.Ma.Ra(h);else throw Error("Unknown template type: "+h);h=(h=h.La?h.La():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeof h.length||0<h.length&&"number"!=typeof h[0].nodeType)throw Error("Template engine must return an array of DOM nodes");t=!1;switch(g){case "replaceChildren":b.m.wa(d,h);t=!0;break;case "ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+g);}t&&(c(h,r),"replaceChildren"==g&&b.l.notify(d,b.l.G));return h},f=(d,g,h)=>b.T(d)?d():"function"===typeof d?
d(g,h):d;b.tc=function(d,g,h,r){h=h||{};var t=t||"replaceChildren";if(r){var q=r.nodeType?r:0<r.length?r[0]:null;return b.s(()=>{var m=g instanceof b.fa?g:new b.fa(g,null,null,null,{exportDependencies:!0}),l=f(d,m.$data,m);e(r,t,l,m,h)},{qa:()=>!q||!b.g.Za(q),o:q})}console.log("no targetNodeOrNodeArray")};b.uc=(d,g,h,r,t)=>{function q(v,z){b.u.S(b.g.Rb,null,[r,v,p,h,u,z]);b.l.notify(r,b.l.G)}var m,l=h.as,p=(v,z)=>{m=t.createChildContext(v,{as:l,extend:x=>{x.$index=z;l&&(x[l+"Index"]=z)}});v=f(d,v,
m);return e(r,"ignoreTargetNode",v,m,h)},u=(v,z)=>{c(z,m);m=null};if(!h.beforeRemove&&b.Kb(g)){q(g.J());var w=g.subscribe(v=>{q(g(),v)},null,"arrayChange");w.o(r);return w}return b.s(()=>{var v=b.g.j(g)||[];"undefined"==typeof v.length&&(v=[v]);q(v)},{o:r})};var k=b.g.i.Z(),n=b.g.i.Z();b.h.template={init:(d,g)=>{g=b.g.j(g());if("string"==typeof g||"name"in g)b.m.ra(d);else if("nodes"in g){g=g.nodes||[];if(b.T(g))throw Error('The "nodes" option must be a plain, non-observable array.');let h=g[0]?.parentNode;
h&&b.g.i.get(h,n)||(h=b.g.Mb(g),b.g.i.set(h,n,!0));(new b.Ma.Ra(d)).La(h)}else if(g=b.m.childNodes(d),g.length)g=b.g.Mb(g),(new b.Ma.Ra(d)).La(g);else throw Error("Anonymous template defined, but no template content was provided");return{controlsDescendantBindings:!0}},update:(d,g,h,r,t)=>{var q=g();g=b.g.j(q);h=!0;r=null;"string"==typeof g?g={}:(q="name"in g?g.name:d,"if"in g&&(h=b.g.j(g["if"])),h&&"ifnot"in g&&(h=!b.g.j(g.ifnot)),h&&!q&&(h=!1));"foreach"in g?r=b.uc(q,h&&g.foreach||[],g,d,t):h?(h=
t,"data"in g&&(h=t.createChildContext(g.data,{as:g.as,exportDependencies:!0})),r=b.tc(q,h,g,d)):b.m.ra(d);t=r;b.g.i.get(d,k)?.A?.();b.g.i.set(d,k,!t||t.isActive&&!t.isActive()?void 0:t)}};b.I.Sa.template=d=>{d=b.I.pc(d);return 1==d.length&&d[0].unknown||b.I.nc(d,"name")?null:"This template engine does not support anonymous templates nested within its templates"};b.m.da.template=!0})();b.g.Hb=(a,c,e)=>{if(a.length&&c.length){var f,k,n,d,g;for(f=k=0;(!e||f<e)&&(d=a[k]);++k){for(n=0;g=c[n];++n)if(d.value===
g.value){d.moved=g.index;g.moved=d.index;c.splice(n,1);f=n=0;break}f+=n}}};b.g.Cb=(()=>{var a=(c,e,f,k,n)=>{var d=Math.min,g=Math.max,h=[],r,t=c.length,q,m=e.length,l=m-t||1,p=t+m+1,u;for(r=0;r<=t;r++){var w=u;h.push(u=[]);var v=d(m,r+l);for(q=g(0,r-1);q<=v;q++)u[q]=q?r?c[r-1]===e[q-1]?w[q-1]:d(w[q]||p,u[q-1]||p)+1:q+1:r+1}d=[];g=[];l=[];r=t;for(q=m;r||q;)m=h[r][q]-1,q&&m===h[r][q-1]?g.push(d[d.length]={status:f,value:e[--q],index:q}):r&&m===h[r-1][q]?l.push(d[d.length]={status:k,value:c[--r],index:r}):
(--q,--r,n.sparse||d.push({status:"retained",value:e[q]}));b.g.Hb(l,g,!n.dontLimitMoves&&10*t);return d.reverse()};return(c,e,f)=>{f="boolean"===typeof f?{dontLimitMoves:f}:f||{};c=c||[];e=e||[];return c.length<e.length?a(c,e,"added","deleted",f):a(e,c,"deleted","added",f)}})();(()=>{function a(f,k,n,d,g){var h=[],r=b.s(()=>{var t=k(n,g,b.g.Da(h,f))||[];if(0<h.length){var q=h.nodeType?[h]:h;if(0<q.length){var m=q[0],l=m.parentNode,p;var u=0;for(p=t.length;u<p;u++)l.insertBefore(t[u],m);u=0;for(p=
q.length;u<p;u++)b.removeNode(q[u])}d&&b.u.S(d,null,[n,t,g])}h.length=0;h.push(...t)},{o:f,qa:()=>!!h.find(b.g.Za)});return{O:h,Va:r.isActive()?r:void 0}}var c=b.g.i.Z(),e=b.g.i.Z();b.g.Rb=(f,k,n,d,g,h)=>{function r(B){x={ea:B,Ga:b.ca(p++)};m.push(x)}function t(B){x=q[B];x.Ga(p++);b.g.Da(x.O,f);m.push(x)}k=k||[];"undefined"==typeof k.length&&(k=[k]);d=d||{};var q=b.g.i.get(f,c),m=[],l=0,p=0,u=[],w=[],v=[],z=0;if(q){if(!h||q&&q._countWaitingForRemove)h=Array.prototype.map.call(q,B=>B.ea),h=b.g.Cb(h,
k,{dontLimitMoves:d.dontLimitMoves,sparse:!0});for(let B=0,y,C,K;y=h[B];B++)switch(C=y.moved,K=y.index,y.status){case "deleted":for(;l<K;)t(l++);if(void 0===C){var x=q[l];x.Va&&(x.Va.A(),x.Va=void 0);b.g.Da(x.O,f).length&&(d.beforeRemove&&(m.push(x),z++,x.ea===e?x=null:v[x.Ga.J()]=x),x&&u.push.apply(u,x.O))}l++;break;case "added":for(;p<K;)t(l++);void 0!==C?(w.push(m.length),t(C)):r(y.value)}for(;p<k.length;)t(l++);m._countWaitingForRemove=z}else k.forEach(r);b.g.i.set(f,c,m);u.forEach(d.beforeRemove?
b.ga:b.removeNode);var E,D;z=f.ownerDocument.activeElement;if(w.length)for(;void 0!=(k=w.shift());){x=m[k];for(E=void 0;k;)if((D=m[--k].O)&&D.length){E=D[D.length-1];break}for(l=0;u=x.O[l];E=u,l++)b.m.Jb(f,u,E)}for(k=0;x=m[k];k++){x.O||b.g.extend(x,a(f,n,x.ea,g,x.Ga));for(l=0;u=x.O[l];E=u,l++)b.m.Jb(f,u,E);!x.kc&&g&&(g(x.ea,x.O,x.Ga),x.kc=!0,E=x.O[x.O.length-1])}z&&f.ownerDocument.activeElement!=z&&z.focus();(function(B,y){if(B)for(var C=0,K=y.length;C<K;C++)y[C]&&y[C].O.forEach(H=>B(H,C,y[C].ea))})(d.beforeRemove,
v);for(k=0;k<v.length;++k)v[k]&&(v[k].ea=e)}})();T.ko=P})(this);
E=H}}),"function"==typeof K&&b.s(()=>K(m,D(H),B,x.$data,x),{o:m})}catch(N){throw N.message='Unable to process binding "'+H+": "+v[H]+'"\nMessage: '+N.message,N;}})}u=void 0===E;return{shouldBindDescendants:u,bindingContextForDescendants:u&&x}}function n(m,l){return m&&m instanceof b.fa?m:new b.fa(m,void 0,void 0,l)}var e=Symbol("_subscribable"),g=Symbol("_ancestorBindingInfo"),h=Symbol("_dataDependency");b.h={};var r={};b.fa=class{constructor(m,l,p,u,w){var v=this,z=m===r,x=z?void 0:m,E="function"==
typeof x&&!b.T(x),D=w&&w.dataDependency;m=()=>{var y=E?x():x,C=b.g.j(y);l?(b.g.extend(v,l),g in l&&(v[g]=l[g])):(v.$parents=[],v.$root=C,v.ko=b);v[e]=B;z?C=v.$data:(v.$rawData=y,v.$data=C);p&&(v[p]=C);u&&u(v,l,C);if(l&&l[e]&&!b.u.s().cb(l[e]))l[e]();D&&(v[h]=D);return v.$data};if(w&&w.exportDependencies)m();else{var B=b.qc(m);B.J();B.isActive()?B.sa=null:v[e]=void 0}}createChildContext(m,l,p,u){!u&&l&&"object"==typeof l&&(u=l,l=u.as,p=u.extend);return new b.fa(m,this,l,(w,v)=>{w.$parentContext=v;
w.$parent=v.$data;w.$parents=(v.$parents||[]).slice(0);w.$parents.unshift(w.$parent);p&&p(w)},u)}extend(m,l){return new b.fa(r,this,null,p=>b.g.extend(p,"function"==typeof m?m(p):m),l)}};var t=b.g.i.Z();class q{constructor(m,l,p){this.M=m;this.va=l;this.Aa=new Set;this.G=!1;l.H||b.g.L.oa(m,a);p&&p.H&&(p.H.Aa.add(m),this.$=p)}Nb(){this.$&&this.$.H&&this.$.H.ac(this.M)}ac(m){this.Aa.delete(m);!this.Aa.size&&this.G&&this.Db()}Db(){this.G=!0;this.va.H&&!this.Aa.size&&(this.va.H=null,b.g.L.ib(this.M,a),
b.l.notify(this.M,b.l.ha),this.Nb())}}b.l={G:"childrenComplete",ha:"descendantsComplete",subscribe:(m,l,p,u,w)=>{var v=b.g.i.bb(m,t,{});v.ia||(v.ia=new b.V);w&&w.notifyImmediately&&v.fb[l]&&b.u.S(p,u,[m]);return v.ia.subscribe(p,u,l)},notify:(m,l)=>{var p=b.g.i.get(m,t);if(p&&(p.fb[l]=!0,p.ia&&p.ia.D(m,l),l==b.l.G))if(p.H)p.H.Db();else if(void 0===p.H&&p.ia&&p.ia.ta(b.l.ha))throw Error("descendantsComplete event not supported for bindings on this node");},kb:(m,l)=>{var p=b.g.i.bb(m,t,{});p.H||(p.H=
new q(m,p,l[g]));return l[g]==p?l:l.extend(u=>{u[g]=p})}};b.tc=m=>(m=b.g.i.get(m,t))&&m.context;b.wb=(m,l,p)=>k(m,l,n(p));b.yb=(m,l)=>{1!==l.nodeType&&8!==l.nodeType||c(n(m),l)};b.xb=function(m,l,p){if(2>arguments.length){if(l=M.body,!l)throw Error("ko.applyBindings: could not find document.body; has the document been loaded?");}else if(!l||1!==l.nodeType&&8!==l.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(n(m,p),l)};
b.Eb=m=>(m=m&&[1,8].includes(m.nodeType)&&b.tc(m))?m.$data:void 0;b.v("bindingHandlers",b.h);b.v("applyBindings",b.xb);b.v("applyBindingAccessorsToNode",b.wb);b.v("dataFor",b.Eb)})();(()=>{var a=Object.create(null),c=new Map;b.Ua={get:(n,e)=>{if(c.has(n))e(c.get(n));else{var g=a[n];g?g.subscribe(e):(g=a[n]=new b.V,g.subscribe(e),k(n,h=>{c.set(n,h);delete a[n];g.D(h)}))}},register:(n,e)=>{if(!e)throw Error("Invalid configuration for "+n);if(d[n])throw Error("Component "+n+" is already registered");
d[n]=e}};var d=Object.create(null),f=(n,e)=>{throw Error(`Component '${n}': ${e}`);},k=(n,e)=>{var g={},h=d[n]||{},r=h.template;h=h.viewModel;if(r){r.element||f(n,"Unknown template value: "+r);r=r.element;var t=M.getElementById(r);t||f(n,"Cannot find element with ID "+r);t.matches("TEMPLATE")||f(n,"Template Source Element not a <template>");g.template=b.g.Ba(t.content.childNodes)}h&&("function"!==typeof h.createViewModel&&f(n,"Unknown viewModel value: "+h),g.createViewModel=h.createViewModel);e(g.template&&
g.createViewModel?g:null)};b.v("components",b.Ua);b.v("components.register",b.Ua.register)})();(()=>{var a=0;b.h.component={init:(c,d,f,k,n)=>{var e,g,h,r=()=>{var q=e&&e.dispose;"function"===typeof q&&q.call(e);h&&h.A();g=e=h=null},t=[...b.m.childNodes(c)];b.m.ra(c);b.g.L.oa(c,r);b.s(()=>{var q=b.g.j(d());if("string"!==typeof q){var m=b.g.j(q.params);q=b.g.j(q.name)}if(!q)throw Error("No component name specified");var l=b.l.kb(c,n),p=g=++a;b.Ua.get(q,u=>{if(g===p){r();if(!u)throw Error("Unknown component '"+
q+"'");var w=u.template;if(!w)throw Error("Component '"+q+"' has no template");b.m.wa(c,b.g.Ba(w));e=u.createViewModel(m,{element:c,templateNodes:t});b.yb(l.createChildContext(e,{extend:v=>{v.$component=e;v.$componentTemplateNodes=t}}),c)}})},{o:c});return{controlsDescendantBindings:!0}}};b.m.da.component=!0})();b.h.attr={update:(a,c)=>{c=b.g.j(c())||{};b.g.P(c,function(d,f){f=b.g.j(f);var k=d.indexOf(":");k="lookupNamespaceURI"in a&&0<k&&a.lookupNamespaceURI(d.slice(0,k));var n=!1===f||null==f;n?
k?a.removeAttributeNS(k,d):a.removeAttribute(d):(f=f.toString(),k?a.setAttributeNS(k,d,f):a.setAttribute(d,f));"name"===d&&(a.name=n?"":f)})}};var R=(a,c,d)=>c&&c.split(/\s+/).forEach(f=>a.classList.toggle(f,d));b.h.css={update:(a,c)=>{c=b.g.j(c());"object"==typeof c?b.g.P(c,(d,f)=>{f=b.g.j(f);R(a,d,!!f)}):(c=b.g.Rb(c),R(a,a.__ko__cssValue,!1),a.__ko__cssValue=c,R(a,c,!0))}};b.h.enable={update:(a,c)=>{(c=b.g.j(c()))&&a.disabled?a.removeAttribute("disabled"):c||a.disabled||(a.disabled=!0)}};b.h.disable=
{update:(a,c)=>b.h.enable.update(a,()=>!b.g.j(c()))};b.h.event={init:(a,c,d,f,k)=>{d=c()||{};b.g.P(d,n=>{"string"==typeof n&&a.addEventListener(n,(...e)=>{var g=c()[n];if(g)try{f=k.$data;var h=g.apply(f,[f,...e])}finally{!0!==h&&e[0].preventDefault()}})})}};b.h.foreach={Lb:a=>()=>{var c=a(),d=b.T(c)?c.J():c;if(!d||"number"==typeof d.length)return{foreach:c};b.g.j(c);return{foreach:d.data,as:d.as,beforeRemove:d.beforeRemove}},init:(a,c)=>b.h.template.init(a,b.h.foreach.Lb(c)),update:(a,c,d,f,k)=>b.h.template.update(a,
b.h.foreach.Lb(c),d,f,k)};b.I.Sa.foreach=!1;b.m.da.foreach=!0;b.h.hasfocus={init:(a,c,d)=>{var f=n=>{a.__ko_hasfocusUpdating=!0;n=a.ownerDocument.activeElement===a;var e=c();b.I.ob(e,d,"hasfocus",n,!0);a.__ko_hasfocusLastValue=n;a.__ko_hasfocusUpdating=!1},k=f.bind(null,!0);f=f.bind(null,!1);a.addEventListener("focus",k);a.addEventListener("focusin",k);a.addEventListener("blur",f);a.addEventListener("focusout",f);a.__ko_hasfocusLastValue=!1},update:(a,c)=>{c=!!b.g.j(c());a.__ko_hasfocusUpdating||
a.__ko_hasfocusLastValue===c||(c?a.focus():a.blur())}};b.I.mb.add("hasfocus");b.h.html={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{b.g.$a(a);c=b.g.j(c());if(null!=c){const d=M.createElement("template");d.innerHTML="string"!=typeof c?c.toString():c;a.appendChild(d.content)}}};(()=>{function a(c,d,f){b.h[c]={init:(k,n,e,g,h)=>{var r,t={};d&&(t={as:e.get("as"),exportDependencies:!0});var q=e.has(b.l.ha);b.s(()=>{var m=b.g.j(n()),l=!f!==!m,p=!r;q&&(h=b.l.kb(k,h));if(l){t.dataDependency=
b.u.s();var u=d?h.createChildContext("function"==typeof m?m:n,t):b.u.Ea()?h.extend(null,t):h}p&&b.u.Ea()&&(r=b.g.Ba(b.m.childNodes(k),!0));l?(p||b.m.wa(k,b.g.Ba(r)),b.yb(u,k)):(b.m.ra(k),b.l.notify(k,b.l.G))},{o:k});return{controlsDescendantBindings:!0}}};b.I.Sa[c]=!1;b.m.da[c]=!0}a("if");a("ifnot",!1,!0);a("with",!0)})();var S={};b.h.options={init:a=>{if(!a.matches("SELECT"))throw Error("options binding applies only to SELECT elements");let c=a.length;for(;c--;)a.remove(c);return{controlsDescendantBindings:!0}},
update:(a,c,d)=>{var f=a.multiple,k=0!=a.length&&f?a.scrollTop:null,n=b.g.j(c()),e=d.get("valueAllowUnset")&&d.has("value"),g={},h=[];c=()=>Array.from(a.options).filter(l=>l.selected);var r=(l,p,u)=>{var w=typeof p;return"function"==w?p(l):"string"==w?l[p]:u},t=(l,p)=>{m&&e?b.l.notify(a,b.l.G):h.length&&(l=h.includes(b.F.R(p[0])),p[0].selected=l,m&&!l&&b.u.S(b.g.Tb,null,[a,"change"]))};e||(f?h=c().map(b.F.R):0<=a.selectedIndex&&h.push(b.F.R(a.options[a.selectedIndex])));if(n){"undefined"==typeof n.length&&
(n=[n]);var q=n.filter(l=>l||null==l);d.has("optionsCaption")&&(n=b.g.j(d.get("optionsCaption")),null!==n&&void 0!==n&&q.unshift(S))}var m=!1;g.beforeRemove=l=>a.removeChild(l);n=t;d.has("optionsAfterRender")&&"function"==typeof d.get("optionsAfterRender")&&(n=(l,p)=>{t(l,p);b.u.S(d.get("optionsAfterRender"),null,[p[0],l!==S?l:void 0])});b.g.Qb(a,q,(l,p,u)=>{u.length&&(h=!e&&u[0].selected?[b.F.R(u[0])]:[],m=!0);p=a.ownerDocument.createElement("option");l===S?(b.g.jb(p,d.get("optionsCaption")),b.F.Pa(p,
void 0)):(u=r(l,d.get("optionsValue"),l),b.F.Pa(p,b.g.j(u)),l=r(l,d.get("optionsText"),u),b.g.jb(p,l));return[p]},g,n);e||(q=h.length,(f?q&&c().length<q:q&&0<=a.selectedIndex?b.F.R(a.options[a.selectedIndex])!==h[0]:q||0<=a.selectedIndex)&&b.u.S(b.g.Tb,null,[a,"change"]));(e||b.u.eb())&&b.l.notify(a,b.l.G);k&&20<Math.abs(k-a.scrollTop)&&(a.scrollTop=k)}};b.h.options.gb=b.g.i.Z();b.h.style={update:(a,c)=>{c=b.g.j(c()||{});b.g.P(c,(d,f)=>{f=b.g.j(f);if(null==f||!1===f)f="";if(/^--/.test(d))a.style.setProperty(d,
f);else{d=d.replace(/-(\w)/g,(n,e)=>e.toUpperCase());var k=a.style[d];a.style[d]=f;f===k||a.style[d]!=k||isNaN(f)||(a.style[d]=f+"px")}})}};b.h.submit={init:(a,c,d,f,k)=>{if("function"!=typeof c())throw Error("The value for a submit binding must be a function");a.addEventListener("submit",n=>{var e=c();try{var g=e.call(k.$data,a)}finally{!0!==g&&n.preventDefault()}})}};b.h.text={init:()=>({controlsDescendantBindings:!0}),update:(a,c)=>{8===a.nodeType&&(a.text||a.after(a.text=M.createTextNode("")),
a=a.text);b.g.jb(a,c())}};b.m.da.text=!0;b.h.textInput={init:(a,c,d)=>{var f=a.value,k,n,e=()=>{clearTimeout(k);n=k=void 0;var h=a.value;f!==h&&(f=h,b.I.ob(c(),d,"textInput",h))},g=()=>{var h=b.g.j(c());null==h&&(h="");void 0!==n&&h===n?setTimeout(g,4):a.value!==h&&(a.value=h,f=a.value)};a.addEventListener("input",e);a.addEventListener("change",e);a.addEventListener("blur",e);b.s(g,{o:a})}};b.I.mb.add("textInput");b.h.textinput={preprocess:(a,c,d)=>d("textInput",a)};b.h.value={init:(a,c,d)=>{var f=
a.matches("SELECT"),k=a.matches("INPUT");if(!k||"checkbox"!=a.type&&"radio"!=a.type){var n=new Set,e=d.get("valueUpdate"),g=null;e&&("string"==typeof e?n.add(e):e.forEach(q=>n.add(q)),n.delete("change"));var h=()=>{g=null;var q=c(),m=b.F.R(a);b.I.ob(q,d,"value",m)};n.forEach(q=>{var m=h;(q||"").startsWith("after")&&(m=()=>{g=b.F.R(a);setTimeout(h,0)},q=q.slice(5));a.addEventListener(q,m)});var r=k&&"file"==a.type?()=>{var q=b.g.j(c());null==q||""===q?a.value="":b.u.S(h)}:()=>{var q=b.g.j(c()),m=b.F.R(a);
if(null!==g&&q===g)setTimeout(r,0);else if(q!==m||void 0===m)f?(m=d.get("valueAllowUnset"),b.F.Pa(a,q,m),m||q===b.F.R(a)||b.u.S(h)):b.F.Pa(a,q)};if(f){var t;b.l.subscribe(a,b.l.G,()=>{t?d.get("valueAllowUnset")?r():h():(a.addEventListener("change",h),t=b.s(r,{o:a}))},null,{notifyImmediately:!0})}else a.addEventListener("change",h),b.s(r,{o:a})}else b.wb(a,{checkedValue:c})},update:()=>{}};b.I.mb.add("value");b.h.visible={update:(a,c)=>{c=b.g.j(c());var d="none"!=a.style.display;c&&!d?a.style.display=
"":d&&!c&&(a.style.display="none")}};b.h.hidden={update:(a,c)=>a.hidden=!!b.g.j(c())};(function(a){b.h[a]={init:function(c,d,f,k,n){return b.h.event.init.call(this,c,()=>({[a]:d()}),f,k,n)}}})("click");(()=>{let a=b.g.i.Z();class c{constructor(f){this.Xa=f}La(...f){let k=this.Xa;if(!f.length)return b.g.i.get(k,a)||(11===this.M?k.content:1===this.M?k:void 0);b.g.i.set(k,a,f[0])}}class d extends c{constructor(f){super(f);f&&(this.M=f.matches("TEMPLATE")&&f.content?f.content.nodeType:1)}}b.Ma={Xa:d,
Ra:c}})();(()=>{var a=(e,g,h)=>{var r;for(g=b.m.nextSibling(g);e&&(r=e)!==g;)e=b.m.nextSibling(r),h(r,e)},c=(e,g)=>{if(e.length){var h=e[0],r=h.parentNode;a(h,e[e.length-1],t=>{1!==t.nodeType&&8!==t.nodeType||b.xb(g,t)});b.g.Da(e,r)}},d=(e,g,h,r)=>{var t=(e&&(e.nodeType?e:0<e.length?e[0]:null)||h||{}).ownerDocument;if("string"==typeof h){t=t||M;t=t.getElementById(h);if(!t)throw Error("Cannot find template with ID "+h);h=new b.Ma.Xa(t)}else if([1,8].includes(h.nodeType))h=new b.Ma.Ra(h);else throw Error("Unknown template type: "+
h);h=(h=h.La?h.La():null)?[...h.cloneNode(!0).childNodes]:null;if("number"!=typeof h.length||0<h.length&&"number"!=typeof h[0].nodeType)throw Error("Template engine must return an array of DOM nodes");t=!1;switch(g){case "replaceChildren":b.m.wa(e,h);t=!0;break;case "ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+g);}t&&(c(h,r),"replaceChildren"==g&&b.l.notify(e,b.l.G));return h},f=(e,g,h)=>b.T(e)?e():"function"===typeof e?e(g,h):e;b.rc=function(e,g,h,r){h=h||{};var t=t||"replaceChildren";
if(r){var q=r.nodeType?r:0<r.length?r[0]:null;return b.s(()=>{var m=g instanceof b.fa?g:new b.fa(g,null,null,null,{exportDependencies:!0}),l=f(e,m.$data,m);d(r,t,l,m,h)},{qa:()=>!q||!b.g.Za(q),o:q})}console.log("no targetNodeOrNodeArray")};b.sc=(e,g,h,r,t)=>{function q(v,z){b.u.S(b.g.Qb,null,[r,v,p,h,u,z]);b.l.notify(r,b.l.G)}var m,l=h.as,p=(v,z)=>{m=t.createChildContext(v,{as:l,extend:x=>{x.$index=z;l&&(x[l+"Index"]=z)}});v=f(e,v,m);return d(r,"ignoreTargetNode",v,m,h)},u=(v,z)=>{c(z,m);m=null};
if(!h.beforeRemove&&b.Kb(g)){q(g.J());var w=g.subscribe(v=>{q(g(),v)},null,"arrayChange");w.o(r);return w}return b.s(()=>{var v=b.g.j(g)||[];"undefined"==typeof v.length&&(v=[v]);q(v)},{o:r})};var k=b.g.i.Z(),n=b.g.i.Z();b.h.template={init:(e,g)=>{g=b.g.j(g());if("string"==typeof g||"name"in g)b.m.ra(e);else if("nodes"in g){g=g.nodes||[];if(b.T(g))throw Error('The "nodes" option must be a plain, non-observable array.');let h=g[0]?.parentNode;h&&b.g.i.get(h,n)||(h=b.g.Mb(g),b.g.i.set(h,n,!0));(new b.Ma.Ra(e)).La(h)}else if(g=
b.m.childNodes(e),g.length)g=b.g.Mb(g),(new b.Ma.Ra(e)).La(g);else throw Error("Anonymous template defined, but no template content was provided");return{controlsDescendantBindings:!0}},update:(e,g,h,r,t)=>{var q=g();g=b.g.j(q);h=!0;r=null;"string"==typeof g?g={}:(q="name"in g?g.name:e,"if"in g&&(h=b.g.j(g["if"])),h&&"ifnot"in g&&(h=!b.g.j(g.ifnot)),h&&!q&&(h=!1));"foreach"in g?r=b.sc(q,h&&g.foreach||[],g,e,t):h?(h=t,"data"in g&&(h=t.createChildContext(g.data,{as:g.as,exportDependencies:!0})),r=b.rc(q,
h,g,e)):b.m.ra(e);t=r;b.g.i.get(e,k)?.A?.();b.g.i.set(e,k,!t||t.isActive&&!t.isActive()?void 0:t)}};b.I.Sa.template=e=>{e=b.I.nc(e);return 1==e.length&&e[0].unknown||b.I.lc(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"};b.m.da.template=!0})();b.g.Hb=(a,c,d)=>{if(a.length&&c.length){var f,k,n,e,g;for(f=k=0;(!d||f<d)&&(e=a[k]);++k){for(n=0;g=c[n];++n)if(e.value===g.value){e.moved=g.index;g.moved=e.index;c.splice(n,1);f=n=0;break}f+=n}}};b.g.Cb=
(()=>{var a=(c,d,f,k,n)=>{var e=Math.min,g=Math.max,h=[],r,t=c.length,q,m=d.length,l=m-t||1,p=t+m+1,u;for(r=0;r<=t;r++){var w=u;h.push(u=[]);var v=e(m,r+l);for(q=g(0,r-1);q<=v;q++)u[q]=q?r?c[r-1]===d[q-1]?w[q-1]:e(w[q]||p,u[q-1]||p)+1:q+1:r+1}e=[];g=[];l=[];r=t;for(q=m;r||q;)m=h[r][q]-1,q&&m===h[r][q-1]?g.push(e[e.length]={status:f,value:d[--q],index:q}):r&&m===h[r-1][q]?l.push(e[e.length]={status:k,value:c[--r],index:r}):(--q,--r,n.sparse||e.push({status:"retained",value:d[q]}));b.g.Hb(l,g,!n.dontLimitMoves&&
10*t);return e.reverse()};return(c,d,f)=>{f="boolean"===typeof f?{dontLimitMoves:f}:f||{};c=c||[];d=d||[];return c.length<d.length?a(c,d,"added","deleted",f):a(d,c,"deleted","added",f)}})();(()=>{function a(f,k,n,e,g){var h=[],r=b.s(()=>{var t=k(n,g,b.g.Da(h,f))||[];if(0<h.length){var q=h.nodeType?[h]:h;if(0<q.length){var m=q[0],l=m.parentNode,p;var u=0;for(p=t.length;u<p;u++)l.insertBefore(t[u],m);u=0;for(p=q.length;u<p;u++)b.removeNode(q[u])}e&&b.u.S(e,null,[n,t,g])}h.length=0;h.push(...t)},{o:f,
qa:()=>!!h.find(b.g.Za)});return{O:h,Va:r.isActive()?r:void 0}}var c=b.g.i.Z(),d=b.g.i.Z();b.g.Qb=(f,k,n,e,g,h)=>{function r(B){x={ea:B,Ga:b.ca(p++)};m.push(x)}function t(B){x=q[B];x.Ga(p++);b.g.Da(x.O,f);m.push(x)}k=k||[];"undefined"==typeof k.length&&(k=[k]);e=e||{};var q=b.g.i.get(f,c),m=[],l=0,p=0,u=[],w=[],v=[],z=0;if(q){if(!h||q&&q._countWaitingForRemove)h=Array.prototype.map.call(q,B=>B.ea),h=b.g.Cb(h,k,{dontLimitMoves:e.dontLimitMoves,sparse:!0});for(let B=0,y,C,K;y=h[B];B++)switch(C=y.moved,
K=y.index,y.status){case "deleted":for(;l<K;)t(l++);if(void 0===C){var x=q[l];x.Va&&(x.Va.A(),x.Va=void 0);b.g.Da(x.O,f).length&&(e.beforeRemove&&(m.push(x),z++,x.ea===d?x=null:v[x.Ga.J()]=x),x&&u.push.apply(u,x.O))}l++;break;case "added":for(;p<K;)t(l++);void 0!==C?(w.push(m.length),t(C)):r(y.value)}for(;p<k.length;)t(l++);m._countWaitingForRemove=z}else k.forEach(r);b.g.i.set(f,c,m);u.forEach(e.beforeRemove?b.ga:b.removeNode);var E,D;z=f.ownerDocument.activeElement;if(w.length)for(;void 0!=(k=w.shift());){x=
m[k];for(E=void 0;k;)if((D=m[--k].O)&&D.length){E=D[D.length-1];break}for(l=0;u=x.O[l];E=u,l++)b.m.Jb(f,u,E)}for(k=0;x=m[k];k++){x.O||b.g.extend(x,a(f,n,x.ea,g,x.Ga));for(l=0;u=x.O[l];E=u,l++)b.m.Jb(f,u,E);!x.ic&&g&&(g(x.ea,x.O,x.Ga),x.ic=!0,E=x.O[x.O.length-1])}z&&f.ownerDocument.activeElement!=z&&z.focus();(function(B,y){if(B)for(var C=0,K=y.length;C<K;C++)y[C]&&y[C].O.forEach(H=>B(H,C,y[C].ea))})(e.beforeRemove,v);for(k=0;k<v.length;++k)v[k]&&(v[k].ea=d)}})();T.ko=P})(this);