!function(e){vart={};functionn(o){if(t[o])returnt[o].exports;varr=t[o]={i:o,l:!1,exports:{}};returne[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varo=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varrine)n.d(o,r,function(t){returne[t]}.bind(null,r));returno},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);varo=function(e,t){varn=newa(e,t);returnfunction(){returnn.current()}};Object.defineProperty(o,"default",{value:o});varr=o;o.root=function(e){vart=m,n=0===e.length?y:newa(null,null),o=void0,r=0===e.length?null:function(){null!==g?h.disposes.add(n):O(n)};returnm=n,null===g?o=function(e,t,n){try{returnnull===t?e():e(t)}finally{m=n}}(e,r,t):(o=null===r?e():e(r),m=t),o},o.on=function(e,t,n,r){varl;returnArray.isArray(e)&&(l=e,e=function(){for(vare=0;e<l.length;e++)l[e]()}),r=!!r,o(i,n);functioni(n){varo=v;returne(),r?r=!1:(v=null,n=t(n),v=o),n}},o.effect=function(e,t){newa(e,t)},o.data=function(e){vart=news(e);returnfunction(e){return0===arguments.length?t.current():t.next(e)}},o.value=function(e,t){varn=o.data(e),r=-1;returnfunction(o){if(0===arguments.length)returnn();if(!(t?t(e,o):e===o)){varl=h.time;if(r===l)thrownewError("conflicting values: "+o+" is not the same as "+e);r=l,e=o,n(o)}returno}},o.freeze=function(e){vart=void0;if(null!==g)t=e();else{(g=h).changes.reset();try{t=e(),S()}finally{g=null}}returnt},o.sample=function(e){vart,n=v;returnnull!==n?(v=null,t=e(),v=n):t=e(),t},o.cleanup=function(e){null!==m?null===m.cleanups?m.cleanups=[e]:m.cleanups.push(e):console.warn("cleanups created without a root or parent will never be run")},o.makeDataNode=function(e){returnnews(e)},o.makeComputationNode=function(e,t){returnnewa(e,t)},o.isFrozen=function(){returnnull!==g},o.isListening=function(){returnnull!==v};varl=function(){returnfunction(){this.time=0,this.changes=newc,this.updates=newc,this.disposes=newc}}(),i={time:function(){returnh.time}},s=function(){functione(e){this.value=e,this.pending=d,this.log=null}returne.prototype.current=function(){returnnull!==v&&function(e,t){null===e.log&&(e.log=newu);x(e.log,t)}(this,v),this.value},e.prototype.next=function(e){if(null!==g)if(this.pending!==d){if(e!==this.pending)thrownewError("conflicting changes: "+e+" !== "+this.pending)}elsethis.pending=e,h.changes.add(this);elsenull!==this.log?(this.pending=e,h.changes.add(this),S()):this.value=e;returne},e.prototype.clock=function(){returni},e}(),a=function(){functione(e,t){if(this.state=f,this.source1=null,this.source1slot=0,this.sources=null,this.sourceslots=null,this.log=null,this.owned=null,this.cleanups=null,this.fn=e,this.value=t,this.age=h.time,null!==e){varn=m,o=v;null===n&&console.warn("computations created without a root or parent will never be disposed"),m=v=this,null===g?function(e){g=h,h.changes.reset(),h.updates.reset();try{e.value=e.fn(e.value),(h.changes.count>0||h.updates.count>0)&&(h.time++,C(h))}finally{g=m=v=null}}(this):this.value=this.fn(this.value),n&&n!==y&&(null===n.owned?n.owned=[this]:n.owned.push(this)),m=n,v=o}}returne.prototype.current=function(){if(null!==v){if(this.age===h.time){if(this.state===p)thrownewError("circular dependency");N(this)}!function(e,t){null===e.log&&(e.log=newu);x(e.log,t)}(this,v)}returnthis.value},e.prototype.clock=function(){returni},e}(),u=function(){returnfunction(){this.node1=null,this.node1slot=0,this.nodes=null,this.nodeslots=null}}(),c=function(){functione(){this.items=[],thi