active-data
Version:
Reactive data manager, inspired by MobX. Automatically detects associated data and perform updates to your views or everything dependent on that data when it changes. Implemented with js Proxy objects
2 lines • 37.3 kB
JavaScript
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.activeData=n():t.activeData=n()}("undefined"!=typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=61)}([function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(23)("wks"),o=e(17),i=e(4).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(0);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(4),o=e(12),i=e(10),u=e(9),c=e(11),a=function(t,n,e){var f,s,l,p,v=t&a.F,h=t&a.G,y=t&a.S,d=t&a.P,g=t&a.B,b=h?r:y?r[n]||(r[n]={}):(r[n]||{}).prototype,m=h?o:o[n]||(o[n]={}),S=m.prototype||(m.prototype={});for(f in h&&(e=n),e)l=((s=!v&&b&&void 0!==b[f])?b:e)[f],p=g&&s?c(l,r):d&&"function"==typeof l?c(Function.call,l):l,b&&u(b,f,l,t&a.U),m[f]!=l&&i(m,f,p),d&&S[f]!=l&&(S[f]=l)};r.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){var r=e(2),o=e(42),i=e(22),u=Object.defineProperty;n.f=e(6)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){t.exports=!e(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4),o=e(10),i=e(7),u=e(17)("src"),c=e(65),a=(""+c).split("toString");e(12).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var f="function"==typeof e;f&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(f&&(i(e,u)||o(e,u,t[n]?""+t[n]:a.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,n,e){var r=e(5),o=e(13);t.exports=e(6)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(64);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(31),o=e(25);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(52),o=e(34);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(0);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n,e){var r=e(25);t.exports=function(t){return Object(r(t))}},function(t,n){t.exports={}},function(t,n,e){var r=e(28),o=e(13),i=e(14),u=e(22),c=e(7),a=e(42),f=Object.getOwnPropertyDescriptor;n.f=e(6)?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(17)("meta"),o=e(0),i=e(7),u=e(5).f,c=0,a=Object.isExtensible||function(){return!0},f=!e(8)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[r].i},getWeak:function(t,n){if(!i(t,r)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!i(t,r)&&s(t),t}}},function(t,n,e){var r=e(0);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(12),o=e(4),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(24)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!1},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(30),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(5).f,o=e(7),i=e(1)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(2),o=e(79),i=e(34),u=e(33)("IE_PROTO"),c=function(){},a=function(){var t,n=e(43)("iframe"),r=i.length;for(n.style.display="none",e(80).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(23)("keys"),o=e(17);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(9);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(11),o=e(44),i=e(45),u=e(2),c=e(26),a=e(46),f={},s={};(n=t.exports=function(t,n,e,l,p){var v,h,y,d,g=p?function(){return t}:a(t),b=r(e,l,n?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(v=c(t.length);v>m;m++)if((d=n?b(u(h=t[m])[0],h[1]):b(t[m]))===f||d===s)return d}else for(y=g.call(t);!(h=y.next()).done;)if((d=o(y,b,h.value,n))===f||d===s)return d}).BREAK=f,n.RETURN=s},function(t,n,e){"use strict";var r=e(24),o=e(3),i=e(9),u=e(10),c=e(19),a=e(81),f=e(29),s=e(39),l=e(1)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,n,e,h,y,d,g){a(e,n,h);var b,m,S,x=function(t){if(!p&&t in k)return k[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",O="values"==y,_=!1,k=t.prototype,j=k[l]||k["@@iterator"]||y&&k[y],T=j||x(y),E=y?O?x("entries"):T:void 0,P="Array"==n&&k.entries||j;if(P&&(S=s(P.call(new t)))!==Object.prototype&&S.next&&(f(S,w,!0),r||"function"==typeof S[l]||u(S,l,v)),O&&j&&"values"!==j.name&&(_=!0,T=function(){return j.call(this)}),r&&!g||!p&&!_&&k[l]||u(k,l,T),c[n]=T,c[w]=v,y)if(b={values:O?T:x("values"),keys:d?T:x("keys"),entries:E},g)for(m in b)m in k||i(k,m,b[m]);else o(o.P+o.F*(p||_),n,b);return b}},function(t,n,e){var r=e(7),o=e(18),i=e(33)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){"use strict";var r=e(4),o=e(3),i=e(9),u=e(35),c=e(21),a=e(37),f=e(36),s=e(0),l=e(8),p=e(47),v=e(29),h=e(83);t.exports=function(t,n,e,y,d,g){var b=r[t],m=b,S=d?"set":"add",x=m&&m.prototype,w={},O=function(t){var n=x[t];i(x,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof m&&(g||x.forEach&&!l(function(){(new m).entries().next()}))){var _=new m,k=_[S](g?{}:-0,1)!=_,j=l(function(){_.has(1)}),T=p(function(t){new m(t)}),E=!g&&l(function(){for(var t=new m,n=5;n--;)t[S](n,n);return!t.has(-0)});T||((m=n(function(n,e){f(n,m,t);var r=h(new b,n,m);return null!=e&&a(e,d,r[S],r),r})).prototype=x,x.constructor=m),(j||E)&&(O("delete"),O("has"),d&&O("get")),(E||k)&&O(S),g&&x.clear&&delete x.clear}else m=y.getConstructor(n,t,d,S),u(m.prototype,e),c.NEED=!0;return v(m,t),w[t]=m,o(o.G+o.W+o.F*(m!=b),w),g||y.setStrong(m,t,d),m}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){t.exports=!e(6)&&!e(8)(function(){return 7!=Object.defineProperty(e(43)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(0),o=e(4).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(2);t.exports=function(t,n,e,o){try{return o?n(r(e)[0],e[1]):n(e)}catch(n){var i=t.return;throw void 0!==i&&r(i.call(t)),n}}},function(t,n,e){var r=e(19),o=e(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,n,e){var r=e(67),o=e(1)("iterator"),i=e(19);t.exports=e(12).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,n,e){var r=e(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:e=!0}},i[r]=function(){return u},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(2);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(14),o=e(26),i=e(73);t.exports=function(t){return function(n,e,u){var c,a=r(n),f=o(a.length),s=i(u,f);if(t&&e!=e){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},function(t,n,e){var r=e(1)("unscopables"),o=Array.prototype;null==o[r]&&e(10)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,n,e){"use strict";var r=e(5).f,o=e(32),i=e(35),u=e(11),c=e(36),a=e(37),f=e(38),s=e(53),l=e(82),p=e(6),v=e(21).fastKey,h=e(16),y=p?"_s":"size",d=function(t,n){var e,r=v(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,f){var s=t(function(t,r){c(t,s,n,"_i"),t._t=n,t._i=o(null),t._f=void 0,t._l=void 0,t[y]=0,null!=r&&a(r,e,t[f],t)});return i(s.prototype,{clear:function(){for(var t=h(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var e=h(this,n),r=d(e,t);if(r){var o=r.n,i=r.p;delete e._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),e._f==r&&(e._f=o),e._l==r&&(e._l=i),e[y]--}return!!r},forEach:function(t){h(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!d(h(this,n),t)}}),p&&r(s.prototype,"size",{get:function(){return h(this,n)[y]}}),s},def:function(t,n,e){var r,o,i=d(t,n);return i?i.v=e:(t._l=i={i:o=v(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[y]++,"F"!==o&&(t._i[o]=i)),t},getEntry:d,setStrong:function(t,n,e){f(t,n,function(t,e){this._t=h(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))},e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){var r=e(7),o=e(14),i=e(49)(!1),u=e(33)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);for(;n.length>a;)r(c,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(15),o=e(41),i=e(28),u=e(18),c=e(31),a=Object.assign;t.exports=!a||e(8)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=a({},t)[e]||Object.keys(a({},n)).join("")!=r})?function(t,n){for(var e=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,v=c(arguments[f++]),h=s?r(v).concat(s(v)):r(v),y=h.length,d=0;y>d;)l.call(v,p=h[d++])&&(e[p]=v[p]);return e}:a},function(t,n,e){var r=e(4),o=e(12),i=e(24),u=e(56),c=e(5).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(1)},function(t,n,e){var r=e(27);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(52),o=e(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){"use strict";var r=e(50),o=e(53),i=e(19),u=e(14);t.exports=e(38)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(11),o=e(31),i=e(18),u=e(26),c=e(99);t.exports=function(t,n){var e=1==t,a=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l,v=n||c;return function(n,c,h){for(var y,d,g=i(n),b=o(g),m=r(c,h,3),S=u(b.length),x=0,w=e?v(n,S):a?v(n,0):void 0;S>x;x++)if((p||x in b)&&(d=m(y=b[x],x,g),t))if(e)w[x]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return x;case 2:w.push(y)}else if(s)return!1;return l?-1:f||s?s:w}}},function(t,n,e){"use strict";e.r(n),function(t){e.d(n,"Manager",function(){return f}),e.d(n,"observable",function(){return s}),e.d(n,"reaction",function(){return l}),e.d(n,"computed",function(){return p}),e.d(n,"updatable",function(){return v});e(63),e(68),e(70),e(71),e(72),e(74),e(78),e(85),e(86),e(87),e(88),e(90),e(91),e(92),e(95),e(59),e(96),e(98);function r(t){return function(t){if(Array.isArray(t)){for(var n=0,e=new Array(t.length);n<t.length;n++)e[n]=t[n];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=new WeakMap,c=function(t){return u.set(t,{})},a=function(t){return u.get(t)},f=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t);c(this);var e=a(this);e.gen=0,e.intentToRun=0,e.dataSourceKey=Symbol("dataSource"),e.observables=new WeakMap,e.options={enabled:!0,immediateReaction:!1,maxIterations:10,watchKey:"$$watch",watchDeepKey:"$$watchDeep",afterRun:null,timeLimit:50,getTime:"undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()}},e.callStack=[],e.reactionsToUpdate=new Set,this.setOptions(n),this.makeObservable=this.makeObservable.bind(this),this.makeReaction=this.makeReaction.bind(this),this.makeComputed=this.makeComputed.bind(this),this.makeUpdatable=this.makeUpdatable.bind(this),this.mapProperties=this.mapProperties.bind(this),this.isObservable=this.isObservable.bind(this),this.getDataSource=this.getDataSource.bind(this),this.observable=this.makeObservable,this.reaction=this.makeReaction,this.computed=this.makeComputed,this.updatable=this.makeUpdatable}var n,e,u;return n=t,(e=[{key:"mapProperties",value:function(t,n,e){[].concat(e||Object.keys(t)).forEach(function(e){Object.defineProperty(n,e,{enumerable:!0,get:function(){return Reflect.get(t,e,this)},set:function(n){return Reflect.set(t,e,n,this)}})})}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this).options=Object.assign(a(this).options,t)}},{key:"getOptions",value:function(){return Object.assign({},a(this).options)}},{key:"makeObservable",value:function(t){var n=this,e=a(n);if(!t)return t;if(t.constructor!==Object&&t.constructor!==Array&&"function"!=typeof t)return t;if(n.isObservable(t))return t;var i=Array.isArray(t),u=e.observables.get(t);if(!u){var c=new Map,f={};Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);r&&"function"==typeof r.get&&(f[e]=n.makeUpdatable(r.get))});var s=!1,l=function(r,i){var a=i===e.options.watchDeepKey?e.options.watchKey:i;if(i===e.options.watchDeepKey){if(s)return;s=!0,Object.keys(t).forEach(function(r){"object"===o(t[r])&&n.makeObservable(t[r])[e.options.watchDeepKey]}),s=!1}a===e.options.watchKey&&Object.keys(f).forEach(function(t){f[t].call(u)});var l=c.get(a)||function(t){var n=new Set;return c.set(t,n),n}(a);l.has(r)||(l.add(r),r.uninitMap.set(t,function(t){l.delete(t),0===l.size&&c.delete(a)}))},p={toUpdate:c,dataSource:t,registerRead:l},v=function(t){var o=function(t){return function t(n){n.invalidIteration=!0,n.onInvalidate&&n.onInvalidate(),n.valid&&(n.valid=!1,n.deps.forEach(function(n){return t(n)})),n.deps.clear()}(t)};if(null==t)r(p.toUpdate.values()).forEach(function(t){return t.forEach(o)});else{var i=p.toUpdate.get(t);i&&i.forEach(o);var u=p.toUpdate.get(e.options.watchKey);u&&u.forEach(o)}e.inRunSection||1!==e.intentToRun||(e.options.immediateReaction?n.run():n.runDeferred())};u=new Proxy(t,{get:function(r,u,c){if(u===e.dataSourceKey)return t;var a;if(e.callStack.length&&(a=e.callStack[e.callStack.length-1],l(a,u)),u===e.options.watchKey||u===e.options.watchDeepKey)return c;var f=Reflect.get(r,u,c);return i&&"function"==typeof f&&"constructor"!==u?new Proxy(f,{apply:function(n,r,o){if(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"].includes(u)){e.intentToRun++;try{v()}finally{e.intentToRun--}return n.apply(t,o)}return n.apply(r,o)}}):"object"===o(f)?n.makeObservable(f):f},set:function(t,n,r,o){if(r!==Reflect.get(t,n,o)||Array.isArray(t)&&"length"===n){e.intentToRun++;try{Reflect.set(t,n,r,o),v(n)}finally{e.intentToRun--}}return!0},defineProperty:function(t,e,r){return r&&"function"==typeof r.get&&(f[e]=n.makeUpdatable(r.get)),Reflect.defineProperty(t,e,r)},deleteProperty:function(t,n){e.intentToRun++;try{n in f&&delete f[n],v(n)}finally{e.intentToRun--}return Reflect.deleteProperty(t,n)}}),e.observables.set(t,u)}return u}},{key:"makeUpdatable",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.originalFn)return t;var e=n.onInvalidate,o=n.onUninit,i=a(this),u={id:++i.gen,active:!0,valid:!1,onInvalidate:e,onUninit:o,value:void 0,deps:new Set,uninitMap:new Map,uninit:function(){r(u.uninitMap.values()).forEach(function(t){return t(u)}),u.uninitMap.clear()}},c=function(){if(!u.active)return t.call(this,this);if(u.computing)console.warn('Detected cross reference inside computed properties! "undefined" will be returned to prevent infinite loop');else{if(i.callStack.length&&u.deps.add(i.callStack[i.callStack.length-1]),u.valid)return u.value;u.computing=!0,u.uninit(),i.callStack.push(u);try{var n=this?i.observables.get(this)||this:null;u.invalidIteration=!1;var e=t.call(n,n);return u.valid=!u.invalidIteration,u.value=e,e}finally{u.computing=!1,i.callStack.pop()}}};return c.uninit=function(){u.uninit(),u.active=!1,o&&o()},c.invalidate=function(){u.valid=!1},c.originalFn=t,c}},{key:"makeComputed",value:function(t,n,e,r){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:this.makeUpdatable(e),set:r})}},{key:"makeReaction",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=a(this),r=this.makeUpdatable(t,{onInvalidate:function(){return e.reactionsToUpdate.add(r)},onUninit:function(){return e.reactionsToUpdate.delete(r)}});return e.reactionsToUpdate.add(r),n&&(e.options.immediateReaction?this.run():this.runDeferred()),r}},{key:"getDataSource",value:function(t){return t[a(this).dataSourceKey]}},{key:"isObservable",value:function(t){return null!=t[a(this).dataSourceKey]}},{key:"run",value:function(t){var n=a(this);if(n.options.enabled){n.inRunSection=!0;try{"function"==typeof t&&t(),n.runScheduled=!1;for(var e=0;n.reactionsToUpdate.size;){if(e>n.options.maxIterations)throw n.reactionsToUpdate.clear(),new Error("Max iterations exceeded!");e++;var o=n.options.getTime(),i=r(n.reactionsToUpdate.values()),u=!0,c=!1,f=void 0;try{for(var s,l=i[Symbol.iterator]();!(u=(s=l.next()).done);u=!0){var p=s.value;if(n.reactionsToUpdate.delete(p),p(),n.options.getTime()-o>=n.options.timeLimit)break}}catch(t){c=!0,f=t}finally{try{u||null==l.return||l.return()}finally{if(c)throw f}}n.reactionsToUpdate.size&&this.runDeferred()}"function"==typeof n.options.afterRun&&n.options.afterRun()}finally{n.inRunSection=!1}}}},{key:"runDeferred",value:function(t){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=a(this);if(r.options.enabled){r.inRunSection=!0;try{r.runScheduled||(r.runScheduled=setTimeout(function(){return n.run()},e)),"function"==typeof t&&t()}finally{r.inRunSection=!1}}}}])&&i(n.prototype,e),u&&i(n,u),t}();f.default=new f,f.default.Manager=f,n.default=f.default;var s=f.default.observable,l=f.default.reaction,p=f.default.computed,v=f.default.updatable}.call(this,e(62))},function(t,n){var e,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var a,f=[],s=!1,l=-1;function p(){s&&a&&(s=!1,a.length?f=a.concat(f):l=-1,f.length&&v())}function v(){if(!s){var t=c(p);s=!0;for(var n=f.length;n;){for(a=f,f=[];++l<n;)a&&a[l].run();l=-1,n=f.length}a=null,s=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(n){try{return r.call(null,t)}catch(n){return r.call(this,t)}}}(t)}}function h(t,n){this.fun=t,this.array=n}function y(){}o.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];f.push(new h(t,n)),1!==f.length||s||c(v)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,n,e){"use strict";var r=e(11),o=e(3),i=e(18),u=e(44),c=e(45),a=e(26),f=e(66),s=e(46);o(o.S+o.F*!e(47)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,o,l,p=i(t),v="function"==typeof this?this:Array,h=arguments.length,y=h>1?arguments[1]:void 0,d=void 0!==y,g=0,b=s(p);if(d&&(y=r(y,h>2?arguments[2]:void 0,2)),null==b||v==Array&&c(b))for(e=new v(n=a(p.length));n>g;g++)f(e,g,d?y(p[g],g):p[g]);else for(l=b.call(p),e=new v;!(o=l.next()).done;g++)f(e,g,d?u(l,y,[o.value,g],!0):o.value);return e.length=g,e}})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){t.exports=e(23)("native-function-to-string",Function.toString)},function(t,n,e){"use strict";var r=e(5),o=e(13);t.exports=function(t,n,e){n in t?r.f(t,n,o(0,e)):t[n]=e}},function(t,n,e){var r=e(27),o=e(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),o))?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){"use strict";e(69);var r=e(2),o=e(48),i=e(6),u=/./.toString,c=function(t){e(9)(RegExp.prototype,"toString",t,!0)};e(8)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=u.name&&c(function(){return u.call(this)})},function(t,n,e){e(6)&&"g"!=/./g.flags&&e(5).f(RegExp.prototype,"flags",{configurable:!0,get:e(48)})},function(t,n,e){var r=e(3),o=e(20).f,i=e(2);r(r.S,"Reflect",{deleteProperty:function(t,n){var e=o(i(t),n);return!(e&&!e.configurable)&&delete t[n]}})},function(t,n,e){var r=e(5),o=e(3),i=e(2),u=e(22);o(o.S+o.F*e(8)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,n,e){i(t),n=u(n,!0),i(e);try{return r.f(t,n,e),!0}catch(t){return!1}}})},function(t,n,e){"use strict";var r=e(3),o=e(49)(!0);r(r.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(50)("includes")},function(t,n,e){var r=e(30),o=Math.max,i=Math.min;t.exports=function(t,n){return(t=r(t))<0?o(t+n,0):i(t,n)}},function(t,n,e){"use strict";var r=e(3),o=e(75);r(r.P+r.F*e(77)("includes"),"String",{includes:function(t){return!!~o(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(76),o=e(25);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(o(t))}},function(t,n,e){var r=e(0),o=e(27),i=e(1)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,e){var r=e(1)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";var r=e(51),o=e(16);t.exports=e(40)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var n=r.getEntry(o(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(o(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){var r=e(5),o=e(2),i=e(15);t.exports=e(6)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){var r=e(4).document;t.exports=r&&r.documentElement},function(t,n,e){"use strict";var r=e(32),o=e(13),i=e(29),u={};e(10)(u,e(1)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){"use strict";var r=e(4),o=e(5),i=e(6),u=e(1)("species");t.exports=function(t){var n=r[t];i&&n&&!n[u]&&o.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(0),o=e(84).set;t.exports=function(t,n,e){var i,u=n.constructor;return u!==e&&"function"==typeof u&&(i=u.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},function(t,n,e){var r=e(0),o=e(2),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(11)(Function.call,e(20).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){var r=e(3);r(r.S+r.F,"Object",{assign:e(54)})},function(t,n,e){var r=e(5),o=e(20),i=e(39),u=e(7),c=e(3),a=e(13),f=e(2),s=e(0);c(c.S,"Reflect",{set:function t(n,e,c){var l,p,v=arguments.length<4?n:arguments[3],h=o.f(f(n),e);if(!h){if(s(p=i(n)))return t(p,e,c,v);h=a(0)}if(u(h,"value")){if(!1===h.writable||!s(v))return!1;if(l=o.f(v,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,r.f(v,e,l)}else r.f(v,e,a(0,c));return!0}return void 0!==h.set&&(h.set.call(v,c),!0)}})},function(t,n,e){var r=e(20),o=e(39),i=e(7),u=e(3),c=e(0),a=e(2);u(u.S,"Reflect",{get:function t(n,e){var u,f,s=arguments.length<3?n:arguments[2];return a(n)===s?n[e]:(u=r.f(n,e))?i(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(f=o(n))?t(f,e,s):void 0}})},function(t,n,e){var r=e(18),o=e(15);e(89)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(3),o=e(12),i=e(8);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){"use strict";var r=e(51),o=e(16);t.exports=e(40)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(o(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){e(55)("asyncIterator")},function(t,n,e){"use strict";var r=e(4),o=e(7),i=e(6),u=e(3),c=e(9),a=e(21).KEY,f=e(8),s=e(23),l=e(29),p=e(17),v=e(1),h=e(56),y=e(55),d=e(93),g=e(57),b=e(2),m=e(0),S=e(14),x=e(22),w=e(13),O=e(32),_=e(94),k=e(20),j=e(5),T=e(15),E=k.f,P=j.f,R=_.f,A=r.Symbol,M=r.JSON,L=M&&M.stringify,D=v("_hidden"),F=v("toPrimitive"),U={}.propertyIsEnumerable,I=s("symbol-registry"),C=s("symbols"),N=s("op-symbols"),K=Object.prototype,W="function"==typeof A,G=r.QObject,z=!G||!G.prototype||!G.prototype.findChild,V=i&&f(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=E(K,n);r&&delete K[n],P(t,n,e),r&&t!==K&&P(K,n,r)}:P,B=function(t){var n=C[t]=O(A.prototype);return n._k=t,n},H=W&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},J=function(t,n,e){return t===K&&J(N,n,e),b(t),n=x(n,!0),b(e),o(C,n)?(e.enumerable?(o(t,D)&&t[D][n]&&(t[D][n]=!1),e=O(e,{enumerable:w(0,!1)})):(o(t,D)||P(t,D,w(1,{})),t[D][n]=!0),V(t,n,e)):P(t,n,e)},$=function(t,n){b(t);for(var e,r=d(n=S(n)),o=0,i=r.length;i>o;)J(t,e=r[o++],n[e]);return t},q=function(t){var n=U.call(this,t=x(t,!0));return!(this===K&&o(C,t)&&!o(N,t))&&(!(n||!o(this,t)||!o(C,t)||o(this,D)&&this[D][t])||n)},X=function(t,n){if(t=S(t),n=x(n,!0),t!==K||!o(C,n)||o(N,n)){var e=E(t,n);return!e||!o(C,n)||o(t,D)&&t[D][n]||(e.enumerable=!0),e}},Y=function(t){for(var n,e=R(S(t)),r=[],i=0;e.length>i;)o(C,n=e[i++])||n==D||n==a||r.push(n);return r},Q=function(t){for(var n,e=t===K,r=R(e?N:S(t)),i=[],u=0;r.length>u;)!o(C,n=r[u++])||e&&!o(K,n)||i.push(C[n]);return i};W||(c((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===K&&n.call(N,e),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),V(this,t,w(1,e))};return i&&z&&V(K,t,{configurable:!0,set:n}),B(t)}).prototype,"toString",function(){return this._k}),k.f=X,j.f=J,e(58).f=_.f=Y,e(28).f=q,e(41).f=Q,i&&!e(24)&&c(K,"propertyIsEnumerable",q,!0),h.f=function(t){return B(v(t))}),u(u.G+u.W+u.F*!W,{Symbol:A});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)v(Z[tt++]);for(var nt=T(v.store),et=0;nt.length>et;)y(nt[et++]);u(u.S+u.F*!W,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=A(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var n in I)if(I[n]===t)return n},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!W,"Object",{create:function(t,n){return void 0===n?O(t):$(O(t),n)},defineProperty:J,defineProperties:$,getOwnPropertyDescriptor:X,getOwnPropertyNames:Y,getOwnPropertySymbols:Q}),M&&u(u.S+u.F*(!W||f(function(){var t=A();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(m(n)||void 0!==t)&&!H(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!H(n))return n}),r[1]=n,L.apply(M,r)}}),A.prototype[F]||e(10)(A.prototype,F,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(15),o=e(41),i=e(28);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,e){var r=e(14),o=e(58).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,n,e){for(var r=e(59),o=e(15),i=e(9),u=e(4),c=e(10),a=e(19),f=e(1),s=f("iterator"),l=f("toStringTag"),p=a.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(v),y=0;y<h.length;y++){var d,g=h[y],b=v[g],m=u[g],S=m&&m.prototype;if(S&&(S[s]||c(S,s,p),S[l]||c(S,l,g),a[g]=p,b))for(d in r)S[d]||i(S,d,r[d],!0)}},function(t,n,e){"use strict";var r=e(97)(!0);e(38)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(30),o=e(25);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}}},function(t,n,e){"use strict";var r,o=e(4),i=e(60)(0),u=e(9),c=e(21),a=e(54),f=e(101),s=e(0),l=e(16),p=e(16),v=!o.ActiveXObject&&"ActiveXObject"in o,h=c.getWeak,y=Object.isExtensible,d=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(t){if(s(t)){var n=h(t);return!0===n?d(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},m=t.exports=e(40)("WeakMap",g,b,f,!0,!0);p&&v&&(a((r=f.getConstructor(g,"WeakMap")).prototype,b),c.NEED=!0,i(["delete","has","get","set"],function(t){var n=m.prototype,e=n[t];u(n,t,function(n,o){if(s(n)&&!y(n)){this._f||(this._f=new r);var i=this._f[t](n,o);return"set"==t?this:i}return e.call(this,n,o)})}))},function(t,n,e){var r=e(100);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(0),o=e(57),i=e(1)("species");t.exports=function(t){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&null===(n=n[i])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){"use strict";var r=e(35),o=e(21).getWeak,i=e(2),u=e(0),c=e(36),a=e(37),f=e(60),s=e(7),l=e(16),p=f(5),v=f(6),h=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return p(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var e=g(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,i){var f=t(function(t,r){c(t,f,n,"_i"),t._t=n,t._i=h++,t._l=void 0,null!=r&&a(r,e,t[i],t)});return r(f.prototype,{delete:function(t){if(!u(t))return!1;var e=o(t);return!0===e?y(l(this,n)).delete(t):e&&s(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=o(t);return!0===e?y(l(this,n)).has(t):e&&s(e,this._i)}}),f},def:function(t,n,e){var r=o(i(n),!0);return!0===r?y(t).set(n,e):r[t._i]=e,t},ufstore:y}}]).default});
//# sourceMappingURL=active-data.js.map