@tko/build.reference 4.0.0-alpha8.4 → 4.0.0-beta1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +0,0 @@
1
- (function(e,n){'object'==typeof exports&&'undefined'!=typeof module?module.exports=n():'function'==typeof define&&define.amd?define(n):e.ko=n()})(this,function(){'use strict';function e(e,n,t){2<arguments.length&&(n=n.bind(t));for(let o=0,i=e.length;o<i;++o)n(e[o],o,e)}function n(e,n){return(Ht(e)?e:[...e]).indexOf(n)}function t(e,n,t){return(Ht(e)?e:[...e]).find(n,t)}function i(e=[],n,t){return 2<arguments.length&&(n=n.bind(t)),null===e?[]:Array.from(e,n)}function o(e,t){var i=n(e,t);0<i?e.splice(i,1):0===i&&e.shift()}function a(e,n,t){return 2<arguments.length&&(n=n.bind(t)),null===e?[]:(Ht(e)?e:[...e]).filter(n)}function d(e,n){if(Ht(n))e.push.apply(e,n);else for(var t=0,i=n.length;t<i;t++)e.push(n[t]);return e}function s(e,t,i){var o=n('function'==typeof e.peek?e.peek():e,t);0>o?i&&e.push(t):!i&&e.splice(o,1)}function r(e){return Array.from(e)}function l(e,n,t){if(e.length&&n.length){var i,o,a,d,s;for(i=o=0;(!t||i<t)&&(d=e[o]);++o){for(a=0;s=n[a];++a)if(d.value===s.value){d.moved=s.index,s.moved=d.index,n.splice(a,1),i=a=0;break}i+=a}}}function p(e,n,t){return t='boolean'==typeof t?{dontLimitMoves:t}:t||{},e=e||[],n=n||[],e.length<n.length?u(e,n,Ut,Wt,t):u(n,e,Wt,Ut,t)}function u(e,n,t,i,o){var a=jt,d=[],s=e.length,r=n.length,p=s+r+1,u,c,m,g,h,f;for(u=0;u<=s;u++)for(g=m,d.push(m=[]),h=a(r,u+(r-s||1)),f=Ft(0,u-1),c=f;c<=h;c++)if(!c)m[c]=u+1;else if(!u)m[c]=c+1;else if(e[u-1]===n[c-1])m[c]=g[c-1];else{var b=g[c]||p,y=m[c-1]||p;m[c]=a(b,y)+1}var v=[],x=[],N=[],C;for(u=s,c=r;u||c;)C=d[u][c]-1,c&&C===d[u][c-1]?x.push(v[v.length]={status:t,value:n[--c],index:c}):u&&C===d[u-1][c]?N.push(v[v.length]={status:i,value:e[--u],index:u}):(--c,--u,!o.sparse&&v.push({status:'retained',value:n[c]}));return l(N,x,!o.dontLimitMoves&&10*s),v.reverse()}function c(e){return Qt.onError?(...n)=>{try{return e(...n)}catch(e){Qt.onError(e)}}:e}function m(e){g(function(){throw e},0)}function g(e,n){return setTimeout(c(e),n)}function h(e,n){var t;return function(...i){t||(t=g(function(){t=void 0,e(...i)},n))}}function f(e,n){var t;return function(...i){clearTimeout(t),t=g(()=>e(...i),n)}}function b(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function y(e,n){if(n)for(var t in n)b(n,t)&&(e[t]=n[t]);return e}function v(e,n){for(var t in e)b(e,t)&&n(t,e[t])}function x(e,n,t){if(!e)return e;2<arguments.length&&(n=n.bind(t));var i={};for(var o in e)b(e,o)&&(i[o]=n(e[o],o,e));return i}function N(e,n){return b(e,n)?e[n]:void 0}function C(e,n){if(n||(n=[]),!e||'object'!=typeof e||e.constructor!==Object||-1!==n.indexOf(e))return e;n.push(e);var t={};for(var i in e)b(e,i)&&(t[i]=C(e[i],n));return t}function E(e){const n=new Set;return JSON.stringify(e,(e,t)=>n.has(t)?'...':('object'==typeof t&&n.add(t),t))}function S(e){const n=typeof e;return('object'===n||'function'===n)&&null!==e&&'function'==typeof e.then}function T(e,n){qt&&Object.defineProperty(e,'length',n)}function _(e){return null===e||e===void 0?'':e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,'')}function D(e,n){return e=e||'',!(n.length>e.length)&&e.substring(0,n.length)===n}function I(e){return Yt?Symbol(e):e}function A(n,t,i){var o;t&&('object'==typeof n.classList?(o=n.classList[i?'add':'remove'],e(t.match(zt),function(e){o.call(n.classList,e)})):'string'==typeof n.className.baseVal?k(n.className,'baseVal',t,i):k(n,'className',t,i))}function k(n,t,i,o){var a=n[t].match(zt)||[];e(i.match(zt),function(e){s(a,e,o)}),n[t]=a.join(' ')}function B(e,n){if(e===n)return!0;if(11===e.nodeType)return!1;if(n.contains)return n.contains(1===e.nodeType?e:e.parentNode);if(n.compareDocumentPosition)return 16==(16&n.compareDocumentPosition(e));for(;e&&e!=n;)e=e.parentNode;return!!e}function O(e){return B(e,e.ownerDocument.documentElement)}function V(e){return!!t(e,O)}function $(e){return e&&e.tagName&&e.tagName.toLowerCase()}function L(e){return window.HTMLElement?e instanceof HTMLElement:e&&e.tagName&&1===e.nodeType}function P(e){return window.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function R(){return ti++ +Zt}function M(e,n){const t=ai(e,!1);return t&&t[n]}function F(e,n,t){var i=ai(e,t!==void 0);i&&(i[n]=t)}function j(e,n,t){const i=ai(e,!0);return i[n]||(i[n]=t)}function H(e,n){var t=M(e,ri);return void 0===t&&n&&(t=[],F(e,ri,t)),t}function U(e){F(e,ri,void 0)}function W(e){var n=H(e,!1);if(n){n=n.slice(0);for(let t=0;t<n.length;t++)n[t](e)}di(e);for(let n=0,t=ui.length;n<t;++n)ui[n](e);Qt.cleanExternalData&&Qt.cleanExternalData(e),pi[e.nodeType]&&K(e.childNodes,!0)}function K(e,t){const o=[];let a;for(var d=0;d<e.length;d++)if((!t||8===e[d].nodeType)&&(W(o[o.length]=a=e[d]),e[d]!==a))for(;d--&&-1===n(o,e[d]););}function Q(e,n){if('function'!=typeof n)throw new Error('Callback must be a function');H(e,!0).push(n)}function G(e,n){var t=H(e,!1);t&&(o(t,n),0===t.length&&U(e))}function q(e){return li[e.nodeType]&&(W(e),pi[e.nodeType]&&K(e.getElementsByTagName('*'))),e}function Y(e){q(e),e.parentNode&&e.parentNode.removeChild(e)}function z(e,n){if('input'!==$(e)||!e.type)return!1;if('click'!=n.toLowerCase())return!1;var t=e.type;return'checkbox'==t||'radio'==t}function J(e,n,t,i=!1){const o=c(t),a=Gt&&hi[n];if(!Qt.useOnlyNativeEvents&&!a&&!!!i&&Jt)fi||(fi='function'==typeof Jt(e).on?'on':'bind'),Jt(e)[fi](n,o);else if(!a&&'function'==typeof e.addEventListener)e.addEventListener(n,o,i);else if('undefined'!=typeof e.attachEvent){const t=function(n){o.call(e,n)},i='on'+n;e.attachEvent(i,t),Q(e,function(){e.detachEvent(i,t)})}else throw new Error('Browser doesn\'t support addEventListener or attachEvent')}function X(e,n){if(!(e&&e.nodeType))throw new Error('element must be a DOM node when calling triggerEvent');var t=z(e,n);if(!Qt.useOnlyNativeEvents&&Jt&&!t)Jt(e).trigger(n);else if('function'==typeof document.createEvent){if('function'==typeof e.dispatchEvent){var i=mi[n]||'HTMLEvents',o=document.createEvent(i);o.initEvent(n,!0,!0,Qt.global,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(o)}else throw new Error('The supplied element doesn\'t support dispatchEvent');}else if(t&&e.click)e.click();else if('undefined'!=typeof e.fireEvent)e.fireEvent('on'+n);else throw new Error('Browser doesn\'t support triggering events')}function Z(e){for(var n=r(e),t=n[0]&&n[0].ownerDocument||document,o=t.createElement('div'),a=0,i=n.length;a<i;a++)o.appendChild(q(n[a]));return o}function ee(e,n){for(var t=0,i=e.length,o=[],a;t<i;t++)a=e[t].cloneNode(!0),o.push(n?q(a):a);return o}function ne(e,n){if(oe(e),n)for(var t=0,i=n.length;t<i;t++)e.appendChild(n[t])}function te(e,n){var t=e.nodeType?[e]:e;if(0<t.length){for(var o=t[0],a=o.parentNode,d=0,i=n.length;d<i;d++)a.insertBefore(n[d],o);for(d=0,i=t.length;d<i;d++)Y(t[d])}}function ie(e,n){if(e.name=n,7>=Gt)try{e.mergeAttributes(document.createElement('<input name=\''+e.name+'\'/>'),!1)}catch(n){}}function oe(e){for(;e.firstChild;)Y(e.firstChild)}function ae(e,n){if(e.length){for(n=8===n.nodeType&&n.parentNode||n;e.length&&e[0].parentNode!==n;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==n;)e.length--;if(1<e.length){var t=e[0],i=e[e.length-1];for(e.length=0;t!==i;)e.push(t),t=t.nextSibling;e.push(i)}}return e}function de(e,n){7>Gt?e.setAttribute('selected',n):e.selected=n}function se(e){if(9<=Gt){var n=1==e.nodeType?e:e.parentNode;n.style&&(n.style.zoom=n.style.zoom)}}function re(e){if(Gt){var n=e.style.width;e.style.width=0,e.style.width=n}}function le(e){return 8==e.nodeType&&yi.test(bi?e.text:e.nodeValue)}function pe(e){return 8==e.nodeType&&vi.test(bi?e.text:e.nodeValue)}function ue(e){return pe(e)&&!M(e,Ni)}function ce(e,n){for(var t=e,i=1,o=[];t=t.nextSibling;){if(pe(t)&&(F(t,Ni,!0),i--,0==i))return o;o.push(t),le(t)&&i++}if(!n)throw new Error('Cannot find closing comment tag to match: '+e.nodeValue);return null}function me(e,n){var t=ce(e,n);return t?0<t.length?t[t.length-1].nextSibling:e.nextSibling:null}function ge(e){var n=e.firstChild,t=null;if(n)do if(t)t.push(n);else if(le(n)){var i=me(n,!0);i?n=i:t=[n]}else pe(n)&&(t=[n]);while(n=n.nextSibling);return t}function he(e){return le(e)?ce(e):e.childNodes}function fe(e){if(!le(e))oe(e);else for(var n=he(e),t=0,i=n.length;t<i;t++)Y(n[t])}function be(e,n){if(!le(e))ne(e,n);else{fe(e);const o=e.nextSibling,a=o.parentNode;for(var t=0,i=n.length;t<i;++t)a.insertBefore(n[t],o)}}function ye(e,n){le(e)?e.parentNode.insertBefore(n,e.nextSibling):e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}function ve(e,n,t){t?le(e)?e.parentNode.insertBefore(n,t.nextSibling):t.nextSibling?e.insertBefore(n,t.nextSibling):e.appendChild(n):ye(e,n)}function xe(e){if(!le(e)){if(e.firstChild&&pe(e.firstChild))throw new Error('Found invalid end comment, as the first child of '+e.outerHTML);return e.firstChild}return!e.nextSibling||pe(e.nextSibling)?null:e.nextSibling}function Ne(e){if(le(e)&&(e=me(e)),e.nextSibling&&pe(e.nextSibling)){if(ue(e.nextSibling))throw Error('Found end comment without a matching opening comment, as next sibling of '+e.outerHTML);return null}return e.nextSibling}function Ce(e){var n=0;do if(8===e.nodeType){if(!le(e))pe(e)&&n++;else if(0==--n)return e;}else if(0==n)return e;while(e=e.previousSibling)}function Ee(e){var n=(bi?e.text:e.nodeValue).match(yi);return n?n[1]:null}function Se(e){if(xi[$(e)]){var n=e.firstChild;if(n)do if(1===n.nodeType){var t=ge(n);if(t)for(var o=n.nextSibling,a=0;a<t.length;a++)o?e.insertBefore(t[a],o):e.appendChild(t[a])}while(n=n.nextSibling)}}function Te(e){const n=e.match(/^(?:<!--.*?-->\s*?)*?<([a-z]+)[\s>]/);return n&&Ii[n[1]]||Si}function _e(e,n){n||(n=document);var t=n.parentWindow||n.defaultView||window,i=_(e).toLowerCase(),o=n.createElement('div'),a=Te(i),d=a[0],s='ignored<div>'+a[1]+e+a[2]+'</div>';for('function'==typeof t.innerShiv?o.appendChild(t.innerShiv(s)):o.innerHTML=s;d--;)o=o.lastChild;return r(o.lastChild.childNodes)}function De(e,n){n||(n=document);var t=n.createElement('template');return t.innerHTML=e,r(t.content.childNodes)}function Ie(e,n){if(Jt.parseHTML)return Jt.parseHTML(e,n)||[];var t=Jt.clean([e],n);if(t&&t[0]){for(var i=t[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}return t}function Ae(e,n){return Ai?De(e,n):Jt?Ie(e,n):_e(e,n)}function ke(e,n){const t=Ae(e,n);return t.length&&t[0].parentElement||Z(t)}function Be(e,n){if(oe(e),'function'==typeof n&&(n=n()),null!==n&&void 0!==n)if('string'!=typeof n&&(n=n.toString()),Jt&&!Ai)Jt(e).html(n);else{var t=Ae(n,e.ownerDocument);if(8===e.nodeType)null===n?fe(e):be(e,t);else for(var o=0;o<t.length;o++)e.appendChild(t[o])}}function we(e,n){var t='function'==typeof n?n():n;(null===t||t===void 0)&&(t='');var i=xe(e);!i||3!=i.nodeType||Ne(i)?be(e,[e.ownerDocument.createTextNode(t)]):i.data=t,se(e)}function Oe(){return(0|4294967296*(1+Math.random())).toString(16).substring(1)}function Ve(){return Oe()+Oe()}function $e(e,n){if(e)if(8==e.nodeType){var t=Me(e.nodeValue);null!=t&&n.push({domNode:e,memoId:t})}else if(1==e.nodeType)for(var o=0,i=e.childNodes,a=i.length;o<a;o++)$e(i[o],n)}function Le(e){if('function'!=typeof e)throw new Error('You can only pass a function to memoization.memoize()');var n=Ve();return wi[n]=e,'<!--[ko_memo:'+n+']-->'}function Pe(e,n){var t=wi[e];if(t===void 0)throw new Error('Couldn\'t find any memo with ID '+e+'. Perhaps it\'s already been unmemoized.');try{return t.apply(null,n||[]),!0}finally{delete wi[e]}}function Re(e,n){var t=[];$e(e,t);for(var o=0,i=t.length;o<i;o++){var a=t[o].domNode,s=[a];n&&d(s,n),Pe(t[o].memoId,s),a.nodeValue='',a.parentNode&&a.parentNode.removeChild(a)}}function Me(e){var n=e.match(/^\[ko_memo\:(.*?)\]$/);return n?n[1]:null}function Fe(){if($i)for(var e=$i,n=0,t;Pi<$i;)if(t=Vi[Pi++]){if(Pi>e){if(5e3<=++n){Pi=$i,m(Error('\'Too much recursion\' after processing '+n+' task groups.'));break}e=$i}try{t()}catch(e){m(e)}}}function je(){Fe(),Pi=$i=Vi.length=0}function He(){Qt.taskScheduler(je)}function Ue(e){return $i||He(),Vi[$i++]=e,Li++}function We(e){var n=e-(Li-$i);n>=Pi&&n<$i&&(Vi[n]=null)}function Ke(){var e=$i-Pi;return Pi=$i=Vi.length=0,e}function Qe(e){return e&&e[Mi]||!1}function Ge(){return++ji}function qe(e){Fi.push(Hi),Hi=e}function Ye(){Hi=Fi.pop()}function ze(e){if(Hi){if(!Qe(e))throw new Error('Only subscribable things can act as dependencies');Hi.callback.call(Hi.callbackTarget,e,e._id||(e._id=Ge()))}}function Je(e,n,t){try{return qe(),e.apply(n,t||[])}finally{Ye()}}function Xe(){if(Hi)return Hi.computed.getDependenciesCount()}function Ze(){if(Hi)return Hi.computed.getDependencies()}function en(){if(Hi)return Hi.isInitial}function nn(e){e._deferUpdates||(e._deferUpdates=!0,e.limit(function(n){let t=!1,i;return function(){if(!t){We(i),i=Ue(n);try{t=!0,e.notifySubscribers(void 0,'dirty')}finally{t=!1}}}}))}function tn(e,n){var t=null===e||typeof e in Ki;return!!t&&e===n}function on(){Object.setPrototypeOf(this,Yi),Yi.init(this)}function an(e){function n(){return 0<arguments.length?(n.isDifferent(n[Gi],arguments[0])&&(n.valueWillMutate(),n[Gi]=arguments[0],n.valueHasMutated()),this):(ze(n),n[Gi])}return T(n,{value:void 0}),n[Gi]=e,on.fn.init(n),Object.setPrototypeOf(n,an.fn),Qt.deferUpdates&&nn(n),n}function dn(e,n){n&&n!==qi?'beforeChange'===n?this._limitBeforeChange(e):this._origNotifySubscribers(e,n):this._limitChange(e)}function sn(e){const n='function'==typeof e&&e[zi];if(n&&!an.observablePrototypes.has(n))throw Error('Invalid object that looks like an observable; possibly from another Knockout instance');return!!n}function rn(e){return sn(e)?e():e}function ln(e){return sn(e)?e.peek():e}function pn(e){return sn(e)&&e.isWriteable}function un(e,n){function t(){if(!o){o=!0,u=e.notifySubscribers,e.notifySubscribers=function(e,n){return n&&n!==qi||++d,u.apply(this,arguments)};var n=[].concat(void 0===e.peek()?[]:e.peek());a=null,p=e.subscribe(function(t){let o;t=[].concat(t||[]),e.hasSubscriptionsForEvent(Ji)&&(o=i(n,t)),n=t,a=null,d=0,o&&o.length&&e.notifySubscribers(o,Ji)})}}function i(n,t){return(!a||1<d)&&(a=un.compareArrays(n,t,e.compareArrayOptions)),a}if(e.compareArrayOptions={},n&&'object'==typeof n&&y(e.compareArrayOptions,n),e.compareArrayOptions.sparse=!0,e.cacheDiffForKnownOperation)return;let o=!1,a=null,d=0,s=e.beforeSubscriptionAdd,r=e.afterSubscriptionRemove,p,u;e.beforeSubscriptionAdd=function(n){s&&s.call(e,n),n===Ji&&t()},e.afterSubscriptionRemove=function(n){r&&r.call(e,n),n!==Ji||e.hasSubscriptionsForEvent(Ji)||(u&&(e.notifySubscribers=u,u=void 0),p&&p.dispose(),p=null,o=!1)},e.cacheDiffForKnownOperation=function(e,n,t){function i(e,n,t){return s[s.length]={status:e,value:n,index:t}}if(o&&!d){var s=[],r=e.length,p=t.length,u=0;switch(n){case'push':u=r;case'unshift':for(let e=0;e<p;e++)i('added',t[e],u+e);break;case'pop':u=r-1;case'shift':r&&i('deleted',e[u],u);break;case'splice':var c=jt(Ft(0,0>t[0]?r+t[0]:t[0]),r),m=1===p?r:jt(c+(t[1]||0),r),g=c+p-2,h=Ft(m,g),f=[],b=[];for(let n=c,o=2;n<h;++n,++o)n<m&&b.push(i('deleted',e[n],n)),n<g&&f.push(i('added',t[o],n));l(b,f);break;default:return;}a=s}}}function cn(e){if(e=e||[],'object'!=typeof e||!('length'in e))throw new Error('The argument passed when initializing an observable array must be an array, or null, or undefined.');var n=an(e);return Object.setPrototypeOf(n,cn.fn),un(n),T(n,{get:()=>n().length}),n}function mn(e){return sn(e)&&'function'==typeof e.remove&&'function'==typeof e.push}function gn(e){if(0==arguments.length)throw new Error('When calling ko.toJS, pass the object you want to convert.');return hn(e,function(e){for(var n=0;sn(e)&&n<Xi;n++)e=e();return e})}function hn(e,n,t){t=t||new bn,e=n(e);var i='object'==typeof e&&null!==e&&void 0!==e&&!(e instanceof RegExp)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof Number)&&!(e instanceof Boolean);if(!i)return e;var o=e instanceof Array?[]:{};return t.save(e,o),fn(e,function(i){var a=n(e[i]);switch(typeof a){case'boolean':case'number':case'string':case'function':o[i]=a;break;case'object':case'undefined':var d=t.get(a);o[i]=void 0===d?hn(a,n,t):d;}}),o}function fn(e,n){if(e instanceof Array){for(var t=0;t<e.length;t++)n(t);'function'==typeof e.toJSON&&n('toJSON')}else for(var i in e)n(i)}function bn(){this.keys=[],this.values=[]}function yn(){}function vn(e){var n=_(e);123===n.charCodeAt(0)&&(n=n.slice(1,-1)),n+='\n,';var t=[],o=n.match(uo),a=[],d=0,s;if(1>=o.length)return[];for(var r=0,i,l;i=o[r];++r){if(l=i.charCodeAt(0),44===l){if(0>=d){t.push(s&&a.length?{key:s,value:a.join('')}:{unknown:s||a.join('')}),s=d=0,a=[];continue}}else if(58===l){if(!d&&!s&&1===a.length){s=a.pop();continue}}else if(47===l&&1<i.length&&(47===i.charCodeAt(1)||42===i.charCodeAt(1)))continue;else if(47===l&&r&&1<i.length){var p=o[r-1].match(co);p&&!mo[p[0]]&&(n=n.substr(n.indexOf(i)+1),o=n.match(uo),r=-1,i='/')}else 40===l||123===l||91===l?++d:41===l||125===l||93===l?--d:s||a.length||34!==l&&39!==l||(i=i.slice(1,-1));a.push(i)}return t}function xn(e,n,t){function i(){if(0<arguments.length){if('function'==typeof o)o.apply(a.evaluatorFunctionTarget,arguments);else throw new Error('Cannot write a value to a computed unless you specify a \'write\' option. If you wish to read the current value, don\'t pass any parameters.');return this}return a.isDisposed||ze(i),(a.isDirty||a.isSleeping&&i.haveDependenciesChanged())&&i.evaluateImmediate(),a.latestValue}if('object'==typeof e?t=e:(t=t||{},e&&(t.read=e)),'function'!=typeof t.read)throw Error('Pass a function that returns the value of the computed');var o=t.write,a={latestValue:void 0,isStale:!0,isDirty:!0,isBeingEvaluated:!1,suppressDisposalUntilDisposeWhenReturnsFalse:!1,isDisposed:!1,pure:!1,isSleeping:!1,readFunction:t.read,evaluatorFunctionTarget:n||t.owner,disposeWhenNodeIsRemoved:t.disposeWhenNodeIsRemoved||t.disposeWhenNodeIsRemoved||null,disposeWhen:t.disposeWhen||t.disposeWhen,domNodeDisposalCallback:null,dependencyTracking:{},dependenciesCount:0,evaluationTimeoutInstance:null};return i[go]=a,i.isWriteable='function'==typeof o,on.fn.init(i),Object.setPrototypeOf(i,xn.fn),t.pure?(a.pure=!0,a.isSleeping=!0,y(i,fo)):t.deferEvaluation&&y(i,bo),Qt.deferUpdates&&Qi.deferred(i,!0),Qt.debug&&(i._options=t),a.disposeWhenNodeIsRemoved&&(a.suppressDisposalUntilDisposeWhenReturnsFalse=!0,!a.disposeWhenNodeIsRemoved.nodeType&&(a.disposeWhenNodeIsRemoved=null)),a.isSleeping||t.deferEvaluation||i.evaluateImmediate(),a.disposeWhenNodeIsRemoved&&i.isActive()&&Q(a.disposeWhenNodeIsRemoved,a.domNodeDisposalCallback=function(){i.dispose()}),i}function Nn(e,n){null!==n&&n.dispose&&n.dispose()}function Cn(e,n){var t=this.computedObservable,i=t[go];i.isDisposed||(this.disposalCount&&this.disposalCandidates[n]?(t.addDependencyTracking(n,e,this.disposalCandidates[n]),this.disposalCandidates[n]=null,--this.disposalCount):!i.dependencyTracking[n]&&t.addDependencyTracking(n,e,i.isSleeping?{_target:e}:t.subscribeToDependency(e)),e._notificationIsPending&&e._notifyNextChangeIfValueIsDifferent())}function En(e){return'function'==typeof e&&e[yo]===xn}function Sn(e,n){return'function'==typeof e?xn(e,n,{pure:!0}):(e=y({},e),e.pure=!0,xn(e,n))}function Tn(e,n){return xn({owner:e,read:n,write:n,pure:!('pure'in n)||n.pure,deferEvaluation:!('deferEvaluation'in n)||n.deferEvaluation}).extend({deferred:!0})}function _n(e,n,t,i){if(!e[n]){const o=Array.isArray(t)?cn:'function'==typeof t?Tn.bind(null,i):an;e[n]=o(t)}else e[n](t)}function Dn(e,n,t){for(const i of Object.keys(n))_n(e,i,n[i],t);return n}function In(e){const n={[vo]:e};n[xo]=n;const t=new Proxy(function(){},{has(e,t){return t in n},get(e,t){return rn(n[t])},set(i,o,a){return _n(n,o,a,t),e[o]=a,!0},deleteProperty(t){return delete n[t],delete e[t]},apply(i,o,[a]){return a?(Dn(n,a,t),Object.assign(e,a)):e},getPrototypeOf(){return Object.getPrototypeOf(e)},setPrototypeOf(n,t){return Object.setPrototypeOf(e,t)},defineProperty(n,t,i){return Object.defineProperty(e,t,i)},preventExtensions(){return Object.preventExtensions(e)},isExtensible(){return Object.isExtensible(e)},ownKeys(){return[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)]}});return Dn(n,e,t),t}function An(e,n){return e[xo][n]}function kn(e){return vo in e}function Bn(e,n,t){const i=Sn(e,n).extend({notify:'always'}),o=i.subscribe((e)=>{e&&(o.dispose(),t(e))});return i.notifySubscribers(i.peek()),o}function wn(e,n,t,i,o){function a(){const e=l?r():r;let o=rn(e);return n?(n[Io]&&n[Io](),y(d,n),So in n&&(d[So]=n[So])):(d.$parents=[],d.$root=o),d[Io]=p,s?o=d.$data:(d.$rawData=e,d.$data=o),t&&(d[t]=o),i&&i(d,n,o),d.$data}const d=this,s=e===Ao,r=s?void 0:e,l='function'==typeof r&&!sn(r);d.ko=Qt.knockoutInstance;let p;o&&o.exportDependencies?a():(p=Sn(a),p.peek(),p.isActive()?(d[Io]=p,p.equalityComparer=null):d[Io]=void 0)}function On(e){const n=M(e,Do);return n&&n.context}function Vn(e){if(e&&(1===e.nodeType||8===e.nodeType))return On(e)}function $n(e){var n=Vn(e);return n?n.$data:void 0}function Ln(){return Qt.bindingProviderInstance.instance||Qt.bindingProviderInstance}function Pn(e,n){const t=e.FOR_NODE_TYPES||[1,3,8];return t.includes(n.nodeType)}function Rn(e,n){return e?e.isBindingHandlerClass?e:Lo.getOrCreateFor(n,e):void 0}function Mn(e,n){return n&&'function'==typeof n.getBindingHandler?Rn(n.getBindingHandler(e)):void 0}function Fn(e){const n=Qt.getBindingHandler(e)||Ln().bindingHandlers.get(e);return Rn(n,e)}function jn(e){return e()}function Hn(e,n,t){let i=xe(n);if(!i)return;let o;const a=Ln(),d=a.preprocessNode;if(d){for(;o=i;)i=Ne(o),d.call(a,o);i=xe(n)}for(;o=i;)i=Ne(o),Kn(e,o,t);_o.notify(n,_o.childrenComplete)}function Un(e){const n=Ln();return Pn(n,e)&&n.nodeHasBindings(e)}function Wn(e){return Un(e)||[...e.childNodes].some((e)=>Wn(e))}function Kn(e,n,t){var i=1===n.nodeType;i&&Se(n);let o=i||Un(n);const{shouldBindDescendants:a}=o?Gn(n,null,e,t):{shouldBindDescendants:!0};a&&!Po[$(n)]&&Hn(e,n,t)}function*Qn(t,i){const o=[],a={},d=[];v(t,function s(r){if(!a[r]){const a=Mn(r,i)||Fn(r);if(!a)return;a.after&&(d.push(r),e(a.after,function(e){if(t[e])if(-1!==n(d,e))throw Error('Cannot combine the following bindings, because they have a cyclic dependency: '+d.join(', '));else s(e)}),d.length--),o.push([r,a])}a[r]=!0});for(const e of o)yield e}function Gn(e,n,t,i){const o=j(e,Do,{}),a=o.alreadyBound;if(!n){if(a)return!!Wn(e)&&(Zn({during:'apply',errorCaptured:new Error('You cannot apply bindings multiple times to the same element.'),element:e,bindingContext:t}),!1);o.alreadyBound=!0}a||(o.context=t);var d;if(n&&'function'!=typeof n)d=n;else{const i=Ln(),o=i.getBindingAccessors;if(Pn(i,e)){var s=xn(function(){return d=n?n(t,e):o.call(i,e,t),d&&t[Io]&&t[Io](),d},null,{disposeWhenNodeIsRemoved:e});d&&s.isActive()||(s=null)}}var r;if(d){function n(){return x(s?s():d,jn)}const o=t.$component||{},a={};F(e,'bindingHandlers',a);const l=s?(e)=>function(n){const t=s()[e];return 0===arguments.length?jn(t):t(n)}:(e)=>d[e];n.has=(e)=>e in d,n.get=(e)=>d[e]&&jn(l(e)),_o.childrenComplete in d&&_o.subscribe(e,_o.childrenComplete,()=>{const n=jn(d[_o.childrenComplete]);if(n){const t=he(e);t.length&&n(t,$n(t[0]))}});const p=Qn(d,o),u=new Set;for(const[o,s]of p){function p(i,a){Zn({during:i,errorCaptured:a,bindings:d,allBindings:n,bindingKey:o,bindingContext:t,element:e,valueAccessor:l(o)})}if(8===e.nodeType&&!s.allowVirtualElements)throw new Error(`The binding '${o}' cannot be used with virtual elements`);try{const d=Je(()=>new s({allBindings:n,$element:e,$context:t,onError:p,valueAccessor(...e){return l(o)(...e)}}));if(d.onValueChange&&Je(()=>d.computed('onValueChange')),a[o]=d,d.controlsDescendants){if(void 0!==r)throw new Error('Multiple bindings ('+r+' and '+o+') are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.');r=o}d.bindingCompleted instanceof Promise&&(i.add(d.bindingCompleted),u.add(d.bindingCompleted))}catch(e){p('creation',e)}}qn(e,d,u)}const l=r===void 0;return{shouldBindDescendants:l}}function qn(e,n,t){const i=_o.descendantsComplete in n,o=xe(e),a=i&&jn(n[_o.descendantsComplete]),d=()=>{_o.notify(e,_o.descendantsComplete),a&&o&&a(e)};t.size?Promise.all(t).then(d):d()}function Yn(e,n){return e&&e instanceof wn?e:new wn(e,void 0,void 0,n)}function zn(e,n,t,i){return 1===e.nodeType&&Se(e),Gn(e,n,Yn(t),i)}function Jn(e,n){const t=new Set;if(1===n.nodeType||8===n.nodeType){const i=Yn(e);return Hn(i,n,t),new ko({asyncBindingsApplied:t,rootNode:n,bindingContext:i})}return new ko({asyncBindingsApplied:t,rootNode:n})}function Xn(e,n,t){const i=new Set;if(void 0===!Qt.jQuery&&Qt.jQuery&&(Qt.jQuery=Qt.jQuery),!n){if(n=window.document.body,!n)throw Error('ko.applyBindings: could not find window.document.body; has the document been loaded?');}else if(1!==n.nodeType&&8!==n.nodeType)throw Error('ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node');const o=Yn(e,t);return Kn(o,n,i),Promise.all(i)}function Zn(e){var n;e.bindingKey?(n=e.errorCaptured,e.message='Unable to process binding "'+e.bindingKey+'" in binding "'+e.bindingKey+'"\nMessage: '+(n.message?n.message:n)):n=e.errorCaptured;try{y(n,e)}catch(t){e.stack=n.stack,n=new Error(n.message?n.message:n),y(n,e)}Qt.onError(n)}function et(e,n,t,i,o){var a=[],s=xn(function(){var s=n(t,o,ae(a,e))||[];0<a.length&&(te(a,s),i&&Je(i,null,[t,s,o])),a.length=0,d(a,s)},null,{disposeWhenNodeIsRemoved:e,disposeWhen:function(){return!V(a)}});return{mappedNodes:a,dependentObservable:s.isActive()?s:void 0}}function nt(n,t,o,a,d,s){function r(e){E={arrayEntry:e,indexObservable:an(f++)},g.push(E),v.push(E),m||C.push(E)}function l(e){E=c[e],f!==e&&N.push(E),E.indexObservable(f++),ae(E.mappedNodes,n),g.push(E),v.push(E)}function u(t,o){if(t)for(var a=0,i=o.length;a<i;a++)e(o[a].mappedNodes,function(e){t(e,a,o[a].arrayEntry)})}t=t||[],'undefined'==typeof t.length&&(t=[t]),a=a||{};let c=M(n,Ro),m=!c;var g=[],h=0,f=0,b=[],v=[],x=[],N=[],C=[],E;let S=0;if(m)e(t,r);else{if(!s||c&&c._countWaitingForRemove){var T=m?[]:i(c,function(e){return e.arrayEntry}),_={dontLimitMoves:a.dontLimitMoves,sparse:!0};s=p(T,t,_)}for(var D=0,I,A,k;I=s[D];D++)switch(A=I.moved,k=I.index,I.status){case'deleted':for(;h<k;)l(h++);void 0===A&&(E=c[h],E.dependentObservable&&(E.dependentObservable.dispose(),E.dependentObservable=void 0),ae(E.mappedNodes,n).length&&(a.beforeRemove&&(g.push(E),v.push(E),S++,E.arrayEntry===Mo?E=null:x.push(E)),E&&b.push.apply(b,E.mappedNodes))),h++;break;case'added':for(;f<k;)l(h++);void 0===A?r(I.value):l(A);}for(;f<t.length;)l(h++);g._countWaitingForRemove=S}F(n,Ro,g),u(a.beforeMove,N),e(b,a.beforeRemove?q:Y),D=0;for(var B=xe(n),w,O;E=v[D];D++){E.mappedNodes||y(E,et(n,o,E.arrayEntry,d,E.indexObservable));for(var V=0;O=E.mappedNodes[V];B=O.nextSibling,w=O,V++)O!==B&&ve(n,O,w);!E.initialized&&d&&(d(E.arrayEntry,E.mappedNodes,E.indexObservable),E.initialized=!0)}for(u(a.beforeRemove,x),D=0;D<x.length;++D)x[D].arrayEntry=Mo;u(a.afterMove,N),u(a.afterAdd,C)}function tt(e){if(this.domElement=e,!!e){var n=$(e);this.templateType='script'===n?jo:'textarea'===n?Ho:'template'==n&&e.content&&11===e.content.nodeType?Uo:Wo}}function it(e){return M(e,Qo)||{}}function ot(e,n){F(e,Qo,n)}function at(e){this.domElement=e}function dt(){}function st(e){if(e!==void 0&&!(e instanceof dt))throw new Error('templateEngine must inherit from ko.templateEngine');Go=e}function rt(e,n,t){for(let i=e,o=Ne(n),a;i&&(a=i)!==o;)i=Ne(a),t(a,i)}function lt(e,n,t){if(e.length){var i=e[0],o=e[e.length-1],a=i.parentNode,d=Qt.bindingProviderInstance,s=d.preprocessNode;if(s){if(rt(i,o,function(e,n){var t=e.previousSibling,a=s.call(d,e);a&&(e===i&&(i=a[0]||n),e===o&&(o=a[a.length-1]||t))}),e.length=0,!i)return;i===o?e.push(i):(e.push(i,o),ae(e,a))}rt(i,o,function(e){(1===e.nodeType||8===e.nodeType)&&Xn(n,e).then(t)}),rt(i,o,function(e){(1===e.nodeType||8===e.nodeType)&&Re(e,[n])}),ae(e,a)}}function pt(e){return e.nodeType?e:0<e.length?e[0]:null}function ut(e,n,t,i,o,a){o=o||{};var d=e&&pt(e),s=(d||t||{}).ownerDocument,r=o.templateEngine||Go,l=r.renderTemplate(t,i,o,s);if('number'!=typeof l.length||0<l.length&&'number'!=typeof l[0].nodeType)throw new Error('Template engine must return an array of DOM nodes');var p=!1;switch(n){case'replaceChildren':be(e,l),p=!0;break;case'replaceNode':te(e,l),p=!0;break;case'ignoreTargetNode':break;default:throw new Error('Unknown renderMode: '+n);}return p&&(lt(l,i,a),o.afterRender&&Je(o.afterRender,null,[l,i.$data]),'replaceChildren'===n&&_o.notify(e,_o.childrenComplete)),l}function ct(e,n,t){return sn(e)?e():'function'==typeof e?e(n,t):e}function mt(e,n,t,i,o,a){if(t=t||{},void 0===(t.templateEngine||Go))throw new Error('Set a template engine before calling renderTemplate');if(o=o||'replaceChildren',i){var d=pt(i),s=function(){return!d||!O(d)},r=d&&'replaceNode'===o?d.parentNode:d;return xn(function(){var s=n&&n instanceof wn?n:new wn(n,null,null,null,{exportDependencies:!0}),r=ct(e,s.$data,s);const l=ut(i,o,r,s,t,a);'replaceNode'===o&&(i=l,d=pt(i))},null,{disposeWhen:s,disposeWhenNodeIsRemoved:r})}return Le(function(i){mt(e,n,t,i,'replaceNode')})}function gt(e,n,t,i,o,d){function s(n,a){p=t.as?Qt.createChildContextWithAs?o.createChildContext(n,t.as,(e)=>{e.$index=a}):o.extend({[t.as]:n,$index:a}):o.createChildContext(n,t.as,(e)=>{e.$index=a});var s=ct(e,n,p);return ut(i,'ignoreTargetNode',s,p,t,d)}function r(e,n){Je(nt,null,[i,e,s,t,l,n]),_o.notify(i,_o.childrenComplete)}var l=function(e,n){lt(n,p,d),t.afterRender&&t.afterRender(n,e),p=null},p;const u=!1===t.includeDestroyed||Qt.foreachHidesDestroyed&&!t.includeDestroyed;if(!u&&!t.beforeRemove&&mn(n)){r(n.peek());var c=n.subscribe(function(e){r(n(),e)},null,'arrayChange');return c.disposeWhenNodeIsRemoved(i),c}return xn(function(){var e=rn(n)||[];const t=Symbol.iterator in e;t||(e=[e]),u&&(e=a(e,function(e){return void 0===e||null===e||!rn(e._destroy)})),r(e)},null,{disposeWhenNodeIsRemoved:i})}function ht(){}function ft(e,n){var t=N(sa,e),i;t?t.subscribe(n):(t=sa[e]=new on,t.subscribe(n),bt(e,function(n,o){var a=!!(o&&o.synchronous);ra[e]={definition:n,isSynchronousComponent:a},delete sa[e],i||a?t.notifySubscribers(n):Ue(function(){t.notifySubscribers(n)})}),i=!0)}function bt(e,n){yt('getConfig',[e],function(t){t?yt('loadComponent',[e,t],function(e){n(e,t)}):n(null,null)})}function yt(e,n,t,i){i||(i=la.loaders.slice(0));var o=i.shift();if(o){var a=o[e];if(a){var d=!1,s=a.apply(o,n.concat(function(o){d?t(null):null===o?yt(e,n,t,i):t(o)}));if(void 0!==s&&(d=!0,!o.suppressLoaderExceptions))throw new Error('Component loaders must supply values by invoking the callback, not by returning values synchronously.')}else yt(e,n,t,i)}else t(null)}function vt(e,n){if(!n)throw new Error('Invalid configuration for '+e);if(xt(e))throw new Error('Component '+e+' is already registered');const t=e.includes('-')&&e.toLowerCase()===e;n.ignoreCustomElementWarning||t||console.log(`
2
- 🥊 Knockout warning: components for custom elements must be lowercase and contain a dash. To ignore this warning, add to the 'config' of .register(componentName, config):
3
-
4
- ignoreCustomElementWarning: true
5
- `),pa[e]=n}function xt(e){return b(pa,e)}function Nt(e,n,t,i){var o={},a=2,d=function(){0==--a&&i(o)},s=t.template,r=t.viewModel;s?Tt(n,s,function(n){la._getFirstResultFromLoaders('loadTemplate',[e,n],function(e){o.template=e,d()})}):d(),r?Tt(n,r,function(n){la._getFirstResultFromLoaders('loadViewModel',[e,n],function(e){o[ga]=e,d()})}):d()}function Ct(e,n,t){if('string'==typeof n)t(Ae(n));else if(n instanceof Array)t(n);else if(P(n))t(r(n.childNodes));else if(n.element){var i=n.element;if(L(i))t(St(i));else if('string'==typeof i){var o=document.getElementById(i);o?t(St(o)):e('Cannot find element with ID '+i)}else e('Unknown element type: '+i)}else n.elementName?t(n):e('Unknown template value: '+n)}function Et(e,n,t){if(n[ca])t((...e)=>n[ca](...e));else if('function'==typeof n)t(function(e){return new n(e)});else if('function'==typeof n[ga])t(n[ga]);else if('instance'in n){var i=n.instance;t(function(){return i})}else'viewModel'in n?Et(e,n.viewModel,t):e('Unknown viewModel value: '+n)}function St(e){switch($(e)){case'script':return Ae(e.text);case'textarea':return Ae(e.value);case'template':if(P(e.content))return ee(e.content.childNodes);}return ee(e.childNodes)}function Tt(e,n,t){'string'==typeof n.require?window.amdRequire||window.require?(window.amdRequire||window.require)([n.require],t):e('Uses require, but no AMD loader is present'):t(n)}function _t(e){return function(n){throw new Error('Component \''+e+'\': '+n)}}function*Dt(e){const n=e.match(xa);if(n){const[e,t,i]=n.slice(1);yield*Dt(e),yield new Ta(t),yield new Sa(i)}else yield new Sa(e)}function*It(e){if(e){let[n,t,i]=e.slice(1);yield new Ta(n),yield*Dt(t),yield new Ta(i)}}function*At(e){for(const n of It(e.match(Na)))n.text&&(yield n)}function kt(e){return'function'==typeof e?{handler:e}:e||{}}function Bt(e){return!!e&&'object'==typeof e&&e.constructor===Object}function wt(n){var t=document.createElement('div'),i;return n.content?i=n.content:'SCRIPT'===n.tagName?(i=document.createElement('div'),i.innerHTML=n.text):i=n,e(he(i),function(e){e&&t.insertBefore(e.cloneNode(!0),null)}),t}function Ot(e,n){return{status:'added',value:e,index:n}}function Vt(e){ld.push(e),$t()}function $t(){!pd&&ld.length&&(pd=setTimeout(Lt,sd))}function Lt(){pd=null;const e=ld.splice(0,rd);for(const n of e)q(n);$t()}function Pt(e){return e&&'function'==typeof e[Symbol.iterator]}function Rt(e){if(sn(e))return!0;const n=rn(e);return!!n&&(!!n.elementName||!!(Array.isArray(n)&&n.length)&&!(n[0]instanceof window.Node))}function Mt(e){return e[ud]}var Ft=Math.max,jt=Math.min;const{isArray:Ht}=Array,Ut='added',Wt='deleted';var Kt;try{Kt=window}catch(n){Kt=global}var Qt={deferUpdates:!1,useOnlyNativeEvents:!1,protoProperty:'__ko_proto__',defaultBindingAttribute:'data-bind',allowVirtualElements:!0,bindingGlobals:Kt,bindingProviderInstance:null,createChildContextWithAs:!1,jQuery:Kt&&Kt.jQuery,Promise:Kt&&Kt.Promise,taskScheduler:null,debug:!1,global:Kt,document:Kt.document,filters:{},includeDestroyed:!1,foreachHidesDestroyed:!1,onError:function(n){throw n},set:function(e,n){Qt[e]=n},getBindingHandler(){},cleanExternalData(){}};Object.defineProperty(Qt,'$',{get:function(){return Qt.jQuery}});const Gt=Qt.document&&function(){for(var e=3,n=Qt.document.createElement('div'),t=n.getElementsByTagName('i');n.innerHTML='<!--[if gt IE '+ ++e+']><i></i><![endif]-->',t[0];);if(!e){window.navigator.userAgent;return ua.match(/MSIE ([^ ]+)/)||ua.match(/rv:([^ )]+)/)}return 4<e?e:void 0}(),qt=function(){try{return Object.defineProperty(function(){},'length',{}),!0}catch(n){return!1}}();var Yt='function'==typeof Symbol,zt=/\S+/g,Jt=Qt.global&&Qt.global.jQuery;const Xt=new Date().getTime(),Zt=`__ko__${Xt}`,ei=Symbol('Knockout data');var ni;let ti=0;const ii={getDataForNode(e,n){let t=e[ei];return!t&&n&&(t=e[ei]={}),t},clear(e){return!!e[ei]&&(delete e[ei],!0)}},oi={getDataforNode(e,n){let t=e[Zt];const i=t&&'null'!==t&&ni[t];if(!i){if(!n)return;t=e[Zt]='ko'+ti++,ni[t]={}}return ni[t]},clear(e){const n=e[Zt];return!!n&&(delete ni[n],e[Zt]=null,!0)}},{getDataForNode:ai,clear:di}=Gt?oi:ii;var si=Object.freeze({nextKey:R,get:M,set:F,getOrSet:j,clear:di}),ri=R(),li={1:!0,8:!0,9:!0},pi={1:!0,9:!0};const ui=[function(e){var n=Jt?Jt.cleanData:null;n&&n([e])}];var ci={},mi={},gi=Qt.global.navigator&&/Firefox\/2/i.test(Qt.global.navigator.userAgent)?'KeyboardEvent':'UIEvents';ci[gi]=['keyup','keydown','keypress'],ci.MouseEvents=['click','dblclick','mousedown','mouseup','mousemove','mouseover','mouseout','mouseenter','mouseleave'],v(ci,function(e,n){if(n.length)for(var t=0,i=n.length;t<i;t++)mi[n[t]]=e});var hi={propertychange:!0};let fi;var bi=Qt.document&&'<!--test-->'===Qt.document.createComment('test').text,yi=bi?/^<!--\s*ko(?:\s+([\s\S]+))?\s*-->$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,vi=bi?/^<!--\s*\/ko\s*-->$/:/^\s*\/ko\s*$/,xi={ul:!0,ol:!0};const Ni='__ko_matchedEndComment__';var Ci={},Ei=Object.freeze({startCommentRegex:yi,endCommentRegex:vi,isStartComment:le,isEndComment:pe,getVirtualChildren:ce,allowedBindings:Ci,hasBindingValue:le,childNodes:he,emptyNode:fe,setDomNodeChildren:be,prepend:ye,insertAfter:ve,firstChild:xe,lastChild:function(e){let n=xe(e),t;do t=n;while(n=Ne(n));return t},nextSibling:Ne,previousSibling:Ce,virtualNodeBindingValue:Ee,normaliseVirtualElementDomStructure:Se}),Si=[0,'',''],Ti=[1,'<table>','</table>'],_i=[3,'<table><tbody><tr>','</tr></tbody></table>'],Di=[1,'<select multiple=\'multiple\'>','</select>'],Ii={area:[1,'<map>','</map>'],col:[2,'<table><tbody></tbody><colgroup>','</colgroup></table>'],colgroup:Ti,caption:Ti,legend:[1,'<fieldset>','</fieldset>'],thead:Ti,tbody:Ti,tfoot:Ti,tr:[2,'<table><tbody>','</tbody></table>'],td:_i,th:_i,option:Di,optgroup:Di,param:[1,'<object>','</object>']},Ai=Qt.document&&'content'in Qt.document.createElement('template'),ki=Symbol('Knockout selectExtensions hasDomDataProperty'),Bi={optionValueDomDataKey:R(),readValue:function(e){switch($(e)){case'option':return!0===e[ki]?M(e,Bi.optionValueDomDataKey):e.value;case'select':return 0<=e.selectedIndex?Bi.readValue(e.options[e.selectedIndex]):void 0;default:return e.value;}},writeValue:function(e,t,n){switch($(e)){case'option':'string'==typeof t?(F(e,Bi.optionValueDomDataKey,void 0),ki in e&&delete e[ki],e.value=t):(F(e,Bi.optionValueDomDataKey,t),e[ki]=!0,e.value='number'==typeof t?t:'');break;case'select':(''===t||null===t)&&(t=void 0);var o=-1;for(let a=0,i=e.options.length,n;a<i;++a)if(n=Bi.readValue(e.options[a]),n===t||''===n&&void 0===t){o=a;break}(n||0<=o||t===void 0&&1<e.size)&&(e.selectedIndex=o,6===Gt&&g(()=>{e.selectedIndex=o},0));break;default:(null===t||t===void 0)&&(t=''),e.value=t;}}},wi={},Oi=Object.freeze({memoize:Le,unmemoize:Pe,unmemoizeDomNodeAndDescendants:Re,parseMemoText:Me}),Vi=[],$i=0,Li=1,Pi=0,Ri=Qt.global;Qt.taskScheduler=Ri&&Ri.MutationObserver&&!(Ri.navigator&&Ri.navigator.standalone)?function(e){var n=Ri.document.createElement('div');return new Ri.MutationObserver(e).observe(n,{attributes:!0}),function(){n.classList.toggle('foo')}}(je):Ri&&Ri.document&&'onreadystatechange'in Ri.document.createElement('script')?function(e){var n=document.createElement('script');n.onreadystatechange=function(){n.onreadystatechange=null,document.documentElement.removeChild(n),n=null,e()},document.documentElement.appendChild(n)}:function(e){setTimeout(e,0)};var w=Object.freeze({schedule:Ue,cancel:We,resetForTesting:Ke,runEarly:Fe});const Mi=Symbol('Knockout Subscribable'),Fi=[];let ji=0,Hi;var Ui=Object.freeze({begin:qe,end:Ye,registerDependency:ze,ignore:Je,getDependenciesCount:Xe,getDependencies:Ze,isInitial:en,ignoreDependencies:Je});class Wi{constructor(e,n,t){this._target=e,this._callback=n.next,this._disposeCallback=t,this._isDisposed=!1,this._domNodeDisposalCallback=null}dispose(){this._domNodeDisposalCallback&&G(this._node,this._domNodeDisposalCallback),this._isDisposed=!0,this._disposeCallback()}disposeWhenNodeIsRemoved(e){this._node=e,Q(e,this._domNodeDisposalCallback=this.dispose.bind(this))}unsubscribe(){this.dispose()}get closed(){return this._isDisposed}}var Ki={undefined:1,boolean:1,number:1,string:1},Qi={notify:function(e,n){e.equalityComparer='always'==n?null:tn},deferred:function(e,n){if(!0!==n)throw new Error('The \'deferred\' extender only accepts the value \'true\', because it is not supported to turn deferral off once enabled.');nn(e)},rateLimit:function(e,n){var t,i,o;'number'==typeof n?t=n:(t=n.timeout,i=n.method),e._deferUpdates=!1,o='notifyWhenChangesStop'===i?f:h,e.limit(function(e){return o(e,t)})}};const Gi=Symbol('Knockout latest value');var qi='change',Yi={[Mi]:!0,[Symbol.observable](){return this},init(e){e._subscriptions={change:[]},e._versionNumber=1},subscribe(e,n,t){const i='object'==typeof e&&e.next;t=t||qi;const a=i?e:{next:n?e.bind(n):e},d=new Wi(this,a,()=>{o(this._subscriptions[t],d),this.afterSubscriptionRemove&&this.afterSubscriptionRemove(t)});return this.beforeSubscriptionAdd&&this.beforeSubscriptionAdd(t),this._subscriptions[t]||(this._subscriptions[t]=[]),this._subscriptions[t].push(d),i&&Gi in this&&a.next(this[Gi]),d},notifySubscribers(e,n){if(n=n||qi,n===qi&&this.updateVersion(),this.hasSubscriptionsForEvent(n)){const t=n===qi&&this._changeSubscriptions||[...this._subscriptions[n]];try{qe();for(let n=0,i;i=t[n];++n)i._isDisposed||i._callback(e)}finally{Ye()}}},getVersion(){return this._versionNumber},hasChanged(e){return this.getVersion()!==e},updateVersion(){++this._versionNumber},hasSubscriptionsForEvent(e){return this._subscriptions[e]&&this._subscriptions[e].length},getSubscriptionsCount(e){if(e)return this._subscriptions[e]&&this._subscriptions[e].length||0;var n=0;return v(this._subscriptions,function(e,t){'dirty'!==e&&(n+=t.length)}),n},isDifferent(e,n){return!this.equalityComparer||!this.equalityComparer(e,n)},once(e){const n=this.subscribe((t)=>{n.dispose(),e(t)})},when(e,n){const t=this.peek(),i=1<arguments.length,o='function'==typeof e?e:(n)=>n===e;return o(t)?Qt.Promise.resolve(i?n:t):new Qt.Promise((e)=>{const t=this.subscribe((a)=>{o(a)&&(t.dispose(),e(i?n:a))})})},yet(e,...n){const t='function'==typeof e?e:(n)=>n===e;return this.when((e)=>!t(e),...n)},next(){return new Promise((e)=>this.once(e))},toString(){return'[object Object]'},extend:function(e){var n=this;return e&&v(e,function(e,t){var i=Qi[e];'function'==typeof i?n=i(n,t)||n:Qt.onError(new Error('Extender not found: '+e))}),n}};Object.setPrototypeOf(Yi,Function.prototype),on.fn=Yi,an.fn={equalityComparer:tn,peek(){return this[Gi]},valueHasMutated(){this.notifySubscribers(this[Gi],'spectate'),this.notifySubscribers(this[Gi])},valueWillMutate(){this.notifySubscribers(this[Gi],'beforeChange')},modify(e,n=!0){return this(e(n?this.peek():this()))},isWriteable:!0},on.fn.limit=function(e){var n=this,t=sn(n),i,o,a,d,s;n._origNotifySubscribers||(n._origNotifySubscribers=n.notifySubscribers,n.notifySubscribers=dn);var r=e(function(){n._notificationIsPending=!1,t&&d===n&&(d=n._evalIfChanged?n._evalIfChanged():n());const e=o||s&&n.isDifferent(a,d);n._notifyNextChange=s=i=!1,e&&n._origNotifySubscribers(a=d)});Object.assign(n,{_limitChange(e,t){t&&n._notificationIsPending||(s=!t),n._changeSubscriptions=[...n._subscriptions[qi]],n._notificationIsPending=i=!0,d=e,r()},_limitBeforeChange(e){i||(a=e,n._origNotifySubscribers(e,'beforeChange'))},_notifyNextChangeIfValueIsDifferent(){n.isDifferent(a,n.peek(!0))&&(o=!0)},_recordUpdate(){s=!0}})},Object.setPrototypeOf(an.fn,on.fn);var zi=an.protoProperty=Qt.protoProperty;an.fn[zi]=an,an.observablePrototypes=new Set([an]);var Ji='arrayChange';un.compareArrays=p,Qi.trackArrayChanges=un,cn.fn={remove(e){for(var n=this.peek(),t=[],o='function'!=typeof e||sn(e)?function(n){return n===e}:e,a=0,i;a<n.length;a++)if(i=n[a],o(i)){if(0===t.length&&this.valueWillMutate(),n[a]!==i)throw Error('Array modified during remove; cannot remove item');t.push(i),n.splice(a,1),a--}return t.length&&this.valueHasMutated(),t},removeAll(e){if(void 0===e){var t=this.peek(),i=t.slice(0);return this.valueWillMutate(),t.splice(0,t.length),this.valueHasMutated(),i}return e?this.remove(function(t){return 0<=n(e,t)}):[]},destroy(e){var n=this.peek(),t='function'!=typeof e||sn(e)?function(n){return n===e}:e;this.valueWillMutate();for(var o=n.length-1,i;0<=o;o--)i=n[o],t(i)&&(i._destroy=!0);this.valueHasMutated()},destroyAll(e){return void 0===e?this.destroy(function(){return!0}):e?this.destroy(function(t){return 0<=n(e,t)}):[]},indexOf(e){return n(this(),e)},replace(e,n){var t=this.indexOf(e);0<=t&&(this.valueWillMutate(),this.peek()[t]=n,this.valueHasMutated())},sorted(e){return[...this()].sort(e)},reversed(){return[...this()].reverse()},[Symbol.iterator]:function*(){yield*this()}},Object.setPrototypeOf(cn.fn,an.fn),e(['pop','push','reverse','shift','sort','splice','unshift'],function(e){cn.fn[e]=function(){var n=this.peek();this.valueWillMutate(),this.cacheDiffForKnownOperation(n,e,arguments);var t=n[e].apply(n,arguments);return this.valueHasMutated(),t===n?this:t}}),e(['slice'],function(e){cn.fn[e]=function(){var n=this();return n[e].apply(n,arguments)}}),cn.trackArrayChanges=un;var Xi=10;bn.prototype={constructor:bn,save:function(e,t){var i=n(this.keys,e);0<=i?this.values[i]=t:(this.keys.push(e),this.values.push(t))},get:function(e){var t=n(this.keys,e);return 0<=t?this.values[t]:void 0}};const Zi={"@":function(e,n){for(;'function'==typeof n;)n=n();return n},"#":(e,n)=>()=>rn(n),"=>":yn,"!":function(e,n){return!n},"!!":function(e,n){return!!n},"++":function(e,n){return++n},"--":function(e,n){return--n},"*":function(e,n){return e*n},"/":function(e,n){return e/n},"%":function(e,n){return e%n},"+":function(e,n){return e+n},"-":function(e,n){return(e||0)-(n||0)},"&-":function(e,n){return-1*n},"<":function(e,n){return e<n},"<=":function(e,n){return e<=n},">":function(e,n){return e>n},">=":function(e,n){return e>=n},"==":function(e,n){return e===n},"!=":function(e,n){return e!==n},"===":function(e,n){return e===n},"!==":function(e,n){return e!==n},"&":function(e,n){return e&n},"^":function(e,n){return e^n},"|":function(e,n){return e|n},"&&":function(e,n){return e&&n},"||":function(e,n){return e||n},".":function(e,n){return e[n]},"[":function(e,n){return e[n]},call:function(e,n){return e.apply(null,n)}};Zi['@'].precedence=21,Zi['#'].precedence=21,Zi['=>'].precedence=20,Zi['.'].precedence=19,Zi['['].precedence=19,Zi['!'].precedence=16,Zi['!!'].precedence=16,Zi['++'].precedence=16,Zi['--'].precedence=16,Zi['&-'].precedence=16,Zi['%'].precedence=14,Zi['*'].precedence=14,Zi['/'].precedence=14,Zi['+'].precedence=13,Zi['-'].precedence=13,Zi['|'].precedence=12,Zi['^'].precedence=11,Zi['&'].precedence=10,Zi['<'].precedence=11,Zi['<='].precedence=11,Zi['>'].precedence=11,Zi['>='].precedence=11,Zi['=='].precedence=10,Zi['!='].precedence=10,Zi['==='].precedence=10,Zi['!=='].precedence=10,Zi['&&'].precedence=6,Zi['||'].precedence=5,Zi['&&'].earlyOut=(e)=>!e,Zi['||'].earlyOut=(e)=>e,Zi.call.precedence=1;const eo=Symbol('Node - Is Expression Or Identifier');class no{constructor(e,n,t){this.lhs=e,this.op=n,this.rhs=t}static get operators(){return Zi}get_leaf_value(e,n,t,i){return'function'==typeof e?rn(e()):'object'!=typeof e||null===e?e:e[no.isExpressionOrIdentifierSymbol]?rn(e.get_value(void 0,n,t,i)):e}get_value(e,n,t,i){var i=this;if(i.op===yn)return()=>i.get_leaf_value(i.rhs,n,t,i);const o=i.get_leaf_value(i.lhs,n,t,i),a=i.op.earlyOut;if(a&&a(o))return o;const d=i.get_leaf_value(i.rhs,n,t,i);return i.op(o,d,n,t)}static get isExpressionOrIdentifierSymbol(){return eo}get[eo](){return!0}static value_of(e,n,t,i){return e&&e[no.isExpressionOrIdentifierSymbol]?e.get_value(e,n,t,i):e}static create_root(e){var n,t,i,o;for(t=n=new no(e.shift(),e.shift(),e.shift());i=e.shift(),o=e.shift(),!!i;)i.precedence<n.op.precedence?(n=new no(n,i,o),t=n):(t.rhs=new no(t.rhs,i,o),t=t.rhs);return n}}Zi['?']=function(e,n,t,i,o){return no.value_of(e?n.yes:n.no,t,i,o)},Zi['?'].precedence=4;class to{constructor(e){this.nodes=e,this.root=no.create_root(e)}get_value(e,n,t,i){return this.root||(this.root=no.create_root(this.nodes)),this.root.get_value(e,n,t,i)}}to.prototype[no.isExpressionOrIdentifierSymbol]=!0;class io{constructor(e,n){this.parser=e,this.args=n}get_value(e,n,t,o){for(var a=[],d=0,i=this.args.length;d<i;++d)a.push(no.value_of(this.args[d],n,t,o));return a}get[no.isExpressionOrIdentifierSymbol](){return!0}}var oo=/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,ao=/[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;class so{constructor(e,n,t){this.token=n,this.dereferences=t,this.parser=e}dereference(e,t,o,a){let d=this.dereferences||[],s;const r=t.$data||{};let l,p,i;for(p=0,i=d.length;p<i;++p)s=no.value_of(d[p],t,o,a),'function'==typeof e&&d[p]instanceof io?(e=e.apply(l||r,s),l=e):(l=e,e=no.value_of(e[s],t,o,a));return'function'==typeof e&&0<i&&l!==e&&!b(l,s)?e.bind(l):e}get_value(e,n,t,i){const o=e&&!(e instanceof so)?no.value_of(e,n,t,i)[this.token]:n.lookup(this.token,t,i);return this.dereference(o,n,t,i)}assign(e,n,t){pn(e[n])?e[n](t):!sn(e[n])&&(e[n]=t)}set_value(e,t,o){const a=t.$data||{},d=this.dereferences||[];let s=this.token,r,i,n;if(b(a,s))n=a;else if(b(t,s))n=t;else if(b(o,s))n=o;else throw new Error('Identifier::set_value -- The property \''+s+'\' does not exist on the $data, $context, or globals.');if(i=d.length,0===i)return void this.assign(n,s,e);for(n=n[s],r=0;r<i-1;++r)s=d[r],n=s instanceof io?n():n[no.value_of(s)];if(!0===d[r])throw new Error('Cannot assign a value to a function.');d[r]&&this.assign(n,no.value_of(d[r]),e)}static is_valid_start_char(e){return oo.test(e)}static is_valid_continue_char(e){return ao.test(e)}get[no.isExpressionOrIdentifierSymbol](){return!0}}class ro{constructor(e,n){Object.assign(this,{yes:e,no:n})}get_value(){return this}get[no.isExpressionOrIdentifierSymbol](){return!0}}const lo={"'":'\'','"':'"',"`":'`',"\\":'\\',"/":'/',$:'$',b:'\b',f:'\f',n:'\n',r:'\r',t:'\t'};class po{white(){for(var e=this.ch;e&&' '>=e;)e=this.next();return this.comment(e)}comment(e){if('/'!==e)return e;var n=this.at,t=this.lookahead();if('/'===t){for(;e&&(e=this.next(),'\n'!==e&&'\r'!==e););e=this.next()}else if('*'===t){for(;e;)if(e=this.next(),'*'===e&&'/'===this.lookahead()){this.next();break}return e||this.error('Unclosed comment, starting at character '+n),this.next(),this.white()}return e}next(e){return e&&e!==this.ch&&this.error('Expected \''+e+'\' but got \''+this.ch+'\''),this.ch=this.text.charAt(this.at),this.at+=1,this.ch}lookahead(){return this.text[this.at]}error(e){if(e instanceof Error)throw e;let[n,t]=e.name?[e.name,e.message]:[e,''];const i=`\n${n} ${t} of
6
- ${this.text}\n`+Array(this.at).join(' ')+'_/ \uD83D\uDD25 \\_\n';throw new Error(i)}name(){var e='',n;this.white();var t=this.ch;for(('\''===t||'"'===t)&&(n=t,t=this.next());t;){if(n&&t===n)return this.white(),t=this.next(),':'!==t&&','!==t&&this.error('Object name: '+e+' missing closing '+n),e;if(':'===t||' '>=t||','===t||'|'===t)return e;e+=t,t=this.next()}return e}number(){let e='',n=this.ch,t;for('-'===n&&(e='-',n=this.next('-'));'0'<=n&&'9'>=n;)e+=n,n=this.next();if('.'===n)for(e+='.',n=this.next();n&&'0'<=n&&'9'>=n;)e+=n,n=this.next();if('e'===n||'E'===n)for(e+=n,n=this.next(),('-'===n||'+'===n)&&(e+=n,n=this.next());'0'<=n&&'9'>=n;)e+=n,n=this.next();return t=+e,isFinite(t)?t:void Qt.onError(new Error('Bad number: '+t+' in '+e))}objectAddValue(e,n,t){t&&t[no.isExpressionOrIdentifierSymbol]?Object.defineProperty(e,n,{get:()=>no.value_of(t,...this.currentContextGlobals),enumerable:!0}):Array.isArray(t)?Object.defineProperty(e,n,{get:()=>t.map((e)=>no.value_of(e,...this.currentContextGlobals)),enumerable:!0}):e[n]=t}object(){let e={},n=this.ch,t;if('{'===n){if(this.next('{'),n=this.white(),'}'===n)return n=this.next('}'),e;for(;n;){if(t='"'===n||'\''===n||'`'===n?this.string():this.name(),b(e,t)&&this.error('Duplicate key "'+t+'"'),':'===this.white())n=this.next(':'),this.objectAddValue(e,t,this.expression());else{const n=new so(this,t,[]);this.objectAddValue(e,t,n)}if(n=this.white(),'}'===n)return n=this.next('}'),e;if(this.next(','),n=this.white(),'}'===n)return n=this.next('}'),e}}this.error('Bad object')}readString(e){for(let n='',t=[''],o=Zi['+'],a='`'===e,d=this.next(),s,r,i;d;){if(d===e)return d=this.next(),a&&t.push(o),t.push(n),t;if('\\'!==d)a&&'$'===d?(d=this.next(),'{'===d?(this.next('{'),t.push(o),t.push(n),t.push(o),t.push(this.expression()),n=''):n+='$'+d):n+=d;else if(d=this.next(),'u'===d){for(i=0,r=0;4>r&&(s=parseInt(d=this.next(),16),!!isFinite(s));r+=1)i=16*i+s;n+=String.fromCharCode(i)}else if('string'==typeof lo[d])n+=lo[d];else break;d=this.next()}this.error('Bad string')}string(){var e=this.ch;if('"'===e)return this.readString('"').join('');return'\''===e?this.readString('\'').join(''):'`'===e?no.create_root(this.readString('`')):void this.error('Bad string')}array(){let e=[],n=this.ch;if('['===n){if(n=this.next('['),this.white(),']'===n)return n=this.next(']'),e;for(;n;){if(e.push(this.expression()),n=this.white(),']'===n)return n=this.next(']'),e;this.next(','),n=this.white()}}this.error('Bad array')}value(){var e;return this.white(),e=this.ch,'{'===e?this.object():'['===e?this.array():'"'===e||'\''===e||'`'===e?this.string():'-'===e?this.number():'0'<=e&&'9'>=e?this.number():this.identifier()}operator(e){let n='',t=this.white(),i=so.is_valid_start_char,o;for(;t&&!(i(t)||' '>=t||''===t||'"'===t||'\''===t||'{'===t||'('===t||'`'===t||')'===t||'9'>=t&&'0'<=t)&&(e.not_an_array||'['!==t)&&!(n+=t,t=this.next(),'@'===t);)i=so.is_valid_continue_char;return''!==n&&(e.prefix&&'-'===n&&(n='&-'),o=Zi[n],!o&&this.error('Bad operator: \''+n+'\'.')),o}filter(){let e=this.next(),n=[],t=function(e){return e},o=this.name();for(Qt.filters[o]||Qt.onError('Cannot find filter by the name of: '+o),e=this.white();e;){if(':'===e&&(e=this.next(),n.push(this.expression('|'))),'|'===e){t=this.filter();break}if(','===e)break;e=this.white()}var i=function(e,a,d,s,r){for(var l=[e],p=0,i=n.length;p<i;++p)l.push(no.value_of(n[p],d,s,r));return t(Qt.filters[o].apply(null,l))};return i.precedence=1,i}expression(e){let n=[],t=this.white(),o;for(;t&&(o=this.operator({prefix:!0}),o&&(n.push(void 0),n.push(o),t=this.white()),'('===t?(this.next(),n.push(this.expression()),this.next(')')):n.push(this.value()),t=this.white(),':'!==t&&'}'!==t&&','!==t&&']'!==t&&')'!==t&&''!==t&&'`'!==t&&('|'!==t||'|'!==e));){if('|'===t&&'|'!==this.lookahead()&&e){n.push(this.filter()),n.push(void 0);break}if(o=this.operator({not_an_array:!0}),o===Zi['?']){this.ternary(n);break}else o===Zi['.']?(n.push(o),n.push(this.member()),o=null):o===Zi['[']?(n.push(o),n.push(this.expression()),t=this.next(']'),o=null):o&&n.push(o);if(t=this.white(),']'===t||!o&&'('===t)break}if(0!==n.length){var a=this.dereferences();if(1===n.length&&!a.length)return n[0];for(var d=0,i=a.length,s;d<i;++d)s=a[d],s.constructor===io?n.push(Zi.call):n.push(Zi['.']),n.push(s);return new to(n)}}ternary(e){var n=new ro;n.yes=this.expression(),this.next(':'),n.no=this.expression(),e.push(Zi['?']),e.push(n)}funcArguments(){for(let e=[],n=this.next('(');n;){if(n=this.white(),')'===n)return this.next(')'),new io(this,e);e.push(this.expression()),n=this.white(),')'!==n&&this.next(',')}this.error('Bad arguments to function')}member(){let e='',n=this.white(),t=so.is_valid_start_char;for(;n&&!!t(n);)e+=n,n=this.next(),t=so.is_valid_continue_char;return e}dereference(){for(let e=this.white(),n;e;){if('('===e)return this.funcArguments();if('['===e)return this.next('['),n=this.expression(),this.white(),this.next(']'),n;if('.'===e)return this.next('.'),this.member();break}}dereferences(){let e=this.white(),n=[],t;for(;e&&(t=this.dereference(),void 0!==t);)n.push(t);return n}identifier(){let e='',n=so.is_valid_start_char,t=this.white();for(;t&&!!n(t);)e+=t,t=this.next(),n=so.is_valid_continue_char;switch(e){case'true':return!0;case'false':return!1;case'null':return null;case'undefined':return;case'function':throw new Error('Knockout: Anonymous functions are no longer supported, but `=>` lambdas are.');}return new so(this,e,this.dereferences())}readBindings(){let e={},n=this.ch,t,i,o;for(;n;)t=this.name(),i=this.white(),i&&','!==i?(-1===t.indexOf('.')?(n=this.next(':'),e[t]&&'object'==typeof e[t]&&e[t].constructor===Object?(o=this.expression(!0),'object'!=typeof o||o.constructor!==Object?Qt.onError('Expected plain object for '+t+' value.'):y(e[t],o)):e[t]=this.expression(!0)):(t=t.split('.'),e[t[0]]=e[t[0]]||{},2===t.length?e[t[0]].constructor!==Object&&Qt.onError('Binding '+t[0]+'.'+t[1]+' paired with a non-object.'):Qt.onError('Binding '+t+' should have two parts (a.b).'),n=this.next(':'),this.objectAddValue(e[t[0]],t[1],this.expression(!0))),this.white(),n=this.ch?this.next(','):''):(n=i?this.next(','):'',e[t]=null);return e}valueAsAccessor(e,n,t,i){if(!e)return()=>e;if('function'==typeof e)return e;if(e[no.isExpressionOrIdentifierSymbol])return()=>no.value_of(e,n,t,i);if(Array.isArray(e))return()=>e.map((e)=>no.value_of(e,n,t,i));if('function'!=typeof e)return()=>C(e);throw new Error('Value has cannot be converted to accessor: '+e)}convertToAccessors(e,n,t,i){return v(e,(o,a)=>{a instanceof so?Object.defineProperty(e,o,{value:function(e,o){const d=a.get_value(void 0,n,t,i);if(0===arguments.length)return d;return o&&o.onlyIfChanged&&e===d?void 0:a.set_value(e,n,t)}}):e[o]=this.valueAsAccessor(a,n,t,i)}),e}preparse(e=''){const n=Qt.bindingStringPreparsers||[];return n.reduce((e,n)=>n(e),e.trim())}runParse(e,n){this.text=this.preparse(e),this.at=0,this.ch=' ';try{var t=n();return this.white(),this.ch&&this.error('Syntax Error'),t}catch(n){Qt.onError(n)}}parse(e,n={},t={},i){if(!e)return()=>null;this.currentContextGlobals=[n,t,i];const o=this.runParse(e,()=>this.readBindings());return this.convertToAccessors(o,n,t,i)}parseExpression(e,n={},t={},i){if(!e)return()=>'';this.currentContextGlobals=[n,t,i];const o=this.runParse(e,()=>this.expression(!0));return this.valueAsAccessor(o,n,t,i)}}const uo=RegExp('"(?:\\\\.|[^"])*"|\'(?:\\\\.|[^\'])*\'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/\\w*|[^\\s:,/][^,"\'`{}()/:[\\]]*[^\\s,"\'`{}()/:[\\]]|[^\\s]','g'),co=/[\])"'A-Za-z0-9_$]+$/,mo={in:1,return:1,typeof:1},go=I('_state'),ho={dependencyTracking:null,dependenciesCount:0,isDisposed:!0,isStale:!1,isDirty:!1,isSleeping:!1,disposeWhenNodeIsRemoved:null,readFunction:null,_options:null};xn.fn={equalityComparer:tn,getDependenciesCount(){return this[go].dependenciesCount},getDependencies(){const e=this[go].dependencyTracking,n=[];return v(e,function(e,t){n[t._order]=t._target}),n},addDependencyTracking(e,n,t){if(this[go].pure&&n===this)throw Error('A \'pure\' computed must not be called recursively');this[go].dependencyTracking[e]=t,t._order=this[go].dependenciesCount++,t._version=n.getVersion()},haveDependenciesChanged(){var e=this[go].dependencyTracking,n,t;for(n in e)if(b(e,n)&&(t=e[n],this._evalDelayed&&t._target._notificationIsPending||t._target.hasChanged(t._version)))return!0},markDirty(){this._evalDelayed&&!this[go].isBeingEvaluated&&this._evalDelayed(!1)},isActive(){const e=this[go];return e.isDirty||0<e.dependenciesCount},respondToChange(){this._notificationIsPending?this[go].isDirty&&(this[go].isStale=!0):this.evaluatePossiblyAsync()},subscribeToDependency(e){if(e._deferUpdates){var n=e.subscribe(this.markDirty,this,'dirty'),t=e.subscribe(this.respondToChange,this);return{_target:e,dispose(){n.dispose(),t.dispose()}}}return e.subscribe(this.evaluatePossiblyAsync,this)},evaluatePossiblyAsync(){var e=this,n=e.throttleEvaluation;n&&0<=n?(clearTimeout(this[go].evaluationTimeoutInstance),this[go].evaluationTimeoutInstance=g(function(){e.evaluateImmediate(!0)},n)):e._evalDelayed?e._evalDelayed(!0):e.evaluateImmediate(!0)},evaluateImmediate(e){var n=this,t=n[go],i=t.disposeWhen,o=!1;if(!t.isBeingEvaluated&&!t.isDisposed){if(!(t.disposeWhenNodeIsRemoved&&!O(t.disposeWhenNodeIsRemoved)||i&&i()))t.suppressDisposalUntilDisposeWhenReturnsFalse=!1;else if(!t.suppressDisposalUntilDisposeWhenReturnsFalse)return void n.dispose();t.isBeingEvaluated=!0;try{o=this.evaluateImmediate_CallReadWithDependencyDetection(e)}finally{t.isBeingEvaluated=!1}return o}},evaluateImmediate_CallReadWithDependencyDetection(e){var n=this,t=n[go],i=!1,o=t.pure?void 0:!t.dependenciesCount,a={computedObservable:n,disposalCandidates:t.dependencyTracking,disposalCount:t.dependenciesCount};qe({callbackTarget:a,callback:Cn,computed:n,isInitial:o}),t.dependencyTracking={},t.dependenciesCount=0;var d=this.evaluateImmediate_CallReadThenEndDependencyDetection(t,a);return t.dependenciesCount?i=n.isDifferent(t.latestValue,d):(n.dispose(),i=!0),i&&(t.isSleeping?n.updateVersion():n.notifySubscribers(t.latestValue,'beforeChange'),t.latestValue=d,Qt.debug&&(n._latestValue=d),n.notifySubscribers(t.latestValue,'spectate'),!t.isSleeping&&e&&n.notifySubscribers(t.latestValue),n._recordUpdate&&n._recordUpdate()),o&&n.notifySubscribers(t.latestValue,'awake'),i},evaluateImmediate_CallReadThenEndDependencyDetection(e,n){try{var t=e.readFunction;return e.evaluatorFunctionTarget?t.call(e.evaluatorFunctionTarget):t()}finally{Ye(),n.disposalCount&&!e.isSleeping&&v(n.disposalCandidates,Nn),e.isStale=e.isDirty=!1}},peek(e){const n=this[go];return(n.isDirty&&(e||!n.dependenciesCount)||n.isSleeping&&this.haveDependenciesChanged())&&this.evaluateImmediate(),n.latestValue},get[Gi](){return this.peek()},limit(e){const n=this[go];on.fn.limit.call(this,e),Object.assign(this,{_evalIfChanged(){return this[go].isSleeping||(this[go].isStale?this.evaluateImmediate():this[go].isDirty=!1),n.latestValue},_evalDelayed(e){this._limitBeforeChange(n.latestValue),n.isDirty=!0,e&&(n.isStale=!0),this._limitChange(this,!e)}})},dispose(){var e=this[go];!e.isSleeping&&e.dependencyTracking&&v(e.dependencyTracking,function(e,n){n.dispose&&n.dispose()}),e.disposeWhenNodeIsRemoved&&e.domNodeDisposalCallback&&G(e.disposeWhenNodeIsRemoved,e.domNodeDisposalCallback),Object.assign(e,ho)}};var fo={beforeSubscriptionAdd(n){var t=this,i=t[go];if(!i.isDisposed&&i.isSleeping&&'change'===n){if(i.isSleeping=!1,i.isStale||t.haveDependenciesChanged())i.dependencyTracking=null,i.dependenciesCount=0,t.evaluateImmediate()&&t.updateVersion();else{var o=[];v(i.dependencyTracking,function(e,n){o[n._order]=e}),e(o,function(e,n){var o=i.dependencyTracking[e],a=t.subscribeToDependency(o._target);a._order=n,a._version=o._version,i.dependencyTracking[e]=a}),t.haveDependenciesChanged()&&t.evaluateImmediate()&&t.updateVersion()}i.isDisposed||t.notifySubscribers(i.latestValue,'awake')}},afterSubscriptionRemove(e){var n=this[go];n.isDisposed||'change'!==e||this.hasSubscriptionsForEvent('change')||(v(n.dependencyTracking,function(e,t){t.dispose&&(n.dependencyTracking[e]={_target:t._target,_order:t._order,_version:t._version},t.dispose())}),n.isSleeping=!0,this.notifySubscribers(void 0,'asleep'))},getVersion(){var e=this[go];return e.isSleeping&&(e.isStale||this.haveDependenciesChanged())&&this.evaluateImmediate(),on.fn.getVersion.call(this)}},bo={beforeSubscriptionAdd(e){('change'===e||'beforeChange'===e)&&this.peek()}};Object.setPrototypeOf(xn.fn,on.fn);var yo=an.protoProperty;xn.fn[yo]=xn,an.observablePrototypes.add(xn),Qi.throttle=function(e,n){e.throttleEvaluation=n;var t=null;return xn({read:e,write:function(i){clearTimeout(t),t=setTimeout(function(){e(i)},n)}})};const vo=Symbol('Knockout Proxied Object'),xo=Symbol('Knockout Proxied Observables');Object.assign(In,{getObservable:An,peek:function(e,n){return An(e,n).peek()},isProxied:kn});const No=I('LifeCycle Subscriptions List'),Co=I('LifeCycle Anchor Node');class Eo{static mixInto(e){const n=e.prototype||e,t=Eo.prototype;for(let i of Object.getOwnPropertyNames(t))n[i]=t[i]}subscribe(e,n,t){'string'==typeof n&&(n=this[n]),this.addDisposable(e.subscribe(n,this,t))}computed(e){if('string'==typeof e&&(e={read:this[e],write:this[e]}),'object'==typeof e)e=Object.assign({owner:this},e);else if('function'==typeof e){const n=Object.getPrototypeOf(this);n&&n[e.name]===e&&(e=e.bind(this)),e={read:e,write:e}}else throw new Error('LifeCycle::computed not given a valid type.');return e.disposeWhenNodeIsRemoved=this[Co],this.addDisposable(xn(e))}addEventListener(...e){const n=e[0].nodeType?e.shift():this[Co],[t,i,o]=e,a='string'==typeof i?this[i].bind(this):i;this.__addEventListener(n,t,a,o)}__addEventListener(e,n,t,i){function o(){e.removeEventListener(n,t)}e.addEventListener(n,t,i),Q(e,o),this.addDisposable({dispose:o})}anchorTo(e){Q(e,()=>this.dispose()),this[Co]=e}dispose(){const e=this[No]||[];e.forEach((e)=>e.dispose()),this[No]=[],this[Co]=null}addDisposable(e){const n=this[No]||[];if(this[No]||(this[No]=n),'function'!=typeof e.dispose)throw new Error('Lifecycle::addDisposable argument missing `dispose`.');return n.push(e),e}}const So=Symbol('_ancestorBindingInfo'),To=R(),_o={childrenComplete:'childrenComplete',descendantsComplete:'descendantsComplete',subscribe(e,n,t,i){const o=j(e,To,{});return o.eventSubscribable||(o.eventSubscribable=new on),o.eventSubscribable.subscribe(t,i,n)},notify(e,n){const t=M(e,To);t&&t.eventSubscribable&&t.eventSubscribable.notifySubscribers(e,n)}},Do=R(),Io=Symbol('Knockout Context Subscription'),Ao=Symbol('Knockout Parent Indicator');Object.assign(wn.prototype,{lookup(e,n,t){switch(e){case'$element':return t;case'$context':return this;case'this':case'$data':return this.$data;}const i=this.$data;if(i instanceof Object&&e in i)return i[e];if(e in this)return this[e];if(e in n)return n[e];throw new Error(`The variable "${e}" was not found on $data, $context, or globals.`)},createChildContext(e,n,t,i){return new wn(e,this,n,function(e,n){e.$parentContext=n,e.$parent=n.$data,e.$parents=(n.$parents||[]).slice(0),e.$parents.unshift(e.$parent),t&&t(e)},i)},extend(e){return new wn(Ao,this,null,function(n){y(n,'function'==typeof e?e.call(n):e)})},createStaticChildContext(e,n){return this.createChildContext(e,n,null,{exportDependencies:!0})}});class ko{constructor({asyncBindingsApplied:e,rootNode:n,bindingContext:t}){Object.assign(this,{rootNode:n,bindingContext:t,isSync:0===e.size,isComplete:this.isSync}),this.isSync||(this.completionPromise=this.completeWhenBindingsFinish(e))}async completeWhenBindingsFinish(e){return await Promise.all(e),this.isComplete=!0,this}}class Bo extends Eo{constructor(e){super();const{$element:n,valueAccessor:t,allBindings:i,$context:o}=e;Object.assign(this,{valueAccessor:t,allBindings:i,$element:n,$context:o,$data:o.$data}),this.anchorTo(n)}get value(){return this.valueAccessor()}set value(e){const n=this.valueAccessor();pn(n)?n(e):this.valueAccessor(e)}get controlsDescendants(){return!1}static get allowVirtualElements(){return!1}static get isBindingHandlerClass(){return!0}get bindingCompleted(){return!0}static registerAs(e,n=Qt.bindingProviderInstance){n.bindingHandlers.set(e,this)}}const wo=Symbol('Async Binding Resolved');class Oo extends Bo{constructor(e){super(e),this.bindingCompletion=new Promise((e)=>{this[wo]=e}),this.completeBinding=(e)=>this[wo](e)}get bindingCompleted(){return this.bindingCompletion}}const Vo=Qt.global.WeakMap||Map,$o=new Vo;class Lo extends Bo{constructor(n){super(n);const e=this.handler;this.onError=n.onError,'function'==typeof e.dispose&&this.addDisposable(e);try{this.initReturn=e.init&&e.init(...this.legacyArgs)}catch(t){n.onError('init',t)}}onValueChange(){const e=this.handler;if('function'==typeof e.update)try{e.update(...this.legacyArgs)}catch(n){this.onError('update',n)}}get legacyArgs(){return[this.$element,this.valueAccessor,this.allBindings,this.$data,this.$context]}get controlsDescendants(){const e=this.initReturn||this.handler||{};return e.controlsDescendantBindings}static getOrCreateFor(e,n){if($o.has(n))return $o.get(n);const t=this.createFor(e,n);return $o.set(n,t),t}static createFor(e,n){if('function'==typeof n){const[t,i]=[n,n.dispose];return class extends Lo{get handler(){const e=t.bind(this),n=i?i.bind(this):null;return{init:e,dispose:n}}static get after(){return n.after}static get allowVirtualElements(){return n.allowVirtualElements||Ci[e]}}}if('object'==typeof n)return class extends Lo{get handler(){return n}static get after(){return n.after}static get allowVirtualElements(){return n.allowVirtualElements||Ci[e]}};throw new Error('The given handler is not an appropriate type.')}}const Po={script:!0,textarea:!0,template:!0};var Ro=R();let Mo=R();class Fo extends Oo{get controlsDescendants(){return!0}async applyBindingsToDescendants(e,n){const t=Jn(e,this.$element);t.isSync?this.bindingCompletion=t:await t.completionPromise,n&&n(t),this.completeBinding(t)}}var jo=1,Ho=2,Uo=3,Wo=4;tt.prototype.text=function(){var e=this.templateType===jo?'text':this.templateType===Ho?'value':'innerHTML';if(0==arguments.length)return this.domElement[e];var n=arguments[0];'innerHTML'==e?Be(this.domElement,n):this.domElement[e]=n};var Ko=R()+'_';tt.prototype.data=function(e){return 1===arguments.length?M(this.domElement,Ko+e):void F(this.domElement,Ko+e,arguments[1])};var Qo=R();tt.prototype.nodes=function(){var e=this.domElement;if(0==arguments.length){const n=it(e);let t=n.containerData||(this.templateType===Uo?e.content:this.templateType===Wo?e:void 0);if(!t||n.alwaysCheckText){const n=this.text();n&&(t=ke(n,e.ownerDocument),this.text(''),ot(e,{containerData:t,alwaysCheckText:!0}))}return t}var n=arguments[0];ot(e,{containerData:n})},at.prototype=new tt,at.prototype.constructor=at,at.prototype.text=function(){if(0==arguments.length){var e=it(this.domElement);return void 0===e.textData&&e.containerData&&(e.textData=e.containerData.innerHTML),e.textData}var n=arguments[0];ot(this.domElement,{textData:n})},y(dt.prototype,{renderTemplateSource:function(e,n,t){t.onError('Override renderTemplateSource')},createJavaScriptEvaluatorBlock:function(){Qt.onError('Override createJavaScriptEvaluatorBlock')},makeTemplateSource:function(e,n){if('string'==typeof e){n=n||document;var t=n.getElementById(e);return t||Qt.onError('Cannot find template with ID '+e),new tt(t)}return 1==e.nodeType||8==e.nodeType?new at(e):void Qt.onError('Unknown template type: '+e)},renderTemplate:function(e,n,t,i){var o=this.makeTemplateSource(e,i);return this.renderTemplateSource(o,n,t,i)}});var Go;const qo=R();let Yo=R();class zo extends Oo{constructor(e){super(e);const n=this.$element,t=rn(this.value);F(n,'conditional',{elseChainSatisfied:an(!0)}),'string'==typeof t||t.name?this.bindNamedTemplate():'nodes'in t?this.bindNodeTemplate(t.nodes||[]):this.bindAnonymousTemplate()}bindNamedTemplate(){fe(this.$element)}bindNodeTemplate(e){if(sn(e))throw new Error('The "nodes" option must be a plain, non-observable array.');let n=e[0]&&e[0].parentNode;n&&M(n,qo)||(n=Z(e),F(n,qo,!0)),new at(this.$element).nodes(n)}bindAnonymousTemplate(){const e=he(this.$element);if(0===e.length)throw new Error('Anonymous template defined, but no template content was provided.');const n=Z(e);new at(this.$element).nodes(n)}onValueChange(){const e=this.$element,n=this.$context;var t=this.value,i=rn(t),o=!0,a=null,d=M(e,'conditional').elseChainSatisfied,s;if('string'==typeof i?(s=t,i={}):(s=i.name,'if'in i&&(o=rn(i.if)),o&&'ifnot'in i&&(o=!rn(i.ifnot))),'foreach'in i){var r=o&&i.foreach||[];a=gt(s||e,r,i,e,n,this.completeBinding),d(0!==(rn(r)||[]).length)}else if(o){var l='data'in i?n.createStaticChildContext(i.data,i.as):n;a=mt(s||e,l,i,e,void 0,this.completeBinding),d(!0)}else fe(e),d(!1);this.disposeOldComputedAndStoreNewOne(e,a)}disposeOldComputedAndStoreNewOne(e,n){let t=M(e,Yo);t&&'function'==typeof t.dispose&&t.dispose(),F(e,Yo,n&&(!n.isActive||n.isActive())?n:void 0)}get controlsDescendants(){return!0}static get allowVirtualElements(){return!0}}ht.prototype=new dt,ht.prototype.constructor=ht,ht.prototype.renderTemplateSource=function(e,n,t,i){var o=!(9>Gt)?e.nodes:null,a=o?e.nodes():null;if(a)return r(a.cloneNode(!0).childNodes);var d=e.text();return Ae(d,i)},ht.instance=new ht,st(ht.instance);class Jo extends zo{get value(){const e=this.valueAccessor(),n=ln(e);return n&&'number'!=typeof n.length?(rn(e),{foreach:n.data,as:n.as,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:ht.instance}):{foreach:e,templateEngine:ht.instance}}}const Xo={addDisposeCallback:Q,removeDisposeCallback:G,removeNode:Y,addCleaner:function(e){ui.push(e)},removeCleaner:function(e){const n=ui.indexOf(e);0<=n&&ui.splice(n,1)},get cleanExternalData(){return Qt.cleanExternalData},set cleanExternalData(e){Qt.set('cleanExternalData',e)}},Zo=Object.assign({addOrRemoveItem:s,arrayFilter:a,arrayFirst:t,arrayForEach:e,arrayGetDistinctValues:function(e=[]){const n=new Set;return null===e?[]:(Ht(e)?e:[...e]).filter((e)=>!n.has(e)&&n.add(e))},arrayIndexOf:n,arrayMap:i,arrayPushAll:d,arrayRemoveItem:o,cloneNodes:ee,compareArrays:p,createSymbolOrString:I,domData:si,domNodeDisposal:Xo,extend:y,filters:Qt.filters,objectForEach:v,objectMap:x,parseHtmlFragment:Ae,parseJson:function(e){return'string'==typeof e&&(e=_(e),e)?JSON&&JSON.parse?JSON.parse(e):new Function('return '+e)():null},parseObjectLiteral:vn,peekObservable:ln,range:function(e,n){e='function'==typeof e?e():e,n='function'==typeof n?n():n;for(var t=[],o=e;o<=n;o++)t.push(o);return t},registerEventHandler:J,setDomNodeChildrenFromArrayMapping:nt,setHtml:Be,setTextContent:we,toggleDomNodeCssClass:A,triggerEvent:X,unwrapObservable:rn}),ea={cleanNode:q,dependencyDetection:Ui,computedContext:Ui,filters:Qt.filters,ignoreDependencies:Je,memoization:Oi,options:Qt,removeNode:Y,selectExtensions:Bi,tasks:w,utils:Zo,LifeCycle:Eo,isObservable:sn,isSubscribable:Qe,isWriteableObservable:pn,isWritableObservable:pn,observable:an,observableArray:cn,isObservableArray:mn,peek:ln,subscribable:on,unwrap:rn,toJS:gn,toJSON:function(e,n,t){var i=gn(e);return JSON.stringify(i,n,t)},proxy:In,computed:xn,dependentObservable:xn,isComputed:En,isPureComputed:function(e){return En(e)&&e[go]&&e[go].pure},pureComputed:Sn,when:function(e,n,t){const i=Bn.bind(null,e,t);return n?i(n.bind(t)):new Promise(i)},nativeTemplateEngine:ht,renderTemplate:mt,setTemplateEngine:st,templateEngine:dt,templateSources:{domElement:tt,anonymousTemplate:at},applyBindingAccessorsToNode:zn,applyBindings:Xn,applyBindingsToDescendants:Jn,applyBindingsToNode:function(e,n,t){const i=new Set,o=Yn(t),a=Ln().makeBindingAccessors(n,o,e);return zn(e,a,o,i),new ko({asyncBindingsApplied:i,rootNode:e,bindingContext:o})},contextFor:Vn,dataFor:$n,BindingHandler:Bo,AsyncBindingHandler:Oo,virtualElements:Ei,domNodeDisposal:Xo,bindingEvent:_o};class na{set(e,n){'string'==typeof e?this[e]=n:'object'==typeof e?(n!==void 0&&Qt.onError(new Error('Given extraneous `value` parameter (first param should be a string, but it was an object).'+e)),Object.assign(this,e)):Qt.onError(new Error('Given a bad binding handler type: '+e))}get(e){const[n]=e.split('.');return this[n]}}class ta{constructor(e={}){if(this.constructor===ta)throw new Error('Provider is an abstract base class.');if(!('FOR_NODE_TYPES'in this))throw new Error('Providers must have FOR_NODE_TYPES property');this.bindingHandlers=e.bindingHandlers||new na,this.globals=e.globals||{}}setGlobals(e){this.globals=e}get preemptive(){return!1}nodeHasBindings(){}getBindingAccessors(){}preprocessNode(){}postProcess(){}get instance(){return this._overloadInstance||this}set instance(e){this._overloadInstance=e&&e!==this?new ia(e,this):void 0}makeAccessorsFromFunction(e){return x(Je(e),(n,t)=>()=>e()[t])}makeValueAccessor(e){return()=>e}makeBindingAccessors(e,n,t){return'function'==typeof e?this.makeAccessorsFromFunction(e.bind(null,n,t)):x(e,this.makeValueAccessor)}}class ia extends ta{get FOR_NODE_TYPES(){return[1,3,8]}constructor(e,n){super(),Object.assign(this,{providerObject:e}),this.bindingHandlers=e.bindingHandlers||n.bindingHandlers}getBindingsAndMakeAccessors(e,n){const t=this.providerObject.getBindings.bind(this.providerObject,e,n);return this.makeAccessorsFromFunction(t)}getBindingAccessors(e,n){return this.providerObject.getBindingAccessors?this.providerObject.getBindingAccessors(e,n):this.getBindingsAndMakeAccessors(e,n)}nodeHasBindings(e){return this.providerObject.nodeHasBindings(e)}preprocessNode(e){if(this.providerObject.preprocessNode)return this.providerObject.preprocessNode(e)}}class oa extends ta{*processBinding(e,n){const[t,i]=e.split('.'),o=this.bindingHandlers.get(t);if(o&&o.preprocess){const t=[];n=o.preprocess(n,e,(...e)=>t.push(e));for(const[e,n]of t)yield*this.processBinding(e,n)}else i&&(n=`{${i}:${n}}`);yield`'${t}':${n}`}*generateBindingString(e){const n='string'==typeof e?vn(e):e;for(const{key:t,unknown:i,value:o}of n)yield*this.processBinding(t||i,o)}preProcessBindings(e){return Array.from(this.generateBindingString(e)).join(',')}getBindingAccessors(e,n){const t=e&&this.getBindingString(e);if(t){const i=this.preProcessBindings(t);return new po().parse(i,n,this.globals,e)}}getBindingString(){throw new Error('Overload getBindingString.')}}class aa extends oa{get FOR_NODE_TYPES(){return[1,8]}preprocessNode(e){if('KO'===e.tagName){const n=e.parentNode,t=[...e.childNodes],i=[...this.genElementBindingStrings(e)].join(','),o=document.createComment('ko '+i),a=document.createComment('/ko');n.insertBefore(o,e);for(const i of t)n.insertBefore(i,e);return n.insertBefore(a,e),e.remove(),[o,...t,a]}}*genElementBindingStrings(e){for(const{name:n,value:t}of e.attributes)yield`${n.replace(/^ko-/,'')}: ${t}`}getBindingString(e){if(e.nodeType===document.COMMENT_NODE)return Ee(e)}nodeHasBindings(e){if(e.nodeType===document.COMMENT_NODE)return le(e)}}class da extends oa{get FOR_NODE_TYPES(){return[1]}get BIND_ATTRIBUTE(){return'data-bind'}getBindingString(e){if(e.nodeType===document.ELEMENT_NODE)return e.getAttribute(this.BIND_ATTRIBUTE)}nodeHasBindings(e){if(e.nodeType===document.ELEMENT_NODE)return e.hasAttribute(this.BIND_ATTRIBUTE)}}var sa={},ra={},la={get(e,n){var t=N(ra,e);t?t.isSynchronousComponent?Je(function(){n(t.definition)}):Ue(function(){n(t.definition)}):ft(e,n)},clearCachedDefinition(e){delete ra[e]},_getFirstResultFromLoaders:yt,loaders:[]},pa={};const ca=Symbol('Knockout View Model ViewModel factory');var ma={getConfig:function(e,n){var t=b(pa,e)?pa[e]:null;n(t)},loadComponent:function(e,n,t){var i=_t(e);Tt(i,n,function(n){Nt(e,i,n,t)})},loadTemplate:function(e,n,t){Ct(_t(e),n,t)},loadViewModel:function(e,n,t){Et(_t(e),n,t)}},ga='createViewModel';la.loaders.push(ma);class ha extends Eo{static get customElementName(){return this.name.replace(/([a-z0-9])([A-Z])/g,'$1-$2').toLowerCase()}static get template(){return'template'in this.prototype?void 0:{element:this.element}}static get element(){throw new Error('[ComponentABC] `element` must be overloaded.')}static get sync(){return!0}static[ca](e,n){return new this(e,n)}static register(e=this.customElementName){const n=this,{template:t}=this,i=this.sync;vt(e,{viewModel:n,template:t,synchronous:i})}}var fa={ComponentABC:ha,get:la.get,clearCachedDefinition:la.clearCachedDefinition,register:vt,isRegistered:xt,unregister:function(e){delete pa[e],la.clearCachedDefinition(e)},defaultLoader:ma,_allRegisteredComponents:pa,get loaders(){return la.loaders},set loaders(e){la.loaders=e}};class ba extends ta{get FOR_NODE_TYPES(){return[1]}preprocessNode(e){if('SLOT'===e.tagName){const n=e.parentNode,t=e.getAttribute('name')||'',i=document.createComment(`ko slot: "${t}"`),o=document.createComment('/ko');return n.insertBefore(i,e),n.insertBefore(o,e),n.removeChild(e),[i,o]}}nodeHasBindings(e){return!!this.getComponentNameForNode(e)}getBindingAccessors(e,n){const t=this.getComponentNameForNode(e);if(t){return{component:()=>({name:t,params:this.getComponentParams(e,n)})}}}getComponentNameForNode(e){if(e.nodeType===e.ELEMENT_NODE){const n=$(e);if(fa.isRegistered(n)){const t=n.includes('-');if(t||'[object HTMLUnknownElement]'==''+e)return n}}}getComponentParams(e,n){const t=new po(e,n,this.globals),i=(e.getAttribute('params')||'').trim(),o=t.parse(i,n,e);if(!o||0===Object.keys(o).length)return{$raw:{}};const a=x(o,(n)=>xn(n,null,{disposeWhenNodeIsRemoved:e})),d=x(a,(n)=>this.makeParamValue(e,n));return Object.assign({$raw:a},d)}makeParamValue(e,n){const t=n.peek();if(!n.isActive())return t;const i=pn(t);return xn({read:()=>rn(n()),write:i?(e)=>n()(e):null,disposeWhenNodeIsRemoved:e})}}class ya extends ta{get FOR_NODE_TYPES(){return[1]}get PREFIX(){return'ko-'}getBindingAttributesList(e){return e.hasAttributes()?Array.from(e.attributes).filter((e)=>e.name.startsWith(this.PREFIX)):[]}nodeHasBindings(e){return 0<this.getBindingAttributesList(e).length}getBindingAccessors(e,n){return Object.assign({},...this.handlersFromAttributes(e,n))}*handlersFromAttributes(e,n){for(const t of this.getBindingAttributesList(e)){const i=t.name.substr(this.PREFIX.length);yield{[i]:()=>this.getValue(t.value,n,e)}}}getValue(e,n,t){if(e){const i=n.$data;switch(e){case'$element':return t;case'$context':return n;case'this':case'$data':return n.$data;}if(i instanceof Object&&e in i)return i[e];if(e in n)return n[e];if(e in this.globals)return this.globals[e];throw new Error(`The variable '${e} not found.`)}}}class va extends ta{get FOR_NODE_TYPES(){return this.nodeTypes}constructor(e={}){super(e);const n=e.providers||[];this.nodeTypeMap={},this.nodeTypes=[],this.providers=[],n.forEach((e)=>this.addProvider(e))}setGlobals(e){[this,...this.providers].forEach((n)=>n.globals=e)}addProvider(e){this.providers.push(e),e.bindingHandlers=this.bindingHandlers,e.globals=this.globals;const n=this.nodeTypeMap;for(const t of e.FOR_NODE_TYPES)n[t]||(n[t]=[]),n[t].push(e);this.nodeTypes=Object.keys(this.nodeTypeMap).map((e)=>parseInt(e,10))}providersFor(e){return this.nodeTypeMap[e.nodeType]||[]}nodeHasBindings(e){return this.providersFor(e).some((n)=>n.nodeHasBindings(e))}preprocessNode(e){for(const n of this.providersFor(e)){const t=n.preprocessNode(e);if(t)return t}}*enumerateProviderBindings(e,n){for(const t of this.providersFor(e)){const i=t.getBindingAccessors(e,n);if(i&&(yield*Object.entries(i||{}),t.preemptive))return}}getBindingAccessors(e,n){const t={};for(const[i,o]of this.enumerateProviderBindings(e,n)){if(i in t)throw new Error(`The binding "${i}" is duplicated by multiple providers`);t[i]=o}return t}}const xa=/^([\s\S]*)}}([\s\S]*?)\{\{([\s\S]*)$/,Na=/^([\s\S]*?)\{\{([\s\S]*)}}([\s\S]*)$/,Ca=/^([^,"'{}()/:[\]\s]+)\s+([^\s:].*)/;class Ea{constructor(e){this.text=e}trim(e){return null===e?'':e.trim()}}class Sa extends Ea{asAttr(e,n,t){return new po().parseExpression(this.text,e,n,t)()}*textNodeReplacement(e){const n=this.trim(this.text),t=e?e.ownerDocument:document,i=n[0],o=n[n.length-1];var a=!0,d;if('#'===i){'/'===o?d=n.slice(1,-1):(d=n.slice(1),a=!1);const e=d.match(Ca);e&&(d=e[1]+':'+e[2])}else if('/'===i);else d='{'===i&&'}'===o?'html:'+this.trim(n.slice(1,-1)):'text:'+this.trim(n);d&&(yield t.createComment('ko '+d)),a&&(yield t.createComment('/ko'))}}class Ta extends Ea{asAttr(){return this.text}*textNodeReplacement(){yield document.createTextNode(this.text.replace(/"/g,'\\"'))}}const _a={value:'value',checked:'checked',class:'css'};class Da extends ta{get FOR_NODE_TYPES(){return[1]}constructor(e={}){super(e),this.ATTRIBUTES_TO_SKIP=new Set(e.attributesToSkip||['data-bind']),this.ATTRIBUTES_BINDING_MAP=e.attributesBindingMap||_a}*attributesToInterpolate(e){for(const n of Array.from(e))this.ATTRIBUTES_TO_SKIP.has(n.name)||n.specified&&n.value.includes('{{')&&(yield n)}nodeHasBindings(e){return!this.attributesToInterpolate(e.attributes).next().done}partsTogether(e,n,t,...i){if(1<e.length)return e.map((e)=>rn(e.asAttr(n,this.globals,t))).join('');const o=e[0].asAttr(n,this.globals);return i.length&&o(i[0]),o}attributeBinding(e,n){return[e,n]}*bindingParts(e){for(const n of this.attributesToInterpolate(e.attributes)){const e=Array.from(At(n.value));e.length&&(yield this.attributeBinding(n.name,e))}}getPossibleDirectBinding(e){const n=this.ATTRIBUTES_BINDING_MAP[e];return n&&this.bindingHandlers.get(e)}*bindingObjects(e,n){for(const[t,i]of this.bindingParts(e,n)){const o=this.getPossibleDirectBinding(t),a=o?t:`attr.${t}`,d=o?(...t)=>this.partsTogether(i,n,e,...t):(...o)=>({[t]:this.partsTogether(i,n,e,...o)});e.removeAttribute(t),yield{[a]:d}}}getBindingAccessors(e,n){return Object.assign({},...this.bindingObjects(e,n))}}class Ia extends ta{get FOR_NODE_TYPES(){return[3]}*textToNodes(e){const n=e.parentNode,t=n&&'TEXTAREA'===n.nodeName,i=e.nodeValue&&e.nodeValue.includes('{{');if(i&&!t)for(const n of At(e.nodeValue))yield*n.textNodeReplacement(e)}textInterpolation(e){const t=Array.from(this.textToNodes(e));if(0!==t.length){if(e.parentNode){const o=e.parentNode,a=t.length;for(let n=0;n<a;++n)o.insertBefore(t[n],e);o.removeChild(e)}return t}}preprocessNode(e){return this.textInterpolation(e)}}const Aa=Symbol('Knockout native bindings');class ka extends ta{get FOR_NODE_TYPES(){return[1,3]}get preemptive(){return!0}nodeHasBindings(e){return!!e[Aa]&&Object.keys(e[Aa]||{}).some((e)=>e.startsWith('ko-'))}preprocessNode(e){return e[Aa]?e:null}onlyBindings([e]){return e.startsWith('ko-')}valueAsAccessor([e,n]){const t=e.replace(/^ko-/,''),i=sn(n)?n:()=>n;return{[t]:i}}getBindingAccessors(e){return Object.assign({},...Object.entries(e[Aa]||{}).filter(this.onlyBindings).map(this.valueAsAccessor))}static addValueToNode(e,n,t){const i=e[Aa]||(e[Aa]={});i[n]=t}static getNodeValues(e){return e[Aa]}}const Ba={init:function(e,n,t,i,o){var a=n()||{};v(a,function(i,a){const{passive:d,capture:s,once:r,debounce:l,throttle:p}=kt(a);let u=(e,...a)=>{var d;const{handler:s,passive:r,bubble:l}=kt(n()[i]);try{if(s){const n=o.$data,t=[n,e,...a];d=s.apply(n,t)}}finally{!0!==d&&(e.preventDefault?!r&&e.preventDefault():e.returnValue=!1)}const p=!1!==t.get(i+'Bubble');!1!==l&&p||(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())};l&&(u=f(u,l)),p&&(u=h(u,p)),J(e,i,u,(s||d||r)&&{capture:s,passive:d,once:r}||!1)})}},wa={init:Ba.init,preprocess:function(e,n,t){t(n.replace('on.',''),'=>'+e)}};var Oa=function(e){return{init:function(n,t,i,o,a){Ba.init.call(this,n,function(){var n={};return n[e]=t(),n},i,o,a)}}}('click'),Va={aliases:['class'],update:function(e,n){var t=rn(n());null!==t&&'object'==typeof t?v(t,function(n,t){t=rn(t),A(e,n,t)}):(t=_((t||'')+''),A(e,e[Va.classesWrittenByBindingKey],!1),e[Va.classesWrittenByBindingKey]=t,A(e,t,!0))},classesWrittenByBindingKey:I('__ko__cssValue')};class $a extends Bo{onDescendantsComplete(){'function'==typeof this.value&&this.value(this.$element)}static get allowVirtualElements(){return!0}}var La={update:function(e,n){var t=rn(n());t&&e.disabled?e.removeAttribute('disabled'):!t&&!e.disabled&&(e.disabled=!0)}},Pa=I('__ko_hasfocusUpdating'),Ra=I('__ko_hasfocusLastValue'),Ma={init:function(e,n){var t=function(t){e[Pa]=!0;var i=e.ownerDocument;if('activeElement'in i){var o;try{o=i.activeElement}catch(n){o=i.body}t=o===e}n(t,{onlyIfChanged:!0}),e[Ra]=t,e[Pa]=!1},i=t.bind(null,!0),o=t.bind(null,!1);J(e,'focus',i),J(e,'focusin',i),J(e,'blur',o),J(e,'focusout',o)},update:function(e,n){var t=!!rn(n());e[Pa]||e[Ra]===t||(t?e.focus():e.blur(),!t&&e[Ra]&&e.ownerDocument.body.focus(),Je(X,null,[e,t?'focusin':'focusout']))}},Fa={};const{jQueryInstance:ja}=Qt;var Ha,Ua,Wa;class Ka extends Bo{get aliases(){return'textinput'}constructor(...n){super(...n),this.previousElementValue=this.$element.value,Qt.debug&&this.constructor._forceUpdateOn&&e(this.constructor._forceUpdateOn,(e)=>{'after'===e.slice(0,5)?this.addEventListener(e.slice(5),'deferUpdateModel'):this.addEventListener(e,'updateModel')});for(const e of this.eventsIndicatingSyncValueChange())this.addEventListener(e,'updateModel');for(const e of this.eventsIndicatingDeferValueChange())this.addEventListener(e,'deferUpdateModel');this.computed('updateView')}eventsIndicatingSyncValueChange(){return['input','change','blur']}eventsIndicatingDeferValueChange(){return[]}updateModel(e){const n=this.$element;clearTimeout(this.timeoutHandle),this.elementValueBeforeEvent=this.timeoutHandle=void 0;const t=n.value;this.previousElementValue!==t&&(Qt.debug&&e&&(n._ko_textInputProcessedEvent=e.type),this.previousElementValue=t,this.value=t)}deferUpdateModel(e){const n=this.$element;if(!this.timeoutHandle){this.elementValueBeforeEvent=n.value;const t=Qt.debug?this.updateModel.bind(this,{type:e.type}):this.updateModel;this.timeoutHandle=g(t,4)}}updateView(){let e=rn(this.value);(null===e||e===void 0)&&(e=''),this.elementValueBeforeEvent!==void 0&&e===this.elementValueBeforeEvent?setTimeout(this.updateView.bind(this),4):this.$element.value!==e&&(this.previousElementValue=e,this.$element.value=e,this.previousElementValue=this.$element.value)}}class Qa extends Ka{constructor(...e){super(...e),11>Gt&&this.addEventListener('propertychange',(e)=>'value'===e.propertyName&&this.updateModel(e)),8<=Gt&&10>Gt&&(this.watchForSelectionChangeEvent(),this.addEventListener('dragend','deferUpdateModel'))}eventsIndicatingSyncValueChange(){return[...super.eventsIndicatingValueChange(),'keypress']}selectionChangeHandler(e){const n=this.activeElement,t=n&&M(n,selectionChangeHandlerName);t&&t(e)}watchForSelectionChangeEvent(e){const n=e.ownerDocument;M(n,selectionChangeRegisteredName)||(F(n,selectionChangeRegisteredName,!0),J(n,'selectionchange',this.selectionChangeHandler.bind(n))),F(e,selectionChangeHandlerName,handler)}}const Ga=Qt.global;if(Ga.navigator){const e=(e)=>e&&parseFloat(e[1]),n=Ga.navigator.userAgent,t=n.match(/Chrome\/([^ ]+)/);Ha=Ga.opera&&Ga.opera.version&&parseInt(Ga.opera.version()),Ua=e(n.match(/Version\/([^ ]+) Safari/)),Wa=e(n.match(/Firefox\/([^ ]*)/))}const qa=8===Gt?class extends Qa{eventsIndicatingValueChange(){return[...super.eventsIndicatingValueChange(),'keyup','keydown']}}:9===Gt?class extends Qa{updateModel(...e){this.deferUpdateModel(...e)}}:Gt?Qa:Ua&&5>Ua?class extends Ka{eventsIndicatingDeferValueChange(){return['keydown','paste','cut']}}:11>Ha?class extends Ka{eventsIndicatingDeferValueChange(){return['keydown']}}:Wa&&4>Wa?class extends Ka{eventsIndicatingValueChange(){return[...super.eventsIndicatingSyncValueChange(),'DOMAutoComplete','dragdrop','drop']}}:Ka;var Ya={init:function(e,n){if(n()){var t='ko_unique_'+ ++Ya.currentIndex;ie(e,t)}},currentIndex:0};class za extends Bo{static get after(){return['options','foreach','template']}constructor(...n){return super(...n),this.isCheckboxOrRadio?void zn(this.$element,{checkedValue:this.valueAccessor}):void(this.propertyChangedFired=!1,this.elementValueBeforeEvent=null,this.ieAutoCompleteHackNeeded&&(this.addEventListener('propertyChange',()=>this.propertyChangedFired=!0),this.addEventListener('focus',()=>this.propertyChangedFired=!1),this.addEventListener('blur',()=>this.propertyChangeFired&&this.valueUpdateHandler())),e(this.eventsToCatch,(e)=>this.registerEvent(e)),this.updateFromModel=this.isInput&&'file'===this.$element.type?this.updateFromModelForFile:this.updateFromModelForValue,this.computed('updateFromModel'))}get eventsToCatch(){const e=this.allBindings.get('valueUpdate'),n='string'==typeof e?[e]:e||[];return[...new Set(['change',...n])]}get isInput(){return'input'===$(this.$element)}get isCheckboxOrRadio(){const n=this.$element;return this.isInput&&('checkbox'==n.type||'radio'==n.type)}get ieAutoCompleteHackNeeded(){return Gt&&isInputElement&&'text'==this.$element.type&&'off'!=this.$element.autocomplete&&(!this.$element.form||'off'!=this.$element.form.autocomplete)}valueUpdateHandler(){this.elementValueBeforeEvent=null,this.propertyChangedFired=!1,this.value=Bi.readValue(this.$element)}registerEvent(e){var n=this.valueUpdateHandler.bind(this);D(e,'after')&&(n=()=>{this.elementValueBeforeEvent=Bi.readValue(this.$element),g(this.valueUpdateHandler.bind(this),0)},e=e.substring(5)),this.addEventListener(e,n)}updateFromModelForFile(){var e=rn(this.value);null===e||e===void 0||''===e?this.$element.value='':Je(this.valueUpdateHandler,this)}updateFromModelForValue(){const e=this.$element;var n=rn(this.value),t=Bi.readValue(e);if(null!==this.elementValueBeforeEvent&&n===this.elementValueBeforeEvent)return void g(this.updateFromModel.bind(this),0);if(n!==t||void 0===t)if('select'===$(e)){const t=this.allBindings.get('valueAllowUnset');Bi.writeValue(e,n,t),t||n===Bi.readValue(e)||Je(this.valueUpdateHandler,this)}else Bi.writeValue(e,n)}}var Ja={update:function(e,n){var t=rn(n()),i='none'!==e.style.display;t&&!i?e.style.display='':!t&&i&&(e.style.display='none')}};class Xa extends Oo{constructor(e){super(e),this.hasElse=this.detectElse(this.$element);const n=this.completesElseChain=an();F(this.$element,'conditional',{elseChainSatisfied:n})}getIfElseNodes(){return this.ifElseNodes?this.ifElseNodes:Xe()||this.hasElse?this.cloneIfElseNodes(this.$element,this.hasElse):void 0}render(){const e=!this.ifElseNodes,{shouldDisplay:n}=this.renderStatus();if(this.ifElseNodes=this.getIfElseNodes()||{},n){const n=e&&!this.hasElse;this.renderAndApplyBindings(this.ifElseNodes.ifNodes,n)}else this.hasElse?this.renderAndApplyBindings(this.ifElseNodes.elseNodes):fe(this.$element)}async renderAndApplyBindings(e,n){n||be(this.$element,ee(e));const t=await Jn(this.bindingContext,this.$element);this.completeBinding(t)}get elseChainIsAlreadySatisfied(){return!1}isElseNode(e){return 8===e.nodeType&&'else'===e.nodeValue.trim().toLowerCase()}detectElse(e){for(var n=he(e),t=0,i=n.length;t<i;++t)if(this.isElseNode(n[t]))return!0;return!1}cloneIfElseNodes(e,n){const t=he(e),o=[],a=[];let d=o;for(var s=0,i=t.length;s<i;++s)n&&this.isElseNode(t[s])?(d=a,n=!1):d.push(q(t[s].cloneNode(!0)));return{ifNodes:o,elseNodes:a}}get controlsDescendants(){return!0}static get allowVirtualElements(){return!0}}class Za extends Xa{constructor(...e){super(...e),this.ifCondition=this.computed(()=>!!rn(this.value)),this.computed('render')}shouldDisplayIf(){return this.ifCondition()}get bindingContext(){return this.ifCondition.isActive()?this.$context.extend(()=>(this.ifCondition(),null)):this.$context}renderStatus(){let e=this.shouldDisplayIf();return this.elseChainIsAlreadySatisfied?(e=!1,this.completesElseChain(!0)):this.completesElseChain(e),{shouldDisplay:e}}}class ed extends Za{shouldDisplayIf(){return!super.shouldDisplayIf()}}class nd extends Xa{constructor(...e){super(...e),this.asOption=this.allBindings.get('as');const n=this.asOption&&!Qt.createChildContextWithAs?()=>!!rn(this.value):()=>rn(this.value);this.conditional=this.computed(n),this.computed('render')}get bindingContext(){return this.asOption?Qt.createChildContextWithAs?this.$context.createChildContext(this.value,this.asOption):this.$context.extend({[this.asOption]:this.value}):this.$context.createChildContext(this.valueAccessor)}renderStatus(){const e=!!this.conditional();return{shouldDisplay:e}}}class td extends Za{shouldDisplayIf(){return super.shouldDisplayIf()||this.value===void 0}get elseChainIsAlreadySatisfied(){return this._elseChain||(this._elseChain=this.readElseChain()),rn(this._elseChain.elseChainSatisfied)}readElseChain(){let e=this.$element;do e=e.previousSibling;while(e&&1!==e.nodeType&&8!==e.nodeType);return!!e&&(8===e.nodeType&&(e=Ce(e)),M(e,'conditional')||{})}}const id=Qt.document&&'function'==typeof Qt.document.createDocumentFragment,od=I('_ko_ffe_pending_delete_index');class ad extends Oo{constructor(e){super(e);const n={};Bt(this.value)&&Object.assign(n,this.value),this.as=n.as||this.allBindings.get('as'),this.data=n.data||(rn(this.$context.$rawData)===this.value?this.$context.$rawData:this.value),this.container=le(this.$element)?this.$element.parentNode:this.$element,this.generateContext=this.createContextGenerator(this.as),this.$indexHasBeenRequested=!1,this.templateNode=wt(n.templateNode||(n.name?document.getElementById(n.name).cloneNode(!0):this.$element)),['afterAdd','beforeRemove','afterQueueFlush','beforeQueueFlush'].forEach((e)=>{this[e]=n[e]||this.allBindings.get(e)}),this.changeQueue=[],this.firstLastNodesList=[],this.indexesToDelete=[],this.rendering_queued=!1,this.pendingDeletes=[],this.isNotEmpty=an(!!rn(this.data).length),F(this.$element,'conditional',{elseChainSatisfied:this.isNotEmpty}),fe(this.$element);const t=rn(this.data);t&&t.map?this.onArrayChange(t.map(Ot),!0):this.completeBinding(),sn(this.data)&&(!this.data.indexOf&&(this.data=this.data.extend({trackArrayChanges:!0})),this.changeSubs=this.data.subscribe(this.onArrayChange,this,'arrayChange'))}dispose(){this.changeSubs&&this.changeSubs.dispose(),this.flushPendingDeletes()}onArrayChange(e,n){for(var t={added:[],deleted:[]},o=0,i=e.length;o<i;o++){if(t.added.length&&'added'===e[o].status){var a=t.added[t.added.length-1],d=a.isBatch?a.index+a.values.length-1:a.index;if(d+1===e[o].index){a.isBatch||(a={isBatch:!0,status:'added',index:a.index,values:[a.value]},t.added.splice(t.added.length-1,1,a)),a.values.push(e[o].value);continue}}t[e[o].status].push(e[o])}0<t.deleted.length&&(this.changeQueue.push.apply(this.changeQueue,t.deleted),this.changeQueue.push({status:'clearDeletedIndexes'})),this.changeQueue.push.apply(this.changeQueue,t.added),0<this.changeQueue.length&&!this.rendering_queued&&(this.rendering_queued=!0,n?this.processQueue():ad.animateFrame.call(window,()=>this.processQueue()))}startQueueFlush(){'function'==typeof this.beforeQueueFlush&&this.beforeQueueFlush(this.changeQueue)}endQueueFlush(){'function'==typeof this.afterQueueFlush&&this.afterQueueFlush(this.changeQueue)}processQueue(){var n=!rn(this.data).length,t=9007199254740991;this.startQueueFlush(),e(this.changeQueue,(e)=>{'number'==typeof e.index&&(t=jt(t,e.index)),this[e.status](e)}),this.flushPendingDeletes(),this.rendering_queued=!1,this.$indexHasBeenRequested&&this.updateIndexes(t),this.endQueueFlush(),this.changeQueue=[],n!=!this.isNotEmpty()&&this.isNotEmpty(!n)}_first$indexRequest(e){this.$indexHasBeenRequested=!0;for(let n=0,t=this.firstLastNodesList.length;n<t;++n){const e=this.getContextStartingFrom(this.firstLastNodesList[n].first);e&&(e.$index=an(n))}return e.$index()}_contextExtensions(e){return Object.assign(e,{$list:this.data}),this.$indexHasBeenRequested?e.$index=e.$index||an():Object.defineProperty(e,'$index',{value:()=>this._first$indexRequest(e),configurable:!0,writable:!0}),e}createContextGenerator(e){const n=this.$context;return e?(t)=>this._contextExtensions(n.extend({[e]:t})):(e)=>n.createChildContext(e,null,(e)=>this._contextExtensions(e))}updateFirstLastNodesList(e,n){const t=n[0],i=n[n.length-1];this.firstLastNodesList.splice(e,0,{first:t,last:i})}added(e){var n=e.index,t=e.isBatch?e.values:[e.value],o=this.getLastNodeBeforeIndex(n);const a=[],d=[];for(var s=0,i=t.length,r,l;s<i;++s){if(l=this.getPendingDeleteFor(t[s]),l&&l.nodesets.length)r=l.nodesets.pop(),this.updateFirstLastNodesList(n+s,r);else{var p=this.templateNode.cloneNode(!0);r=he(p),this.updateFirstLastNodesList(n+s,r);const e=Jn(this.generateContext(t[s]),p);d.push(e)}a.push(...r)}'function'==typeof this.afterAdd?this.afterAdd({nodeOrArrayInserted:this.insertAllAfter(a,o),foreachInstance:this}):this.insertAllAfter(a,o),this.completeBinding(Promise.all(d))}getNodesForIndex(e){let n=[],t=this.firstLastNodesList[e].first,i=this.firstLastNodesList[e].last;for(n.push(t);t&&t!==i;)t=t.nextSibling,n.push(t);return n}getLastNodeBeforeIndex(e){return 1>e||e-1>=this.firstLastNodesList.length?null:this.firstLastNodesList[e-1].last}activeChildElement(e){var n=document.activeElement;if(B(n,e))return n}insertAllAfter(e,n){let t=null,o=this.$element,a,d,s;if(void 0===e.nodeType&&void 0===e.length)throw new Error('Expected a single node or a node array');if(void 0!==e.nodeType)return t=this.activeChildElement(e),ve(o,e,n),[e];if(1===e.length)t=this.activeChildElement(e[0]),ve(o,e[0],n);else if(id){for(a=document.createDocumentFragment(),s=0,d=e.length;s!=d;++s)t=t||this.activeChildElement(e[s]),a.appendChild(e[s]);ve(o,a,n)}else for(s=e.length-1;0<=s;--s){t=t||this.activeChildElement(e[s]);var i=e[s];if(!i)break;ve(o,i,n)}return t&&t.focus(),e}shouldDelayDeletion(e){return e&&('object'==typeof e||'function'==typeof e)}getPendingDeleteFor(e){var n=e&&e[od];return void 0===n?null:this.pendingDeletes[n]}getOrCreatePendingDeleteFor(e){var n=this.getPendingDeleteFor(e);return n?n:(n={data:e,nodesets:[]},e[od]=this.pendingDeletes.length,this.pendingDeletes.push(n),n)}deleted(e){if(this.shouldDelayDeletion(e.value)){let n=this.getOrCreatePendingDeleteFor(e.value);n.nodesets.push(this.getNodesForIndex(e.index))}else this.removeNodes(this.getNodesForIndex(e.index));this.indexesToDelete.push(e.index)}removeNodes(e){function n(){for(var n=e[0].parentNode,t=e.length-1;0<=t;--t)q(e[t]),n.removeChild(e[t])}if(e.length)if(this.beforeRemove){var t=this.beforeRemove({nodesToRemove:e,foreachInstance:this})||{};'function'==typeof t.then&&t.then(n,Qt.onError)}else n()}flushPendingDeletes(){for(let n=0,t=this.pendingDeletes.length;n!==t;++n){for(var e=this.pendingDeletes[n];e.nodesets.length;)this.removeNodes(e.nodesets.pop());e.data&&e.data[od]!==void 0&&delete e.data[od]}this.pendingDeletes=[]}clearDeletedIndexes(){for(let e=this.indexesToDelete.length-1;0<=e;--e)this.firstLastNodesList.splice(this.indexesToDelete[e],1);this.indexesToDelete=[]}updateIndexes(e){let n;for(let t=e,i=this.firstLastNodesList.length;t<i;++t)n=this.getContextStartingFrom(this.firstLastNodesList[t].first),n&&n.$index(t)}getContextStartingFrom(e){for(let n;e;){if(n=Vn(e),n)return n;e=e.nextSibling}}static setSync(e){const n=Qt.global;ad.animateFrame=e?function(e){e()}:n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.msRequestAnimationFrame||function(e){return n.setTimeout(e,1e3/60)}}get controlsDescendants(){return!0}static get allowVirtualElements(){return!0}static get ForEach(){return this}static get PENDING_DELETE_INDEX_SYM(){return od}}var dd={foreach:ad};ad.setSync(!1);const sd=25,rd=1e3,ld=[];let pd=null;const ud=Symbol('Knockout - Original JSX'),cd={svg:'http://www.w3.org/2000/svg',html:'http://www.w3.org/1999/xhtml',xml:'http://www.w3.org/XML/1998/namespace',xlink:'http://www.w3.org/1999/xlink',xmlns:'http://www.w3.org/2000/xmlns/'};class md extends Eo{constructor(e,n,t=null,i,o){super();const a=8===n.nodeType,d=this.getParentTarget(n);if(sn(e))if(e.extend({trackArrayChanges:!0}),this.subscribe(e,this.observableArrayChange,'arrayChange'),!t){const e=a?n.nextSibling:null;t=this.createComment('O'),d.insertBefore(t,e)}else this.adoptedInsertBefore=!0;a&&!t&&(t=n.nextSibling,this.adoptedInsertBefore=!0),this.anchorTo(t||n),Object.assign(this,{insertBefore:t,noInitialBinding:o,parentNode:n,parentNodeTarget:d,xmlns:i,nodeArrayOrObservableAtIndex:[],subscriptionsForNode:new Map});const s=rn(e),r=En(e);(r||null!==s&&s!==void 0)&&this.observableArrayChange(this.createInitialAdditions(s)),this.noInitialBinding=!1}getParentTarget(e){return'content'in e?e.content:8===e.nodeType?e.parentNode:e}remove(){this.dispose()}dispose(){super.dispose();const e=this.insertBefore,n=e&&this.parentNodeTarget===e.parentNode;n&&!this.adoptedInsertBefore&&this.parentNodeTarget.removeChild(e),this.removeAllPriorNodes(),Object.assign(this,{parentNode:null,parentNodeTarget:null,insertBefore:null,nodeArrayOrObservableAtIndex:[]});for(const e of this.subscriptionsForNode.values())e.forEach((e)=>e.dispose());this.subscriptionsForNode.clear()}createInitialAdditions(e){const n='added';return'object'==typeof possibleIteratable&&null!==posibleIterable&&Symbol.iterator in e&&(e=[...e]),Array.isArray(e)?e.map((e,t)=>({index:t,status:n,value:e})):[{status:n,index:0,value:e}]}observableArrayChange(e){let n=[],t=[];for(const i in e){const o=e[i];'added'===o.status?n.push([o.index,o.value]):t.unshift([o.index,o.value])}t.forEach((e)=>this.delChange(...e)),n.forEach((e)=>this.addChange(...e))}addChange(e,n){this.nodeArrayOrObservableAtIndex.splice(e,0,this.injectNode(n,this.lastNodeFor(e)))}injectNode(e,n){let t;if(sn(e)){const{parentNode:i,xmlns:o}=this,a=new md(e,i,n,o,this.noInitialBinding);t=[a]}else if('string'!=typeof e&&Pt(e)){t=[];for(const i of e)t.unshift(this.injectNode(i,n))}else{const i=Vn(this.parentNode),o='content'in this.parentNode,a=i&&!o&&!this.noInitialBinding;t=Array.isArray(e)?e.map((e)=>this.anyToNode(e)):[this.anyToNode(e)];for(const e of t)this.parentNodeTarget.insertBefore(e,n),a&&this.canApplyBindings(e)&&Xn(i,e)}return t}canApplyBindings(e){return 1===e.nodeType||8===e.nodeType}delChange(e){this.removeNodeArrayOrObservable(this.nodeArrayOrObservableAtIndex[e]),this.nodeArrayOrObservableAtIndex.splice(e,1)}getSubscriptionsForNode(e){if(!this.subscriptionsForNode.has(e)){const n=[];return this.subscriptionsForNode.set(e,n),n}return this.subscriptionsForNode.get(e)}isJsx(e){return'string'==typeof e.elementName&&'children'in e&&'attributes'in e}anyToNode(e){if(S(e))return this.futureJsxNode(e);switch(typeof e){case'object':if(e instanceof Error)return this.createComment(e.toString());if(null===e)return this.createComment(e+'');if(e instanceof Node)return this.cloneJSXorMoveNode(e);if(Symbol.iterator in e)return e;break;case'function':return this.anyToNode(e());case'undefined':case'Error':case'symbol':return this.createComment(e+'');case'string':return this.createTextNode(e);case'boolean':case'number':case'bigint':default:return this.createTextNode(e+'');}return this.isJsx(e)?this.jsxToNode(e):this.createComment(E(e))}createComment(e){const n=document.createComment(e);return n[Aa]=!0,n}createTextNode(e){const n=document.createTextNode(e);return n[Aa]=!0,n}cloneJSXorMoveNode(e){return ud in e?this.jsxToNode(e[ud]):e}jsxToNode(e){const n=e.attributes.xmlns||cd[e.elementName]||this.xmlns,t=document.createElementNS(n||cd.html,e.elementName);if(t[ud]=e,sn(e.attributes)){const n=this.getSubscriptionsForNode(t);n.push(e.attributes.subscribe((e)=>{this.updateAttributes(t,rn(e))}))}return this.updateAttributes(t,rn(e.attributes)),this.addDisposable(new md(e.children,t,null,n,this.noInitialBinding)),t}futureJsxNode(e){const n=an();e.then(n).catch((t)=>n(t instanceof Error?t:Error(t)));const t=new md(n,this.parentNode,null,this.xmlns,this.noInitialBinding);return this.addDisposable(t),t.insertBefore}updateAttributes(e,n){const t=this.getSubscriptionsForNode(e),i=new Set([...e.attributes].map((e)=>e.name));for(const[o,a]of Object.entries(n||{}))i.delete(o),sn(a)&&t.push(a.subscribe((n)=>this.setNodeAttribute(e,o,n))),this.setNodeAttribute(e,o,a);for(const t of i)this.setNodeAttribute(e,t,void 0)}getNamespaceOfAttribute(e){const[n,...t]=e.split(':');return'xmlns'===n||t.length&&cd[n]?cd[n]:null}setNodeAttribute(e,n,t){const i=rn(t);if(ka.addValueToNode(e,n,t),void 0===i)e.removeAttributeNS(null,n);else if(S(t))Promise.resolve(t).then((t)=>this.setNodeAttribute(e,n,t));else{const t=this.getNamespaceOfAttribute(n);e.setAttributeNS(t,n,i+'')}}lastNodeFor(e){const n=this.nodeArrayOrObservableAtIndex[e]||[],[t]=n.slice(-1),i=t instanceof md?t.insertBefore:t||this.insertBefore;return i?i.parentNode?i:null:null}removeAllPriorNodes(){const{nodeArrayOrObservableAtIndex:e}=this;for(;e.length;)this.removeNodeArrayOrObservable(e.pop())}removeNodeArrayOrObservable(e){for(const n of e){if(n instanceof md){n.dispose();continue}const e=n;delete e[ud],this.detachAndDispose(e);const t=this.subscriptionsForNode.get(e);t&&(t.forEach((e)=>e.dispose()),this.subscriptionsForNode.delete(e))}}detachAndDispose(e){if(Pt(e))for(const n of e)this.detachAndDispose(n);else e.remove();Vt(e)}}const gd=Symbol('JSX Fragment');var hd=0;class fd extends Fo{constructor(e){super(e),this.originalChildNodes=r(he(this.$element)),this.computed('computeApplyComponent')}cloneTemplateIntoElement(e,n,t){if(!n)throw new Error('Component \''+e+'\' has no template');if(Rt(n))fe(t),this.addDisposable(new md(n,t,null,void 0,!0));else{const e=ee(n);be(t,e)}}createViewModel(e,n,t,i){const o=e.createViewModel;return o?o.call(e,i,{element:n,templateNodes:t}):i}makeTemplateSlotNodes(e){return Object.assign({},...this.genSlotsByName(e))}*genSlotsByName(e){for(const n of e){if(1!==n.nodeType)continue;const e=n.getAttribute('slot');e&&(yield{[e]:n})}}computeApplyComponent(){const e=rn(this.value);let n,t;if('string'==typeof e?n=e:(n=rn(e.name),t=ka.getNodeValues(this.$element)||rn(e.params)),this.latestComponentName=n,!n)throw new Error('No component name specified');this.loadingOperationId=this.currentLoadingOperationId=++hd,fa.get(n,(e)=>this.applyComponentDefinition(n,t,e))}makeChildBindingContext(e){return this.$context.createChildContext(e,void 0,(n)=>Object.assign(n,{$component:e,$componentTemplateNodes:this.originalChildNodes,$componentTemplateSlotNodes:this.makeTemplateSlotNodes(this.originalChildNodes)}))}applyComponentDefinition(e,n,t){if(this.currentLoadingOperationId===this.loadingOperationId&&this.latestComponentName===e){this.cleanUpState();const i=this.$element;if(!t)throw new Error('Unknown component \''+e+'\'');t.template&&this.cloneTemplateIntoElement(e,t.template,i);const o=this.createViewModel(t,i,this.originalChildNodes,n);this.childBindingContext=this.makeChildBindingContext(o);const a=o&&o.template;if(!a&&!t.template)throw new Error('Component \''+e+'\' has no template');t.template||this.cloneTemplateIntoElement(e,a,i),o instanceof Eo&&o.anchorTo(this.$element),this.currentViewModel=o;const d=this.onBindingComplete.bind(this,o);this.applyBindingsToDescendants(this.childBindingContext,d)}}onBindingComplete(e,n){e&&e.koDescendantsComplete&&e.koDescendantsComplete(this.$element),this.completeBinding(n)}cleanUpState(){const e=this.currentViewModel,n=e&&e.dispose;'function'==typeof n&&n.call(e),this.currentViewModel=null,this.currentLoadingOperationId=null}dispose(){this.cleanUpState(),super.dispose()}get controlsDescendants(){return!0}static get allowVirtualElements(){return!0}}class bd extends Fo{constructor(...e){super(...e);const n=this.getSlot(this.value),t=Vn(n),i=this.$context.extend({$slotContext:t,$slotData:t&&t.$data});this.replaceSlotWithNode(this.$element,n),this.applyBindingsToDescendants(i)}replaceSlotWithNode(e,n){const t=this.cloneNodeFromOriginal(n);fe(e),this.addDisposable(new md(t,e,void 0,void 0,!0))}cloneNodeFromOriginal(e){if(!e)return[];const n=Mt(e);if(n)return n.children;if('content'in e){const n=document.importNode(e.content,!0);return[...n.childNodes]}const t=Array.isArray(e)?e:[e];return t.map((e)=>e.cloneNode(!0))}getSlot(e){const{$componentTemplateSlotNodes:n}=this.$context;return e?n[e]:n['']||[...this.$context.$componentTemplateNodes].filter((e)=>!e.getAttribute||!e.getAttribute('slot'))}static get allowVirtualElements(){return!0}}var yd=String.prototype,vd={};vd.uppercase=function(e){return yd.toUpperCase.call(rn(e))},vd.lowercase=function(e){return yd.toLowerCase.call(rn(e))},vd['default']=function(e,n){return e=rn(e),'function'==typeof e?e:'string'==typeof e?''===yd.trim.call(e)?n:e:null==e||0==e.length?n:e},vd.replace=function(e,n,t){return yd.replace.call(rn(e),n,t)},vd.fit=function(e,n,t,i){if(e=rn(e),n&&(''+e).length>n)switch(t=''+(t||'...'),n-=t.length,e=''+e,i){case'left':return t+e.slice(-n);case'middle':var o=Math.ceil(n/2);return e.substr(0,o)+t+e.slice(o-n);default:return e.substr(0,n)+t;}else return e},vd.json=function(e,n,t){return JSON.stringify(gn(e),t,n)},vd.number=function(e){return(+rn(e)).toLocaleString()};const xd=new class{constructor({provider:e,bindings:n,extenders:t,filters:i,options:o}){if(Object.assign(ea.options,o,{filters:i,bindingProviderInstance:e}),e.setGlobals(ea.options.bindingGlobals),Array.isArray(n))for(const t of n)e.bindingHandlers.set(t);else e.bindingHandlers.set(n);this.providedProperties={extenders:Object.assign(Qi,t),bindingHandlers:e.bindingHandlers,bindingProvider:e}}create(...e){const n=Object.assign({get getBindingHandler(){return Qt.getBindingHandler},set getBindingHandler(e){Qt.set('getBindingHandler',e)}},ea,this.providedProperties,...e);return n.options.knockoutInstance=n,n}}({filters:vd,provider:new va({providers:[new ba,new ka,new Da,new Ia,new da,new aa,new ya]}),bindings:[{attr:{update:function(e,n){var t=rn(n())||{};v(t,function(n,t){t=rn(t);var i=n.indexOf(':'),o=0<i&&e.lookupNamespaceURI(n.substr(0,i));const a=!1===t||null===t||t===void 0;a?o?e.removeAttributeNS(o,n):e.removeAttribute(n):(t=t.toString(),o?e.setAttributeNS(o,n,t):e.setAttribute(n,t)),'name'===n&&ie(e,a?'':t)})}},checked:{after:['value','attr'],init:function(e,t,i){function o(){var n=e.checked,i=d();if(!en()&&!(!n&&(l||Xe()))){var o=Je(t);if(u){var a=c?o.peek():o,p=g;g=i,p===i?s(a,i,n):(n&&(s(a,i,!0),s(a,p,!1)),g=i),c&&pn(o)&&o(a)}else r&&(void 0===i?i=n:!n&&(i=void 0)),t(i,{onlyIfChanged:!0})}}function a(){var i=i=rn(t()),o=d();u?(e.checked=0<=n(i,o),g=o):r&&o===void 0?e.checked=!!i:e.checked=d()===i}var d=Sn(function(){if(i.has('checkedValue'))return rn(i.get('checkedValue'));return m?i.has('value')?rn(i.get('value')):e.value:void 0}),r='checkbox'==e.type,l='radio'==e.type;if(r||l){var p=t(),u=r&&rn(p)instanceof Array,c=!(u&&p.push&&p.splice),m=l||u,g=u?d():void 0;xn(o,null,{disposeWhenNodeIsRemoved:e}),J(e,'click',o),xn(a,null,{disposeWhenNodeIsRemoved:e}),p=void 0}}},checkedValue:{update:function(e,n){e.value=rn(n())}},click:Oa,css:Va,class:Va,descendantsComplete:$a,enable:La,event:Ba,disable:{update:function(e,n){La.update(e,function(){return!rn(n())})}},hasfocus:Ma,hasFocus:Ma,hidden:{update:function(e,n){Ja.update.call(this,e,()=>!rn(n()))}},html:{init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){Be(e,n())},allowVirtualElements:!0},let:{init:function(e,n,t,i,o){var a=o.extend(n);return Jn(a,e),{controlsDescendantBindings:!0}},allowVirtualElements:!0},on:wa,options:{init:function(e){if('select'!==$(e))throw new Error('options binding applies only to SELECT elements');for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,o){function d(){return a(e.options,function(e){return e.selected})}function s(e,n,t){var i=typeof n;return'function'==i?n(e):'string'==i?e[n]:t}function r(t,i){if(v&&m)Bi.writeValue(e,rn(o.get('value')),!0);else if(f.length){var a=0<=n(f,Bi.readValue(i[0]));de(i[0],a),v&&!a&&Je(X,null,[e,'change'])}}var l=0==e.length,p=e.multiple,u=!l&&p?e.scrollTop:null,c=rn(t()),m=o.get('valueAllowUnset')&&o.has('value'),g=o.get('optionsIncludeDestroyed'),h={},f=[],b,y;m||(p?f=i(d(),Bi.readValue):0<=e.selectedIndex&&f.push(Bi.readValue(e.options[e.selectedIndex]))),c&&('undefined'==typeof c.length&&(c=[c]),y=a(c,function(e){return g||e===void 0||null===e||!rn(e._destroy)}),o.has('optionsCaption')&&(b=rn(o.get('optionsCaption')),null!==b&&b!==void 0&&y.unshift(Fa)));var v=!1;h.beforeRemove=function(n){e.removeChild(n)};var x=r;o.has('optionsAfterRender')&&'function'==typeof o.get('optionsAfterRender')&&(x=function(e,n){r(e,n),Je(o.get('optionsAfterRender'),null,[n[0],e===Fa?void 0:e])}),nt(e,y,function(n,t,i){i.length&&(f=!m&&i[0].selected?[Bi.readValue(i[0])]:[],v=!0);var a=e.ownerDocument.createElement('option');if(n===Fa)we(a,o.get('optionsCaption')),Bi.writeValue(a,void 0);else{var d=s(n,o.get('optionsValue'),n);Bi.writeValue(a,rn(d));var r=s(n,o.get('optionsText'),d);we(a,r)}return[a]},h,x),Je(function(){if(m)Bi.writeValue(e,rn(o.get('value')),!0);else{var n;n=p?f.length&&d().length<f.length:f.length&&0<=e.selectedIndex?Bi.readValue(e.options[e.selectedIndex])!==f[0]:f.length||0<=e.selectedIndex,n&&X(e,'change')}}),re(e),u&&20<Math.abs(u-e.scrollTop)&&(e.scrollTop=u)}},selectedOptions:{after:['options','foreach'],init:function(n,t){J(n,'change',function(){var i=t(),o=[];e(n.getElementsByTagName('option'),function(e){e.selected&&o.push(Bi.readValue(e))}),t(o)})},update:function(t,i){if('select'!=$(t))throw new Error('values binding applies only to SELECT elements');var o=rn(i()),a=t.scrollTop;o&&'number'==typeof o.length&&e(t.getElementsByTagName('option'),function(e){var t=0<=n(o,Bi.readValue(e));e.selected!=t&&de(e,t)}),t.scrollTop=a}},style:{update:function(e,n){var t=rn(n()||{});v(t,function(n,t){if(t=rn(t),(null===t||void 0===t||!1===t)&&(t=''),ja)ja(e).css(n,t);else{n=n.replace(/-(\w)/g,(e,n)=>n.toUpperCase());const i=e.style[n];e.style[n]=t,t===i||e.style[n]!==i||isNaN(t)||(e.style[n]=t+'px')}})}},submit:{init:function(e,n,t,i,o){if('function'!=typeof n())throw new Error('The value for a submit binding must be a function');J(e,'submit',function(t){var i=n(),a;try{a=i.call(o.$data,e)}finally{!0!==a&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}})}},text:{init:function(){return{controlsDescendantBindings:!0}},update:function(e,n){we(e,n())},allowVirtualElements:!0},textInput:qa,textinput:qa,uniqueName:Ya,using:{init:function(e,n,t,i,o){var a=o.createChildContext(n);return Jn(a,e),{controlsDescendantBindings:!0}},allowVirtualElements:!0},value:za,visible:Ja},{foreach:Jo,template:zo},{if:Za,with:nd,ifnot:ed,unless:ed,else:td,elseif:td},dd,{component:fd,slot:bd},{each:dd.foreach}]});var Nd=xd.create({jsx:{createElement:function(e,n,...t){return e===gd?t:{elementName:e,attributes:n||{},children:[...t]}},Fragment:gd},components:fa,version:'4.0.0-alpha8.4',Component:fa.ComponentABC});return Nd});
7
- //# sourceMappingURL=build.reference.es6.min.js.map