Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

marsdb

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marsdb - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

test/both/DocumentRetriver.test.js

2

build/marsdb.polyfills.js

@@ -1,1 +0,1 @@

!function t(e,r,n){function o(s,c){if(!r[s]){if(!e[s]){var a="function"==typeof require&&require;if(!c&&a)return a(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var f=r[s]={exports:{}};e[s][0].call(f.exports,function(t){var r=e[s][1][t];return o(r?r:t)},f,f.exports,t,e,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),e.exports=t("../modules/_core").Promise},{"../modules/_core":13,"../modules/es6.object.to-string":59,"../modules/es6.promise":60,"../modules/es6.string.iterator":62,"../modules/web.dom.iterable":64}],2:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.set"),e.exports=t("../modules/_core").Set},{"../modules/_core":13,"../modules/es6.object.to-string":59,"../modules/es6.set":61,"../modules/es6.string.iterator":62,"../modules/web.dom.iterable":64}],3:[function(t,e,r){t("../modules/es6.symbol"),t("../modules/es6.object.to-string"),e.exports=t("../modules/_core").Symbol},{"../modules/_core":13,"../modules/es6.object.to-string":59,"../modules/es6.symbol":63}],4:[function(t,e,r){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},{}],5:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],6:[function(t,e,r){var n=t("./_wks")("unscopables"),o=Array.prototype;void 0==o[n]&&t("./_hide")(o,n,{}),e.exports=function(t){o[n][t]=!0}},{"./_hide":25,"./_wks":56}],7:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],8:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":31}],9:[function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(e=Object(t))[o])?r:i?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},{"./_cof":10,"./_wks":56}],10:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],11:[function(t,e,r){"use strict";var n=t("./_"),o=(t("./_hide"),t("./_redefine-all")),i=t("./_ctx"),s=t("./_an-instance"),c=t("./_defined"),a=t("./_for-of"),u=t("./_iter-define"),f=t("./_iter-step"),_=t("./_set-species"),l=t("./_descriptors"),p=t("./_meta").fastKey,d=l?"_s":"size",h=function(t,e){var r,n=p(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.exports={getConstructor:function(t,e,r,u){var f=t(function(t,o){s(t,f,e,"_i"),t._i=n.create(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=o&&a(o,r,t[u],t)});return o(f.prototype,{clear:function(){for(var t=this,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[d]=0},"delete":function(t){var e=this,r=h(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[d]--}return!!r},forEach:function(t){s(this,f,"forEach");for(var e,r=i(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!!h(this,t)}}),l&&n.setDesc(f.prototype,"size",{get:function(){return c(this[d])}}),f},def:function(t,e,r){var n,o,i=h(t,e);return i?i.v=r:(t._l=i={i:o=p(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:h,setStrong:function(t,e,r){u(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?f(0,r.k):"values"==e?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),_(e)}}},{"./_":4,"./_an-instance":7,"./_ctx":14,"./_defined":15,"./_descriptors":16,"./_for-of":21,"./_hide":25,"./_iter-define":34,"./_iter-step":36,"./_meta":40,"./_redefine-all":43,"./_set-species":46}],12:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_export"),i=t("./_redefine"),s=t("./_redefine-all"),c=t("./_meta"),a=t("./_for-of"),u=t("./_an-instance"),f=t("./_is-object"),_=t("./_fails"),l=t("./_iter-detect"),p=t("./_set-to-string-tag");e.exports=function(t,e,r,d,h,v){var g=n[t],y=g,m=h?"set":"add",b=y&&y.prototype,w={},x=function(t){var e=b[t];i(b,t,"delete"==t?function(t){return v&&!f(t)?!1:e.call(this,0===t?0:t)}:"has"==t?function(t){return v&&!f(t)?!1:e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof y&&(v||b.forEach&&!_(function(){(new y).entries().next()}))){var j=new y,k=j[m](v?{}:-0,1)!=j,S=_(function(){j.has(1)}),O=l(function(t){new y(t)}),E=!v&&_(function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)});O||(y=e(function(e,r){u(e,y,t);var n=new g;return void 0!=r&&a(r,h,n[m],n),n}),y.prototype=b,b.constructor=y),(S||E)&&(x("delete"),x("has"),h&&x("get")),(E||k)&&x(m),v&&b.clear&&delete b.clear}else y=d.getConstructor(e,t,h,m),s(y.prototype,r),c.NEED=!0;return p(y,t),w[t]=y,o(o.G+o.W+o.F*(y!=g),w),v||d.setStrong(y,t,h),y}},{"./_an-instance":7,"./_export":19,"./_fails":20,"./_for-of":21,"./_global":23,"./_is-object":31,"./_iter-detect":35,"./_meta":40,"./_redefine":44,"./_redefine-all":43,"./_set-to-string-tag":47}],13:[function(t,e,r){var n=e.exports={version:"2.0.0"};"number"==typeof __e&&(__e=n)},{}],14:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":5}],15:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],16:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":20}],17:[function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":23,"./_is-object":31}],18:[function(t,e,r){var n=t("./_");e.exports=function(t){var e=n.getKeys(t),r=n.getSymbols;if(r)for(var o,i=r(t),s=n.isEnum,c=0;i.length>c;)s.call(t,o=i[c++])&&e.push(o);return e}},{"./_":4}],19:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_hide"),s=t("./_redefine"),c=t("./_ctx"),a="prototype",u=function(t,e,r){var f,_,l,p,d=t&u.F,h=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,m=h?n:v?n[e]||(n[e]={}):(n[e]||{})[a],b=h?o:o[e]||(o[e]={}),w=b[a]||(b[a]={});h&&(r=e);for(f in r)_=!d&&m&&void 0!==m[f],l=(_?m:r)[f],p=y&&_?c(l,n):g&&"function"==typeof l?c(Function.call,l):l,m&&!_&&s(m,f,l,t&u.U),b[f]!=l&&i(b,f,p),g&&w[f]!=l&&(w[f]=l)};n.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},{"./_core":13,"./_ctx":14,"./_global":23,"./_hide":25,"./_redefine":44}],20:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],21:[function(t,e,r){var n=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),s=t("./_an-object"),c=t("./_to-length"),a=t("./core.get-iterator-method");e.exports=function(t,e,r,u){var f,_,l,p=a(t),d=n(r,u,e?2:1),h=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(i(p))for(f=c(t.length);f>h;h++)e?d(s(_=t[h])[0],_[1]):d(t[h]);else for(l=p.call(t);!(_=l.next()).done;)o(l,d,_.value,e)}},{"./_an-object":8,"./_ctx":14,"./_is-array-iter":29,"./_iter-call":32,"./_to-length":54,"./core.get-iterator-method":57}],22:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_").getNames,i={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(e){return s.slice()}};e.exports.get=function(t){return s&&"[object Window]"==i.call(t)?c(t):o(n(t))}},{"./_":4,"./_to-iobject":53}],23:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],24:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],25:[function(t,e,r){var n=t("./_"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_":4,"./_descriptors":16,"./_property-desc":42}],26:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":23}],27:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],28:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":10}],29:[function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},{"./_iterators":37,"./_wks":56}],30:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":10}],31:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],32:[function(t,e,r){var n=t("./_an-object");e.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(i){var s=t["return"];throw void 0!==s&&n(s.call(t)),i}}},{"./_an-object":8}],33:[function(t,e,r){"use strict";var n=t("./_"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n.create(s,{next:o(1,r)}),i(t,e+" Iterator")}},{"./_":4,"./_hide":25,"./_property-desc":42,"./_set-to-string-tag":47,"./_wks":56}],34:[function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),s=t("./_hide"),c=t("./_has"),a=t("./_iterators"),u=t("./_iter-create"),f=t("./_set-to-string-tag"),_=t("./_").getProto,l=t("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",g=function(){return this};e.exports=function(t,e,r,y,m,b,w){u(r,e,y);var x,j,k,S=function(t){if(!p&&t in D)return D[t];switch(t){case h:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},O=e+" Iterator",E=m==v,P=!1,D=t.prototype,F=D[l]||D[d]||m&&D[m],N=F||S(m),A=m?E?S("entries"):N:void 0,M="Array"==e?D.entries||F:F;if(M&&(k=_(M.call(new t)),k!==Object.prototype&&(f(k,O,!0),n||c(k,l)||s(k,l,g))),E&&F&&F.name!==v&&(P=!0,N=function(){return F.call(this)}),n&&!w||!p&&!P&&D[l]||s(D,l,N),a[e]=N,a[O]=g,m)if(x={values:E?N:S(v),keys:b?N:S(h),entries:A},w)for(j in x)j in D||i(D,j,x[j]);else o(o.P+o.F*(p||P),e,x);return x}},{"./_":4,"./_export":19,"./_has":24,"./_hide":25,"./_iter-create":33,"./_iterators":37,"./_library":39,"./_redefine":44,"./_set-to-string-tag":47,"./_wks":56}],35:[function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(s){}e.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){r=!0},i[n]=function(){return s},t(i)}catch(c){}return r}},{"./_wks":56}],36:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],37:[function(t,e,r){e.exports={}},{}],38:[function(t,e,r){var n=t("./_"),o=t("./_to-iobject");e.exports=function(t,e){for(var r,i=o(t),s=n.getKeys(i),c=s.length,a=0;c>a;)if(i[r=s[a++]]===e)return r}},{"./_":4,"./_to-iobject":53}],39:[function(t,e,r){e.exports=!1},{}],40:[function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),s=t("./_").setDesc,c=0,a=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return a(Object.preventExtensions({}))}),f=function(t){s(t,n,{value:{i:"O"+ ++c,w:{}}})},_=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[n].i},l=function(t,e){if(!i(t,n)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[n].w},p=function(t){return u&&d.NEED&&a(t)&&!i(t,n)&&f(t),t},d=e.exports={KEY:n,NEED:!1,fastKey:_,getWeak:l,onFreeze:p}},{"./_":4,"./_fails":20,"./_has":24,"./_is-object":31,"./_uid":55}],41:[function(t,e,r){var n,o,i,s=t("./_global"),c=t("./_task").set,a=s.MutationObserver||s.WebKitMutationObserver,u=s.process,f=s.Promise,_="process"==t("./_cof")(u),l=function(){var t,e,r;for(_&&(t=u.domain)&&(u.domain=null,t.exit());n;)e=n.domain,r=n.fn,e&&e.enter(),r(),e&&e.exit(),n=n.next;o=void 0,t&&t.enter()};if(_)i=function(){u.nextTick(l)};else if(a){var p=1,d=document.createTextNode("");new a(l).observe(d,{characterData:!0}),i=function(){d.data=p=-p}}else i=f&&f.resolve?function(){f.resolve().then(l)}:function(){c.call(s,l)};e.exports=function(t){var e={fn:t,next:void 0,domain:_&&u.domain};o&&(o.next=e),n||(n=e,i()),o=e}},{"./_cof":10,"./_global":23,"./_task":51}],42:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],43:[function(t,e,r){var n=t("./_redefine");e.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},{"./_redefine":44}],44:[function(t,e,r){var n=t("./_global"),o=t("./_hide"),i=t("./_uid")("src"),s="toString",c=Function[s],a=(""+c).split(s);t("./_core").inspectSource=function(t){return c.call(t)},(e.exports=function(t,e,r,s){"function"==typeof r&&(r.hasOwnProperty(i)||o(r,i,t[e]?""+t[e]:a.join(String(e))),r.hasOwnProperty("name")||o(r,"name",e)),t===n?t[e]=r:s?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r))})(Function.prototype,s,function(){return"function"==typeof this&&this[i]||c.call(this)})},{"./_core":13,"./_global":23,"./_hide":25,"./_uid":55}],45:[function(t,e,r){var n=t("./_").getDesc,o=t("./_is-object"),i=t("./_an-object"),s=function(t,e){if(i(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,o){try{o=t("./_ctx")(Function.call,n(Object.prototype,"__proto__").set,2),o(e,[]),r=!(e instanceof Array)}catch(i){r=!0}return function(t,e){return s(t,e),r?t.__proto__=e:o(t,e),t}}({},!1):void 0),check:s}},{"./_":4,"./_an-object":8,"./_ctx":14,"./_is-object":31}],46:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_"),i=t("./_descriptors"),s=t("./_wks")("species");e.exports=function(t){var e=n[t];i&&e&&!e[s]&&o.setDesc(e,s,{configurable:!0,get:function(){return this}})}},{"./_":4,"./_descriptors":16,"./_global":23,"./_wks":56}],47:[function(t,e,r){var n=t("./_").setDesc,o=t("./_has"),i=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},{"./_":4,"./_has":24,"./_wks":56}],48:[function(t,e,r){var n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":23}],49:[function(t,e,r){var n=t("./_an-object"),o=t("./_a-function"),i=t("./_wks")("species");e.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[i])?e:o(r)}},{"./_a-function":5,"./_an-object":8,"./_wks":56}],50:[function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");e.exports=function(t){return function(e,r){var i,s,c=String(o(e)),a=n(r),u=c.length;return 0>a||a>=u?t?"":void 0:(i=c.charCodeAt(a),55296>i||i>56319||a+1===u||(s=c.charCodeAt(a+1))<56320||s>57343?t?c.charAt(a):i:t?c.slice(a,a+2):(i-55296<<10)+(s-56320)+65536)}}},{"./_defined":15,"./_to-integer":52}],51:[function(t,e,r){var n,o,i,s=t("./_ctx"),c=t("./_invoke"),a=t("./_html"),u=t("./_dom-create"),f=t("./_global"),_=f.process,l=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,h=0,v={},g="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},m=function(t){y.call(t.data)};l&&p||(l=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return v[++h]=function(){c("function"==typeof t?t:Function(t),e)},n(h),h},p=function(t){delete v[t]},"process"==t("./_cof")(_)?n=function(t){_.nextTick(s(y,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=m,n=s(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",m,!1)):n=g in u("script")?function(t){a.appendChild(u("script"))[g]=function(){a.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),e.exports={set:l,clear:p}},{"./_cof":10,"./_ctx":14,"./_dom-create":17,"./_global":23,"./_html":26,"./_invoke":27}],52:[function(t,e,r){var n=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},{}],53:[function(t,e,r){var n=t("./_iobject"),o=t("./_defined");e.exports=function(t){return n(o(t))}},{"./_defined":15,"./_iobject":28}],54:[function(t,e,r){var n=t("./_to-integer"),o=Math.min;e.exports=function(t){return t>0?o(n(t),9007199254740991):0}},{"./_to-integer":52}],55:[function(t,e,r){var n=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},{}],56:[function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,s="function"==typeof i;e.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}},{"./_global":23,"./_shared":48,"./_uid":55}],57:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},{"./_classof":9,"./_core":13,"./_iterators":37,"./_wks":56}],58:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),s=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":6,"./_iter-define":34,"./_iter-step":36,"./_iterators":37,"./_to-iobject":53}],59:[function(t,e,r){"use strict";var n=t("./_classof"),o={};o[t("./_wks")("toStringTag")]="z",o+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":9,"./_redefine":44,"./_wks":56}],60:[function(t,e,r){"use strict";var n,o,i,s=t("./_"),c=(t("./_library"),t("./_global")),a=t("./_ctx"),u=t("./_classof"),f=t("./_export"),_=t("./_is-object"),l=(t("./_an-object"),t("./_a-function")),p=t("./_an-instance"),d=t("./_for-of"),h=t("./_set-proto").set,v=t("./_species-constructor"),g=t("./_task").set,y=t("./_microtask"),m="Promise",b=c.TypeError,w=c.process,x=c[m],j="process"==u(w),k=function(t){var e=new x(function(){});return t&&(e.constructor=Object),x.resolve(e)===e},S=function(){var e=!1,r=function(t){var e=new x(t);return h(e,r.prototype),e};try{if(e=x&&x.resolve&&k(),h(r,x),r.prototype=s.create(x.prototype,{constructor:{value:r}}),r.resolve(5).then(function(){})instanceof r||(e=!1),e&&t("./_descriptors")){var n=!1;x.resolve(s.setDesc({},"then",{get:function(){n=!0}})),e=n}}catch(o){e=!1}return!!e}(),O=function(t,e){return t===e||t===x&&e===i},E=function(t){var e;return _(t)&&"function"==typeof(e=t.then)?e:!1},P=function(t){return O(x,t)?new D(t):new o(t)},D=o=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw b("Bad Promise constructor");e=t,r=n}),this.resolve=l(e),this.reject=l(r)},F=function(t){try{t()}catch(e){return{error:e}}},N=function(t,e){if(!t._n){t._n=!0;var r=t._c;y(function(){for(var n=t._v,o=1==t._s,i=0,s=function(e){var r,i,s=o?e.ok:e.fail,c=e.resolve,a=e.reject;try{s?(o||(2==t._h&&T(t),t._h=1),r=s===!0?n:s(n),r===e.promise?a(b("Promise-chain cycle")):(i=E(r))?i.call(r,c,a):c(r)):a(n)}catch(u){a(u)}};r.length>i;)s(r[i++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){g.call(c,function(){if(M(t)){var e,r,n=t._v;j?w.emit("unhandledRejection",n,t):(e=c.onunhandledrejection)?e({promise:t,reason:n}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",n),t._h=2}t._a=void 0})},M=function(t){var e,r=t._a||t._c,n=0;if(1==t._h)return!1;for(;r.length>n;)if(e=r[n++],e.fail||!M(e.promise))return!1;return!0},T=function(t){g.call(c,function(){var e;j?w.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},C=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),N(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw b("Promise can't be resolved itself");(e=E(t))?y(function(){var n={_w:r,_d:!1};try{e.call(t,a(I,n,1),a(C,n,1))}catch(o){C.call(n,o)}}):(r._v=t,r._s=1,N(r,!1))}catch(n){C.call({_w:r,_d:!1},n)}}};S||(x=function(t){p(this,x,m,"_h"),l(t),n.call(this);try{t(a(I,this,1),a(C,this,1))}catch(e){C.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=t("./_redefine-all")(x.prototype,{then:function(t,e){var r=P(v(this,x));return r.ok="function"==typeof t?t:!0,r.fail="function"==typeof e&&e,this._c.push(r),this._a&&this._a.push(r),this._s&&N(this,!1),r.promise},"catch":function(t){return this.then(void 0,t)}}),D=function(){var t=new n;this.promise=t,this.resolve=a(I,t,1),this.reject=a(C,t,1)}),f(f.G+f.W+f.F*!S,{Promise:x}),t("./_set-to-string-tag")(x,m),t("./_set-species")(m),i=t("./_core")[m],f(f.S+f.F*!S,m,{reject:function(t){var e=P(this),r=e.reject;return r(t),e.promise}}),f(f.S+f.F*(!S||k(!0)),m,{resolve:function(t){if(t instanceof x&&O(t.constructor,this))return t;var e=P(this),r=e.resolve;return r(t),e.promise}}),f(f.S+f.F*!(S&&t("./_iter-detect")(function(t){x.all(t)["catch"](function(){})})),m,{all:function(t){var e=this,r=P(e),n=r.resolve,o=r.reject,i=[],c=F(function(){d(t,!1,i.push,i);var r=i.length,c=Array(r);r?s.each.call(i,function(t,i){var s=!1;e.resolve(t).then(function(t){s||(s=!0,c[i]=t,--r||n(c))},o)}):n(c)});return c&&o(c.error),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,o=F(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o&&n(o.error),r.promise}})},{"./_":4,"./_a-function":5,"./_an-instance":7,"./_an-object":8,"./_classof":9,"./_core":13,"./_ctx":14,"./_descriptors":16,"./_export":19,"./_for-of":21,"./_global":23,"./_is-object":31,"./_iter-detect":35,"./_library":39,"./_microtask":41,"./_redefine-all":43,"./_set-proto":45,"./_set-species":46,"./_set-to-string-tag":47,"./_species-constructor":49,"./_task":51}],61:[function(t,e,r){"use strict";var n=t("./_collection-strong");t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(this,t=0===t?0:t,t)}},n)},{"./_collection":12,"./_collection-strong":11}],62:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":34,"./_string-at":50}],63:[function(t,e,r){"use strict";var n=t("./_"),o=t("./_global"),i=t("./_core"),s=t("./_has"),c=t("./_descriptors"),a=t("./_export"),u=t("./_redefine"),f=t("./_meta").KEY,_=t("./_fails"),l=t("./_shared"),p=t("./_set-to-string-tag"),d=t("./_uid"),h=t("./_wks"),v=t("./_keyof"),g=t("./_get-names"),y=t("./_enum-keys"),m=t("./_is-array"),b=t("./_an-object"),w=t("./_to-iobject"),x=t("./_property-desc"),j=n.getDesc,k=n.setDesc,S=n.create,O=g.get,E=o.Symbol,P=o.JSON,D=P&&P.stringify,F=!1,N=h("_hidden"),A=n.isEnum,M=l("symbol-registry"),T=l("symbols"),C=Object.prototype,I="function"==typeof E,K=c&&_(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=j(C,e);n&&delete C[e],k(t,e,r),n&&t!==C&&k(C,e,n)}:k,L=function(t){var e=T[t]=S(E.prototype);return e._k=t,c&&F&&K(C,t,{configurable:!0,set:function(e){s(this,N)&&s(this[N],t)&&(this[N][t]=!1),K(this,t,x(1,e))}}),e},W=function(t){return"symbol"==typeof t},z=function(t,e,r){return r&&s(T,e)?(r.enumerable?(s(t,N)&&t[N][e]&&(t[N][e]=!1),r=S(r,{enumerable:x(0,!1)})):(s(t,N)||k(t,N,x(1,{})),t[N][e]=!0),K(t,e,r)):k(t,e,r)},U=function(t,e){b(t);for(var r,n=y(e=w(e)),o=0,i=n.length;i>o;)z(t,r=n[o++],e[r]);return t},G=function(t,e){return void 0===e?S(t):U(S(t),e)},q=function(t){var e=A.call(this,t);return e||!s(this,t)||!s(T,t)||s(this,N)&&this[N][t]?e:!0},J=function(t,e){var r=j(t=w(t),e);return!r||!s(T,e)||s(t,N)&&t[N][e]||(r.enumerable=!0),r},B=function(t){for(var e,r=O(w(t)),n=[],o=0;r.length>o;)s(T,e=r[o++])||e==N||e==f||n.push(e);return n},R=function(t){for(var e,r=O(w(t)),n=[],o=0;r.length>o;)s(T,e=r[o++])&&n.push(T[e]);return n},Y=function(t){if(void 0!==t&&!W(t)){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);return e=n[1],"function"==typeof e&&(r=e),(r||!m(e))&&(e=function(t,e){return r&&(e=r.call(this,t,e)),W(e)?void 0:e}),n[1]=e,D.apply(P,n)}},H=_(function(){var t=E();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))});I||(E=function(){if(W(this))throw TypeError("Symbol is not a constructor");return L(d(arguments.length>0?arguments[0]:void 0))},u(E.prototype,"toString",function(){return this._k}),W=function(t){return t instanceof E},n.create=G,n.isEnum=q,n.getDesc=J,n.setDesc=z,n.setDescs=U,n.getNames=g.get=B,n.getSymbols=R,c&&!t("./_library")&&u(C,"propertyIsEnumerable",q,!0)),a(a.G+a.W+a.F*!I,{Symbol:E}),n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=i.Symbol,r=h(t);t in e||k(e,t,{value:I?r:L(r)})}),F=!0,a(a.S+a.F*!I,"Symbol",{"for":function(t){return s(M,t+="")?M[t]:M[t]=E(t)},keyFor:function(t){return v(M,t)},useSetter:function(){F=!0},useSimple:function(){F=!1}}),a(a.S+a.F*!I,"Object",{create:G,defineProperty:z,defineProperties:U,getOwnPropertyDescriptor:J,getOwnPropertyNames:B,getOwnPropertySymbols:R}),P&&a(a.S+a.F*(!I||H),"JSON",{stringify:Y}),p(E,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},{"./_":4,"./_an-object":8,"./_core":13,"./_descriptors":16,"./_enum-keys":18,"./_export":19,"./_fails":20,"./_get-names":22,"./_global":23,"./_has":24,"./_is-array":30,"./_keyof":38,"./_library":39,"./_meta":40,"./_property-desc":42,"./_redefine":44,"./_set-to-string-tag":47,"./_shared":48,"./_to-iobject":53,"./_uid":55,"./_wks":56}],64:[function(t,e,r){var n=t("./es6.array.iterator"),o=t("./_redefine"),i=t("./_global"),s=t("./_hide"),c=t("./_iterators"),a=t("./_wks"),u=a("iterator"),f=a("toStringTag"),_=c.Array;t("./_").each.call(["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],function(t){var e,r=i[t],a=r&&r.prototype;if(a){a[u]||s(a,u,_),a[f]||s(a,f,t),c[t]=_;for(e in n)a[e]||o(a,e,n[e],!0)}})},{"./_":4,"./_global":23,"./_hide":25,"./_iterators":37,"./_redefine":44,"./_wks":56,"./es6.array.iterator":58}],65:[function(t,e,r){(function(e){"undefined"!=typeof window?(window.Symbol=t("core-js/es6/symbol"),window.Promise=t("core-js/es6/promise"),window.Set=t("core-js/es6/set")):(e.Symbol=t("core-js/es6/symbol"),e.Promise=t("core-js/es6/promise"),e.Set=t("core-js/es6/set"))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/es6/promise":1,"core-js/es6/set":2,"core-js/es6/symbol":3}]},{},[65]);
!function t(e,r,n){function o(s,c){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var a=new Error("Cannot find module '"+s+"'");throw a.code="MODULE_NOT_FOUND",a}var f=r[s]={exports:{}};e[s][0].call(f.exports,function(t){var r=e[s][1][t];return o(r?r:t)},f,f.exports,t,e,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.map"),e.exports=t("../modules/_core").Map},{"../modules/_core":14,"../modules/es6.map":60,"../modules/es6.object.to-string":61,"../modules/es6.string.iterator":64,"../modules/web.dom.iterable":66}],2:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.promise"),e.exports=t("../modules/_core").Promise},{"../modules/_core":14,"../modules/es6.object.to-string":61,"../modules/es6.promise":62,"../modules/es6.string.iterator":64,"../modules/web.dom.iterable":66}],3:[function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.string.iterator"),t("../modules/web.dom.iterable"),t("../modules/es6.set"),e.exports=t("../modules/_core").Set},{"../modules/_core":14,"../modules/es6.object.to-string":61,"../modules/es6.set":63,"../modules/es6.string.iterator":64,"../modules/web.dom.iterable":66}],4:[function(t,e,r){t("../modules/es6.symbol"),t("../modules/es6.object.to-string"),e.exports=t("../modules/_core").Symbol},{"../modules/_core":14,"../modules/es6.object.to-string":61,"../modules/es6.symbol":65}],5:[function(t,e,r){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},{}],6:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],7:[function(t,e,r){var n=t("./_wks")("unscopables"),o=Array.prototype;void 0==o[n]&&t("./_hide")(o,n,{}),e.exports=function(t){o[n][t]=!0}},{"./_hide":26,"./_wks":57}],8:[function(t,e,r){e.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},{}],9:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":32}],10:[function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(e=Object(t))[o])?r:i?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},{"./_cof":11,"./_wks":57}],11:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],12:[function(t,e,r){"use strict";var n=t("./_"),o=(t("./_hide"),t("./_redefine-all")),i=t("./_ctx"),s=t("./_an-instance"),c=t("./_defined"),u=t("./_for-of"),a=t("./_iter-define"),f=t("./_iter-step"),_=t("./_set-species"),l=t("./_descriptors"),p=t("./_meta").fastKey,d=l?"_s":"size",h=function(t,e){var r,n=p(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.exports={getConstructor:function(t,e,r,a){var f=t(function(t,o){s(t,f,e,"_i"),t._i=n.create(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=o&&u(o,r,t[a],t)});return o(f.prototype,{clear:function(){for(var t=this,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[d]=0},"delete":function(t){var e=this,r=h(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[d]--}return!!r},forEach:function(t){s(this,f,"forEach");for(var e,r=i(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!!h(this,t)}}),l&&n.setDesc(f.prototype,"size",{get:function(){return c(this[d])}}),f},def:function(t,e,r){var n,o,i=h(t,e);return i?i.v=r:(t._l=i={i:o=p(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=i),n&&(n.n=i),t[d]++,"F"!==o&&(t._i[o]=i)),t},getEntry:h,setStrong:function(t,e,r){a(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?f(0,r.k):"values"==e?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),_(e)}}},{"./_":5,"./_an-instance":8,"./_ctx":15,"./_defined":16,"./_descriptors":17,"./_for-of":22,"./_hide":26,"./_iter-define":35,"./_iter-step":37,"./_meta":41,"./_redefine-all":44,"./_set-species":47}],13:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_export"),i=t("./_redefine"),s=t("./_redefine-all"),c=t("./_meta"),u=t("./_for-of"),a=t("./_an-instance"),f=t("./_is-object"),_=t("./_fails"),l=t("./_iter-detect"),p=t("./_set-to-string-tag");e.exports=function(t,e,r,d,h,v){var g=n[t],m=g,y=h?"set":"add",b=m&&m.prototype,w={},x=function(t){var e=b[t];i(b,t,"delete"==t?function(t){return v&&!f(t)?!1:e.call(this,0===t?0:t)}:"has"==t?function(t){return v&&!f(t)?!1:e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(v||b.forEach&&!_(function(){(new m).entries().next()}))){var j=new m,k=j[y](v?{}:-0,1)!=j,S=_(function(){j.has(1)}),O=l(function(t){new m(t)}),E=!v&&_(function(){for(var t=new m,e=5;e--;)t[y](e,e);return!t.has(-0)});O||(m=e(function(e,r){a(e,m,t);var n=new g;return void 0!=r&&u(r,h,n[y],n),n}),m.prototype=b,b.constructor=m),(S||E)&&(x("delete"),x("has"),h&&x("get")),(E||k)&&x(y),v&&b.clear&&delete b.clear}else m=d.getConstructor(e,t,h,y),s(m.prototype,r),c.NEED=!0;return p(m,t),w[t]=m,o(o.G+o.W+o.F*(m!=g),w),v||d.setStrong(m,t,h),m}},{"./_an-instance":8,"./_export":20,"./_fails":21,"./_for-of":22,"./_global":24,"./_is-object":32,"./_iter-detect":36,"./_meta":41,"./_redefine":45,"./_redefine-all":44,"./_set-to-string-tag":48}],14:[function(t,e,r){var n=e.exports={version:"2.0.0"};"number"==typeof __e&&(__e=n)},{}],15:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":6}],16:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],17:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":21}],18:[function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":24,"./_is-object":32}],19:[function(t,e,r){var n=t("./_");e.exports=function(t){var e=n.getKeys(t),r=n.getSymbols;if(r)for(var o,i=r(t),s=n.isEnum,c=0;i.length>c;)s.call(t,o=i[c++])&&e.push(o);return e}},{"./_":5}],20:[function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_hide"),s=t("./_redefine"),c=t("./_ctx"),u="prototype",a=function(t,e,r){var f,_,l,p,d=t&a.F,h=t&a.G,v=t&a.S,g=t&a.P,m=t&a.B,y=h?n:v?n[e]||(n[e]={}):(n[e]||{})[u],b=h?o:o[e]||(o[e]={}),w=b[u]||(b[u]={});h&&(r=e);for(f in r)_=!d&&y&&void 0!==y[f],l=(_?y:r)[f],p=m&&_?c(l,n):g&&"function"==typeof l?c(Function.call,l):l,y&&!_&&s(y,f,l,t&a.U),b[f]!=l&&i(b,f,p),g&&w[f]!=l&&(w[f]=l)};n.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,e.exports=a},{"./_core":14,"./_ctx":15,"./_global":24,"./_hide":26,"./_redefine":45}],21:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],22:[function(t,e,r){var n=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),s=t("./_an-object"),c=t("./_to-length"),u=t("./core.get-iterator-method");e.exports=function(t,e,r,a){var f,_,l,p=u(t),d=n(r,a,e?2:1),h=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(i(p))for(f=c(t.length);f>h;h++)e?d(s(_=t[h])[0],_[1]):d(t[h]);else for(l=p.call(t);!(_=l.next()).done;)o(l,d,_.value,e)}},{"./_an-object":9,"./_ctx":15,"./_is-array-iter":30,"./_iter-call":33,"./_to-length":55,"./core.get-iterator-method":58}],23:[function(t,e,r){var n=t("./_to-iobject"),o=t("./_").getNames,i={}.toString,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(e){return s.slice()}};e.exports.get=function(t){return s&&"[object Window]"==i.call(t)?c(t):o(n(t))}},{"./_":5,"./_to-iobject":54}],24:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],25:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],26:[function(t,e,r){var n=t("./_"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.setDesc(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_":5,"./_descriptors":17,"./_property-desc":43}],27:[function(t,e,r){e.exports=t("./_global").document&&document.documentElement},{"./_global":24}],28:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],29:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":11}],30:[function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},{"./_iterators":38,"./_wks":57}],31:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":11}],32:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],33:[function(t,e,r){var n=t("./_an-object");e.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(i){var s=t["return"];throw void 0!==s&&n(s.call(t)),i}}},{"./_an-object":9}],34:[function(t,e,r){"use strict";var n=t("./_"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n.create(s,{next:o(1,r)}),i(t,e+" Iterator")}},{"./_":5,"./_hide":26,"./_property-desc":43,"./_set-to-string-tag":48,"./_wks":57}],35:[function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),s=t("./_hide"),c=t("./_has"),u=t("./_iterators"),a=t("./_iter-create"),f=t("./_set-to-string-tag"),_=t("./_").getProto,l=t("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",g=function(){return this};e.exports=function(t,e,r,m,y,b,w){a(r,e,m);var x,j,k,S=function(t){if(!p&&t in D)return D[t];switch(t){case h:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},O=e+" Iterator",E=y==v,P=!1,D=t.prototype,F=D[l]||D[d]||y&&D[y],M=F||S(y),N=y?E?S("entries"):M:void 0,A="Array"==e?D.entries||F:F;if(A&&(k=_(A.call(new t)),k!==Object.prototype&&(f(k,O,!0),n||c(k,l)||s(k,l,g))),E&&F&&F.name!==v&&(P=!0,M=function(){return F.call(this)}),n&&!w||!p&&!P&&D[l]||s(D,l,M),u[e]=M,u[O]=g,y)if(x={values:E?M:S(v),keys:b?M:S(h),entries:N},w)for(j in x)j in D||i(D,j,x[j]);else o(o.P+o.F*(p||P),e,x);return x}},{"./_":5,"./_export":20,"./_has":25,"./_hide":26,"./_iter-create":34,"./_iterators":38,"./_library":40,"./_redefine":45,"./_set-to-string-tag":48,"./_wks":57}],36:[function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(s){}e.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){r=!0},i[n]=function(){return s},t(i)}catch(c){}return r}},{"./_wks":57}],37:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],38:[function(t,e,r){e.exports={}},{}],39:[function(t,e,r){var n=t("./_"),o=t("./_to-iobject");e.exports=function(t,e){for(var r,i=o(t),s=n.getKeys(i),c=s.length,u=0;c>u;)if(i[r=s[u++]]===e)return r}},{"./_":5,"./_to-iobject":54}],40:[function(t,e,r){e.exports=!1},{}],41:[function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),s=t("./_").setDesc,c=0,u=Object.isExtensible||function(){return!0},a=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),f=function(t){s(t,n,{value:{i:"O"+ ++c,w:{}}})},_=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[n].i},l=function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[n].w},p=function(t){return a&&d.NEED&&u(t)&&!i(t,n)&&f(t),t},d=e.exports={KEY:n,NEED:!1,fastKey:_,getWeak:l,onFreeze:p}},{"./_":5,"./_fails":21,"./_has":25,"./_is-object":32,"./_uid":56}],42:[function(t,e,r){var n,o,i,s=t("./_global"),c=t("./_task").set,u=s.MutationObserver||s.WebKitMutationObserver,a=s.process,f=s.Promise,_="process"==t("./_cof")(a),l=function(){var t,e,r;for(_&&(t=a.domain)&&(a.domain=null,t.exit());n;)e=n.domain,r=n.fn,e&&e.enter(),r(),e&&e.exit(),n=n.next;o=void 0,t&&t.enter()};if(_)i=function(){a.nextTick(l)};else if(u){var p=1,d=document.createTextNode("");new u(l).observe(d,{characterData:!0}),i=function(){d.data=p=-p}}else i=f&&f.resolve?function(){f.resolve().then(l)}:function(){c.call(s,l)};e.exports=function(t){var e={fn:t,next:void 0,domain:_&&a.domain};o&&(o.next=e),n||(n=e,i()),o=e}},{"./_cof":11,"./_global":24,"./_task":52}],43:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],44:[function(t,e,r){var n=t("./_redefine");e.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},{"./_redefine":45}],45:[function(t,e,r){var n=t("./_global"),o=t("./_hide"),i=t("./_uid")("src"),s="toString",c=Function[s],u=(""+c).split(s);t("./_core").inspectSource=function(t){return c.call(t)},(e.exports=function(t,e,r,s){"function"==typeof r&&(r.hasOwnProperty(i)||o(r,i,t[e]?""+t[e]:u.join(String(e))),r.hasOwnProperty("name")||o(r,"name",e)),t===n?t[e]=r:s?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r))})(Function.prototype,s,function(){return"function"==typeof this&&this[i]||c.call(this)})},{"./_core":14,"./_global":24,"./_hide":26,"./_uid":56}],46:[function(t,e,r){var n=t("./_").getDesc,o=t("./_is-object"),i=t("./_an-object"),s=function(t,e){if(i(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,o){try{o=t("./_ctx")(Function.call,n(Object.prototype,"__proto__").set,2),o(e,[]),r=!(e instanceof Array)}catch(i){r=!0}return function(t,e){return s(t,e),r?t.__proto__=e:o(t,e),t}}({},!1):void 0),check:s}},{"./_":5,"./_an-object":9,"./_ctx":15,"./_is-object":32}],47:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_"),i=t("./_descriptors"),s=t("./_wks")("species");e.exports=function(t){var e=n[t];i&&e&&!e[s]&&o.setDesc(e,s,{configurable:!0,get:function(){return this}})}},{"./_":5,"./_descriptors":17,"./_global":24,"./_wks":57}],48:[function(t,e,r){var n=t("./_").setDesc,o=t("./_has"),i=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},{"./_":5,"./_has":25,"./_wks":57}],49:[function(t,e,r){var n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":24}],50:[function(t,e,r){var n=t("./_an-object"),o=t("./_a-function"),i=t("./_wks")("species");e.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[i])?e:o(r)}},{"./_a-function":6,"./_an-object":9,"./_wks":57}],51:[function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");e.exports=function(t){return function(e,r){var i,s,c=String(o(e)),u=n(r),a=c.length;return 0>u||u>=a?t?"":void 0:(i=c.charCodeAt(u),55296>i||i>56319||u+1===a||(s=c.charCodeAt(u+1))<56320||s>57343?t?c.charAt(u):i:t?c.slice(u,u+2):(i-55296<<10)+(s-56320)+65536)}}},{"./_defined":16,"./_to-integer":53}],52:[function(t,e,r){var n,o,i,s=t("./_ctx"),c=t("./_invoke"),u=t("./_html"),a=t("./_dom-create"),f=t("./_global"),_=f.process,l=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,h=0,v={},g="onreadystatechange",m=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},y=function(t){m.call(t.data)};l&&p||(l=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return v[++h]=function(){c("function"==typeof t?t:Function(t),e)},n(h),h},p=function(t){delete v[t]},"process"==t("./_cof")(_)?n=function(t){_.nextTick(s(m,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=y,n=s(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",y,!1)):n=g in a("script")?function(t){u.appendChild(a("script"))[g]=function(){u.removeChild(this),m.call(t)}}:function(t){setTimeout(s(m,t,1),0)}),e.exports={set:l,clear:p}},{"./_cof":11,"./_ctx":15,"./_dom-create":18,"./_global":24,"./_html":27,"./_invoke":28}],53:[function(t,e,r){var n=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},{}],54:[function(t,e,r){var n=t("./_iobject"),o=t("./_defined");e.exports=function(t){return n(o(t))}},{"./_defined":16,"./_iobject":29}],55:[function(t,e,r){var n=t("./_to-integer"),o=Math.min;e.exports=function(t){return t>0?o(n(t),9007199254740991):0}},{"./_to-integer":53}],56:[function(t,e,r){var n=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},{}],57:[function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,s="function"==typeof i;e.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}},{"./_global":24,"./_shared":49,"./_uid":56}],58:[function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[n(t)]:void 0}},{"./_classof":10,"./_core":14,"./_iterators":38,"./_wks":57}],59:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),s=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":7,"./_iter-define":35,"./_iter-step":37,"./_iterators":38,"./_to-iobject":54}],60:[function(t,e,r){"use strict";var n=t("./_collection-strong");t("./_collection")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(this,t);return e&&e.v},set:function(t,e){return n.def(this,0===t?0:t,e)}},n,!0)},{"./_collection":13,"./_collection-strong":12}],61:[function(t,e,r){"use strict";var n=t("./_classof"),o={};o[t("./_wks")("toStringTag")]="z",o+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":10,"./_redefine":45,"./_wks":57}],62:[function(t,e,r){"use strict";var n,o,i,s=t("./_"),c=(t("./_library"),t("./_global")),u=t("./_ctx"),a=t("./_classof"),f=t("./_export"),_=t("./_is-object"),l=(t("./_an-object"),t("./_a-function")),p=t("./_an-instance"),d=t("./_for-of"),h=t("./_set-proto").set,v=t("./_species-constructor"),g=t("./_task").set,m=t("./_microtask"),y="Promise",b=c.TypeError,w=c.process,x=c[y],j="process"==a(w),k=function(t){var e=new x(function(){});return t&&(e.constructor=Object),x.resolve(e)===e},S=function(){var e=!1,r=function(t){var e=new x(t);return h(e,r.prototype),e};try{if(e=x&&x.resolve&&k(),h(r,x),r.prototype=s.create(x.prototype,{constructor:{value:r}}),r.resolve(5).then(function(){})instanceof r||(e=!1),e&&t("./_descriptors")){var n=!1;x.resolve(s.setDesc({},"then",{get:function(){n=!0}})),e=n}}catch(o){e=!1}return!!e}(),O=function(t,e){return t===e||t===x&&e===i},E=function(t){var e;return _(t)&&"function"==typeof(e=t.then)?e:!1},P=function(t){return O(x,t)?new D(t):new o(t)},D=o=function(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw b("Bad Promise constructor");e=t,r=n}),this.resolve=l(e),this.reject=l(r)},F=function(t){try{t()}catch(e){return{error:e}}},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,o=1==t._s,i=0,s=function(e){var r,i,s=o?e.ok:e.fail,c=e.resolve,u=e.reject;try{s?(o||(2==t._h&&T(t),t._h=1),r=s===!0?n:s(n),r===e.promise?u(b("Promise-chain cycle")):(i=E(r))?i.call(r,c,u):c(r)):u(n)}catch(a){u(a)}};r.length>i;)s(r[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){g.call(c,function(){if(A(t)){var e,r,n=t._v;j?w.emit("unhandledRejection",n,t):(e=c.onunhandledrejection)?e({promise:t,reason:n}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",n),t._h=2}t._a=void 0})},A=function(t){var e,r=t._a||t._c,n=0;if(1==t._h)return!1;for(;r.length>n;)if(e=r[n++],e.fail||!A(e.promise))return!1;return!0},T=function(t){g.call(c,function(){var e;j?w.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},C=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw b("Promise can't be resolved itself");(e=E(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,u(I,n,1),u(C,n,1))}catch(o){C.call(n,o)}}):(r._v=t,r._s=1,M(r,!1))}catch(n){C.call({_w:r,_d:!1},n)}}};S||(x=function(t){p(this,x,y,"_h"),l(t),n.call(this);try{t(u(I,this,1),u(C,this,1))}catch(e){C.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=t("./_redefine-all")(x.prototype,{then:function(t,e){var r=P(v(this,x));return r.ok="function"==typeof t?t:!0,r.fail="function"==typeof e&&e,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},"catch":function(t){return this.then(void 0,t)}}),D=function(){var t=new n;this.promise=t,this.resolve=u(I,t,1),this.reject=u(C,t,1)}),f(f.G+f.W+f.F*!S,{Promise:x}),t("./_set-to-string-tag")(x,y),t("./_set-species")(y),i=t("./_core")[y],f(f.S+f.F*!S,y,{reject:function(t){var e=P(this),r=e.reject;return r(t),e.promise}}),f(f.S+f.F*(!S||k(!0)),y,{resolve:function(t){if(t instanceof x&&O(t.constructor,this))return t;var e=P(this),r=e.resolve;return r(t),e.promise}}),f(f.S+f.F*!(S&&t("./_iter-detect")(function(t){x.all(t)["catch"](function(){})})),y,{all:function(t){var e=this,r=P(e),n=r.resolve,o=r.reject,i=[],c=F(function(){d(t,!1,i.push,i);var r=i.length,c=Array(r);r?s.each.call(i,function(t,i){var s=!1;e.resolve(t).then(function(t){s||(s=!0,c[i]=t,--r||n(c))},o)}):n(c)});return c&&o(c.error),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,o=F(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o&&n(o.error),r.promise}})},{"./_":5,"./_a-function":6,"./_an-instance":8,"./_an-object":9,"./_classof":10,"./_core":14,"./_ctx":15,"./_descriptors":17,"./_export":20,"./_for-of":22,"./_global":24,"./_is-object":32,"./_iter-detect":36,"./_library":40,"./_microtask":42,"./_redefine-all":44,"./_set-proto":46,"./_set-species":47,"./_set-to-string-tag":48,"./_species-constructor":50,"./_task":52}],63:[function(t,e,r){"use strict";var n=t("./_collection-strong");t("./_collection")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(this,t=0===t?0:t,t)}},n)},{"./_collection":13,"./_collection-strong":12}],64:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":35,"./_string-at":51}],65:[function(t,e,r){"use strict";var n=t("./_"),o=t("./_global"),i=t("./_core"),s=t("./_has"),c=t("./_descriptors"),u=t("./_export"),a=t("./_redefine"),f=t("./_meta").KEY,_=t("./_fails"),l=t("./_shared"),p=t("./_set-to-string-tag"),d=t("./_uid"),h=t("./_wks"),v=t("./_keyof"),g=t("./_get-names"),m=t("./_enum-keys"),y=t("./_is-array"),b=t("./_an-object"),w=t("./_to-iobject"),x=t("./_property-desc"),j=n.getDesc,k=n.setDesc,S=n.create,O=g.get,E=o.Symbol,P=o.JSON,D=P&&P.stringify,F=!1,M=h("_hidden"),N=n.isEnum,A=l("symbol-registry"),T=l("symbols"),C=Object.prototype,I="function"==typeof E,K=c&&_(function(){return 7!=S(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=j(C,e);n&&delete C[e],k(t,e,r),n&&t!==C&&k(C,e,n)}:k,L=function(t){var e=T[t]=S(E.prototype);return e._k=t,c&&F&&K(C,t,{configurable:!0,set:function(e){s(this,M)&&s(this[M],t)&&(this[M][t]=!1),K(this,t,x(1,e))}}),e},W=function(t){return"symbol"==typeof t},z=function(t,e,r){return r&&s(T,e)?(r.enumerable?(s(t,M)&&t[M][e]&&(t[M][e]=!1),r=S(r,{enumerable:x(0,!1)})):(s(t,M)||k(t,M,x(1,{})),t[M][e]=!0),K(t,e,r)):k(t,e,r)},U=function(t,e){b(t);for(var r,n=m(e=w(e)),o=0,i=n.length;i>o;)z(t,r=n[o++],e[r]);return t},G=function(t,e){return void 0===e?S(t):U(S(t),e)},q=function(t){var e=N.call(this,t);return e||!s(this,t)||!s(T,t)||s(this,M)&&this[M][t]?e:!0},J=function(t,e){var r=j(t=w(t),e);return!r||!s(T,e)||s(t,M)&&t[M][e]||(r.enumerable=!0),r},B=function(t){for(var e,r=O(w(t)),n=[],o=0;r.length>o;)s(T,e=r[o++])||e==M||e==f||n.push(e);return n},R=function(t){for(var e,r=O(w(t)),n=[],o=0;r.length>o;)s(T,e=r[o++])&&n.push(T[e]);return n},Y=function(t){if(void 0!==t&&!W(t)){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);return e=n[1],"function"==typeof e&&(r=e),(r||!y(e))&&(e=function(t,e){return r&&(e=r.call(this,t,e)),W(e)?void 0:e}),n[1]=e,D.apply(P,n)}},H=_(function(){var t=E();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))});I||(E=function(){if(W(this))throw TypeError("Symbol is not a constructor");return L(d(arguments.length>0?arguments[0]:void 0))},a(E.prototype,"toString",function(){return this._k}),W=function(t){return t instanceof E},n.create=G,n.isEnum=q,n.getDesc=J,n.setDesc=z,n.setDescs=U,n.getNames=g.get=B,n.getSymbols=R,c&&!t("./_library")&&a(C,"propertyIsEnumerable",q,!0)),u(u.G+u.W+u.F*!I,{Symbol:E}),n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=i.Symbol,r=h(t);t in e||k(e,t,{value:I?r:L(r)})}),F=!0,u(u.S+u.F*!I,"Symbol",{"for":function(t){return s(A,t+="")?A[t]:A[t]=E(t)},keyFor:function(t){return v(A,t)},useSetter:function(){F=!0},useSimple:function(){F=!1}}),u(u.S+u.F*!I,"Object",{create:G,defineProperty:z,defineProperties:U,getOwnPropertyDescriptor:J,getOwnPropertyNames:B,getOwnPropertySymbols:R}),P&&u(u.S+u.F*(!I||H),"JSON",{stringify:Y}),p(E,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},{"./_":5,"./_an-object":9,"./_core":14,"./_descriptors":17,"./_enum-keys":19,"./_export":20,"./_fails":21,"./_get-names":23,"./_global":24,"./_has":25,"./_is-array":31,"./_keyof":39,"./_library":40,"./_meta":41,"./_property-desc":43,"./_redefine":45,"./_set-to-string-tag":48,"./_shared":49,"./_to-iobject":54,"./_uid":56,"./_wks":57}],66:[function(t,e,r){var n=t("./es6.array.iterator"),o=t("./_redefine"),i=t("./_global"),s=t("./_hide"),c=t("./_iterators"),u=t("./_wks"),a=u("iterator"),f=u("toStringTag"),_=c.Array;t("./_").each.call(["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],function(t){var e,r=i[t],u=r&&r.prototype;if(u){u[a]||s(u,a,_),u[f]||s(u,f,t),c[t]=_;for(e in n)u[e]||o(u,e,n[e],!0)}})},{"./_":5,"./_global":24,"./_hide":26,"./_iterators":38,"./_redefine":45,"./_wks":57,"./es6.array.iterator":59}],67:[function(t,e,r){(function(e){"undefined"!=typeof window?(window.Symbol=t("core-js/es6/symbol"),window.Promise=t("core-js/es6/promise"),window.Set=t("core-js/es6/set"),window.Map=t("core-js/es6/map")):(e.Symbol=t("core-js/es6/symbol"),e.Promise=t("core-js/es6/promise"),e.Set=t("core-js/es6/set"),e.Map=t("core-js/es6/map"))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/es6/map":1,"core-js/es6/promise":2,"core-js/es6/set":3,"core-js/es6/symbol":4}]},{},[67]);

@@ -314,3 +314,5 @@ 'use strict';

value: function find(query) {
return new _defaultCursorClass(this, query);
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
return new _defaultCursorClass(this, query, options);
}

@@ -330,3 +332,5 @@

value: function findOne(query, sortObj) {
return this.find(query).sort(sortObj).limit(1).aggregate(function (docs) {
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
return this.find(query, options).sort(sortObj).limit(1).aggregate(function (docs) {
return docs[0];

@@ -333,0 +337,0 @@ });

@@ -12,2 +12,6 @@ 'use strict';

var _bind2 = require('fast.js/function/bind');
var _bind3 = _interopRequireDefault(_bind2);
var _forEach = require('fast.js/forEach');

@@ -107,3 +111,3 @@

var updatedFn = cursor._propagateUpdate ? cursor._propagateUpdate.bind(cursor) : function () {};
var updatedFn = cursor._propagateUpdate ? (0, _bind3.default)(cursor._propagateUpdate, cursor) : function () {};

@@ -141,3 +145,3 @@ var res = pipeObj.value(docs, updatedFn, i, len);

function Cursor(db, query) {
function Cursor(db, query, options) {
_classCallCheck(this, Cursor);

@@ -148,2 +152,3 @@

_this.db = db;
_this.options = options;
_this._query = query;

@@ -311,3 +316,7 @@ _this._pipeline = [];

this._executing = this._matchObjects().then(function (docs) {
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
this._executing = this._prepareCursor(options).then(function () {
return _this3._matchObjects();
}).then(function (docs) {
var clonned = (0, _map3.default)(docs, function (doc) {

@@ -329,3 +338,5 @@ return _EJSON2.default.clone(doc);

this._executing = this._matchObjects().then(function (docs) {
this._executing = this._prepareCursor().then(function () {
return _this4._matchObjects();
}).then(function (docs) {
return (0, _map3.default)(docs, function (x) {

@@ -352,2 +363,9 @@ return x._id;

}, {
key: '_prepareCursor',
value: function _prepareCursor() {
var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
return Promise.resolve();
}
}, {
key: '_matchObjects',

@@ -354,0 +372,0 @@ value: function _matchObjects() {

@@ -11,2 +11,6 @@ 'use strict';

var _bind2 = require('fast.js/function/bind');
var _bind3 = _interopRequireDefault(_bind2);
var _checkTypes = require('check-types');

@@ -48,9 +52,9 @@

function CursorObservable(db, query) {
function CursorObservable(db, query, options) {
_classCallCheck(this, CursorObservable);
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(CursorObservable).call(this, db, query));
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(CursorObservable).call(this, db, query, options));
_this.update = debounce(_this.update.bind(_this), 1000 / 15, 10);
_this.maybeUpdate = _this.maybeUpdate.bind(_this);
_this.update = debounce((0, _bind3.default)(_this.update, _this), 1000 / 15, 10);
_this.maybeUpdate = (0, _bind3.default)(_this.maybeUpdate, _this);
return _this;

@@ -157,3 +161,3 @@ }

} else {
var firstUpdatePromise = this.update(true);
var firstUpdatePromise = this.update.func(true);
return createStoppablePromise(firstUpdatePromise);

@@ -190,3 +194,6 @@ }

return this.exec().then(function (result) {
return this.exec({
observable: true,
firstRun: firstRun
}).then(function (result) {
_this3._latestResult = result;

@@ -362,2 +369,3 @@ _this3._updateLatestIds();

debouncer.cancel = cancel;
debouncer.func = func;
return debouncer;

@@ -364,0 +372,0 @@ }

@@ -46,2 +46,4 @@ 'use strict';

* by given query based on _id field of the query
*
* TODO: there is a place for indexes
* @param {Object} query

@@ -48,0 +50,0 @@ * @return {Promise}

@@ -10,2 +10,6 @@ 'use strict';

var _bind2 = require('fast.js/function/bind');
var _bind3 = _interopRequireDefault(_bind2);
var _keys2 = require('fast.js/object/keys');

@@ -117,3 +121,3 @@

};
var buildPromise = this._queue.add(this._doBuildIndex.bind(this, key)).then(cleanup, cleanup);
var buildPromise = this._queue.add((0, _bind3.default)(this._doBuildIndex, this, key)).then(cleanup, cleanup);

@@ -136,3 +140,3 @@ this.indexes[key].buildPromise = buildPromise;

return Promise.all((0, _map3.default)((0, _keys3.default)(this.indexes), function (k) {
return Promise.all((0, _map3.default)(this.indexes, function (v, k) {
return _this2.ensureIndex({

@@ -139,0 +143,0 @@ fieldName: k,

@@ -118,2 +118,3 @@ 'use strict';

value: function _loadStorage() {
this._storage = {};
return Promise.resolve();

@@ -120,0 +121,0 @@ }

@@ -246,4 +246,4 @@ import _each from 'fast.js/forEach';

*/
find(query) {
return new _defaultCursorClass(this, query);
find(query, options = {}) {
return new _defaultCursorClass(this, query, options);
}

@@ -259,4 +259,4 @@

*/
findOne(query, sortObj) {
return this.find(query)
findOne(query, sortObj, options = {}) {
return this.find(query, options)
.sort(sortObj).limit(1)

@@ -263,0 +263,0 @@ .aggregate(docs => docs[0]);

@@ -0,1 +1,2 @@

import _bind from 'fast.js/function/bind';
import _each from 'fast.js/forEach';

@@ -62,3 +63,3 @@ import _map from 'fast.js/map';

const updatedFn = (cursor._propagateUpdate)
? cursor._propagateUpdate.bind(cursor)
? _bind(cursor._propagateUpdate, cursor)
: function() {};

@@ -99,5 +100,6 @@

export class Cursor extends EventEmitter {
constructor(db, query) {
constructor(db, query, options) {
super();
this.db = db;
this.options = options;
this._query = query;

@@ -278,4 +280,5 @@ this._pipeline = [];

exec() {
this._executing = this._matchObjects()
exec(options = {}) {
this._executing = this._prepareCursor(options)
.then(() => this._matchObjects())
.then(docs => {

@@ -294,5 +297,6 @@ const clonned = _map(docs, doc => EJSON.clone(doc));

ids() {
this._executing = this._matchObjects().then((docs) => {
return _map(docs, x => x._id);
}).then((ids) => {
this._executing = this._prepareCursor()
.then(() => this._matchObjects())
.then((docs) => _map(docs, x => x._id))
.then((ids) => {
this._executing = null;

@@ -313,2 +317,6 @@ return ids;

_prepareCursor(options = {}) {
return Promise.resolve();
}
_matchObjects() {

@@ -315,0 +323,0 @@ return new DocumentRetriver(this.db)

@@ -0,1 +1,2 @@

import _bind from 'fast.js/function/bind';
import _check from 'check-types';

@@ -13,6 +14,6 @@ import _map from 'fast.js/map';

export class CursorObservable extends Cursor {
constructor(db, query) {
super(db, query);
this.update = debounce(this.update.bind(this), 1000 / 15, 10);
this.maybeUpdate = this.maybeUpdate.bind(this);
constructor(db, query, options) {
super(db, query, options);
this.update = debounce(_bind(this.update, this), 1000 / 15, 10);
this.maybeUpdate = _bind(this.maybeUpdate, this);
}

@@ -103,3 +104,3 @@

} else {
const firstUpdatePromise = this.update(true);
const firstUpdatePromise = this.update.func(true);
return createStoppablePromise(firstUpdatePromise);

@@ -126,3 +127,6 @@ }

update(firstRun = false) {
return this.exec().then((result) => {
return this.exec({
observable: true,
firstRun: firstRun,
}).then((result) => {
this._latestResult = result;

@@ -296,2 +300,3 @@ this._updateLatestIds();

debouncer.cancel = cancel;
debouncer.func = func;
return debouncer;

@@ -298,0 +303,0 @@ }

@@ -22,2 +22,4 @@ import _check from 'check-types';

* by given query based on _id field of the query
*
* TODO: there is a place for indexes
* @param {Object} query

@@ -24,0 +26,0 @@ * @return {Promise}

@@ -0,1 +1,2 @@

import _bind from 'fast.js/function/bind';
import _keys from 'fast.js/object/keys';

@@ -77,3 +78,3 @@ import _each from 'fast.js/forEach';

const buildPromise = this._queue.add(
this._doBuildIndex.bind(this, key)
_bind(this._doBuildIndex, this, key)
).then(cleanup, cleanup);

@@ -93,3 +94,3 @@

return Promise.all(
_map(_keys(this.indexes), k => {
_map(this.indexes, (v, k) => {
return this.ensureIndex({

@@ -96,0 +97,0 @@ fieldName: k,

{
"name": "marsdb",
"version": "0.4.3",
"version": "0.4.4",
"author": {

@@ -5,0 +5,0 @@ "name": "Artem Artemev",

@@ -5,2 +5,3 @@ if (typeof window !== 'undefined') {

window.Set = require("core-js/es6/set");
window.Map = require("core-js/es6/map");
} else {

@@ -10,2 +11,3 @@ global.Symbol = require("core-js/es6/symbol");

global.Set = require("core-js/es6/set");
global.Map = require("core-js/es6/map");
}
<div style="text-align:center"><img src="https://static.studytime.me/marsdb.png" /></div>
MarsDB
[MarsDB](https://github.com/c58/marsdb)
=========

@@ -9,7 +9,7 @@

[![Coverage Status](https://coveralls.io/repos/c58/marsdb/badge.svg?branch=master&service=github)](https://coveralls.io/github/c58/marsdb?branch=master)
[![Dependency Status](https://david-dm.org/c58/marsdb.svg)](https://david-dm.org/c58/marsdb)
[![Dependency Status](https://david-dm.org/c58/marsdb.svg)](https://david-dm.org/c58/marsdb)
[![Join the chat at https://gitter.im/c58/marsdb](https://badges.gitter.im/c58/marsdb.svg)](https://gitter.im/c58/marsdb?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
MarsDB is a lightweight client-side database.
It's based on a Meteor’s `minimongo` matching/modifying implementation. It's carefully written on `ES6`, have a `Promise` based interface and may be backed with any storage implementation (LevelUP, LocalStorage, IndexedDB, etc). For now implemented only LocalStorage and [LocalForage](https://github.com/mozilla/localForage) storage managers. It's also supports `observable` cursors.
It's based on a Meteor’s **minimongo** matching/modifying implementation. It's carefully written on **ES6**, have a **Promise based** interface and may be backed with any storage implementation (LevelUP, LocalStorage, IndexedDB, etc). For now implemented only LocalStorage and [LocalForage](https://github.com/mozilla/localForage) storage managers. It's also supports **observable** cursors.

@@ -40,2 +40,3 @@ MarsDB supports any kind of find/update/remove operations that Meteor’s minimongo does. So, go to the Meteor docs for supported query/modifier operations.

* [LocalStorage](https://github.com/c58/marsdb-localstorage)
* [LevelUP](https://github.com/c58/marsdb-levelup)

@@ -56,3 +57,3 @@ ## Server-side synchronizers

import Collection from ‘marsdb’;
import LocalStorageManager from 'marsdb/lib/LocalStorageManager';
import LocalStorageManager from 'marsdb-localstorage';

@@ -106,3 +107,3 @@ // Setup different id generator and storage managers

### Find with observing changes
Observable cursor returned only by a `find` method of a collection. Updates of the cursor is batched and debounced (default batch size is `20` and debounce time is `1000 / 15` ms). You can change the paramters by `batchSize` and `debounce` methods of an observable cursor (methods is chained).
Observable cursor returned by a `find` and `findOne` methods of a collection. Updates of the cursor is batched and debounced (default batch size is `20` and debounce time is `1000 / 15` ms). You can change the paramters by `batchSize` and `debounce` methods of an observable cursor (methods is chained).

@@ -109,0 +110,0 @@ ```javascript

@@ -347,13 +347,20 @@ import Collection from '../../lib/Collection';

setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'))
}
}, 90);
setTimeout(() => {
if (!called) {
done(new Error('Must be called after debounce'))
} else {
done();
done(new Error('Should be called'));
}
}, 110);
db.insert({b: 4.5});
called = false;
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'))
}
}, 90);
setTimeout(() => {
if (!called) {
done(new Error('Must be called after debounce'))
} else {
done();
}
}, 120);
}, 10);
});

@@ -369,24 +376,31 @@

setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
if (!called) {
done(new Error('Should be called'));
}
db.insert({b: 4.5});
}, 90);
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
}
}, 110);
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
}
}, 190);
setTimeout(() => {
if (!called) {
done(new Error('Must be called after debounce'));
} else {
done();
}
}, 310);
called = false;
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
}
db.insert({b: 4.5});
}, 90);
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
}
}, 110);
setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
}
}, 190);
setTimeout(() => {
if (!called) {
done(new Error('Must be called after debounce'));
} else {
done();
}
}, 310);
}, 10);
});

@@ -406,6 +420,7 @@ });

setTimeout(() => {
if (called) {
done(new Error('Can\'t be called before debounce'));
if (!called) {
done(new Error('Should be called'));
}
Promise.all([1, 2, 3, 4].map(x => db.insert({b: 4.5}))).then(() => {
called = false;
Promise.all([1, 2, 3, 4, 5].map(x => db.insert({b: 4.5}))).then(() => {
setTimeout(() => {

@@ -412,0 +427,0 @@ if (called) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc