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,KAAK,IAAI;YAChB,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW;YACvC,IAAI,CAAC,OAAO,GAAG,IAAI;;YAEnB,OAAO,KAAK,IAAI,MACX,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GACxC,aAAa,CAAC,OAAO,CAAC,GAAG,IAAI,WAAW,CAAC,GAAG;;aAI/C,aAAa,CAAC,MAAM,EAAE,IAAI;YAC3B,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ;YAClE,IAAI,KAAK,EAAE,EACX,MAAM,CAAC,KAAK,GAAG,IAAI;;YAGnB,IAAI,GAAG,KAAK,CAAC,GAAG;YAChB,QAAQ,GAAG,SAAS,CAAC,GAAG;gBACpB,IAAI,KAAK,KAAK,CAAC,MAAM;gBACrB,KAAK,CAAC,IAAI,IAAI,IAAI;gBAClB,SAAS,CAAC,IAAI,IAAI,QAAQ;oBACtB,QAAQ,KAAK,EAAE,EACf,IAAI,CAAC,WAAW,GAAG,IAAI;qBAGvB,IAAI,CAAC,WAAW,CAAC,QAAQ,IAAI,IAAI;;;;aAKxC,OAAO,CAAC,IAAI;QACjB,IAAI,CAAC,EAAE,GAAG,IAAI;QACd,IAAI,CAAC,GAAG,GAAG,IAAI;QACf,QAAO,CAAC,IAAI,EAAE,IAAI;;WAGf,CAAC","sources":["index.tsx","node_modules/surplus/es/index.js","node_modules/surplus/es/insert.js","node_modules/@parcel/transformer-js/src/esmodule-helpers.js","node_modules/surplus/es/content.js","node_modules/surplus/es/dom.js","node_modules/surplus/es/spread.js","node_modules/surplus/es/fieldData.js","node_modules/s-js/dist/S.js"],"sourcesContent":["function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n\n if (!it) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nimport * as Surplus from \"surplus\";\nSurplus;\nimport S from 's-js'; // sanity and safety, we're using POJOs as simple dictionaries.\n\ndelete Object.prototype.__proto__;\ndelete Object.prototype.__defineGetter__;\ndelete Object.prototype.__definSetter__;\ndelete Object.prototype.__lookupGetter__;\ndelete Object.prototype.__lookupSetter__;\nS.root(function () {\n var state = {\n filter: S.value(\"\"),\n sortBy: S.value(null)\n };\n var tbody = document.getElementById(\"missions-table-tbody\");\n assert(tbody instanceof HTMLTableSectionElement, \"can't find tbody element\");\n var columnheadersRow = document.getElementById(\"missions-table-columnheaders\");\n assert(columnheadersRow instanceof HTMLTableRowElement, \"can't find thead tr element\");\n var filterInput = document.getElementById(\"missions-table-filter\");\n assert(filterInput instanceof HTMLInputElement);\n\n var handleFilterChange = function handleFilterChange() {\n state.filter(filterInput.value);\n };\n\n filterInput.addEventListener(\"input\", handleFilterChange);\n var filterInputReset = document.getElementById(\"missions-table-filter-reset\");\n assert(filterInputReset instanceof HTMLButtonElement);\n filterInputReset.addEventListener(\"click\", function () {\n return filterInput.value = \"\", handleFilterChange();\n });\n S.effect(function () {\n return filterInputReset.style.display = state.filter() !== \"\" ? \"block\" : \"none\";\n }); // Load information about the columns we're using\n\n var columnMap = {};\n var columns = [];\n\n function isColumnId(x) {\n return x in columnMap;\n }\n\n var _iterator = _createForOfIteratorHelper(columnheadersRow.children),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var th = _step.value;\n if (!(th instanceof HTMLTableCellElement)) continue;\n var button = th.querySelector(\"button\");\n if (!(button instanceof HTMLButtonElement)) continue;\n var id = th.id;\n if (!id || id in columnMap) continue;\n var column = {\n id: id,\n th: th,\n button: button\n };\n Object.freeze(column);\n columnMap[id] = column;\n columns.push(column);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n Object.freeze(columnMap);\n Object.freeze(columns); // Load information about each row, so that we can re-sort them later.\n\n var rows = [];\n\n var _iterator2 = _createForOfIteratorHelper(tbody.children),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var tr = _step2.value;\n if (!(tr instanceof HTMLTableRowElement)) continue;\n var _columns2 = {};\n var row = {\n tr: tr,\n columns: _columns2\n };\n\n var _iterator5 = _createForOfIteratorHelper(tr.children),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var td = _step5.value;\n if (!(td instanceof HTMLTableCellElement)) continue;\n if (!isColumnId(td.headers)) continue;\n if (!(\"value\" in td.dataset) || typeof td.dataset.value !== \"string\") continue;\n var value = JSON.parse(td.dataset.value);\n if (!isSortableValue(value)) continue;\n _columns2[td.headers] = value;\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n Object.freeze(row.columns);\n Object.freeze(row);\n rows.push(row);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n Object.freeze(rows); // First we sort all of the rows by whatever the current sorting condition is.\n\n var sorted = S(function () {\n var sortBy = state.sortBy();\n if (!sortBy) return rows;\n return rows.slice(0).sort(function (a, b) {\n var _a$columns$sortBy$id, _b$columns$sortBy$id;\n\n return localeCompareSortable((_a$columns$sortBy$id = a.columns[sortBy.id]) !== null && _a$columns$sortBy$id !== void 0 ? _a$columns$sortBy$id : [], (_b$columns$sortBy$id = b.columns[sortBy.id]) !== null && _b$columns$sortBy$id !== void 0 ? _b$columns$sortBy$id : []) * (sortBy.order === \"descending\" ? -1 : 1);\n });\n });\n var filterRegex = S(function () {\n var exprs = state.filter().trim().split(/\\s*[|&,;]+\\s*/).filter(function (x) {\n return x.length !== 0;\n });\n if (exprs.length === 0) return null;\n return new RegExp(exprs.map(escapeRegExp).map(function (e) {\n return \"(\".concat(e, \")\");\n }).join('|'), \"ig\");\n });\n\n function escapeRegExp(s) {\n return s.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n } // Then we filter out rows that don't match the current filter expression\n\n\n var filtered = S(function () {\n var regex = filterRegex();\n if (!regex) return sorted();\n return sorted().filter(function (row) {\n var result = [false];\n\n var _iterator3 = _createForOfIteratorHelper(columns),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var col = _step3.value;\n mergeMatchResult(result, fuzzyMatchSortable(regex, row.columns[col.id]));\n if (!result.includes(false)) return true;\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return false;\n });\n }); // Finally, we use Surplus to replace the tbody content with the current set of filtered rows.\n\n S.effect(function (__current) {\n if (tbody.parentNode instanceof HTMLElement) {\n var _state$sortBy$id, _state$sortBy;\n\n tbody.parentNode.dataset.sortedBy = (_state$sortBy$id = (_state$sortBy = state.sortBy()) === null || _state$sortBy === void 0 ? void 0 : _state$sortBy.id) !== null && _state$sortBy$id !== void 0 ? _state$sortBy$id : \"\";\n }\n\n return Surplus.content(tbody, filtered().map(function (r) {\n return r.tr;\n }), __current);\n }, Array.from(tbody.childNodes)); // Here we set up transformers for all of the registered regions\n // so that we can highlight portions that are matching the current filter.\n\n var registeredRegions = tbody.querySelectorAll(\".reg\");\n\n var _iterator4 = _createForOfIteratorHelper(registeredRegions),\n _step4;\n\n try {\n var _loop2 = function _loop2() {\n var _reg$textContent;\n\n var reg = _step4.value;\n if (!(reg instanceof HTMLSpanElement)) return \"continue\";\n var text = (_reg$textContent = reg.textContent) !== null && _reg$textContent !== void 0 ? _reg$textContent : \"\";\n S.effect(function (showing) {\n var regex = filterRegex();\n\n if (!regex) {\n if (showing) reg.replaceChildren(text);\n return false;\n }\n\n var content = [];\n var cursor = 0;\n var match = null;\n\n while ((match = regex.exec(text)) !== null) {\n if (!match[0]) continue;\n if (cursor !== match.index) content.push(text.slice(cursor, match.index));\n content.push(function () {\n var __;\n\n __ = Surplus.createElement(\"span\", \"sel\", null);\n Surplus.content(__, match[0], \"\");\n return __;\n }());\n cursor = match.index + match[0].length;\n }\n\n if (cursor !== text.length) content.push(text.slice(cursor));\n reg.replaceChildren.apply(reg, content);\n return true;\n }, false);\n };\n\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _ret = _loop2();\n\n if (_ret === \"continue\") continue;\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n var _loop = function _loop() {\n var col = _columns[_i];\n var sortRules = {\n ascending: {\n id: col.id,\n order: \"ascending\"\n },\n descending: {\n id: col.id,\n order: \"descending\"\n },\n none: {\n order: \"none\"\n }\n };\n var status = S(function () {\n var sortBy = state.sortBy();\n if ((sortBy === null || sortBy === void 0 ? void 0 : sortBy.id) !== col.id) return sortRules.none;\n return sortRules[sortBy.order];\n });\n var order = S(function (prev) {\n var _status = status(),\n order = _status.order;\n\n col.th.setAttribute(\"aria-sort\", order);\n return order;\n }, col.th.getAttribute(\"aria-sort\"));\n col.button.addEventListener(\"click\", function () {\n var prevOrder = order();\n state.sortBy(prevOrder === \"none\" ? sortRules.ascending : prevOrder === \"ascending\" ? sortRules.descending : null);\n });\n };\n\n for (var _i = 0, _columns = columns; _i < _columns.length; _i++) {\n _loop();\n }\n});\n\nfunction localeCompareSortable(a, b) {\n if (a == null) {\n if (b == null) return 0;\n return -1;\n } else {\n if (b == null) return 1;\n }\n\n if (typeof a === \"string\") {\n if (typeof b === \"string\") return a.localeCompare(b);else return localeCompareSortable(a, b[0]) || 1 - b.length;\n } else {\n if (typeof b === \"string\") return localeCompareSortable(a[0], b) || a.length - 1;else {\n for (var i = 0; i < a.length && i < b.length; i++) {\n var result = localeCompareSortable(a[i], b[i]);\n if (result !== 0) return result;\n }\n\n return a.length - b.length;\n }\n }\n}\n\nfunction fuzzyMatchSortable(r, s) {\n if (s == null) {\n return [false];\n } else if (typeof s === \"string\") {\n var result = [false];\n var match;\n\n while ((match = r.exec(s)) !== null) {\n mergeMatchResult(result, match);\n if (!result.includes(false)) break;\n }\n\n r.lastIndex = 0;\n return result;\n } else {\n var _result = [false];\n\n for (var i = 0; i < s.length; i++) {\n mergeMatchResult(_result, fuzzyMatchSortable(r, s[i]));\n if (!_result.includes(false)) break;\n }\n\n return _result;\n }\n}\n\nfunction mergeMatchResult(result, match) {\n for (var i = 0; i < match.length; i++) {\n var _i2, _result$_i;\n\n if (match[i]) result[i] = true;else (_result$_i = result[_i2 = i]) !== null && _result$_i !== void 0 ? _result$_i : result[_i2] = false;\n }\n\n return result;\n}\n\nfunction isSortableValue(x) {\n if (x == null || typeof x === \"string\") return true;\n if (!Array.isArray(x)) return false;\n\n for (var i = 0; i < x.length; i++) {\n if (!isSortableValue(x[i])) return false;\n }\n\n return true;\n}\n\nfunction assert(x, msg) {\n if (!x) throw new Error(msg);\n}","export { insert } from './insert';\nexport { content } from './content';\nexport * from './dom';\nexport { spread, assign } from './spread';\nexport { default as S } from 's-js';\n","import { S } from './index';\nvar DOCUMENT_FRAGMENT_NODE = 11, TEXT_NODE = 3;\nexport function insert(range, value) {\n var parent = range.start.parentNode, test = range.start, good = null, t = typeof value;\n //if (parent === null) {\n // throw new Error(\"Surplus.insert() can only be used on a node that has a parent node. \\n\"\n // + \"Node ``\" + range.start + \"'' is currently unattached to a parent.\");\n //}\n //if (range.end.parentNode !== parent) {\n // throw new Error(\"Surplus.insert() requires that the inserted nodes remain sibilings \\n\"\n // + \"of the original node. The DOM has been modified such that this is \\n\"\n // + \"no longer the case.\");\n //}\n if (t === 'string' || t === 'number') {\n value = value.toString();\n if (test.nodeType === TEXT_NODE) {\n test.data = value;\n good = test;\n }\n else {\n value = document.createTextNode(value);\n parent.replaceChild(value, test);\n if (range.end === test)\n range.end = value;\n range.start = good = value;\n }\n }\n else if (value instanceof Node) {\n if (test !== value) {\n parent.replaceChild(value, test);\n if (range.end === test)\n range.end = value;\n range.start = value;\n }\n good = value;\n }\n else if (Array.isArray(value)) {\n insertArray(value);\n }\n else if (value instanceof Function) {\n S(function () {\n insert(range, value());\n });\n good = range.end;\n }\n else if (value !== null && value !== undefined && value !== true && value !== false) {\n value = value.toString();\n if (test.nodeType === TEXT_NODE) {\n test.data = value;\n good = test;\n }\n else {\n value = document.createTextNode(value);\n parent.replaceChild(value, test);\n if (range.end === test)\n range.end = value;\n range.start = good = value;\n }\n }\n if (good === null) {\n if (range.start === parent.firstChild && range.end === parent.lastChild && range.start !== range.end) {\n // fast delete entire contents\n parent.textContent = \"\";\n value = document.createTextNode(\"\");\n parent.appendChild(value);\n good = range.start = range.end = value;\n }\n else if (test.nodeType === TEXT_NODE) {\n test.data = \"\";\n good = test;\n }\n else {\n value = document.createTextNode(\"\");\n parent.replaceChild(value, test);\n if (range.end === test)\n range.end = value;\n range.start = good = value;\n }\n }\n // remove anything left after the good cursor from the insert range\n while (good !== range.end) {\n test = range.end;\n range.end = test.previousSibling;\n parent.removeChild(test);\n }\n return range;\n function insertArray(array) {\n for (var i = 0, len = array.length; i < len; i++) {\n var value = array[i];\n if (good === range.end) {\n if (value instanceof Node) {\n good = range.end = (good.nextSibling ? parent.insertBefore(value, good.nextSibling) : parent.appendChild(value));\n }\n else if (value instanceof Array) {\n insertArray(value);\n }\n else if (value !== null && value !== undefined && value !== false && value !== true) {\n value = document.createTextNode(value.toString());\n good = range.end = (good.nextSibling ? parent.insertBefore(value, good.nextSibling) : parent.appendChild(value));\n }\n }\n else {\n if (value instanceof Node) {\n if (test !== value) {\n if (good === null) {\n if (range.end === value)\n range.end = value.previousSibling;\n parent.replaceChild(value, test);\n range.start = value;\n if (range.end === test)\n range.end = value;\n test = value.nextSibling;\n }\n else {\n if (test.nextSibling === value && test !== value.nextSibling && test !== range.end) {\n parent.removeChild(test);\n test = value.nextSibling;\n }\n else {\n if (range.end === value)\n range.end = value.previousSibling;\n parent.insertBefore(value, test);\n }\n }\n }\n else {\n test = test.nextSibling;\n }\n good = value;\n }\n else if (value instanceof Array) {\n insertArray(value);\n }\n else if (value !== null && value !== undefined && value !== true && value !== false) {\n value = value.toString();\n if (test.nodeType === TEXT_NODE) {\n test.data = value;\n if (good === null)\n range.start = test;\n good = test, test = good.nextSibling;\n }\n else {\n value = document.createTextNode(value);\n parent.insertBefore(value, test);\n if (good === null)\n range.start = value;\n good = value;\n }\n }\n }\n }\n }\n}\n","exports.interopDefault = function(a) {\n return a && a.__esModule ? a : {default: a};\n};\n\nexports.defineInteropFlag = function(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n};\n\nexports.exportAll = function(source, dest) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n // Skip duplicate re-exports when they have the same value.\n if (key in dest && dest[key] === source[key]) {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function() {\n return source[key];\n },\n });\n });\n\n return dest;\n};\n\nexports.export = function(dest, destName, get) {\n Object.defineProperty(dest, destName, {\n enumerable: true,\n get: get,\n });\n};\n","import { S } from './index';\nexport function content(parent, value, current) {\n var t = typeof value;\n if (current === value) {\n // nothing to do\n }\n else if (t === 'string') {\n // if a Text node already exists, it's faster to set its .data than set the parent.textContent\n if (current !== \"\" && typeof current === 'string') {\n current = parent.firstChild.data = value;\n }\n else {\n current = parent.textContent = value;\n }\n }\n else if (t === 'number') {\n value = value.toString();\n if (current !== \"\" && typeof current === 'string') {\n current = parent.firstChild.data = value;\n }\n else {\n current = parent.textContent = value;\n }\n }\n else if (value == null || t === 'boolean') { // null, undefined, true or false\n clear(parent);\n current = \"\";\n }\n else if (t === 'function') {\n S(function () {\n current = content(parent, value(), current);\n });\n }\n else if (value instanceof Node) {\n if (Array.isArray(current)) {\n if (current.length === 0) {\n parent.appendChild(value);\n }\n else if (current.length === 1) {\n parent.replaceChild(value, current[0]);\n }\n else {\n clear(parent);\n parent.appendChild(value);\n }\n }\n else if (current === \"\") {\n parent.appendChild(value);\n }\n else {\n parent.replaceChild(value, parent.firstChild);\n }\n current = value;\n }\n else if (Array.isArray(value)) {\n var array = normalizeIncomingArray([], value);\n if (array.length === 0) {\n clear(parent);\n }\n else {\n if (Array.isArray(current)) {\n if (current.length === 0) {\n appendNodes(parent, array, 0, array.length);\n }\n else {\n reconcileArrays(parent, current, array);\n }\n }\n else if (current === \"\") {\n appendNodes(parent, array, 0, array.length);\n }\n else {\n reconcileArrays(parent, [parent.firstChild], array);\n }\n }\n current = array;\n }\n else {\n throw new Error(\"content must be Node, stringable, or array of same\");\n }\n return current;\n}\nvar NOMATCH = -1, NOINSERT = -2;\nvar RECONCILE_ARRAY_BATCH = 0;\nvar RECONCILE_ARRAY_BITS = 16, RECONCILE_ARRAY_INC = 1 << RECONCILE_ARRAY_BITS, RECONCILE_ARRAY_MASK = RECONCILE_ARRAY_INC - 1;\n// reconcile the content of parent from ns to us\n// see ivi's excellent writeup of diffing arrays in a vdom library: \n// https://github.com/ivijs/ivi/blob/2c81ead934b9128e092cc2a5ef2d3cabc73cb5dd/packages/ivi/src/vdom/implementation.ts#L1187\n// this code isn't identical, since we're diffing real dom nodes to nodes-or-strings, \n// but the core methodology of trimming ends and reversals, matching nodes, then using\n// the longest increasing subsequence to minimize DOM ops is inspired by ivi.\nfunction reconcileArrays(parent, ns, us) {\n var ulen = us.length, \n // n = nodes, u = updates\n // ranges defined by min and max indices\n nmin = 0, nmax = ns.length - 1, umin = 0, umax = ulen - 1, \n // start nodes of ranges\n n = ns[nmin], u = us[umin], \n // end nodes of ranges\n nx = ns[nmax], ux = us[umax], \n // node, if any, just after ux, used for doing .insertBefore() to put nodes at end\n ul = nx.nextSibling, i, j, k, loop = true;\n // scan over common prefixes, suffixes, and simple reversals\n fixes: while (loop) {\n loop = false;\n // common prefix, u === n\n while (equable(u, n, umin, us)) {\n umin++;\n nmin++;\n if (umin > umax || nmin > nmax)\n break fixes;\n u = us[umin];\n n = ns[nmin];\n }\n // common suffix, ux === nx\n while (equable(ux, nx, umax, us)) {\n ul = nx;\n umax--;\n nmax--;\n if (umin > umax || nmin > nmax)\n break fixes;\n ux = us[umax];\n nx = ns[nmax];\n }\n // reversal u === nx, have to swap node forward\n while (equable(u, nx, umin, us)) {\n loop = true;\n parent.insertBefore(nx, n);\n umin++;\n nmax--;\n if (umin > umax || nmin > nmax)\n break fixes;\n u = us[umin];\n nx = ns[nmax];\n }\n // reversal ux === n, have to swap node back\n while (equable(ux, n, umax, us)) {\n loop = true;\n if (ul === null)\n parent.appendChild(n);\n else\n parent.insertBefore(n, ul);\n ul = n;\n umax--;\n nmin++;\n if (umin > umax || nmin > nmax)\n break fixes;\n ux = us[umax];\n n = ns[nmin];\n }\n }\n // if that covered all updates, just need to remove any remaining nodes and we're done\n if (umin > umax) {\n // remove any remaining nodes\n while (nmin <= nmax) {\n parent.removeChild(ns[nmax]);\n nmax--;\n }\n return;\n }\n // if that covered all current nodes, just need to insert any remaining updates and we're done\n if (nmin > nmax) {\n // insert any remaining nodes\n while (umin <= umax) {\n insertOrAppend(parent, us[umin], ul, umin, us);\n umin++;\n }\n return;\n }\n // simple cases don't apply, have to actually match up nodes and figure out minimum DOM ops\n // loop through nodes and mark them with a special property indicating their order\n // we'll then go through the updates and look for those properties\n // in case any of the updates have order properties left over from earlier runs, we \n // use the low bits of the order prop to record a batch identifier.\n // I'd much rather use a Map than a special property, but Maps of objects are really\n // slow currently, like only 100k get/set ops / second\n // for Text nodes, all that matters is their order, as they're easily, interchangeable\n // so we record their positions in ntext[]\n var ntext = [];\n // update global batch identifer\n RECONCILE_ARRAY_BATCH = (RECONCILE_ARRAY_BATCH + 1) % RECONCILE_ARRAY_INC;\n for (i = nmin, j = (nmin << RECONCILE_ARRAY_BITS) + RECONCILE_ARRAY_BATCH; i <= nmax; i++, j += RECONCILE_ARRAY_INC) {\n n = ns[i];\n // add or update special order property\n if (n.__surplus_order === undefined) {\n Object.defineProperty(n, '__surplus_order', { value: j, writable: true });\n }\n else {\n n.__surplus_order = j;\n }\n if (n instanceof Text) {\n ntext.push(i);\n }\n }\n // now loop through us, looking for the order property, otherwise recording NOMATCH\n var src = new Array(umax - umin + 1), utext = [], preserved = 0;\n for (i = umin; i <= umax; i++) {\n u = us[i];\n if (typeof u === 'string') {\n utext.push(i);\n src[i - umin] = NOMATCH;\n }\n else if ((j = u.__surplus_order) !== undefined && (j & RECONCILE_ARRAY_MASK) === RECONCILE_ARRAY_BATCH) {\n j >>= RECONCILE_ARRAY_BITS;\n src[i - umin] = j;\n ns[j] = null;\n preserved++;\n }\n else {\n src[i - umin] = NOMATCH;\n }\n }\n if (preserved === 0 && nmin === 0 && nmax === ns.length - 1) {\n // no nodes preserved, use fast clear and append\n clear(parent);\n while (umin <= umax) {\n insertOrAppend(parent, us[umin], null, umin, us);\n umin++;\n }\n return;\n }\n // find longest common sequence between ns and us, represented as the indices \n // of the longest increasing subsequence in src\n var lcs = longestPositiveIncreasingSubsequence(src);\n // we know we can preserve their order, so march them as NOINSERT\n for (i = 0; i < lcs.length; i++) {\n src[lcs[i]] = NOINSERT;\n }\n /*\n 0 1 2 3 4 5 6 7\n ns = [ n, n, t, n, n, n, t, n ]\n | / / /\n | / / /\n +------/---/-------/----+\n / / / |\n us = [ n, s, n, n, s, n, s, n ]\n src = [-1, -1, 4, 5, -1, 7, -1, 1 ]\n lis = [ 2, 3, 5]\n j\n utext = [ 1, 4, 6 ]\n i\n ntext = [ 2, 6 ]\n k\n */\n // replace strings in us with Text nodes, reusing Text nodes from ns when we can do so without moving them\n var utexti = 0, lcsj = 0, ntextk = 0;\n for (i = 0, j = 0, k = 0; i < utext.length; i++) {\n utexti = utext[i];\n // need to answer qeustion \"if utext[i] falls between two lcs nodes, is there an ntext between them which we can reuse?\"\n // first, find j such that lcs[j] is the first lcs node *after* utext[i]\n while (j < lcs.length && (lcsj = lcs[j]) < utexti - umin)\n j++;\n // now, find k such that ntext[k] is the first ntext *after* lcs[j-1] (or after start, if j === 0)\n while (k < ntext.length && (ntextk = ntext[k], j !== 0) && ntextk < src[lcs[j - 1]])\n k++;\n // if ntext[k] < lcs[j], then we know ntext[k] falls between lcs[j-1] (or start) and lcs[j] (or end)\n // that means we can re-use it without moving it\n if (k < ntext.length && (j === lcs.length || ntextk < src[lcsj])) {\n n = ns[ntextk];\n u = us[utexti];\n if (n.data !== u)\n n.data = u;\n ns[ntextk] = null;\n us[utexti] = n;\n src[utexti] = NOINSERT;\n k++;\n }\n else {\n // if we didn't find one to re-use, make a new Text node\n us[utexti] = document.createTextNode(us[utexti]);\n }\n }\n // remove stale nodes in ns\n while (nmin <= nmax) {\n n = ns[nmin];\n if (n !== null) {\n parent.removeChild(n);\n }\n nmin++;\n }\n // insert new nodes\n while (umin <= umax) {\n ux = us[umax];\n if (src[umax - umin] !== NOINSERT) {\n if (ul === null)\n parent.appendChild(ux);\n else\n parent.insertBefore(ux, ul);\n }\n ul = ux;\n umax--;\n }\n}\n// two nodes are \"equable\" if they are identical (===) or if we can make them the same, i.e. they're \n// Text nodes, which we can reuse with the new text\nfunction equable(u, n, i, us) {\n if (u === n) {\n return true;\n }\n else if (typeof u === 'string' && n instanceof Text) {\n if (n.data !== u)\n n.data = u;\n us[i] = n;\n return true;\n }\n else {\n return false;\n }\n}\nfunction appendNodes(parent, array, i, end) {\n var node;\n for (; i < end; i++) {\n node = array[i];\n if (node instanceof Node) {\n parent.appendChild(node);\n }\n else {\n node = array[i] = document.createTextNode(node);\n parent.appendChild(node);\n }\n }\n}\nfunction insertOrAppend(parent, node, marker, i, us) {\n if (typeof node === 'string') {\n node = us[i] = document.createTextNode(node);\n }\n if (marker === null)\n parent.appendChild(node);\n else\n parent.insertBefore(node, marker);\n}\nfunction normalizeIncomingArray(normalized, array) {\n for (var i = 0, len = array.length; i < len; i++) {\n var item = array[i];\n if (item instanceof Node) {\n normalized.push(item);\n }\n else if (item == null || item === true || item === false) { // matches null, undefined, true or false\n // skip\n }\n else if (Array.isArray(item)) {\n normalizeIncomingArray(normalized, item);\n }\n else if (typeof item === 'string') {\n normalized.push(item);\n }\n else {\n normalized.push(item.toString());\n }\n }\n return normalized;\n}\nfunction clear(node) {\n node.textContent = \"\";\n}\n// return an array of the indices of ns that comprise the longest increasing subsequence within ns\nfunction longestPositiveIncreasingSubsequence(ns) {\n var seq = [], is = [], l = -1, pre = new Array(ns.length);\n for (var i = 0, len = ns.length; i < len; i++) {\n var n = ns[i];\n if (n < 0)\n continue;\n var j = findGreatestIndexLEQ(seq, n);\n if (j !== -1)\n pre[i] = is[j];\n if (j === l) {\n l++;\n seq[l] = n;\n is[l] = i;\n }\n else if (n < seq[j + 1]) {\n seq[j + 1] = n;\n is[j + 1] = i;\n }\n }\n for (i = is[l]; l >= 0; i = pre[i], l--) {\n seq[l] = i;\n }\n return seq;\n}\nfunction findGreatestIndexLEQ(seq, n) {\n // invariant: lo is guaranteed to be index of a value <= n, hi to be >\n // therefore, they actually start out of range: (-1, last + 1)\n var lo = -1, hi = seq.length;\n // fast path for simple increasing sequences\n if (hi > 0 && seq[hi - 1] <= n)\n return hi - 1;\n while (hi - lo > 1) {\n var mid = Math.floor((lo + hi) / 2);\n if (seq[mid] > n) {\n hi = mid;\n }\n else {\n lo = mid;\n }\n }\n return lo;\n}\n","var svgNS = \"http://www.w3.org/2000/svg\";\nexport function createElement(tag, className, parent) {\n var el = document.createElement(tag);\n if (className)\n el.className = className;\n if (parent)\n parent.appendChild(el);\n return el;\n}\nexport function createSvgElement(tag, className, parent) {\n var el = document.createElementNS(svgNS, tag);\n if (className)\n el.setAttribute(\"class\", className);\n if (parent)\n parent.appendChild(el);\n return el;\n}\nexport function createComment(text, parent) {\n var comment = document.createComment(text);\n parent.appendChild(comment);\n return comment;\n}\nexport function createTextNode(text, parent) {\n var node = document.createTextNode(text);\n parent.appendChild(node);\n return node;\n}\nexport function setAttribute(node, name, value) {\n if (value === false || value === null || value === undefined)\n node.removeAttribute(name);\n else\n node.setAttribute(name, value);\n}\nexport function setAttributeNS(node, namespace, name, value) {\n if (value === false || value === null || value === undefined)\n node.removeAttributeNS(namespace, name);\n else\n node.setAttributeNS(namespace, name, value);\n}\n","import { setAttribute } from './dom';\nimport { getFieldData } from './fieldData';\nimport { setAttributeNS } from './index';\nexport function assign(a, b) {\n var props = Object.keys(b);\n for (var i = 0, len = props.length; i < len; i++) {\n var name = props[i];\n a[name] = b[name];\n }\n}\nexport function spread(node, obj, svg) {\n var props = Object.keys(obj);\n for (var i = 0, len = props.length; i < len; i++) {\n var name = props[i];\n setField(node, name, obj[name], svg);\n }\n}\nfunction setField(node, field, value, svg) {\n var _a = getFieldData(field, svg), name = _a[0], namespace = _a[1], flags = _a[2], type = flags & 3 /* Type */;\n if (type === 0 /* Property */) {\n if (namespace)\n node = node[namespace];\n node[name] = value;\n }\n else if (type === 1 /* Attribute */) {\n if (namespace)\n setAttributeNS(node, namespace, name, value);\n else\n setAttribute(node, name, value);\n }\n else if (type === 3 /* Assign */) {\n if (value && typeof value === 'object')\n assign(node.style, value);\n }\n}\n","var \n// pre-seed the caches with a few special cases, so we don't need to check for them in the common cases\nhtmlFieldCache = {\n // special props\n style: ['style', null, 3 /* Assign */],\n ref: ['ref', null, 2 /* Ignore */],\n fn: ['fn', null, 2 /* Ignore */],\n // attr compat\n class: ['className', null, 0 /* Property */],\n for: ['htmlFor', null, 0 /* Property */],\n \"accept-charset\": ['acceptCharset', null, 0 /* Property */],\n \"http-equiv\": ['httpEquiv', null, 0 /* Property */],\n // a few React oddities, mostly disagreeing about casing\n onDoubleClick: ['ondblclick', null, 0 /* Property */],\n spellCheck: ['spellcheck', null, 0 /* Property */],\n allowFullScreen: ['allowFullscreen', null, 0 /* Property */],\n autoCapitalize: ['autocapitalize', null, 0 /* Property */],\n autoFocus: ['autofocus', null, 0 /* Property */],\n autoPlay: ['autoplay', null, 0 /* Property */],\n // other\n // role is part of the ARIA spec but not caught by the aria- attr filter\n role: ['role', null, 1 /* Attribute */]\n}, svgFieldCache = {\n // special props\n style: ['style', null, 3 /* Assign */],\n ref: ['ref', null, 2 /* Ignore */],\n fn: ['fn', null, 2 /* Ignore */],\n // property compat\n className: ['class', null, 1 /* Attribute */],\n htmlFor: ['for', null, 1 /* Attribute */],\n tabIndex: ['tabindex', null, 1 /* Attribute */],\n // React compat\n onDoubleClick: ['ondblclick', null, 0 /* Property */],\n // attributes with eccentric casing - some SVG attrs are snake-cased, some camelCased\n allowReorder: ['allowReorder', null, 1 /* Attribute */],\n attributeName: ['attributeName', null, 1 /* Attribute */],\n attributeType: ['attributeType', null, 1 /* Attribute */],\n autoReverse: ['autoReverse', null, 1 /* Attribute */],\n baseFrequency: ['baseFrequency', null, 1 /* Attribute */],\n calcMode: ['calcMode', null, 1 /* Attribute */],\n clipPathUnits: ['clipPathUnits', null, 1 /* Attribute */],\n contentScriptType: ['contentScriptType', null, 1 /* Attribute */],\n contentStyleType: ['contentStyleType', null, 1 /* Attribute */],\n diffuseConstant: ['diffuseConstant', null, 1 /* Attribute */],\n edgeMode: ['edgeMode', null, 1 /* Attribute */],\n externalResourcesRequired: ['externalResourcesRequired', null, 1 /* Attribute */],\n filterRes: ['filterRes', null, 1 /* Attribute */],\n filterUnits: ['filterUnits', null, 1 /* Attribute */],\n gradientTransform: ['gradientTransform', null, 1 /* Attribute */],\n gradientUnits: ['gradientUnits', null, 1 /* Attribute */],\n kernelMatrix: ['kernelMatrix', null, 1 /* Attribute */],\n kernelUnitLength: ['kernelUnitLength', null, 1 /* Attribute */],\n keyPoints: ['keyPoints', null, 1 /* Attribute */],\n keySplines: ['keySplines', null, 1 /* Attribute */],\n keyTimes: ['keyTimes', null, 1 /* Attribute */],\n lengthAdjust: ['lengthAdjust', null, 1 /* Attribute */],\n limitingConeAngle: ['limitingConeAngle', null, 1 /* Attribute */],\n markerHeight: ['markerHeight', null, 1 /* Attribute */],\n markerUnits: ['markerUnits', null, 1 /* Attribute */],\n maskContentUnits: ['maskContentUnits', null, 1 /* Attribute */],\n maskUnits: ['maskUnits', null, 1 /* Attribute */],\n numOctaves: ['numOctaves', null, 1 /* Attribute */],\n pathLength: ['pathLength', null, 1 /* Attribute */],\n patternContentUnits: ['patternContentUnits', null, 1 /* Attribute */],\n patternTransform: ['patternTransform', null, 1 /* Attribute */],\n patternUnits: ['patternUnits', null, 1 /* Attribute */],\n pointsAtX: ['pointsAtX', null, 1 /* Attribute */],\n pointsAtY: ['pointsAtY', null, 1 /* Attribute */],\n pointsAtZ: ['pointsAtZ', null, 1 /* Attribute */],\n preserveAlpha: ['preserveAlpha', null, 1 /* Attribute */],\n preserveAspectRatio: ['preserveAspectRatio', null, 1 /* Attribute */],\n primitiveUnits: ['primitiveUnits', null, 1 /* Attribute */],\n refX: ['refX', null, 1 /* Attribute */],\n refY: ['refY', null, 1 /* Attribute */],\n repeatCount: ['repeatCount', null, 1 /* Attribute */],\n repeatDur: ['repeatDur', null, 1 /* Attribute */],\n requiredExtensions: ['requiredExtensions', null, 1 /* Attribute */],\n requiredFeatures: ['requiredFeatures', null, 1 /* Attribute */],\n specularConstant: ['specularConstant', null, 1 /* Attribute */],\n specularExponent: ['specularExponent', null, 1 /* Attribute */],\n spreadMethod: ['spreadMethod', null, 1 /* Attribute */],\n startOffset: ['startOffset', null, 1 /* Attribute */],\n stdDeviation: ['stdDeviation', null, 1 /* Attribute */],\n stitchTiles: ['stitchTiles', null, 1 /* Attribute */],\n surfaceScale: ['surfaceScale', null, 1 /* Attribute */],\n systemLanguage: ['systemLanguage', null, 1 /* Attribute */],\n tableValues: ['tableValues', null, 1 /* Attribute */],\n targetX: ['targetX', null, 1 /* Attribute */],\n targetY: ['targetY', null, 1 /* Attribute */],\n textLength: ['textLength', null, 1 /* Attribute */],\n viewBox: ['viewBox', null, 1 /* Attribute */],\n viewTarget: ['viewTarget', null, 1 /* Attribute */],\n xChannelSelector: ['xChannelSelector', null, 1 /* Attribute */],\n yChannelSelector: ['yChannelSelector', null, 1 /* Attribute */],\n zoomAndPan: ['zoomAndPan', null, 1 /* Attribute */],\n};\nvar attributeOnlyRx = /-/, deepAttrRx = /^style-/, isAttrOnlyField = function (field) { return attributeOnlyRx.test(field) && !deepAttrRx.test(field); }, propOnlyRx = /^(on|style)/, isPropOnlyField = function (field) { return propOnlyRx.test(field); }, propPartRx = /[a-z][A-Z]/g, getAttrName = function (field) { return field.replace(propPartRx, function (m) { return m[0] + '-' + m[1]; }).toLowerCase(); }, jsxEventPropRx = /^on[A-Z]/, attrPartRx = /\\-(?:[a-z]|$)/g, getPropName = function (field) {\n var prop = field.replace(attrPartRx, function (m) { return m.length === 1 ? '' : m[1].toUpperCase(); });\n return jsxEventPropRx.test(prop) ? prop.toLowerCase() : prop;\n}, deepPropRx = /^(style)([A-Z])/, buildPropData = function (prop) {\n var m = deepPropRx.exec(prop);\n return m ? [m[2].toLowerCase() + prop.substr(m[0].length), m[1], 0 /* Property */] : [prop, null, 0 /* Property */];\n}, attrNamespaces = {\n xlink: \"http://www.w3.org/1999/xlink\",\n xml: \"http://www.w3.org/XML/1998/namespace\",\n}, attrNamespaceRx = new RegExp(\"^(\" + Object.keys(attrNamespaces).join('|') + \")-(.*)\"), buildAttrData = function (attr) {\n var m = attrNamespaceRx.exec(attr);\n return m ? [m[2], attrNamespaces[m[1]], 1 /* Attribute */] : [attr, null, 1 /* Attribute */];\n};\nexport var getFieldData = function (field, svg) {\n var cache = svg ? svgFieldCache : htmlFieldCache, cached = cache[field];\n if (cached)\n return cached;\n var attr = svg && !isPropOnlyField(field)\n || !svg && isAttrOnlyField(field), name = attr ? getAttrName(field) : getPropName(field);\n if (name !== field && (cached = cache[name]))\n return cached;\n var data = attr ? buildAttrData(name) : buildPropData(name);\n return cache[field] = data;\n};\n","(function (global, factory) {\r\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\r\n typeof define === 'function' && define.amd ? define(factory) :\r\n (global.S = factory());\r\n}(this, (function () { 'use strict';\r\n\r\n // Public interface\r\n var S = function S(fn, value) {\r\n var node = new ComputationNode(fn, value);\r\n return function computation() {\r\n return node.current();\r\n };\r\n };\r\n // compatibility with commonjs systems that expect default export to be at require('s.js').default rather than just require('s-js')\r\n Object.defineProperty(S, 'default', { value: S });\r\n S.root = function root(fn) {\r\n var owner = Owner, root = fn.length === 0 ? UNOWNED : new ComputationNode(null, null), result = undefined, disposer = fn.length === 0 ? null : function _dispose() {\r\n if (RunningClock !== null) {\r\n RootClock.disposes.add(root);\r\n }\r\n else {\r\n dispose(root);\r\n }\r\n };\r\n Owner = root;\r\n if (RunningClock === null) {\r\n result = topLevelRoot(fn, disposer, owner);\r\n }\r\n else {\r\n result = disposer === null ? fn() : fn(disposer);\r\n Owner = owner;\r\n }\r\n return result;\r\n };\r\n function topLevelRoot(fn, disposer, owner) {\r\n try {\r\n return disposer === null ? fn() : fn(disposer);\r\n }\r\n finally {\r\n Owner = owner;\r\n }\r\n }\r\n S.on = function on(ev, fn, seed, onchanges) {\r\n if (Array.isArray(ev))\r\n ev = callAll(ev);\r\n onchanges = !!onchanges;\r\n return S(on, seed);\r\n function on(value) {\r\n var running = RunningNode;\r\n ev();\r\n if (onchanges)\r\n onchanges = false;\r\n else {\r\n RunningNode = null;\r\n value = fn(value);\r\n RunningNode = running;\r\n }\r\n return value;\r\n }\r\n };\r\n function callAll(ss) {\r\n return function all() {\r\n for (var i = 0; i < ss.length; i++)\r\n ss[i]();\r\n };\r\n }\r\n S.effect = function effect(fn, value) {\r\n new ComputationNode(fn, value);\r\n };\r\n S.data = function data(value) {\r\n var node = new DataNode(value);\r\n return function data(value) {\r\n if (arguments.length === 0) {\r\n return node.current();\r\n }\r\n else {\r\n return node.next(value);\r\n }\r\n };\r\n };\r\n S.value = function value(current, eq) {\r\n var data = S.data(current), age = -1;\r\n return function value(update) {\r\n if (arguments.length === 0) {\r\n return data();\r\n }\r\n else {\r\n var same = eq ? eq(current, update) : current === update;\r\n if (!same) {\r\n var time = RootClock.time;\r\n if (age === time)\r\n throw new Error(\"conflicting values: \" + update + \" is not the same as \" + current);\r\n age = time;\r\n current = update;\r\n data(update);\r\n }\r\n return update;\r\n }\r\n };\r\n };\r\n S.freeze = function freeze(fn) {\r\n var result = undefined;\r\n if (RunningClock !== null) {\r\n result = fn();\r\n }\r\n else {\r\n RunningClock = RootClock;\r\n RunningClock.changes.reset();\r\n try {\r\n result = fn();\r\n event();\r\n }\r\n finally {\r\n RunningClock = null;\r\n }\r\n }\r\n return result;\r\n };\r\n S.sample = function sample(fn) {\r\n var result, running = RunningNode;\r\n if (running !== null) {\r\n RunningNode = null;\r\n result = fn();\r\n RunningNode = running;\r\n }\r\n else {\r\n result = fn();\r\n }\r\n return result;\r\n };\r\n S.cleanup = function cleanup(fn) {\r\n if (Owner !== null) {\r\n if (Owner.cleanups === null)\r\n Owner.cleanups = [fn];\r\n else\r\n Owner.cleanups.push(fn);\r\n }\r\n else {\r\n console.warn(\"cleanups created without a root or parent will never be run\");\r\n }\r\n };\r\n // experimental : exposing node constructors and some state\r\n S.makeDataNode = function makeDataNode(value) {\r\n return new DataNode(value);\r\n };\r\n S.makeComputationNode = function makeComputationNode(fn, seed) {\r\n return new ComputationNode(fn, seed);\r\n };\r\n S.isFrozen = function isFrozen() {\r\n return RunningClock !== null;\r\n };\r\n S.isListening = function isListening() {\r\n return RunningNode !== null;\r\n };\r\n // Internal implementation\r\n /// Graph classes and operations\r\n var Clock = /** @class */ (function () {\r\n function Clock() {\r\n this.time = 0;\r\n this.changes = new Queue(); // batched changes to data nodes\r\n this.updates = new Queue(); // computations to update\r\n this.disposes = new Queue(); // disposals to run after current batch of updates finishes\r\n }\r\n return Clock;\r\n }());\r\n var RootClockProxy = {\r\n time: function () { return RootClock.time; }\r\n };\r\n var DataNode = /** @class */ (function () {\r\n function DataNode(value) {\r\n this.value = value;\r\n this.pending = NOTPENDING;\r\n this.log = null;\r\n }\r\n DataNode.prototype.current = function () {\r\n if (RunningNode !== null) {\r\n logDataRead(this, RunningNode);\r\n }\r\n return this.value;\r\n };\r\n DataNode.prototype.next = function (value) {\r\n if (RunningClock !== null) {\r\n if (this.pending !== NOTPENDING) { // value has already been set once, check for conflicts\r\n if (value !== this.pending) {\r\n throw new Error(\"conflicting changes: \" + value + \" !== \" + this.pending);\r\n }\r\n }\r\n else { // add to list of changes\r\n this.pending = value;\r\n RootClock.changes.add(this);\r\n }\r\n }\r\n else { // not batching, respond to change now\r\n if (this.log !== null) {\r\n this.pending = value;\r\n RootClock.changes.add(this);\r\n event();\r\n }\r\n else {\r\n this.value = value;\r\n }\r\n }\r\n return value;\r\n };\r\n DataNode.prototype.clock = function () {\r\n return RootClockProxy;\r\n };\r\n return DataNode;\r\n }());\r\n var ComputationNode = /** @class */ (function () {\r\n function ComputationNode(fn, value) {\r\n this.state = CURRENT;\r\n this.source1 = null;\r\n this.source1slot = 0;\r\n this.sources = null;\r\n this.sourceslots = null;\r\n this.log = null;\r\n this.owned = null;\r\n this.cleanups = null;\r\n this.fn = fn;\r\n this.value = value;\r\n this.age = RootClock.time;\r\n if (fn === null)\r\n return;\r\n var owner = Owner, running = RunningNode;\r\n if (owner === null)\r\n console.warn(\"computations created without a root or parent will never be disposed\");\r\n Owner = RunningNode = this;\r\n if (RunningClock === null) {\r\n toplevelComputation(this);\r\n }\r\n else {\r\n this.value = this.fn(this.value);\r\n }\r\n if (owner && owner !== UNOWNED) {\r\n if (owner.owned === null)\r\n owner.owned = [this];\r\n else\r\n owner.owned.push(this);\r\n }\r\n Owner = owner;\r\n RunningNode = running;\r\n }\r\n ComputationNode.prototype.current = function () {\r\n if (RunningNode !== null) {\r\n if (this.age === RootClock.time) {\r\n if (this.state === RUNNING)\r\n throw new Error(\"circular dependency\");\r\n else\r\n updateNode(this); // checks for state === STALE internally, so don't need to check here\r\n }\r\n logComputationRead(this, RunningNode);\r\n }\r\n return this.value;\r\n };\r\n ComputationNode.prototype.clock = function () {\r\n return RootClockProxy;\r\n };\r\n return ComputationNode;\r\n }());\r\n var Log = /** @class */ (function () {\r\n function Log() {\r\n this.node1 = null;\r\n this.node1slot = 0;\r\n this.nodes = null;\r\n this.nodeslots = null;\r\n }\r\n return Log;\r\n }());\r\n var Queue = /** @class */ (function () {\r\n function Queue() {\r\n this.items = [];\r\n this.count = 0;\r\n }\r\n Queue.prototype.reset = function () {\r\n this.count = 0;\r\n };\r\n Queue.prototype.add = function (item) {\r\n this.items[this.count++] = item;\r\n };\r\n Queue.prototype.run = function (fn) {\r\n var items = this.items;\r\n for (var i = 0; i < this.count; i++) {\r\n fn(items[i]);\r\n items[i] = null;\r\n }\r\n this.count = 0;\r\n };\r\n return Queue;\r\n }());\r\n // Constants\r\n var NOTPENDING = {}, CURRENT = 0, STALE = 1, RUNNING = 2;\r\n // \"Globals\" used to keep track of current system state\r\n var RootClock = new Clock(), RunningClock = null, // currently running clock \r\n RunningNode = null, // currently running computation\r\n Owner = null, // owner for new computations\r\n UNOWNED = new ComputationNode(null, null);\r\n // Functions\r\n function logRead(from, to) {\r\n var fromslot, toslot = to.source1 === null ? -1 : to.sources === null ? 0 : to.sources.length;\r\n if (from.node1 === null) {\r\n from.node1 = to;\r\n from.node1slot = toslot;\r\n fromslot = -1;\r\n }\r\n else if (from.nodes === null) {\r\n from.nodes = [to];\r\n from.nodeslots = [toslot];\r\n fromslot = 0;\r\n }\r\n else {\r\n fromslot = from.nodes.length;\r\n from.nodes.push(to);\r\n from.nodeslots.push(toslot);\r\n }\r\n if (to.source1 === null) {\r\n to.source1 = from;\r\n to.source1slot = fromslot;\r\n }\r\n else if (to.sources === null) {\r\n to.sources = [from];\r\n to.sourceslots = [fromslot];\r\n }\r\n else {\r\n to.sources.push(from);\r\n to.sourceslots.push(fromslot);\r\n }\r\n }\r\n function logDataRead(data, to) {\r\n if (data.log === null)\r\n data.log = new Log();\r\n logRead(data.log, to);\r\n }\r\n function logComputationRead(node, to) {\r\n if (node.log === null)\r\n node.log = new Log();\r\n logRead(node.log, to);\r\n }\r\n function event() {\r\n // b/c we might be under a top level S.root(), have to preserve current root\r\n var owner = Owner;\r\n RootClock.updates.reset();\r\n RootClock.time++;\r\n try {\r\n run(RootClock);\r\n }\r\n finally {\r\n RunningClock = RunningNode = null;\r\n Owner = owner;\r\n }\r\n }\r\n function toplevelComputation(node) {\r\n RunningClock = RootClock;\r\n RootClock.changes.reset();\r\n RootClock.updates.reset();\r\n try {\r\n node.value = node.fn(node.value);\r\n if (RootClock.changes.count > 0 || RootClock.updates.count > 0) {\r\n RootClock.time++;\r\n run(RootClock);\r\n }\r\n }\r\n finally {\r\n RunningClock = Owner = RunningNode = null;\r\n }\r\n }\r\n function run(clock) {\r\n var running = RunningClock, count = 0;\r\n RunningClock = clock;\r\n clock.disposes.reset();\r\n // for each batch ...\r\n while (clock.changes.count !== 0 || clock.updates.count !== 0 || clock.disposes.count !== 0) {\r\n if (count > 0) // don't tick on first run, or else we expire already scheduled updates\r\n clock.time++;\r\n clock.changes.run(applyDataChange);\r\n clock.updates.run(updateNode);\r\n clock.disposes.run(dispose);\r\n // if there are still changes after excessive batches, assume runaway \r\n if (count++ > 1e5) {\r\n throw new Error(\"Runaway clock detected\");\r\n }\r\n }\r\n RunningClock = running;\r\n }\r\n function applyDataChange(data) {\r\n data.value = data.pending;\r\n data.pending = NOTPENDING;\r\n if (data.log)\r\n markComputationsStale(data.log);\r\n }\r\n function markComputationsStale(log) {\r\n var node1 = log.node1, nodes = log.nodes;\r\n // mark all downstream nodes stale which haven't been already\r\n if (node1 !== null)\r\n markNodeStale(node1);\r\n if (nodes !== null) {\r\n for (var i = 0, len = nodes.length; i < len; i++) {\r\n markNodeStale(nodes[i]);\r\n }\r\n }\r\n }\r\n function markNodeStale(node) {\r\n var time = RootClock.time;\r\n if (node.age < time) {\r\n node.age = time;\r\n node.state = STALE;\r\n RootClock.updates.add(node);\r\n if (node.owned !== null)\r\n markOwnedNodesForDisposal(node.owned);\r\n if (node.log !== null)\r\n markComputationsStale(node.log);\r\n }\r\n }\r\n function markOwnedNodesForDisposal(owned) {\r\n for (var i = 0; i < owned.length; i++) {\r\n var child = owned[i];\r\n child.age = RootClock.time;\r\n child.state = CURRENT;\r\n if (child.owned !== null)\r\n markOwnedNodesForDisposal(child.owned);\r\n }\r\n }\r\n function updateNode(node) {\r\n if (node.state === STALE) {\r\n var owner = Owner, running = RunningNode;\r\n Owner = RunningNode = node;\r\n node.state = RUNNING;\r\n cleanup(node, false);\r\n node.value = node.fn(node.value);\r\n node.state = CURRENT;\r\n Owner = owner;\r\n RunningNode = running;\r\n }\r\n }\r\n function cleanup(node, final) {\r\n var source1 = node.source1, sources = node.sources, sourceslots = node.sourceslots, cleanups = node.cleanups, owned = node.owned, i, len;\r\n if (cleanups !== null) {\r\n for (i = 0; i < cleanups.length; i++) {\r\n cleanups[i](final);\r\n }\r\n node.cleanups = null;\r\n }\r\n if (owned !== null) {\r\n for (i = 0; i < owned.length; i++) {\r\n dispose(owned[i]);\r\n }\r\n node.owned = null;\r\n }\r\n if (source1 !== null) {\r\n cleanupSource(source1, node.source1slot);\r\n node.source1 = null;\r\n }\r\n if (sources !== null) {\r\n for (i = 0, len = sources.length; i < len; i++) {\r\n cleanupSource(sources.pop(), sourceslots.pop());\r\n }\r\n }\r\n }\r\n function cleanupSource(source, slot) {\r\n var nodes = source.nodes, nodeslots = source.nodeslots, last, lastslot;\r\n if (slot === -1) {\r\n source.node1 = null;\r\n }\r\n else {\r\n last = nodes.pop();\r\n lastslot = nodeslots.pop();\r\n if (slot !== nodes.length) {\r\n nodes[slot] = last;\r\n nodeslots[slot] = lastslot;\r\n if (lastslot === -1) {\r\n last.source1slot = slot;\r\n }\r\n else {\r\n last.sourceslots[lastslot] = slot;\r\n }\r\n }\r\n }\r\n }\r\n function dispose(node) {\r\n node.fn = null;\r\n node.log = null;\r\n cleanup(node, true);\r\n }\r\n\r\n return S;\r\n\r\n})));\r\n"],"names":["Surplus","S","Object","prototype","__proto__","__defineGetter__","__definSetter__","__lookupGetter__","__lookupSetter__","root","state","filter","value","sortBy","tbody","document","getElementById","assert","HTMLTableSectionElement","columnheadersRow","HTMLTableRowElement","filterInput","HTMLInputElement","handleFilterChange","addEventListener","filterInputReset","HTMLButtonElement","effect","style","display","columnMap","columns","isColumnId","x","children","th","HTMLTableCellElement","button","querySelector","id","column","freeze","push","rows","tr","row","td","headers","dataset","JSON","parse","isSortableValue","sorted","slice","sort","a","b","localeCompareSortable","order","filterRegex","exprs","trim","split","length","RegExp","map","escapeRegExp","e","join","s","replace","filtered","regex","result","col","mergeMatchResult","fuzzyMatchSortable","includes","__current","parentNode","HTMLElement","sortedBy","content","r","Array","from","childNodes","registeredRegions","querySelectorAll","reg","HTMLSpanElement","text","textContent","showing","replaceChildren","cursor","match","exec","index","sortRules","ascending","descending","none","status","prev","setAttribute","getAttribute","prevOrder","localeCompare","i","lastIndex","isArray","msg","Error"],"version":3,"file":"missions-table.js.map","sourceRoot":"missions-table/"}