text: !function i(s,u,a){function c(t,e){if(!u[t]){if(!s[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var o=u[t]={exports:{}};s[t][0].call(o.exports,function(e){return c(s[t][1][e]||e)},o,o.exports,i,s,u,a)}return u[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("@babel/polyfill");var o=n(e("./index.js"));o.default.plugin(e("pouchdb-adapter-idb")),o.default.plugin(e("pouchdb-adapter-http")),window.RxDB=o.default},{"./index.js":8,"@babel/polyfill":53,"@babel/runtime/helpers/interopRequireDefault":60,"pouchdb-adapter-http":438,"pouchdb-adapter-idb":439}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChangeEventBuffer=function(e){return new n(e)},r.ChangeEventBuffer=void 0;var n=function(){function e(e){var t=this;this.subs=[],this.limit=100,this.counter=0,this.eventCounterMap=new WeakMap,this.buffer=[],this.collection=e,this.subs.push(this.collection.$.subscribe(function(e){return t._handleChangeEvent(e)}))}var t=e.prototype;return t._handleChangeEvent=function(e){for(this.counter++,this.buffer.push(e),this.eventCounterMap.set(e,this.counter);this.buffer.length>this.limit;)this.buffer.shift()},t.getArrayIndexByPointer=function(e){var t=this.buffer[0],r=this.eventCounterMap.get(t);return e<r?null:e-r},t.getFrom=function(e){var t=[],r=this.getArrayIndexByPointer(e);if(null===r)return null;for(;;){var n=this.buffer[r];if(r++,!n)return t;t.push(n)}},t.runFrom=function(e,t){var r=this.getFrom(e);if(null===r)throw new Error("out of bounds");r.forEach(function(e){return t(e)})},t.reduceByLastOfDoc=function(e){var t={};return e.forEach(function(e){t[e.data.doc]=e}),Object.values(t)},t.hasChangeWithRevision=function(e){for(var t=this.buffer.length;0<t;){t--;var r=this.buffer[t];if(r.data.v&&r.data.v._rev===e)return!0}return!1},t.destroy=function(){this.subs.forEach(function(e){return e.unsubscribe()})},e}();r.ChangeEventBuffer=n},{}],3:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"QueryChangeDetector",{enumerable:!0,get:function(){return o.QueryChangeDetector}}),Object.defineProperty(r,"PouchDB",{enumerable:!0,get:function(){return s.PouchDB}}),Object.defineProperty(r,"create",{enumerable:!0,get:function(){return u.create}}),Object.defineProperty(r,"removeDatabase",{enumerable:!0,get:function(){return u.removeDatabase}}),Object.defineProperty(r,"checkAdapter",{enumerable:!0,get:function(){return u.checkAdapter}}),Object.defineProperty(r,"isRxDatabase",{enumerable:!0,get:function(){return u.isInstanceOf}}),Object.defineProperty(r,"dbCount",{enumerable:!0,get:function(){return u.dbCount}}),Object.defineProperty(r,"createRxDatabase",{enumerable:!0,get:function(){return u.create}}),Object.defineProperty(r,"isRxCollection",{enumerable:!0,get:function(){return a.isInstanceOf}}),Object.defineProperty(r,"isRxDocument",{enumerable:!0,get:function(){return c.isInstanceOf}}),Object.defineProperty(r,"isRxQuery",{enumerable:!0,get:function(){return l.isInstanceOf}}),Object.defineProperty(r,"isRxSchema",{enumerable:!0,get:function(){return f.isInstanceOf}}),Object.defineProperty(r,"createRxSchema",{enumerable:!0,get:function(){return f.createRxSchema}}),Object.defineProperty(r,"RxSchema",{enumerable:!0,get:function(){return f.RxSchema}}),Object.defineProperty(r,"RxChangeEvent",{enumerable:!0,get:function(){return p.RxChangeEvent}}),r.default=r.plugin=void 0;var o=e("./query-change-detector"),i=n(e("./plugin")),s=e("./pouch-db"),u=e("./rx-database"),a=e("./rx-collection"),c=e("./rx-document"),l=e("./rx-query"),f=e("./rx-schema"),p=e("./rx-change-event"),h=i.default;r.plugin=h;var d={create:u.create,removeDatabase:u.removeDatabase,checkAdapter:u.checkAdapter,plugin:h,dbCount:u.dbCount,isRxDatabase:u.isInstanceOf,isRxCollection:a.isInstanceOf,isRxDocument:c.isInstanceOf,isRxQuery:l.isInstanceOf,isRxSchema:f.isInstanceOf,PouchDB:s.PouchDB,QueryChangeDetector:o.QueryChangeDetector};r.default=d},{"./plugin":12,"./pouch-db":27,"./query-change-detector":29,"./rx-change-event":30,"./rx-collection":32,"./rx-database":33,"./rx-document":35,"./rx-query":37,"./rx-schema":38,"@babel/runtime/helpers/interopRequireDefault":60}],4:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.create=u,r.default=r.Crypter=void 0;var i=n(e("object-path")),s=e("./util"),o=function(){function e(e,t){this.password=e,this.schema=t}var t=e.prototype;return t._encryptValue=function(){throw(0,s.pluginMissing)("encryption")},t._decryptValue=function(){throw(0,s.pluginMissing)("encryption")},t.encrypt=function(n){var o=this;return this.password&&(n=(0,s.clone)(n),Object.keys(this.schema.encryptedPaths).forEach(function(e){var t=i.default.get(n,e);if(void 0!==t){var r=o._encryptValue(t);i.default.set(n,e,r)}})),n},t.decrypt=function(n){var o=this;return this.password&&(n=(0,s.clone)(n),Object.keys(this.schema.encryptedPaths).forEach(function(e){var t=i.default.get(n,e);if(void 0!==t){var r=o._decryptValue(t);i.default.set(n,e,r)}})),n},e}();function u(e,t){return new o(e,t)}var a={create:u,Crypter:r.Crypter=o};r.default=a},{"./util":52,"@babel/runtime/helpers/interopRequireDefault":60,"object-path":428}],5:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.createOldCollection=d,r._getOldCollections=b,r.mustMigrate=v,r.createDataMigrator=function(e,t){return new h(e,t)},r._runStrategyIfNotNull=y,r.getBatchOfOldCollection=_,r.migrateDocumentData=m,r._migrateDocument=g,r.deleteOldCollection=w,r.migrateOldCollection=x,r.migratePromise=function(r,n){r._migratePromise||(r._migratePromise=new Promise(function(e,t){x(r,n).subscribe(null,t,e)}));return r._migratePromise},r.DataMigrator=void 0;var o=e("./pouch-db"),c=e("./util"),s=e("./rx-schema"),l=e("./rx-error"),u=n(e("./overwritable")),i=e("./hooks"),f=e("rxjs"),a=e("./crypter"),p=e("./rx-collection-helper"),h=function(){function e(e,t){this._migrated=!1,this.newestCollection=e,this.migrationStrategies=t,this.currentSchema=e.schema,this.database=e.database,this.name=e.name}var t=e.prototype;return t.migrate=function(e){var t=this,i=0<arguments.length&&void 0!==e?e:10;if(this._migrated)throw(0,l.newRxError)("DM1");var s,u={done:!(this._migrated=!0),total:0,handled:0,success:0,deleted:0,percent:0},a=new f.Subject;return b(t).then(function(e){return s=e,Promise.all(s.map(function(e){return(0,o.countAllUndeleted)(e.pouchdb)}))}).then(function(e){var t=e.reduce(function(e,t){return e+t},0);u.total=t,a.next((0,c.flatClone)(u));for(var n=s.shift(),o=Promise.resolve(),r=function(){var r=x(n,i);o=o.then(function(){return new Promise(function(e){var t=r.subscribe(function(e){u.handled++,u[e.type]=u[e.type]+1,u.percent=Math.round(u.handled/u.total*100),a.next((0,c.flatClone)(u))},function(e){t.unsubscribe(),a.error(e)},function(){t.unsubscribe(),e()})})}),n=s.shift()};n;)r();return o}).then(function(){u.done=!0,u.percent=100,a.next((0,c.flatClone)(u)),a.complete()}),a.asObservable()},t.migratePromise=function(r){var n=this;return this._migratePromise||(this._migratePromise=v(this).then(function(e){return e?new Promise(function(e,t){n.migrate(r).subscribe(null,t,e)}):Promise.resolve(!1)})),this._migratePromise},e}();function d(e,t,r){var n=r.newestCollection.database,o=(0,s.createRxSchema)(t,!1),i={version:e,dataMigrator:r,newestCollection:r.newestCollection,database:n,schema:(0,s.createRxSchema)(t,!1),pouchdb:n._spawnPouchDB(r.newestCollection.name,e,r.newestCollection.pouchSettings),_crypter:(0,a.create)(n.password,o)};return o.doKeyCompression()&&(i._keyCompressor=u.default.createKeyCompressor(o)),i}function b(t){return Promise.all((0,s.getPreviousVersions)(t.currentSchema.jsonID).map(function(e){return t.database._collectionsPouch.get(t.name+"-"+e)}).map(function(e){return e.catch(function(){return null})})).then(function(e){return e.filter(function(e){return null!==e}).map(function(e){return d(e.schema.version,e.schema,t)})})}function v(e){return 0===e.currentSchema.version?Promise.resolve(!1):b(e).then(function(e){return 0!==e.length})}function y(e,t,r){if(null===r)return Promise.resolve(null);var n=e.dataMigrator.migrationStrategies[t](r);return(0,c.toPromise)(n)}function _(t,e){return(0,o.getBatch)(t.pouchdb,e).then(function(e){return e.map(function(e){return(0,p._handleFromPouch)(t,e)})})}function m(r,e){e=(0,c.clone)(e);for(var n=r.version+1,o=Promise.resolve(e),t=function(){var t=n;o=o.then(function(e){return y(r,t,e)}),n++};n<=r.newestCollection.schema.version;)t();return o.then(function(t){if(null===t)return Promise.resolve(null);try{r.newestCollection.schema.validate(t)}catch(e){throw(0,l.newRxError)("DM2",{fromVersion:r.version,toVersion:r.newestCollection.schema.version,finalDoc:t})}return t})}function g(t,e){var r={res:null,type:"",migrated:null,doc:e,oldCollection:t,newestCollection:t.newestCollection};return m(t,e).then(function(e){if(r.migrated=e)return(0,i.runPluginHooks)("preMigrateDocument",r),delete e._rev,t.newestCollection._pouchPut(e,!0).then(function(e){return r.res=e,r.type="success",(0,i.runAsyncPluginHooks)("postMigrateDocument",r)});r.type="deleted"}).then(function(){return t.pouchdb.remove((0,p._handleToPouch)(t,e)).catch(function(){})}).then(function(){return r})}function w(e){return e.pouchdb.destroy().then(function(){return e.database.removeCollectionDoc(e.dataMigrator.name,e.schema)})}function x(r){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;if(r._migrate)throw(0,l.newRxError)("DM3");r._migrate=!0;var n,o=new f.Subject;return function t(){return _(r,e).then(function(e){return 0===e.length?(w(r).then(function(){return o.complete()}),!1):Promise.all(e.map(function(e){return g(r,e).then(function(e){return o.next(e)})})).catch(function(e){return n=e}).then(function(){return!0})}).then(function(e){e&&(n?o.error(n):t())})}(),o.asObservable()}r.DataMigrator=h},{"./crypter":4,"./hooks":7,"./overwritable":11,"./pouch-db":27,"./rx-collection-helper":31,"./rx-error":36,"./rx-schema":38,"./util":52,"@babel/runtime/helpers/interopRequireDefault":60,rxjs:484}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createDocCache=function(){return new n},r.DocCache=void 0;var n=function(){function e(){this._map=new Map,this._map=new Map}var t=e.prototype;return t.get=function(e){return this._map.get(e)},t.set=function(e,t){return this._map.set(e,t)},t.delete=function(e){return this._map.delete(e)},e}();r.DocCache=n},{}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.runPluginHooks=function(e,t){n[e].forEach(function(e){return e(t)})},r.runAsyncPluginHooks=function(e,t){return Promise.all(n[e].map(function(e){return e(t)}))},r.clearHook=function(e,t){n[e]=n[e].filter(function(e){return e!==t})},r.HOOKS=void 0;var n={createRxDatabase:[],preCreateRxCollection:[],createRxCollection:[],preCreateRxSchema:[],createRxSchema:[],createRxQuery:[],createRxDocument:[],postCreateRxDocument:[],preCreatePouchDb:[],preMigrateDocument:[],postMigrateDocument:[],preDestroyRxDatabase:[]};r.HOOKS=n},{}],8:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=e("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(r,"__esModule",{value:!0});var i={};r.default=void 0;var s=o(e("./core"));Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))});var u=n(e("./plugins/schema-check")),a=n(e("./plugins/error-messages")),c=n(e("./plugins/validate")),l=n(e("./plugins/key-compression")),f=n(e("./plugins/leader-election")),p=n(e("./plugins/encryption")),h=n(e("./plugins/update")),d=n(e("./plugins/watch-for-changes")),b=n(e("./plugins/replication")),v=n(e("./plugins/adapter-check")),y=n(e("./plugins/json-dump")),_=n(e("./plugins/in-memory")),m=n(e("./plugins/attachments")),g=n(e("./plugins/local-documents")),w=e("./types");Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return w[e]}}))}),s.default.plugin(u.default),s.default.plugin(a.default),s.default.plugin(c.default),s.default.plugin(l.default),s.default.plugin(f.default),s.default.plugin(p.default),s.default.plugin(h.default),s.default.plugin(d.default),s.default.plugin(b.default),s.default.plugin(v.default),s.default.plugin(y.default),s.default.plugin(_.default),s.default.plugin(m.default),s.default.plugin(g.default);var x={create:s.create,checkAdapter:s.checkAdapter,removeDatabase:s.removeDatabase,plugin:s.plugin,dbCount:s.dbCount,isRxDatabase:s.isRxDatabase,isRxCollection:s.isRxCollection,isRxDocument:s.isRxDocument,isRxQuery:s.isRxQuery,isRxSchema:s.isRxSchema,PouchDB:s.PouchDB,QueryChangeDetector:s.QueryChangeDetector};r.default=x},{"./core":3,"./plugins/adapter-check":13,"./plugins/attachments":14,"./plugins/encryption":15,"./plugins/error-messages":16,"./plugins/in-memory":17,"./plugins/json-dump":18,"./plugins/key-compression":19,"./plugins/leader-election":20,"./plugins/local-documents":21,"./plugins/replication":22,"./plugins/schema-check":23,"./plugins/update":24,"./plugins/validate":25,"./plugins/watch-for-changes":26,"./types":39,"@babel/runtime/helpers/interopRequireDefault":60,"@babel/runtime/helpers/interopRequireWildcard":61}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createMQuery=function(e){return new n(e)},r.canMerge=s,r.MQueryBase=void 0;var a=e("./mquery_utils"),c=e("../rx-error"),o=e("../util"),n=function(){function i(e){this.options={},this._conditions={},e&&this.find(e)}var e=i.prototype;return e.clone=function(){var n=new i;return Object.entries(this).forEach(function(e){var t=e[0],r=e[1];return n[t]=(0,o.clone)(r)}),n},e.where=function(e,t){if(!arguments.length)return this;var r=typeof e;if("string"==r)return this._path=e,2===arguments.length&&(this._conditions[this._path]=t),this;if("object"==r&&!Array.isArray(e))return this.merge(e);throw(0,c.newRxTypeError)("MQ1",{path:e})},e.equals=function(e){this._ensurePath("equals");var t=this._path;return this._conditions[t]=e,this},e.eq=function(e){this._ensurePath("eq");var t=this._path;return this._conditions[t]=e,this},e.or=function(e){var t=this._conditions.$or||(this._conditions.$or=[]);return Array.isArray(e)||(e=[e]),t.push.apply(t,e),this},e.nor=function(e){var t=this._conditions.$nor||(this._conditions.$nor=[]);return Array.isArray(e)||(e=[e]),t.push.apply(t,e),this},e.and=function(e){var t=this._conditions.$and||(this._conditions.$and=[]);return Array.isArray(e)||(e=[e]),t.push.apply(t,e),this},e.mod=function(e,t){var r,n;return n=1===arguments.length?(this._ensurePath("mod"),r=e,this._path):2!==arguments.length||Array.isArray(t)?(r=3===arguments.length?arguments.slice(1):t,e):(this._ensurePath("mod"),r=arguments.slice(),this._path),(this._conditions[n]||(this._conditions[n]={})).$mod=r,this},e.exists=function(e,t){var r,n;return 0===arguments.length?(this._ensurePath("exists"),r=this._path,n=!0):1===arguments.length?n="boolean"==typeof e?(this._ensurePath("exists"),r=this._path,e):(r=e,!0):2===arguments.length&&(r=e,n=t),(this._conditions[r]||(this._conditions[r]={})).$exists=n,this},e.elemMatch=function(e,t){if(null===e)throw(0,c.newRxTypeError)("MQ2");var r,n,o;if("function"==typeof e)this._ensurePath("elemMatch"),n=this._path,r=e;else if((0,a.isObject)(e))this._ensurePath("elemMatch"),n=this._path,o=e;else if("function"==typeof t)n=e,r=t;else{if(!t||!(0,a.isObject)(t))throw(0,c.newRxTypeError)("MQ2");n=e,o=t}return r&&(r(o=new i),o=o._conditions),(this._conditions[n]||(this._conditions[n]={})).$elemMatch=o,this},e.sort=function(t){var e,r=this;if(!t)return this;var n=typeof t;if(Array.isArray(t)){e=t.length;for(var o=0;o<t.length;++o)f(this.options,t[o][0],t[o][1]);return this}if(1===arguments.length&&"string"==n){e=(t=t.split(/\s+/)).length;for(var i=0;i<e;++i){var s=t[i];if(s){var u="-"===s[0]?-1:1;-1==u&&(s=s.substring(1)),l(this.options,s,u)}}return this}if((0,a.isObject)(t))return Object.keys(t).forEach(function(e){return l(r.options,e,t[e])}),this;throw(0,c.newRxTypeError)("MQ3",{args:arguments})},e.merge=function(e){if(!e)return this;if(!s(e))throw(0,c.newRxTypeError)("MQ4",{source:e});return e instanceof i?(e._conditions&&(0,a.merge)(this._conditions,e._conditions),e._fields&&(this._fields||(this._fields={}),(0,a.merge)(this._fields,e._fields)),e.options&&(this.options||(this.options={}),(0,a.merge)(this.options,e.options)),e._update&&(this._update||(this._update={}),(0,a.mergeClone)(this._update,e._update)),e._distinct&&(this._distinct=e._distinct)):(0,a.merge)(this._conditions,e),this},e.find=function(e){return s(e)&&this.merge(e),this},e._ensurePath=function(e){if(!this._path)throw(0,c.newRxError)("MQ5",{method:e})},i}();function l(e,t,r){if(Array.isArray(e.sort))throw(0,c.newRxTypeError)("MQ6",{opts:e,field:t,value:r});if(r&&r.$meta){(e.sort||(e.sort={}))[t]={$meta:r.$meta}}else{var n=String(r||1).toLowerCase();if(!/^(?:ascending|asc|descending|desc|1|-1)$/.test(n))throw Array.isArray(r)&&(r="["+r+"]"),(0,c.newRxTypeError)("MQ7",{field:t,value:r});var o=e.sort||(e.sort={}),i=r.toString().replace("asc","1").replace("ascending","1").replace("desc","-1").replace("descending","-1");o[t]=parseInt(i,10)}}function f(e,t,r){if(e.sort=e.sort||[],!Array.isArray(e.sort))throw(0,c.newRxTypeError)("MQ8",{opts:e,field:t,value:r});e.sort.push([t,r])}function s(e){return e instanceof n||(0,a.isObject)(e)}r.MQueryBase=n,["limit","skip","maxScan","batchSize","comment"].forEach(function(t){n.prototype[t]=function(e){return this.options[t]=e,this}}),["gt","gte","lt","lte","ne","in","nin","all","regex","size"].forEach(function(r){n.prototype[r]=function(){var e,t;return e=1===arguments.length?(this._ensurePath(r),t=arguments[0],this._path):(t=arguments[1],arguments[0]),(null===this._conditions[e]||"object"==typeof this._conditions[e]?this._conditions[e]:this._conditions[e]={})["$"+r]=t,this}})},{"../rx-error":36,"../util":52,"./mquery_utils":10}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.merge=function t(r,n){Object.keys(n).forEach(function(e){void 0===r[e]?r[e]=n[e]:i(n[e])?t(r[e],n[e]):r[e]=n[e]})},r.mergeClone=function t(r,n){Object.keys(n).forEach(function(e){void 0===r[e]?r[e]=(0,o.clone)(n[e]):i(n[e])?t(r[e],n[e]):r[e]=(0,o.clone)(n[e])})},r.isObject=i;var o=e("../util");function i(e){return"[object Object]"===e.toString()}},{"../util":52}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("./util"),o={validatePassword:function(){throw(0,n.pluginMissing)("encryption")},createKeyCompressor:function(){throw(0,n.pluginMissing)("key-compression")},createLeaderElector:function(){throw(0,n.pluginMissing)("leader-election")},checkAdapter:function(){throw(0,n.pluginMissing)("adapter-check")},tunnelErrorMessage:function(e){return"RxDB Error-Code "+e+".\n        - To find out what this means, use the error-messages-plugin https://pubkey.github.io/rxdb/custom-build.html#error-messages\n        - Or search for this code https://github.com/pubkey/rxdb/search?q="+e+"\n        "}};r.default=o},{"./util":52}],12:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){{if(d.has(e))return;d.add(e)}if(!e.rxdb)return"object"==typeof e&&e.default&&(e=e.default),void l.PouchDB.plugin(e);var t=e;t.prototypes&&Object.entries(e.prototypes).forEach(function(e){var t=e[0];return(0,e[1])(h[t])});t.overwritable&&Object.entries(e.overwritable).forEach(function(e){var t=e[0],r=e[1];return f.default[t]=r});t.hooks&&Object.entries(e.hooks).forEach(function(e){var t=e[0],r=e[1];return p.HOOKS[t].push(r)})};var o=e("./rx-schema"),i=n(e("./crypter")),s=e("./rx-document"),u=e("./rx-query"),a=e("./rx-collection"),c=e("./rx-database"),l=e("./pouch-db"),f=n(e("./overwritable")),p=e("./hooks"),h={RxSchema:o.RxSchema.prototype,Crypter:i.default.Crypter.prototype,RxDocument:s.basePrototype,RxQuery:u.RxQueryBase.prototype,RxCollection:a.RxCollectionBase.prototype,RxDatabase:c.RxDatabaseBase.prototype},d=new Set},{"./crypter":4,"./hooks":7,"./overwritable":11,"./pouch-db":27,"./rx-collection":32,"./rx-database":33,"./rx-document":35,"./rx-query":37,"./rx-schema":38,"@babel/runtime/helpers/interopRequireDefault":60}],13:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkAdapter=n,r.default=r.overwritable=r.prototypes=r.rxdb=r.POUCHDB_LOCATION=void 0;var o=e("../pouch-db"),i=e("../util"),s="rxdb-adapter-check";function n(e){var t,r,n=s+"-"+(0,i.generateId)();try{t=new o.PouchDB(s,(0,i.adapterObject)(e),{auto_compaction:!0,revs_limit:1})}catch(e){return Promise.resolve(!1)}return t.info().then(function(){return t.put({_id:n,value:{ok:!0,time:(new Date).getTime()}})}).then(function(){return t.get(n)}).then(function(e){return r=e}).then(function(){return t.remove(r)}).then(function(){return!0}).then(function(){return!!(r&&r.value&&r.value.ok)}).catch(function(){return!1})}r.POUCHDB_LOCATION=s;var u={},a={checkAdapter:n},c={rxdb:r.rxdb=!0,prototypes:r.prototypes=u,overwritable:r.overwritable=a};r.default=c},{"../pouch-db":27,"../util":52}],14:[function(g,e,w){(function(o){"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.fromPouchDocument=l,w.putAttachment=s,w.getAttachment=p,w.allAttachments=h,w.preMigrateDocument=d,w.postMigrateDocument=b,w.default=w.hooks=w.overwritable=w.prototypes=w.rxdb=w.RxAttachment=w.blobBufferUtil=void 0;var r=g("rxjs/operators"),i=g("./../rx-change-event"),e=g("./../util"),t=g("../rx-error");function u(e){if(!e.collection.schema.jsonID.attachments)throw(0,t.newRxError)("AT1",{link:"https://pubkey.github.io/rxdb/rx-attachment.html"})}function a(n){return n.collection.pouch.get(n.primary).then(function(e){var t=n.collection._handleFromPouch(e),r=(0,i.createChangeEvent)("UPDATE",n.collection.database,n.collection,n,t);n.$emit(r)})}var c={createBlobBuffer:function(t,r){var n;if(e.isElectronRenderer)return o.from(t,{type:r});try{n=new Blob([t],{type:r})}catch(e){n=o.from(t,{type:r})}return n},toString:function(t){return t instanceof o?(0,e.nextTick)().then(function(){return t.toString()}):new Promise(function(r){var e=new FileReader;e.addEventListener("loadend",function(e){var t=e.target.result;r(t)}),"[object Uint8Array]"===Object.prototype.toString.call(t)&&(t=new Blob([t])),e.readAsText(t)})}};w.blobBufferUtil=c;var n=function(){function e(e){var n,t=e.doc,r=e.id,o=e.type,i=e.length,s=e.digest,u=e.rev;this.doc=t,this.id=r,this.type=o,this.length=i,this.digest=s,this.rev=u,n=this,Object.entries(n.doc.collection.attachments).forEach(function(e){var t=e[0],r=e[1];Object.defineProperty(n,t,{get:function(){return r.bind(n)}})})}var t=e.prototype;return t.remove=function(){var e=this;return this.doc.collection.pouch.removeAttachment(this.doc.primary,this.id,this.doc._data._rev).then(function(){return a(e.doc)})},t.getData=function(){var t=this;return this.doc.collection.pouch.getAttachment(this.doc.primary,this.id).then(function(e){return f(t.doc)?c.toString(e).then(function(e){return c.createBlobBuffer(t.doc.collection._crypter._decryptValue(e),t.type)}):e})},t.getStringData=function(){return this.getData().then(function(e){return c.toString(e)})},e}();function l(e,t,r){return new n({doc:r,id:e,type:t.content_type,length:t.length,digest:t.digest,rev:t.revpos})}function f(e){return!!e.collection.schema.jsonID.attachments.encrypted}function s(e){var n=this,o=e.id,t=e.data,r=e.type,i=void 0===r?"text/plain":r;u(this),f(this)&&(t=this.collection._crypter._encryptValue(t));var s=c.createBlobBuffer(t,i);return this._atomicQueue=this._atomicQueue.then(function(){return n.collection.pouch.putAttachment(n.primary,o,n._data._rev,s,i)}).then(function(){return n.collection.pouch.get(n.primary)}).then(function(e){var t=e._attachments[o],r=l(o,t,n);return n._data._rev=e._rev,n._data._attachments=e._attachments,a(n).then(function(){return r})}),this._atomicQueue}function p(e){u(this);var t=this._dataSync$.getValue();return t._attachments&&t._attachments[e]?l(e,t._attachments[e],this):null}function h(){var t=this;u(this);var r=this._dataSync$.getValue();return r._attachments?Object.keys(r._attachments).map(function(e){return l(e,r._attachments[e],t)}):[]}function d(e){return delete e.migrated._attachments,e}function b(o){var e=o.oldCollection.schema.primaryPath,i=o.doc._attachments;if(!i)return Promise.resolve(o);var s=Promise.resolve();return Object.keys(i).forEach(function(t){var r=i[t],n=o.doc[e];s=s.then(function(){return o.oldCollection.pouchdb.getAttachment(n,t)}).then(function(e){return c.toString(e)}).then(function(e){return o.newestCollection.pouch.putAttachment(n,t,o.res.rev,c.createBlobBuffer(e,r.content_type),r.content_type)}).then(function(e){return o.res=e})}),s}w.RxAttachment=n;var v={RxDocument:function(e){e.putAttachment=s,e.getAttachment=p,e.allAttachments=h,Object.defineProperty(e,"allAttachments$",{get:function(){var t=this;return this._dataSync$.pipe((0,r.map)(function(e){return e._attachments?e._attachments:{}}),(0,r.map)(function(e){return Object.entries(e)}),(0,r.map)(function(e){return e.map(function(e){return l(e[0],e[1],t)})}))}})}},y={},_={preMigrateDocument:d,postMigrateDocument:b},m={rxdb:w.rxdb=!0,prototypes:w.prototypes=v,overwritable:w.overwritable=y,hooks:w.hooks=_,blobBufferUtil:c};w.default=m}).call(this,g("buffer").Buffer)},{"../rx-error":36,"./../rx-change-event":30,"./../util":52,buffer:85,"rxjs/operators":682}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.encrypt=a,r.decrypt=c,r.default=r.overwritable=r.prototypes=r.rxdb=void 0;var i=o(e("crypto-js/aes")),s=n(e("crypto-js/enc-utf8")),u=e("../rx-error");function a(e,t){return i.default.encrypt(e,t).toString()}function c(e,t){return i.default.decrypt(e,t).toString(s)}function l(e){return a(JSON.stringify(e),this.password)}function f(e){var t=c(e,this.password);return JSON.parse(t)}var p={Crypter:function(e){e._encryptValue=l,e._decryptValue=f}},h={validatePassword:function(e){if(e&&"string"!=typeof e)throw(0,u.newRxTypeError)("EN1",{password:e});if(e&&e.length<8)throw(0,u.newRxError)("EN2",{minPassLength:8,password:e})}},d={rxdb:r.rxdb=!0,prototypes:r.prototypes=p,overwritable:r.overwritable=h};r.default=d},{"../rx-error":36,"@babel/runtime/helpers/interopRequireDefault":60,"@babel/runtime/helpers/interopRequireWildcard":61,"crypto-js/aes":391,"crypto-js/enc-utf8":395}],16:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overwritable=r.prototypes=r.rxdb=void 0;var n={UT1:"given name is no string or empty",UT2:"collection- and database-names must match the regex\n    info: if your database-name specifies a folder, the name must contain the slash-char '/' or '\\'",UT3:"replication-direction must either be push or pull or both. But not none",UT4:"given leveldown is no valid adapter",P1:"PouchDB.getBatch: limit must be > 2",QU1:"RxQuery._execOverDatabase(): op not known",QU2:"limit() must get a number",QU3:"skip() must get a number",QU4:"RxQuery.regex(): You cannot use .regex() on the primary field",QU5:"RxQuery.sort(): does not work because key is not defined in the schema",QU6:"RxQuery.limit(): cannot be called on .findOne()",QU7:"query must be an object",QU8:"query cannot be an array",MQ1:"path must be a string or object",MQ2:"Invalid argument",MQ3:"Invalid sort() argument. Must be a string, object, or array",MQ4:"Invalid argument. Expected instanceof mquery or plain object",MQ5:"method must be used after where() when called with these arguments",MQ6:"Can't mix sort syntaxes. Use either array or object | .sort([['field', 1], ['test', -1]]) | .sort({ field: 1, test: -1 })",MQ7:"Invalid sort value",MQ8:"Can't mix sort syntaxes. Use either array or object",DB1:"RxDocument.prepare(): another instance on this adapter has a different password",DB2:"RxDatabase.collection(): collection-names cannot start with underscore _",DB3:"RxDatabase.collection(): collection already exists. use myDatabase.[collectionName] to get it",DB4:"RxDatabase.collection(): schema is missing",DB5:"RxDatabase.collection(): collection-name not allowed",DB6:"RxDatabase.collection(): another instance created this collection with a different schema. Read this https://pubkey.github.io/rxdb/questions-answers.html#cant-change-the-schema",DB7:"RxDatabase.collection(): schema encrypted but no password given",DB8:"RxDatabase.create(): A RxDatabase with the same name and adapter already exists.\nMake sure to use this combination only once or set ignoreDuplicate to true if you do this intentional",DB9:"RxDatabase.create(): Adapter not added. Use RxDB.plugin(require('pouchdb-adapter-[adaptername]');",DB10:"RxDatabase.create(): To use leveldown-adapters, you have to add the leveldb-plugin. Use RxDB.plugin(require('pouchdb-adapter-leveldb'));",COL1:"RxDocument.insert() You cannot insert an existing document",COL2:"RxCollection.insert() do not provide ._id when it is not the primary key",COL3:"RxCollection.upsert() does not work without primary",COL4:"RxCollection.atomicUpsert() does not work without primary",COL5:"RxCollection.find() if you want to search by _id, use .findOne(_id)",COL6:"RxCollection.findOne() needs a queryObject or string",COL7:"hook must be a function",COL8:"hooks-when not known",COL9:"RxCollection.addHook() hook-name not known",COL10:"RxCollection .postCreate-hooks cannot be async",COL11:"migrationStrategies must be an object",COL12:"A migrationStrategy is missing or too much",COL13:"migrationStrategy must be a function",COL14:"given static method-name is not a string",COL15:"static method-names cannot start with underscore _",COL16:"given static method is not a function",COL17:"RxCollection.ORM: statics-name not allowed",COL18:"collection-method not allowed because fieldname is in the schema",COL19:"Pouchdb document update conflict",DOC1:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",DOC2:"cannot observe primary path",DOC3:"final fields cannot be observed",DOC4:"RxDocument.get$ cannot observe a non-existed field",DOC5:"RxDocument.populate() cannot populate a non-existed field",DOC6:"RxDocument.populate() cannot populate because path has no ref",DOC7:"RxDocument.populate() ref-collection not in database",DOC8:"RxDocument.set(): primary-key cannot be modified",DOC9:"final fields cannot be modified",DOC10:"RxDocument.set(): cannot set childpath when rootPath not selected",DOC11:"RxDocument.save(): cant save deleted document",DOC12:"RxDocument.save(): error",DOC13:"RxDocument.remove(): Document is already deleted",DOC14:"RxDocument.destroy() does not exist",DOC15:"query cannot be an array",DOC16:"Since version 8.0.0 RxDocument.set() can only be called on temporary RxDocuments",DOC17:"Since version 8.0.0 RxDocument.save() can only be called on non-temporary documents",DM1:"migrate() Migration has already run",DM2:"migration of document failed final document does not match final schema",DM3:"migration already running",AT1:"to use attachments, please define this in your schema",EN1:"password is no string",EN2:"validatePassword: min-length of password not complied",JD1:"You must create the collections before you can import their data",JD2:"RxCollection.importDump(): the imported json relies on a different schema",JD3:"RxCollection.importDump(): json.passwordHash does not match the own",LD1:"RxDocument.allAttachments$ cant use attachments on local documents",LD2:"RxDocument.get(): objPath must be a string",LD3:"RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",LD4:"cannot observe primary path",LD5:"RxDocument.set() id cannot be modified",LD6:"LocalDocument: Function is not useable on local documents",LD7:"Local document already exists",RC1:"Replication: already added",RC2:"RxCollection.sync() query must be from the same RxCollection",RC3:"RxCollection.sync() Do not use a collection's pouchdb as remote, use the collection instead",SC1:"fieldnames do not match the regex",SC2:"SchemaCheck: name 'item' reserved for array-fields",SC3:"SchemaCheck: fieldname has a ref-array but items-type is not string",SC4:"SchemaCheck: fieldname has a ref but is not type string or array<string>",SC5:"SchemaCheck: fieldname cannot be primary and ref at same time",SC6:"SchemaCheck: primary can only be defined at top-level",SC7:"SchemaCheck: default-values can only be defined at top-level",SC8:"SchemaCheck: first level-fields cannot start with underscore _",SC10:"SchemaCheck: schema defines ._rev, this will be done automatically",SC11:"SchemaCheck: schema needs a number >=0 as version",SC12:"SchemaCheck: primary can only be defined once",SC13:"SchemaCheck: primary is always index, do not declare it as index",SC14:"SchemaCheck: primary is always unique, do not declare it as index",SC15:"SchemaCheck: primary cannot be encrypted",SC16:"SchemaCheck: primary must have type: string",SC17:"SchemaCheck: top-level fieldname is not allowed",SC18:"SchemaCheck: compoundIndexes must be an array",SC19:"SchemaCheck: compoundIndexes must contain arrays",SC20:"SchemaCheck: compoundIndexes.array must contains strings",SC21:"SchemaCheck: given index is not defined in schema",SC22:"SchemaCheck: given indexKey is not type:string",SC23:"SchemaCheck: fieldname is not allowed",SC24:"SchemaCheck: required fields must be set via array. See https://spacetelescope.github.io/understanding-json-schema/reference/object.html#required",VD1:"Sub-schema not found, does the schemaPath exists in your schema?",VD2:"object does not match schema",IM1:"InMemory: Memory-Adapter must be added. Use RxDB.plugin(require('pouchdb-adapter-memory'));",IM2:"inMemoryCollection.sync(): Do not replicate with the in-memory instance. Replicate with the parent instead",S1:"You cannot create collections after calling RxDatabase.server()",QL1:"TODO"},o={},i={tunnelErrorMessage:function(e){if(!n[e])throw console.error("RxDB: Error-Code not known: "+e),new Error("Error-Cdoe "+e+" not known, contact the maintainer");return n[e]}},s={rxdb:r.rxdb=!0,prototypes:r.prototypes=o,overwritable:r.overwritable=i};r.default=s},{}],17:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.replicateExistingDocuments=x,r.setIndexes=O,r.streamChangedDocuments=j,r.applyChangedDocumentToPouch=S,r.spawnInMemory=k,r.default=r.overwritable=r.prototypes=r.rxdb=r.InMemoryRxCollection=void 0;var i=n(e("@babel/runtime/helpers/assertThisInitialized")),s=n(e("@babel/runtime/helpers/inheritsLoose")),u=e("rxjs"),a=e("rxjs/operators"),o=e("../rx-collection"),c=e("../util"),l=n(e("../core")),f=n(e("../crypter")),p=e("../change-event-buffer"),h=e("../rx-schema"),d=e("../pouch-db"),b=e("../rx-error"),v=n(e("../plugins/watch-for-changes"));l.default.plugin(v.default);var y=new WeakMap,_=new WeakMap,m={new_edits:!0},g={new_edits:!1},w=function(o){function e(e){var n,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(n=o.call(this,e.database,e.name,function(e){var t=(0,c.clone)(e.jsonID);t.keyCompression=!1,delete t.properties._id,delete t.properties._rev,delete t.properties._attachments;return function t(e,r){delete e.encrypted,Object.values(e).filter(function(e){return typeof e==="object"}).forEach(function(e){return t(e,r)})}(t,t),(0,h.createRxSchema)(t)}(e.schema),t,{},e._methods)||this)._eventCounter=0,n._isInMemory=!0,n._parentCollection=e,n._parentCollection.onDestroy.then(function(){return n.destroy()}),n._crypter=f.default.create(n.database.password,n.schema),n._changeStreams=[],n.onDestroy.then(function(){n._changeStreams.forEach(function(e){return e.cancel()}),n.pouch.destroy()}),n.options=e.options,Object.entries(e.statics).forEach(function(e){var t=e[0],r=e[1];Object.defineProperty((0,i.default)(n),t,{get:function(){return r.bind((0,i.default)(n))}})}),n.pouch=new d.PouchDB("rxdb-in-memory-"+(0,c.randomCouchString)(10),(0,c.adapterObject)("memory")),n._observable$=new u.Subject,n._changeEventBuffer=(0,p.createChangeEventBuffer)((0,i.default)(n));var r=Object.getPrototypeOf(e);return n._oldPouchPut=r._pouchPut.bind((0,i.default)(n)),n._nonPersistentRevisions=new Set,n._nonPersistentRevisionsSubject=new u.Subject,n}(0,s.default)(e,o);var t=e.prototype;return t.prepareChild=function(){var r=this;return O(this.schema,this.pouch).then(function(){r._subs.push(r._observable$.subscribe(function(e){var t=r._docCache.get(e.data.doc);t&&t._handleChangeEvent(e)}))}).then(function(){return x(r._parentCollection,r)}).then(function(){r._parentCollection.watchForChanges(),r.watchForChanges();var e=j(r).pipe((0,a.mergeMap)(function(e){return S(r._parentCollection,e).then(function(){return e._rev})})).subscribe(function(e){r._nonPersistentRevisions.delete(e),r._nonPersistentRevisionsSubject.next(r._nonPersistentRevisions.size)});r._subs.push(e);var t=j(r._parentCollection).subscribe(function(e){return S(r,e)});r._subs.push(t)})},t.awaitPersistence=function(){var e=this;return 0===this._nonPersistentRevisions.size?Promise.resolve():this._nonPersistentRevisionsSubject.pipe((0,a.filter)(function(){return 0===e._nonPersistentRevisions.size}),(0,a.first)()).toPromise()},t._pouchPut=function(e,t){var r=this;return this._oldPouchPut(e,t).then(function(e){return r._nonPersistentRevisions.add(e.rev),e})},t.$emit=function(e){this._changeEventBuffer.hasChangeWithRevision(e.data.v&&e.data.v._rev)||(this._observable$.next(e),this._eventCounter++,10===this._eventCounter&&(this._eventCounter=0,this.pouch.compact()))},t.sync=function(){throw(0,b.newRxError)("IM2")},e}(o.RxCollectionBase);function x(r,n){return r.pouch.allDocs({attachments:!1,include_docs:!0}).then(function(e){var t=e.rows.map(function(e){return e.doc}).filter(function(e){return!e.language}).map(function(e){return r._handleFromPouch(e)}).map(function(e){return r.schema.swapPrimaryToId(e)});return 0===t.length?Promise.resolve([]):n.pouch.bulkDocs({docs:t},g).then(function(){return t})})}function O(e,t){return Promise.all(e.indexes.map(function(e){return t.createIndex({index:{fields:e}})}))}function j(r){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(e){return!0};return r._doNotEmitSet||(r._doNotEmitSet=new Set),(0,u.fromEvent)(r.pouch.changes({since:"now",live:!0,include_docs:!0}),"change").pipe((0,a.map)(function(e){return e[0]}),(0,a.filter)(function(e){var t=e.id+":"+e.doc._rev;return!r._doNotEmitSet.has(t)}),(0,a.filter)(function(e){return t(e)}),(0,a.map)(function(e){return r._handleFromPouch(e.doc)}))}function S(r,e){r._doNotEmitSet||(r._doNotEmitSet=new Set);var n=r._handleToPouch(e);return r.pouch.get(n._id).then(function(e){return n._rev=e._rev}).catch(function(){delete n._rev}).then(function(){return r.pouch.bulkDocs({docs:[n]},m)}).then(function(e){if(0<e.length&&!e[0].ok)throw new Error(JSON.stringify(e[0]));var t=n._id+":"+e[0].rev;return r._doNotEmitSet.add(t),setTimeout(function(){return r._doNotEmitSet.delete(t)},3e4),n})}r.InMemoryRxCollection=w;var E=!1;function k(){var e=this;if(!E&&(E=!0,!d.PouchDB.adapters||!d.PouchDB.adapters.memory))throw(0,b.newRxError)("IM1");if(y.has(this))return _.get(this).then(function(){return y.get(e)});var t=new w(this),r=t.prepareChild();return y.set(this,t),_.set(this,r),r.then(function(){return t})}var P={RxCollection:function(e){e.inMemory=k}},A={},C={rxdb:r.rxdb=!0,prototypes:r.prototypes=P,overwritable:r.overwritable=A,spawnInMemory:k};r.default=C},{"../change-event-buffer":2,"../core":3,"../crypter":4,"../plugins/watch-for-changes":26,"../pouch-db":27,"../rx-collection":32,"../rx-error":36,"../rx-schema":38,"../util":52,"@babel/runtime/helpers/assertThisInitialized":55,"@babel/runtime/helpers/inheritsLoose":59,"@babel/runtime/helpers/interopRequireDefault":60,rxjs:484,"rxjs/operators":682}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overwritable=r.prototypes=r.rxdb=void 0;var i=e("../util"),o=e("../rx-query"),s=e("../rx-error"),u=e("../rx-change-event");function n(){var t=this,r=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=1<arguments.length?arguments[1]:void 0,o={name:this.name,instanceToken:this.token,encrypted:!1,passwordHash:null,collections:[]};this.password&&(o.passwordHash=(0,i.hash)(this.password),o.encrypted=!r);var e=Object.keys(this.collections).filter(function(e){return!n||n.includes(e)}).filter(function(e){return"_"!==e.charAt(0)}).map(function(e){return t.collections[e]});return Promise.all(e.map(function(e){return e.dump(r)})).then(function(e){return o.collections=e,o})}function a(e){var t=this,r=e.collections.filter(function(e){return!t.collections[e.name]}).map(function(e){return e.name});if(0<r.length)throw(0,s.newRxError)("JD1",{missingCollections:r});return Promise.all(e.collections.map(function(e){return t.collections[e.name].importDump(e)}))}function c(e){var t=!(0<arguments.length&&void 0!==e&&e),r={name:this.name,schemaHash:this.schema.hash,encrypted:!1,passwordHash:null,docs:[]};this.database.password&&t&&(r.passwordHash=(0,i.hash)(this.database.password),r.encrypted=!0);var n=(0,o.createRxQuery)("find",{},this);return this._pouchFind(n,void 0,t).then(function(e){return r.docs=e.map(function(e){return delete e._rev,delete e._attachments,e}),r})}function l(e){var n=this;if(e.schemaHash!==this.schema.hash)throw(0,s.newRxError)("JD2",{schemaHash:e.schemaHash,own:this.schema.hash});if(e.encrypted&&e.passwordHash!==(0,i.hash)(this.database.password))throw(0,s.newRxError)("JD3",{passwordHash:e.passwordHash,own:(0,i.hash)(this.database.password)});var t=e.docs.map(function(e){return n._crypter.decrypt(e)}).map(function(e){return n.schema.validate(e)}).map(function(e){return n._handleToPouch(e)});return this.database.lockedRun(function(){return n.pouch.bulkDocs(t)}).then(function(){t.forEach(function(e){var t=e[n.schema.primaryPath],r=(0,u.createChangeEvent)("INSERT",n.database,n,null,e);r.data.doc=t,n.$emit(r)})})}var f={RxDatabase:function(e){e.dump=n,e.importDump=a},RxCollection:function(e){e.dump=c,e.importDump=l}},p={},h={rxdb:r.rxdb=!0,prototypes:r.prototypes=f,overwritable:r.overwritable=p};r.default=h},{"../rx-change-event":30,"../rx-error":36,"../rx-query":37,"../util":52}],19:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.create=s,r.default=r.overwritable=r.prototypes=r.rxdb=r.KeyCompressor=void 0;var o=n(e("@babel/runtime/helpers/createClass")),l=e("../util"),i=function(){function e(e){this.schema=e}var t=e.prototype;return t.compress=function(e){return this.schema.doKeyCompression()?function i(s,u){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";var c={};if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return u.map(function(e){return i(s,e,(0,l.trimDots)(a+".item"))});Object.keys(u).forEach(function(e){var t=u[e],r=(0,l.trimDots)(a+"."+e),n=s.table[r]?s.table[r]:e,o=t;o=i(s,t,r),c[n]=o});return c}(this,e):e},t._decompressObj=function(r){var n=this,o=this.reverseTable;if("object"!=typeof r||null===r)return r;if(Array.isArray(r))return r.map(function(e){return n._decompressObj(e)});var i={};return Object.keys(r).forEach(function(e){var t=e;(e.startsWith("|")||e.startsWith("_"))&&o[e]&&(t=o[e]),i[t]=n._decompressObj(r[e])}),i},t.decompress=function(e){return this.schema.doKeyCompression()?this._decompressObj(e):e},t.transformKey=function(e,t,r){var n=this.table;e=(0,l.trimDots)(e),t=(0,l.trimDots)(t);var o=r.shift(),i=(0,l.trimDots)(e+"."+o);return n[i]?t+="."+n[i]:t+="."+o,0<r.length?this.transformKey(i,t,r):(0,l.trimDots)(t)},t.compressQuery=function(o){var i=this;if(!this.schema.doKeyCompression())return o;o=(0,l.clone)(o);var s={};return Object.keys(o.selector).forEach(function(e){var t=o.selector[e];if(e.startsWith("$")){var r=t.map(function(r){var n={};return Object.keys(r).forEach(function(e){var t=i.transformKey("","",e.split("."));n[t]=r[e]}),n});s[e]=r}else{var n=i.transformKey("","",e.split("."));s[n]=t}}),o.selector=s,o.sort&&(o.sort=o.sort.map(function(e){var t=Object.keys(e)[0],r=e[t],n={};return n[i.transformKey("","",t.split("."))]=r,n})),o},(0,o.default)(e,[{key:"table",get:function(){var s=this;if(!this._table){var u=0;this._table={};!function n(o,i){Object.keys(i).map(function(e){var t=i[e],r="properties"===e?o:(0,l.trimDots)(o+"."+e);"object"==typeof t&&!Array.isArray(t)&&!s._table[r]&&""!==r&&3<e.length&&!r.startsWith("_")&&(s._table[r]="|"+(u++,(0,l.numberToLetter)(u-1))),!0===t.primary&&(s._table[r]="_id"),"object"!=typeof t||Array.isArray(t)||n(r,t)})}("",this.schema.normalized)}return this._table}},{key:"reverseTable",get:function(){var n=this;if(!this._reverseTable){var o=this.table;this._reverseTable={},Object.keys(o).forEach(function(e){var t=o[e],r=e.split(".").pop();n._reverseTable[t]=r})}return this._reverseTable}}]),e}();function s(e){return new i(e)}r.KeyCompressor=i;var u={},a={createKeyCompressor:s},c={rxdb:r.rxdb=!0,prototypes:r.prototypes=u,overwritable:r.overwritable=a};r.default=c},{"../util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.create=i,r.default=r.overwritable=r.prototypes=r.rxdb=r.LeaderElector=void 0;var n=e("broadcast-channel"),o=function(){function e(e){this.destroyed=!1,this.isLeader=!1,this.isDead=!1,this.database=e,this.elector=(0,n.createLeaderElection)(e.broadcastChannel)}var t=e.prototype;return t.die=function(){return this.elector.die()},t.waitForLeadership=function(){var e=this;return this.elector.awaitLeadership().then(function(){return e.isLeader=!0})},t.destroy=function(){if(!this.destroyed)return this.destroyed=!0,this.isDead=!0,this.die()},e}();function i(e){return new o(e)}r.LeaderElector=o;var s={},u={createLeaderElector:i},a={rxdb:r.rxdb=!0,prototypes:r.prototypes=s,overwritable:r.overwritable=u};r.default=a},{"broadcast-channel":70}],21:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overwritable=r.prototypes=r.rxdb=r.RxLocalDocument=void 0;function o(e){return b.has(e)||b.set(e,(0,c.createDocCache)()),b.get(e)}var i=n(e("@babel/runtime/helpers/inheritsLoose")),s=n(e("object-path")),u=e("../rx-document"),a=e("../rx-change-event"),c=e("../doc-cache"),l=e("../rx-error"),f=e("../util"),p=e("../rx-database"),h=e("../rx-collection"),d=e("rxjs/operators"),b=new WeakMap,v=new WeakMap,y="_local/",_=function(o){function e(e,t,r){var n;return(n=o.call(this,null,t)||this).id=e,n.parent=r,n}return(0,i.default)(e,o),e}((0,u.createRxDocumentConstructor)());r.RxLocalDocument=_;function m(e){return(0,p.isInstanceOf)(e)?e._adminPouch:e.pouch}function g(){if(!x){x=!0;var r=u.basePrototype;Object.getOwnPropertyNames(r).forEach(function(e){if(!Object.getOwnPropertyDescriptor(w,e)){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(w,e,t)}});["populate","update","putAttachment","getAttachment","allAttachments"].forEach(function(e){return w[e]=(t=e,function(){throw(0,l.newRxError)("LD6",{functionName:t})});var t})}}var w={toPouchJson:function(){(0,f.clone)(this._data)._id=y+this.id},get isLocal(){return!0},get parentPouch(){return m(this.parent)},_handleChangeEvent:function(e){if(e.data.doc===this.primary)switch(e.data.op){case"UPDATE":var t=(0,f.clone)(e.data.v);this._dataSync$.next((0,f.clone)(t));break;case"REMOVE":o(this.parent).delete(this.primary),this._deleted$.next(!0)}},get allAttachments$(){throw(0,l.newRxError)("LD1",{document:this})},get primaryPath(){return"id"},get primary(){return this.id},get $(){return this._dataSync$.asObservable()},$emit:function(e){return this.parent.$emit(e)},get:function(e){if(this._data){if("string"!=typeof e)throw(0,l.newRxTypeError)("LD2",{objPath:e});var t=s.default.get(this._data,e);return t=(0,f.clone)(t)}},get$:function(t){if(t.includes(".item."))throw(0,l.newRxError)("LD3",{path:t});if(t===this.primaryPath)throw(0,l.newRxError)("LD4");return this._dataSync$.pipe((0,d.map)(function(e){return s.default.get(e,t)}),(0,d.distinctUntilChanged)())},set:function(e,t){if(!t){var r=(0,f.clone)(e);return r._rev=this._data._rev,this._data=r,this}if("_id"===e)throw(0,l.newRxError)("LD5",{objPath:e,value:t});if(!Object.is(this.get(e),t))return s.default.set(this._data,e,t),this},_saveData:function(r){var n=this;return(r=(0,f.clone)(r))._id=y+this.id,this.parentPouch.put(r).then(function(e){r._rev=e.rev,n._dataSync$.next(r);var t=(0,a.createChangeEvent)("UPDATE",(0,p.isInstanceOf)(n.parent)?n.parent:n.parent.database,(0,h.isInstanceOf)(n.parent)?n.parent:null,n,(0,f.clone)(n._data),!0);n.$emit(t)})},remove:function(){var t=this,e=y+this.id;return this.parentPouch.remove(e,this._data._rev).then(function(){o(t.parent).delete(t.id);var e=(0,a.createChangeEvent)("REMOVE",(0,p.isInstanceOf)(t.parent)?t.parent:t.parent.database,(0,h.isInstanceOf)(t.parent)?t.parent:null,t,(0,f.clone)(t._data),!0);t.$emit(e)})}},x=!1;function O(n,o){var i=this;return(0,h.isInstanceOf)(this)&&this._isInMemory?this._parentCollection.insertLocal(n,o):(o=(0,f.clone)(o),this.getLocal(n).then(function(e){if(e)throw(0,l.newRxError)("LD7",{id:n,data:o});var t=m(i),r=(0,f.clone)(o);return r._id=y+n,t.put(r)}).then(function(e){return o._rev=e.rev,_.create(n,o,i)}))}function j(t,r){var n=this;return(0,h.isInstanceOf)(this)&&this._isInMemory?this._parentCollection.upsertLocal(t,r):this.getLocal(t).then(function(e){return e?(r._rev=e._data._rev,e.atomicUpdate(function(){return r}).then(function(){return e})):n.insertLocal(t,r)})}function S(t){var r=this;if((0,h.isInstanceOf)(this)&&this._isInMemory)return this._parentCollection.getLocal(t);var e=m(this),n=o(this).get(t);return n?Promise.resolve(n):e.get(y+t).then(function(e){return e?_.create(t,e,r):null}).catch(function(){return null})}_.create=function(e,t,r){g(),function(r){if(!v.has(r)){var e=r.$.pipe((0,d.filter)(function(e){return e.data.isLocal})).subscribe(function(e){var t=o(r).get(e.data.doc);t&&t._handleChangeEvent(e)});r._subs.push(e),v.set(r,e)}v.get(r)}(r);var n=new _(e,t,r);return n.__proto__=w,o(r).set(e,n),n};var E={RxCollection:function(e){e.insertLocal=O,e.upsertLocal=j,e.getLocal=S},RxDatabase:function(e){e.insertLocal=O,e.upsertLocal=j,e.getLocal=S}},k={},P={rxdb:r.rxdb=!0,prototypes:r.prototypes=E,overwritable:r.overwritable=k};r.default=P},{"../doc-cache":6,"../rx-change-event":30,"../rx-collection":32,"../rx-database":33,"../rx-document":35,"../rx-error":36,"../util":52,"@babel/runtime/helpers/inheritsLoose":59,"@babel/runtime/helpers/interopRequireDefault":60,"object-path":428,"rxjs/operators":682}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.setPouchEventEmitter=_,r.createRxReplicationState=m,r.sync=l,r.default=r.hooks=r.prototypes=r.rxdb=r.RxReplicationStateBase=void 0;var o=n(e("pouchdb-replication")),i=e("rxjs"),s=e("rxjs/operators"),h=e("../util"),u=n(e("../core")),d=e("../rx-error"),b=e("../pouch-db"),a=n(e("./watch-for-changes")),v=e("../rx-collection");u.default.plugin(o.default),u.default.plugin(a.default);var y=new WeakSet,c=function(){function e(e){var t=this;this._subs=[],this._subjects={change:new i.Subject,docs:new i.Subject,denied:new i.Subject,active:new i.BehaviorSubject(!1),complete:new i.BehaviorSubject(!1),alive:new i.BehaviorSubject(!1),error:new i.Subject},this.collection=e,Object.keys(this._subjects).forEach(function(e){Object.defineProperty(t,e+"$",{get:function(){return this._subjects[e].asObservable()}})})}return e.prototype.cancel=function(){this._pouchEventEmitterObject&&this._pouchEventEmitterObject.cancel(),this._subs.forEach(function(e){return e.unsubscribe()})},e}();function _(r,e){if(r._pouchEventEmitterObject)throw(0,d.newRxError)("RC1");r._pouchEventEmitterObject=e,r._subs.push((0,i.fromEvent)(e,"change").subscribe(function(e){return r._subjects.change.next(e)})),r._subs.push((0,i.fromEvent)(e,"denied").subscribe(function(e){return r._subjects.denied.next(e)})),r._subs.push((0,i.fromEvent)(e,"change").subscribe(function(e){0!==r._subjects.docs.observers.length&&"pull"===e.direction&&e.change.docs.filter(function(e){return"query"!==e.language}).map(function(e){return r.collection._handleFromPouch(e)}).forEach(function(e){return r._subjects.docs.next(e)})})),r._subs.push((0,i.fromEvent)(e,"error").subscribe(function(e){return r._subjects.error.next(e)})),r._subs.push((0,i.fromEvent)(e,"active").subscribe(function(){return r._subjects.active.next(!0)})),r._subs.push((0,i.fromEvent)(e,"paused").subscribe(function(){return r._subjects.active.next(!1)})),r._subs.push((0,i.fromEvent)(e,"complete").subscribe(function(e){var t=Array.from(r.collection._watchForChangesUnhandled);Promise.all(t).then(function(){return r._subjects.complete.next(e)})})),r._subs.push((0,i.fromEvent)(e,"paused").pipe((0,s.skipUntil)((0,i.fromEvent)(e,"active"))).subscribe(function(){(function e(t){var r=t.state;if("active"===(r=r||[t.pull.state,t.push.state].reduce(function(e,t){return"active"===e||"active"===t?"active":"stopped"===e?e:t},"")))return(0,h.promiseWait)(15).then(function(){return e(t)});var n="stopped"!==r;return Promise.resolve(n)})(r._pouchEventEmitterObject).then(function(e){return r._subjects.alive.next(e)})}))}function m(e){return new c(e)}function l(e){var t=this,r=e.remote,n=e.waitForLeadership,o=void 0===n||n,i=e.direction,s=void 0===i?{pull:!0,push:!0}:i,u=e.options,a=void 0===u?{live:!0,retry:!0}:u,c=e.query,l=(0,h.flatClone)(a);if((0,b.isInstanceOf)(r)&&y.has(r))throw(0,d.newRxError)("RC3",{database:this.database.name,collection:this.name});if((0,v.isInstanceOf)(r)&&(r.watchForChanges(),r=r.pouch),c&&this!==c.collection)throw(0,d.newRxError)("RC2",{query:c});var f=(0,b.pouchReplicationFunction)(this.pouch,s);c&&(l.selector=c.keyCompress().selector);var p=m(this);return(o?this.database.waitForLeadership():(0,h.promiseWait)(0)).then(function(){var e=f(r,l);t.watchForChanges(),_(p,e),t._repStates.push(p)}),p}r.RxReplicationStateBase=c;var f={RxCollection:function(e){e.sync=l}},p={createRxCollection:function(e){y.add(e.pouch)}},g={rxdb:r.rxdb=!0,prototypes:r.prototypes=f,hooks:r.hooks=p,sync:l};r.default=g},{"../core":3,"../pouch-db":27,"../rx-collection":32,"../rx-error":36,"../util":52,"./watch-for-changes":26,"@babel/runtime/helpers/interopRequireDefault":60,"pouchdb-replication":472,rxjs:484,"rxjs/operators":682}],23:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.checkFieldNameRegex=l,r.validateFieldsDeep=f,r.checkSchema=p,r.default=r.hooks=r.rxdb=void 0;var i=o(e("object-path")),s=n(e("../rx-document")),u=e("../rx-error"),a=e("../rx-schema"),c=e("../rx-collection");function l(e){if(""!==e&&"_id"!==e){if(["properties","language"].includes(e))throw(0,u.newRxError)("SC23",{fieldName:e});var t="^[a-zA-Z](?:[[a-zA-Z0-9_]*]?[a-zA-Z0-9])?$",r=new RegExp(t);if(!e.match(r))throw(0,u.newRxError)("SC1",{regex:t,fieldName:e})}}function f(e){return function r(n,o){"object"==typeof n&&Object.keys(n).forEach(function(e){n.properties||function(e,t,r){if("string"!=typeof e||"object"!=typeof t||Array.isArray(t)||l(e),t.hasOwnProperty("item")&&"array"!==t.type)throw(0,u.newRxError)("SC2",{fieldName:e});if(t.hasOwnProperty("required")&&"boolean"==typeof t.required)throw(0,u.newRxError)("SC24",{fieldName:e});if(t.hasOwnProperty("ref"))switch(t.type){case"string":break;case"array":if(!t.items||!t.items.type||"string"!==t.items.type)throw(0,u.newRxError)("SC3",{fieldName:e});break;default:throw(0,u.newRxError)("SC4",{fieldName:e})}if(t.hasOwnProperty("ref")&&t.primary)throw(0,u.newRxError)("SC5",{fieldName:e});var n=2<=r.split(".").length;if(n){if(t.primary)throw(0,u.newRxError)("SC6",{path:r,primary:t.primary});if(t.default)throw(0,u.newRxError)("SC7",{path:r})}if(!n&&"_"===e.charAt(0)){if("_id"===e&&t.primary)return;throw(0,u.newRxError)("SC8",{fieldName:e})}}(e,n[e],o);var t=o;"properties"!==e&&(t=t+"."+e),r(n[e],t)})}(e,""),!0}function p(n){if(n.properties._rev)throw(0,u.newRxError)("SC10",{schema:n});if(!n.hasOwnProperty("version")||"number"!=typeof n.version||n.version<0)throw(0,u.newRxError)("SC11",{version:n.version});var r;if(f(n),Object.keys(n.properties).forEach(function(e){var t=n.properties[e];if(t.primary){if(r)throw(0,u.newRxError)("SC12",{value:t});if(r=e,t.index)throw(0,u.newRxError)("SC13",{value:t});if(t.unique)throw(0,u.newRxError)("SC14",{value:t});if(t.encrypted)throw(0,u.newRxError)("SC15",{value:t});if("string"!==t.type)throw(0,u.newRxError)("SC16",{value:t})}if(s.default.properties().includes(e))throw(0,u.newRxError)("SC17",{key:e})}),n.compoundIndexes){if(!Array.isArray(n.compoundIndexes))throw(0,u.newRxError)("SC18",{compoundIndexes:n.compoundIndexes});n.compoundIndexes.forEach(function(e){if(!Array.isArray(e))throw(0,u.newRxError)("SC19",{compoundIndexes:n.compoundIndexes});e.forEach(function(e){if("string"!=typeof e)throw(0,u.newRxError)("SC20",{compoundIndexes:n.compoundIndexes})})})}(0,a.getIndexes)(n).reduce(function(e,t){return e.concat(t)},[]).filter(function(e,t,r){return r.indexOf(e)===t}).map(function(e){var t="properties."+e.replace(/\./g,".properties."),r=i.default.get(n,t);if(!r||"object"!=typeof r)throw(0,u.newRxError)("SC21",{key:e});return{key:e,schemaObj:r}}).filter(function(e){return"string"!==e.schemaObj.type&&"integer"!==e.schemaObj.type&&"number"!==e.schemaObj.type}).forEach(function(e){throw(0,u.newRxError)("SC22",{key:e.key,type:e.schemaObj.type})})}function h(e){e&&Object.entries(e).forEach(function(e){var t=e[0],r=e[1];if("string"!=typeof t)throw(0,u.newRxTypeError)("COL14",{name:t});if(t.startsWith("_"))throw(0,u.newRxTypeError)("COL15",{name:t});if("function"!=typeof r)throw(0,u.newRxTypeError)("COL16",{name:t,type:typeof t});if((0,c.properties)().includes(t)||(0,s.properties)().includes(t))throw(0,u.newRxError)("COL17",{name:t})})}var d={preCreateRxSchema:p,createRxCollection:function(e){h(e.statics),h(e.methods),h(e.attachments),e.schema&&e.migrationStrategies&&function(t,r){if("object"!=typeof r||Array.isArray(r))throw(0,u.newRxTypeError)("COL11",{schema:t});var e=(0,a.getPreviousVersions)(t);if(e.length!==Object.keys(r).length)throw(0,u.newRxError)("COL12",{have:Object.keys(r),should:e});e.map(function(e){return{v:e,s:r[e+1]}}).filter(function(e){return"function"!=typeof e.s}).forEach(function(e){throw(0,u.newRxTypeError)("COL13",{version:e.v,type:typeof e,schema:t})})}(e.schema,e.migrationStrategies)}},b={rxdb:r.rxdb=!0,hooks:r.hooks=d};r.default=b},{"../rx-collection":32,"../rx-document":35,"../rx-error":36,"../rx-schema":38,"@babel/runtime/helpers/interopRequireDefault":60,"@babel/runtime/helpers/interopRequireWildcard":61,"object-path":428}],24:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.update=i,r.RxQueryUpdate=s,r.default=r.prototypes=r.rxdb=void 0;var o=n(e("modifyjs"));function i(e){var t=this._data,r=(0,o.default)(t,e);return this._saveData(r,t)}function s(t){return this.exec().then(function(e){return e?Array.isArray(e)?Promise.all(e.map(function(e){return e.update(t)})).then(function(){return e}):e.update(t).then(function(){return e}):null})}var u={RxDocument:function(e){e.update=i},RxQuery:function(e){e.update=s}},a={rxdb:r.rxdb=!0,prototypes:r.prototypes=u};r.default=a},{"@babel/runtime/helpers/interopRequireDefault":60,modifyjs:423}],25:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.hooks=r.prototypes=r.rxdb=void 0;var o=n(e("is-my-json-valid")),i=e("../rx-error"),s=e("../util"),u=new Map;function a(e){var t=e.hash;if(!u.has(t)){var r=(0,o.default)(e.jsonID);u.set(t,r)}return u.get(t)}function c(e){var t=a(this);if(t(e))return e;throw(0,i.newRxError)("VD2",{errors:t.errors,obj:e,schema:this.jsonID})}var l={RxSchema:function(e){e._getValidator=a,e.validate=c}},f={createRxSchema:function(e){(0,s.requestIdleCallbackIfAvailable)(function(){a(e)})}},p={rxdb:r.rxdb=!0,prototypes:r.prototypes=l,hooks:r.hooks=f};r.default=p},{"../rx-error":36,"../util":52,"@babel/runtime/helpers/interopRequireDefault":60,"is-my-json-valid":419}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.watchForChanges=o,r.default=r.prototypes=r.rxdb=void 0;var n=e("rxjs"),i=e("rxjs/operators"),s=e("../util"),u=e("../rx-change-event");function o(){var o=this;if(!this.synced){this.synced=!0,this._watchForChangesUnhandled=new Set;var e=(0,n.fromEvent)(this.pouch.changes({since:"now",live:!0,include_docs:!0}),"change").pipe((0,i.map)(function(e){return e[0]})).subscribe(function(e){var r,n,t=(r=o,"_"===(n=e).id.charAt(0)?Promise.resolve(!1):(0,s.promiseWait)(20).then(function(){return(0,s.nextTick)()}).then(function(){return(0,s.nextTick)()}).then(function(){var e=n.doc;if(r._changeEventBuffer.hasChangeWithRevision(e._rev))return!1;var t=(0,u.changeEventfromPouchChange)(e,r);return r.$emit(t),!0}));o._watchForChangesUnhandled.add(t),t.then(function(){o._watchForChangesUnhandled.delete(t)})});this._subs.push(e)}}var a={RxCollection:function(e){e.watchForChanges=o}},c={rxdb:r.rxdb=!0,prototypes:r.prototypes=a};r.default=c},{"../rx-change-event":30,"../util":52,rxjs:484,"rxjs/operators":682}],27:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.countAllUndeleted=function(e){return e.allDocs({include_docs:!1,attachments:!1}).then(function(e){return e.rows.filter(function(e){return!e.id.startsWith("_design/")}).length})},r.getBatch=function(e,t){if(t<=1)throw(0,s.newRxError)("P1",{limit:t});return e.allDocs({include_docs:!0,attachments:!1,limit:t}).then(function(e){return e.rows.map(function(e){return e.doc}).filter(function(e){return!e._id.startsWith("_design")})})},r.isLevelDown=function(e){if(!e||"function"!=typeof e.super_)throw(0,s.newRxError)("UT4",{adapter:e})},r.validateCouchDBString=function(e){if("string"!=typeof e||0===e.length)throw(0,s.newRxTypeError)("UT1",{name:e});if(e.includes("/")||e.includes("\\"))return!0;var t="^[a-z][_$a-z0-9]*$",r=new RegExp(t);if(e.match(r))return!0;throw(0,s.newRxError)("UT2",{regex:t,givenName:e})},r.pouchReplicationFunction=function(e,t){var r=t.pull,n=void 0===r||r,o=t.push,i=void 0===o||o;if(n&&i)return e.sync.bind(e);if(!n&&i)return e.replicate.to.bind(e);if(n&&!i)return e.replicate.from.bind(e);if(!n&&!i)throw(0,s.newRxError)("UT3",{pull:n,push:i})},r.isInstanceOf=function(e){return e instanceof o.default},r.PouchDB=void 0;var o=n(e("pouchdb-core")),i=n(e("pouchdb-find")),s=e("./rx-error");o.default.plugin(i.default);var u=o.default;r.PouchDB=u},{"./rx-error":36,"@babel/runtime/helpers/interopRequireDefault":60,"pouchdb-core":446,"pouchdb-find":451}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createQueryCache=function(){return new n},r.QueryCache=void 0;var n=function(){function e(){this.subs=[],this._map=new Map}var t=e.prototype;return t.getByQuery=function(e){var t=e.toString();return this._map.has(t)||this._map.set(t,e),this._map.get(t)},t.destroy=function(){this.subs.forEach(function(e){return e.unsubscribe()}),this._map=new Map},e}();r.QueryCache=n},{}],29:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.sortCompareFunction=m,r._isSortedBefore=g,r._sortFieldChanged=w,r._getSortOptions=a,r._isDocInResultData=x,r.enableDebugging=c,r.create=l,r.default=r.QueryChangeDetector=void 0;var s=e("pouchdb-selector-core"),i=n(e("object-path")),b=e("array-push-at-sort-position"),v=e("./util"),y=!1,o=function(){function e(e){this.query=e,this.primaryKey=e.collection.schema.primaryPath}var t=e.prototype;return t.runChangeDetection=function(e){var r=this;if(0===e.length)return!1;if(!this.query.collection.database.queryChangeDetection)return!0;var n=this.query._resultsData,o=!1;return!!e.find(function(e){var t=r.handleSingleChange(n,e);return Array.isArray(t)?(n=t,!(o=!0)):!!t||void 0})||!!o&&n},t.handleSingleChange=function(t,e){var r=this,n=t.slice(0),o=this.query.toJSON(),i=e.data.v,s=x(this,i,t),u=this.query.doesDocumentDataMatch(i),a=!o.limit||o.limit&&t.length>=o.limit,c=o.limit&&t.length>=o.limit;y&&(console.log("QueryChangeDetector.handleSingleChange()"),_(this,"start",e.data.v,"handleSingleChange()"),console.log("changeEvent.data:"),console.dir(e.data),console.log("wasDocInResults: "+s),console.log("doesMatchNow: "+u),console.log("isFilled: "+a),console.log("options:"+JSON.stringify(o)));var l=null,f=null,p=null;if("REMOVE"===e.data.op){if(!s&&!u)return _(this,"R1",i),!1;if(o.skip&&u&&(null===f&&(f=g(r,i,n[0])),f)&&!a)return _(this,"R2",i),n.shift(),n;if(u&&s&&!a)return _(this,"R3",i),n=(0,v.removeOneFromArrayIfMatches)(n,function(e){return e[r.primaryKey]===i[r.primaryKey]});if(1===o.limit&&!u&&s)return _(this,"R3.05",i),!0;if(u&&s&&!o.limit&&!o.skip)return _(this,"R3.1",i),n=(0,v.removeOneFromArrayIfMatches)(n,function(e){return e[r.primaryKey]===i[r.primaryKey]});if(u&&o.limit&&(null===l&&(l=g(r,n[n.length-1],i)),l))return _(this,"R4",i),!1}else{if(!o.skip&&!s&&!u)return _(this,"U1",i),!1;if(!o.skip&&!o.limit&&s&&u){if(function(){if(null===p){var e=(0,v.removeOneFromArrayIfMatches)(t,function(e){return e[r.primaryKey]===i[r.primaryKey]});p=w(r,e,i)}return w}())return _(this,"U2 - resort",i),n=(0,v.removeOneFromArrayIfMatches)(n,function(e){return e[r.primaryKey]===i[r.primaryKey]}),n=(0,b.pushAtSortPosition)(n,i,m(this));_(this,"U2 - no-resort",i);var h=n.find(function(e){return e[r.primaryKey]===i[r.primaryKey]}),d=n.indexOf(h);return n[d]=i,n}if(!o.skip&&!c&&!s&&u)return _(this,"U3",i),n=(0,b.pushAtSortPosition)(n,i,m(this))}return _(this,"NO_MATCH",i),!0},e}();function _(e,t,r,n){var o=2<arguments.length&&void 0!==r?r:{},i=3<arguments.length&&void 0!==n?n:"optimized";y&&console.dir({name:"QueryChangeDetector",title:i,query:e.query.toString(),key:t,changeEventData:o})}r.QueryChangeDetector=o;var u=new WeakMap;function m(n){if(u.has(n))return u.get(n);function e(e,t){var r=[e,t].map(function(e){return{doc:n.query.collection.schema.swapPrimaryToId(e)}});return(0,s.filterInMemoryFields)(r,{selector:n.query.massageSelector,sort:o},i)[0].doc._id===r[0].doc._id?-1:1}var o=a(n),i=Object.keys(n.query.toJSON().selector);return u.set(n,e),e}function g(e,t,r){return 1!==m(e)(t,r)}function w(e,t,r){var n=a(e).map(function(e){return Object.keys(e).pop()}),o=!1;return n.find(function(e){return i.default.get(t,e)!==i.default.get(r,e)&&(o=!0)}),o}function a(e){if(!e._sortOptions){var t=e.query.toJSON().sort;t=t||[{_id:"asc"}],e._sortOptions=t}return e._sortOptions}function x(e,t,r){var n=e.query.collection.schema.primaryPath;return!!r.find(function(e){return e[n]===t[n]})}function c(){console.log("QueryChangeDetector.enableDebugging()"),y=!0}function l(e){return new o(e)}var f={create:l,enableDebugging:c};r.default=f},{"./util":52,"@babel/runtime/helpers/interopRequireDefault":60,"array-push-at-sort-position":67,"object-path":428,"pouchdb-selector-core":474}],30:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.changeEventfromJSON=function(e){return new u(e)},r.changeEventfromPouchChange=function(e,t){var r=e._rev.startsWith("1-")?"INSERT":"UPDATE";e._deleted&&(r="REMOVE");e=t._handleFromPouch(e);var n={op:r,t:(new Date).getTime(),db:"remote",col:t.name,it:t.database.token,doc:e[t.schema.primaryPath],v:e};return new u(n)},r.createChangeEvent=function(e,t,r,n,o){var i=5<arguments.length&&void 0!==arguments[5]&&arguments[5],s={col:r?r.name:null,doc:n?n.primary:null,v:o||null,op:e,t:(new Date).getTime(),db:t.name,it:t.token,isLocal:i};return new u(s)},r.isInstanceOf=function(e){return e instanceof u},r.RxChangeEvent=void 0;var o=n(e("@babel/runtime/helpers/createClass")),i=e("./util"),u=function(){function e(e){this._hash=null,this.data=e}var t=e.prototype;return t.toJSON=function(){var e={col:null,doc:null,v:null,op:this.data.op,t:this.data.t,db:this.data.db,it:this.data.it,isLocal:this.data.isLocal};return this.data.col&&(e.col=this.data.col),this.data.doc&&(e.doc=this.data.doc),this.data.v&&(e.v=this.data.v),e},t.isIntern=function(){return!(!this.data.col||"_"!==this.data.col.charAt(0))},t.isSocket=function(){return!(!this.data.col||"_socket"!==this.data.col)},(0,o.default)(e,[{key:"hash",get:function(){return this._hash||(this._hash=(0,i.hash)(this.data)),this._hash}}]),e}();r.RxChangeEvent=u},{"./util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r._handleToPouch=function(e,t){t=e._crypter.encrypt(t),t=e.schema.swapPrimaryToId(t),e.schema.doKeyCompression()&&(t=e._keyCompressor.compress(t));return t},r._handleFromPouch=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];t=e.schema.swapIdToPrimary(t),e.schema.doKeyCompression()&&(t=e._keyCompressor.decompress(t));return r?t:t=e._crypter.decrypt(t)},r.fillObjectDataBeforeInsert=function(e,t){var r=e.schema.fillObjectWithDefaults(t);if(r._id&&"_id"!==e.schema.primaryPath)throw(0,o.newRxError)("COL2",{data:t});"_id"!==e.schema.primaryPath||r._id||(r._id=(0,n.generateId)());return r};var n=e("./util"),o=e("./rx-error")},{"./rx-error":36,"./util":52}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.properties=k,r.create=P,r.isInstanceOf=A,r.default=r.RxCollectionBase=void 0;var o=n(e("@babel/runtime/helpers/createClass")),i=e("rxjs/operators"),c=e("./util"),m=e("./pouch-db"),s=e("./rx-collection-helper"),u=e("./rx-query"),g=e("./rx-schema"),a=e("./rx-change-event"),w=e("./rx-error"),l=e("./data-migrator"),f=n(e("./crypter")),p=e("./doc-cache"),h=e("./query-cache"),d=e("./change-event-buffer"),b=n(e("./overwritable")),x=e("./hooks"),v=e("./rx-document"),y=e("./rx-document-prototype-merge"),_=["pre","post"],O=["insert","save","remove","create"],j=!1,S=function(){function e(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{},s=6<arguments.length&&void 0!==arguments[6]?arguments[6]:{},u=7<arguments.length&&void 0!==arguments[7]?arguments[7]:{},a=8<arguments.length&&void 0!==arguments[8]?arguments[8]:{};this._isInMemory=!1,this.destroyed=!1,this._atomicUpsertQueues=new Map,this.synced=!1,this.hooks={},this._subs=[],this._repStates=[],this.pouch={},this._docCache=(0,p.createDocCache)(),this._queryCache=(0,h.createQueryCache)(),this._dataMigrator={},this._crypter={},this._changeEventBuffer={},this.database=e,this.name=t,this.schema=r,this.pouchSettings=n,this.migrationStrategies=o,this.methods=i,this.attachments=s,this.options=u,this.statics=a,function(e){if(j)return;j=!0;var t=Object.getPrototypeOf(e);O.forEach(function(n){_.map(function(r){var e=r+(0,c.ucfirst)(n);t[e]=function(e,t){return this.addHook(r,n,e,t)}})})}(this)}var t=e.prototype;return t.prepare=function(){var r=this;this.pouch=this.database._spawnPouchDB(this.name,this.schema.version,this.pouchSettings),this.schema.doKeyCompression()&&(this._keyCompressor=b.default.createKeyCompressor(this.schema));var n,o,e=this.pouch.info(),t=(n=this,o=e,Promise.all(n.schema.indexes.map(function(e){var t=e.map(function(e){return n.schema.doKeyCompression()?n._keyCompressor.transformKey("","",e.split(".")):e});return o.then(function(){return n.pouch.createIndex({index:{fields:t}})})})));return this._dataMigrator=(0,l.createDataMigrator)(this,this.migrationStrategies),this._crypter=f.default.create(this.database.password,this.schema),this._observable$=this.database.$.pipe((0,i.filter)(function(e){return e.data.col===r.name})),this._changeEventBuffer=(0,d.createChangeEventBuffer)(this),this._subs.push(this._observable$.pipe((0,i.filter)(function(e){return!e.data.isLocal})).subscribe(function(e){var t=r._docCache.get(e.data.doc);t&&t._handleChangeEvent(e)})),Promise.all([e,t])},t.migrationNeeded=function(){return(0,l.mustMigrate)(this._dataMigrator)},t.migrate=function(e){var t=0<arguments.length&&void 0!==e?e:10;return this._dataMigrator.migrate(t)},t.migratePromise=function(e){var t=0<arguments.length&&void 0!==e?e:10;return this._dataMigrator.migratePromise(t)},t._handleToPouch=function(e){return(0,s._handleToPouch)(this,e)},t._handleFromPouch=function(e,t){var r=1<arguments.length&&void 0!==t&&t;return(0,s._handleFromPouch)(this,e,r)},t._pouchPut=function(t,e){var r=this,n=1<arguments.length&&void 0!==e&&e;return t=this._handleToPouch(t),this.database.lockedRun(function(){return r.pouch.put(t)}).catch(function(e){if(n&&409===e.status)return r.database.lockedRun(function(){return r.pouch.get(t._id)}).then(function(e){return t._rev=e._rev,r.database.lockedRun(function(){return r.pouch.put(t)})});throw 409===e.status?(0,w.newRxError)("COL19",{id:t._id,pouchDbError:e,data:t}):e})},t._pouchGet=function(e){var t=this;return this.pouch.get(e).then(function(e){return t._handleFromPouch(e)})},t._pouchFind=function(e,t,r){var n=this,o=2<arguments.length&&void 0!==r&&r,i=e.keyCompress();return t&&(i.limit=t),this.database.lockedRun(function(){return n.pouch.find(i)}).then(function(e){return e.docs.map(function(e){return n._handleFromPouch(e,o)})})},t.$emit=function(e){return this.database.$emit(e)},t.insert=function(e){var t=this,r=null;if((0,v.isInstanceOf)(e)){if(!(r=e)._isTemporary)throw(0,w.newRxError)("COL1",{data:e});e=r.toJSON()}var n=(0,s.fillObjectDataBeforeInsert)(this,e),o=r;return this._runHooks("pre","insert",n).then(function(){return t.schema.validate(n),t._pouchPut(n)}).then(function(e){return n[t.schema.primaryPath]=e.id,n._rev=e.rev,r?r._dataSync$.next(n):o=(0,y.createRxDocument)(t,n),t._runHooks("post","insert",n,o)}).then(function(){var e=(0,a.createChangeEvent)("INSERT",t.database,t,o,n);return t.$emit(e),o})},t.bulkInsert=function(e){var n=this,t=e.map(function(e){return(0,s.fillObjectDataBeforeInsert)(n,e)});return Promise.all(t.map(function(e){return n._runHooks("pre","insert",e).then(function(){return n.schema.validate(e),e})})).then(function(e){var t=e.map(function(e){return n._handleToPouch(e)}),r=new Map;return e.forEach(function(e){r.set(e[n.schema.primaryPath],e)}),n.database.lockedRun(function(){return n.pouch.bulkDocs(t).then(function(e){var t=e.filter(function(e){return e.ok}).map(function(e){var t=r.get(e.id);return t._rev=e.rev,(0,y.createRxDocument)(n,t)});return t.forEach(function(e){var t=(0,a.createChangeEvent)("INSERT",n.database,n,e,r.get(e.primary));n.$emit(t)}),{success:t,error:e.filter(function(e){return!e.ok})}})})})},t.upsert=function(t){var r=this,n=(0,c.flatClone)(t),e=n[this.schema.primaryPath];if(!e)throw(0,w.newRxError)("COL3",{primaryPath:this.schema.primaryPath,data:n});return this.findOne(e).exec().then(function(e){return e?(n._rev=e._rev,e.atomicUpdate(function(){return n}).then(function(){return e})):r.insert(t)})},t.atomicUpsert=function(n){var e,o=this,i=n[this.schema.primaryPath];if(!i)throw(0,w.newRxError)("COL4",{data:n});return e=(e=this._atomicUpsertQueues.has(i)?this._atomicUpsertQueues.get(i):Promise.resolve()).then(function(){return e=i,r=n,(t=o).findOne(e).exec().then(function(e){return e?{doc:e,inserted:!1}:t.insert(r).then(function(e){return{doc:e,inserted:!0}})});var t,e,r}).then(function(e){return e.inserted?e.doc:(t=e.doc,r=n,t.atomicUpdate(function(e){return r._rev=e._rev,e._data=r,e._data}).then(function(){return t})).then(function(){return(0,c.nextTick)()}).then(function(){return e.doc});var t,r}),this._atomicUpsertQueues.set(i,e),e},t.find=function(e){if("string"==typeof e)throw(0,w.newRxError)("COL5",{queryObj:e});return(0,u.createRxQuery)("find",e,this)},t.findOne=function(e){var t;if(t="string"==typeof e?(0,u.createRxQuery)("findOne",{_id:e},this):(0,u.createRxQuery)("findOne",e,this),"number"==typeof e||Array.isArray(e))throw(0,w.newRxTypeError)("COL6",{queryObj:e});return t},t.dump=function(e){throw(0,c.pluginMissing)("json-dump")},t.importDump=function(){throw(0,c.pluginMissing)("json-dump")},t.watchForChanges=function(){throw(0,c.pluginMissing)("watch-for-changes")},t.sync=function(){throw(0,c.pluginMissing)("replication")},t.syncGraphQL=function(){throw(0,c.pluginMissing)("replication-graphql")},t.inMemory=function(){throw(0,c.pluginMissing)("in-memory")},t.addHook=function(e,t,r,n){var o=3<arguments.length&&void 0!==n&&n;if("function"!=typeof r)throw(0,w.newRxTypeError)("COL7",{key:t,when:e});if(!_.includes(e))throw(0,w.newRxTypeError)("COL8",{key:t,when:e});if(!O.includes(t))throw(0,w.newRxError)("COL9",{key:t});if("post"===e&&"create"===t&&!0===o)throw(0,w.newRxError)("COL10",{when:e,key:t,parallel:o});var i=r.bind(this),s=o?"parallel":"series";this.hooks[t]=this.hooks[t]||{},this.hooks[t][e]=this.hooks[t][e]||{series:[],parallel:[]},this.hooks[t][e][s].push(i)},t.getHooks=function(e,t){try{return this.hooks[t][e]}catch(e){return{series:[],parallel:[]}}},t._runHooks=function(e,t,r,n){var o=this.getHooks(e,t);if(!o)return Promise.resolve();var i=o.series.map(function(e){return function(){return e(r,n)}});return(0,c.promiseSeries)(i).then(function(){return Promise.all(o.parallel.map(function(e){return e(r,n)}))})},t._runHooksSync=function(e,t,r,n){var o=this.getHooks(e,t);o&&o.series.forEach(function(e){return e(r,n)})},t.newDocument=function(e){var t=0<arguments.length&&void 0!==e?e:{};t=this.schema.fillObjectWithDefaults(t);var r=(0,v.createWithConstructor)((0,y.getRxDocumentConstructor)(this),this,t);return r._isTemporary=!0,this._runHooksSync("post","create",t,r),r},t.destroy=function(){return this.destroyed?Promise.resolve(!1):(this._onDestroyCall&&this._onDestroyCall(),this._subs.forEach(function(e){return e.unsubscribe()}),this._changeEventBuffer&&this._changeEventBuffer.destroy(),this._queryCache.destroy(),this._repStates.forEach(function(e){return e.cancel()}),delete this.database.collections[this.name],this.destroyed=!0,Promise.resolve(!0))},t.remove=function(){return this.database.removeCollection(this.name)},(0,o.default)(e,[{key:"$",get:function(){return this._observable$}},{key:"insert$",get:function(){return this.$.pipe((0,i.filter)(function(e){return"INSERT"===e.data.op}))}},{key:"update$",get:function(){return this.$.pipe((0,i.filter)(function(e){return"UPDATE"===e.data.op}))}},{key:"remove$",get:function(){return this.$.pipe((0,i.filter)(function(e){return"REMOVE"===e.data.op}))}},{key:"docChanges$",get:function(){return this.__docChanges$||(this.__docChanges$=this.$.pipe((0,i.filter)(function(e){return["INSERT","UPDATE","REMOVE"].includes(e.data.op)}))),this.__docChanges$}},{key:"onDestroy",get:function(){var t=this;return this._onDestroy||(this._onDestroy=new Promise(function(e){return t._onDestroyCall=e})),this._onDestroy}}]),e}();r.RxCollectionBase=S;var E=null;function k(){if(!E){var e=new S,t=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(Object.getPrototypeOf(e));E=[].concat(t,r)}return E}function P(e){var t=e.database,r=e.name,n=e.schema,o=e.pouchSettings,i=void 0===o?{}:o,s=e.migrationStrategies,u=void 0===s?{}:s,a=e.autoMigrate,c=void 0===a||a,l=e.statics,f=void 0===l?{}:l,p=e.methods,h=void 0===p?{}:p,d=e.attachments,b=void 0===d?{}:d,v=e.options,y=void 0===v?{}:v;(0,m.validateCouchDBString)(r),(0,g.isInstanceOf)(n)||(n=(0,g.createRxSchema)(n)),Object.keys(h).filter(function(e){return n.topLevelFields.includes(e)}).forEach(function(e){throw(0,w.newRxError)("COL18",{funName:e})});var _=new S(t,r,n,i,u,h,b,y,f);return _.prepare().then(function(){Object.entries(f).forEach(function(e){var t=e[0],r=e[1];Object.defineProperty(_,t,{get:function(){return r.bind(_)}})});var e=Promise.resolve();return c&&(e=_.migratePromise()),e}).then(function(){return(0,x.runPluginHooks)("createRxCollection",_),_})}function A(e){return e instanceof S}var C={create:P,properties:k,isInstanceOf:A,RxCollectionBase:S};r.default=C},{"./change-event-buffer":2,"./crypter":4,"./data-migrator":5,"./doc-cache":6,"./hooks":7,"./overwritable":11,"./pouch-db":27,"./query-cache":28,"./rx-change-event":30,"./rx-collection-helper":31,"./rx-document":35,"./rx-document-prototype-merge":34,"./rx-error":36,"./rx-query":37,"./rx-schema":38,"./util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60,"rxjs/operators":682}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.properties=x,r._preparePasswordHash=O,r._ensureStorageTokenExists=j,r.writeToSocket=S,r._collectionNamePrimary=E,r._removeAllOfCollection=k,r.create=A,r.getPouchLocation=C,r.removeDatabase=D,r.checkAdapter=T,r.isInstanceOf=N,r.dbCount=B,r.default=r.RxDatabaseBase=void 0;var o=n(e("@babel/runtime/helpers/createClass")),u=n(e("random-token")),a=n(e("custom-idle-queue")),i=e("broadcast-channel"),l=e("./util"),b=e("./rx-error"),c=e("./rx-schema"),f=e("./rx-change-event"),v=n(e("./overwritable")),y=e("./hooks"),p=e("rxjs"),h=e("rxjs/operators"),_=e("./pouch-db"),d=e("./rx-collection"),m={},g=0,w=function(){function e(e,t,r,n){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{},s=6<arguments.length?arguments[6]:void 0;this.idleQueue=new a.default,this.token=(0,u.default)(10),this._subs=[],this.destroyed=!1,this.subject=new p.Subject,this.observable$=this.subject.asObservable().pipe((0,h.filter)(function(e){return(0,f.isInstanceOf)(e)})),this._adminPouch={},this._collectionsPouch={},this.name=e,this.adapter=t,this.password=r,this.multiInstance=n,this.queryChangeDetection=o,this.options=i,this.pouchSettings=s,this.collections={},void 0!==e&&g++}var t=e.prototype;return t.dangerousRemoveCollectionInfo=function(){var t=this._collectionsPouch;return t.allDocs().then(function(e){return Promise.all(e.rows.map(function(e){return{_id:e.key,_rev:e.value.rev}}).map(function(e){return t.remove(e._id,e._rev)}))})},t._spawnPouchDB=function(e,t,r){var n=2<arguments.length&&void 0!==r?r:{};return R(this.name,this.adapter,e,t,n,this.pouchSettings)},t.waitForLeadership=function(){return this.multiInstance?this.leaderElector.waitForLeadership():Promise.resolve(!0)},t.$emit=function(e){e&&(this.subject.next(e),e.data.it===this.token&&S(this,e))},t.removeCollectionDoc=function(e,t){var r=this,n=E(e,t);return this._collectionsPouch.get(n).then(function(e){return r.lockedRun(function(){return r._collectionsPouch.remove(e)})})},t.collection=function(r){var n=this;if("string"==typeof r)return Promise.resolve(this.collections[r]);if((r=Object.assign({},r)).database=this,(0,y.runPluginHooks)("preCreateRxCollection",r),"_"===r.name.charAt(0))throw(0,b.newRxError)("DB2",{name:r.name});if(this.collections[r.name])throw(0,b.newRxError)("DB3",{name:r.name});if(!r.schema)throw(0,b.newRxError)("DB4",{name:r.name,args:r});var t=E(r.name,r.schema);if(x().includes(r.name))throw(0,b.newRxError)("DB5",{name:r.name});var o,i,e=(0,c.createRxSchema)(r.schema),s=(r.schema=e).hash;return this.lockedRun(function(){return n._collectionsPouch.get(t)}).catch(function(){return null}).then(function(t){return(o=t)&&t.schemaHash!==s?n._spawnPouchDB(r.name,r.schema.version,r.pouchSettings).find({selector:{_id:{}},limit:1}).then(function(e){if(0!==e.docs.length)throw(0,b.newRxError)("DB6",{name:r.name,previousSchemaHash:t.schemaHash,schemaHash:s});return t}):t}).then(function(){return(0,d.create)(r)}).then(function(e){if(i=e,0<Object.keys(e.schema.encryptedPaths).length&&!n.password)throw(0,b.newRxError)("DB7",{name:r.name});if(!o)return n.lockedRun(function(){return n._collectionsPouch.put({_id:t,schemaHash:s,schema:e.schema.normalized,version:e.schema.version})}).catch(function(){})}).then(function(){var e=(0,f.createChangeEvent)("RxDatabase.collection",n,i);return e.data.v=i.name,e.data.col="_collections",n.collections[r.name]=i,n[r.name]||Object.defineProperty(n,r.name,{get:function(){return n.collections[r.name]}}),n.$emit(e),i})},t.removeCollection=function(t){var r=this;return this.collections[t]&&this.collections[t].destroy(),k(this,t).then(function(e){return e.map(function(e){return r._spawnPouchDB(t,e)})}).then(function(e){return Promise.all(e.map(function(e){return r.lockedRun(function(){return e.destroy()})}))})},t.lockedRun=function(e){return this.idleQueue.wrapCall(e)},t.requestIdlePromise=function(){return this.idleQueue.requestIdlePromise()},t.dump=function(e,t){throw(0,l.pluginMissing)("json-dump")},t.importDump=function(){throw(0,l.pluginMissing)("json-dump")},t.server=function(){throw(0,l.pluginMissing)("server")},t.destroy=function(){var t=this;return this.destroyed?Promise.resolve(!1):((0,y.runPluginHooks)("preDestroyRxDatabase",this),g--,this.destroyed=!0,this.broadcastChannel&&setTimeout(function(){return t.broadcastChannel.close()},1e3),this._leaderElector&&this._leaderElector.destroy(),this._subs.map(function(e){return e.unsubscribe()}),Promise.all(Object.keys(this.collections).map(function(e){return t.collections[e]}).map(function(e){return e.destroy()})).then(function(){return function(e,t){if(!m[e])return;var r=m[e].indexOf(t);m[e].splice(r,1)}(t.name,t.adapter)}).then(function(){return!0}))},t.remove=function(){var e=this;return this.destroy().then(function(){return D(e.name,e.adapter)})},(0,o.default)(e,[{key:"leaderElector",get:function(){return this._leaderElector||(this._leaderElector=v.default.createLeaderElector(this)),this._leaderElector}},{key:"isLeader",get:function(){return!this.multiInstance||this.leaderElector.isLeader}},{key:"$",get:function(){return this.observable$}}]),e}();r.RxDatabaseBase=w;var s=null;function x(){if(!s){var e=new w,t=Object.getOwnPropertyNames(e),r=Object.getOwnPropertyNames(Object.getPrototypeOf(e));s=[].concat(t,r)}return s}function O(t){if(!t.password)return Promise.resolve(!1);var r=(0,l.hash)(t.password);return t._adminPouch.get("_local/pwHash").catch(function(){return null}).then(function(e){return e||t._adminPouch.put({_id:"_local/pwHash",value:r}).catch(function(){return null}),!e||!t.password||r===e.value||t.destroy().then(function(){throw(0,b.newRxError)("DB1",{passwordHash:(0,l.hash)(t.password),existingPasswordHash:e.value})})})}function j(e){return e._adminPouch.get("_local/storageToken").catch(function(){return e._adminPouch.put({_id:"_local/storageToken",value:(0,u.default)(10)}).catch(function(){}).then(function(){return(0,l.promiseWait)(0)})}).then(function(){return e._adminPouch.get("_local/storageToken")}).then(function(e){return e.value})}function S(e,t){if(e.multiInstance&&!t.isIntern()&&e.broadcastChannel){var r=t.toJSON();delete r.db;var n={db:e.token,st:e.storageToken,d:r};return e.broadcastChannel.postMessage(n).then(function(){return!0})}return Promise.resolve(!1)}function E(e,t){return e+"-"+t.version}function k(r,n){return r.lockedRun(function(){return r._collectionsPouch.allDocs({include_docs:!0})}).then(function(e){var t=e.rows.map(function(e){return e.doc}).filter(function(e){return e._id.split("-")[0]===n});return Promise.all(t.map(function(e){return r.lockedRun(function(){return r._collectionsPouch.remove(e)})})).then(function(){return t.map(function(e){return e.version})})})}function P(n){return n._adminPouch=M(n.name,n.adapter,n.pouchSettings),n._collectionsPouch=I(n.name,n.adapter,n.pouchSettings),n._adminPouch.info().then(function(){return Promise.all([j(n),O(n)])}).then(function(e){var r,t=e[0];n.storageToken=t,n.multiInstance&&((r=n).broadcastChannel=new i.BroadcastChannel("RxDB:"+r.name+":socket"),r.broadcastChannel$=new p.Subject,r.broadcastChannel.onmessage=function(e){if(e.st===r.storageToken&&e.db!==r.token){var t=(0,f.changeEventfromJSON)(e.d);r.broadcastChannel$.next(t)}},r._subs.push(r.broadcastChannel$.subscribe(function(e){r.$emit(e)})))})}function A(e){var t=e.name,r=e.adapter,n=e.password,o=e.multiInstance,i=void 0===o||o,s=e.queryChangeDetection,u=void 0!==s&&s,a=e.ignoreDuplicate,c=void 0!==a&&a,l=e.options,f=void 0===l?{}:l,p=e.pouchSettings,h=void 0===p?{}:p;if((0,_.validateCouchDBString)(t),"string"==typeof r){if(!_.PouchDB.adapters||!_.PouchDB.adapters[r])throw(0,b.newRxError)("DB9",{adapter:r})}else if((0,_.isLevelDown)(r),!_.PouchDB.adapters||!_.PouchDB.adapters.leveldb)throw(0,b.newRxError)("DB10",{adapter:r});n&&v.default.validatePassword(n),c||function(e,t){if(!m[e])return;var r=!1;if(m[e].forEach(function(e){e===t&&(r=!0)}),r)throw(0,b.newRxError)("DB8",{name:e,adapter:t,link:"https://pubkey.github.io/rxdb/rx-database.html#ignoreduplicate"})}(t,r),m[t]||(m[t]=[]),m[t].push(r);var d=new w(t,r,n,i,u,f,h);return P(d).then(function(){return(0,y.runPluginHooks)("createRxDatabase",d),d})}function C(e,t,r){var n=e+"-rxdb-"+r+"-";if(t.includes("/")){var o=t.split("/"),i=o.pop(),s=o.join("/");return s+="/"+n+i}return n+t}function R(e,t,r,n,o,i){var s=4<arguments.length&&void 0!==o?o:{},u=5<arguments.length&&void 0!==i?i:{},a={location:C(e,r,n),adapter:(0,l.adapterObject)(t),settings:s},c=Object.assign({},a.adapter,u,a.settings);return(0,y.runPluginHooks)("preCreatePouchDb",a),new _.PouchDB(a.location,c)}function M(e,t,r){return R(e,t,"_admin",0,{auto_compaction:!1,revs_limit:1},2<arguments.length&&void 0!==r?r:{})}function I(e,t,r){return R(e,t,"_collections",0,{auto_compaction:!1,revs_limit:1},2<arguments.length&&void 0!==r?r:{})}function D(o,i){var e=M(o,i),t=I(o,i);return t.allDocs({include_docs:!0}).then(function(e){return Promise.all(e.rows.map(function(e){return e.id}).map(function(e){var t=e.split("-"),r=t[0],n=parseInt(t[1],10);return R(o,i,r,n).destroy()}))}).then(function(){return Promise.all([t.destroy(),e.destroy()])})}function T(e){return v.default.checkAdapter(e)}function N(e){return e instanceof w}function B(){return g}var L={create:A,removeDatabase:D,checkAdapter:T,isInstanceOf:N,RxDatabaseBase:w,dbCount:B};r.default=L},{"./hooks":7,"./overwritable":11,"./pouch-db":27,"./rx-change-event":30,"./rx-collection":32,"./rx-error":36,"./rx-schema":38,"./util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60,"broadcast-channel":70,"custom-idle-queue":400,"random-token":478,rxjs:484,"rxjs/operators":682}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getDocumentPrototype=o,r.getRxDocumentConstructor=a,r.createRxDocument=c,r.createRxDocuments=function(t,e){return e.map(function(e){return c(t,e)})},r.getDocumentOrmPrototype=l;var i=e("./rx-document"),s=e("./hooks"),u=new WeakMap,n=new WeakMap;function o(e){if(!u.has(e)){var t=e.schema.getDocumentPrototype(),r=l(e),n=i.basePrototype,o={};[t,r,n].forEach(function(n){Object.getOwnPropertyNames(n).forEach(function(e){var t=Object.getOwnPropertyDescriptor(n,e),r=!0;(e.startsWith("_")||e.endsWith("_")||e.startsWith("$")||e.endsWith("$"))&&(r=!1),"function"==typeof t.value?Object.defineProperty(o,e,{get:function(){return t.value.bind(this)},enumerable:r,configurable:!1}):(t.enumerable=r,t.configurable=!1,t.writable&&(t.writable=!1),Object.defineProperty(o,e,t))})}),u.set(e,o)}return u.get(e)}function a(e){if(!n.has(e)){var t=(0,i.createRxDocumentConstructor)(o(e));n.set(e,t)}return n.get(e)}function c(e,t){var r=t[e.schema.primaryPath],n=e._docCache.get(r);if(n)return n;var o=(0,i.createWithConstructor)(a(e),e,t);return e._docCache.set(r,o),e._runHooksSync("post","create",t,o),(0,s.runPluginHooks)("postCreateRxDocument",o),o}function l(e){var n={};return Object.entries(e.methods).forEach(function(e){var t=e[0],r=e[1];n[t]=r}),n}},{"./hooks":7,"./rx-document":35}],35:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.createRxDocumentConstructor=p,r.defineGetterSetter=b,r.createWithConstructor=v,r.properties=y,r.isInstanceOf=_,r.default=r.basePrototype=void 0;var o=n(e("object-path")),i=e("rxjs"),s=e("rxjs/operators"),u=e("./util"),a=e("./rx-change-event"),c=e("./rx-error"),l=e("./hooks"),f={get _data(){if(this.isInstanceOfRxDocument)return this._dataSync$.getValue()},get primaryPath(){if(this.isInstanceOfRxDocument)return this.collection.schema.primaryPath},get primary(){if(this.isInstanceOfRxDocument)return this._data[this.primaryPath]},get revision(){if(this.isInstanceOfRxDocument)return this._data._rev},get deleted$(){if(this.isInstanceOfRxDocument)return this._deleted$.asObservable()},get deleted(){if(this.isInstanceOfRxDocument)return this._deleted$.getValue()},get $(){return this._dataSync$.asObservable()},_handleChangeEvent:function(e){if(e.data.doc===this.primary&&!((0,u.getHeightOfRevision)(e.data.v._rev)<(0,u.getHeightOfRevision)(this._data._rev)))switch(e.data.op){case"INSERT":break;case"UPDATE":var t=e.data.v;this._dataSync$.next(t);break;case"REMOVE":this.collection._docCache.delete(this.primary),this._deleted$.next(!0)}},$emit:function(e){return this.collection.$emit(e)},get$:function(t){if(t.includes(".item."))throw(0,c.newRxError)("DOC1",{path:t});if(t===this.primaryPath)throw(0,c.newRxError)("DOC2");if(this.collection.schema.finalFields.includes(t))throw(0,c.newRxError)("DOC3",{path:t});if(!this.collection.schema.getSchemaByObjectPath(t))throw(0,c.newRxError)("DOC4",{path:t});return this._dataSync$.pipe((0,s.map)(function(e){return o.default.get(e,t)}),(0,s.distinctUntilChanged)())},populate:function(e){var t=this.collection.schema.getSchemaByObjectPath(e),r=this.get(e);if(!r)return Promise.resolve(null);if(!t)throw(0,c.newRxError)("DOC5",{path:e});if(!t.ref)throw(0,c.newRxError)("DOC6",{path:e,schemaObj:t});var n=this.collection.database.collections[t.ref];if(!n)throw(0,c.newRxError)("DOC7",{ref:t.ref,path:e,schemaObj:t});return"array"===t.type?Promise.all(r.map(function(e){return n.findOne(e).exec()})):n.findOne(r).exec()},get:function(e){if(this._data){var t=o.default.get(this._data,e);return"object"!=typeof(t=(0,u.clone)(t))||Array.isArray(t)||b(this.collection.schema,t,e,this),t}},toJSON:function(e){var t=!(0<arguments.length&&void 0!==e)||e,r=(0,u.clone)(this._data);return t||(delete r._rev,delete r._attachments),r},set:function(e,t){if(!this._isTemporary)throw(0,c.newRxTypeError)("DOC16",{objPath:e,value:t});if("string"!=typeof e)throw(0,c.newRxTypeError)("DOC15",{objPath:e,value:t});if(!Object.is(this.get(e),t)){var r=e.split(".");r.pop();var n=r.join(".");if(void 0===o.default.get(this._data,n))throw(0,c.newRxError)("DOC10",{childpath:e,rootPath:n});return o.default.set(this._data,e,t),this}},update:function(){throw(0,u.pluginMissing)("update")},putAttachment:function(){throw(0,u.pluginMissing)("attachments")},getAttachment:function(){throw(0,u.pluginMissing)("attachments")},allAttachments:function(){throw(0,u.pluginMissing)("attachments")},get allAttachments$(){throw(0,u.pluginMissing)("attachments")},atomicUpdate:function(r){var n=this;return this._atomicQueue=this._atomicQueue.then(function(){var t=n._dataSync$.getValue(),e=r((0,u.clone)(n._dataSync$.getValue()),n);return(0,u.toPromise)(e).then(function(e){return n._saveData(e,t)})}),this._atomicQueue.then(function(){return n})},atomicSet:function(t,r){return this.atomicUpdate(function(e){return o.default.set(e,t,r),e})},_saveData:function(r,e){var n=this;if(r=r,this._deleted$.getValue())throw(0,c.newRxError)("DOC11",{id:this.primary,document:this});return this.collection.schema.validateChange(e,r),this.collection._runHooks("pre","save",r,this).then(function(){return n.collection.schema.validate(r),n.collection._pouchPut(r)}).then(function(e){if(!e.ok)throw(0,c.newRxError)("DOC12",{data:e});r._rev=e.rev;var t=(0,a.createChangeEvent)("UPDATE",n.collection.database,n.collection,n,r);return n.$emit(t),n.collection._runHooks("post","save",r,n)})},save:function(){var e=this;if(!this._isTemporary)throw(0,c.newRxError)("DOC17",{id:this.primary,document:this});return this.collection.insert(this).then(function(){return e._isTemporary=!1,e.collection._docCache.set(e.primary,e),e._dataSync$.next(e._data),!0})},remove:function(){var e=this;if(this.deleted)return Promise.reject((0,c.newRxError)("DOC13",{document:this,id:this.primary}));var t=(0,u.clone)(this._data);return this.collection._runHooks("pre","remove",t,this).then(function(){return t._deleted=!0,e.collection._pouchPut(t)}).then(function(){return e.$emit((0,a.createChangeEvent)("REMOVE",e.collection.database,e.collection,e,e._data)),e.collection._runHooks("post","remove",t,e)}).then(function(){return e})},destroy:function(){throw(0,c.newRxError)("DOC14")}};function p(){function e(e,t){this.collection=e,this._isTemporary=!1,this._dataSync$=new i.BehaviorSubject(t),this._deleted$=new i.BehaviorSubject(!1),this._atomicQueue=Promise.resolve(),this.isInstanceOfRxDocument=!0}return e.prototype=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f,e}var h,d=new(p(r.basePrototype=f));function b(e,r){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",o=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(null!==r){var t=e.getSchemaByObjectPath(n);void 0!==t&&(t.properties&&(t=t.properties),Object.keys(t).forEach(function(e){var t=(0,u.trimDots)(n+"."+e);r.__defineGetter__(e,function(){var e=o||this;if(e.get&&"function"==typeof e.get)return e.get(t)}),Object.defineProperty(r,e+"$",{get:function(){return(o||this).get$(t)},enumerable:!1,configurable:!1}),Object.defineProperty(r,e+"_",{get:function(){return(o||this).populate(t)},enumerable:!1,configurable:!1}),r.__defineSetter__(e,function(e){return(o||this).set(t,e)})}))}}function v(e,t,r){if(r[t.schema.primaryPath]&&r[t.schema.primaryPath].startsWith("_design"))return null;var n=new e(t,r);return(0,l.runPluginHooks)("createRxDocument",n),n}function y(){if(!h){var e=Object.getOwnPropertyNames(d),t=Object.getOwnPropertyNames(f);h=[].concat(e,t,["deleted","synced"])}return h}function _(e){return void 0!==e&&!!e.isInstanceOfRxDocument}var m={createWithConstructor:v,properties:y,createRxDocumentConstructor:p,basePrototype:f,isInstanceOf:_};r.default=m},{"./hooks":7,"./rx-change-event":30,"./rx-error":36,"./util":52,"@babel/runtime/helpers/interopRequireDefault":60,"object-path":428,rxjs:484,"rxjs/operators":682}],36:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.newRxError=function(e,t){return new c(e,u.default.tunnelErrorMessage(e),t)},r.newRxTypeError=function(e,t){return new l(e,u.default.tunnelErrorMessage(e),t)},r.RxTypeError=r.RxError=void 0;var o=n(e("@babel/runtime/helpers/createClass")),s=n(e("@babel/runtime/helpers/inheritsLoose")),i=n(e("@babel/runtime/helpers/wrapNativeSuper")),u=n(e("./overwritable"));function a(e,t){return"RxError:\n"+e+"\n"+(r=t,n="",0===Object.keys(r).length?n:(n+="Given parameters: {\n",n+=Object.keys(r).map(function(e){var t="[object Object]";try{t=JSON.stringify(r[e],function(e,t){return void 0===t?null:t},2)}catch(e){}return e+":"+t}).join("\n"),n+="}"));var r,n}var c=function(i){function e(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=a(t,n);return(r=i.call(this,o)||this).code=e,r.message=o,r.parameters=n,r.rxdb=!0,r}return(0,s.default)(e,i),e.prototype.toString=function(){return this.message},(0,o.default)(e,[{key:"name",get:function(){return"RxError"}},{key:"typeError",get:function(){return!1}}]),e}((0,i.default)(Error));r.RxError=c;var l=function(i){function e(e,t){var r,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=a(t,n);return(r=i.call(this,o)||this).code=e,r.message=o,r.parameters=n,r.rxdb=!0,r}return(0,s.default)(e,i),e.prototype.toString=function(){return this.message},(0,o.default)(e,[{key:"name",get:function(){return"RxError"}},{key:"typeError",get:function(){return!0}}]),e}((0,i.default)(TypeError));r.RxTypeError=l},{"./overwritable":11,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/inheritsLoose":59,"@babel/runtime/helpers/interopRequireDefault":60,"@babel/runtime/helpers/wrapNativeSuper":65}],37:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.createRxQuery=function(e,t,r){if(t&&"object"!=typeof t)throw(0,p.newRxTypeError)("QU7",{queryObj:t});if(Array.isArray(t))throw(0,p.newRxTypeError)("QU8",{queryObj:t});var n=new v(e,t,r);n=_(n),m||(m=!0,function(t,e){e.filter(function(e){return!e.startsWith("_")}).filter(function(e){return!t[e]}).forEach(function(r){t[r]=function(e){var t=this._clone();return t.mquery[r](e),_(t)}})}(Object.getPrototypeOf(n),Object.getOwnPropertyNames(Object.getPrototypeOf(n.mquery))));return(0,h.runPluginHooks)("createRxQuery",n),n},r.isInstanceOf=function(e){return e instanceof v},r.RxQueryBase=void 0;var o=n(e("@babel/runtime/helpers/createClass")),u=n(e("deep-equal")),i=e("rxjs"),s=e("rxjs/operators"),a=e("pouchdb-selector-core"),c=e("./mquery/mquery"),l=e("./util"),f=e("./query-change-detector"),p=e("./rx-error"),h=e("./hooks"),d=e("./rx-document-prototype-merge"),b=0,v=function(){function t(e,t,r){this.id=++b,this._latestChangeEvent=-1,this._resultsData=null,this._resultsDocs$=new i.BehaviorSubject(null),this._execOverDatabaseCount=0,this._ensureEqualQueue=Promise.resolve(!1),this.op=e,this.queryObj=t,this.collection=r,this._queryChangeDetector=(0,f.create)(this),t=t||y(this.collection),this.mquery=(0,c.createMQuery)(t)}var e=t.prototype;return e.toString=function(){if(!this.stringRep){var e=(0,l.sortObject)({op:this.op,options:this.mquery.options,_conditions:this.mquery._conditions,_path:this.mquery._path,_fields:this.mquery._fields},!0);this.stringRep=JSON.stringify(e,l.stringifyFilter)}return this.stringRep},e._clone=function(){var e=new t(this.op,y(this.collection),this.collection);return e.mquery=this.mquery.clone(),e},e._setResultData=function(e){this._resultsData=e;var t=(0,d.createRxDocuments)(this.collection,this._resultsData);return this._resultsDocs$.next(t),t},e._execOverDatabase=function(){var e;switch(this._execOverDatabaseCount=this._execOverDatabaseCount+1,this.op){case"find":e=this.collection._pouchFind(this);break;case"findOne":e=this.collection._pouchFind(this,1);break;default:throw(0,p.newRxError)("QU1",{op:this.op})}return e},e.exec=function(){var e=this;return w(this).then(function(){return e.$.pipe((0,s.first)()).toPromise()})},e.toJSON=function(){if(this._toJSON)return this._toJSON;var n=this.collection.schema.primaryPath,r={selector:this.mquery._conditions},o=(0,l.clone)(this.mquery.options);if(o.sort){var i=[];Object.keys(o.sort).map(function(e){var t="asc";-1===o.sort[e]&&(t="desc");var r={};e===n&&(e="_id"),r[e]=t,i.push(r)}),r.sort=i}if(o.limit){if("number"!=typeof o.limit)throw(0,p.newRxTypeError)("QU2",{limit:o.limit});r.limit=o.limit}if(o.skip){if("number"!=typeof o.skip)throw(0,p.newRxTypeError)("QU3",{skip:o.skip});r.skip=o.skip}return Object.entries(r.selector).filter(function(e){return"object"==typeof e[1]}).filter(function(e){return null!==e[1]}).filter(function(e){var t=e[1];return!Array.isArray(t)}).filter(function(e){var t=e[1];return 0===Object.keys(t).length}).forEach(function(e){var t=e[0];return delete r.selector[t]}),"_id"!==n&&r.selector[n]&&(r.selector._id=r.selector[n],delete r.selector[n]),0===Object.keys(r.selector).length&&(r.selector={_id:{}}),this._toJSON=r,this._toJSON},e.keyCompress=function(){return this.collection.schema.doKeyCompression()?(this._keyCompress||(this._keyCompress=this.collection._keyCompressor.compressQuery(this.toJSON())),this._keyCompress):this.toJSON()},e.doesDocumentDataMatch=function(e){if(e._deleted)return!1;var t=this.mquery._conditions;e=this.collection.schema.swapPrimaryToId(e);var r=Object.keys(t);return(0,a.rowFilter)(e,this.massageSelector,r)},e.remove=function(){var t;return this.exec().then(function(e){return t=e,Array.isArray(e)?Promise.all(e.map(function(e){return e.remove()})):e.remove()}).then(function(){return t})},e.update=function(){throw(0,l.pluginMissing)("update")},e.regex=function(e){var t=this._clone();if(this.mquery._path===this.collection.schema.primaryPath)throw(0,p.newRxError)("QU4",{path:this.mquery._path});return t.mquery.regex(e),_(t)},e.sort=function(e){var t=this._clone();if("object"!=typeof e){var r="-"===e.charAt(0)?e.substring(1):e;t.mquery._conditions[r]||g(r,t)}else Object.keys(e).filter(function(e){return!t.mquery._conditions[e]||!t.mquery._conditions[e].$gt}).forEach(function(e){return g(e,t)});return t.mquery.sort(e),_(t)},e.limit=function(e){if("findOne"===this.op)throw(0,p.newRxError)("QU6");var t=this._clone();return t.mquery.limit(e),_(t)},(0,o.default)(t,[{key:"$",get:function(){var r=this;if(!this._$){var e=this._resultsDocs$.pipe((0,s.mergeMap)(function(t){return w(r).then(function(e){return!e&&t})}),(0,s.filter)(function(e){return!!e}),(0,s.map)(function(e){return"findOne"!==r.op?e:0===e.length?null:e[0]}),(0,s.map)(function(e){return Array.isArray(e)?e.slice():e})).asObservable(),t=this.collection.docChanges$.pipe((0,s.tap)(function(){return w(r)}),(0,s.filter)(function(){return!1}));this._$=(0,i.merge)(e,t)}return this._$}},{key:"massageSelector",get:function(){if(!this._massageSelector){var e=this.mquery._conditions;this._massageSelector=(0,a.massageSelector)(e)}return this._massageSelector}}]),t}();function y(e){var t;return(t={})[e.schema.primaryPath]={},t}function _(e){return e.collection._queryCache.getByQuery(e)}r.RxQueryBase=v;var m=!1;function g(e,t){var r=t.collection.schema.getSchemaByObjectPath(e);switch(r||function(e){throw(0,p.newRxError)("QU5",{key:e})}(e),r.type){case"integer":t.mquery.where(e).gt(-1e28);break;case"string":t.mquery.where(e).gt("");break;default:t.mquery.where(e).gt(null)}}function w(e){return e._ensureEqualQueue=e._ensureEqualQueue.then(function(){return new Promise(function(e){return setTimeout(e,0)})}).then(function(){return function(t){if(t.collection.database.destroyed)return!1;if(function(e){return e._latestChangeEvent>=e.collection._changeEventBuffer.counter}(t))return!1;var r=!1,e=!1;-1===t._latestChangeEvent&&(e=!0);if(!e){var n=t.collection._changeEventBuffer.getFrom(t._latestChangeEvent+1);if(null===n)e=!0;else{t._latestChangeEvent=t.collection._changeEventBuffer.counter;var o=t.collection._changeEventBuffer.reduceByLastOfDoc(n),i=t._queryChangeDetector.runChangeDetection(o);!Array.isArray(i)&&i&&(e=!0),Array.isArray(i)&&!(0,u.default)(i,t._resultsData)&&(r=!0,t._setResultData(i))}}if(e){var s=t.collection._changeEventBuffer.counter;return t._execOverDatabase().then(function(e){return t._latestChangeEvent=s,(0,u.default)(e,t._resultsData)||(r=!0,t._setResultData(e)),r})}return r}(e)}).then(function(e){return new Promise(function(e){return setTimeout(e,0)}).then(function(){return e})}),e._ensureEqualQueue}},{"./hooks":7,"./mquery/mquery":9,"./query-change-detector":29,"./rx-document-prototype-merge":34,"./rx-error":36,"./util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60,"deep-equal":403,"pouchdb-selector-core":474,rxjs:484,"rxjs/operators":682}],38:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getEncryptedPaths=p,r.hasCrypt=h,r.getIndexes=d,r.getPrimary=b,r.getPreviousVersions=function(e){var t=e.version?e.version:0,r=0;return new Array(t).fill(0).map(function(){return r++})},r.getFinalFields=v,r.normalize=y,r.createRxSchema=function(e){1<arguments.length&&void 0!==arguments[1]&&!arguments[1]||(0,c.runPluginHooks)("preCreateRxSchema",e);var t=new f(_(e));return(0,c.runPluginHooks)("createRxSchema",t),t},r.isInstanceOf=function(e){return e instanceof f},r.RxSchema=void 0;var o=n(e("@babel/runtime/helpers/createClass")),i=n(e("object-path")),s=n(e("deep-equal")),u=e("./util"),a=e("./rx-error"),c=e("./hooks"),l=e("./rx-document"),f=function(){function e(e){this.jsonID=e,this.compoundIndexes=this.jsonID.compoundIndexes,this.indexes=d(this.jsonID),this.primaryPath=b(this.jsonID),this.primaryPath&&this.jsonID.required.push(this.primaryPath),this.finalFields=v(this.jsonID),this.jsonID.required=this.jsonID.required.concat(this.finalFields).filter(function(e,t,r){return r.indexOf(e)===t}),this.jsonID.properties[this.primaryPath]||(this.jsonID.properties[this.primaryPath]={type:"string",minLength:1})}var t=e.prototype;return t.getSchemaByObjectPath=function(e){var t=e;return t="properties."+(t=t.replace(/\./g,".properties.")),t=(0,u.trimDots)(t),i.default.get(this.jsonID,t)},t.validateChange=function(t,r){this.finalFields.forEach(function(e){if(!(0,s.default)(t[e],r[e]))throw(0,a.newRxError)("DOC9",{dataBefore:t,dataAfter:r,fieldName:e})})},t.validate=function(){throw(0,u.pluginMissing)("validate")},t.fillObjectWithDefaults=function(n){return n=(0,u.clone)(n),Object.entries(this.defaultValues).filter(function(e){var t=e[0];return!n.hasOwnProperty(t)||void 0===n[t]}).forEach(function(e){var t=e[0],r=e[1];return n[t]=r}),n},t.swapIdToPrimary=function(e){return"_id"===this.primaryPath||e[this.primaryPath]||(e[this.primaryPath]=e._id,delete e._id),e},t.swapPrimaryToId=function(e){var r=this;if("_id"===this.primaryPath)return e;var n={};return Object.entries(e).forEach(function(e){var t=e[0]===r.primaryPath?"_id":e[0];n[t]=e[1]}),n},t.doKeyCompression=function(){return this.jsonID.keyCompression},t.getDocumentPrototype=function(){if(!this._getDocumentPrototype){var e={};(0,l.defineGetterSetter)(this,e,""),this._getDocumentPrototype=e}return this._getDocumentPrototype},(0,o.default)(e,[{key:"version",get:function(){return this.jsonID.version}},{key:"crypt",get:function(){return this._crypt||(this._crypt=h(this.jsonID)),this._crypt}},{key:"normalized",get:function(){return this._normalized||(this._normalized=y(this.jsonID)),this._normalized}},{key:"topLevelFields",get:function(){return Object.keys(this.normalized.properties)}},{key:"defaultValues",get:function(){var n=this;return this._defaultValues||(this._defaultValues={},Object.entries(this.normalized.properties).filter(function(e){return e[1].hasOwnProperty("default")}).forEach(function(e){var t=e[0],r=e[1];return n._defaultValues[t]=r.default})),this._defaultValues}},{key:"encryptedPaths",get:function(){return this._encryptedPaths||(this._encryptedPaths=p(this.jsonID)),this._encryptedPaths}},{key:"hash",get:function(){return this._hash||(this._hash=(0,u.hash)(this.normalized)),this._hash}}]),e}();function p(e){var t={};return function r(n,o){"object"==typeof n&&(n.encrypted?t[o.substring(1)]=n:Object.keys(n).forEach(function(e){var t=o;"properties"!==e&&(t=t+"."+e),r(n[e],t)}))}(e.properties,""),t}function h(e){var t=p(e);return 0<Object.keys(t).length}function d(t){var e=(0,u.flattenObject)(t),r=Object.keys(e).map(function(e){var t=e.split(".");return t.pop(),t.join(".")}).filter(function(e){return""!==e}).filter(function(e,t,r){return r.indexOf(e)===t}).filter(function(e){return!!i.default.get(t,e).index}).map(function(e){return e=(e=e.replace("properties.","")).replace(/\.properties\./g,"."),[(0,u.trimDots)(e)]}),n=t.compoundIndexes||[];return r=r.concat(n)}function b(t){var e=Object.keys(t.properties).filter(function(e){return t.properties[e].primary}).shift();return e||"_id"}function v(t){var e=Object.keys(t.properties).filter(function(e){return t.properties[e].final});return e.push(b(t)),e}function y(e){return(0,u.sortObject)((0,u.clone)(e))}r.RxSchema=f;var _=function(e){return(e=(0,u.clone)(e)).additionalProperties=!1,e.hasOwnProperty("keyCompression")||(e.keyCompression=!1),e.compoundIndexes=e.compoundIndexes||[],e.required=e.required||[],e.properties._rev={type:"string",minLength:1},e.properties._attachments={type:"object"},e.version=e.version||0,e}},{"./hooks":7,"./rx-document":35,"./rx-error":36,"./util":52,"@babel/runtime/helpers/createClass":57,"@babel/runtime/helpers/interopRequireDefault":60,"deep-equal":403,"object-path":428}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./pouch");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}})});var o=e("./rx-attachment");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var i=e("./rx-change-event");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})});var s=e("./rx-collection");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}})});var u=e("./rx-database");Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var a=e("./rx-document");Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})});var c=e("./rx-error");Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var l=e("./rx-plugin");Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}})});var f=e("./rx-query");Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})});var p=e("./rx-schema");Object.keys(p).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}})});var h=e("./plugins/replication");Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}})});var d=e("./plugins/replication-graphql");Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}})})},{"./plugins/replication":41,"./plugins/replication-graphql":40,"./pouch":42,"./rx-attachment":43,"./rx-change-event":44,"./rx-collection":45,"./rx-database":46,"./rx-document":47,"./rx-error":48,"./rx-plugin":49,"./rx-query":50,"./rx-schema":51}],40:[function(e,t,r){},{}],41:[function(e,t,r){},{}],42:[function(e,t,r){},{}],43:[function(e,t,r){},{}],44:[function(e,t,r){},{}],45:[function(e,t,r){},{}],46:[function(e,t,r){},{}],47:[function(e,t,r){},{}],48:[function(e,t,r){},{}],49:[function(e,t,r){},{}],50:[function(e,t,r){"use strict";e("../rx-query")},{"../rx-query":37}],51:[function(e,t,r){},{}],52:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.pluginMissing=function(e){return new Error("You are using a function which must be overwritten by a plugin.\n        You should either prevent the usage of this function or add the plugin via:\n          - es5-require:\n            RxDB.plugin(require('rxdb/plugins/"+e+"'))\n          - es6-import:\n            import "+a(e)+"Plugin from 'rxdb/plugins/"+e+"';\n            RxDB.plugin("+a(e)+"Plugin);\n        ")},r.fastUnsecureHash=function(e){"string"!=typeof e&&(e=JSON.stringify(e));var t,r,n,o=0;if(0===e.length)return o;for(t=0,n=e.length;t<n;t++)r=e.charCodeAt(t),o=(o<<5)-o+r,o|=0;o<0&&(o*=-1);return o},r.hash=function(e){var t=e;"string"!=typeof e&&(t=JSON.stringify(e));return s.default.hash(t)},r.generateId=function(){return(0,o.default)(10)+":"+(new Date).getTime()},r.nextTick=function(){return new Promise(function(e){return setTimeout(e,0)})},r.promiseWait=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(e){return setTimeout(e,t)})},r.toPromise=function(e){return e&&"function"==typeof e.then?e:Promise.resolve(e)},r.requestIdlePromise=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;return"object"==typeof window&&window.requestIdleCallback?new Promise(function(e){return window.requestIdleCallback(e,{timeout:t})}):Promise.resolve()},r.promiseSeries=function(e,t){return e.reduce(function(e,t){return e.then(t)},Promise.resolve(t))},r.requestIdleCallbackIfAvailable=function(e){"object"==typeof window&&window.requestIdleCallback&&window.requestIdleCallback(e)},r.ucfirst=a,r.numberToLetter=function(e){var t=[];do{var r=e%l;t.push(r),e=Math.floor(e/l)}while(0<e--);return t.reverse().map(function(e){return c[e]}).join("")},r.trimDots=function(e){for(;"."===e.charAt(0);)e=e.substr(1);for(;"."===e.slice(-1);)e=e.slice(0,-1);return e},r.sortObject=function t(r){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!r)return r;if(!e&&Array.isArray(r))return r.sort(function(e,t){return"string"==typeof e&&"string"==typeof t?e.localeCompare(t):"object"==typeof e?1:-1}).map(function(e){return t(e)});if("object"==typeof r){if(r instanceof RegExp)return r;var n={};return Object.keys(r).sort(function(e,t){return e.localeCompare(t)}).forEach(function(e){n[e]=t(r[e])}),n}return r},r.stringifyFilter=function(e,t){return t instanceof RegExp?t.toString():t},r.randomCouchString=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:10,t="",r="abcdefghijklmnopqrstuvwxyz",n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*r.length));return t},r.shuffleArray=function(e){return e.sort(function(){return Math.random()-.5})},r.removeOneFromArrayIfMatches=function(e,t){var r=(e=e.slice()).length,n=!1;for(;r--&&!n;)t(e[r])&&(n=!0,e.splice(r,1));return e},r.adapterObject=function(e){var t={db:e};"string"==typeof e&&(t={adapter:e});return t},r.flatClone=function(e){return Object.assign({},e)},r.flattenObject=function e(t){var r={};for(var n in t)if(t.hasOwnProperty(n))if("object"==typeof t[n]){var o=e(t[n]);for(var i in o)o.hasOwnProperty(i)&&(r[n+"."+i]=o[i])}else r[n]=t[n];return r},r.getHeightOfRevision=function(e){var t=e.split("-")[0];return parseInt(t,10)},r.LOCAL_PREFIX=r.isElectronRenderer=r.clone=void 0;var o=n(e("random-token")),i=n(e("clone")),s=n(e("spark-md5")),u=n(e("is-electron"));function a(e){return(e+="").charAt(0).toUpperCase()+e.substr(1)}var c="abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ123456789",l=c.length;function f(e){return e?(0,i.default)(e,!1):e}r.clone=f;var p=(0,u.default)();r.isElectronRenderer=p;r.LOCAL_PREFIX="_local/"},{"@babel/runtime/helpers/interopRequireDefault":60,clone:86,"is-electron":416,"random-token":478,"spark-md5":683}],53:[function(e,t,r){"use strict";e("./noConflict");var n,o=(n=e("core-js/library/fn/global"))&&n.__esModule?n:{default:n};o.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),o.default._babelPolyfill=!0},{"./noConflict":54,"core-js/library/fn/global":99}],54:[function(e,t,r){"use strict";e("core-js/es6"),e("core-js/fn/array/includes"),e("core-js/fn/array/flat-map"),e("core-js/fn/string/pad-start"),e("core-js/fn/string/pad-end"),e("core-js/fn/string/trim-start"),e("core-js/fn/string/trim-end"),e("core-js/fn/symbol/async-iterator"),e("core-js/fn/object/get-own-property-descriptors"),e("core-js/fn/object/values"),e("core-js/fn/object/entries"),e("core-js/fn/promise/finally"),e("core-js/web"),e("regenerator-runtime/runtime")},{"core-js/es6":87,"core-js/fn/array/flat-map":88,"core-js/fn/array/includes":89,"core-js/fn/object/entries":90,"core-js/fn/object/get-own-property-descriptors":91,"core-js/fn/object/values":92,"core-js/fn/promise/finally":93,"core-js/fn/string/pad-end":94,"core-js/fn/string/pad-start":95,"core-js/fn/string/trim-end":96,"core-js/fn/string/trim-start":97,"core-js/fn/symbol/async-iterator":98,"core-js/web":390,"regenerator-runtime/runtime":479}],55:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},{}],56:[function(e,n,t){var i=e("./setPrototypeOf");function o(e,t,r){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?n.exports=o=function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&i(o,r.prototype),o}:n.exports=o=Reflect.construct,o.apply(null,arguments)}n.exports=o},{"./setPrototypeOf":63}],57:[function(e,t,r){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}t.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},{}],58:[function(e,t,r){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}t.exports=n},{}],59:[function(e,t,r){t.exports=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}},{}],60:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],61:[function(e,t,r){var s=e("../helpers/typeof");function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}t.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}},{"../helpers/typeof":64}],62:[function(e,t,r){t.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},{}],63:[function(e,r,t){function n(e,t){return r.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.exports=n},{}],64:[function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=o=function(e){return n(e)}:t.exports=o=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},o(e)}t.exports=o},{}],65:[function(e,t,r){var n=e("./getPrototypeOf"),o=e("./setPrototypeOf"),i=e("./isNativeFunction"),s=e("./construct");function u(e){var r="function"==typeof Map?new Map:void 0;return t.exports=u=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},u(e)}t.exports=u},{"./construct":56,"./getPrototypeOf":58,"./isNativeFunction":62,"./setPrototypeOf":63}],66:[function(e,t,r){"use strict";t.exports=function(n){return function(){var e=arguments.length;if(e){for(var t=[],r=-1;++r<e;)t[r]=arguments[r];return n.call(this,t)}return n.call(this,[])}}},{}],67:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pushAtSortPosition=function(e,t,r){var n,o,i=(e=e.slice()).length-1,s=0,u=-1;for(;s<=i;)if((o=r(e[n=(i+s)/2>>>0],t))<0)s=n+1;else{if(!(0<o)){u=n;break}i=n-1}-1===u&&(u=i);u++,i=e.length-1;for(;u<i&&0===r(t,e[u]);)u++;n=e.length,e.push(t);for(;u<n;)e[n]=e[--n];return e[u]=t,e}},{}],68:[function(e,t,r){"use strict";r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=f(e),o=n[0],i=n[1],s=new l(function(e,t,r){return 3*(t+r)/4-r}(0,o,i)),u=0,a=0<i?o-4:o;for(r=0;r<a;r+=4)t=c[e.charCodeAt(r)]<<18|c[e.charCodeAt(r+1)]<<12|c[e.charCodeAt(r+2)]<<6|c[e.charCodeAt(r+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===i&&(t=c[e.charCodeAt(r)]<<2|c[e.charCodeAt(r+1)]>>4,s[u++]=255&t);1===i&&(t=c[e.charCodeAt(r)]<<10|c[e.charCodeAt(r+1)]<<4|c[e.charCodeAt(r+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(a(e,i,s<i+16383?s:i+16383));1==n?(t=e[r-1],o.push(u[t>>2]+u[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],o.push(u[t>>10]+u[t>>4&63]+u[t<<2&63]+"="));return o.join("")};for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)u[o]=n[o],c[n.charCodeAt(o)]=o;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function a(e,t,r){for(var n,o,i=[],s=t;s<r;s+=3)n=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),i.push(u[(o=n)>>18&63]+u[o>>12&63]+u[o>>6&63]+u[63&o]);return i.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],69:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.clearNodeFolder=function(e){e=(0,u.fillOptionsWithDefaults)(e);var t=(0,s.chooseMethod)(e);return"node"===t.type?t.clearNodeFolder().then(function(){return!0}):Promise.resolve(!1)},r.enforceOptions=function(e){o=e},r.BroadcastChannel=void 0;function n(e,t){var r,n;this.name=e,o&&(t=o),this.options=(0,u.fillOptionsWithDefaults)(t),this.method=(0,s.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._befC=[],this._prepP=null,n=(r=this).method.create(r.name,r.options),(0,i.isPromise)(n)?(r._prepP=n).then(function(e){r._state=e}):r._state=n}var o,i=e("./util.js"),s=e("./method-chooser.js"),u=e("./options.js");function a(e,t,r){var n={time:e.method.microSeconds(),type:t,data:r};return(e._prepP?e._prepP:Promise.resolve()).then(function(){return e.method.postMessage(e._state,n)})}function c(e){return 0<e._addEL.message.length||0<e._addEL.internal.length}function l(e,t,r){e._addEL[t].push(r),function(e){if(!e._iL&&c(e)){var t=function(t){e._addEL[t.type].forEach(function(e){t.time>=e.time&&e.fn(t.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}(e)}function f(e,t,r){e._addEL[t]=e._addEL[t].filter(function(e){return e!==r}),function(e){if(e._iL&&!c(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}(r.BroadcastChannel=n)._pubkey=!0,n.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return a(this,"message",e)},postInternal:function(e){return a(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};f(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,l(this,"message",t)):this._onML=null},addEventListener:function(e,t){var r=this.method.microSeconds();l(this,e,{time:r,fn:t})},removeEventListener:function(e,t){var r=this._addEL[e].find(function(e){return e.fn===t});f(this,e,r)},close:function(){var e=this;if(!this.closed){this.closed=!0;var t=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type}}},{"./method-chooser.js":73,"./options.js":79,"./util.js":80}],70:[function(e,t,r){"use strict";var n=e("./index.js");t.exports={BroadcastChannel:n.BroadcastChannel,createLeaderElection:n.createLeaderElection,clearNodeFolder:n.clearNodeFolder,enforceOptions:n.enforceOptions}},{"./index.js":71}],71:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BroadcastChannel",{enumerable:!0,get:function(){return n.BroadcastChannel}}),Object.defineProperty(r,"clearNodeFolder",{enumerable:!0,get:function(){return n.clearNodeFolder}}),Object.defineProperty(r,"enforceOptions",{enumerable:!0,get:function(){return n.enforceOptions}}),Object.defineProperty(r,"createLeaderElection",{enumerable:!0,get:function(){return o.createLeaderElection}});var n=e("./broadcast-channel"),o=e("./leader-election")},{"./broadcast-channel":69,"./leader-election":72}],72:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.createLeaderElection=function(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");t=function(e,t){e=e||{};(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3);e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options));return e}(t,e);var r=new o(e,t);return e._befC.push(function(){return r.die()}),e._leaderElector=r};var i=e("./util.js"),s=n(e("unload")),o=function(e,t){this._channel=e,this._options=t,this.isLeader=!1,this.isDead=!1,this.token=(0,i.randomToken)(),this._isApl=!1,this._reApply=!1,this._unl=[],this._lstns=[],this._invs=[]};function u(e,t){var r={context:"leader",action:t,token:e.token};return e._channel.postInternal(r)}o.prototype={applyOnce:function(){var t=this;if(this.isLeader)return Promise.resolve(!1);if(this.isDead)return Promise.resolve(!1);if(this._isApl)return this._reApply=!0,Promise.resolve(!1);function r(e){"leader"===e.context&&e.token!=t.token&&(o.push(e),"apply"===e.action&&e.token>t.token&&(n=!0),"tell"===e.action&&(n=!0))}var n=!(this._isApl=!0),o=[];return this._channel.addEventListener("internal",r),u(this,"apply").then(function(){return(0,i.sleep)(t._options.responseTime)}).then(function(){return n?Promise.reject(new Error):u(t,"apply")}).then(function(){return(0,i.sleep)(t._options.responseTime)}).then(function(){return n?Promise.reject(new Error):u(t)}).then(function(){return function(t){t.isLeader=!0;var e=s.default.add(function(){return t.die()});t._unl.push(e);function r(e){"leader"===e.context&&"apply"===e.action&&u(t,"tell")}return t._channel.addEventListener("internal",r),t._lstns.push(r),u(t,"tell")}(t)}).then(function(){return!0}).catch(function(){return!1}).then(function(e){return t._channel.removeEventListener("internal",r),t._isApl=!1,!e&&t._reApply?(t._reApply=!1,t.applyOnce()):e})},awaitLeadership:function(){var i;return this._aLP||(this._aLP=(i=this).isLeader?Promise.resolve():new Promise(function(e){function t(){r||(r=!0,clearInterval(n),i._channel.removeEventListener("internal",o),e(!0))}var r=!1;i.applyOnce().then(function(){i.isLeader&&t()});var n=setInterval(function(){i.applyOnce().then(function(){i.isLeader&&t()})},i._options.fallbackInterval);i._invs.push(n);var o=function(e){"leader"===e.context&&"death"===e.action&&i.applyOnce().then(function(){i.isLeader&&t()})};i._channel.addEventListener("internal",o),i._lstns.push(o)})),this._aLP},die:function(){var t=this;if(!this.isDead)return this.isDead=!0,this._lstns.forEach(function(e){return t._channel.removeEventListener("internal",e)}),this._invs.forEach(function(e){return clearInterval(e)}),this._unl.forEach(function(e){e.remove()}),u(this,"death")}}},{"./util.js":80,"@babel/runtime/helpers/interopRequireDefault":60,unload:685}],73:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.chooseMethod=function(t){var e=[].concat(t.methods,c).filter(Boolean);if(t.type){if("simulate"===t.type)return u.default;var r=e.find(function(e){return e.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||a.isNode||(e=e.filter(function(e){return"idb"!==e.type}));var n=e.find(function(e){return e.canBeUsed()});{if(n)return n;throw new Error("No useable methode found:"+JSON.stringify(c.map(function(e){return e.type})))}};var o=n(e("./methods/native.js")),i=n(e("./methods/indexed-db.js")),s=n(e("./methods/localstorage.js")),u=n(e("./methods/simulate.js")),a=e("./util"),c=[o.default,i.default,s.default];if(a.isNode){var l=e("../../src/methods/node.js");"function"==typeof l.canBeUsed&&c.push(l)}},{"./methods/indexed-db.js":74,"./methods/localstorage.js":75,"./methods/native.js":76,"./methods/simulate.js":77,"./util":80,"@babel/runtime/helpers/interopRequireDefault":60}],74:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getIdb=l,r.createDatabase=f,r.writeMessage=p,r.getAllMessages=function(e){var t=e.transaction(c).objectStore(c),n=[];return new Promise(function(r){t.openCursor().onsuccess=function(e){var t=e.target.result;t?(n.push(t.value),t.continue()):r(n)}})},r.getMessagesHigherThen=h,r.removeMessageById=d,r.getOldMessages=b,r.cleanOldMessages=v,r.create=y,r.close=m,r.postMessage=g,r.onMessage=w,r.canBeUsed=x,r.averageResponseTime=O,r.default=r.type=r.microSeconds=void 0;var o=e("../util.js"),i=n(e("../oblivious-set")),s=e("../options"),u=o.microSeconds;r.microSeconds=u;var a="pubkey.broadcast-channel-0-",c="messages";function l(){return"undefined"!=typeof indexedDB?indexedDB:void 0!==window.mozIndexedDB?window.mozIndexedDB:void 0!==window.webkitIndexedDB?window.webkitIndexedDB:void 0!==window.msIndexedDB&&window.msIndexedDB}function f(e){var t=l(),r=a+e,n=t.open(r,1);return n.onupgradeneeded=function(e){e.target.result.createObjectStore(c,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}})}function p(e,t,r){var n={uuid:t,time:(new Date).getTime(),data:r},o=e.transaction([c],"readwrite");return new Promise(function(e,t){o.oncomplete=function(){return e()},o.onerror=function(e){return t(e)},o.objectStore(c).add(n)})}function h(e,t){var n=e.transaction(c).objectStore(c),o=[],i=IDBKeyRange.bound(t+1,1/0);return new Promise(function(r){n.openCursor(i).onsuccess=function(e){var t=e.target.result;t?(o.push(t.value),t.continue()):r(o)}})}function d(e,t){var r=e.transaction([c],"readwrite").objectStore(c).delete(t);return new Promise(function(e){r.onsuccess=function(){return e()}})}function b(e,t){var o=(new Date).getTime()-t,r=e.transaction(c).objectStore(c),i=[];return new Promise(function(n){r.openCursor().onsuccess=function(e){var t=e.target.result;if(t){var r=t.value;if(!(r.time<o))return void n(i);i.push(r),t.continue()}else n(i)}})}function v(t,e){return b(t,e).then(function(e){return Promise.all(e.map(function(e){return d(t,e.id)}))})}function y(r,n){return n=(0,s.fillOptionsWithDefaults)(n),f(r).then(function(e){var t={closed:!1,lastCursorId:0,channelName:r,options:n,uuid:(0,o.randomToken)(),eMIs:new i.default(2*n.idb.ttl),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:e};return function e(t){if(t.closed)return;return _(t).then(function(){return(0,o.sleep)(t.options.idb.fallbackInterval)}).then(function(){return e(t)})}(t),t})}function _(n){return n.closed?Promise.resolve():n.messagesCallback?h(n.db,n.lastCursorId).then(function(e){return e.filter(function(e){return!!e}).map(function(e){return e.id>n.lastCursorId&&(n.lastCursorId=e.id),e}).filter(function(e){return r=n,!((t=e).uuid===r.uuid||r.eMIs.has(t.id)||t.data.time<r.messagesCallbackTime);var t,r}).sort(function(e,t){return e.time-t.time}).forEach(function(e){n.messagesCallback&&(n.eMIs.add(e.id),n.messagesCallback(e.data))}),Promise.resolve()}):Promise.resolve()}function m(e){e.closed=!0,e.db.close()}function g(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return p(e.db,e.uuid,t)}).then(function(){0===(0,o.randomInt)(0,10)&&v(e.db,e.options.idb.ttl)}),e.writeBlockPromise}function w(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,_(e)}function x(){return!o.isNode&&!!l()}function O(e){return 2*e.idb.fallbackInterval}var j={create:y,close:m,onMessage:w,postMessage:g,canBeUsed:x,type:r.type="idb",averageResponseTime:O,microSeconds:u};r.default=j},{"../oblivious-set":78,"../options":79,"../util.js":80,"@babel/runtime/helpers/interopRequireDefault":60}],75:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getLocalStorage=l,r.storageKey=f,r.postMessage=p,r.addStorageEventListener=h,r.removeStorageEventListener=d,r.create=b,r.close=v,r.onMessage=y,r.canBeUsed=_,r.averageResponseTime=m,r.default=r.type=r.microSeconds=void 0;var i=n(e("../oblivious-set")),s=e("../options"),u=e("../util"),o=u.microSeconds;r.microSeconds=o;var a="pubkey.broadcastChannel-",c="localstorage";function l(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function f(e){return a+e}function p(i,s){return new Promise(function(o){(0,u.sleep)().then(function(){var e=f(i.channelName),t={token:(0,u.randomToken)(),time:(new Date).getTime(),data:s,uuid:i.uuid},r=JSON.stringify(t);l().setItem(e,r);var n=document.createEvent("Event");n.initEvent("storage",!0,!0),n.key=e,n.newValue=r,window.dispatchEvent(n),o()})})}function h(e,t){function r(e){e.key===n&&t(JSON.parse(e.newValue))}var n=f(e);return window.addEventListener("storage",r),r}function d(e){window.removeEventListener("storage",e)}function b(e,t){if(t=(0,s.fillOptionsWithDefaults)(t),!_())throw new Error("BroadcastChannel: localstorage cannot be used");var r=(0,u.randomToken)(),n=new i.default(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=h(e,function(e){o.messagesCallback&&e.uuid!==r&&e.token&&!n.has(e.token)&&(e.data.time&&e.data.time<o.messagesCallbackTime||(n.add(e.token),o.messagesCallback(e.data)))}),o}function v(e){d(e.listener)}function y(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function _(){if(u.isNode)return!1;var e=l();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}function m(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120}var g={create:b,close:v,onMessage:y,postMessage:p,canBeUsed:_,type:r.type=c,averageResponseTime:m,microSeconds:o};r.default=g},{"../oblivious-set":78,"../options":79,"../util":80,"@babel/runtime/helpers/interopRequireDefault":60}],76:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.create=i,r.close=s,r.postMessage=u,r.onMessage=a,r.canBeUsed=c,r.averageResponseTime=l,r.default=r.type=r.microSeconds=void 0;var n=e("../util"),o=n.microSeconds;r.microSeconds=o;function i(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t}function s(e){e.bc.close(),e.subFns=[]}function u(e,t){e.bc.postMessage(t,!1)}function a(e,t){e.messagesCallback=t}function c(){if(n.isNode&&"undefined"==typeof window)return!1;if("function"!=typeof BroadcastChannel)return!1;if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}function l(){return 150}var f={create:i,close:s,onMessage:a,postMessage:u,canBeUsed:c,type:r.type="native",averageResponseTime:l,microSeconds:o};r.default=f},{"../util":80}],77:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.create=s,r.close=u,r.postMessage=a,r.onMessage=c,r.canBeUsed=l,r.averageResponseTime=f,r.default=r.type=r.microSeconds=void 0;var n=e("../util").microSeconds;r.microSeconds=n;var o="simulate";r.type=o;var i=new Set;function s(e){var t={name:e,messagesCallback:null};return i.add(t),t}function u(e){i.delete(e)}function a(t,r){return new Promise(function(e){return setTimeout(function(){Array.from(i).filter(function(e){return e.name===t.name}).filter(function(e){return e!==t}).filter(function(e){return!!e.messagesCallback}).forEach(function(e){return e.messagesCallback(r)}),e()},5)})}function c(e,t){e.messagesCallback=t}function l(){return!0}function f(){return 5}var p={create:s,close:u,onMessage:c,postMessage:a,canBeUsed:l,type:o,averageResponseTime:f,microSeconds:n};r.default=p},{"../util":80}],78:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;function s(){return(new Date).getTime()}function n(n){var o=new Set,i=new Map;this.has=o.has.bind(o),this.add=function(e){i.set(e,s()),o.add(e),function(){var e=s()-n,t=o[Symbol.iterator]();for(;;){var r=t.next().value;if(!r)return;if(!(i.get(r)<e))return;i.delete(r),o.delete(r)}}()},this.clear=function(){o.clear(),i.clear()}}r.default=n},{}],79:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fillOptionsWithDefaults=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0);t.idb||(t.idb={});t.idb.ttl||(t.idb.ttl=45e3);t.idb.fallbackInterval||(t.idb.fallbackInterval=150);t.localstorage||(t.localstorage={});t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4);e.methods&&(t.methods=e.methods);t.node||(t.node={});t.node.ttl||(t.node.ttl=12e4);void 0===t.node.useFastPath&&(t.node.useFastPath=!0);return t}},{}],80:[function(e,t,o){(function(e){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPromise=function(e){return!(!e||"function"!=typeof e.then)},o.sleep=function(t){t=t||0;return new Promise(function(e){return setTimeout(e,t)})},o.randomInt=function(e,t){return Math.floor(Math.random()*(t-e+1)+e)},o.randomToken=function(){return Math.random().toString(36).substring(2)},o.microSeconds=function(){var e=(new Date).getTime();return e===t?1e3*e+ ++r:(r=0,1e3*(t=e))},o.isNode=void 0;var t=0,r=0;var n="[object process]"===Object.prototype.toString.call(void 0!==e?e:0);o.isNode=n}).call(this,e("_process"))},{_process:477}],81:[function(e,t,r){},{}],82:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function r(){}r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],83:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],84:[function(p,e,k){(function(n,o){var u=/%[sdj%]/g;k.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(e).replace(u,function(e){if("%%"===e)return"%";if(o<=r)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])_(s)||!l(s)?i+=" "+s:i+=" "+a(s);return i},k.deprecate=function(e,t){if(w(o.process))return function(){return k.deprecate(e,t).apply(this,arguments)};if(!0===n.noDeprecation)return e;var r=!1;return function(){if(!r){if(n.throwDeprecation)throw new Error(t);n.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}};var e,i={};function a(e,t){var r={seen:[],stylize:c};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&k._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),h(r,e,r.depth)}function s(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function c(e,t){return e}function h(t,r,n){if(t.customInspect&&r&&S(r.inspect)&&r.inspect!==k.inspect&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(n,t);return g(e)||(e=h(t,e,n)),e}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(_(t))return e.stylize("null","null")}(t,r);if(o)return o;var i,s=Object.keys(r),u=(i={},s.forEach(function(e,t){i[e]=!0}),i);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),j(r)&&(0<=s.indexOf("message")||0<=s.indexOf("description")))return d(r);if(0===s.length){if(S(r)){var a=r.name?": "+r.name:"";return t.stylize("[Function"+a+"]","special")}if(x(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(O(r))return t.stylize(Date.prototype.toString.call(r),"date");if(j(r))return d(r)}var c,l="",f=!1,p=["{","}"];v(r)&&(f=!0,p=["[","]"]),S(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]");return x(r)&&(l=" "+RegExp.prototype.toString.call(r)),O(r)&&(l=" "+Date.prototype.toUTCString.call(r)),j(r)&&(l=" "+d(r)),0!==s.length||f&&0!=r.length?n<0?x(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=f?function(t,r,n,o,e){for(var i=[],s=0,u=r.length;s<u;++s)E(r,String(s))?i.push(b(t,r,n,o,String(s),!0)):i.push("");return e.forEach(function(e){e.match(/^\d+$/)||i.push(b(t,r,n,o,e,!0))}),i}(t,r,n,u,s):s.map(function(e){return b(t,r,n,u,e,f)}),t.seen.pop(),function(e,t,r){if(60<e.reduce(function(e,t){return 0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,l,p)):p[0]+l+p[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,n,o,i){var s,u,a;if((a=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?u=a.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):a.set&&(u=e.stylize("[Setter]","special")),E(n,o)||(s="["+o+"]"),u||(e.seen.indexOf(a.value)<0?-1<(u=_(r)?h(e,a.value,null):h(e,a.value,r-1)).indexOf("\n")&&(u=i?u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return"   "+e}).join("\n")):u=e.stylize("[Circular]","special")),w(s)){if(i&&o.match(/^\d+$/))return u;s=(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(s,"string"))}return s+": "+u}function v(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function _(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function w(e){return void 0===e}function x(e){return l(e)&&"[object RegExp]"===t(e)}function l(e){return"object"==typeof e&&null!==e}function O(e){return l(e)&&"[object Date]"===t(e)}function j(e){return l(e)&&("[object Error]"===t(e)||e instanceof Error)}function S(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function r(e){return e<10?"0"+e.toString(10):e.toString(10)}k.debuglog=function(t){if(w(e)&&(e=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var r=n.pid;i[t]=function(){var e=k.format.apply(k,arguments);console.error("%s %d: %s",t,r,e)}}else i[t]=function(){};return i[t]},(k.inspect=a).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.isArray=v,k.isBoolean=y,k.isNull=_,k.isNullOrUndefined=function(e){return null==e},k.isNumber=m,k.isString=g,k.isSymbol=function(e){return"symbol"==typeof e},k.isUndefined=w,k.isRegExp=x,k.isObject=l,k.isDate=O,k.isError=j,k.isFunction=S,k.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},k.isBuffer=p("./support/isBuffer");var f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}k.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[r(e.getHours()),r(e.getMinutes()),r(e.getSeconds())].join(":"),[e.getDate(),f[e.getMonth()],t].join(" ")),k.format.apply(k,arguments))},k.inherits=p("inherits"),k._extend=function(e,t){if(!t||!l(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,p("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":83,_process:477,inherits:82}],85:[function(B,e,L){(function(f){"use strict";var n=B("base64-js"),i=B("ieee754"),e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;L.Buffer=f,L.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},L.INSPECT_MAX_BYTES=50;var r=2147483647;function s(e){if(r<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"!=typeof e)return o(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return a(e)}function o(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=s(r),o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(D(e,ArrayBuffer)||e&&D(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return Object.setPrototypeOf(n,f.prototype),n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return f.from(n,t,r);var o=function(e){if(f.isBuffer(e)){var t=0|l(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||T(e.length)?s(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function a(e){return u(e),s(e<0?0:0|l(e))}function c(e){for(var t=e.length<0?0:0|l(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function l(e){if(r<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||D(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return M(e).length;default:if(o)return n?-1:R(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function d(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),T(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,o){var i,s=1,u=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;u/=s=2,a/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<u;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===a)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(u<r+a&&(r=u-a),i=r;0<=i;i--){for(var f=!0,p=0;p<a;p++)if(c(e,i+p)!==c(t,p)){f=!1;break}if(f)return i}return-1}function v(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?o<(n=Number(n))&&(n=o):n=o;var i=t.length;i/2<n&&(n=i/2);for(var s=0;s<n;++s){var u=parseInt(t.substr(2*s,2),16);if(T(u))return s;e[r+s]=u}return s}function y(e,t,r,n){return I(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r,n){return I(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function m(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function g(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,u,a,c=e[o],l=null,f=239<c?4:223<c?3:191<c?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&127<(a=(31&c)<<6|63&i)&&(l=a);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&2047<(a=(15&c)<<12|(63&i)<<6|63&s)&&(a<55296||57343<a)&&(l=a);break;case 4:i=e[o+1],s=e[o+2],u=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&u)&&65535<(a=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&u)&&a<1114112&&(l=a)}null===l?(l=65533,f=1):65535<l&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=w));return r}(n)}L.kMaxLength=r,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(e,t,r){return o(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return o=t,i=r,u(n=e),n<=0?s(n):void 0!==o?"string"==typeof i?s(n).fill(o,i):s(n).fill(o):s(n);var n,o,i},f.allocUnsafe=function(e){return a(e)},f.allocUnsafeSlow=function(e){return a(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(D(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),D(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var n=f.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(D(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?g(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return g(this,t,r);case"ascii":return x(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return m(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=L.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},e&&(f.prototype[e]=f.prototype.inspect),f.prototype.compare=function(e,t,r,n,o){if(D(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),u=Math.min(i,s),a=this.slice(n,o),c=e.slice(t,r),l=0;l<u;++l)if(a[l]!==c[l]){i=a[l],s=c[l];break}return i<s?-1:s<i?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return d(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return d(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||o<r)&&(r=o),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,s,u,a,c,l,f=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return c=t,l=r,I(R(e,(a=this).length-c),a,c,l);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return i=this,s=t,u=r,I(M(e),i,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(f)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function x(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=t;i<r;++i)o+=N[e[i]];return o}function S(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function E(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,o,i){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e+--t],o=1;0<t&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=t,o=1,i=this[e+--n];0<n&&(o*=256);)i+=this[e+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=0,s=1,u=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/s>>0)-u&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=r-1,s=1,u=0;for(this[t+i]=255&e;0<=--i&&(s*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/s>>0)-u&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return C(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),t=t||0,0<n&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;0<=i;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(i=t;i<r;++i)this[i]=e;else{var s=f.isBuffer(e)?e:f.from(e,n),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%u]}return this};var t=/[^+/0-9A-Za-z-_]/g;function R(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=e.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(t-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(t-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(t-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,r<128){if(--t<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function M(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function D(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function T(e){return e!=e}var N=function(){for(var e="0123456789abcdef",t=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()}).call(this,B("buffer").Buffer)},{"base64-js":68,buffer:85,ieee754:412}],86:[function(e,t,r){(function(S){var e=function(){"use strict";function m(e,t){return null!=t&&e instanceof t}var g,w,x;try{g=Map}catch(e){g=function(){}}try{w=Set}catch(e){w=function(){}}try{x=Promise}catch(e){x=function(){}}function O(e,h,t,d,b){"object"==typeof h&&(t=h.depth,d=h.prototype,b=h.includeNonEnumerable,h=h.circular);var v=[],y=[],_=void 0!==S;return void 0===h&&(h=!0),void 0===t&&(t=1/0),function o(e,i){if(null===e)return null;if(0===i)return e;var s,t;if("object"!=typeof e)return e;if(m(e,g))s=new g;else if(m(e,w))s=new w;else if(m(e,x))s=new x(function(t,r){e.then(function(e){t(o(e,i-1))},function(e){r(o(e,i-1))})});else if(O.__isArray(e))s=[];else if(O.__isRegExp(e))s=new RegExp(e.source,j(e)),e.lastIndex&&(s.lastIndex=e.lastIndex);else if(O.__isDate(e))s=new Date(e.getTime());else{if(_&&S.isBuffer(e))return s=S.allocUnsafe?S.allocUnsafe(e.length):new S(e.length),e.copy(s),s;m(e,Error)?s=Object.create(e):void 0===d?(t=Object.getPrototypeOf(e),s=Object.create(t)):(s=Object.create(d),t=d)}if(h){var r=v.indexOf(e);if(-1!=r)return y[r];v.push(e),y.push(s)}for(var n in m(e,g)&&e.forEach(function(e,t){var r=o(t,i-1),n=o(e,i-1);s.set(r,n)}),m(e,w)&&e.forEach(function(e){var t=o(e,i-1);s.add(t)}),e){var u;t&&(u=Object.getOwnPropertyDescriptor(t,n)),u&&null==u.set||(s[n]=o(e[n],i-1))}if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++){var c=a[n];(f=Object.getOwnPropertyDescriptor(e,c))&&!f.enumerable&&!b||(s[c]=o(e[c],i-1),f.enumerable||Object.defineProperty(s,c,{enumerable:!1}))}}if(b){var l=Object.getOwnPropertyNames(e);for(n=0;n<l.length;n++){var f,p=l[n];(f=Object.getOwnPropertyDescriptor(e,p))&&f.enumerable||(s[p]=o(e[p],i-1),Object.defineProperty(s,p,{enumerable:!1}))}}return s}(e,t)}function t(e){return Object.prototype.toString.call(e)}function j(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return O.clonePrototype=function(e){if(null===e)return null;function t(){}return t.prototype=e,new t},O.__objToStr=t,O.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},O.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},O.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},O.__getRegExpFlags=j,O}();"object"==typeof t&&t.exports&&(t.exports=e)}).call(this,e("buffer").Buffer)},{buffer:85}],87:[function(e,t,r){e("../modules/es6.symbol"),e("../modules/es6.object.create"),e("../modules/es6.object.define-property"),e("../modules/es6.object.define-properties"),e("../modules/es6.object.get-own-property-descriptor"),e("../modules/es6.object.get-prototype-of"),e("../modules/es6.object.keys"),e("../modules/es6.object.get-own-property-names"),e("../modules/es6.object.freeze"),e("../modules/es6.object.seal"),e("../modules/es6.object.prevent-extensions"),e("../modules/es6.object.is-frozen"),e("../modules/es6.object.is-sealed"),e("../modules/es6.object.is-extensible"),e("../modules/es6.object.assign"),e("../modules/es6.object.is"),e("../modules/es6.object.set-prototype-of"),e("../modules/es6.object.to-string"),e("../modules/es6.function.bind"),e("../modules/es6.function.name"),e("../modules/es6.function.has-instance"),e("../modules/es6.parse-int"),e("../modules/es6.parse-float"),e("../modules/es6.number.constructor"),e("../modules/es6.number.to-fixed"),e("../modules/es6.number.to-precision"),e("../modules/es6.number.epsilon"),e("../modules/es6.number.is-finite"),e("../modules/es6.number.is-integer"),e("../modules/es6.number.is-nan"),e("../modules/es6.number.is-safe-integer"),e("../modules/es6.number.max-safe-integer"),e("../modules/es6.number.min-safe-integer"),e("../modules/es6.number.parse-float"),e("../modules/es6.number.parse-int"),e("../modules/es6.math.acosh"),e("../modules/es6.math.asinh"),e("../modules/es6.math.atanh"),e("../modules/es6.math.cbrt"),e("../modules/es6.math.clz32"),e("../modules/es6.math.cosh"),e("../modules/es6.math.expm1"),e("../modules/es6.math.fround"),e("../modules/es6.math.hypot"),e("../modules/es6.math.imul"),e("../modules/es6.math.log10"),e("../modules/es6.math.log1p"),e("../modules/es6.math.log2"),e("../modules/es6.math.sign"),e("../modules/es6.math.sinh"),e("../modules/es6.math.tanh"),e("../modules/es6.math.trunc"),e("../modules/es6.string.from-code-point"),e("../modules/es6.string.raw"),e("../modules/es6.string.trim"),e("../modules/es6.string.iterator"),e("../modules/es6.string.code-point-at"),e("../modules/es6.string.ends-with"),e("../modules/es6.string.includes"),e("../modules/es6.string.repeat"),e("../modules/es6.string.starts-with"),e("../modules/es6.string.anchor"),e("../modules/es6.string.big"),e("../modules/es6.string.blink"),e("../modules/es6.string.bold"),e("../modules/es6.string.fixed"),e("../modules/es6.string.fontcolor"),e("../modules/es6.string.fontsize"),e("../modules/es6.string.italics"),e("../modules/es6.string.link"),e("../modules/es6.string.small"),e("../modules/es6.string.strike"),e("../modules/es6.string.sub"),e("../modules/es6.string.sup"),e("../modules/es6.date.now"),e("../modules/es6.date.to-json"),e("../modules/es6.date.to-iso-string"),e("../modules/es6.date.to-string"),e("../modules/es6.date.to-primitive"),e("../modules/es6.array.is-array"),e("../modules/es6.array.from"),e("../modules/es6.array.of"),e("../modules/es6.array.join"),e("../modules/es6.array.slice"),e("../modules/es6.array.sort"),e("../modules/es6.array.for-each"),e("../modules/es6.array.map"),e("../modules/es6.array.filter"),e("../modules/es6.array.some"),e("../modules/es6.array.every"),e("../modules/es6.array.reduce"),e("../modules/es6.array.reduce-right"),e("../modules/es6.array.index-of"),e("../modules/es6.array.last-index-of"),e("../modules/es6.array.copy-within"),e("../modules/es6.array.fill"),e("../modules/es6.array.find"),e("../modules/es6.array.find-index"),e("../modules/es6.array.species"),e("../modules/es6.array.iterator"),e("../modules/es6.regexp.constructor"),e("../modules/es6.regexp.exec"),e("../modules/es6.regexp.to-string"),e("../modules/es6.regexp.flags"),e("../modules/es6.regexp.match"),e("../modules/es6.regexp.replace"),e("../modules/es6.regexp.search"),e("../modules/es6.regexp.split"),e("../modules/es6.promise"),e("../modules/es6.map"),e("../modules/es6.set"),e("../modules/es6.weak-map"),e("../modules/es6.weak-set"),e("../modules/es6.typed.array-buffer"),e("../modules/es6.typed.data-view"),e("../modules/es6.typed.int8-array"),e("../modules/es6.typed.uint8-array"),e("../modules/es6.typed.uint8-clamped-array"),e("../modules/es6.typed.int16-array"),e("../modules/es6.typed.uint16-array"),e("../modules/es6.typed.int32-array"),e("../modules/es6.typed.uint32-array"),e("../modules/es6.typed.float32-array"),e("../modules/es6.typed.float64-array"),e("../modules/es6.reflect.apply"),e("../modules/es6.reflect.construct"),e("../modules/es6.reflect.define-property"),e("../modules/es6.reflect.delete-property"),e("../modules/es6.reflect.enumerate"),e("../modules/es6.reflect.get"),e("../modules/es6.reflect.get-own-property-descriptor"),e("../modules/es6.reflect.get-prototype-of"),e("../modules/es6.reflect.has"),e("../modules/es6.reflect.is-extensible"),e("../modules/es6.reflect.own-keys"),e("../modules/es6.reflect.prevent-extensions"),e("../modules/es6.reflect.set"),e("../modules/es6.reflect.set-prototype-of"),t.exports=e("../modules/_core")},{"../modules/_core":136,"../modules/es6.array.copy-within":238,"../modules/es6.array.every":239,"../modules/es6.array.fill":240,"../modules/es6.array.filter":241,"../modules/es6.array.find":243,"../modules/es6.array.find-index":242,"../modules/es6.array.for-each":244,"../modules/es6.array.from":245,"../modules/es6.array.index-of":246,"../modules/es6.array.is-array":247,"../modules/es6.array.iterator":248,"../modules/es6.array.join":249,"../modules/es6.array.last-index-of":250,"../modules/es6.array.map":251,"../modules/es6.array.of":252,"../modules/es6.array.reduce":254,"../modules/es6.array.reduce-right":253,"../modules/es6.array.slice":255,"../modules/es6.array.some":256,"../modules/es6.array.sort":257,"../modules/es6.array.species":258,"../modules/es6.date.now":259,"../modules/es6.date.to-iso-string":260,"../modules/es6.date.to-json":261,"../modules/es6.date.to-primitive":262,"../modules/es6.date.to-string":263,"../modules/es6.function.bind":264,"../modules/es6.function.has-instance":265,"../modules/es6.function.name":266,"../modules/es6.map":267,"../modules/es6.math.acosh":268,"../modules/es6.math.asinh":269,"../modules/es6.math.atanh":270,"../modules/es6.math.cbrt":271,"../modules/es6.math.clz32":272,"../modules/es6.math.cosh":273,"../modules/es6.math.expm1":274,"../modules/es6.math.fround":275,"../modules/es6.math.hypot":276,"../modules/es6.math.imul":277,"../modules/es6.math.log10":278,"../modules/es6.math.log1p":279,"../modules/es6.math.log2":280,"../modules/es6.math.sign":281,"../modules/es6.math.sinh":282,"../modules/es6.math.tanh":283,"../modules/es6.math.trunc":284,"../modules/es6.number.constructor":285,"../modules/es6.number.epsilon":286,"../modules/es6.number.is-finite":287,"../modules/es6.number.is-integer":288,"../modules/es6.number.is-nan":289,"../modules/es6.number.is-safe-integer":290,"../modules/es6.number.max-safe-integer":291,"../modules/es6.number.min-safe-integer":292,"../modules/es6.number.parse-float":293,"../modules/es6.number.parse-int":294,"../modules/es6.number.to-fixed":295,"../modules/es6.number.to-precision":296,"../modules/es6.object.assign":297,"../modules/es6.object.create":298,"../modules/es6.object.define-properties":299,"../modules/es6.object.define-property":300,"../modules/es6.object.freeze":301,"../modules/es6.object.get-own-property-descriptor":302,"../modules/es6.object.get-own-property-names":303,"../modules/es6.object.get-prototype-of":304,"../modules/es6.object.is":308,"../modules/es6.object.is-extensible":305,"../modules/es6.object.is-frozen":306,"../modules/es6.object.is-sealed":307,"../modules/es6.object.keys":309,"../modules/es6.object.prevent-extensions":310,"../modules/es6.object.seal":311,"../modules/es6.object.set-prototype-of":312,"../modules/es6.object.to-string":313,"../modules/es6.parse-float":314,"../modules/es6.parse-int":315,"../modules/es6.promise":316,"../modules/es6.reflect.apply":317,"../modules/es6.reflect.construct":318,"../modules/es6.reflect.define-property":319,"../modules/es6.reflect.delete-property":320,"../modules/es6.reflect.enumerate":321,"../modules/es6.reflect.get":324,"../modules/es6.reflect.get-own-property-descriptor":322,"../modules/es6.reflect.get-prototype-of":323,"../modules/es6.reflect.has":325,"../modules/es6.reflect.is-extensible":326,"../modules/es6.reflect.own-keys":327,"../modules/es6.reflect.prevent-extensions":328,"../modules/es6.reflect.set":330,"../modules/es6.reflect.set-prototype-of":329,"../modules/es6.regexp.constructor":331,"../modules/es6.regexp.exec":332,"../modules/es6.regexp.flags":333,"../modules/es6.regexp.match":334,"../modules/es6.regexp.replace":335,"../modules/es6.regexp.search":336,"../modules/es6.regexp.split":337,"../modules/es6.regexp.to-string":338,"../modules/es6.set":339,"../modules/es6.string.anchor":340,"../modules/es6.string.big":341,"../modules/es6.string.blink":342,"../modules/es6.string.bold":343,"../modules/es6.string.code-point-at":344,"../modules/es6.string.ends-with":345,"../modules/es6.string.fixed":346,"../modules/es6.string.fontcolor":347,"../modules/es6.string.fontsize":348,"../modules/es6.string.from-code-point":349,"../modules/es6.string.includes":350,"../modules/es6.string.italics":351,"../modules/es6.string.iterator":352,"../modules/es6.string.link":353,"../modules/es6.string.raw":354,"../modules/es6.string.repeat":355,"../modules/es6.string.small":356,"../modules/es6.string.starts-with":357,"../modules/es6.string.strike":358,"../modules/es6.string.sub":359,"../modules/es6.string.sup":360,"../modules/es6.string.trim":361,"../modules/es6.symbol":362,"../modules/es6.typed.array-buffer":363,"../modules/es6.typed.data-view":364,"../modules/es6.typed.float32-array":365,"../modules/es6.typed.float64-array":366,"../modules/es6.typed.int16-array":367,"../modules/es6.typed.int32-array":368,"../modules/es6.typed.int8-array":369,"../modules/es6.typed.uint16-array":370,"../modules/es6.typed.uint32-array":371,"../modules/es6.typed.uint8-array":372,"../modules/es6.typed.uint8-clamped-array":373,"../modules/es6.weak-map":374,"../modules/es6.weak-set":375}],88:[function(e,t,r){e("../../modules/es7.array.flat-map"),t.exports=e("../../modules/_core").Array.flatMap},{"../../modules/_core":136,"../../modules/es7.array.flat-map":376}],89:[function(e,t,r){e("../../modules/es7.array.includes"),t.exports=e("../../modules/_core").Array.includes},{"../../modules/_core":136,"../../modules/es7.array.includes":377}],90:[function(e,t,r){e("../../modules/es7.object.entries"),t.exports=e("../../modules/_core").Object.entries},{"../../modules/_core":136,"../../modules/es7.object.entries":378}],91:[function(e,t,r){e("../../modules/es7.object.get-own-property-descriptors"),t.exports=e("../../modules/_core").Object.getOwnPropertyDescriptors},{"../../modules/_core":136,"../../modules/es7.object.get-own-property-descriptors":379}],92:[function(e,t,r){e("../../modules/es7.object.values"),t.exports=e("../../modules/_core").Object.values},{"../../modules/_core":136,"../../modules/es7.object.values":380}],93:[function(e,t,r){"use strict";e("../../modules/es6.promise"),e("../../modules/es7.promise.finally"),t.exports=e("../../modules/_core").Promise.finally},{"../../modules/_core":136,"../../modules/es6.promise":316,"../../modules/es7.promise.finally":381}],94:[function(e,t,r){e("../../modules/es7.string.pad-end"),t.exports=e("../../modules/_core").String.padEnd},{"../../modules/_core":136,"../../modules/es7.string.pad-end":382}],95:[function(e,t,r){e("../../modules/es7.string.pad-start"),t.exports=e("../../modules/_core").String.padStart},{"../../modules/_core":136,"../../modules/es7.string.pad-start":383}],96:[function(e,t,r){e("../../modules/es7.string.trim-right"),t.exports=e("../../modules/_core").String.trimRight},{"../../modules/_core":136,"../../modules/es7.string.trim-right":385}],97:[function(e,t,r){e("../../modules/es7.string.trim-left"),t.exports=e("../../modules/_core").String.trimLeft},{"../../modules/_core":136,"../../modules/es7.string.trim-left":384}],98:[function(e,t,r){e("../../modules/es7.symbol.async-iterator"),t.exports=e("../../modules/_wks-ext").f("asyncIterator")},{"../../modules/_wks-ext":235,"../../modules/es7.symbol.async-iterator":386}],99:[function(e,t,r){e("../modules/es7.global"),t.exports=e("../modules/_core").global},{"../modules/_core":102,"../modules/es7.global":116}],100:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],101:[function(e,t,r){var n=e("./_is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":112}],102:[function(e,t,r){var n=t.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},{}],103:[function(e,t,r){var i=e("./_a-function");t.exports=function(n,o,e){if(i(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,t){return n.call(o,e,t)};case 3:return function(e,t,r){return n.call(o,e,t,r)}}return function(){return n.apply(o,arguments)}}},{"./_a-function":100}],104:[function(e,t,r){t.exports=!e("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":107}],105:[function(e,t,r){var n=e("./_is-object"),o=e("./_global").document,i=n(o)&&n(o.createElement);t.exports=function(e){return i?o.createElement(e):{}}},{"./_global":108,"./_is-object":112}],106:[function(e,t,r){var b=e("./_global"),v=e("./_core"),y=e("./_ctx"),_=e("./_hide"),m=e("./_has"),g="prototype",w=function(e,t,r){var n,o,i,s=e&w.F,u=e&w.G,a=e&w.S,c=e&w.P,l=e&w.B,f=e&w.W,p=u?v:v[t]||(v[t]={}),h=p[g],d=u?b:a?b[t]:(b[t]||{})[g];for(n in u&&(r=t),r)(o=!s&&d&&void 0!==d[n])&&m(p,n)||(i=o?d[n]:r[n],p[n]=u&&"function"!=typeof d[n]?r[n]:l&&o?y(i,b):f&&d[n]==i?function(n){function e(e,t,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,t)}return new n(e,t,r)}return n.apply(this,arguments)}return e[g]=n[g],e}(i):c&&"function"==typeof i?y(Function.call,i):i,c&&((p.virtual||(p.virtual={}))[n]=i,e&w.R&&h&&!h[n]&&_(h,n,i)))};w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,t.exports=w},{"./_core":102,"./_ctx":103,"./_global":108,"./_has":109,"./_hide":110}],107:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],108:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],109:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],110:[function(e,t,r){var n=e("./_object-dp"),o=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":104,"./_object-dp":113,"./_property-desc":114}],111:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")(function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":104,"./_dom-create":105,"./_fails":107}],112:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],113:[function(e,t,r){var n=e("./_an-object"),o=e("./_ie8-dom-define"),i=e("./_to-primitive"),s=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return s(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":101,"./_descriptors":104,"./_ie8-dom-define":111,"./_to-primitive":115}],114:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],115:[function(e,t,r){var o=e("./_is-object");t.exports=function(e,t){if(!o(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!o(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!o(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!o(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":112}],116:[function(e,t,r){var n=e("./_export");n(n.G,{global:e("./_global")})},{"./_export":106,"./_global":108}],117:[function(e,t,r){arguments[4][100][0].apply(r,arguments)},{dup:100}],118:[function(e,t,r){var n=e("./_cof");t.exports=function(e,t){if("number"!=typeof e&&"Number"!=n(e))throw TypeError(t);return+e}},{"./_cof":132}],119:[function(e,t,r){var n=e("./_wks")("unscopables"),o=Array.prototype;null==o[n]&&e("./_hide")(o,n,{}),t.exports=function(e){o[n][e]=!0}},{"./_hide":156,"./_wks":236}],120:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},{"./_string-at":213}],121:[function(e,t,r){t.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},{}],122:[function(e,t,r){arguments[4][101][0].apply(r,arguments)},{"./_is-object":165,dup:101}],123:[function(e,t,r){"use strict";var l=e("./_to-object"),f=e("./_to-absolute-index"),p=e("./_to-length");t.exports=[].copyWithin||function(e,t,r){var n=l(this),o=p(n.length),i=f(e,o),s=f(t,o),u=2<arguments.length?r:void 0,a=Math.min((void 0===u?o:f(u,o))-s,o-i),c=1;for(s<i&&i<s+a&&(c=-1,s+=a-1,i+=a-1);0<a--;)s in n?n[i]=n[s]:delete n[i],i+=c,s+=c;return n}},{"./_to-absolute-index":221,"./_to-length":225,"./_to-object":226}],124:[function(e,t,r){"use strict";var c=e("./_to-object"),l=e("./_to-absolute-index"),f=e("./_to-length");t.exports=function(e,t,r){for(var n=c(this),o=f(n.length),i=arguments.length,s=l(1<i?t:void 0,o),u=2<i?r:void 0,a=void 0===u?o:l(u,o);s<a;)n[s++]=e;return n}},{"./_to-absolute-index":221,"./_to-length":225,"./_to-object":226}],125:[function(e,t,r){var a=e("./_to-iobject"),c=e("./_to-length"),l=e("./_to-absolute-index");t.exports=function(u){return function(e,t,r){var n,o=a(e),i=c(o.length),s=l(r,i);if(u&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((u||s in o)&&o[s]===t)return u||s||0;return!u&&-1}}},{"./_to-absolute-index":221,"./_to-iobject":224,"./_to-length":225}],126:[function(e,t,r){var m=e("./_ctx"),g=e("./_iobject"),w=e("./_to-object"),x=e("./_to-length"),n=e("./_array-species-create");t.exports=function(f,e){var p=1==f,h=2==f,d=3==f,b=4==f,v=6==f,y=5==f||v,_=e||n;return function(e,t,r){for(var n,o,i=w(e),s=g(i),u=m(t,r,3),a=x(s.length),c=0,l=p?_(e,a):h?_(e,0):void 0;c<a;c++)if((y||c in s)&&(o=u(n=s[c],c,i),f))if(p)l[c]=o;else if(o)switch(f){case 3:return!0;case 5:return n;case 6:return c;case 2:l.push(n)}else if(b)return!1;return v?-1:d||b?b:l}}},{"./_array-species-create":129,"./_ctx":138,"./_iobject":161,"./_to-length":225,"./_to-object":226}],127:[function(e,t,r){var l=e("./_a-function"),f=e("./_to-object"),p=e("./_iobject"),h=e("./_to-length");t.exports=function(e,t,r,n,o){l(t);var i=f(e),s=p(i),u=h(i.length),a=o?u-1:0,c=o?-1:1;if(r<2)for(;;){if(a in s){n=s[a],a+=c;break}if(a+=c,o?a<0:u<=a)throw TypeError("Reduce of empty array with no initial value")}for(;o?0<=a:a<u;a+=c)a in s&&(n=t(n,s[a],a,i));return n}},{"./_a-function":117,"./_iobject":161,"./_to-length":225,"./_to-object":226}],128:[function(e,t,r){var n=e("./_is-object"),o=e("./_is-array"),i=e("./_wks")("species");t.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),n(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},{"./_is-array":163,"./_is-object":165,"./_wks":236}],129:[function(e,t,r){var n=e("./_array-species-constructor");t.exports=function(e,t){return new(n(e))(t)}},{"./_array-species-constructor":128}],130:[function(e,t,r){"use strict";var i=e("./_a-function"),s=e("./_is-object"),u=e("./_invoke"),a=[].slice,c={};t.exports=Function.bind||function(t){var r=i(this),n=a.call(arguments,1),o=function(){var e=n.concat(a.call(arguments));return this instanceof o?function(e,t,r){if(!(t in c)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";c[t]=Function("F,a","return new F("+n.join(",")+")")}return c[t](e,r)}(r,e.length,e):u(r,e,t)};return s(r.prototype)&&(o.prototype=r.prototype),o}},{"./_a-function":117,"./_invoke":160,"./_is-object":165}],131:[function(e,t,r){var o=e("./_cof"),i=e("./_wks")("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:s?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},{"./_cof":132,"./_wks":236}],132:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],133:[function(e,t,r){"use strict";function s(e,t){var r,n=d(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r}var u=e("./_object-dp").f,a=e("./_object-create"),c=e("./_redefine-all"),l=e("./_ctx"),f=e("./_an-instance"),p=e("./_for-of"),n=e("./_iter-define"),o=e("./_iter-step"),i=e("./_set-species"),h=e("./_descriptors"),d=e("./_meta").fastKey,b=e("./_validate-collection"),v=h?"_s":"size";t.exports={getConstructor:function(e,i,r,n){var o=e(function(e,t){f(e,o,i,"_i"),e._t=i,e._i=a(null),e._f=void 0,e._l=void 0,e[v]=0,null!=t&&p(t,r,e[n],e)});return c(o.prototype,{clear:function(){for(var e=b(this,i),t=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete t[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var t=b(this,i),r=s(t,e);if(r){var n=r.n,o=r.p;delete t._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),t._f==r&&(t._f=n),t._l==r&&(t._l=o),t[v]--}return!!r},forEach:function(e,t){b(this,i);for(var r,n=l(e,1<arguments.length?t:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!s(b(this,i),e)}}),h&&u(o.prototype,"size",{get:function(){return b(this,i)[v]}}),o},def:function(e,t,r){var n,o,i=s(e,t);return i?i.v=r:(e._l=i={i:o=d(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=i),n&&(n.n=i),e[v]++,"F"!==o&&(e._i[o]=i)),e},getEntry:s,setStrong:function(e,r,t){n(e,r,function(e,t){this._t=b(e,r),this._k=t,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?o(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,o(1))},t?"entries":"values",!t,!0),i(r)}}},{"./_an-instance":121,"./_ctx":138,"./_descriptors":142,"./_for-of":152,"./_iter-define":169,"./_iter-step":171,"./_meta":178,"./_object-create":182,"./_object-dp":183,"./_redefine-all":201,"./_set-species":207,"./_validate-collection":233}],134:[function(e,t,r){"use strict";function s(e){return e._l||(e._l=new y)}function n(e,t){return d(e.a,function(e){return e[0]===t})}var u=e("./_redefine-all"),a=e("./_meta").getWeak,o=e("./_an-object"),c=e("./_is-object"),l=e("./_an-instance"),f=e("./_for-of"),i=e("./_array-methods"),p=e("./_has"),h=e("./_validate-collection"),d=i(5),b=i(6),v=0,y=function(){this.a=[]};y.prototype={get:function(e){var t=n(this,e);if(t)return t[1]},has:function(e){return!!n(this,e)},set:function(e,t){var r=n(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(t){var e=b(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(e,r,n,o){var i=e(function(e,t){l(e,i,r,"_i"),e._t=r,e._i=v++,e._l=void 0,null!=t&&f(t,n,e[o],e)});return u(i.prototype,{delete:function(e){if(!c(e))return!1;var t=a(e);return!0===t?s(h(this,r)).delete(e):t&&p(t,this._i)&&delete t[this._i]},has:function(e){if(!c(e))return!1;var t=a(e);return!0===t?s(h(this,r)).has(e):t&&p(t,this._i)}}),i},def:function(e,t,r){var n=a(o(t),!0);return!0===n?s(e).set(t,r):n[e._i]=r,e},ufstore:s}},{"./_an-instance":121,"./_an-object":122,"./_array-methods":126,"./_for-of":152,"./_has":155,"./_is-object":165,"./_meta":178,"./_redefine-all":201,"./_validate-collection":233}],135:[function(e,t,r){"use strict";var y=e("./_global"),_=e("./_export"),m=e("./_redefine"),g=e("./_redefine-all"),w=e("./_meta"),x=e("./_for-of"),O=e("./_an-instance"),j=e("./_is-object"),S=e("./_fails"),E=e("./_iter-detect"),k=e("./_set-to-string-tag"),P=e("./_inherit-if-required");t.exports=function(n,e,t,r,o,i){function s(e){var r=l[e];m(l,e,"delete"==e?function(e){return!(i&&!j(e))&&r.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!j(e))&&r.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!j(e)?void 0:r.call(this,0===e?0:e)}:"add"==e?function(e){return r.call(this,0===e?0:e),this}:function(e,t){return r.call(this,0===e?0:e,t),this})}var u=y[n],a=u,c=o?"set":"add",l=a&&a.prototype,f={};if("function"==typeof a&&(i||l.forEach&&!S(function(){(new a).entries().next()}))){var p=new a,h=p[c](i?{}:-0,1)!=p,d=S(function(){p.has(1)}),b=E(function(e){new a(e)}),v=!i&&S(function(){for(var e=new a,t=5;t--;)e[c](t,t);return!e.has(-0)});b||(((a=e(function(e,t){O(e,a,n);var r=P(new u,e,a);return null!=t&&x(t,o,r[c],r),r})).prototype=l).constructor=a),(d||v)&&(s("delete"),s("has"),o&&s("get")),(v||h)&&s(c),i&&l.clear&&delete l.clear}else a=r.getConstructor(e,n,o,c),g(a.prototype,t),w.NEED=!0;return k(a,n),f[n]=a,_(_.G+_.W+_.F*(a!=u),f),i||r.setStrong(a,n,o),a}},{"./_an-instance":121,"./_export":146,"./_fails":148,"./_for-of":152,"./_global":154,"./_inherit-if-required":159,"./_is-object":165,"./_iter-detect":170,"./_meta":178,"./_redefine":202,"./_redefine-all":201,"./_set-to-string-tag":208}],136:[function(e,t,r){arguments[4][102][0].apply(r,arguments)},{dup:102}],137:[function(e,t,r){"use strict";var n=e("./_object-dp"),o=e("./_property-desc");t.exports=function(e,t,r){t in e?n.f(e,t,o(0,r)):e[t]=r}},{"./_object-dp":183,"./_property-desc":200}],138:[function(e,t,r){arguments[4][103][0].apply(r,arguments)},{"./_a-function":117,dup:103}],139:[function(e,t,r){"use strict";function n(e){return 9<e?e:"0"+e}var o=e("./_fails"),i=Date.prototype.getTime,s=Date.prototype.toISOString;t.exports=o(function(){return"0385-07-25T07:06:39.999Z"!=s.call(new Date(-5e13-1))})||!o(function(){s.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),r=e<0?"-":9999<e?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+(99<t?t:"0"+n(t))+"Z"}:s},{"./_fails":148}],140:[function(e,t,r){"use strict";var n=e("./_an-object"),o=e("./_to-primitive");t.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(n(this),"number"!=e)}},{"./_an-object":122,"./_to-primitive":227}],141:[function(e,t,r){t.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},{}],142:[function(e,t,r){arguments[4][104][0].apply(r,arguments)},{"./_fails":148,dup:104}],143:[function(e,t,r){arguments[4][105][0].apply(r,arguments)},{"./_global":154,"./_is-object":165,dup:105}],144:[function(e,t,r){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],145:[function(e,t,r){var u=e("./_object-keys"),a=e("./_object-gops"),c=e("./_object-pie");t.exports=function(e){var t=u(e),r=a.f;if(r)for(var n,o=r(e),i=c.f,s=0;o.length>s;)i.call(e,n=o[s++])&&t.push(n);return t}},{"./_object-gops":188,"./_object-keys":191,"./_object-pie":192}],146:[function(e,t,r){var b=e("./_global"),v=e("./_core"),y=e("./_hide"),_=e("./_redefine"),m=e("./_ctx"),g="prototype",w=function(e,t,r){var n,o,i,s,u=e&w.F,a=e&w.G,c=e&w.S,l=e&w.P,f=e&w.B,p=a?b:c?b[t]||(b[t]={}):(b[t]||{})[g],h=a?v:v[t]||(v[t]={}),d=h[g]||(h[g]={});for(n in a&&(r=t),r)i=((o=!u&&p&&void 0!==p[n])?p:r)[n],s=f&&o?m(i,b):l&&"function"==typeof i?m(Function.call,i):i,p&&_(p,n,i,e&w.U),h[n]!=i&&y(h,n,s),l&&d[n]!=i&&(d[n]=i)};b.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,t.exports=w},{"./_core":136,"./_ctx":138,"./_global":154,"./_hide":156,"./_redefine":202}],147:[function(e,t,r){var n=e("./_wks")("match");t.exports=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[n]=!1,!"/./"[t](r)}catch(e){}}return!0}},{"./_wks":236}],148:[function(e,t,r){arguments[4][107][0].apply(r,arguments)},{dup:107}],149:[function(e,t,r){"use strict";e("./es6.regexp.exec");var l=e("./_redefine"),f=e("./_hide"),p=e("./_fails"),h=e("./_defined"),d=e("./_wks"),b=e("./_regexp-exec"),v=d("species"),y=!p(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),_=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(r,e,t){var n=d(r),i=!p(function(){var e={};return e[n]=function(){return 7},7!=""[r](e)}),o=i?!p(function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},"split"===r&&(t.constructor={},t.constructor[v]=function(){return t}),t[n](""),!e}):void 0;if(!i||!o||"replace"===r&&!y||"split"===r&&!_){var s=/./[n],u=t(h,n,""[r],function(e,t,r,n,o){return t.exec===b?i&&!o?{done:!0,value:s.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),a=u[0],c=u[1];l(String.prototype,r,a),f(RegExp.prototype,n,2==e?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}}},{"./_defined":141,"./_fails":148,"./_hide":156,"./_redefine":202,"./_regexp-exec":204,"./_wks":236,"./es6.regexp.exec":332}],150:[function(e,t,r){"use strict";var n=e("./_an-object");t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./_an-object":122}],151:[function(e,t,r){"use strict";var d=e("./_is-array"),b=e("./_is-object"),v=e("./_to-length"),y=e("./_ctx"),_=e("./_wks")("isConcatSpreadable");t.exports=function e(t,r,n,o,i,s,u,a){for(var c,l,f=i,p=0,h=!!u&&y(u,a,3);p<o;){if(p in n){if(c=h?h(n[p],p,r):n[p],l=!1,b(c)&&(l=void 0!==(l=c[_])?!!l:d(c)),l&&0<s)f=e(t,r,c,v(c.length),f,s-1)-1;else{if(9007199254740991<=f)throw TypeError();t[f]=c}f++}p++}return f}},{"./_ctx":138,"./_is-array":163,"./_is-object":165,"./_to-length":225,"./_wks":236}],152:[function(e,t,r){var p=e("./_ctx"),h=e("./_iter-call"),d=e("./_is-array-iter"),b=e("./_an-object"),v=e("./_to-length"),y=e("./core.get-iterator-method"),_={},m={};(r=t.exports=function(e,t,r,n,o){var i,s,u,a,c=o?function(){return e}:y(e),l=p(r,n,t?2:1),f=0;if("function"!=typeof c)throw TypeError(e+" is not iterable!");if(d(c)){for(i=v(e.length);f<i;f++)if((a=t?l(b(s=e[f])[0],s[1]):l(e[f]))===_||a===m)return a}else for(u=c.call(e);!(s=u.next()).done;)if((a=h(u,l,s.value,t))===_||a===m)return a}).BREAK=_,r.RETURN=m},{"./_an-object":122,"./_ctx":138,"./_is-array-iter":162,"./_iter-call":167,"./_to-length":225,"./core.get-iterator-method":237}],153:[function(e,t,r){t.exports=e("./_shared")("native-function-to-string",Function.toString)},{"./_shared":210}],154:[function(e,t,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],155:[function(e,t,r){arguments[4][109][0].apply(r,arguments)},{dup:109}],156:[function(e,t,r){arguments[4][110][0].apply(r,arguments)},{"./_descriptors":142,"./_object-dp":183,"./_property-desc":200,dup:110}],157:[function(e,t,r){var n=e("./_global").document;t.exports=n&&n.documentElement},{"./_global":154}],158:[function(e,t,r){arguments[4][111][0].apply(r,arguments)},{"./_descriptors":142,"./_dom-create":143,"./_fails":148,dup:111}],159:[function(e,t,r){var i=e("./_is-object"),s=e("./_set-proto").set;t.exports=function(e,t,r){var n,o=t.constructor;return o!==r&&"function"==typeof o&&(n=o.prototype)!==r.prototype&&i(n)&&s&&s(e,n),e}},{"./_is-object":165,"./_set-proto":206}],160:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],161:[function(e,t,r){var n=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./_cof":132}],162:[function(e,t,r){var n=e("./_iterators"),o=e("./_wks")("iterator"),i=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},{"./_iterators":172,"./_wks":236}],163:[function(e,t,r){var n=e("./_cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./_cof":132}],164:[function(e,t,r){var n=e("./_is-object"),o=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&o(e)===e}},{"./_is-object":165}],165:[function(e,t,r){arguments[4][112][0].apply(r,arguments)},{dup:112}],166:[function(e,t,r){var n=e("./_is-object"),o=e("./_cof"),i=e("./_wks")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},{"./_cof":132,"./_is-object":165,"./_wks":236}],167:[function(e,t,r){var i=e("./_an-object");t.exports=function(t,e,r,n){try{return n?e(i(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},{"./_an-object":122}],168:[function(e,t,r){"use strict";var n=e("./_object-create"),o=e("./_property-desc"),i=e("./_set-to-string-tag"),s={};e("./_hide")(s,e("./_wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n(s,{next:o(1,r)}),i(e,t+" Iterator")}},{"./_hide":156,"./_object-create":182,"./_property-desc":200,"./_set-to-string-tag":208,"./_wks":236}],169:[function(e,t,r){"use strict";function m(){return this}var g=e("./_library"),w=e("./_export"),x=e("./_redefine"),O=e("./_hide"),j=e("./_iterators"),S=e("./_iter-create"),E=e("./_set-to-string-tag"),k=e("./_object-gpo"),P=e("./_wks")("iterator"),A=!([].keys&&"next"in[].keys()),C="values";t.exports=function(e,t,r,n,o,i,s){S(r,t,n);function u(e){if(!A&&e in d)return d[e];switch(e){case"keys":case C:return function(){return new r(this,e)}}return function(){return new r(this,e)}}var a,c,l,f=t+" Iterator",p=o==C,h=!1,d=e.prototype,b=d[P]||d["@@iterator"]||o&&d[o],v=b||u(o),y=o?p?u("entries"):v:void 0,_="Array"==t&&d.entries||b;if(_&&(l=k(_.call(new e)))!==Object.prototype&&l.next&&(E(l,f,!0),g||"function"==typeof l[P]||O(l,P,m)),p&&b&&b.name!==C&&(h=!0,v=function(){return b.call(this)}),g&&!s||!A&&!h&&d[P]||O(d,P,v),j[t]=v,j[f]=m,o)if(a={values:p?v:u(C),keys:i?v:u("keys"),entries:y},s)for(c in a)c in d||x(d,c,a[c]);else w(w.P+w.F*(A||h),t,a);return a}},{"./_export":146,"./_hide":156,"./_iter-create":168,"./_iterators":172,"./_library":173,"./_object-gpo":189,"./_redefine":202,"./_set-to-string-tag":208,"./_wks":236}],170:[function(e,t,r){var i=e("./_wks")("iterator"),s=!1;try{var n=[7][i]();n.return=function(){s=!0},Array.from(n,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!s)return!1;var r=!1;try{var n=[7],o=n[i]();o.next=function(){return{done:r=!0}},n[i]=function(){return o},e(n)}catch(e){}return r}},{"./_wks":236}],171:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],172:[function(e,t,r){t.exports={}},{}],173:[function(e,t,r){t.exports=!1},{}],174:[function(e,t,r){var n=Math.expm1;t.exports=!n||22025.465794806718<n(10)||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},{}],175:[function(e,t,r){var i=e("./_math-sign"),n=Math.pow,s=n(2,-52),u=n(2,-23),a=n(2,127)*(2-u),c=n(2,-126);t.exports=Math.fround||function(e){var t,r,n=Math.abs(e),o=i(e);return n<c?o*(n/c/u+1/s-1/s)*c*u:a<(r=(t=(1+u/s)*n)-(t-n))||r!=r?o*(1/0):o*r}},{"./_math-sign":177}],176:[function(e,t,r){t.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},{}],177:[function(e,t,r){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},{}],178:[function(e,t,r){function n(e){u(e,o,{value:{i:"O"+ ++a,w:{}}})}var o=e("./_uid")("meta"),i=e("./_is-object"),s=e("./_has"),u=e("./_object-dp").f,a=0,c=Object.isExtensible||function(){return!0},l=!e("./_fails")(function(){return c(Object.preventExtensions({}))}),f=t.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,o)){if(!c(e))return"F";if(!t)return"E";n(e)}return e[o].i},getWeak:function(e,t){if(!s(e,o)){if(!c(e))return!0;if(!t)return!1;n(e)}return e[o].w},onFreeze:function(e){return l&&f.NEED&&c(e)&&!s(e,o)&&n(e),e}}},{"./_fails":148,"./_has":155,"./_is-object":165,"./_object-dp":183,"./_uid":231}],179:[function(e,t,r){var u=e("./_global"),a=e("./_task").set,c=u.MutationObserver||u.WebKitMutationObserver,l=u.process,f=u.Promise,p="process"==e("./_cof")(l);t.exports=function(){function e(){var e,t;for(p&&(e=l.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(e){throw r?o():n=void 0,e}}n=void 0,e&&e.enter()}var r,n,o;if(p)o=function(){l.nextTick(e)};else if(!c||u.navigator&&u.navigator.standalone)if(f&&f.resolve){var t=f.resolve(void 0);o=function(){t.then(e)}}else o=function(){a.call(u,e)};else{var i=!0,s=document.createTextNode("");new c(e).observe(s,{characterData:!0}),o=function(){s.data=i=!i}}return function(e){var t={fn:e,next:void 0};n&&(n.next=t),r||(r=t,o()),n=t}}},{"./_cof":132,"./_global":154,"./_task":220}],180:[function(e,t,r){"use strict";var o=e("./_a-function");function n(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=o(r),this.reject=o(n)}t.exports.f=function(e){return new n(e)}},{"./_a-function":117}],181:[function(e,t,r){"use strict";var p=e("./_descriptors"),h=e("./_object-keys"),d=e("./_object-gops"),b=e("./_object-pie"),v=e("./_to-object"),y=e("./_iobject"),o=Object.assign;t.exports=!o||e("./_fails")(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=o({},e)[r]||Object.keys(o({},t)).join("")!=n})?function(e,t){for(var r=v(e),n=arguments.length,o=1,i=d.f,s=b.f;o<n;)for(var u,a=y(arguments[o++]),c=i?h(a).concat(i(a)):h(a),l=c.length,f=0;f<l;)u=c[f++],p&&!s.call(a,u)||(r[u]=a[u]);return r}:o},{"./_descriptors":142,"./_fails":148,"./_iobject":161,"./_object-gops":188,"./_object-keys":191,"./_object-pie":192,"./_to-object":226}],182:[function(n,e,t){function o(){}var i=n("./_an-object"),s=n("./_object-dps"),u=n("./_enum-bug-keys"),a=n("./_shared-key")("IE_PROTO"),c="prototype",l=function(){var e,t=n("./_dom-create")("iframe"),r=u.length;for(t.style.display="none",n("./_html").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l[c][u[r]];return l()};e.exports=Object.create||function(e,t){var r;return null!==e?(o[c]=i(e),r=new o,o[c]=null,r[a]=e):r=l(),void 0===t?r:s(r,t)}},{"./_an-object":122,"./_dom-create":143,"./_enum-bug-keys":144,"./_html":157,"./_object-dps":184,"./_shared-key":209}],183:[function(e,t,r){arguments[4][113][0].apply(r,arguments)},{"./_an-object":122,"./_descriptors":142,"./_ie8-dom-define":158,"./_to-primitive":227,dup:113}],184:[function(e,t,r){var s=e("./_object-dp"),u=e("./_an-object"),a=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){u(e);for(var r,n=a(t),o=n.length,i=0;i<o;)s.f(e,r=n[i++],t[r]);return e}},{"./_an-object":122,"./_descriptors":142,"./_object-dp":183,"./_object-keys":191}],185:[function(e,t,r){var n=e("./_object-pie"),o=e("./_property-desc"),i=e("./_to-iobject"),s=e("./_to-primitive"),u=e("./_has"),a=e("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;r.f=e("./_descriptors")?c:function(e,t){if(e=i(e),t=s(t,!0),a)try{return c(e,t)}catch(e){}if(u(e,t))return o(!n.f.call(e,t),e[t])}},{"./_descriptors":142,"./_has":155,"./_ie8-dom-define":158,"./_object-pie":192,"./_property-desc":200,"./_to-iobject":224,"./_to-primitive":227}],186:[function(e,t,r){var n=e("./_to-iobject"),o=e("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return s&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(n(e))}},{"./_object-gopn":187,"./_to-iobject":224}],187:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},{"./_enum-bug-keys":144,"./_object-keys-internal":190}],188:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],189:[function(e,t,r){var n=e("./_has"),o=e("./_to-object"),i=e("./_shared-key")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},{"./_has":155,"./_shared-key":209,"./_to-object":226}],190:[function(e,t,r){var s=e("./_has"),u=e("./_to-iobject"),a=e("./_array-includes")(!1),c=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var r,n=u(e),o=0,i=[];for(r in n)r!=c&&s(n,r)&&i.push(r);for(;t.length>o;)s(n,r=t[o++])&&(~a(i,r)||i.push(r));return i}},{"./_array-includes":125,"./_has":155,"./_shared-key":209,"./_to-iobject":224}],191:[function(e,t,r){var n=e("./_object-keys-internal"),o=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,o)}},{"./_enum-bug-keys":144,"./_object-keys-internal":190}],192:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],193:[function(e,t,r){var o=e("./_export"),i=e("./_core"),s=e("./_fails");t.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],n={};n[e]=t(r),o(o.S+o.F*s(function(){r(1)}),"Object",n)}},{"./_core":136,"./_export":146,"./_fails":148}],194:[function(e,t,r){var a=e("./_descriptors"),c=e("./_object-keys"),l=e("./_to-iobject"),f=e("./_object-pie").f;t.exports=function(u){return function(e){for(var t,r=l(e),n=c(r),o=n.length,i=0,s=[];i<o;)t=n[i++],a&&!f.call(r,t)||s.push(u?[t,r[t]]:r[t]);return s}}},{"./_descriptors":142,"./_object-keys":191,"./_object-pie":192,"./_to-iobject":224}],195:[function(e,t,r){var n=e("./_object-gopn"),o=e("./_object-gops"),i=e("./_an-object"),s=e("./_global").Reflect;t.exports=s&&s.ownKeys||function(e){var t=n.f(i(e)),r=o.f;return r?t.concat(r(e)):t}},{"./_an-object":122,"./_global":154,"./_object-gopn":187,"./_object-gops":188}],196:[function(e,t,r){var n=e("./_global").parseFloat,o=e("./_string-trim").trim;t.exports=1/n(e("./_string-ws")+"-0")!=-1/0?function(e){var t=o(String(e),3),r=n(t);return 0===r&&"-"==t.charAt(0)?-0:r}:n},{"./_global":154,"./_string-trim":218,"./_string-ws":219}],197:[function(e,t,r){var n=e("./_global").parseInt,o=e("./_string-trim").trim,i=e("./_string-ws"),s=/^[-+]?0[xX]/;t.exports=8!==n(i+"08")||22!==n(i+"0x16")?function(e,t){var r=o(String(e),3);return n(r,t>>>0||(s.test(r)?16:10))}:n},{"./_global":154,"./_string-trim":218,"./_string-ws":219}],198:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],199:[function(e,t,r){var n=e("./_an-object"),o=e("./_is-object"),i=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":122,"./_is-object":165,"./_new-promise-capability":180}],200:[function(e,t,r){arguments[4][114][0].apply(r,arguments)},{dup:114}],201:[function(e,t,r){var o=e("./_redefine");t.exports=function(e,t,r){for(var n in t)o(e,n,t[n],r);return e}},{"./_redefine":202}],202:[function(e,t,r){var i=e("./_global"),s=e("./_hide"),u=e("./_has"),a=e("./_uid")("src"),n=e("./_function-to-string"),c=(""+n).split("toString");e("./_core").inspectSource=function(e){return n.call(e)},(t.exports=function(e,t,r,n){var o="function"==typeof r;o&&(u(r,"name")||s(r,"name",t)),e[t]!==r&&(o&&(u(r,a)||s(r,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=r:n?e[t]?e[t]=r:s(e,t,r):(delete e[t],s(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||n.call(this)})},{"./_core":136,"./_function-to-string":153,"./_global":154,"./_has":155,"./_hide":156,"./_uid":231}],203:[function(e,t,r){"use strict";var o=e("./_classof"),i=RegExp.prototype.exec;t.exports=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},{"./_classof":131}],204:[function(e,t,r){"use strict";var n,o,i=e("./_flags"),s=RegExp.prototype.exec,u=String.prototype.replace,a=s,c="lastIndex",l=(n=/a/,o=/b*/g,s.call(n,"a"),s.call(o,"a"),0!==n[c]||0!==o[c]),f=void 0!==/()??/.exec("")[1];(l||f)&&(a=function(e){var t,r,n,o;return f&&(r=new RegExp("^"+this.source+"$(?!\\s)",i.call(this))),l&&(t=this[c]),n=s.call(this,e),l&&n&&(this[c]=this.global?n.index+n[0].length:t),f&&n&&1<n.length&&u.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n}),t.exports=a},{"./_flags":150}],205:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],206:[function(t,e,r){function o(e,t){if(i(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")}var n=t("./_is-object"),i=t("./_an-object");e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(e){r=!0}return function(e,t){return o(e,t),r?e.__proto__=t:n(e,t),e}}({},!1):void 0),check:o}},{"./_an-object":122,"./_ctx":138,"./_is-object":165,"./_object-gopd":185}],207:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_object-dp"),i=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t=n[e];i&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_descriptors":142,"./_global":154,"./_object-dp":183,"./_wks":236}],208:[function(e,t,r){var n=e("./_object-dp").f,o=e("./_has"),i=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},{"./_has":155,"./_object-dp":183,"./_wks":236}],209:[function(e,t,r){var n=e("./_shared")("keys"),o=e("./_uid");t.exports=function(e){return n[e]||(n[e]=o(e))}},{"./_shared":210,"./_uid":231}],210:[function(e,t,r){var n=e("./_core"),o=e("./_global"),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":136,"./_global":154,"./_library":173}],211:[function(e,t,r){var o=e("./_an-object"),i=e("./_a-function"),s=e("./_wks")("species");t.exports=function(e,t){var r,n=o(e).constructor;return void 0===n||null==(r=o(n)[s])?t:i(r)}},{"./_a-function":117,"./_an-object":122,"./_wks":236}],212:[function(e,t,r){"use strict";var n=e("./_fails");t.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},{"./_fails":148}],213:[function(e,t,r){var a=e("./_to-integer"),c=e("./_defined");t.exports=function(u){return function(e,t){var r,n,o=String(c(e)),i=a(t),s=o.length;return i<0||s<=i?u?"":void 0:(r=o.charCodeAt(i))<55296||56319<r||i+1===s||(n=o.charCodeAt(i+1))<56320||57343<n?u?o.charAt(i):r:u?o.slice(i,i+2):n-56320+(r-55296<<10)+65536}}},{"./_defined":141,"./_to-integer":223}],214:[function(e,t,r){var n=e("./_is-regexp"),o=e("./_defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(e))}},{"./_defined":141,"./_is-regexp":166}],215:[function(e,t,r){function n(e,t,r,n){var o=String(s(e)),i="<"+t;return""!==r&&(i+=" "+r+'="'+String(n).replace(u,"&quot;")+'"'),i+">"+o+"</"+t+">"}var o=e("./_export"),i=e("./_fails"),s=e("./_defined"),u=/"/g;t.exports=function(t,e){var r={};r[t]=e(n),o(o.P+o.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",r)}},{"./_defined":141,"./_export":146,"./_fails":148}],216:[function(e,t,r){var l=e("./_to-length"),f=e("./_string-repeat"),p=e("./_defined");t.exports=function(e,t,r,n){var o=String(p(e)),i=o.length,s=void 0===r?" ":String(r),u=l(t);if(u<=i||""==s)return o;var a=u-i,c=f.call(s,Math.ceil(a/s.length));return c.length>a&&(c=c.slice(0,a)),n?c+o:o+c}},{"./_defined":141,"./_string-repeat":217,"./_to-length":225}],217:[function(e,t,r){"use strict";var o=e("./_to-integer"),i=e("./_defined");t.exports=function(e){var t=String(i(this)),r="",n=o(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;0<n;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}},{"./_defined":141,"./_to-integer":223}],218:[function(e,t,r){function n(e,t,r){var n={},o=u(function(){return!!a[e]()||"​"!="​"[e]()}),i=n[e]=o?t(f):a[e];r&&(n[r]=i),s(s.P+s.F*o,"String",n)}var s=e("./_export"),o=e("./_defined"),u=e("./_fails"),a=e("./_string-ws"),i="["+a+"]",c=RegExp("^"+i+i+"*"),l=RegExp(i+i+"*$"),f=n.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};t.exports=n},{"./_defined":141,"./_export":146,"./_fails":148,"./_string-ws":219}],219:[function(e,t,r){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],220:[function(e,t,r){function n(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}}function o(e){n.call(e.data)}var i,s,u,a=e("./_ctx"),c=e("./_invoke"),l=e("./_html"),f=e("./_dom-create"),p=e("./_global"),h=p.process,d=p.setImmediate,b=p.clearImmediate,v=p.MessageChannel,y=p.Dispatch,_=0,m={},g="onreadystatechange";d&&b||(d=function(e){for(var t=[],r=1;r<arguments.length;)t.push(arguments[r++]);return m[++_]=function(){c("function"==typeof e?e:Function(e),t)},i(_),_},b=function(e){delete m[e]},"process"==e("./_cof")(h)?i=function(e){h.nextTick(a(n,e,1))}:y&&y.now?i=function(e){y.now(a(n,e,1))}:v?(u=(s=new v).port2,s.port1.onmessage=o,i=a(u.postMessage,u,1)):p.addEventListener&&"function"==typeof postMessage&&!p.importScripts?(i=function(e){p.postMessage(e+"","*")},p.addEventListener("message",o,!1)):i=g in f("script")?function(e){l.appendChild(f("script"))[g]=function(){l.removeChild(this),n.call(e)}}:function(e){setTimeout(a(n,e,1),0)}),t.exports={set:d,clear:b}},{"./_cof":132,"./_ctx":138,"./_dom-create":143,"./_global":154,"./_html":157,"./_invoke":160}],221:[function(e,t,r){var n=e("./_to-integer"),o=Math.max,i=Math.min;t.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},{"./_to-integer":223}],222:[function(e,t,r){var n=e("./_to-integer"),o=e("./_to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":223,"./_to-length":225}],223:[function(e,t,r){var n=Math.ceil,o=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(0<e?o:n)(e)}},{}],224:[function(e,t,r){var n=e("./_iobject"),o=e("./_defined");t.exports=function(e){return n(o(e))}},{"./_defined":141,"./_iobject":161}],225:[function(e,t,r){var n=e("./_to-integer"),o=Math.min;t.exports=function(e){return 0<e?o(n(e),9007199254740991):0}},{"./_to-integer":223}],226:[function(e,t,r){var n=e("./_defined");t.exports=function(e){return Object(n(e))}},{"./_defined":141}],227:[function(e,t,r){arguments[4][115][0].apply(r,arguments)},{"./_is-object":165,dup:115}],228:[function(e,t,r){"use strict";if(e("./_descriptors")){var y=e("./_library"),_=e("./_global"),m=e("./_fails"),g=e("./_export"),w=e("./_typed"),n=e("./_typed-buffer"),d=e("./_ctx"),x=e("./_an-instance"),o=e("./_property-desc"),O=e("./_hide"),i=e("./_redefine-all"),s=e("./_to-integer"),j=e("./_to-length"),S=e("./_to-index"),u=e("./_to-absolute-index"),a=e("./_to-primitive"),c=e("./_has"),E=e("./_classof"),k=e("./_is-object"),b=e("./_to-object"),v=e("./_is-array-iter"),P=e("./_object-create"),A=e("./_object-gpo"),C=e("./_object-gopn").f,R=e("./core.get-iterator-method"),l=e("./_uid"),f=e("./_wks"),p=e("./_array-methods"),h=e("./_array-includes"),M=e("./_species-constructor"),I=e("./es6.array.iterator"),D=e("./_iterators"),T=e("./_iter-detect"),N=e("./_set-species"),B=e("./_array-fill"),L=e("./_array-copy-within"),q=e("./_object-dp"),$=e("./_object-gopd"),F=q.f,U=$.f,V=_.RangeError,z=_.TypeError,W=_.Uint8Array,J="ArrayBuffer",H="Shared"+J,Q="BYTES_PER_ELEMENT",K="prototype",G=Array[K],Y=n.ArrayBuffer,X=n.DataView,Z=p(0),ee=p(2),te=p(3),re=p(4),ne=p(5),oe=p(6),ie=h(!0),se=h(!1),ue=I.values,ae=I.keys,ce=I.entries,le=G.lastIndexOf,fe=G.reduce,pe=G.reduceRight,he=G.join,de=G.sort,be=G.slice,ve=G.toString,ye=G.toLocaleString,_e=f("iterator"),me=f("toStringTag"),ge=l("typed_constructor"),we=l("def_constructor"),xe=w.CONSTR,Oe=w.TYPED,je=w.VIEW,Se="Wrong length!",Ee=p(1,function(e,t){return Re(M(e,e[we]),t)}),ke=m(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Pe=!!W&&!!W[K].set&&m(function(){new W(1).set({})}),Ae=function(e,t){var r=s(e);if(r<0||r%t)throw V("Wrong offset!");return r},Ce=function(e){if(k(e)&&Oe in e)return e;throw z(e+" is not a typed array!")},Re=function(e,t){if(!(k(e)&&ge in e))throw z("It is not a typed array constructor!");return new e(t)},Me=function(e,t){return Ie(M(e,e[we]),t)},Ie=function(e,t){for(var r=0,n=t.length,o=Re(e,n);r<n;)o[r]=t[r++];return o},De=function(e,t,r){F(e,t,{get:function(){return this._d[r]}})},Te=function(e,t,r){var n,o,i,s,u,a,c=b(e),l=arguments.length,f=1<l?t:void 0,p=void 0!==f,h=R(c);if(null!=h&&!v(h)){for(a=h.call(c),i=[],n=0;!(u=a.next()).done;n++)i.push(u.value);c=i}for(p&&2<l&&(f=d(f,r,2)),n=0,o=j(c.length),s=Re(this,o);n<o;n++)s[n]=p?f(c[n],n):c[n];return s},Ne=function(){for(var e=0,t=arguments.length,r=Re(this,t);e<t;)r[e]=arguments[e++];return r},Be=!!W&&m(function(){ye.call(new W(1))}),Le=function(){return ye.apply(Be?be.call(Ce(this)):Ce(this),arguments)},qe={copyWithin:function(e,t,r){return L.call(Ce(this),e,t,2<arguments.length?r:void 0)},every:function(e,t){return re(Ce(this),e,1<arguments.length?t:void 0)},fill:function(e){return B.apply(Ce(this),arguments)},filter:function(e,t){return Me(this,ee(Ce(this),e,1<arguments.length?t:void 0))},find:function(e,t){return ne(Ce(this),e,1<arguments.length?t:void 0)},findIndex:function(e,t){return oe(Ce(this),e,1<arguments.length?t:void 0)},forEach:function(e,t){Z(Ce(this),e,1<arguments.length?t:void 0)},indexOf:function(e,t){return se(Ce(this),e,1<arguments.length?t:void 0)},includes:function(e,t){return ie(Ce(this),e,1<arguments.length?t:void 0)},join:function(e){return he.apply(Ce(this),arguments)},lastIndexOf:function(e){return le.apply(Ce(this),arguments)},map:function(e,t){return Ee(Ce(this),e,1<arguments.length?t:void 0)},reduce:function(e){return fe.apply(Ce(this),arguments)},reduceRight:function(e){return pe.apply(Ce(this),arguments)},reverse:function(){for(var e,t=Ce(this).length,r=Math.floor(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this},some:function(e,t){return te(Ce(this),e,1<arguments.length?t:void 0)},sort:function(e){return de.call(Ce(this),e)},subarray:function(e,t){var r=Ce(this),n=r.length,o=u(e,n);return new(M(r,r[we]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,j((void 0===t?n:u(t,n))-o))}},$e=function(e,t){return Me(this,be.call(Ce(this),e,t))},Fe=function(e,t){Ce(this);var r=Ae(t,1),n=this.length,o=b(e),i=j(o.length),s=0;if(n<i+r)throw V(Se);for(;s<i;)this[r+s]=o[s++]},Ue={entries:function(){return ce.call(Ce(this))},keys:function(){return ae.call(Ce(this))},values:function(){return ue.call(Ce(this))}},Ve=function(e,t){return k(e)&&e[Oe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},ze=function(e,t){return Ve(e,t=a(t,!0))?o(2,e[t]):U(e,t)},We=function(e,t,r){return!(Ve(e,t=a(t,!0))&&k(r)&&c(r,"value"))||c(r,"get")||c(r,"set")||r.configurable||c(r,"writable")&&!r.writable||c(r,"enumerable")&&!r.enumerable?F(e,t,r):(e[t]=r.value,e)};xe||($.f=ze,q.f=We),g(g.S+g.F*!xe,"Object",{getOwnPropertyDescriptor:ze,defineProperty:We}),m(function(){ve.call({})})&&(ve=ye=function(){return he.call(this)});var Je=i({},qe);i(Je,Ue),O(Je,_e,Ue.values),i(Je,{slice:$e,set:Fe,constructor:function(){},toString:ve,toLocaleString:Le}),De(Je,"buffer","b"),De(Je,"byteOffset","o"),De(Je,"byteLength","l"),De(Je,"length","e"),F(Je,me,{get:function(){return this[Oe]}}),t.exports=function(e,f,t,i){function p(e,o){F(e,o,{get:function(){return e=o,(t=this._d).v[r](e*f+t.o,ke);var e,t},set:function(e){return t=o,r=e,n=this._d,i&&(r=(r=Math.round(r))<0?0:255<r?255:255&r),void n.v[s](t*f+n.o,r,ke);var t,r,n},enumerable:!0})}var h=e+((i=!!i)?"Clamped":"")+"Array",r="get"+e,s="set"+e,d=_[h],u=d||{},n=d&&A(d),o=!d||!w.ABV,a={},c=d&&d[K];o?(d=t(function(e,t,r,n){x(e,d,h,"_d");var o,i,s,u,a=0,c=0;if(k(t)){if(!(t instanceof Y||(u=E(t))==J||u==H))return Oe in t?Ie(d,t):Te.call(d,t);o=t,c=Ae(r,f);var l=t.byteLength;if(void 0===n){if(l%f)throw V(Se);if((i=l-c)<0)throw V(Se)}else if(l<(i=j(n)*f)+c)throw V(Se);s=i/f}else s=S(t),o=new Y(i=s*f);for(O(e,"_d",{b:o,o:c,l:i,e:s,v:new X(o)});a<s;)p(e,a++)}),c=d[K]=P(Je),O(c,"constructor",d)):m(function(){d(1)})&&m(function(){new d(-1)})&&T(function(e){new d,new d(null),new d(1.5),new d(e)},!0)||(d=t(function(e,t,r,n){var o;return x(e,d,h),k(t)?t instanceof Y||(o=E(t))==J||o==H?void 0!==n?new u(t,Ae(r,f),n):void 0!==r?new u(t,Ae(r,f)):new u(t):Oe in t?Ie(d,t):Te.call(d,t):new u(S(t))}),Z(n!==Function.prototype?C(u).concat(C(n)):C(u),function(e){e in d||O(d,e,u[e])}),d[K]=c,y||(c.constructor=d));var l=c[_e],b=!!l&&("values"==l.name||null==l.name),v=Ue.values;O(d,ge,!0),O(c,Oe,h),O(c,je,!0),O(c,we,d),(i?new d(1)[me]==h:me in c)||F(c,me,{get:function(){return h}}),a[h]=d,g(g.G+g.W+g.F*(d!=u),a),g(g.S,h,{BYTES_PER_ELEMENT:f}),g(g.S+g.F*m(function(){u.of.call(d,1)}),h,{from:Te,of:Ne}),Q in c||O(c,Q,f),g(g.P,h,qe),N(h),g(g.P+g.F*Pe,h,{set:Fe}),g(g.P+g.F*!b,h,Ue),y||c.toString==ve||(c.toString=ve),g(g.P+g.F*m(function(){new d(1).slice()}),h,{slice:$e}),g(g.P+g.F*(m(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!m(function(){c.toLocaleString.call([1,2])})),h,{toLocaleString:Le}),D[h]=b?l:v,y||b||O(c,_e,v)}}else t.exports=function(){}},{"./_an-instance":121,"./_array-copy-within":123,"./_array-fill":124,"./_array-includes":125,"./_array-methods":126,"./_classof":131,"./_ctx":138,"./_descriptors":142,"./_export":146,"./_fails":148,"./_global":154,"./_has":155,"./_hide":156,"./_is-array-iter":162,"./_is-object":165,"./_iter-detect":170,"./_iterators":172,"./_library":173,"./_object-create":182,"./_object-dp":183,"./_object-gopd":185,"./_object-gopn":187,"./_object-gpo":189,"./_property-desc":200,"./_redefine-all":201,"./_set-species":207,"./_species-constructor":211,"./_to-absolute-index":221,"./_to-index":222,"./_to-integer":223,"./_to-length":225,"./_to-object":226,"./_to-primitive":227,"./_typed":230,"./_typed-buffer":229,"./_uid":231,"./_wks":236,"./core.get-iterator-method":237,"./es6.array.iterator":248}],229:[function(e,t,r){"use strict";var n=e("./_global"),o=e("./_descriptors"),i=e("./_library"),s=e("./_typed"),u=e("./_hide"),a=e("./_redefine-all"),c=e("./_fails"),l=e("./_an-instance"),f=e("./_to-integer"),p=e("./_to-length"),h=e("./_to-index"),d=e("./_object-gopn").f,b=e("./_object-dp").f,v=e("./_array-fill"),y=e("./_set-to-string-tag"),_="ArrayBuffer",m="DataView",g="prototype",w="Wrong index!",x=n[_],O=n[m],j=n.Math,S=n.RangeError,E=n.Infinity,k=x,P=j.abs,A=j.pow,C=j.floor,R=j.log,M=j.LN2,I="byteLength",D="byteOffset",T=o?"_b":"buffer",N=o?"_l":I,B=o?"_o":D;function L(e,t,r){var n,o,i,s=new Array(r),u=8*r-t-1,a=(1<<u)-1,c=a>>1,l=23===t?A(2,-24)-A(2,-77):0,f=0,p=e<0||0===e&&1/e<0?1:0;for((e=P(e))!=e||e===E?(o=e!=e?1:0,n=a):(n=C(R(e)/M),e*(i=A(2,-n))<1&&(n--,i*=2),2<=(e+=1<=n+c?l/i:l*A(2,1-c))*i&&(n++,i/=2),a<=n+c?(o=0,n=a):1<=n+c?(o=(e*i-1)*A(2,t),n+=c):(o=e*A(2,c-1)*A(2,t),n=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(n=n<<t|o,u+=t;0<u;s[f++]=255&n,n/=256,u-=8);return s[--f]|=128*p,s}function q(e,t,r){var n,o=8*r-t-1,i=(1<<o)-1,s=i>>1,u=o-7,a=r-1,c=e[a--],l=127&c;for(c>>=7;0<u;l=256*l+e[a],a--,u-=8);for(n=l&(1<<-u)-1,l>>=-u,u+=t;0<u;n=256*n+e[a],a--,u-=8);if(0===l)l=1-s;else{if(l===i)return n?NaN:c?-E:E;n+=A(2,t),l-=s}return(c?-1:1)*n*A(2,l-t)}function $(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function V(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function z(e){return L(e,52,8)}function W(e){return L(e,23,4)}function J(e,t,r){b(e[g],t,{get:function(){return this[r]}})}function H(e,t,r,n){var o=h(+r);if(o+t>e[N])throw S(w);var i=e[T]._b,s=o+e[B],u=i.slice(s,s+t);return n?u:u.reverse()}function Q(e,t,r,n,o,i){var s=h(+r);if(s+t>e[N])throw S(w);for(var u=e[T]._b,a=s+e[B],c=n(+o),l=0;l<t;l++)u[a+l]=c[i?l:t-l-1]}if(s.ABV){if(!c(function(){x(1)})||!c(function(){new x(-1)})||c(function(){return new x,new x(1.5),new x(NaN),x.name!=_})){for(var K,G=(x=function(e){return l(this,x),new k(h(e))})[g]=k[g],Y=d(k),X=0;Y.length>X;)(K=Y[X++])in x||u(x,K,k[K]);i||(G.constructor=x)}var Z=new O(new x(2)),ee=O[g].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||a(O[g],{setInt8:function(e,t){ee.call(this,e,t<<24>>24)},setUint8:function(e,t){ee.call(this,e,t<<24>>24)}},!0)}else x=function(e){l(this,x,_);var t=h(e);this._b=v.call(new Array(t),0),this[N]=t},O=function(e,t,r){l(this,O,m),l(e,x,m);var n=e[N],o=f(t);if(o<0||n<o)throw S("Wrong offset!");if(n<o+(r=void 0===r?n-o:p(r)))throw S("Wrong length!");this[T]=e,this[B]=o,this[N]=r},o&&(J(x,I,"_l"),J(O,"buffer","_b"),J(O,I,"_l"),J(O,D,"_o")),a(O[g],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e,t){var r=H(this,2,e,t);return(r[1]<<8|r[0])<<16>>16},getUint16:function(e,t){var r=H(this,2,e,t);return r[1]<<8|r[0]},getInt32:function(e,t){return $(H(this,4,e,t))},getUint32:function(e,t){return $(H(this,4,e,t))>>>0},getFloat32:function(e,t){return q(H(this,4,e,t),23,4)},getFloat64:function(e,t){return q(H(this,8,e,t),52,8)},setInt8:function(e,t){Q(this,1,e,F,t)},setUint8:function(e,t){Q(this,1,e,F,t)},setInt16:function(e,t,r){Q(this,2,e,U,t,r)},setUint16:function(e,t,r){Q(this,2,e,U,t,r)},setInt32:function(e,t,r){Q(this,4,e,V,t,r)},setUint32:function(e,t,r){Q(this,4,e,V,t,r)},setFloat32:function(e,t,r){Q(this,4,e,W,t,r)},setFloat64:function(e,t,r){Q(this,8,e,z,t,r)}});y(x,_),y(O,m),u(O[g],s.VIEW,!0),r[_]=x,r[m]=O},{"./_an-instance":121,"./_array-fill":124,"./_descriptors":142,"./_fails":148,"./_global":154,"./_hide":156,"./_library":173,"./_object-dp":183,"./_object-gopn":187,"./_redefine-all":201,"./_set-to-string-tag":208,"./_to-index":222,"./_to-integer":223,"./_to-length":225,"./_typed":230}],230:[function(e,t,r){for(var n,o=e("./_global"),i=e("./_hide"),s=e("./_uid"),u=s("typed_array"),a=s("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,f=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(n=o[p[f++]])?(i(n.prototype,u,!0),i(n.prototype,a,!0)):l=!1;t.exports={ABV:c,CONSTR:l,TYPED:u,VIEW:a}},{"./_global":154,"./_hide":156,"./_uid":231}],231:[function(e,t,r){var n=0,o=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},{}],232:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":154}],233:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},{"./_is-object":165}],234:[function(e,t,r){var n=e("./_global"),o=e("./_core"),i=e("./_library"),s=e("./_wks-ext"),u=e("./_object-dp").f;t.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:s.f(e)})}},{"./_core":136,"./_global":154,"./_library":173,"./_object-dp":183,"./_wks-ext":235}],235:[function(e,t,r){r.f=e("./_wks")},{"./_wks":236}],236:[function(e,t,r){var n=e("./_shared")("wks"),o=e("./_uid"),i=e("./_global").Symbol,s="function"==typeof i;(t.exports=function(e){return n[e]||(n[e]=s&&i[e]||(s?i:o)("Symbol."+e))}).store=n},{"./_global":154,"./_shared":210,"./_uid":231}],237:[function(e,t,r){var n=e("./_classof"),o=e("./_wks")("iterator"),i=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},{"./_classof":131,"./_core":136,"./_iterators":172,"./_wks":236}],238:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{copyWithin:e("./_array-copy-within")}),e("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":119,"./_array-copy-within":123,"./_export":146}],239:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(4);n(n.P+n.F*!e("./_strict-method")([].every,!0),"Array",{every:function(e,t){return o(this,e,t)}})},{"./_array-methods":126,"./_export":146,"./_strict-method":212}],240:[function(e,t,r){var n=e("./_export");n(n.P,"Array",{fill:e("./_array-fill")}),e("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":119,"./_array-fill":124,"./_export":146}],241:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(2);n(n.P+n.F*!e("./_strict-method")([].filter,!0),"Array",{filter:function(e,t){return o(this,e,t)}})},{"./_array-methods":126,"./_export":146,"./_strict-method":212}],242:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(6),i="findIndex",s=!0;i in[]&&Array(1)[i](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),e("./_add-to-unscopables")(i)},{"./_add-to-unscopables":119,"./_array-methods":126,"./_export":146}],243:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),n(n.P+n.F*i,"Array",{find:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),e("./_add-to-unscopables")("find")},{"./_add-to-unscopables":119,"./_array-methods":126,"./_export":146}],244:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(0),i=e("./_strict-method")([].forEach,!0);n(n.P+n.F*!i,"Array",{forEach:function(e,t){return o(this,e,t)}})},{"./_array-methods":126,"./_export":146,"./_strict-method":212}],245:[function(e,t,r){"use strict";var d=e("./_ctx"),n=e("./_export"),b=e("./_to-object"),v=e("./_iter-call"),y=e("./_is-array-iter"),_=e("./_to-length"),m=e("./_create-property"),g=e("./core.get-iterator-method");n(n.S+n.F*!e("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e,t,r){var n,o,i,s,u=b(e),a="function"==typeof this?this:Array,c=arguments.length,l=1<c?t:void 0,f=void 0!==l,p=0,h=g(u);if(f&&(l=d(l,2<c?r:void 0,2)),null==h||a==Array&&y(h))for(o=new a(n=_(u.length));p<n;p++)m(o,p,f?l(u[p],p):u[p]);else for(s=h.call(u),o=new a;!(i=s.next()).done;p++)m(o,p,f?v(s,l,[i.value,p],!0):i.value);return o.length=p,o}})},{"./_create-property":137,"./_ctx":138,"./_export":146,"./_is-array-iter":162,"./_iter-call":167,"./_iter-detect":170,"./_to-length":225,"./_to-object":226,"./core.get-iterator-method":237}],246:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-includes")(!1),i=[].indexOf,s=!!i&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!e("./_strict-method")(i)),"Array",{indexOf:function(e,t){return s?i.apply(this,arguments)||0:o(this,e,t)}})},{"./_array-includes":125,"./_export":146,"./_strict-method":212}],247:[function(e,t,r){var n=e("./_export");n(n.S,"Array",{isArray:e("./_is-array")})},{"./_export":146,"./_is-array":163}],248:[function(e,t,r){"use strict";var n=e("./_add-to-unscopables"),o=e("./_iter-step"),i=e("./_iterators"),s=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":119,"./_iter-define":169,"./_iter-step":171,"./_iterators":172,"./_to-iobject":224}],249:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-iobject"),i=[].join;n(n.P+n.F*(e("./_iobject")!=Object||!e("./_strict-method")(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},{"./_export":146,"./_iobject":161,"./_strict-method":212,"./_to-iobject":224}],250:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-iobject"),s=e("./_to-integer"),u=e("./_to-length"),a=[].lastIndexOf,c=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(c||!e("./_strict-method")(a)),"Array",{lastIndexOf:function(e,t){if(c)return a.apply(this,arguments)||0;var r=i(this),n=u(r.length),o=n-1;for(1<arguments.length&&(o=Math.min(o,s(t))),o<0&&(o=n+o);0<=o;o--)if(o in r&&r[o]===e)return o||0;return-1}})},{"./_export":146,"./_strict-method":212,"./_to-integer":223,"./_to-iobject":224,"./_to-length":225}],251:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(1);n(n.P+n.F*!e("./_strict-method")([].map,!0),"Array",{map:function(e,t){return o(this,e,t)}})},{"./_array-methods":126,"./_export":146,"./_strict-method":212}],252:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_create-property");n(n.S+n.F*e("./_fails")(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);e<t;)o(r,e,arguments[e++]);return r.length=t,r}})},{"./_create-property":137,"./_export":146,"./_fails":148}],253:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(e,t){return o(this,e,arguments.length,t,!0)}})},{"./_array-reduce":127,"./_export":146,"./_strict-method":212}],254:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-reduce");n(n.P+n.F*!e("./_strict-method")([].reduce,!0),"Array",{reduce:function(e,t){return o(this,e,arguments.length,t,!1)}})},{"./_array-reduce":127,"./_export":146,"./_strict-method":212}],255:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_html"),c=e("./_cof"),l=e("./_to-absolute-index"),f=e("./_to-length"),p=[].slice;n(n.P+n.F*e("./_fails")(function(){o&&p.call(o)}),"Array",{slice:function(e,t){var r=f(this.length),n=c(this);if(t=void 0===t?r:t,"Array"==n)return p.call(this,e,t);for(var o=l(e,r),i=l(t,r),s=f(i-o),u=new Array(s),a=0;a<s;a++)u[a]="String"==n?this.charAt(o+a):this[o+a];return u}})},{"./_cof":132,"./_export":146,"./_fails":148,"./_html":157,"./_to-absolute-index":221,"./_to-length":225}],256:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-methods")(3);n(n.P+n.F*!e("./_strict-method")([].some,!0),"Array",{some:function(e,t){return o(this,e,t)}})},{"./_array-methods":126,"./_export":146,"./_strict-method":212}],257:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_a-function"),i=e("./_to-object"),s=e("./_fails"),u=[].sort,a=[1,2,3];n(n.P+n.F*(s(function(){a.sort(void 0)})||!s(function(){a.sort(null)})||!e("./_strict-method")(u)),"Array",{sort:function(e){return void 0===e?u.call(i(this)):u.call(i(this),o(e))}})},{"./_a-function":117,"./_export":146,"./_fails":148,"./_strict-method":212,"./_to-object":226}],258:[function(e,t,r){e("./_set-species")("Array")},{"./_set-species":207}],259:[function(e,t,r){var n=e("./_export");n(n.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":146}],260:[function(e,t,r){var n=e("./_export"),o=e("./_date-to-iso-string");n(n.P+n.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},{"./_date-to-iso-string":139,"./_export":146}],261:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_to-object"),i=e("./_to-primitive");n(n.P+n.F*e("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(){var e=o(this),t=i(e);return"number"!=typeof t||isFinite(t)?e.toISOString():null}})},{"./_export":146,"./_fails":148,"./_to-object":226,"./_to-primitive":227}],262:[function(e,t,r){var n=e("./_wks")("toPrimitive"),o=Date.prototype;n in o||e("./_hide")(o,n,e("./_date-to-primitive"))},{"./_date-to-primitive":140,"./_hide":156,"./_wks":236}],263:[function(e,t,r){var n=Date.prototype,o="Invalid Date",i=n.toString,s=n.getTime;new Date(NaN)+""!=o&&e("./_redefine")(n,"toString",function(){var e=s.call(this);return e==e?i.call(this):o})},{"./_redefine":202}],264:[function(e,t,r){var n=e("./_export");n(n.P,"Function",{bind:e("./_bind")})},{"./_bind":130,"./_export":146}],265:[function(e,t,r){"use strict";var n=e("./_is-object"),o=e("./_object-gpo"),i=e("./_wks")("hasInstance"),s=Function.prototype;i in s||e("./_object-dp").f(s,i,{value:function(e){if("function"!=typeof this||!n(e))return!1;if(!n(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},{"./_is-object":165,"./_object-dp":183,"./_object-gpo":189,"./_wks":236}],266:[function(e,t,r){var n=e("./_object-dp").f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||e("./_descriptors")&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},{"./_descriptors":142,"./_object-dp":183}],267:[function(e,t,r){"use strict";var n=e("./_collection-strong"),o=e("./_validate-collection");t.exports=e("./_collection")("Map",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{get:function(e){var t=n.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(o(this,"Map"),0===e?0:e,t)}},n,!0)},{"./_collection":135,"./_collection-strong":133,"./_validate-collection":233}],268:[function(e,t,r){var n=e("./_export"),o=e("./_math-log1p"),i=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:94906265.62425156<e?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},{"./_export":146,"./_math-log1p":176}],269:[function(e,t,r){var n=e("./_export"),o=Math.asinh;n(n.S+n.F*!(o&&0<1/o(0)),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},{"./_export":146}],270:[function(e,t,r){var n=e("./_export"),o=Math.atanh;n(n.S+n.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},{"./_export":146}],271:[function(e,t,r){var n=e("./_export"),o=e("./_math-sign");n(n.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},{"./_export":146,"./_math-sign":177}],272:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},{"./_export":146}],273:[function(e,t,r){var n=e("./_export"),o=Math.exp;n(n.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},{"./_export":146}],274:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1");n(n.S+n.F*(o!=Math.expm1),"Math",{expm1:o})},{"./_export":146,"./_math-expm1":174}],275:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{fround:e("./_math-fround")})},{"./_export":146,"./_math-fround":175}],276:[function(e,t,r){var n=e("./_export"),a=Math.abs;n(n.S,"Math",{hypot:function(e,t){for(var r,n,o=0,i=0,s=arguments.length,u=0;i<s;)u<(r=a(arguments[i++]))?(o=o*(n=u/r)*n+1,u=r):o+=0<r?(n=r/u)*n:r;return u===1/0?1/0:u*Math.sqrt(o)}})},{"./_export":146}],277:[function(e,t,r){var n=e("./_export"),o=Math.imul;n(n.S+n.F*e("./_fails")(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n;return 0|o*i+((65535&r>>>16)*i+o*(65535&n>>>16)<<16>>>0)}})},{"./_export":146,"./_fails":148}],278:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},{"./_export":146}],279:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log1p:e("./_math-log1p")})},{"./_export":146,"./_math-log1p":176}],280:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},{"./_export":146}],281:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{sign:e("./_math-sign")})},{"./_export":146,"./_math-sign":177}],282:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S+n.F*e("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},{"./_export":146,"./_fails":148,"./_math-expm1":174}],283:[function(e,t,r){var n=e("./_export"),o=e("./_math-expm1"),i=Math.exp;n(n.S,"Math",{tanh:function(e){var t=o(e=+e),r=o(-e);return t==1/0?1:r==1/0?-1:(t-r)/(i(e)+i(-e))}})},{"./_export":146,"./_math-expm1":174}],284:[function(e,t,r){var n=e("./_export");n(n.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}})},{"./_export":146}],285:[function(e,t,r){"use strict";function n(e){var t=l(e,!1);if("string"==typeof t&&2<t.length){var r,n,o,i=(t=m?t.trim():h(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+t}for(var s,u=t.slice(2),a=0,c=u.length;a<c;a++)if((s=u.charCodeAt(a))<48||o<s)return NaN;return parseInt(u,n)}}return+t}var o=e("./_global"),i=e("./_has"),s=e("./_cof"),u=e("./_inherit-if-required"),l=e("./_to-primitive"),a=e("./_fails"),c=e("./_object-gopn").f,f=e("./_object-gopd").f,p=e("./_object-dp").f,h=e("./_string-trim").trim,d="Number",b=o[d],v=b,y=b.prototype,_=s(e("./_object-create")(y))==d,m="trim"in String.prototype;if(!b(" 0o1")||!b("0b1")||b("+0x1")){b=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof b&&(_?a(function(){y.valueOf.call(r)}):s(r)!=d)?u(new v(n(t)),r,b):n(t)};for(var g,w=e("./_descriptors")?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(v,g=w[x])&&!i(b,g)&&p(b,g,f(v,g));(b.prototype=y).constructor=b,e("./_redefine")(o,d,b)}},{"./_cof":132,"./_descriptors":142,"./_fails":148,"./_global":154,"./_has":155,"./_inherit-if-required":159,"./_object-create":182,"./_object-dp":183,"./_object-gopd":185,"./_object-gopn":187,"./_redefine":202,"./_string-trim":218,"./_to-primitive":227}],286:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":146}],287:[function(e,t,r){var n=e("./_export"),o=e("./_global").isFinite;n(n.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},{"./_export":146,"./_global":154}],288:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isInteger:e("./_is-integer")})},{"./_export":146,"./_is-integer":164}],289:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{isNaN:function(e){return e!=e}})},{"./_export":146}],290:[function(e,t,r){var n=e("./_export"),o=e("./_is-integer"),i=Math.abs;n(n.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},{"./_export":146,"./_is-integer":164}],291:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":146}],292:[function(e,t,r){var n=e("./_export");n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":146}],293:[function(e,t,r){var n=e("./_export"),o=e("./_parse-float");n(n.S+n.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},{"./_export":146,"./_parse-float":196}],294:[function(e,t,r){var n=e("./_export"),o=e("./_parse-int");n(n.S+n.F*(Number.parseInt!=o),"Number",{parseInt:o})},{"./_export":146,"./_parse-int":197}],295:[function(e,t,r){"use strict";function c(e,t){for(var r=-1,n=t;++r<6;)n+=e*s[r],s[r]=n%1e7,n=i(n/1e7)}function l(e){for(var t=6,r=0;0<=--t;)r+=s[t],s[t]=i(r/e),r=r%e*1e7}function f(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==s[e]){var r=String(s[e]);t=""===t?r:t+d.call("0",7-r.length)+r}return t}var n=e("./_export"),p=e("./_to-integer"),h=e("./_a-number-value"),d=e("./_string-repeat"),o=1..toFixed,i=Math.floor,s=[0,0,0,0,0,0],b="Number.toFixed: incorrect invocation!",v=function(e,t,r){return 0===t?r:t%2==1?v(e,t-1,r*e):v(e*e,t/2,r)};n(n.P+n.F*(!!o&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){o.call({})})),"Number",{toFixed:function(e){var t,r,n,o,i=h(this,b),s=p(e),u="",a="0";if(s<0||20<s)throw RangeError(b);if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return String(i);if(i<0&&(u="-",i=-i),1e-21<i)if(r=(t=function(e){for(var t=0,r=e;4096<=r;)t+=12,r/=4096;for(;2<=r;)t+=1,r/=2;return t}(i*v(2,69,1))-69)<0?i*v(2,-t,1):i/v(2,t,1),r*=4503599627370496,0<(t=52-t)){for(c(0,r),n=s;7<=n;)c(1e7,0),n-=7;for(c(v(10,n,1),0),n=t-1;23<=n;)l(1<<23),n-=23;l(1<<n),c(1,1),l(2),a=f()}else c(0,r),c(1<<-t,0),a=f()+d.call("0",s);return a=0<s?u+((o=a.length)<=s?"0."+d.call("0",s-o)+a:a.slice(0,o-s)+"."+a.slice(o-s)):u+a}})},{"./_a-number-value":118,"./_export":146,"./_fails":148,"./_string-repeat":217,"./_to-integer":223}],296:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_fails"),i=e("./_a-number-value"),s=1..toPrecision;n(n.P+n.F*(o(function(){return"1"!==s.call(1,void 0)})||!o(function(){s.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?s.call(t):s.call(t,e)}})},{"./_a-number-value":118,"./_export":146,"./_fails":148}],297:[function(e,t,r){var n=e("./_export");n(n.S+n.F,"Object",{assign:e("./_object-assign")})},{"./_export":146,"./_object-assign":181}],298:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{create:e("./_object-create")})},{"./_export":146,"./_object-create":182}],299:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperties:e("./_object-dps")})},{"./_descriptors":142,"./_export":146,"./_object-dps":184}],300:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":142,"./_export":146,"./_object-dp":183}],301:[function(e,t,r){var n=e("./_is-object"),o=e("./_meta").onFreeze;e("./_object-sap")("freeze",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},{"./_is-object":165,"./_meta":178,"./_object-sap":193}],302:[function(e,t,r){var n=e("./_to-iobject"),o=e("./_object-gopd").f;e("./_object-sap")("getOwnPropertyDescriptor",function(){return function(e,t){return o(n(e),t)}})},{"./_object-gopd":185,"./_object-sap":193,"./_to-iobject":224}],303:[function(e,t,r){e("./_object-sap")("getOwnPropertyNames",function(){return e("./_object-gopn-ext").f})},{"./_object-gopn-ext":186,"./_object-sap":193}],304:[function(e,t,r){var n=e("./_to-object"),o=e("./_object-gpo");e("./_object-sap")("getPrototypeOf",function(){return function(e){return o(n(e))}})},{"./_object-gpo":189,"./_object-sap":193,"./_to-object":226}],305:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},{"./_is-object":165,"./_object-sap":193}],306:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},{"./_is-object":165,"./_object-sap":193}],307:[function(e,t,r){var n=e("./_is-object");e("./_object-sap")("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},{"./_is-object":165,"./_object-sap":193}],308:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{is:e("./_same-value")})},{"./_export":146,"./_same-value":205}],309:[function(e,t,r){var n=e("./_to-object"),o=e("./_object-keys");e("./_object-sap")("keys",function(){return function(e){return o(n(e))}})},{"./_object-keys":191,"./_object-sap":193,"./_to-object":226}],310:[function(e,t,r){var n=e("./_is-object"),o=e("./_meta").onFreeze;e("./_object-sap")("preventExtensions",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},{"./_is-object":165,"./_meta":178,"./_object-sap":193}],311:[function(e,t,r){var n=e("./_is-object"),o=e("./_meta").onFreeze;e("./_object-sap")("seal",function(t){return function(e){return t&&n(e)?t(o(e)):e}})},{"./_is-object":165,"./_meta":178,"./_object-sap":193}],312:[function(e,t,r){var n=e("./_export");n(n.S,"Object",{setPrototypeOf:e("./_set-proto").set})},{"./_export":146,"./_set-proto":206}],313:[function(e,t,r){"use strict";var n=e("./_classof"),o={};o[e("./_wks")("toStringTag")]="z",o+""!="[object z]"&&e("./_redefine")(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},{"./_classof":131,"./_redefine":202,"./_wks":236}],314:[function(e,t,r){var n=e("./_export"),o=e("./_parse-float");n(n.G+n.F*(parseFloat!=o),{parseFloat:o})},{"./_export":146,"./_parse-float":196}],315:[function(e,t,r){var n=e("./_export"),o=e("./_parse-int");n(n.G+n.F*(parseInt!=o),{parseInt:o})},{"./_export":146,"./_parse-int":197}],316:[function(r,e,t){"use strict";function n(){}function f(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t}function o(l,r){if(!l._n){l._n=!0;var n=l._c;x(function(){for(var a=l._v,c=1==l._s,e=0,t=function(e){var t,r,n,o=c?e.ok:e.fail,i=e.resolve,s=e.reject,u=e.domain;try{o?(c||(2==l._h&&L(l),l._h=1),!0===o?t=a:(u&&u.enter(),t=o(a),u&&(u.exit(),n=!0)),t===e.promise?s(P("Promise-chain cycle")):(r=f(t))?r.call(t,i,s):i(t)):s(a)}catch(e){u&&!n&&u.exit(),s(e)}};n.length>e;)t(n[e++]);l._c=[],l._n=!1,r&&!l._h&&N(l)})}}function i(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),o(t,!0))}var s,u,a,c,l=r("./_library"),p=r("./_global"),h=r("./_ctx"),d=r("./_classof"),b=r("./_export"),v=r("./_is-object"),y=r("./_a-function"),_=r("./_an-instance"),m=r("./_for-of"),g=r("./_species-constructor"),w=r("./_task").set,x=r("./_microtask")(),O=r("./_new-promise-capability"),j=r("./_perform"),S=r("./_user-agent"),E=r("./_promise-resolve"),k="Promise",P=p.TypeError,A=p.process,C=A&&A.versions,R=C&&C.v8||"",M=p[k],I="process"==d(A),D=u=O.f,T=!!function(){try{var e=M.resolve(1),t=(e.constructor={})[r("./_wks")("species")]=function(e){e(n,n)};return(I||"function"==typeof PromiseRejectionEvent)&&e.then(n)instanceof t&&0!==R.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),N=function(i){w.call(p,function(){var e,t,r,n=i._v,o=B(i);if(o&&(e=j(function(){I?A.emit("unhandledRejection",n,i):(t=p.onunhandledrejection)?t({promise:i,reason:n}):(r=p.console)&&r.error&&r.error("Unhandled promise rejection",n)}),i._h=I||B(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},B=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(t){w.call(p,function(){var e;I?A.emit("rejectionHandled",t):(e=p.onrejectionhandled)&&e({promise:t,reason:t._v})})},q=function(e){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw P("Promise can't be resolved itself");(r=f(e))?x(function(){var t={_w:n,_d:!1};try{r.call(e,h(q,t,1),h(i,t,1))}catch(e){i.call(t,e)}}):(n._v=e,n._s=1,o(n,!1))}catch(e){i.call({_w:n,_d:!1},e)}}};T||(M=function(e){_(this,M,k,"_h"),y(e),s.call(this);try{e(h(q,this,1),h(i,this,1))}catch(e){i.call(this,e)}},(s=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r("./_redefine-all")(M.prototype,{then:function(e,t){var r=D(g(this,M));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=I?A.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&o(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new s;this.promise=e,this.resolve=h(q,e,1),this.reject=h(i,e,1)},O.f=D=function(e){return e===M||e===c?new a(e):u(e)}),b(b.G+b.W+b.F*!T,{Promise:M}),r("./_set-to-string-tag")(M,k),r("./_set-species")(k),c=r("./_core")[k],b(b.S+b.F*!T,k,{reject:function(e){var t=D(this);return(0,t.reject)(e),t.promise}}),b(b.S+b.F*(l||!T),k,{resolve:function(e){return E(l&&this===c?M:this,e)}}),b(b.S+b.F*!(T&&r("./_iter-detect")(function(e){M.all(e).catch(n)})),k,{all:function(e){var s=this,t=D(s),u=t.resolve,a=t.reject,r=j(function(){var n=[],o=0,i=1;m(e,!1,function(e){var t=o++,r=!1;n.push(void 0),i++,s.resolve(e).then(function(e){r||(r=!0,n[t]=e,--i||u(n))},a)}),--i||u(n)});return r.e&&a(r.v),t.promise},race:function(e){var t=this,r=D(t),n=r.reject,o=j(function(){m(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},{"./_a-function":117,"./_an-instance":121,"./_classof":131,"./_core":136,"./_ctx":138,"./_export":146,"./_for-of":152,"./_global":154,"./_is-object":165,"./_iter-detect":170,"./_library":173,"./_microtask":179,"./_new-promise-capability":180,"./_perform":198,"./_promise-resolve":199,"./_redefine-all":201,"./_set-species":207,"./_set-to-string-tag":208,"./_species-constructor":211,"./_task":220,"./_user-agent":232,"./_wks":236}],317:[function(e,t,r){var n=e("./_export"),i=e("./_a-function"),s=e("./_an-object"),u=(e("./_global").Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!e("./_fails")(function(){u(function(){})}),"Reflect",{apply:function(e,t,r){var n=i(e),o=s(r);return u?u(n,t,o):a.call(n,t,o)}})},{"./_a-function":117,"./_an-object":122,"./_export":146,"./_fails":148,"./_global":154}],318:[function(e,t,r){var n=e("./_export"),a=e("./_object-create"),c=e("./_a-function"),l=e("./_an-object"),f=e("./_is-object"),o=e("./_fails"),p=e("./_bind"),h=(e("./_global").Reflect||{}).construct,d=o(function(){function e(){}return!(h(function(){},[],e)instanceof e)}),b=!o(function(){h(function(){})});n(n.S+n.F*(d||b),"Reflect",{construct:function(e,t,r){c(e),l(t);var n=arguments.length<3?e:c(r);if(b&&!d)return h(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(p.apply(e,o))}var i=n.prototype,s=a(f(i)?i:Object.prototype),u=Function.apply.call(e,s,t);return f(u)?u:s}})},{"./_a-function":117,"./_an-object":122,"./_bind":130,"./_export":146,"./_fails":148,"./_global":154,"./_is-object":165,"./_object-create":182}],319:[function(e,t,r){var n=e("./_object-dp"),o=e("./_export"),i=e("./_an-object"),s=e("./_to-primitive");o(o.S+o.F*e("./_fails")(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,r){i(e),t=s(t,!0),i(r);try{return n.f(e,t,r),!0}catch(e){return!1}}})},{"./_an-object":122,"./_export":146,"./_fails":148,"./_object-dp":183,"./_to-primitive":227}],320:[function(e,t,r){var n=e("./_export"),o=e("./_object-gopd").f,i=e("./_an-object");n(n.S,"Reflect",{deleteProperty:function(e,t){var r=o(i(e),t);return!(r&&!r.configurable)&&delete e[t]}})},{"./_an-object":122,"./_export":146,"./_object-gopd":185}],321:[function(e,t,r){"use strict";function n(e){this._t=i(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)}var o=e("./_export"),i=e("./_an-object");e("./_iter-create")(n,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),o(o.S,"Reflect",{enumerate:function(e){return new n(e)}})},{"./_an-object":122,"./_export":146,"./_iter-create":168}],322:[function(e,t,r){var n=e("./_object-gopd"),o=e("./_export"),i=e("./_an-object");o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return n.f(i(e),t)}})},{"./_an-object":122,"./_export":146,"./_object-gopd":185}],323:[function(e,t,r){var n=e("./_export"),o=e("./_object-gpo"),i=e("./_an-object");n(n.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},{"./_an-object":122,"./_export":146,"./_object-gpo":189}],324:[function(e,t,r){var s=e("./_object-gopd"),u=e("./_object-gpo"),a=e("./_has"),n=e("./_export"),c=e("./_is-object"),l=e("./_an-object");n(n.S,"Reflect",{get:function e(t,r){var n,o,i=arguments.length<3?t:arguments[2];return l(t)===i?t[r]:(n=s.f(t,r))?a(n,"value")?n.value:void 0!==n.get?n.get.call(i):void 0:c(o=u(t))?e(o,r,i):void 0}})},{"./_an-object":122,"./_export":146,"./_has":155,"./_is-object":165,"./_object-gopd":185,"./_object-gpo":189}],325:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{has:function(e,t){return t in e}})},{"./_export":146}],326:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},{"./_an-object":122,"./_export":146}],327:[function(e,t,r){var n=e("./_export");n(n.S,"Reflect",{ownKeys:e("./_own-keys")})},{"./_export":146,"./_own-keys":195}],328:[function(e,t,r){var n=e("./_export"),o=e("./_an-object"),i=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},{"./_an-object":122,"./_export":146}],329:[function(e,t,r){var n=e("./_export"),o=e("./_set-proto");o&&n(n.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},{"./_export":146,"./_set-proto":206}],330:[function(e,t,r){var a=e("./_object-dp"),c=e("./_object-gopd"),l=e("./_object-gpo"),f=e("./_has"),n=e("./_export"),p=e("./_property-desc"),h=e("./_an-object"),d=e("./_is-object");n(n.S,"Reflect",{set:function e(t,r,n){var o,i,s=arguments.length<4?t:arguments[3],u=c.f(h(t),r);if(!u){if(d(i=l(t)))return e(i,r,n,s);u=p(0)}if(f(u,"value")){if(!1===u.writable||!d(s))return!1;if(o=c.f(s,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,a.f(s,r,o)}else a.f(s,r,p(0,n));return!0}return void 0!==u.set&&(u.set.call(s,n),!0)}})},{"./_an-object":122,"./_export":146,"./_has":155,"./_is-object":165,"./_object-dp":183,"./_object-gopd":185,"./_object-gpo":189,"./_property-desc":200}],331:[function(e,t,r){var n=e("./_global"),i=e("./_inherit-if-required"),o=e("./_object-dp").f,s=e("./_object-gopn").f,u=e("./_is-regexp"),a=e("./_flags"),c=n.RegExp,l=c,f=c.prototype,p=/a/g,h=/a/g,d=new c(p)!==p;if(e("./_descriptors")&&(!d||e("./_fails")(function(){return h[e("./_wks")("match")]=!1,c(p)!=p||c(h)==h||"/a/i"!=c(p,"i")}))){c=function(e,t){var r=this instanceof c,n=u(e),o=void 0===t;return!r&&n&&e.constructor===c&&o?e:i(d?new l(n&&!o?e.source:e,t):l((n=e instanceof c)?e.source:e,n&&o?a.call(e):t),r?this:f,c)};function b(t){t in c||o(c,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}for(var v=s(l),y=0;v.length>y;)b(v[y++]);(f.constructor=c).prototype=f,e("./_redefine")(n,"RegExp",c)}e("./_set-species")("RegExp")},{"./_descriptors":142,"./_fails":148,"./_flags":150,"./_global":154,"./_inherit-if-required":159,"./_is-regexp":166,"./_object-dp":183,"./_object-gopn":187,"./_redefine":202,"./_set-species":207,"./_wks":236}],332:[function(e,t,r){"use strict";var n=e("./_regexp-exec");e("./_export")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},{"./_export":146,"./_regexp-exec":204}],333:[function(e,t,r){e("./_descriptors")&&"g"!=/./g.flags&&e("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:e("./_flags")})},{"./_descriptors":142,"./_flags":150,"./_object-dp":183}],334:[function(e,t,r){"use strict";var f=e("./_an-object"),p=e("./_to-length"),h=e("./_advance-string-index"),d=e("./_regexp-exec-abstract");e("./_fix-re-wks")("match",1,function(n,o,c,l){return[function(e){var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=l(c,e,this);if(t.done)return t.value;var r=f(e),n=String(this);if(!r.global)return d(r,n);for(var o,i=r.unicode,s=[],u=r.lastIndex=0;null!==(o=d(r,n));){var a=String(o[0]);""===(s[u]=a)&&(r.lastIndex=h(n,p(r.lastIndex),i)),u++}return 0===u?null:s}]})},{"./_advance-string-index":120,"./_an-object":122,"./_fix-re-wks":149,"./_regexp-exec-abstract":203,"./_to-length":225}],335:[function(e,t,r){"use strict";var j=e("./_an-object"),n=e("./_to-object"),S=e("./_to-length"),E=e("./_to-integer"),k=e("./_advance-string-index"),P=e("./_regexp-exec-abstract"),A=Math.max,C=Math.min,p=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;e("./_fix-re-wks")("replace",2,function(o,i,w,x){return[function(e,t){var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):w.call(String(r),e,t)},function(e,t){var r=x(w,e,this,t);if(r.done)return r.value;var n=j(e),o=String(this),i="function"==typeof t;i||(t=String(t));var s=n.global;if(s){var u=n.unicode;n.lastIndex=0}for(var a=[];;){var c=P(n,o);if(null===c)break;if(a.push(c),!s)break;""===String(c[0])&&(n.lastIndex=k(o,S(n.lastIndex),u))}for(var l,f="",p=0,h=0;h<a.length;h++){c=a[h];for(var d=String(c[0]),b=A(C(E(c.index),o.length),0),v=[],y=1;y<c.length;y++)v.push(void 0===(l=c[y])?l:String(l));var _=c.groups;if(i){var m=[d].concat(v,b,o);void 0!==_&&m.push(_);var g=String(t.apply(void 0,m))}else g=O(d,o,b,v,_,t);p<=b&&(f+=o.slice(p,b)+g,p=b+d.length)}return f+o.slice(p)}];function O(i,s,u,a,c,e){var l=u+i.length,f=a.length,t=d;return void 0!==c&&(c=n(c),t=h),w.call(e,t,function(e,t){var r;switch(t.charAt(0)){case"$":return"$";case"&":return i;case"`":return s.slice(0,u);case"'":return s.slice(l);case"<":r=c[t.slice(1,-1)];break;default:var n=+t;if(0==n)return e;if(f<n){var o=p(n/10);return 0===o?e:o<=f?void 0===a[o-1]?t.charAt(1):a[o-1]+t.charAt(1):e}r=a[n-1]}return void 0===r?"":r})}})},{"./_advance-string-index":120,"./_an-object":122,"./_fix-re-wks":149,"./_regexp-exec-abstract":203,"./_to-integer":223,"./_to-length":225,"./_to-object":226}],336:[function(e,t,r){"use strict";var a=e("./_an-object"),c=e("./_same-value"),l=e("./_regexp-exec-abstract");e("./_fix-re-wks")("search",1,function(n,o,s,u){return[function(e){var t=n(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,t):new RegExp(e)[o](String(t))},function(e){var t=u(s,e,this);if(t.done)return t.value;var r=a(e),n=String(this),o=r.lastIndex;c(o,0)||(r.lastIndex=0);var i=l(r,n);return c(r.lastIndex,o)||(r.lastIndex=o),null===i?-1:i.index}]})},{"./_an-object":122,"./_fix-re-wks":149,"./_regexp-exec-abstract":203,"./_same-value":205}],337:[function(e,t,r){"use strict";var f=e("./_is-regexp"),m=e("./_an-object"),g=e("./_species-constructor"),w=e("./_advance-string-index"),x=e("./_to-length"),O=e("./_regexp-exec-abstract"),p=e("./_regexp-exec"),n=e("./_fails"),j=Math.min,h=[].push,s="split",d="length",b="lastIndex",S=4294967295,E=!n(function(){RegExp(S,"y")});e("./_fix-re-wks")("split",2,function(o,i,v,y){var _;return _="c"=="abbc"[s](/(b)*/)[1]||4!="test"[s](/(?:)/,-1)[d]||2!="ab"[s](/(?:ab)*/)[d]||4!="."[s](/(.?)(.?)/)[d]||1<"."[s](/()()/)[d]||""[s](/.?/)[d]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!f(e))return v.call(r,e,t);for(var n,o,i,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),a=0,c=void 0===t?S:t>>>0,l=new RegExp(e.source,u+"g");(n=p.call(l,r))&&!(a<(o=l[b])&&(s.push(r.slice(a,n.index)),1<n[d]&&n.index<r[d]&&h.apply(s,n.slice(1)),i=n[0][d],a=o,s[d]>=c));)l[b]===n.index&&l[b]++;return a===r[d]?!i&&l.test("")||s.push(""):s.push(r.slice(a)),s[d]>c?s.slice(0,c):s}:"0"[s](void 0,0)[d]?function(e,t){return void 0===e&&0===t?[]:v.call(this,e,t)}:v,[function(e,t){var r=o(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,r,t):_.call(String(r),e,t)},function(e,t){var r=y(_,e,this,t,_!==v);if(r.done)return r.value;var n=m(e),o=String(this),i=g(n,RegExp),s=n.unicode,u=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(E?"y":"g"),a=new i(E?n:"^(?:"+n.source+")",u),c=void 0===t?S:t>>>0;if(0==c)return[];if(0===o.length)return null===O(a,o)?[o]:[];for(var l=0,f=0,p=[];f<o.length;){a.lastIndex=E?f:0;var h,d=O(a,E?o:o.slice(f));if(null===d||(h=j(x(a.lastIndex+(E?0:f)),o.length))===l)f=w(o,f,s);else{if(p.push(o.slice(l,f)),p.length===c)return p;for(var b=1;b<=d.length-1;b++)if(p.push(d[b]),p.length===c)return p;f=l=h}}return p.push(o.slice(l)),p}]})},{"./_advance-string-index":120,"./_an-object":122,"./_fails":148,"./_fix-re-wks":149,"./_is-regexp":166,"./_regexp-exec":204,"./_regexp-exec-abstract":203,"./_species-constructor":211,"./_to-length":225}],338:[function(t,e,r){"use strict";t("./es6.regexp.flags");function n(e){t("./_redefine")(RegExp.prototype,u,e,!0)}var o=t("./_an-object"),i=t("./_flags"),s=t("./_descriptors"),u="toString",a=/./[u];t("./_fails")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?n(function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!s&&e instanceof RegExp?i.call(e):void 0)}):a.name!=u&&n(function(){return a.call(this)})},{"./_an-object":122,"./_descriptors":142,"./_fails":148,"./_flags":150,"./_redefine":202,"./es6.regexp.flags":333}],339:[function(e,t,r){"use strict";var n=e("./_collection-strong"),o=e("./_validate-collection");t.exports=e("./_collection")("Set",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{add:function(e){return n.def(o(this,"Set"),e=0===e?0:e,e)}},n)},{"./_collection":135,"./_collection-strong":133,"./_validate-collection":233}],340:[function(e,t,r){"use strict";e("./_string-html")("anchor",function(t){return function(e){return t(this,"a","name",e)}})},{"./_string-html":215}],341:[function(e,t,r){"use strict";e("./_string-html")("big",function(e){return function(){return e(this,"big","","")}})},{"./_string-html":215}],342:[function(e,t,r){"use strict";e("./_string-html")("blink",function(e){return function(){return e(this,"blink","","")}})},{"./_string-html":215}],343:[function(e,t,r){"use strict";e("./_string-html")("bold",function(e){return function(){return e(this,"b","","")}})},{"./_string-html":215}],344:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-at")(!1);n(n.P,"String",{codePointAt:function(e){return o(this,e)}})},{"./_export":146,"./_string-at":213}],345:[function(e,t,r){"use strict";var n=e("./_export"),u=e("./_to-length"),a=e("./_string-context"),c="endsWith",l=""[c];n(n.P+n.F*e("./_fails-is-regexp")(c),"String",{endsWith:function(e,t){var r=a(this,e,c),n=1<arguments.length?t:void 0,o=u(r.length),i=void 0===n?o:Math.min(u(n),o),s=String(e);return l?l.call(r,s,i):r.slice(i-s.length,i)===s}})},{"./_export":146,"./_fails-is-regexp":147,"./_string-context":214,"./_to-length":225}],346:[function(e,t,r){"use strict";e("./_string-html")("fixed",function(e){return function(){return e(this,"tt","","")}})},{"./_string-html":215}],347:[function(e,t,r){"use strict";e("./_string-html")("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},{"./_string-html":215}],348:[function(e,t,r){"use strict";e("./_string-html")("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},{"./_string-html":215}],349:[function(e,t,r){var n=e("./_export"),i=e("./_to-absolute-index"),s=String.fromCharCode,o=String.fromCodePoint;n(n.S+n.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;o<n;){if(t=+arguments[o++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}})},{"./_export":146,"./_to-absolute-index":221}],350:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-context");n(n.P+n.F*e("./_fails-is-regexp")("includes"),"String",{includes:function(e,t){return!!~o(this,e,"includes").indexOf(e,1<arguments.length?t:void 0)}})},{"./_export":146,"./_fails-is-regexp":147,"./_string-context":214}],351:[function(e,t,r){"use strict";e("./_string-html")("italics",function(e){return function(){return e(this,"i","","")}})},{"./_string-html":215}],352:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},{"./_iter-define":169,"./_string-at":213}],353:[function(e,t,r){"use strict";e("./_string-html")("link",function(t){return function(e){return t(this,"a","href",e)}})},{"./_string-html":215}],354:[function(e,t,r){var n=e("./_export"),s=e("./_to-iobject"),u=e("./_to-length");n(n.S,"String",{raw:function(e){for(var t=s(e.raw),r=u(t.length),n=arguments.length,o=[],i=0;i<r;)o.push(String(t[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}})},{"./_export":146,"./_to-iobject":224,"./_to-length":225}],355:[function(e,t,r){var n=e("./_export");n(n.P,"String",{repeat:e("./_string-repeat")})},{"./_export":146,"./_string-repeat":217}],356:[function(e,t,r){"use strict";e("./_string-html")("small",function(e){return function(){return e(this,"small","","")}})},{"./_string-html":215}],357:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_to-length"),s=e("./_string-context"),u="startsWith",a=""[u];n(n.P+n.F*e("./_fails-is-regexp")(u),"String",{startsWith:function(e,t){var r=s(this,e,u),n=i(Math.min(1<arguments.length?t:void 0,r.length)),o=String(e);return a?a.call(r,o,n):r.slice(n,n+o.length)===o}})},{"./_export":146,"./_fails-is-regexp":147,"./_string-context":214,"./_to-length":225}],358:[function(e,t,r){"use strict";e("./_string-html")("strike",function(e){return function(){return e(this,"strike","","")}})},{"./_string-html":215}],359:[function(e,t,r){"use strict";e("./_string-html")("sub",function(e){return function(){return e(this,"sub","","")}})},{"./_string-html":215}],360:[function(e,t,r){"use strict";e("./_string-html")("sup",function(e){return function(){return e(this,"sup","","")}})},{"./_string-html":215}],361:[function(e,t,r){"use strict";e("./_string-trim")("trim",function(e){return function(){return e(this,3)}})},{"./_string-trim":218}],362:[function(e,t,r){"use strict";function n(e){var t=H[e]=C(q[U]);return t._k=e,t}function o(e,t){j(e);for(var r,n=x(t=k(t)),o=0,i=n.length;o<i;)te(e,r=n[o++],t[r]);return e}function i(e){var t=W.call(this,e=P(e,!0));return!(this===K&&l(H,e)&&!l(Q,e))&&(!(t||!l(this,e)||!l(H,e)||l(this,V)&&this[V][e])||t)}function s(e,t){if(e=k(e),t=P(t,!0),e!==K||!l(H,t)||l(Q,t)){var r=N(e,t);return!r||!l(H,t)||l(e,V)&&e[V][t]||(r.enumerable=!0),r}}function u(e){for(var t,r=L(k(e)),n=[],o=0;r.length>o;)l(H,t=r[o++])||t==V||t==d||n.push(t);return n}function a(e){for(var t,r=e===K,n=L(r?Q:k(e)),o=[],i=0;n.length>i;)!l(H,t=n[i++])||r&&!l(K,t)||o.push(H[t]);return o}var c=e("./_global"),l=e("./_has"),f=e("./_descriptors"),p=e("./_export"),h=e("./_redefine"),d=e("./_meta").KEY,b=e("./_fails"),v=e("./_shared"),y=e("./_set-to-string-tag"),_=e("./_uid"),m=e("./_wks"),g=e("./_wks-ext"),w=e("./_wks-define"),x=e("./_enum-keys"),O=e("./_is-array"),j=e("./_an-object"),S=e("./_is-object"),E=e("./_to-object"),k=e("./_to-iobject"),P=e("./_to-primitive"),A=e("./_property-desc"),C=e("./_object-create"),R=e("./_object-gopn-ext"),M=e("./_object-gopd"),I=e("./_object-gops"),D=e("./_object-dp"),T=e("./_object-keys"),N=M.f,B=D.f,L=R.f,q=c.Symbol,$=c.JSON,F=$&&$.stringify,U="prototype",V=m("_hidden"),z=m("toPrimitive"),W={}.propertyIsEnumerable,J=v("symbol-registry"),H=v("symbols"),Q=v("op-symbols"),K=Object[U],G="function"==typeof q&&!!I.f,Y=c.QObject,X=!Y||!Y[U]||!Y[U].findChild,Z=f&&b(function(){return 7!=C(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=N(K,t);n&&delete K[t],B(e,t,r),n&&e!==K&&B(K,t,n)}:B,ee=G&&"symbol"==typeof q.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof q},te=function(e,t,r){return e===K&&te(Q,t,r),j(e),t=P(t,!0),j(r),l(H,t)?(r.enumerable?(l(e,V)&&e[V][t]&&(e[V][t]=!1),r=C(r,{enumerable:A(0,!1)})):(l(e,V)||B(e,V,A(1,{})),e[V][t]=!0),Z(e,t,r)):B(e,t,r)};G||(h((q=function(e){if(this instanceof q)throw TypeError("Symbol is not a constructor!");var t=_(0<arguments.length?e:void 0),r=function(e){this===K&&r.call(Q,e),l(this,V)&&l(this[V],t)&&(this[V][t]=!1),Z(this,t,A(1,e))};return f&&X&&Z(K,t,{configurable:!0,set:r}),n(t)})[U],"toString",function(){return this._k}),M.f=s,D.f=te,e("./_object-gopn").f=R.f=u,e("./_object-pie").f=i,I.f=a,f&&!e("./_library")&&h(K,"propertyIsEnumerable",i,!0),g.f=function(e){return n(m(e))}),p(p.G+p.W+p.F*!G,{Symbol:q});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;re.length>ne;)m(re[ne++]);for(var oe=T(m.store),ie=0;oe.length>ie;)w(oe[ie++]);p(p.S+p.F*!G,"Symbol",{for:function(e){return l(J,e+="")?J[e]:J[e]=q(e)},keyFor:function(e){if(!ee(e))throw TypeError(e+" is not a symbol!");for(var t in J)if(J[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),p(p.S+p.F*!G,"Object",{create:function(e,t){return void 0===t?C(e):o(C(e),t)},defineProperty:te,defineProperties:o,getOwnPropertyDescriptor:s,getOwnPropertyNames:u,getOwnPropertySymbols:a});var se=b(function(){I.f(1)});p(p.S+p.F*se,"Object",{getOwnPropertySymbols:function(e){return I.f(E(e))}}),$&&p(p.S+p.F*(!G||b(function(){var e=q();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;o<arguments.length;)n.push(arguments[o++]);if(r=t=n[1],(S(t)||void 0!==e)&&!ee(e))return O(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ee(t))return t}),n[1]=t,F.apply($,n)}}),q[U][z]||e("./_hide")(q[U],z,q[U].valueOf),y(q,"Symbol"),y(Math,"Math",!0),y(c.JSON,"JSON",!0)},{"./_an-object":122,"./_descriptors":142,"./_enum-keys":145,"./_export":146,"./_fails":148,"./_global":154,"./_has":155,"./_hide":156,"./_is-array":163,"./_is-object":165,"./_library":173,"./_meta":178,"./_object-create":182,"./_object-dp":183,"./_object-gopd":185,"./_object-gopn":187,"./_object-gopn-ext":186,"./_object-gops":188,"./_object-keys":191,"./_object-pie":192,"./_property-desc":200,"./_redefine":202,"./_set-to-string-tag":208,"./_shared":210,"./_to-iobject":224,"./_to-object":226,"./_to-primitive":227,"./_uid":231,"./_wks":236,"./_wks-define":234,"./_wks-ext":235}],363:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_typed"),i=e("./_typed-buffer"),c=e("./_an-object"),l=e("./_to-absolute-index"),f=e("./_to-length"),s=e("./_is-object"),u=e("./_global").ArrayBuffer,p=e("./_species-constructor"),h=i.ArrayBuffer,d=i.DataView,a=o.ABV&&u.isView,b=h.prototype.slice,v=o.VIEW,y="ArrayBuffer";n(n.G+n.W+n.F*(u!==h),{ArrayBuffer:h}),n(n.S+n.F*!o.CONSTR,y,{isView:function(e){return a&&a(e)||s(e)&&v in e}}),n(n.P+n.U+n.F*e("./_fails")(function(){return!new h(2).slice(1,void 0).byteLength}),y,{slice:function(e,t){if(void 0!==b&&void 0===t)return b.call(c(this),e);for(var r=c(this).byteLength,n=l(e,r),o=l(void 0===t?r:t,r),i=new(p(this,h))(f(o-n)),s=new d(this),u=new d(i),a=0;n<o;)u.setUint8(a++,s.getUint8(n++));return i}}),e("./_set-species")(y)},{"./_an-object":122,"./_export":146,"./_fails":148,"./_global":154,"./_is-object":165,"./_set-species":207,"./_species-constructor":211,"./_to-absolute-index":221,"./_to-length":225,"./_typed":230,"./_typed-buffer":229}],364:[function(e,t,r){var n=e("./_export");n(n.G+n.W+n.F*!e("./_typed").ABV,{DataView:e("./_typed-buffer").DataView})},{"./_export":146,"./_typed":230,"./_typed-buffer":229}],365:[function(e,t,r){e("./_typed-array")("Float32",4,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],366:[function(e,t,r){e("./_typed-array")("Float64",8,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],367:[function(e,t,r){e("./_typed-array")("Int16",2,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],368:[function(e,t,r){e("./_typed-array")("Int32",4,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],369:[function(e,t,r){e("./_typed-array")("Int8",1,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],370:[function(e,t,r){e("./_typed-array")("Uint16",2,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],371:[function(e,t,r){e("./_typed-array")("Uint32",4,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],372:[function(e,t,r){e("./_typed-array")("Uint8",1,function(n){return function(e,t,r){return n(this,e,t,r)}})},{"./_typed-array":228}],373:[function(e,t,r){e("./_typed-array")("Uint8",1,function(n){return function(e,t,r){return n(this,e,t,r)}},!0)},{"./_typed-array":228}],374:[function(e,t,r){"use strict";function n(t){return function(e){return t(this,0<arguments.length?e:void 0)}}var i,o=e("./_global"),s=e("./_array-methods")(0),u=e("./_redefine"),a=e("./_meta"),c=e("./_object-assign"),l=e("./_collection-weak"),f=e("./_is-object"),p=e("./_validate-collection"),h=e("./_validate-collection"),d=!o.ActiveXObject&&"ActiveXObject"in o,b="WeakMap",v=a.getWeak,y=Object.isExtensible,_=l.ufstore,m={get:function(e){if(f(e)){var t=v(e);return!0===t?_(p(this,b)).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(p(this,b),e,t)}},g=t.exports=e("./_collection")(b,n,m,l,!0,!0);h&&d&&(c((i=l.getConstructor(n,b)).prototype,m),a.NEED=!0,s(["delete","has","get","set"],function(n){var e=g.prototype,o=e[n];u(e,n,function(e,t){if(!f(e)||y(e))return o.call(this,e,t);this._f||(this._f=new i);var r=this._f[n](e,t);return"set"==n?this:r})}))},{"./_array-methods":126,"./_collection":135,"./_collection-weak":134,"./_global":154,"./_is-object":165,"./_meta":178,"./_object-assign":181,"./_redefine":202,"./_validate-collection":233}],375:[function(e,t,r){"use strict";var n=e("./_collection-weak"),o=e("./_validate-collection");e("./_collection")("WeakSet",function(t){return function(e){return t(this,0<arguments.length?e:void 0)}},{add:function(e){return n.def(o(this,"WeakSet"),e,!0)}},n,!1,!0)},{"./_collection":135,"./_collection-weak":134,"./_validate-collection":233}],376:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_flatten-into-array"),s=e("./_to-object"),u=e("./_to-length"),a=e("./_a-function"),c=e("./_array-species-create");n(n.P,"Array",{flatMap:function(e,t){var r,n,o=s(this);return a(e),r=u(o.length),n=c(o,0),i(n,o,o,r,0,1,e,t),n}}),e("./_add-to-unscopables")("flatMap")},{"./_a-function":117,"./_add-to-unscopables":119,"./_array-species-create":129,"./_export":146,"./_flatten-into-array":151,"./_to-length":225,"./_to-object":226}],377:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_array-includes")(!0);n(n.P,"Array",{includes:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),e("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":119,"./_array-includes":125,"./_export":146}],378:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!0);n(n.S,"Object",{entries:function(e){return o(e)}})},{"./_export":146,"./_object-to-array":194}],379:[function(e,t,r){var n=e("./_export"),a=e("./_own-keys"),c=e("./_to-iobject"),l=e("./_object-gopd"),f=e("./_create-property");n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=c(e),o=l.f,i=a(n),s={},u=0;i.length>u;)void 0!==(r=o(n,t=i[u++]))&&f(s,t,r);return s}})},{"./_create-property":137,"./_export":146,"./_object-gopd":185,"./_own-keys":195,"./_to-iobject":224}],380:[function(e,t,r){var n=e("./_export"),o=e("./_object-to-array")(!1);n(n.S,"Object",{values:function(e){return o(e)}})},{"./_export":146,"./_object-to-array":194}],381:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_core"),i=e("./_global"),s=e("./_species-constructor"),u=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(t){var r=s(this,o.Promise||i.Promise),e="function"==typeof t;return this.then(e?function(e){return u(r,t()).then(function(){return e})}:t,e?function(e){return u(r,t()).then(function(){throw e})}:t)}})},{"./_core":136,"./_export":146,"./_global":154,"./_promise-resolve":199,"./_species-constructor":211}],382:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-pad"),i=e("./_user-agent"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);n(n.P+n.F*s,"String",{padEnd:function(e,t){return o(this,e,1<arguments.length?t:void 0,!1)}})},{"./_export":146,"./_string-pad":216,"./_user-agent":232}],383:[function(e,t,r){"use strict";var n=e("./_export"),o=e("./_string-pad"),i=e("./_user-agent"),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);n(n.P+n.F*s,"String",{padStart:function(e,t){return o(this,e,1<arguments.length?t:void 0,!0)}})},{"./_export":146,"./_string-pad":216,"./_user-agent":232}],384:[function(e,t,r){"use strict";e("./_string-trim")("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},{"./_string-trim":218}],385:[function(e,t,r){"use strict";e("./_string-trim")("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},{"./_string-trim":218}],386:[function(e,t,r){e("./_wks-define")("asyncIterator")},{"./_wks-define":234}],387:[function(e,t,r){for(var n=e("./es6.array.iterator"),o=e("./_object-keys"),i=e("./_redefine"),s=e("./_global"),u=e("./_hide"),a=e("./_iterators"),c=e("./_wks"),l=c("iterator"),f=c("toStringTag"),p=a.Array,h={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},d=o(h),b=0;b<d.length;b++){var v,y=d[b],_=h[y],m=s[y],g=m&&m.prototype;if(g&&(g[l]||u(g,l,p),g[f]||u(g,f,y),a[y]=p,_))for(v in n)g[v]||i(g,v,n[v],!0)}},{"./_global":154,"./_hide":156,"./_iterators":172,"./_object-keys":191,"./_redefine":202,"./_wks":236,"./es6.array.iterator":248}],388:[function(e,t,r){var n=e("./_export"),o=e("./_task");n(n.G+n.B,{setImmediate:o.set,clearImmediate:o.clear})},{"./_export":146,"./_task":220}],389:[function(e,t,r){function n(o){return function(e,t){var r=2<arguments.length,n=r&&u.call(arguments,2);return o(r?function(){("function"==typeof e?e:Function(e)).apply(this,n)}:e,t)}}var o=e("./_global"),i=e("./_export"),s=e("./_user-agent"),u=[].slice,a=/MSIE .\./.test(s);i(i.G+i.B+i.F*a,{setTimeout:n(o.setTimeout),setInterval:n(o.setInterval)})},{"./_export":146,"./_global":154,"./_user-agent":232}],390:[function(e,t,r){e("../modules/web.timers"),e("../modules/web.immediate"),e("../modules/web.dom.iterable"),t.exports=e("../modules/_core")},{"../modules/_core":136,"../modules/web.dom.iterable":387,"../modules/web.immediate":388,"../modules/web.timers":389}],391:[function(e,t,r){var n,o;n=this,o=function(o){return function(){var e=o,t=e.lib.BlockCipher,r=e.algo,c=[],l=[],f=[],p=[],h=[],d=[],b=[],v=[],y=[],_=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,c[r]=o;var i=e[l[o]=r],s=e[i],u=e[s],a=257*e[o]^16843008*o;f[r]=a<<24|a>>>8,p[r]=a<<16|a>>>16,h[r]=a<<8|a>>>24,d[r]=a;a=16843009*u^65537*s^257*i^16843008*r;b[o]=a<<24|a>>>8,v[o]=a<<16|a>>>16,y[o]=a<<8|a>>>24,_[o]=a,r?(r=i^e[e[e[u^i]]],n^=e[e[n]]):r=n=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],n=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*(1+(this._nRounds=6+r)),o=this._keySchedule=[],i=0;i<n;i++)if(i<r)o[i]=t[i];else{var s=o[i-1];i%r?6<r&&i%r==4&&(s=c[s>>>24]<<24|c[s>>>16&255]<<16|c[s>>>8&255]<<8|c[255&s]):(s=c[(s=s<<8|s>>>24)>>>24]<<24|c[s>>>16&255]<<16|c[s>>>8&255]<<8|c[255&s],s^=m[i/r|0]<<24),o[i]=o[i-r]^s}for(var u=this._invKeySchedule=[],a=0;a<n;a++){i=n-a;if(a%4)s=o[i];else s=o[i-4];u[a]=a<4||i<=4?s:b[c[s>>>24]]^v[c[s>>>16&255]]^y[c[s>>>8&255]]^_[c[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,f,p,h,d,c)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,b,v,y,_,l);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,o,i,s,u){for(var a=this._nRounds,c=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],p=e[t+3]^r[3],h=4,d=1;d<a;d++){var b=n[c>>>24]^o[l>>>16&255]^i[f>>>8&255]^s[255&p]^r[h++],v=n[l>>>24]^o[f>>>16&255]^i[p>>>8&255]^s[255&c]^r[h++],y=n[f>>>24]^o[p>>>16&255]^i[c>>>8&255]^s[255&l]^r[h++],_=n[p>>>24]^o[c>>>16&255]^i[l>>>8&255]^s[255&f]^r[h++];c=b,l=v,f=y,p=_}b=(u[c>>>24]<<24|u[l>>>16&255]<<16|u[f>>>8&255]<<8|u[255&p])^r[h++],v=(u[l>>>24]<<24|u[f>>>16&255]<<16|u[p>>>8&255]<<8|u[255&c])^r[h++],y=(u[f>>>24]<<24|u[p>>>16&255]<<16|u[c>>>8&255]<<8|u[255&l])^r[h++],_=(u[p>>>24]<<24|u[c>>>16&255]<<16|u[l>>>8&255]<<8|u[255&f])^r[h++];e[t]=b,e[t+1]=v,e[t+2]=y,e[t+3]=_},keySize:8});e.AES=t._createHelper(n)}(),o.AES},"object"==typeof r?t.exports=r=o(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],o):o(n.CryptoJS)},{"./cipher-core":392,"./core":393,"./enc-base64":394,"./evpkdf":396,"./md5":398}],392:[function(e,t,r){var n,o;n=this,o=function(w){w.lib.Cipher||function(){var e=w,t=e.lib,r=t.Base,a=t.WordArray,n=t.BufferedBlockAlgorithm,o=e.enc,i=(o.Utf8,o.Base64),s=e.algo.EvpKDF,u=t.Cipher=n.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){n.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(n){return{encrypt:function(e,t,r){return c(t).encrypt(n,e,t,r)},decrypt:function(e,t,r){return c(t).decrypt(n,e,t,r)}}}});function c(e){return"string"==typeof e?g:_}t.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l,f=e.mode={},p=t.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=f.CBC=((l=p.extend()).Encryptor=l.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize;d.call(this,e,t,n),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),l.Decryptor=l.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,o=e.slice(t,t+n);r.decryptBlock(e,t),d.call(this,e,t,n),this._prevBlock=o}}),l);function d(e,t,r){var n=this._iv;if(n){var o=n;this._iv=void 0}else o=this._prevBlock;for(var i=0;i<r;i++)e[t+i]^=o[i]}var b=(e.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,i=[],s=0;s<n;s+=4)i.push(o);var u=a.create(i,n);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(t.BlockCipher=u.extend({cfg:u.cfg.extend({mode:h,padding:b}),reset:function(){u.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),t.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=(e.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=a.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(i)},parse:function(e){var t=i.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=a.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:n})}},_=t.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var o=e.createEncryptor(r,n),i=o.finalize(t),s=o.cfg;return v.create({ciphertext:i,key:r,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),m=(e.kdf={}).OpenSSL={execute:function(e,t,r,n){n=n||a.random(8);var o=s.create({keySize:t+r}).compute(e,n),i=a.create(o.words.slice(t),4*r);return o.sigBytes=4*t,v.create({key:o,iv:i,salt:n})}},g=t.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:m}),encrypt:function(e,t,r,n){var o=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=o.iv;var i=_.encrypt.call(this,e,t,o.key,n);return i.mixIn(o),i},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,_.decrypt.call(this,e,t,o.key,n)}})}()},"object"==typeof r?t.exports=r=o(e("./core"),e("./evpkdf")):"function"==typeof define&&define.amd?define(["./core","./evpkdf"],o):o(n.CryptoJS)},{"./core":393,"./evpkdf":396}],393:[function(e,t,r){var n,o;n=this,o=function(){var l,r,e,t,n,f,o,i,s,u,a,c,p=p||(l=Math,r=Object.create||function(e){var t;return h.prototype=e,t=new h,h.prototype=null,t},t=(e={}).lib={},n=t.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},f=t.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||i).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(i=0;i<o;i+=4)t[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=l.ceil(t/4)},clone:function(){var e=n.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){function t(t){t=t;var r=987654321,n=4294967295;return function(){var e=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return e/=4294967296,(e+=.5)*(.5<l.random()?1:-1)}}for(var r,n=[],o=0;o<e;o+=4){var i=t(4294967296*(r||l.random()));r=987654071*i(),n.push(4294967296*i()|0)}return new f.init(n,e)}}),o=e.enc={},i=o.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new f.init(r,t/2)}},s=o.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new f.init(r,t)}},u=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},a=t.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,n=t.sigBytes,o=this.blockSize,i=n/(4*o),s=(i=e?l.ceil(i):l.max((0|i)-this._minBufferSize,0))*o,u=l.min(4*s,n);if(s){for(var a=0;a<s;a+=o)this._doProcessBlock(r,a);var c=r.splice(0,s);t.sigBytes-=u}return new f.init(c,u)},clone:function(){var e=n.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),t.Hasher=a.extend({cfg:n.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(r){return function(e,t){return new r.init(t).finalize(e)}},_createHmacHelper:function(r){return function(e,t){return new c.HMAC.init(r,t).finalize(e)}}}),c=e.algo={},e);function h(){}return p},"object"==typeof r?t.exports=r=o():"function"==typeof define&&define.amd?define([],o):n.CryptoJS=o()},{}],394:[function(e,t,r){var n,o;n=this,o=function(e){var a;return a=e.lib.WordArray,e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,u=0;u<4&&i+.75*u<r;u++)o.push(n.charAt(s>>>6*(3-u)&63));var a=n.charAt(64);if(a)for(;o.length%4;)o.push(a);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var i=r.charAt(64);if(i){var s=e.indexOf(i);-1!==s&&(t=s)}return function(e,t,r){for(var n=[],o=0,i=0;i<t;i++)if(i%4){var s=r[e.charCodeAt(i-1)]<<i%4*2,u=r[e.charCodeAt(i)]>>>6-i%4*2;n[o>>>2]|=(s|u)<<24-o%4*8,o++}return a.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":393}],395:[function(e,t,r){var n,o;n=this,o=function(e){return e.enc.Utf8},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":393}],396:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,l,o,i,s;return r=(t=e).lib,n=r.Base,l=r.WordArray,o=t.algo,i=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:i,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),o=l.create(),i=o.words,s=r.keySize,u=r.iterations;i.length<s;){a&&n.update(a);var a=n.update(e).finalize(t);n.reset();for(var c=1;c<u;c++)a=n.finalize(a),n.reset();o.concat(a)}return o.sigBytes=4*s,o}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF},"object"==typeof r?t.exports=r=o(e("./core"),e("./sha1"),e("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],o):o(n.CryptoJS)},{"./core":393,"./hmac":397,"./sha1":399}],397:[function(e,t,r){var n,o;n=this,o=function(e){var t,c;t=e.lib.Base,c=e.enc.Utf8,e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=c.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),s=o.words,u=i.words,a=0;a<r;a++)s[a]^=1549556828,u[a]^=909522486;o.sigBytes=i.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":393}],398:[function(e,t,r){var n,o;n=this,o=function(s){return function(l){var e=s,t=e.lib,r=t.WordArray,n=t.Hasher,o=e.algo,E=[];!function(){for(var e=0;e<64;e++)E[e]=4294967296*l.abs(l.sin(e+1))|0}();var i=o.MD5=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,o=e[n];e[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,s=e[t+0],u=e[t+1],a=e[t+2],c=e[t+3],l=e[t+4],f=e[t+5],p=e[t+6],h=e[t+7],d=e[t+8],b=e[t+9],v=e[t+10],y=e[t+11],_=e[t+12],m=e[t+13],g=e[t+14],w=e[t+15],x=i[0],O=i[1],j=i[2],S=i[3];x=k(x,O,j,S,s,7,E[0]),S=k(S,x,O,j,u,12,E[1]),j=k(j,S,x,O,a,17,E[2]),O=k(O,j,S,x,c,22,E[3]),x=k(x,O,j,S,l,7,E[4]),S=k(S,x,O,j,f,12,E[5]),j=k(j,S,x,O,p,17,E[6]),O=k(O,j,S,x,h,22,E[7]),x=k(x,O,j,S,d,7,E[8]),S=k(S,x,O,j,b,12,E[9]),j=k(j,S,x,O,v,17,E[10]),O=k(O,j,S,x,y,22,E[11]),x=k(x,O,j,S,_,7,E[12]),S=k(S,x,O,j,m,12,E[13]),j=k(j,S,x,O,g,17,E[14]),x=P(x,O=k(O,j,S,x,w,22,E[15]),j,S,u,5,E[16]),S=P(S,x,O,j,p,9,E[17]),j=P(j,S,x,O,y,14,E[18]),O=P(O,j,S,x,s,20,E[19]),x=P(x,O,j,S,f,5,E[20]),S=P(S,x,O,j,v,9,E[21]),j=P(j,S,x,O,w,14,E[22]),O=P(O,j,S,x,l,20,E[23]),x=P(x,O,j,S,b,5,E[24]),S=P(S,x,O,j,g,9,E[25]),j=P(j,S,x,O,c,14,E[26]),O=P(O,j,S,x,d,20,E[27]),x=P(x,O,j,S,m,5,E[28]),S=P(S,x,O,j,a,9,E[29]),j=P(j,S,x,O,h,14,E[30]),x=A(x,O=P(O,j,S,x,_,20,E[31]),j,S,f,4,E[32]),S=A(S,x,O,j,d,11,E[33]),j=A(j,S,x,O,y,16,E[34]),O=A(O,j,S,x,g,23,E[35]),x=A(x,O,j,S,u,4,E[36]),S=A(S,x,O,j,l,11,E[37]),j=A(j,S,x,O,h,16,E[38]),O=A(O,j,S,x,v,23,E[39]),x=A(x,O,j,S,m,4,E[40]),S=A(S,x,O,j,s,11,E[41]),j=A(j,S,x,O,c,16,E[42]),O=A(O,j,S,x,p,23,E[43]),x=A(x,O,j,S,b,4,E[44]),S=A(S,x,O,j,_,11,E[45]),j=A(j,S,x,O,w,16,E[46]),x=C(x,O=A(O,j,S,x,a,23,E[47]),j,S,s,6,E[48]),S=C(S,x,O,j,h,10,E[49]),j=C(j,S,x,O,g,15,E[50]),O=C(O,j,S,x,f,21,E[51]),x=C(x,O,j,S,_,6,E[52]),S=C(S,x,O,j,c,10,E[53]),j=C(j,S,x,O,v,15,E[54]),O=C(O,j,S,x,u,21,E[55]),x=C(x,O,j,S,d,6,E[56]),S=C(S,x,O,j,w,10,E[57]),j=C(j,S,x,O,p,15,E[58]),O=C(O,j,S,x,m,21,E[59]),x=C(x,O,j,S,l,6,E[60]),S=C(S,x,O,j,y,10,E[61]),j=C(j,S,x,O,a,15,E[62]),O=C(O,j,S,x,b,21,E[63]),i[0]=i[0]+x|0,i[1]=i[1]+O|0,i[2]=i[2]+j|0,i[3]=i[3]+S|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32;var o=l.floor(r/4294967296),i=r;t[15+(64+n>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(64+n>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,u=s.words,a=0;a<4;a++){var c=u[a];u[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});function k(e,t,r,n,o,i,s){var u=e+(t&r|~t&n)+o+s;return(u<<i|u>>>32-i)+t}function P(e,t,r,n,o,i,s){var u=e+(t&n|r&~n)+o+s;return(u<<i|u>>>32-i)+t}function A(e,t,r,n,o,i,s){var u=e+(t^r^n)+o+s;return(u<<i|u>>>32-i)+t}function C(e,t,r,n,o,i,s){var u=e+(r^(t|~n))+o+s;return(u<<i|u>>>32-i)+t}e.MD5=n._createHelper(i),e.HmacMD5=n._createHmacHelper(i)}(Math),s.MD5},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":393}],399:[function(e,t,r){var n,o;n=this,o=function(e){var t,r,n,o,i,f,s;return r=(t=e).lib,n=r.WordArray,o=r.Hasher,i=t.algo,f=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],u=r[4],a=0;a<80;a++){if(a<16)f[a]=0|e[t+a];else{var c=f[a-3]^f[a-8]^f[a-14]^f[a-16];f[a]=c<<1|c>>>31}var l=(n<<5|n>>>27)+u+f[a];l+=a<20?1518500249+(o&i|~o&s):a<40?1859775393+(o^i^s):a<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,u=s,s=i,i=o<<30|o>>>2,o=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(64+n>>>9<<4)]=Math.floor(r/4294967296),t[15+(64+n>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s),e.SHA1},"object"==typeof r?t.exports=r=o(e("./core")):"function"==typeof define&&define.amd?define(["./core"],o):o(n.CryptoJS)},{"./core":393}],400:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("./index.js"));t.exports=n.default},{"./index.js":401,"@babel/runtime/helpers/interopRequireDefault":402}],401:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;function n(e){var t=0<arguments.length&&void 0!==e?e:1;this._parallels=t||1,this._qC=0,this._iC=new Set,this._lHN=0,this._hPM=new Map,this._pHM=new Map}function i(e,t){if(t){if(t._timeoutObj&&clearTimeout(t._timeoutObj),e._pHM.has(t)){var r=e._pHM.get(t);e._hPM.delete(r),e._pHM.delete(t)}e._iC.delete(t)}}function s(t){t._tryIR||0===t._iC.size||(t._tryIR=!0,setTimeout(function(){t.isIdle()?setTimeout(function(){var e;t.isIdle()?(0!==(e=t)._iC.size&&(e._iC.values().next().value._manRes(),setTimeout(function(){return s(e)},0)),t._tryIR=!1):t._tryIR=!1},0):t._tryIR=!1},0))}n.prototype={isIdle:function(){return this._qC<this._parallels},lock:function(){this._qC++},unlock:function(){this._qC--,s(this)},wrapCall:function(e){var t,r=this;this.lock();try{t=e()}catch(e){throw this.unlock(),e}return t.then&&"function"==typeof t.then?t.then(function(e){return r.unlock(),e}).catch(function(e){throw r.unlock(),e}):(this.unlock(),t)},requestIdlePromise:function(e){var t,r=this;e=e||{};var n=new Promise(function(e){return t=e});if(n._manRes=function(){i(r,n),t()},e.timeout){var o=setTimeout(function(){n._manRes()},e.timeout);n._timeoutObj=o}return this._iC.add(n),s(this),n},cancelIdlePromise:function(e){i(this,e)},requestIdleCallback:function(e,t){var r=this._lHN++,n=this.requestIdlePromise(t);return this._hPM.set(r,n),this._pHM.set(n,r),n.then(function(){return e()}),r},cancelIdleCallback:function(e){var t=this._hPM.get(e);this.cancelIdlePromise(t)},clear:function(){var t=this;this._iC.forEach(function(e){return i(t,e)}),this._qC=0,this._iC.clear(),this._hPM=new Map,this._pHM=new Map}};var o=n;r.default=o},{}],402:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],403:[function(e,t,r){var f=e("object-keys"),p=e("is-arguments"),o=e("object-is"),h=e("is-regex"),d=e("regexp.prototype.flags"),b=e("is-date-object"),v=Date.prototype.getTime;function y(e,t,r){var n=r||{};return!(n.strict?!o(e,t):e!==t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?o(e,t):e==t:function(e,t,r){var n,o;if(typeof e!=typeof t)return!1;if(_(e)||_(t))return!1;if(e.prototype!==t.prototype)return!1;if(p(e)!==p(t))return!1;var i=h(e),s=h(t);if(i!==s)return!1;if(i||s)return e.source===t.source&&d(e)===d(t);if(b(e)&&b(t))return v.call(e)===v.call(t);var u=m(e),a=m(t);if(u!==a)return!1;if(u||a){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(typeof e!=typeof t)return!1;try{var c=f(e),l=f(t)}catch(e){return!1}if(c.length!==l.length)return!1;for(c.sort(),l.sort(),n=c.length-1;0<=n;n--)if(c[n]!=l[n])return!1;for(n=c.length-1;0<=n;n--)if(o=c[n],!y(e[o],t[o],r))return!1;return!0}(e,t,n))}function _(e){return null==e}function m(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(0<e.length&&"number"!=typeof e[0]))}t.exports=y},{"is-arguments":414,"is-date-object":415,"is-regex":421,"object-is":424,"object-keys":426,"regexp.prototype.flags":481}],404:[function(e,t,r){"use strict";function i(e,t,r,n){var o;t in e&&("function"!=typeof(o=n)||"[object Function]"!==a.call(o)||!n())||(f?l(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)}function n(e,t){var r=2<arguments.length?arguments[2]:{},n=s(t);u&&(n=c.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)i(e,n[o],t[n[o]],r[n[o]])}var s=e("object-keys"),u="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,c=Array.prototype.concat,l=Object.defineProperty,f=l&&function(){var e={};try{for(var t in l(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}();n.supportsDescriptors=!!f,t.exports=n},{"object-keys":426}],405:[function(e,t,r){t.exports=!1},{}],406:[function(e,t,r){var a=Object.create||function(e){function t(){}return t.prototype=e,new t},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},i=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function n(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=a(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0;var o,u=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),o=0===c.x}catch(e){o=!1}function l(e){return void 0===e._maxListeners?n.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var o,i,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]):(i=e._events=a(null),e._eventsCount=0),s){if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),!s.warned&&(o=l(e))&&0<o&&s.length>o){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else s=i[t]=r,++e._eventsCount;return e}function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=i.call(p,n);return o.listener=r,n.wrapFn=o}function d(e,t,r){var n=e._events;if(!n)return[];var o=n[t];return o?"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):v(o,o.length):[]}function b(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}o?Object.defineProperty(n,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');u=e}}):n.defaultMaxListeners=u,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},n.prototype.getMaxListeners=function(){return l(this)},n.prototype.emit=function(e,t,r,n){var o,i,s,u,a,c,l="error"===e;if(c=this._events)l=l&&null==c.error;else if(!l)return!1;if(l){if(1<arguments.length&&(o=t),o instanceof Error)throw o;var f=new Error('Unhandled "error" event. ('+o+")");throw f.context=o,f}if(!(i=c[e]))return!1;var p="function"==typeof i;switch(s=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,o=v(e,n),i=0;i<n;++i)o[i].call(r)}(i,p,this);break;case 2:!function(e,t,r,n){if(t)e.call(r,n);else for(var o=e.length,i=v(e,o),s=0;s<o;++s)i[s].call(r,n)}(i,p,this,t);break;case 3:!function(e,t,r,n,o){if(t)e.call(r,n,o);else for(var i=e.length,s=v(e,i),u=0;u<i;++u)s[u].call(r,n,o)}(i,p,this,t,r);break;case 4:!function(e,t,r,n,o,i){if(t)e.call(r,n,o,i);else for(var s=e.length,u=v(e,s),a=0;a<s;++a)u[a].call(r,n,o,i)}(i,p,this,t,r,n);break;default:for(u=new Array(s-1),a=1;a<s;a++)u[a-1]=arguments[a];!function(e,t,r,n){if(t)e.apply(r,n);else for(var o=e.length,i=v(e,o),s=0;s<o;++s)i[s].apply(r,n)}(i,p,this,u)}return!0},n.prototype.on=n.prototype.addListener=function(e,t){return f(this,e,t,!1)},n.prototype.prependListener=function(e,t){return f(this,e,t,!0)},n.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,h(this,e,t)),this},n.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,h(this,e,t)),this},n.prototype.removeListener=function(e,t){var r,n,o,i,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=a(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;0<=i;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var r=t,n=r+1,o=e.length;n<o;r+=1,n+=1)e[r]=e[n];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),n.removeListener&&this.emit("removeListener",e,s||t)}return this},n.prototype.removeAllListeners=function(e){var t,r,n;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=a(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=a(null):delete r[e]),this;if(0===arguments.length){var o,i=s(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=a(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(n=t.length-1;0<=n;n--)this.removeListener(e,t[n]);return this},n.prototype.listeners=function(e){return d(this,e,!0)},n.prototype.rawListeners=function(e){return d(this,e,!1)},n.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},n.prototype.listenerCount=b,n.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],407:[function(e,t,r){"use strict";var a=Array.prototype.slice,c=Object.prototype.toString;t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==c.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var n,o=a.call(arguments,1),e=Math.max(0,r.length-o.length),i=[],s=0;s<e;s++)i.push("$"+s);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var e=r.apply(this,o.concat(a.call(arguments)));return Object(e)===e?e:this}return r.apply(t,o.concat(a.call(arguments)))}),r.prototype){var u=function(){};u.prototype=r.prototype,n.prototype=new u,u.prototype=null}return n}},{}],408:[function(e,t,r){"use strict";var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":407}],409:[function(e,t,r){for(var u=e("util"),a=e("is-property"),c=/[\{\[]/,l=/[\}\]]/,n=["do","if","in","for","let","new","try","var","case","else","enum","eval","null","this","true","void","with","await","break","catch","class","const","false","super","throw","while","yield","delete","export","import","public","return","static","switch","typeof","default","extends","finally","package","private","continue","debugger","function","arguments","interface","protected","implements","instanceof","NaN","undefined"],f={},o=0;o<n.length;o++)f[n[o]]=!0;function i(){function t(e){for(var t="";t.length<2*o;)t+="  ";r.push(t+e)}function n(e){return l.test(e.trim()[0])&&c.test(e[e.length-1])?(o--,t(e),void o++):c.test(e[e.length-1])?(t(e),void o++):(l.test(e.trim()[0])&&o--,void t(e))}var r=[],o=0,i={},s=function(e){if(!e)return s;if(1===arguments.length&&-1<e.indexOf("\n"))for(var t=e.trim().split("\n"),r=0;r<t.length;r++)n(t[r].trim());else n(u.format.apply(u,arguments));return s};return s.scope={},s.formats=p,s.sym=function(e){var t;return e&&(a(t=e)&&!f.hasOwnProperty(t))||(e="tmp"),i[e]||(i[e]=0),e+(i[e]++||"")},s.property=function(e,t){return 1===arguments.length&&(t=e,e=""),a(t+="")?e?e+"."+t:t:e?e+"["+JSON.stringify(t)+"]":JSON.stringify(t)},s.toString=function(){return r.join("\n")},s.toFunction=function(t){t=t||{};var e="return ("+s.toString()+")";Object.keys(s.scope).forEach(function(e){t[e]||(t[e]=s.scope[e])});var r=Object.keys(t).map(function(e){return e}),n=r.map(function(e){return t[e]});return Function.apply(null,r.concat(e)).apply(null,n)},arguments.length&&s.apply(null,arguments),s}var p={s:function(e){return""+e},d:function(e){return""+Number(e)},o:function(e){return JSON.stringify(e)}};i.formats=p,t.exports=i},{"is-property":420,util:84}],410:[function(e,t,r){function n(e,t){return o(t)?e+"."+t:e+"["+JSON.stringify(t)+"]"}var o=e("is-property");n.valid=o,n.property=function(e){return o(e)?e:JSON.stringify(e)},t.exports=n},{"is-property":420}],411:[function(e,t,r){"use strict";var n=e("function-bind");t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":408}],412:[function(e,t,r){r.read=function(e,t,r,n,o){var i,s,u=8*o-n-1,a=(1<<u)-1,c=a>>1,l=-7,f=r?o-1:0,p=r?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=u;0<l;i=256*i+e[t+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;0<l;s=256*s+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===a)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=c}return(h?-1:1)*s*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var s,u,a,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-s))<1&&(s--,a*=2),2<=(t+=1<=s+f?p/a:p*Math.pow(2,1-f))*a&&(s++,a/=2),l<=s+f?(u=0,s=l):1<=s+f?(u=(t*a-1)*Math.pow(2,o),s+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));8<=o;e[r+h]=255&u,h+=d,u/=256,o-=8);for(s=s<<o|u,c+=o;0<c;e[r+h]=255&s,h+=d,s/=256,c-=8);e[r+h-d]|=128*b}},{}],413:[function(e,l,t){(function(t){"use strict";var r,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,i=new e(c),s=t.document.createTextNode("");i.observe(s,{characterData:!0}),r=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var u=new t.MessageChannel;u.port1.onmessage=c,r=function(){u.port2.postMessage(0)}}var a=[];function c(){var e,t;n=!0;for(var r=a.length;r;){for(t=a,a=[],e=-1;++e<r;)t[e]();r=a.length}n=!1}l.exports=function(e){1!==a.push(e)||n||r()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],414:[function(e,t,r){"use strict";function n(e){return!(i&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===s.call(e)}function o(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Array]"!==s.call(e)&&"[object Function]"===s.call(e.callee)}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.prototype.toString,u=function(){return n(arguments)}();n.isLegacyArguments=o,t.exports=u?n:o},{}],415:[function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},{}],416:[function(e,t,r){(function(e){t.exports=function(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||(!(void 0===e||"object"!=typeof e.versions||!e.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&0<=navigator.userAgent.indexOf("Electron"))}}).call(this,e("_process"))},{_process:477}],417:[function(e,t,r){var s=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,c=/\/\d{1,3}(?=%|$)/,l=/\//,f=/%.*$/,p=/([^0-9a-f:/%])/i,h=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/i;function d(e){if(!s.test(e))return!1;var t=e.split(".");if(4!==t.length)return!1;if("0"===t[0][0]&&1<t[0].length)return!1;if("0"===t[1][0]&&1<t[1].length)return!1;if("0"===t[2][0]&&1<t[2].length)return!1;if("0"===t[3][0]&&1<t[3].length)return!1;var r=Number(t[0]),n=Number(t[1]),o=Number(t[2]),i=Number(t[3]);return 0<=r&&r<256&&0<=n&&n<256&&0<=o&&o<256&&0<=i&&i<256}function n(e){var t=e.replace(c,""),r=e.length!==t.length;if(r)return!1;if(!r&&l.test(e))return!1;var n=t.replace(f,""),o=n.lastIndexOf(":");if(-1===o)return!1;var i=d(n.substring(o+1))?n.substring(0,o+1)+"1234:5678":n;if(p.test(i))return!1;if(h.test(i))return!1;var s=i.split("::");if(2<s.length)return!1;if(2===s.length){var u=""===s[0]?[]:s[0].split(":"),a=""===s[1]?[]:s[1].split(":");if(8-(u.length+a.length)<=0)return!1}else if(8!==i.split(":").length)return!1;return!0}function o(e){return d(e)||n(e)}t.exports=function(e){if(4===(e=e||{}).version)return d;if(6===e.version)return n;if(null==e.version)return o;throw new Error("Unknown version: "+e.version)},t.exports.__all_regexes__=[s,c,l,f,p,h]},{}],418:[function(e,t,r){var n=e("is-my-ip-valid"),o=/\s/,i=/^[a-zA-Z0-9.-]+$/,s=/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/,u=/^\+[0-9][0-9 ]{5,27}[0-9]$/,a=/ {2}/,c=/ /g;r["date-time"]=/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-[0-9]{2}[tT ]\d{2}:\d{2}:\d{2}(?:\.\d+|)([zZ]|[+-]\d{2}:\d{2})$/,r.date=/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-[0-9]{2}$/,r.time=/^\d{2}:\d{2}:\d{2}$/,r.email=function(e){return-1!==e.indexOf("@")&&!o.test(e)},r["ip-address"]=r.ipv4=n({version:4}),r.ipv6=n({version:6}),r.uri=/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,r.color=/(#?([0-9A-Fa-f]{3,6})\b)|(aqua)|(black)|(blue)|(fuchsia)|(gray)|(green)|(lime)|(maroon)|(navy)|(olive)|(orange)|(purple)|(red)|(silver)|(teal)|(white)|(yellow)|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\))/,r.hostname=function(e){if(!i.test(e))return!1;for(var t=e.split("."),r=0;r<t.length;r++)if(!s.test(t[r]))return!1;return!0},r.alpha=/^[a-zA-Z]+$/,r.alphanumeric=/^[a-zA-Z0-9]+$/,r.style=/\s*(.+?):\s*([^;]+);?/g,r.phone=function(e){if(!u.test(e))return!1;if(a.test(e))return!1;var t=e.substring(1).replace(c,"").length;return 7<=t&&t<=15},r["utc-millisec"]=/^[0-9]{1,15}\.?[0-9]{0,15}$/},{"is-my-ip-valid":417}],419:[function(e,n,t){function I(e){e=JSON.stringify(e);for(var t=/\[([^\[\]"]+)\]/;t.test(e);)e=e.replace(t,'."+$1+"');return e}function i(e){for(var t=[],r=0;r<e.length;r++)t.push("object"==typeof e[r]?JSON.stringify(e[r]):e[r]);for(r=1;r<t.length;r++)if(t.indexOf(t[r])!==r)return!1;return!0}function s(e,t){var r=(0|t)!==t?Math.pow(10,t.toString().split(".").pop().length):1;return!(1<r?r<((0|e)!==e?Math.pow(10,e.toString().split(".").pop().length):1)||Math.round(r*e)%(r*t):e%t)}var D=e("generate-object-property"),u=e("generate-function"),T=e("jsonpointer"),a=e("xtend"),N=e("./formats"),B={any:function(){return"true"},null:function(e){return e+" === null"},boolean:function(e){return"typeof "+e+' === "boolean"'},array:function(e){return"Array.isArray("+e+")"},object:function(e){return"typeof "+e+' === "object" && '+e+" && !Array.isArray("+e+")"},number:function(e){return"typeof "+e+' === "number" && isFinite('+e+")"},integer:function(e){return"typeof "+e+' === "number" && (Math.floor('+e+") === "+e+" || "+e+" > 9007199254740992 || "+e+" < -9007199254740992)"},string:function(e){return"typeof "+e+' === "string"'}},L=function(e,w,x,t,O){function j(e){return e+(r[e]=(r[e]||0)+1)}function S(e){if(n[e])return n[e];var t=j("pattern");return P[t]=new RegExp(e),n[e]=t}function E(){var e=o.shift();return o.push(e+e[0]),e}var k=O?a(N,O.formats):N,P={unique:i,formats:k,isMultipleOf:s},A=!!O&&!!O.verbose,C=!(!O||void 0===O.greedy)&&O.greedy,r={},n={},o=["i","j","k","l","m","n","o","p","q","r","s","t","u","v","x","y","z"],R=function(n,r,o,i,s){var u=r.properties,a=r.type,t=!1;Array.isArray(r.items)&&(u={},r.items.forEach(function(e,t){u[t]=e}),a="array",t=!0);function c(e,t,r){M("errors++"),!0===o&&(M("if (validate.errors === null) validate.errors = []"),A?M("validate.errors.push({field:%s,message:%s,value:%s,type:%s,schemaPath:%s})",I(t||n),JSON.stringify(e),r||n,JSON.stringify(a),JSON.stringify(s)):M("validate.errors.push({field:%s,message:%s})",I(t||n),JSON.stringify(e)))}var e=0;!0===r.required?(e++,M("if (%s === undefined) {",n),c("is required"),M("} else {")):(e++,M("if (%s !== undefined) {",n));var l=[].concat(a).map(function(e){if(e&&!B.hasOwnProperty(e))throw new Error("Unknown type: "+e);return B[e||"any"](n)}).join(" || ")||"true";if("true"!==l&&(e++,M("if (!(%s)) {",l),c("is the wrong type"),M("} else {")),t)if(!1===r.additionalItems)M("if (%s.length > %d) {",n,r.items.length),c("has additional items"),M("}");else if(r.additionalItems){var f=E();M("for (var %s = %d; %s < %s.length; %s++) {",f,r.items.length,f,n,f),R(n+"["+f+"]",r.additionalItems,o,i,s.concat("additionalItems")),M("}")}if(r.format&&k[r.format]){"string"!==a&&N[r.format]&&M("if (%s) {",B.string(n));var p=j("format");P[p]=k[r.format],"function"==typeof P[p]?M("if (!%s(%s)) {",p,n):M("if (!%s.test(%s)) {",p,n),c("must be "+r.format+" format"),M("}"),"string"!==a&&N[r.format]&&M("}")}if(Array.isArray(r.required)){M("if ((%s)) {","object"!==a?B.object(n):"true"),M("var missing = 0"),r.required.map(function(e){var t=D(n,e);M("if (%s === undefined) {",t),c("is required",t),M("missing++"),M("}")}),M("}"),C||(M("if (missing === 0) {"),e++)}if(r.uniqueItems&&("array"!==a&&M("if (%s) {",B.array(n)),M("if (!(unique(%s))) {",n),c("must be unique"),M("}"),"array"!==a&&M("}")),r.enum){var h=r.enum.some(function(e){return"object"==typeof e})?function(e){return"JSON.stringify("+n+") !== JSON.stringify("+JSON.stringify(e)+")"}:function(e){return n+" !== "+JSON.stringify(e)};M("if (%s) {",r.enum.map(h).join(" && ")||"false"),c("must be an enum value"),M("}")}if(r.dependencies&&("object"!==a&&M("if (%s) {",B.object(n)),Object.keys(r.dependencies).forEach(function(e){var t=r.dependencies[e];"string"==typeof t&&(t=[t]);Array.isArray(t)&&(M("if (%s !== undefined && !(%s)) {",D(n,e),t.map(function(e){return D(n,e)+" !== undefined"}).join(" && ")||"true"),c("dependencies not set"),M("}")),"object"==typeof t&&(M("if (%s !== undefined) {",D(n,e)),R(n,t,o,i,s.concat(["dependencies",e])),M("}"))}),"object"!==a&&M("}")),r.additionalProperties||!1===r.additionalProperties){"object"!==a&&M("if (%s) {",B.object(n));f=E();var d=j("keys"),b=Object.keys(u||{}).map(function(e){return d+"["+f+"] !== "+JSON.stringify(e)}).concat(Object.keys(r.patternProperties||{}).map(function(e){return"!"+S(e)+".test("+d+"["+f+"])"})).join(" && ")||"true";M("var %s = Object.keys(%s)",d,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,d,f)("if (%s) {",b),!1===r.additionalProperties?(i&&M("delete %s",n+"["+d+"["+f+"]]"),c("has additional properties",null,JSON.stringify(n+".")+" + "+d+"["+f+"]")):R(n+"["+d+"["+f+"]]",r.additionalProperties,o,i,s.concat(["additionalProperties"])),M("}")("}"),"object"!==a&&M("}")}if(r.$ref){var v=function(e,t,n){var o=function(r){return r&&r.id===n?r:"object"==typeof r&&r?Object.keys(r).reduce(function(e,t){return e||o(r[t])},null):null},r=o(e);if(r)return r;n=(n=n.replace(/^#/,"")).replace(/\/$/,"");try{return T.get(e,decodeURI(n))}catch(e){var i,s=n.indexOf("#");if(0!==s)if(-1===s)i=t[n];else{i=t[n.slice(0,s)];var u=n.slice(s).replace(/^#/,"");try{return T.get(i,u)}catch(e){}}else i=t[n];return i||null}}(x,O&&O.schemas||{},r.$ref);if(v){var y=w[r.$ref];y||(w[r.$ref]=function(e){return y(e)},y=L(v,w,x,!1,O));p=j("ref");P[p]=y,M("if (!(%s(%s))) {",p,n),c("referenced schema does not match"),M("}")}}if(r.not){var _=j("prev");M("var %s = errors",_),R(n,r.not,!1,i,s.concat("not")),M("if (%s === errors) {",_),c("negative schema matches"),M("} else {")("errors = %s",_)("}")}if(r.items&&!t){"array"!==a&&M("if (%s) {",B.array(n));f=E();M("for (var %s = 0; %s < %s.length; %s++) {",f,f,n,f),R(n+"["+f+"]",r.items,o,i,s.concat("items")),M("}"),"array"!==a&&M("}")}if(r.patternProperties){"object"!==a&&M("if (%s) {",B.object(n));d=j("keys"),f=E();M("var %s = Object.keys(%s)",d,n)("for (var %s = 0; %s < %s.length; %s++) {",f,f,d,f),Object.keys(r.patternProperties).forEach(function(e){var t=S(e);M("if (%s.test(%s)) {",t,d+"["+f+"]"),R(n+"["+d+"["+f+"]]",r.patternProperties[e],o,i,s.concat(["patternProperties",e])),M("}")}),M("}"),"object"!==a&&M("}")}if(r.pattern){var m=S(r.pattern);"string"!==a&&M("if (%s) {",B.string(n)),M("if (!(%s.test(%s))) {",m,n),c("pattern mismatch"),M("}"),"string"!==a&&M("}")}if(r.allOf&&r.allOf.forEach(function(e,t){R(n,e,o,i,s.concat(["allOf",t]))}),r.anyOf&&r.anyOf.length){_=j("prev");r.anyOf.forEach(function(e,t){0===t?M("var %s = errors",_):M("if (errors !== %s) {",_)("errors = %s",_),R(n,e,!1,!1,s)}),r.anyOf.forEach(function(e,t){t&&M("}")}),M("if (%s !== errors) {",_),c("no schemas match"),M("}")}if(r.oneOf&&r.oneOf.length){_=j("prev");var g=j("passes");M("var %s = errors",_)("var %s = 0",g),r.oneOf.forEach(function(e,t){R(n,e,!1,!1,s),M("if (%s === errors) {",_)("%s++",g)("} else {")("errors = %s",_)("}")}),M("if (%s !== 1) {",g),c("no (or more than one) schemas match"),M("}")}for(void 0!==r.multipleOf&&("number"!==a&&"integer"!==a&&M("if (%s) {",B.number(n)),M("if (!isMultipleOf(%s, %d)) {",n,r.multipleOf),c("has a remainder"),M("}"),"number"!==a&&"integer"!==a&&M("}")),void 0!==r.maxProperties&&("object"!==a&&M("if (%s) {",B.object(n)),M("if (Object.keys(%s).length > %d) {",n,r.maxProperties),c("has more properties than allowed"),M("}"),"object"!==a&&M("}")),void 0!==r.minProperties&&("object"!==a&&M("if (%s) {",B.object(n)),M("if (Object.keys(%s).length < %d) {",n,r.minProperties),c("has less properties than allowed"),M("}"),"object"!==a&&M("}")),void 0!==r.maxItems&&("array"!==a&&M("if (%s) {",B.array(n)),M("if (%s.length > %d) {",n,r.maxItems),c("has more items than allowed"),M("}"),"array"!==a&&M("}")),void 0!==r.minItems&&("array"!==a&&M("if (%s) {",B.array(n)),M("if (%s.length < %d) {",n,r.minItems),c("has less items than allowed"),M("}"),"array"!==a&&M("}")),void 0!==r.maxLength&&("string"!==a&&M("if (%s) {",B.string(n)),M("if (%s.length > %d) {",n,r.maxLength),c("has longer length than allowed"),M("}"),"string"!==a&&M("}")),void 0!==r.minLength&&("string"!==a&&M("if (%s) {",B.string(n)),M("if (%s.length < %d) {",n,r.minLength),c("has less length than allowed"),M("}"),"string"!==a&&M("}")),void 0!==r.minimum&&("number"!==a&&"integer"!==a&&M("if (%s) {",B.number(n)),M("if (%s %s %d) {",n,r.exclusiveMinimum?"<=":"<",r.minimum),c("is less than minimum"),M("}"),"number"!==a&&"integer"!==a&&M("}")),void 0!==r.maximum&&("number"!==a&&"integer"!==a&&M("if (%s) {",B.number(n)),M("if (%s %s %d) {",n,r.exclusiveMaximum?">=":">",r.maximum),c("is more than maximum"),M("}"),"number"!==a&&"integer"!==a&&M("}")),u&&Object.keys(u).forEach(function(e){Array.isArray(a)&&-1!==a.indexOf("null")&&M("if (%s !== null) {",n),R(D(n,e),u[e],o,i,s.concat(t?e:["properties",e])),Array.isArray(a)&&-1!==a.indexOf("null")&&M("}")});e--;)M("}")},M=u("function validate(data) {")("if (data === undefined) data = null")("validate.errors = null")("var errors = 0");return R("data",e,t,O&&O.filter,[]),M("return errors === 0")("}"),(M=M.toFunction(P)).errors=null,Object.defineProperty&&Object.defineProperty(M,"error",{get:function(){return M.errors?M.errors.map(function(e){return e.field+" "+e.message}).join("\n"):""}}),M.toJSON=function(){return e},M};n.exports=function(e,t){return"string"==typeof e&&(e=JSON.parse(e)),L(e,{},e,!0,t)},n.exports.filter=function(e,t){var r=n.exports(e,a(t,{filter:!0}));return function(e){return r(e),e}}},{"./formats":418,"generate-function":409,"generate-object-property":410,jsonpointer:422,xtend:692}],420:[function(e,t,r){"use strict";t.exports=function(e){return/^[$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc][$A-Z\_a-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc0-9\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19b0-\u19c0\u19c8\u19c9\u19d0-\u19d9\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1dc0-\u1de6\u1dfc-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8e0-\ua8f1\ua900-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]*$/.test(e)}},{}],421:[function(e,t,r){"use strict";var n=e("has"),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,s=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u)return"[object RegExp]"===s.call(e);var t=i(e,"lastIndex");return!(!t||!n(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},{has:411}],422:[function(e,t,r){var n=/~/,o=/~[01]/g;function i(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function a(e){return n.test(e)?e.replace(o,i):e}function s(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e))return e;throw new Error("Invalid JSON pointer.")}function u(e,t){if("object"!=typeof e)throw new Error("Invalid input object.");var r=(t=s(t)).length;if(1===r)return e;for(var n=1;n<r;){if(e=e[a(t[n++])],r===n)return e;if("object"!=typeof e)return}}function c(e,t,r){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(t=s(t)).length)throw new Error("Invalid JSON pointer for set.");return function(e,t,r){for(var n,o,i=1,s=t.length;i<s&&(n=a(t[i++]),o=i<s,void 0===e[n]&&(Array.isArray(e)&&"-"===n&&(n=e.length),o&&(""!==t[i]&&t[i]<1/0||"-"===t[i]?e[n]=[]:e[n]={})),o);)e=e[n];var u=e[n];return void 0===r?delete e[n]:e[n]=r,u}(e,t,r)}r.get=u,r.set=c,r.compile=function(e){var r=s(e);return{get:function(e){return u(e,r)},set:function(e,t){return c(e,r,t)}}}},{}],423:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function o(t,r){Object.keys(t).forEach(function(e){r(t[e],e)})}function i(e){return!!("undefined"!=typeof Uint8Array&&e instanceof Uint8Array||e&&e.$Uint8ArrayPolyfill)}function c(e){return p(e)&&!i(e)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&t.field&&(e+=" for field '"+t.field+"'");var r=new Error(e);return r.name="ModifyJsError",r}var s=n(e("clone")),a=n(e("deep-equal")),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p=function(e){return Array.isArray(e)},h=o,d=function(e){return!!e&&("number"!=typeof e&&("string"!=typeof e&&("boolean"!=typeof e&&(!c(e)&&(null!==e&&(!(e instanceof RegExp)&&("function"!=typeof e&&(!(e instanceof Date)&&!i(e)))))))))},b=function(e,t){return e.every(function(e){return t&&t(e)||e})},v=o,y=function(e){return Object.keys(e)},_=function(e){return"object"===(void 0===e?"undefined":f(e))&&null!==e},m=function(r,e,u){if(u=u||{},!d(e))throw l("Modifier must be an object");var a;if(function(n,o){if(!d(n))return!1;var i=void 0;return h(n,function(e,t){var r="$"===t.substr(0,1);if(void 0===i)i=r;else if(i!==r){if(!o)throw new Error("Inconsistent operator: "+JSON.stringify(n));i=!1}}),!!i}(e=s(e))?(a=s(r),v(e,function(e,i){var s=x[i];if(!s)throw l("Invalid modifier specified "+i);v(e,function(e,t){if(""===t)throw l("An empty update path is not valid.");var r=t.split(".");if(!b(r))throw l("The update path '"+t+"' contains an empty field name, which is not allowed.");var n=g(a,r,{noCreate:w[i],forbidArray:"$rename"===i,arrayIndices:u.arrayIndices}),o=r.pop();s(n,o,e,t,a)})})):a=e,u.returnInsteadOfReplacing)return a;v(y(r),function(e){"_id"!==e&&delete r[e]}),v(a,function(e,t){r[t]=e})},g=function(e,t,r){r=r||{};for(var n,o=!1,i=0;i<t.length;i++){var s=i===t.length-1,u=t[i];if(!(c(n=e)||d(n))){if(r.noCreate)return;var a=l("cannot use the part '"+u+"' to traverse "+e);throw a.setPropertyError=!0,a}if(e instanceof Array){if(r.forbidArray)return null;if("$"===u){if(o)throw l("Too many positional (i.e. '$') elements");if(!r.arrayIndices||!r.arrayIndices.length)throw l("The positional operator did not find the match needed from the query");u=r.arrayIndices[0],o=!0}else{if(!/^[0-9]+$/.test(u)){if(r.noCreate)return;throw l("can't append to array using string field name ["+u+"]")}u=parseInt(u)}if(s&&(t[i]=u),r.noCreate&&u>=e.length)return;for(;e.length<u;)e.push(null);if(!s)if(e.length===u)e.push({});else if("object"!==f(e[u]))throw l("can't modify field '"+t[i+1]+"' of list value "+JSON.stringify(e[u]))}else if(!(u in e)){if(r.noCreate)return;s||(e[u]={})}if(s)return e;e=e[u]}},w={$unset:!0,$pop:!0,$rename:!0,$pull:!0,$pullAll:!0},x={$currentDate:function(e,t,r){if("object"===(void 0===r?"undefined":f(r))&&r.hasOwnProperty("$type")){if("date"!==r.$type)throw l("Minimongo does currently only support the date type in $currentDate modifiers",{field:t})}else if(!0!==r)throw l("Invalid $currentDate modifier",{field:t});e[t]=new Date},$min:function(e,t,r){if("number"!=typeof r)throw l("Modifier $min allowed for numbers only",{field:t});if(t in e){if("number"!=typeof e[t])throw l("Cannot apply $min modifier to non-number",{field:t});e[t]>r&&(e[t]=r)}else e[t]=r},$max:function(e,t,r){if("number"!=typeof r)throw l("Modifier $max allowed for numbers only",{field:t});if(t in e){if("number"!=typeof e[t])throw l("Cannot apply $max modifier to non-number",{field:t});e[t]<r&&(e[t]=r)}else e[t]=r},$inc:function(e,t,r){if("number"!=typeof r)throw l("Modifier $inc allowed for numbers only",{field:t});if(t in e){if("number"!=typeof e[t])throw l("Cannot apply $inc modifier to non-number",{field:t});e[t]+=r}else e[t]=r},$set:function(e,t,r){var n;if(!_(e))throw(n=l("Cannot set property on non-object field",{field:t})).setPropertyError=!0,n;if(null===e)throw(n=l("Cannot set property on null",{field:t})).setPropertyError=!0,n;e[t]=r},$setOnInsert:function(){},$unset:function(e,t){void 0!==e&&(e instanceof Array?t in e&&(e[t]=null):delete e[t])},$push:function(e,t,r){if(void 0===e[t]&&(e[t]=[]),!(e[t]instanceof Array))throw l("Cannot apply $push modifier to non-array",{field:t});if(r&&r.$each){var n=r.$each;if(!(n instanceof Array))throw l("$each must be an array",{field:t});var o=void 0;if("$position"in r){if("number"!=typeof r.$position)throw l("$position must be a numeric value",{field:t});if(r.$position<0)throw l("$position in $push must be zero or positive",{field:t});o=r.$position}var i=void 0;if("$slice"in r){if("number"!=typeof r.$slice)throw l("$slice must be a numeric value",{field:t});if(0<r.$slice)throw l("$slice in $push must be zero or negative",{field:t});i=r.$slice}if(r.$sort)throw l("$sort in $push not implemented yet");if(void 0===o)for(var s=0;s<n.length;s++)e[t].push(n[s]);else{var u=[o,0];for(s=0;s<n.length;s++)u.push(n[s]);Array.prototype.splice.apply(e[t],u)}void 0,void 0!==i&&(e[t]=0===i?[]:e[t].slice(i))}else e[t].push(r)},$pushAll:function(e,t,r){if(!("object"===(void 0===r?"undefined":f(r))&&r instanceof Array))throw l("Modifier $pushAll/pullAll allowed for arrays only");var n=e[t];if(void 0===n)e[t]=r;else{if(!(n instanceof Array))throw l("Cannot apply $pushAll modifier to non-array",{field:t});for(var o=0;o<r.length;o++)n.push(r[o])}},$addToSet:function(e,t,r){var n=!1;"object"===(void 0===r?"undefined":f(r))&&"$each"===Object.keys(r)[0]&&(n=!0);var o=n?r.$each:[r],i=e[t];if(void 0===i)e[t]=o;else{if(!(i instanceof Array))throw l("Cannot apply $addToSet modifier to non-array",{field:t});v(o,function(e){for(var t=0;t<i.length;t++)if(a(e,i[t]))return;i.push(e)})}},$pop:function(e,t,r){if(void 0!==e){var n=e[t];if(void 0!==n){if(!(n instanceof Array))throw l("Cannot apply $pop modifier to non-array",{field:t});"number"==typeof r&&r<0?n.splice(0,1):n.pop()}}},$pull:function(e,t){if(void 0!==e){var r=e[t];if(void 0!==r)throw r instanceof Array?l("$pull not implemented yet"):l("Cannot apply $pull/pullAll modifier to non-array",{field:t})}},$pullAll:function(e,t,r){if(!("object"===(void 0===r?"undefined":f(r))&&r instanceof Array))throw l("Modifier $pushAll/pullAll allowed for arrays only",{field:t});if(void 0!==e){var n=e[t];if(void 0!==n){if(!(n instanceof Array))throw l("Cannot apply $pull/pullAll modifier to non-array",{field:t});for(var o=[],i=0;i<n.length;i++){for(var s=!1,u=0;u<r.length;u++)if(a(n[i],r[u])){s=!0;break}s||o.push(n[i])}e[t]=o}}},$rename:function(e,t,r,n,o){if(n===r)throw l("$rename source must differ from target",{field:t});if(null===e)throw l("$rename source field invalid",{field:t});if("string"!=typeof r)throw l("$rename target must be a string",{field:t});if(-1<r.indexOf("\0"))throw l("The 'to' field for $rename cannot contain an embedded null byte",{field:t});if(void 0!==e){var i=e[t];delete e[t];var s=r.split("."),u=g(o,s,{forbidArray:!0});if(null===u)throw l("$rename target field invalid",{field:t});u[s.pop()]=i}},$bit:function(e,t){throw l("$bit is not supported",{field:t})}};t.exports=function(e,t,r){if(!r||!r.each)return m(e,t,u({},r,{returnInsteadOfReplacing:!0}))}},{clone:86,"deep-equal":403}],424:[function(e,t,r){"use strict";function n(e){return e!=e}t.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!n(e)||!n(t))}},{}],425:[function(e,t,r){"use strict";var n;if(!Object.keys){var p=Object.prototype.hasOwnProperty,h=Object.prototype.toString,d=e("./isArguments"),o=Object.prototype.propertyIsEnumerable,b=!o.call({toString:null},"toString"),v=o.call(function(){},"prototype"),y=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=function(e){var t=e.constructor;return t&&t.prototype===e},i={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!i["$"+e]&&p.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{_(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===h.call(e),n=d(e),o=t&&"[object String]"===h.call(e),i=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var s=v&&r;if(o&&0<e.length&&!p.call(e,0))for(var u=0;u<e.length;++u)i.push(String(u));if(n&&0<e.length)for(var a=0;a<e.length;++a)i.push(String(a));else for(var c in e)s&&"prototype"===c||!p.call(e,c)||i.push(String(c));if(b)for(var l=function(e){if("undefined"==typeof window||!m)return _(e);try{return _(e)}catch(e){return!1}}(e),f=0;f<y.length;++f)l&&"constructor"===y[f]||!p.call(e,y[f])||i.push(y[f]);return i}}t.exports=n},{"./isArguments":427}],426:[function(e,t,r){"use strict";var n=Array.prototype.slice,o=e("./isArguments"),i=Object.keys,s=i?function(e){return i(e)}:e("./implementation"),u=Object.keys;s.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return o(e)?u(n.call(e)):u(e)}):Object.keys=s;return Object.keys||s},t.exports=s},{"./implementation":425,"./isArguments":427}],427:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r=r||"[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===n.call(e.callee)}},{}],428:[function(e,r,t){!function(e,t){"use strict";"object"==typeof r&&"object"==typeof r.exports?r.exports=t():"function"==typeof define&&define.amd?define([],t):e.objectPath=t()}(this,function(){"use strict";var t=Object.prototype.toString;function i(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(!e)return!0;if(p(e)&&0===e.length)return!0;if("string"==typeof e)return!1;for(var t in e)if(i(e,t))return!1;return!0}function f(e){return t.call(e)}var p=Array.isArray||function(e){return"[object Array]"===t.call(e)};function h(e){var t=parseInt(e);return t.toString()===e?t:e}function e(o){o=o||{};var s=function(r){return Object.keys(s).reduce(function(e,t){return"create"===t||"function"==typeof s[t]&&(e[t]=s[t].bind(s,r)),e},{})};function u(e,t){return o.includeInheritedProps||"number"==typeof t&&Array.isArray(e)||i(e,t)}function a(e,t){if(u(e,t))return e[t]}function c(e,t,r,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if("string"==typeof t)return c(e,t.split(".").map(h),r,n);var o=t[0],i=a(e,o);return 1===t.length?(void 0!==i&&n||(e[o]=r),i):(void 0===i&&("number"==typeof t[1]?e[o]=[]:e[o]={}),c(e[o],t.slice(1),r,n))}return s.has=function(e,t){if("number"==typeof t?t=[t]:"string"==typeof t&&(t=t.split(".")),!t||0===t.length)return!!e;for(var r=0;r<t.length;r++){var n=h(t[r]);if(!("number"==typeof n&&p(e)&&n<e.length||(o.includeInheritedProps?n in Object(e):i(e,n))))return!1;e=e[n]}return!0},s.ensureExists=function(e,t,r){return c(e,t,r,!0)},s.set=function(e,t,r,n){return c(e,t,r,n)},s.insert=function(e,t,r,n){var o=s.get(e,t);n=~~n,p(o)||(o=[],s.set(e,t,o)),o.splice(n,0,r)},s.empty=function(e,t){var r,n;if(!l(t)&&(null!=e&&(r=s.get(e,t)))){if("string"==typeof r)return s.set(e,t,"");if("boolean"==typeof(i=r)||"[object Boolean]"===f(i))return s.set(e,t,!1);if("number"==typeof r)return s.set(e,t,0);if(p(r))r.length=0;else{if("object"!=typeof(o=r)||"[object Object]"!==f(o))return s.set(e,t,null);for(n in r)u(r,n)&&delete r[n]}var o,i}},s.push=function(e,t){var r=s.get(e,t);p(r)||(r=[],s.set(e,t,r)),r.push.apply(r,Array.prototype.slice.call(arguments,2))},s.coalesce=function(e,t,r){for(var n,o=0,i=t.length;o<i;o++)if(void 0!==(n=s.get(e,t[o])))return n;return r},s.get=function(e,t,r){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if(null==e)return r;if("string"==typeof t)return s.get(e,t.split("."),r);var n=h(t[0]),o=a(e,n);return void 0===o?r:1===t.length?o:s.get(e[n],t.slice(1),r)},s.del=function(e,t){if("number"==typeof t&&(t=[t]),null==e)return e;if(l(t))return e;if("string"==typeof t)return s.del(e,t.split("."));var r=h(t[0]);return u(e,r)?1!==t.length?s.del(e[r],t.slice(1)):(p(e)?e.splice(r,1):delete e[r],e):e},s}var r=e();return r.create=e,r.withInheritedProps=e({includeInheritedProps:!0}),r})},{}],429:[function(e,t,r){"use strict";var j=e("pouchdb-utils"),l=e("pouchdb-md5"),S=e("pouchdb-collections"),o=e("pouchdb-binary-utils"),E=e("pouchdb-collate"),k=e("pouchdb-errors"),P=e("pouchdb-fetch"),A=e("pouchdb-mapreduce-utils");function C(){this.promise=new Promise(function(e){e()})}function f(e){if(!e)return"undefined";switch(typeof e){case"function":case"string":return e.toString();default:return JSON.stringify(e)}}function R(o,i,s,u,t,r){var e,a,c=(e=u,f(s)+f(e)+"undefined");if(!t&&(a=o._cachedViews=o._cachedViews||{})[c])return a[c];var n=o.info().then(function(e){var n=e.db_name+"-mrview-"+(t?"temp":l.stringMd5(c));return j.upsert(o,"_local/"+r,function(e){e.views=e.views||{};var t=i;-1===t.indexOf("/")&&(t=i+"/"+i);var r=e.views[t]=e.views[t]||{};if(!r[n])return r[n]=!0,e}).then(function(){return o.registerDependentDatabase(n).then(function(e){var t=e.db;t.auto_compaction=!0;var r={name:n,db:t,sourceDB:o,adapter:o.adapter,mapFun:s,reduceFun:u};return r.db.get("_local/lastSeq").catch(function(e){if(404!==e.status)throw e}).then(function(e){return r.seq=e?e.seq:0,a&&r.db.once("destroyed",function(){delete a[c]}),r})})})});return a&&(a[c]=n),n}C.prototype.add=function(e){return this.promise=this.promise.catch(function(){}).then(function(){return e()}),this.promise},C.prototype.finish=function(){return this.promise};var i={},M=new C;function I(e){return-1===e.indexOf("/")?[e,e]:e.split("/")}function a(e,t){try{e.emit("error",t)}catch(e){j.guardedConsole("error","The user's map/reduce function threw an uncaught error.\nYou can debug this error by doing:\nmyDatabase.on('error', function (err) { debugger; });\nPlease double-check your map/reduce function."),j.guardedConsole("error",t)}}t.exports=function(l,r,d,f){function p(t,e,r){try{e(r)}catch(e){a(t,e)}}function b(t,e,r,n,o){try{return{output:e(r,n,o)}}catch(e){return a(t,e),{error:e}}}function h(e,t){var r=E.collate(e.key,t.key);return 0!==r?r:E.collate(e.value,t.value)}function v(e){var t=e.value;return t&&"object"==typeof t&&t._id||e.id}function y(t){return function(e){return t.include_docs&&t.attachments&&t.binary&&e.rows.forEach(function(e){var r=e.doc&&e.doc._attachments;r&&Object.keys(r).forEach(function(e){var t=r[e];r[e].data=o.base64StringToBlobOrBuffer(t.data,t.content_type)})}),e}}function _(e,t,r,n){var o=t[e];void 0!==o&&(n&&(o=encodeURIComponent(JSON.stringify(o))),r.push(e+"="+o))}function s(e){if(void 0!==e){var t=Number(e);return isNaN(t)||t!==parseInt(e,10)?e:t}}function m(r,e){var t=r.descending?"endkey":"startkey",n=r.descending?"startkey":"endkey";if(void 0!==r[t]&&void 0!==r[n]&&0<E.collate(r[t],r[n]))throw new A.QueryParseError("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(e.reduce&&!1!==r.reduce){if(r.include_docs)throw new A.QueryParseError("{include_docs:true} is invalid for reduce");if(r.keys&&1<r.keys.length&&!r.group&&!r.group_level)throw new A.QueryParseError("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(e){var t=function(e){if(e){if("number"!=typeof e)return new A.QueryParseError('Invalid value for integer: "'+e+'"');if(e<0)return new A.QueryParseError('Invalid value for positive integer: "'+e+'"')}}(r[e]);if(t)throw t})}function g(t){return function(e){if(404===e.status)return t;throw e}}function w(e,r,t){var n,o="_local/doc_"+e,i={_id:o,keys:[]},s=t.get(e),c=s[0],u=s[1];return(1===(n=u).length&&/^1-/.test(n[0].rev)?Promise.resolve(i):r.db.get(o).catch(g(i))).then(function(t){return((e=t).keys.length?r.db.allDocs({keys:e.keys,include_docs:!0}):Promise.resolve({rows:[]})).then(function(e){return function(e,t){for(var n=[],o=new S.Set,r=0,i=t.rows.length;r<i;r++){var s=t.rows[r].doc;if(s&&(n.push(s),o.add(s._id),s._deleted=!c.has(s._id),!s._deleted)){var u=c.get(s._id);"value"in u&&(s.value=u.value)}}var a=A.mapToKeysArray(c);return a.forEach(function(e){if(!o.has(e)){var t={_id:e},r=c.get(e);"value"in r&&(t.value=r.value),n.push(t)}}),e.keys=A.uniq(a.concat(e.keys)),n.push(e),n}(t,e)});var e})}function n(e){var t="string"==typeof e?e:e.name,r=i[t];return r=r||(i[t]=new C)}function x(t){return A.sequentialize(n(t),function(){return l=r((u=t).mapFun,function(e,t){var r={id:c._id,key:E.normalizeKey(e)};null!=t&&(r.value=E.normalizeKey(t)),a.push(r)}),f=u.seq||0,i=new C,o().then(function(){return i.finish()}).then(function(){u.seq=f});function n(r,i){return function(){return t=r,o=i,e="_local/lastSeq",(n=u).db.get(e).catch(g({_id:e,seq:0})).then(function(r){var e=A.mapToKeysArray(t);return Promise.all(e.map(function(e){return w(e,n,t)})).then(function(e){var t=j.flatten(e);return r.seq=o,t.push(r),n.db.bulkDocs({docs:t})})});var n,t,o,e}}function o(){return u.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:f,limit:50}).then(e)}function e(e){var t=e.results;if(t.length){var r=function(e){for(var t=new S.Map,r=0,n=e.length;r<n;r++){var o=e[r];if("_"!==o.doc._id[0]){a=[],(c=o.doc)._deleted||p(u.sourceDB,l,c),a.sort(h);var i=s(a);t.set(o.doc._id,[i,o.changes])}f=o.seq}return t}(t);if(i.add(n(r,f)),!(t.length<50))return o()}}function s(e){for(var t,r=new S.Map,n=0,o=e.length;n<o;n++){var i=e[n],s=[i.key,i.id];0<n&&0===E.collate(i.key,t)&&s.push(n),r.set(E.toIndexableString(s),i),t=i.key}return r}var u,a,c,l,f,i})()}function O(e,t){return A.sequentialize(n(e),function(){return function(n,o){var i,s=n.reduceFun&&!1!==o.reduce,u=o.skip||0;void 0===o.keys||o.keys.length||(o.limit=0,delete o.keys);function r(e){return e.include_docs=!0,n.db.allDocs(e).then(function(e){return i=e.total_rows,e.rows.map(function(e){if("value"in e.doc&&"object"==typeof e.doc.value&&null!==e.doc.value){var t=Object.keys(e.doc.value).sort(),r=["id","key","value"];if(!(t<r||r<t))return e.doc.value}var n=E.parseIndexableString(e.doc._id);return{key:n[0],id:n[1],value:"value"in e.doc?e.doc.value:null}})})}function e(t){var r;if(r=s?function(e,t,r){0===r.group_level&&delete r.group_level;var n,o,i,s=r.group||r.group_level,u=d(e.reduceFun),a=[],c=isNaN(r.group_level)?Number.POSITIVE_INFINITY:r.group_level;t.forEach(function(e){var t=a[a.length-1],r=s?e.key:null;if(s&&Array.isArray(r)&&(r=r.slice(0,c)),t&&0===E.collate(t.groupKey,r))return t.keys.push([e.key,e.id]),void t.values.push(e.value);a.push({keys:[[e.key,e.id]],values:[e.value],groupKey:r})}),t=[];for(var l=0,f=a.length;l<f;l++){var p=a[l],h=b(e.sourceDB,u,p.keys,p.values,!1);if(h.error&&h.error instanceof A.BuiltInError)throw h.error;t.push({value:h.error?null:h.output,key:p.groupKey})}return{rows:(n=t,o=r.limit,i=(i=r.skip)||0,"number"==typeof o?n.slice(i,o+i):0<i?n.slice(i):n)}}(n,t,o):{total_rows:i,offset:u,rows:t},o.update_seq&&(r.update_seq=n.seq),o.include_docs){var e=A.uniq(t.map(v));return n.sourceDB.allDocs({keys:e,include_docs:!0,conflicts:o.conflicts,attachments:o.attachments,binary:o.binary}).then(function(e){var n=new S.Map;return e.rows.forEach(function(e){n.set(e.id,e.doc)}),t.forEach(function(e){var t=v(e),r=n.get(t);r&&(e.doc=r)}),r})}return r}{if(void 0!==o.keys){var t=o.keys.map(function(e){var t={startkey:E.toIndexableString([e]),endkey:E.toIndexableString([e,{}])};return o.update_seq&&(t.update_seq=!0),r(t)});return Promise.all(t).then(j.flatten).then(e)}var a,c,l={descending:o.descending};if(o.update_seq&&(l.update_seq=!0),"start_key"in o&&(a=o.start_key),"startkey"in o&&(a=o.startkey),"end_key"in o&&(c=o.end_key),"endkey"in o&&(c=o.endkey),void 0!==a&&(l.startkey=o.descending?E.toIndexableString([a,{}]):E.toIndexableString([a])),void 0!==c){var f=!1!==o.inclusive_end;o.descending&&(f=!f),l.endkey=E.toIndexableString(f?[c,{}]:[c])}if(void 0!==o.key){var p=E.toIndexableString([o.key]),h=E.toIndexableString([o.key,{}]);l.descending?(l.endkey=p,l.startkey=h):(l.startkey=p,l.endkey=h)}return s||("number"==typeof o.limit&&(l.limit=o.limit),l.skip=u),r(l).then(e)}}(e,t)})()}function u(r,e,n){if("function"==typeof r._query)return t=r,o=e,i=n,new Promise(function(r,n){t._query(o,i,function(e,t){if(e)return n(e);r(t)})});var t,o,i;if(j.isRemote(r))return function(e,t,r){var n,o,i,s=[],u="GET";if(_("reduce",r,s),_("include_docs",r,s),_("attachments",r,s),_("limit",r,s),_("descending",r,s),_("group",r,s),_("group_level",r,s),_("skip",r,s),_("stale",r,s),_("conflicts",r,s),_("startkey",r,s,!0),_("start_key",r,s,!0),_("endkey",r,s,!0),_("end_key",r,s,!0),_("inclusive_end",r,s),_("key",r,s,!0),_("update_seq",r,s),s=""===(s=s.join("&"))?"":"?"+s,void 0!==r.keys){var a="keys="+encodeURIComponent(JSON.stringify(r.keys));a.length+s.length+1<=2e3?s+=("?"===s[0]?"&":"?")+a:(u="POST","string"==typeof t?n={keys:r.keys}:t.keys=r.keys)}if("string"!=typeof t)return n=n||{},Object.keys(t).forEach(function(e){Array.isArray(t[e])?n[e]=t[e]:n[e]=t[e].toString()}),e.fetch("_temp_view"+s,{headers:new P.Headers({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(n)}).then(function(e){return o=e.ok,i=e.status,e.json()}).then(function(e){if(!o)throw e.status=i,k.generateErrorFromResponse(e);return e}).then(y(r));var c=I(t);return e.fetch("_design/"+c[0]+"/_view/"+c[1]+s,{headers:new P.Headers({"Content-Type":"application/json"}),method:u,body:JSON.stringify(n)}).then(function(e){return o=e.ok,i=e.status,e.json()}).then(function(e){if(!o)throw e.status=i,k.generateErrorFromResponse(e);return e.rows.forEach(function(e){if(e.value&&e.value.error&&"builtin_reduce_error"===e.value.error)throw new Error(e.reason)}),e}).then(y(r))}(r,e,n);if("string"!=typeof e)return m(n,e),M.add(function(){return R(r,"temp_view/temp_view",e.map,e.reduce,!0,l).then(function(e){return A.fin(x(e).then(function(){return O(e,n)}),function(){return e.db.destroy()})})}),M.finish();var s=e,u=I(s),a=u[0],c=u[1];return r.get("_design/"+a).then(function(e){var t=e.views&&e.views[c];if(!t)throw new A.NotFoundError("ddoc "+e._id+" has no view named "+c);return f(e,c),m(n,t),R(r,s,t.map,t.reduce,!1,l).then(function(e){return"ok"===n.stale||"update_after"===n.stale?("update_after"===n.stale&&j.nextTick(function(){x(e)}),O(e,n)):x(e).then(function(){return O(e,n)})})})}return{query:function(e,t,r){var n,o=this;"function"==typeof t&&(r=t,t={}),t=t?((n=t).group_level=s(n.group_level),n.limit=s(n.limit),n.skip=s(n.skip),n):{},"function"==typeof e&&(e={map:e});var i=Promise.resolve().then(function(){return u(o,e,t)});return A.promisedCallback(i,r),i},viewCleanup:A.callbackify(function(){var e,r;return"function"==typeof this._viewCleanup?(e=this,new Promise(function(r,n){e._viewCleanup(function(e,t){if(e)return n(e);r(t)})})):j.isRemote(this)?this.fetch("_view_cleanup",{headers:new P.Headers({"Content-Type":"application/json"}),method:"POST"}).then(function(e){return e.json()}):(r=this).get("_local/"+l).then(function(u){var a=new S.Map;Object.keys(u.views).forEach(function(e){var t=I(e),r="_design/"+t[0],n=t[1],o=a.get(r);o||(o=new S.Set,a.set(r,o)),o.add(n)});var e={keys:A.mapToKeysArray(a),include_docs:!0};return r.allDocs(e).then(function(e){var s={};e.rows.forEach(function(o){var i=o.key.substring(8);a.get(o.key).forEach(function(e){var t=i+"/"+e;u.views[t]||(t=e);var r=Object.keys(u.views[t]),n=o.doc&&o.doc.views&&o.doc.views[e];r.forEach(function(e){s[e]=s[e]||n})})});var t=Object.keys(s).filter(function(e){return!s[e]}).map(function(e){return A.sequentialize(n(e),function(){return new r.constructor(e,r.__opts).destroy()})()});return Promise.all(t).then(function(){return{ok:!0}})})},g({ok:!0}))})}}},{"pouchdb-binary-utils":431,"pouchdb-collate":432,"pouchdb-collections":433,"pouchdb-errors":434,"pouchdb-fetch":435,"pouchdb-mapreduce-utils":463,"pouchdb-md5":436,"pouchdb-utils":437}],430:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],431:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});function n(e){return atob(e)}function o(e){return btoa(e)}function i(t,r){t=t||[],r=r||{};try{return new Blob(t,r)}catch(e){if("TypeError"!==e.name)throw e;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),o=0;o<t.length;o+=1)n.append(t[o]);return n.getBlob(r.type)}}function s(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),o=0;o<t;o++)n[o]=e.charCodeAt(o);return r}function u(e,t){return i([s(e)],{type:t})}function a(e,r){var t=new FileReader,n="function"==typeof t.readAsBinaryString;t.onloadend=function(e){var t=e.target.result||"";if(n)return r(t);r(function(e){for(var t="",r=new Uint8Array(e),n=r.byteLength,o=0;o<n;o++)t+=String.fromCharCode(r[o]);return t}(t))},n?t.readAsBinaryString(e):t.readAsArrayBuffer(e)}function c(e,t){a(e,function(e){t(e)})}r.atob=n,r.btoa=o,r.base64StringToBlobOrBuffer=function(e,t){return u(n(e),t)},r.binaryStringToArrayBuffer=s,r.binaryStringToBlobOrBuffer=u,r.blob=i,r.blobOrBufferToBase64=function(e,t){c(e,function(e){t(o(e))})},r.blobOrBufferToBinaryString=c,r.readAsArrayBuffer=function(e,r){var t=new FileReader;t.onloadend=function(e){var t=e.target.result||new ArrayBuffer(0);r(t)},t.readAsArrayBuffer(e)},r.readAsBinaryString=a,r.typedBuffer=function(){}},{}],432:[function(e,t,r){"use strict";function a(e,t,r){return function(e,t,r){for(var n="",o=r-e.length;n.length<o;)n+=t;return n}(e,t,r)+e}Object.defineProperty(r,"__esModule",{value:!0});var c=-324,l=3,f="";function u(e,t){if(e===t)return 0;e=s(e),t=s(t);var r,n,o=b(e),i=b(t);if(o-i!=0)return o-i;switch(typeof e){case"number":return e-t;case"boolean":return e<t?-1:1;case"string":return(r=e)===(n=t)?0:n<r?1:-1}return Array.isArray(e)?function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){var o=u(e[n],t[n]);if(0!==o)return o}return e.length===t.length?0:e.length>t.length?1:-1}(e,t):function(e,t){for(var r=Object.keys(e),n=Object.keys(t),o=Math.min(r.length,n.length),i=0;i<o;i++){var s=u(r[i],n[i]);if(0!==s)return s;if(0!==(s=u(e[r[i]],t[n[i]])))return s}return r.length===n.length?0:r.length>n.length?1:-1}(e,t)}function s(e){switch(typeof e){case"undefined":return null;case"number":return e===1/0||e===-1/0||isNaN(e)?null:e;case"object":var t=e;if(Array.isArray(e)){var r=e.length;e=new Array(r);for(var n=0;n<r;n++)e[n]=s(t[n])}else{if(e instanceof Date)return e.toJSON();if(null!==e)for(var o in e={},t)if(t.hasOwnProperty(o)){var i=t[o];void 0!==i&&(e[o]=s(i))}}}return e}function n(e){if(null!==e)switch(typeof e){case"boolean":return e?1:0;case"number":return function(e){if(0===e)return"1";var t=e.toExponential().split(/e\+?/),r=parseInt(t[1],10),n=e<0,o=n?"0":"2",i=a(((n?-r:r)-c).toString(),"0",l);o+=f+i;var s=Math.abs(parseFloat(t[0]));n&&(s=10-s);var u=s.toFixed(20);return u=u.replace(/\.?0+$/,""),o+=f+u}(e);case"string":return e.replace(/\u0002/g,"").replace(/\u0001/g,"").replace(/\u0000/g,"");case"object":var t=Array.isArray(e),r=t?e:Object.keys(e),n=-1,o=r.length,i="";if(t)for(;++n<o;)i+=p(r[n]);else for(;++n<o;){var s=r[n];i+=p(s)+p(e[s])}return i}return""}function p(e){return b(e=s(e))+f+n(e)+"\0"}function h(e,t){var r,n=t;if("1"===e[t])r=0,t++;else{var o="0"===e[t];t++;var i="",s=e.substring(t,t+l),u=parseInt(s,10)+c;for(o&&(u=-u),t+=l;;){var a=e[t];if("\0"===a)break;i+=a,t++}r=1===(i=i.split(".")).length?parseInt(i,10):parseFloat(i[0]+"."+i[1]),o&&(r-=10),0!==u&&(r=parseFloat(r+"e"+u))}return{num:r,length:t-n}}function d(e,t){var r=e.pop();if(t.length){var n=t[t.length-1];r===n.element&&(t.pop(),n=t[t.length-1]);var o=n.element,i=n.index;if(Array.isArray(o))o.push(r);else if(i===e.length-2){o[e.pop()]=r}else e.push(r)}}function b(e){var t=["boolean","number","string","object"].indexOf(typeof e);return~t?null===e?1:Array.isArray(e)?5:t<3?t+2:t+3:Array.isArray(e)?5:void 0}r.collate=u,r.normalizeKey=s,r.toIndexableString=p,r.parseIndexableString=function(e){for(var t=[],r=[],n=0;;){var o=e[n++];if("\0"!==o)switch(o){case"1":t.push(null);break;case"2":t.push("1"===e[n]),n++;break;case"3":var i=h(e,n);t.push(i.num),n+=i.length;break;case"4":for(var s="";;){var u=e[n];if("\0"===u)break;s+=u,n++}s=s.replace(/\u0001\u0001/g,"\0").replace(/\u0001\u0002/g,"").replace(/\u0002\u0002/g,""),t.push(s);break;case"5":var a={element:[],index:t.length};t.push(a.element),r.push(a);break;case"6":var c={element:{},index:t.length};t.push(c.element),r.push(c);break;default:throw new Error("bad collationIndex or unexpectedly reached end of input: "+o)}else{if(1===t.length)return t.pop();d(t,r)}}}},{}],433:[function(e,t,r){"use strict";function n(e){return"$"+e}function o(){this._store={}}function i(e){if(this._store=new o,e&&Array.isArray(e))for(var t=0,r=e.length;t<r;t++)this.add(e[t])}Object.defineProperty(r,"__esModule",{value:!0}),o.prototype.get=function(e){var t=n(e);return this._store[t]},o.prototype.set=function(e,t){var r=n(e);return this._store[r]=t,!0},o.prototype.has=function(e){return n(e)in this._store},o.prototype.delete=function(e){var t=n(e),r=t in this._store;return delete this._store[t],r},o.prototype.forEach=function(e){for(var t=Object.keys(this._store),r=0,n=t.length;r<n;r++){var o=t[r];e(this._store[o],o=o.substring(1))}},Object.defineProperty(o.prototype,"size",{get:function(){return Object.keys(this._store).length}}),i.prototype.add=function(e){return this._store.set(e,!0)},i.prototype.has=function(e){return this._store.has(e)},i.prototype.forEach=function(r){this._store.forEach(function(e,t){r(t)})},Object.defineProperty(i.prototype,"size",{get:function(){return this._store.size}}),!function(){if("undefined"==typeof Symbol||"undefined"==typeof Map||"undefined"==typeof Set)return!1;var e=Object.getOwnPropertyDescriptor(Map,Symbol.species);return e&&"get"in e&&Map[Symbol.species]===Map}()?(r.Set=i,r.Map=o):(r.Set=Set,r.Map=Map)},{}],434:[function(e,t,r){"use strict";var n;function o(e,t,r){Error.call(this,r),this.status=e,this.name=t,this.message=r,this.error=!0}Object.defineProperty(r,"__esModule",{value:!0}),((n=e("inherits"))&&"object"==typeof n&&"default"in n?n.default:n)(o,Error),o.prototype.toString=function(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})};var i=new o(401,"unauthorized","Name or password is incorrect."),s=new o(400,"bad_request","Missing JSON list of 'docs'"),u=new o(404,"not_found","missing"),a=new o(409,"conflict","Document update conflict"),c=new o(400,"bad_request","_id field must contain a string"),l=new o(412,"missing_id","_id is required for puts"),f=new o(400,"bad_request","Only reserved document ids may start with underscore."),p=new o(412,"precondition_failed","Database not open"),h=new o(500,"unknown_error","Database encountered an unknown error"),d=new o(500,"badarg","Some query argument is invalid"),b=new o(400,"invalid_request","Request was invalid"),v=new o(400,"query_parse_error","Some query parameter is invalid"),y=new o(500,"doc_validation","Bad special document member"),_=new o(400,"bad_request","Something wrong with the request"),m=new o(400,"bad_request","Document must be a JSON object"),g=new o(404,"not_found","Database not found"),w=new o(500,"indexed_db_went_bad","unknown"),x=new o(500,"web_sql_went_bad","unknown"),O=new o(500,"levelDB_went_went_bad","unknown"),j=new o(403,"forbidden","Forbidden by design doc validate_doc_update function"),S=new o(400,"bad_request","Invalid rev format"),E=new o(412,"file_exists","The database could not be created, the file already exists."),k=new o(412,"missing_stub","A pre-existing attachment stub wasn't found"),P=new o(413,"invalid_url","Provided URL is invalid");r.UNAUTHORIZED=i,r.MISSING_BULK_DOCS=s,r.MISSING_DOC=u,r.REV_CONFLICT=a,r.INVALID_ID=c,r.MISSING_ID=l,r.RESERVED_ID=f,r.NOT_OPEN=p,r.UNKNOWN_ERROR=h,r.BAD_ARG=d,r.INVALID_REQUEST=b,r.QUERY_PARSE_ERROR=v,r.DOC_VALIDATION=y,r.BAD_REQUEST=_,r.NOT_AN_OBJECT=m,r.DB_MISSING=g,r.WSQ_ERROR=x,r.LDB_ERROR=O,r.FORBIDDEN=j,r.INVALID_REV=S,r.FILE_EXISTS=E,r.MISSING_STUB=k,r.IDB_ERROR=w,r.INVALID_URL=P,r.createError=function(r,e){function t(e){for(var t in r)"function"!=typeof r[t]&&(this[t]=r[t]);void 0!==e&&(this.reason=e)}return t.prototype=o.prototype,new t(e)},r.generateErrorFromResponse=function(e){if("object"!=typeof e){var t=e;(e=h).data=t}return"error"in e&&"conflict"===e.error&&(e.name="conflict",e.status=409),"name"in e||(e.name=e.error||"unknown"),"status"in e||(e.status=500),"message"in e||(e.message=e.message||e.reason),e}},{inherits:430}],435:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n="undefined"!=typeof AbortController?AbortController:function(){return{abort:function(){}}},o=fetch,i=Headers;r.fetch=o,r.Headers=i,r.AbortController=n},{}],436:[function(r,e,n){(function(e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t,p=r("pouchdb-binary-utils"),h=(t=r("spark-md5"))&&"object"==typeof t&&"default"in t?t.default:t,d=e.setImmediate||e.setTimeout;function b(t,e,r,n,o){var i,s,u;(0<r||n<e.size)&&(s=r,u=n,e=(i=e).webkitSlice?i.webkitSlice(s,u):i.slice(s,u)),p.readAsArrayBuffer(e,function(e){t.append(e),o()})}function v(e,t,r,n,o){(0<r||n<t.length)&&(t=t.substring(r,n)),e.appendBinary(t),o()}n.binaryMd5=function(r,n){var e="string"==typeof r,t=e?r.length:r.size,o=Math.min(32768,t),i=Math.ceil(t/o),s=0,u=e?new h:new h.ArrayBuffer,a=e?v:b;function c(){d(f)}function l(){var e,t=u.end(!0),r=(e=t,p.btoa(e));n(r),u.destroy()}function f(){var e=s*o,t=e+o;a(u,r,e,t,++s<i?c:l)}f()},n.stringMd5=function(e){return h.hash(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"pouchdb-binary-utils":431,"spark-md5":683}],437:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(r,"__esModule",{value:!0});var o=n(e("argsarray")),u=e("pouchdb-collections"),a=n(e("immediate")),i=e("events"),s=n(e("inherits")),c=e("pouchdb-errors"),l=n(e("uuid")),f=e("pouchdb-md5"),p=e("pouchdb-utils");function h(e){if(e instanceof ArrayBuffer)return function(e){if("function"==typeof e.slice)return e.slice(0);var t=new ArrayBuffer(e.byteLength),r=new Uint8Array(t),n=new Uint8Array(e);return r.set(n),t}(e);var t=e.size,r=e.type;return"function"==typeof e.slice?e.slice(0,t,r):e.webkitSlice(0,t,r)}var d=Function.prototype.toString,b=d.call(Object);function v(e){var t,r,n,o;if(!e||"object"!=typeof e)return e;if(Array.isArray(e)){for(t=[],r=0,n=e.length;r<n;r++)t[r]=v(e[r]);return t}if(e instanceof Date)return e.toISOString();if(o=e,"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer||"undefined"!=typeof Blob&&o instanceof Blob)return h(e);if(!function(e){var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=t.constructor;return"function"==typeof r&&r instanceof r&&d.call(r)==b}(e))return e;for(r in t={},e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=v(e[r]);void 0!==i&&(t[r]=i)}return t}function y(t){var r=!1;return o(function(e){if(r)throw new Error("once called more than once");r=!0,t.apply(this,e)})}function _(s){return o(function(o){o=v(o);var i=this,t="function"==typeof o[o.length-1]&&o.pop(),e=new Promise(function(r,n){var e;try{var t=y(function(e,t){e?n(e):r(t)});o.push(t),(e=s.apply(i,o))&&"function"==typeof e.then&&r(e)}catch(e){n(e)}});return t&&e.then(function(e){t(null,e)},t),e})}function m(e,t){for(var r={},n=0,o=t.length;n<o;n++){var i=t[n];i in e&&(r[i]=e[i])}return r}var g;function w(e){return e}function x(e){return[{ok:e}]}try{localStorage.setItem("_pouch_check_localstorage",1),g=!!localStorage.getItem("_pouch_check_localstorage")}catch(e){g=!1}function O(){return g}function j(){var t;i.EventEmitter.call(this),this._listeners={},t=this,O()&&addEventListener("storage",function(e){t.emit(e.key)})}function S(e){if("undefined"!=typeof console&&"function"==typeof console[e]){var t=Array.prototype.slice.call(arguments,1);console[e].apply(console,t)}}s(j,i.EventEmitter),j.prototype.addListener=function(e,t,r,n){if(!this._listeners[t]){var o=this,i=!1;this._listeners[t]=s,this.on(e,s)}function s(){if(o._listeners[t])if(i)i="waiting";else{i=!0;var e=m(n,["style","include_docs","attachments","conflicts","filter","doc_ids","view","since","query_params","binary","return_docs"]);r.changes(e).on("change",function(e){e.seq>n.since&&!n.cancelled&&(n.since=e.seq,n.onChange(e))}).on("complete",function(){"waiting"===i&&a(s),i=!1}).on("error",function(){i=!1})}}},j.prototype.removeListener=function(e,t){t in this._listeners&&(i.EventEmitter.prototype.removeListener.call(this,e,this._listeners[t]),delete this._listeners[t])},j.prototype.notifyLocalWindows=function(e){O()&&(localStorage[e]="a"===localStorage[e]?"b":"a")},j.prototype.notify=function(e){this.emit(e),this.notifyLocalWindows(e)};var E="function"==typeof Object.assign?Object.assign:function(e){for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var k=function(){}.name?function(e){return e.name}:function(e){var t=e.toString().match(/^\s*function\s*(?:(\S+)\s*)?\(/);return t&&t[1]?t[1]:""};function P(e){if(!e)return null;var t=e.split("/");return 2===t.length?t:1===t.length?[e,e]:null}var A=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],C=/(?:^|&)([^&=]*)=?([^&]*)/g,R=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;function M(c,l,f){return new Promise(function(u,a){c.get(l,function(e,t){if(e){if(404!==e.status)return a(e);t={}}var r,n,o,i=t._rev,s=f(t);if(!s)return u({updated:!1,rev:i});s._id=l,s._rev=i,u((n=s,o=f,(r=c).put(n).then(function(e){return{updated:!0,rev:e.rev}},function(e){if(409!==e.status)throw e;return M(r,n._id,o)})))})})}var I=l.v4;r.adapterFun=function(i,e){return _(o(function(n){if(this._closed)return Promise.reject(new Error("database is closed"));if(this._destroyed)return Promise.reject(new Error("database is destroyed"));var o=this;return function(n,o,e){if(n.constructor.listeners("debug").length){for(var t=["api",n.name,o],r=0;r<e.length-1;r++)t.push(e[r]);n.constructor.emit("debug",t);var i=e[e.length-1];e[e.length-1]=function(e,t){var r=["api",n.name,o];r=r.concat(e?["error",e]:["success",t]),n.constructor.emit("debug",r),i(e,t)}}}(o,i,n),this.taskqueue.isReady?e.apply(this,n):new Promise(function(t,r){o.taskqueue.addTask(function(e){e?r(e):t(o[i].apply(o,n))})})}))},r.assign=E,r.bulkGetShim=function(o,a,e){var t=a.docs,c=new u.Map;t.forEach(function(e){c.has(e.id)?c.get(e.id).push(e):c.set(e.id,[e])});var n=c.size,i=0,l=new Array(n);function f(){var r;++i===n&&(r=[],l.forEach(function(t){t.docs.forEach(function(e){r.push({id:t.id,docs:[e]})})}),e(null,{results:r}))}var r=[];c.forEach(function(e,t){r.push(t)});var s=0;function p(){if(!(s>=r.length)){var n,e=Math.min(s+6,r.length),t=r.slice(s,e);n=s,t.forEach(function(i,e){var s=n+e,t=c.get(i),r=m(t[0],["atts_since","attachments"]);r.open_revs=t.map(function(e){return e.rev}),r.open_revs=r.open_revs.filter(w);var u=w;0===r.open_revs.length&&(delete r.open_revs,u=x),["revs","attachments","binary","ajax","latest"].forEach(function(e){e in a&&(r[e]=a[e])}),o.get(i,r,function(e,t){var r,n,o;r=e?[{error:e}]:u(t),n=i,o=r,l[s]={id:n,docs:o},f(),p()})}),s+=t.length}}p()},r.changesHandler=j,r.clone=v,r.defaultBackOff=function(e){var t,r,n=0;return e||(n=2e3),t=e,r=n,t=parseInt(t,10)||0,(r=parseInt(r,10))!=r||r<=t?r=(t||1)<<1:r+=1,6e5<r&&(t=3e5,r=6e5),~~((r-t)*Math.random()+t)},r.explainError=function(e,t){S("info","The above "+e+" is totally normal. "+t)},r.filterChange=function(n){var o={},i=n.filter&&"function"==typeof n.filter;return o.query=n.query_params,function(e){e.doc||(e.doc={});var t=i&&function(e,t,r){try{return!e(t,r)}catch(e){var n="Filter function threw: "+e.toString();return c.createError(c.BAD_REQUEST,n)}}(n.filter,e.doc,o);if("object"==typeof t)return t;if(t)return!1;if(n.include_docs){if(!n.attachments)for(var r in e.doc._attachments)e.doc._attachments.hasOwnProperty(r)&&(e.doc._attachments[r].stub=!0)}else delete e.doc;return!0}},r.flatten=function(e){for(var t=[],r=0,n=e.length;r<n;r++)t=t.concat(e[r]);return t},r.functionName=k,r.guardedConsole=S,r.hasLocalStorage=O,r.invalidIdError=function(e){var t;if(e?"string"!=typeof e?t=c.createError(c.INVALID_ID):/^_/.test(e)&&!/^_(design|local)/.test(e)&&(t=c.createError(c.RESERVED_ID)):t=c.createError(c.MISSING_ID),t)throw t},r.isRemote=function(e){return"boolean"==typeof e._remote?e._remote:"function"==typeof e.type&&(S("warn","db.type() is deprecated and will be removed in a future version of PouchDB"),"http"===e.type())},r.listenerCount=function(e,t){return"listenerCount"in e?e.listenerCount(t):i.EventEmitter.listenerCount(e,t)},r.nextTick=a,r.normalizeDdocFunctionName=function(e){var t=P(e);return t?t.join("/"):null},r.once=y,r.parseDdocFunctionName=P,r.parseUri=function(e){for(var t=R.exec(e),n={},r=14;r--;){var o=A[r],i=t[r]||"",s=-1!==["user","password"].indexOf(o);n[o]=s?decodeURIComponent(i):i}return n.queryKey={},n[A[12]].replace(C,function(e,t,r){t&&(n.queryKey[t]=r)}),n},r.pick=m,r.rev=function(e,t){var r=p.clone(e);return t?(delete r._rev_tree,f.stringMd5(JSON.stringify(r))):l.v4().replace(/-/g,"").toLowerCase()},r.scopeEval=function(e,t){var r=[],n=[];for(var o in t)t.hasOwnProperty(o)&&(r.push(o),n.push(t[o]));return r.push(e),Function.apply(null,r).apply(null,n)},r.toPromise=_,r.upsert=M,r.uuid=I},{argsarray:66,events:406,immediate:413,inherits:430,"pouchdb-collections":433,"pouchdb-errors":434,"pouchdb-md5":436,"pouchdb-utils":437,uuid:686}],438:[function(r,n,e){(function(a){"use strict";var e,i=(e=r("argsarray"))&&"object"==typeof e&&"default"in e?e.default:e,m=r("pouchdb-fetch"),l=r("pouchdb-errors"),g=r("pouchdb-utils"),h=r("pouchdb-binary-utils");var w=25,f=50,x=5e3,O=1e4,s={};function j(e){var t=e.doc||e.ok,r=t&&t._attachments;r&&Object.keys(r).forEach(function(e){var t=r[e];t.data=h.base64StringToBlobOrBuffer(t.data,t.content_type)})}function d(e){return/^_design/.test(e)?"_design/"+encodeURIComponent(e.slice(8)):/^_local/.test(e)?"_local/"+encodeURIComponent(e.slice(7)):encodeURIComponent(e)}function b(r){return r._attachments&&Object.keys(r._attachments)?Promise.all(Object.keys(r._attachments).map(function(e){var t=r._attachments[e];if(t.data&&"string"!=typeof t.data)return new Promise(function(e){h.blobOrBufferToBase64(t.data,e)}).then(function(e){t.data=e})})):Promise.resolve()}function S(e,t){if(function(e){if(!e.prefix)return!1;var t=g.parseUri(e.prefix).protocol;return"http"===t||"https"===t}(t)){var r=t.name.substr(t.prefix.length);e=t.prefix.replace(/\/?$/,"/")+encodeURIComponent(r)}var n=g.parseUri(e);(n.user||n.password)&&(n.auth={username:n.user,password:n.password});var o=n.path.replace(/(^\/|\/$)/g,"").split("/");return n.db=o.pop(),-1===n.db.indexOf("%")&&(n.db=encodeURIComponent(n.db)),n.path=o.join("/"),n}function E(e,t){return k(e,e.db+"/"+t)}function k(e,t){var r=e.path?"/":"";return e.protocol+"://"+e.host+(e.port?":"+e.port:"")+"/"+e.path+r+t}function P(t){return"?"+Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")}function t(p,e){var t=this,v=S(p.name,p),r=E(v,"");p=g.clone(p);var n,u=function(e,t){if((t=t||{}).headers=t.headers||new m.Headers,t.credentials="include",p.auth||v.auth){var r=p.auth||v.auth,n=r.username+":"+r.password,o=h.btoa(unescape(encodeURIComponent(n)));t.headers.set("Authorization","Basic "+o)}var i,s,u,a,c,l,f=p.headers||{};return Object.keys(f).forEach(function(e){t.headers.append(e,f[e])}),i=t,s="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",u=-1!==s.indexOf("msie"),a=-1!==s.indexOf("trident"),c=-1!==s.indexOf("edge"),l=!("method"in i)||"GET"===i.method,(u||a||c)&&l&&(e+=(-1===e.indexOf("?")?"?":"&")+"_nonce="+Date.now()),(p.fetch||m.fetch)(e,t)};function o(e,r){return g.adapterFun(e,i(function(t){_().then(function(){return r.apply(this,t)}).catch(function(e){t.pop()(e)})})).bind(t)}function y(e,t,r){var n={};return(t=t||{}).headers=t.headers||new m.Headers,t.headers.get("Content-Type")||t.headers.set("Content-Type","application/json"),t.headers.get("Accept")||t.headers.set("Accept","application/json"),u(e,t).then(function(e){return n.ok=e.ok,n.status=e.status,e.json()}).then(function(e){if(n.data=e,!n.ok){n.data.status=n.status;var t=l.generateErrorFromResponse(n.data);if(r)return r(t);throw t}if(Array.isArray(n.data)&&(n.data=n.data.map(function(e){return e.error||e.missing?l.generateErrorFromResponse(e):e})),!r)return n;r(null,n.data)})}function _(){return p.skip_setup?Promise.resolve():n||((n=y(r).catch(function(e){return e&&e.status&&404===e.status?(g.explainError(404,"PouchDB is just detecting if the remote exists."),y(r,{method:"PUT"})):Promise.reject(e)}).catch(function(e){return!(!e||!e.status||412!==e.status)||Promise.reject(e)})).catch(function(){n=null}),n)}function c(e){return e.split("/").map(encodeURIComponent).join("/")}g.nextTick(function(){e(null,t)}),t._remote=!0,t.type=function(){return"http"},t.id=o("id",function(r){u(k(v,"")).then(function(e){return e.json()}).catch(function(){return{}}).then(function(e){var t=e&&e.uuid?e.uuid+v.db:E(v,"");r(null,t)})}),t.compact=o("compact",function(n,o){"function"==typeof n&&(o=n,n={}),n=g.clone(n),y(E(v,"_compact"),{method:"POST"}).then(function(){!function r(){t.info(function(e,t){t&&!t.compact_running?o(null,{ok:!0}):setTimeout(r,n.interval||200)})}()})}),t.bulkGet=g.adapterFun("bulkGet",function(u,a){var c=this;function e(t){var e={};u.revs&&(e.revs=!0),u.attachments&&(e.attachments=!0),u.latest&&(e.latest=!0),y(E(v,"_bulk_get"+P(e)),{method:"POST",body:JSON.stringify({docs:u.docs})}).then(function(e){u.attachments&&u.binary&&e.data.results.forEach(function(e){e.docs.forEach(j)}),t(null,e.data)}).catch(t)}function r(){var e=f,n=Math.ceil(u.docs.length/e),o=0,i=new Array(n);function t(r){return function(e,t){i[r]=t.results,++o===n&&a(null,{results:g.flatten(i)})}}for(var r=0;r<n;r++){var s=g.pick(u,["revs","attachments","binary","latest"]);s.docs=u.docs.slice(r*e,Math.min(u.docs.length,(r+1)*e)),g.bulkGetShim(c,s,t(r))}}var n=k(v,""),t=s[n];"boolean"!=typeof t?e(function(e,t){e?(s[n]=!1,g.explainError(e.status,"PouchDB is just detecting if the remote supports the _bulk_get API."),r()):(s[n]=!0,a(null,t))}):t?e(a):r()}),t._info=function(t){_().then(function(){return u(E(v,""))}).then(function(e){return e.json()}).then(function(e){e.host=E(v,""),t(null,e)}).catch(t)},t.fetch=function(t,r){return _().then(function(){var e="/"===t.substring(0,1)?k(v,t.substring(1)):E(v,t);return u(e,r)})},t.get=o("get",function(t,s,r){"function"==typeof s&&(r=s,s={});var e={};function n(o){var i=o._attachments,e=i&&Object.keys(i);if(i&&e.length){var f,p,t=e.map(function(n){return function(){return r=i[e=n],t=d(o._id)+"/"+c(e)+"?rev="+o._rev,u(E(v,t)).then(function(e){return void 0===a||a.browser?e.blob():e.buffer()}).then(function(t){return s.binary?(void 0===a||a.browser||(t.type=r.content_type),t):new Promise(function(e){h.blobOrBufferToBase64(t,e)})}).then(function(e){delete r.stub,delete r.length,r.data=e});var e,r,t}});return f=t,p=5,new Promise(function(e,t){var r,n=0,o=0,i=0,s=f.length;function u(){++i===s?r?t(r):e():l()}function a(){n--,u()}function c(e){n--,r=r||e,u()}function l(){for(;n<p&&o<s;)n++,f[o++]().then(a,c)}l()})}}(s=g.clone(s)).revs&&(e.revs=!0),s.revs_info&&(e.revs_info=!0),s.latest&&(e.latest=!0),s.open_revs&&("all"!==s.open_revs&&(s.open_revs=JSON.stringify(s.open_revs)),e.open_revs=s.open_revs),s.rev&&(e.rev=s.rev),s.conflicts&&(e.conflicts=s.conflicts),s.update_seq&&(e.update_seq=s.update_seq),t=d(t),y(E(v,t+P(e))).then(function(t){return Promise.resolve().then(function(){if(s.attachments)return e=t.data,Array.isArray(e)?Promise.all(e.map(function(e){if(e.ok)return n(e.ok)})):n(e);var e}).then(function(){r(null,t.data)})}).catch(function(e){e.docId=t,r(e)})}),t.remove=o("remove",function(e,t,r,n){var o;"string"==typeof t?(o={_id:e,_rev:t},"function"==typeof r&&(n=r,r={})):(o=e,r="function"==typeof t?(n=t,{}):(n=r,t));var i=o._rev||r.rev;y(E(v,d(o._id))+"?rev="+i,{method:"DELETE"},n).catch(n)}),t.getAttachment=o("getAttachment",function(e,t,r,n){"function"==typeof r&&(n=r,r={});var o,i=r.rev?"?rev="+r.rev:"",s=E(v,d(e))+"/"+c(t)+i;u(s,{method:"GET"}).then(function(e){if(o=e.headers.get("content-type"),e.ok)return void 0===a||a.browser?e.blob():e.buffer();throw e}).then(function(e){void 0===a||a.browser||(e.type=o),n(null,e)}).catch(function(e){n(e)})}),t.removeAttachment=o("removeAttachment",function(e,t,r,n){y(E(v,d(e)+"/"+c(t))+"?rev="+r,{method:"DELETE"},n).catch(n)}),t.putAttachment=o("putAttachment",function(e,t,r,n,o,i){"function"==typeof o&&(i=o,o=n,n=r,r=null);var s=d(e)+"/"+c(t),u=E(v,s);if(r&&(u+="?rev="+r),"string"==typeof n){var a;try{a=h.atob(n)}catch(e){return i(l.createError(l.BAD_ARG,"Attachment is not a valid base64 string"))}n=a?h.binaryStringToBlobOrBuffer(a,o):""}y(u,{headers:new m.Headers({"Content-Type":o}),method:"PUT",body:n},i).catch(i)}),t._bulkDocs=function(e,t,r){e.new_edits=t.new_edits,_().then(function(){return Promise.all(e.docs.map(b))}).then(function(){return y(E(v,"_bulk_docs"),{method:"POST",body:JSON.stringify(e)},r)}).catch(r)},t._put=function(t,e,r){_().then(function(){return b(t)}).then(function(){return y(E(v,d(t._id)),{method:"PUT",body:JSON.stringify(t)})}).then(function(e){r(null,e.data)}).catch(function(e){e.docId=t&&t._id,r(e)})},t.allDocs=o("allDocs",function(t,r){"function"==typeof t&&(r=t,t={});var e,n={},o="GET";(t=g.clone(t)).conflicts&&(n.conflicts=!0),t.update_seq&&(n.update_seq=!0),t.descending&&(n.descending=!0),t.include_docs&&(n.include_docs=!0),t.attachments&&(n.attachments=!0),t.key&&(n.key=JSON.stringify(t.key)),t.start_key&&(t.startkey=t.start_key),t.startkey&&(n.startkey=JSON.stringify(t.startkey)),t.end_key&&(t.endkey=t.end_key),t.endkey&&(n.endkey=JSON.stringify(t.endkey)),void 0!==t.inclusive_end&&(n.inclusive_end=!!t.inclusive_end),void 0!==t.limit&&(n.limit=t.limit),void 0!==t.skip&&(n.skip=t.skip);var i=P(n);void 0!==t.keys&&(o="POST",e={keys:t.keys}),y(E(v,"_all_docs"+i),{method:o,body:JSON.stringify(e)}).then(function(e){t.include_docs&&t.attachments&&t.binary&&e.data.rows.forEach(j),r(null,e.data)}).catch(r)}),t._changes=function(s){var u="batch_size"in s?s.batch_size:w;!(s=g.clone(s)).continuous||"heartbeat"in s||(s.heartbeat=O);var e="timeout"in s?s.timeout:3e4;"timeout"in s&&s.timeout&&e-s.timeout<x&&(e=s.timeout+x),"heartbeat"in s&&s.heartbeat&&e-s.heartbeat<x&&(e=s.heartbeat+x);var o={};"timeout"in s&&s.timeout&&(o.timeout=s.timeout);var a=void 0!==s.limit&&s.limit,c=a;if(s.style&&(o.style=s.style),(s.include_docs||s.filter&&"function"==typeof s.filter)&&(o.include_docs=!0),s.attachments&&(o.attachments=!0),s.continuous&&(o.feed="longpoll"),s.seq_interval&&(o.seq_interval=s.seq_interval),s.conflicts&&(o.conflicts=!0),s.descending&&(o.descending=!0),s.update_seq&&(o.update_seq=!0),"heartbeat"in s&&s.heartbeat&&(o.heartbeat=s.heartbeat),s.filter&&"string"==typeof s.filter&&(o.filter=s.filter),s.view&&"string"==typeof s.view&&(o.filter="_view",o.view=s.view),s.query_params&&"object"==typeof s.query_params)for(var t in s.query_params)s.query_params.hasOwnProperty(t)&&(o[t]=s.query_params[t]);var i,l="GET";s.doc_ids?(o.filter="_doc_ids",l="POST",i={doc_ids:s.doc_ids}):s.selector&&(o.filter="_selector",l="POST",i={selector:s.selector});function f(e,t){if(!s.aborted){o.since=e,"object"==typeof o.since&&(o.since=JSON.stringify(o.since)),s.descending?a&&(o.limit=c):o.limit=!a||u<c?u:c;var r=E(v,"_changes"+P(o)),n={signal:h.signal,method:l,body:JSON.stringify(i)};p=e,s.aborted||_().then(function(){return y(r,n,t)}).catch(t)}}var p,h=new m.AbortController,d={results:[]},b=function(e,t){if(!s.aborted){var r=0;if(t&&t.results){r=t.results.length,d.last_seq=t.last_seq;var n=null,o=null;"number"==typeof t.pending&&(n=t.pending),"string"!=typeof d.last_seq&&"number"!=typeof d.last_seq||(o=d.last_seq);s.query_params,t.results=t.results.filter(function(e){c--;var t=g.filterChange(s)(e);return t&&(s.include_docs&&s.attachments&&s.binary&&j(e),s.return_docs&&d.results.push(e),s.onChange(e,n,o)),t})}else if(e)return s.aborted=!0,void s.complete(e);t&&t.last_seq&&(p=t.last_seq);var i=a&&c<=0||t&&r<u||s.descending;(!s.continuous||a&&c<=0)&&i?s.complete(null,d):g.nextTick(function(){f(p,b)})}};return f(s.since||0,b),{cancel:function(){s.aborted=!0,h.abort()}}},t.revsDiff=o("revsDiff",function(e,t,r){"function"==typeof t&&(r=t,t={}),y(E(v,"_revs_diff"),{method:"POST",body:JSON.stringify(e)},r).catch(r)}),t._close=function(e){e()},t._destroy=function(e,t){y(E(v,""),{method:"DELETE"}).then(function(e){t(null,e)}).catch(function(e){404===e.status?t(null,{ok:!0}):t(e)})}}t.valid=function(){return!0},n.exports=function(e){e.adapter("http",t,!1),e.adapter("https",t,!1)}}).call(this,r("_process"))},{_process:477,argsarray:66,"pouchdb-binary-utils":441,"pouchdb-errors":448,"pouchdb-fetch":450,"pouchdb-utils":475}],439:[function(e,t,r){"use strict";var A=e("pouchdb-adapter-utils"),n=e("pouchdb-json"),M=e("pouchdb-merge"),b=e("pouchdb-binary-utils"),I=e("pouchdb-errors"),C=e("pouchdb-collections"),g=e("pouchdb-utils"),o=5,D="document-store",T="by-sequence",N="attach-store",R="attach-seq-store",B="meta-store",L="local-store",v="detect-blob-support";function q(r){return function(e){var t="unknown_error";e.target&&e.target.error&&(t=e.target.error.name||e.target.error.message),r(I.createError(I.IDB_ERROR,t,e.type))}}function $(e,t,r){return{data:n.safeJsonStringify(e),winningRev:t,deletedOrLocal:r?"1":"0",seq:e.seq,id:e.id}}function F(e){if(!e)return null;var t=n.safeJsonParse(e.data);return t.winningRev=e.winningRev,t.deleted="1"===e.deletedOrLocal,t.seq=e.seq,t}function U(e){if(!e)return e;var t=e._doc_id_rev.lastIndexOf(":");return e._id=e._doc_id_rev.substring(0,t-1),e._rev=e._doc_id_rev.substring(t+1),delete e._doc_id_rev,e}function l(e,t,r,n){r?n(e?"string"!=typeof e?e:b.base64StringToBlobOrBuffer(e,t):b.blob([""],{type:t})):e?"string"!=typeof e?b.readAsBinaryString(e,function(e){n(b.btoa(e))}):n(e):n("")}function V(o,i,s,e){var t=Object.keys(o._attachments||{});if(!t.length)return e&&e();var r=0;function u(){++r===t.length&&e&&e()}t.forEach(function(e){var t,r,n;i.attachments&&i.include_docs?(t=e,r=o._attachments[t],n=r.digest,s.objectStore(N).get(n).onsuccess=function(e){r.body=e.target.result.body,u()}):(o._attachments[e].stub=!0,u())})}function z(e,s){return Promise.all(e.map(function(i){if(i.doc&&i.doc._attachments){var e=Object.keys(i.doc._attachments);return Promise.all(e.map(function(r){var n=i.doc._attachments[r];if("body"in n){var e=n.body,o=n.content_type;return new Promise(function(t){l(e,o,s,function(e){i.doc._attachments[r]=g.assign(g.pick(n,["digest","content_type"]),{data:e}),t()})})}}))}}))}function W(e,n,t){var o=[],i=t.objectStore(T),r=t.objectStore(N),s=t.objectStore(R),u=e.length;function a(){--u||function(){if(!o.length)return;o.forEach(function(t){s.index("digestSeq").count(IDBKeyRange.bound(t+"::",t+"::",!1,!1)).onsuccess=function(e){e.target.result||r.delete(t)}})}()}e.forEach(function(e){var t=i.index("_doc_id_rev"),r=n+"::"+e;t.getKey(r).onsuccess=function(e){var t=e.target.result;if("number"!=typeof t)return a();i.delete(t),s.index("seq").openCursor(IDBKeyRange.only(t)).onsuccess=function(e){var t=e.target.result;if(t){var r=t.value.digestSeq.split("::")[0];o.push(r),s.delete(t.primaryKey),t.continue()}else a()}}})}function J(e,t,r){try{return{txn:e.transaction(t,r)}}catch(e){return{error:e}}}var H=new g.changesHandler;function i(s,e,u,f,t,r){for(var p,h,d,g,b,n,o,i,a=e.docs,c=0,l=a.length;c<l;c++){var v=a[c];v._id&&A.isLocalId(v._id)||(v=a[c]=A.parseDoc(v,u.new_edits,s)).error&&!o&&(o=v)}if(o)return r(o);var y=!1,w=0,_=new Array(a.length),m=new C.Map,x=!1,O=f._meta.blobSupport?"blob":"base64";function j(){y=!0,S()}function S(){i&&y&&(i.docCount+=w,n.put(i))}function E(){x||(H.notify(f._meta.name),r(null,_))}function k(e,t,r,n,o,i,s,u){e.metadata.winningRev=t,e.metadata.deleted=r;var a,c,l,f,p,h,d,b,v,y=e.data;if(y._id=e.metadata.id,y._rev=e.metadata.rev,n&&(y._deleted=!0),y._attachments&&Object.keys(y._attachments).length)return c=t,l=r,f=o,p=s,h=u,d=(a=e).data,b=0,void(v=Object.keys(d._attachments)).forEach(function(e){var r,n,o,t=a.data._attachments[e];if(t.stub)b++,_();else{var i=t.data;delete t.data,t.revpos=parseInt(c,10);var s=t.digest;r=s,n=i,o=m,g.count(r).onsuccess=function(e){if(e.target.result)return o();var t={digest:r,body:n};g.put(t).onsuccess=o}}});function _(){b===v.length&&P(a,c,l,f,p,h)}function m(){b++,_()}w+=i,S(),P(e,t,r,o,s,u)}function P(n,o,i,s,e,t){var r=n.data,u=n.metadata;function a(e){var t=n.stemmedRevs||[];s&&f.auto_compaction&&(t=t.concat(M.compactTree(n.metadata))),t&&t.length&&W(t,n.metadata.id,p),u.seq=e.target.result;var r=$(u,o,i);h.put(r).onsuccess=c}function c(){_[e]={ok:!0,id:u.id,rev:u.rev},m.set(n.metadata.id,n.metadata),function(e,t,r){var n=0,o=Object.keys(e.data._attachments||{});if(!o.length)return r();function i(){++n===o.length&&r()}for(var s=0;s<o.length;s++)u=o[s],c=void 0,a=e.data._attachments[u].digest,(c=b.put({seq:t,digestSeq:a+"::"+t})).onsuccess=i,c.onerror=function(e){e.preventDefault(),e.stopPropagation(),i()};var u,a,c}(n,u.seq,t)}r._doc_id_rev=u.id+"::"+u.rev,delete r._id,delete r._rev;var l=d.put(r);l.onsuccess=a,l.onerror=function(e){e.preventDefault(),e.stopPropagation(),d.index("_doc_id_rev").getKey(r._doc_id_rev).onsuccess=function(e){d.put(r,e.target.result).onsuccess=a}}}A.preprocessAttachments(a,O,function(e){if(e)return r(e);!function(){var e=J(t,[D,T,N,L,R,B],"readwrite");if(e.error)return r(e.error);(p=e.txn).onabort=q(r),p.ontimeout=q(r),p.oncomplete=E,h=p.objectStore(D),d=p.objectStore(T),g=p.objectStore(N),b=p.objectStore(R),(n=p.objectStore(B)).get(B).onsuccess=function(e){i=e.target.result,S()},function(t){var o=[];if(a.forEach(function(r){r.data&&r.data._attachments&&Object.keys(r.data._attachments).forEach(function(e){var t=r.data._attachments[e];t.stub&&o.push(t.digest)})}),!o.length)return t();var i,s=0;o.forEach(function(e){var r,n;r=e,n=function(e){e&&!i&&(i=e),++s===o.length&&t(i)},g.get(r).onsuccess=function(e){if(e.target.result)n();else{var t=I.createError(I.MISSING_STUB,"unknown stub attachment with digest "+r);t.status=412,n(t)}}})}(function(e){if(e)return x=!0,r(e);!function(){if(!a.length)return;var e=0;function r(){++e===a.length&&A.processDocs(s.revs_limit,a,f,m,p,_,k,u,j)}function t(e){var t=F(e.target.result);t&&m.set(t.id,t),r()}for(var n=0,o=a.length;n<o;n++){var i=a[n];if(i._id&&A.isLocalId(i._id))r();else h.get(i.metadata.id).onsuccess=t}}()})}()})}function Q(r,n,e,o,i){var s,u,t;function a(e){u=e.target.result,s&&i(s,u,t)}function c(e){s=e.target.result,u&&i(s,u,t)}function l(e){var t=e.target.result;if(!t)return i();i([t.key],[t.value],t)}-1===o&&(o=1e3),"function"==typeof r.getAll&&"function"==typeof r.getAllKeys&&1<o&&!e?(t={continue:function(){if(!s.length)return i();var e,t=s[s.length-1];if(n&&n.upper)try{e=IDBKeyRange.bound(t,n.upper,!0,n.upperOpen)}catch(e){if("DataError"===e.name&&0===e.code)return i()}else e=IDBKeyRange.lowerBound(t,!0);n=e,u=s=null,r.getAll(n,o).onsuccess=a,r.getAllKeys(n,o).onsuccess=c}},r.getAll(n,o).onsuccess=a,r.getAllKeys(n,o).onsuccess=c):e?r.openCursor(n,"prev").onsuccess=l:r.openCursor(n).onsuccess=l}function K(e,t,r){if("function"!=typeof e.getAll){var n=[];e.openCursor(t).onsuccess=function(e){var t=e.target.result;t?(n.push(t.value),t.continue()):r({target:{result:n}})}}else e.getAll(t).onsuccess=r}function y(u,e,t){var r,n,o="startkey"in u&&u.startkey,i="endkey"in u&&u.endkey,s="key"in u&&u.key,a="keys"in u&&u.keys,c=u.skip||0,l="number"==typeof u.limit?u.limit:-1,f=!1!==u.inclusive_end;if(!a&&(n=(r=function(e,t,r,n,o){try{if(e&&t)return o?IDBKeyRange.bound(t,e,!r,!1):IDBKeyRange.bound(e,t,!1,!r);if(e)return o?IDBKeyRange.upperBound(e):IDBKeyRange.lowerBound(e);if(t)return o?IDBKeyRange.lowerBound(t,!r):IDBKeyRange.upperBound(t,!r);if(n)return IDBKeyRange.only(n)}catch(e){return{error:e}}return null}(o,i,f,s,u.descending))&&r.error)&&("DataError"!==n.name||0!==n.code))return t(I.createError(I.IDB_ERROR,n.name,n.message));var p=[D,T,B];u.attachments&&p.push(N);var h=J(e,p,"readonly");if(h.error)return t(h.error);var d=h.txn;d.oncomplete=function(){u.attachments?z(k,u.binary).then(R):R()},d.onabort=q(t);var b,v,y,_,m,g,w,x,O=d.objectStore(D),j=d.objectStore(T),S=d.objectStore(B),E=j.index("_doc_id_rev"),k=[];function P(e,t){var r,n,o,i,s={id:t.id,key:t.id,value:{rev:e}};t.deleted?a&&(k.push(s),s.value.deleted=!0,s.doc=null):c--<=0&&(k.push(s),u.include_docs&&(n=s,o=e,i=(r=t).id+"::"+o,E.get(i).onsuccess=function(e){if(n.doc=U(e.target.result)||{},u.conflicts){var t=M.collectConflicts(r);t.length&&(n.doc._conflicts=t)}V(n.doc,u,d)}))}function A(e){for(var t=0,r=e.length;t<r&&k.length!==l;t++){var n=e[t];if(n.error&&a)k.push(n);else{var o=F(n);P(o.winningRev,o)}}}function C(e,t,r){r&&(A(t),k.length<l&&r.continue())}function R(){var e={total_rows:b,offset:u.skip,rows:k};u.update_seq&&void 0!==v&&(e.update_seq=v),t(null,e)}return S.get(B).onsuccess=function(e){b=e.target.result.docCount},u.update_seq&&(y=function(e){e.target.result&&0<e.target.result.length&&(v=e.target.result[0])},j.openCursor(null,"prev").onsuccess=function(e){var t=e.target.result,r=void 0;return t&&t.key&&(r=t.key),y({target:{result:[r]}})}),n||0===l?void 0:a?(_=u.keys,m=O,g=C,w=new Array(_.length),x=0,void _.forEach(function(t,r){m.get(t).onsuccess=function(e){e.target.result?w[r]=e.target.result:w[r]={key:t,error:"not_found"},++x===_.length&&g(_,w,{})}})):-1===l?K(O,r,function(e){var t=e.target.result;u.descending&&(t=t.reverse()),A(t)}):void Q(O,r,u.descending,l+c,C)}var s=!1,u=[];function a(){!s&&u.length&&(s=!0,u.shift()())}function c(e,r,n){u.push(function(){e(function(e,t){!function(e,t,r,n){try{e(t,r)}catch(t){n.emit("error",t)}}(r,e,t,n),s=!1,g.nextTick(function(){a()})})}),a()}function _(c,e,t,r){if((c=g.clone(c)).continuous){var n=t+":"+g.uuid();return H.addListener(t,n,e,c),H.notify(t),{cancel:function(){H.removeListener(t,n)}}}var l=c.doc_ids&&new C.Set(c.doc_ids);c.since=c.since||0;var f=c.since,p="limit"in c?c.limit:-1;0===p&&(p=1);var h,o,d,i,b=[],v=0,y=g.filterChange(c),_=new C.Map;function m(e,t,r,n){if(r.seq!==t)return n();if(r.winningRev===e._rev)return n(r,e);var o=e._id+"::"+r.winningRev;i.get(o).onsuccess=function(e){n(r,U(e.target.result))}}function s(){c.complete(null,{results:b,last_seq:f})}var u=[D,T];c.attachments&&u.push(N);var a=J(r,u,"readonly");if(a.error)return c.complete(a.error);(h=a.txn).onabort=q(c.complete),h.oncomplete=function(){!c.continuous&&c.attachments?z(b).then(s):s()},o=h.objectStore(T),d=h.objectStore(D),i=o.index("_doc_id_rev"),Q(o,c.since&&!c.descending?IDBKeyRange.lowerBound(c.since,!0):null,c.descending,p,function(n,e,i){if(i&&n.length){var s=new Array(n.length),u=new Array(n.length),o=0;e.forEach(function(e,r){!function(t,r,n){if(l&&!l.has(t._id))return n();var o=_.get(t._id);if(o)return m(t,r,o,n);d.get(t._id).onsuccess=function(e){o=F(e.target.result),_.set(t._id,o),m(t,r,o,n)}}(U(e),n[r],function(e,t){u[r]=e,s[r]=t,++o===n.length&&function(){for(var e=[],t=0,r=s.length;t<r&&v!==p;t++){var n=s[t];if(n){var o=u[t];e.push(a(o,n))}}Promise.all(e).then(function(e){for(var t=0,r=e.length;t<r;t++)e[t]&&c.onChange(e[t])}).catch(c.complete),v!==p&&i.continue()}()})})}function a(e,t){var r=c.processChange(t,e,c);f=r.seq=e.seq;var n=y(r);return"object"==typeof n?Promise.reject(n):n?(v++,c.return_docs&&b.push(r),c.attachments&&c.include_docs?new Promise(function(e){V(t,c,h,function(){z([r],c.binary).then(function(){e(r)})})}):Promise.resolve(r)):Promise.resolve()}})}var m,w=new C.Map,x=new C.Map;function f(t,e){var r=this;c(function(e){!function(f,n,p){var h=n.name,d=null;function s(e,o){var i=e.objectStore(D);i.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),i.openCursor().onsuccess=function(e){var t=e.target.result;if(t){var r=t.value,n=M.isDeleted(r);r.deletedOrLocal=n?"1":"0",i.put(r),t.continue()}else o()}}function u(e,p){var h=e.objectStore(L),d=e.objectStore(D),b=e.objectStore(T);d.openCursor().onsuccess=function(e){var r=e.target.result;if(r){var t=r.value,n=t.id,o=M.isLocalId(n),i=M.winningRev(t);if(o){var s=n+"::"+i,u=n+"::",a=n+"::~",c=b.index("_doc_id_rev"),l=IDBKeyRange.bound(u,a,!1,!1),f=c.openCursor(l);f.onsuccess=function(e){if(f=e.target.result){var t=f.value;t._doc_id_rev===s&&h.put(t),b.delete(f.primaryKey),f.continue()}else d.delete(r.primaryKey),r.continue()}}else r.continue()}else p&&p()}}function a(e,c){var t=e.objectStore(T),r=e.objectStore(N),l=e.objectStore(R);r.count().onsuccess=function(e){if(!e.target.result)return c();t.openCursor().onsuccess=function(e){var t=e.target.result;if(!t)return c();for(var r=t.value,n=t.primaryKey,o=Object.keys(r._attachments||{}),i={},s=0;s<o.length;s++){i[r._attachments[o[s]].digest]=!0}var u=Object.keys(i);for(s=0;s<u.length;s++){var a=u[s];l.put({seq:n,digestSeq:a+"::"+n})}t.continue()}}}function c(e){var c=e.objectStore(T),l=e.objectStore(D);l.openCursor().onsuccess=function(e){var t=e.target.result;if(t){var r,n,o,i,s,u=(r=t.value).data?F(r):(r.deleted="1"===r.deletedOrLocal,r);if(u.winningRev=u.winningRev||M.winningRev(u),u.seq)return a();n=u.id+"::",o=u.id+"::",i=c.index("_doc_id_rev").openCursor(IDBKeyRange.bound(n,o)),s=0,i.onsuccess=function(e){var t=e.target.result;if(!t)return u.seq=s,a();var r=t.primaryKey;s<r&&(s=r),t.continue()}}function a(){var e=$(u,u.winningRev,u.deleted);l.put(e).onsuccess=function(){t.continue()}}}}f._meta=null,f._remote=!1,f.type=function(){return"idb"},f._id=g.toPromise(function(e){e(null,f._meta.instanceId)}),f._bulkDocs=function(e,t,r){i(n,e,t,f,d,r)},f._get=function(e,o,t){var i,s,u,a=o.ctx;if(!a){var r=J(d,[D,T,N],"readonly");if(r.error)return t(r.error);a=r.txn}function c(){t(u,{doc:i,metadata:s,ctx:a})}a.objectStore(D).get(e).onsuccess=function(e){if(!(s=F(e.target.result)))return u=I.createError(I.MISSING_DOC,"missing"),c();var t;if(o.rev)t=o.latest?M.latest(o.rev,s):o.rev;else if(t=s.winningRev,M.isDeleted(s))return u=I.createError(I.MISSING_DOC,"deleted"),c();var r=a.objectStore(T),n=s.id+"::"+t;r.index("_doc_id_rev").get(n).onsuccess=function(e){if(!(i=(i=e.target.result)&&U(i)))return u=I.createError(I.MISSING_DOC,"missing"),c();c()}}},f._getAttachment=function(e,t,r,n,o){var i;if(n.ctx)i=n.ctx;else{var s=J(d,[D,T,N],"readonly");if(s.error)return o(s.error);i=s.txn}var u=r.digest,a=r.content_type;i.objectStore(N).get(u).onsuccess=function(e){l(e.target.result.body,a,n.binary,function(e){o(null,e)})}},f._info=function(e){var r,t,n=J(d,[B,T],"readonly");if(n.error)return e(n.error);var o=n.txn;o.objectStore(B).get(B).onsuccess=function(e){t=e.target.result.docCount},o.objectStore(T).openCursor(null,"prev").onsuccess=function(e){var t=e.target.result;r=t?t.key:0},o.oncomplete=function(){e(null,{doc_count:t,update_seq:r,idb_attachment_format:f._meta.blobSupport?"binary":"base64"})}},f._allDocs=function(e,t){y(e,d,t)},f._changes=function(e){return _(e,f,h,d)},f._close=function(e){d.close(),w.delete(h),e()},f._getRevisionTree=function(e,r){var t=J(d,[D],"readonly");if(t.error)return r(t.error);t.txn.objectStore(D).get(e).onsuccess=function(e){var t=F(e.target.result);t?r(null,t.rev_tree):r(I.createError(I.MISSING_DOC))}},f._doCompaction=function(o,s,e){var t=J(d,[D,T,N,R],"readwrite");if(t.error)return e(t.error);var i=t.txn;i.objectStore(D).get(o).onsuccess=function(e){var t=F(e.target.result);M.traverseRevTree(t.rev_tree,function(e,t,r,n,o){var i=t+"-"+r;-1!==s.indexOf(i)&&(o.status="missing")}),W(s,o,i);var r=t.winningRev,n=t.deleted;i.objectStore(D).put($(t,r,n))},i.onabort=q(e),i.oncomplete=function(){e()}},f._getLocal=function(e,r){var t=J(d,[L],"readonly");if(t.error)return r(t.error);var n=t.txn.objectStore(L).get(e);n.onerror=q(r),n.onsuccess=function(e){var t=e.target.result;t?(delete t._doc_id_rev,r(null,t)):r(I.createError(I.MISSING_DOC))}},f._putLocal=function(r,n,o){"function"==typeof n&&(o=n,n={}),delete r._revisions;var i=r._rev,e=r._id;r._rev=i?"0-"+(parseInt(i.split("-")[1],10)+1):"0-1";var s,t=n.ctx;if(!t){var u=J(d,[L],"readwrite");if(u.error)return o(u.error);(t=u.txn).onerror=q(o),t.oncomplete=function(){s&&o(null,s)}}var a,c=t.objectStore(L);i?(a=c.get(e)).onsuccess=function(e){var t=e.target.result;t&&t._rev===i?c.put(r).onsuccess=function(){s={ok:!0,id:r._id,rev:r._rev},n.ctx&&o(null,s)}:o(I.createError(I.REV_CONFLICT))}:((a=c.add(r)).onerror=function(e){o(I.createError(I.REV_CONFLICT)),e.preventDefault(),e.stopPropagation()},a.onsuccess=function(){s={ok:!0,id:r._id,rev:r._rev},n.ctx&&o(null,s)})},f._removeLocal=function(r,n,o){"function"==typeof n&&(o=n,n={});var i,e=n.ctx;if(!e){var t=J(d,[L],"readwrite");if(t.error)return o(t.error);(e=t.txn).oncomplete=function(){i&&o(null,i)}}var s=r._id,u=e.objectStore(L),a=u.get(s);a.onerror=q(o),a.onsuccess=function(e){var t=e.target.result;t&&t._rev===r._rev?(u.delete(s),i={ok:!0,id:s,rev:"0-0"},n.ctx&&o(null,i)):o(I.createError(I.MISSING_DOC))}},f._destroy=function(e,t){H.removeAllListeners(h);var r=x.get(h);r&&r.result&&(r.result.close(),w.delete(h));var n=indexedDB.deleteDatabase(h);n.onsuccess=function(){x.delete(h),g.hasLocalStorage()&&h in localStorage&&delete localStorage[h],t(null,{ok:!0})},n.onerror=q(t)};var e=w.get(h);if(e)return d=e.idb,f._meta=e.global,g.nextTick(function(){p(null,f)});var t=indexedDB.open(h,o);x.set(h,t),t.onupgradeneeded=function(e){var t=e.target.result;if(e.oldVersion<1)return function(e){var t=e.createObjectStore(D,{keyPath:"id"});e.createObjectStore(T,{autoIncrement:!0}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0}),e.createObjectStore(N,{keyPath:"digest"}),e.createObjectStore(B,{keyPath:"id",autoIncrement:!1}),e.createObjectStore(v),t.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),e.createObjectStore(L,{keyPath:"_id"});var r=e.createObjectStore(R,{autoIncrement:!0});r.createIndex("seq","seq"),r.createIndex("digestSeq","digestSeq",{unique:!0})}(t);var r,n=e.currentTarget.transaction;e.oldVersion<3&&t.createObjectStore(L,{keyPath:"_id"}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0}),e.oldVersion<4&&((r=t.createObjectStore(R,{autoIncrement:!0})).createIndex("seq","seq"),r.createIndex("digestSeq","digestSeq",{unique:!0}));var o=[s,u,a,c],i=e.oldVersion;!function e(){var t=o[i-1];i++,t&&t(n,e)}()},t.onsuccess=function(e){(d=e.target.result).onversionchange=function(){d.close(),w.delete(h)},d.onabort=function(e){g.guardedConsole("error","Database has a global failure",e.target.error),d.close(),w.delete(h)};var t,r,n,o,i,s,u=d.transaction([B,v,D],"readwrite"),a=!1;function c(){void 0!==n&&a&&(f._meta={name:h,instanceId:o,blobSupport:n},w.set(h,{idb:d,global:f._meta}),p(null,f))}function l(){if(void 0!==r&&void 0!==t){var e=h+"_id";e in t?o=t[e]:t[e]=o=g.uuid(),t.docCount=r,u.objectStore(B).put(t)}}u.objectStore(B).get(B).onsuccess=function(e){t=e.target.result||{id:B},l()},i=function(e){r=e,l()},u.objectStore(D).index("deletedOrLocal").count(IDBKeyRange.only("0")).onsuccess=function(e){i(e.target.result)},m||(s=u,m=new Promise(function(r){var e=b.blob([""]),t=s.objectStore(v).put(e,"key");t.onsuccess=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),t=navigator.userAgent.match(/Edge\//);r(t||!e||43<=parseInt(e[1],10))},t.onerror=s.onabort=function(e){e.preventDefault(),e.stopPropagation(),r(!1)}}).catch(function(){return!1})),m.then(function(e){n=e,c()}),u.oncomplete=function(){a=!0,c()},u.onabort=q(p)},t.onerror=function(){var e="Failed to open indexedDB, are you in private browsing mode?";g.guardedConsole("error",e),p(I.createError(I.IDB_ERROR,e))}}(r,t,e)},e,r.constructor)}f.valid=function(){try{return"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}},t.exports=function(e){e.adapter("idb",f,!0)}},{"pouchdb-adapter-utils":440,"pouchdb-binary-utils":441,"pouchdb-collections":445,"pouchdb-errors":448,"pouchdb-json":462,"pouchdb-merge":471,"pouchdb-utils":475}],440:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var f=e("pouchdb-utils"),s=e("pouchdb-binary-utils"),u=e("pouchdb-md5"),n=e("pouchdb-collections"),m=e("pouchdb-errors"),g=e("pouchdb-merge");function o(e){return e.reduce(function(e,t){return e[t]=!0,e},{})}var p=o(["_id","_rev","_attachments","_deleted","_revisions","_revs_info","_conflicts","_deleted_conflicts","_local_seq","_rev_tree","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats","_removed"]),h=o(["_attachments","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats"]);function d(e){if(!/^\d+-./.test(e))return m.createError(m.INVALID_REV);var t=e.indexOf("-"),r=e.substring(0,t),n=e.substring(t+1);return{prefix:parseInt(r,10),id:n}}function w(e,t,r){var n,o,i;r=r||{deterministic_revs:!0};var s={status:"available"};if(e._deleted&&(s.deleted=!0),t)if(e._id||(e._id=f.uuid()),o=f.rev(e,r.deterministic_revs),e._rev){if((i=d(e._rev)).error)return i;e._rev_tree=[{pos:i.prefix,ids:[i.id,{status:"missing"},[[o,s,[]]]]}],n=i.prefix+1}else e._rev_tree=[{pos:1,ids:[o,s,[]]}],n=1;else if(e._revisions&&(e._rev_tree=function(e,t){for(var r=e.start-e.ids.length+1,n=e.ids,o=[n[0],t,[]],i=1,s=n.length;i<s;i++)o=[n[i],{status:"missing"},[o]];return[{pos:r,ids:o}]}(e._revisions,s),n=e._revisions.start,o=e._revisions.ids[0]),!e._rev_tree){if((i=d(e._rev)).error)return i;n=i.prefix,o=i.id,e._rev_tree=[{pos:n,ids:[o,s,[]]}]}f.invalidIdError(e._id),e._rev=n+"-"+o;var u={metadata:{},data:{}};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var c="_"===a[0];if(c&&!p[a]){var l=m.createError(m.DOC_VALIDATION,a);throw l.message=m.DOC_VALIDATION.message+": "+a,l}c&&!h[a]?u.metadata[a.slice(1)]=e[a]:u.data[a]=e[a]}return u}function a(t,e,r){var n=function(e){try{return s.atob(e)}catch(e){return{error:m.createError(m.BAD_ARG,"Attachment is not a valid base64 string")}}}(t.data);if(n.error)return r(n.error);t.length=n.length,t.data="blob"===e?s.binaryStringToBlobOrBuffer(n,t.content_type):"base64"===e?s.btoa(n):n,u.binaryMd5(n,function(e){t.digest="md5-"+e,r()})}function c(e,t,r){if(e.stub)return r();var n,o,i;"string"==typeof e.data?a(e,t,r):(n=e,o=t,i=r,u.binaryMd5(n.data,function(e){n.digest="md5-"+e,n.length=n.data.size||n.data.length||0,"binary"===o?s.blobOrBufferToBinaryString(n.data,function(e){n.data=e,i()}):"base64"===o?s.blobOrBufferToBase64(n.data,function(e){n.data=e,i()}):i()}))}function b(e,t,r,n,o,i,s,u){if(g.revExists(t.rev_tree,r.metadata.rev)&&!u)return n[o]=r,i();var a=t.winningRev||g.winningRev(t),c="deleted"in t?t.deleted:g.isDeleted(t,a),l="deleted"in r.metadata?r.metadata.deleted:g.isDeleted(r.metadata),f=/^1-/.test(r.metadata.rev);if(c&&!l&&u&&f){var p=r.data;p._rev=a,p._id=r.metadata.id,r=w(p,u)}var h=g.merge(t.rev_tree,r.metadata.rev_tree[0],e);if(u&&(c&&l&&"new_leaf"!==h.conflicts||!c&&"new_leaf"!==h.conflicts||c&&!l&&"new_branch"===h.conflicts)){var d=m.createError(m.REV_CONFLICT);return n[o]=d,i()}var b=r.metadata.rev;r.metadata.rev_tree=h.tree,r.stemmedRevs=h.stemmedRevs||[],t.rev_map&&(r.metadata.rev_map=t.rev_map);var v=g.winningRev(r.metadata),y=g.isDeleted(r.metadata,v),_=c===y?0:c<y?-1:1;s(r,v,y,b===v?y:g.isDeleted(r.metadata,b),!0,_,o,i)}r.invalidIdError=f.invalidIdError,r.normalizeDdocFunctionName=f.normalizeDdocFunctionName,r.parseDdocFunctionName=f.parseDdocFunctionName,r.isDeleted=g.isDeleted,r.isLocalId=g.isLocalId,r.allDocsKeysQuery=function(e,i){var t=i.keys,s={offset:i.skip};return Promise.all(t.map(function(o){var t=f.assign({key:o,deleted:"ok"},i);return["limit","skip","keys"].forEach(function(e){delete t[e]}),new Promise(function(r,n){e._allDocs(t,function(e,t){if(e)return n(e);i.update_seq&&void 0!==t.update_seq&&(s.update_seq=t.update_seq),s.total_rows=t.total_rows,r(t.rows[0]||{key:o,error:"not_found"})})})})).then(function(e){return s.rows=e,s})},r.parseDoc=w,r.preprocessAttachments=function(e,i,t){if(!e.length)return t();var s,r=0;function u(){r++,e.length===r&&(s?t(s):t())}e.forEach(function(e){var t=e.data&&e.data._attachments?Object.keys(e.data._attachments):[],r=0;if(!t.length)return u();function n(e){s=e,++r===t.length&&u()}for(var o in e.data._attachments)e.data._attachments.hasOwnProperty(o)&&c(e.data._attachments[o],i,n)})},r.processDocs=function(a,e,o,c,i,l,f,p,t){a=a||1e3;var h=p.new_edits,s=new n.Map,r=0,u=e.length;function d(){++r===u&&t&&t()}e.forEach(function(e,r){if(e._id&&g.isLocalId(e._id)){var t=e._deleted?"_removeLocal":"_putLocal";o[t](e,{ctx:i},function(e,t){l[r]=e||t,d()})}else{var n=e.metadata.id;s.has(n)?(u--,s.get(n).push([e,r])):s.set(n,[[e,r]])}}),s.forEach(function(o,i){var s=0;function u(){++s<o.length?e():d()}function e(){var e=o[s],t=e[0],r=e[1];if(c.has(i))b(a,c.get(i),t,l,r,u,f,h);else{var n=g.merge([],t.metadata.rev_tree[0],a);t.metadata.rev_tree=n.tree,t.stemmedRevs=n.stemmedRevs||[],function(e,t,r){var n=g.winningRev(e.metadata),o=g.isDeleted(e.metadata,n);if("was_delete"in p&&o)return l[t]=m.createError(m.MISSING_DOC,"deleted"),r();if(h&&"missing"===e.metadata.rev_tree[0].ids[1].status){var i=m.createError(m.REV_CONFLICT);return l[t]=i,r()}f(e,n,o,o,!1,o?0:1,t,r)}(t,r,u)}}e()})},r.updateDoc=b},{"pouchdb-binary-utils":441,"pouchdb-collections":445,"pouchdb-errors":448,"pouchdb-md5":470,"pouchdb-merge":471,"pouchdb-utils":475}],441:[function(e,t,r){arguments[4][431][0].apply(r,arguments)},{dup:431}],442:[function(e,t,r){"use strict";var c=e("pouchdb-errors"),n=e("pouchdb-selector-core"),l=e("pouchdb-utils");function o(e,t){if(e.selector&&e.filter&&"_selector"!==e.filter){var r="string"==typeof e.filter?e.filter:"function";return t(new Error('selector invalid for filter "'+r+'"'))}t()}function i(e){e.view&&!e.filter&&(e.filter="_view"),e.selector&&!e.filter&&(e.filter="_selector"),e.filter&&"string"==typeof e.filter&&("_view"===e.filter?e.view=l.normalizeDdocFunctionName(e.view):e.filter=l.normalizeDdocFunctionName(e.filter))}function s(e,t){return t.filter&&"string"==typeof t.filter&&!t.doc_ids&&!l.isRemote(e.db)}function u(o,i){var s=i.complete;if("_view"===i.filter){if(!i.view||"string"!=typeof i.view){var e=c.createError(c.BAD_REQUEST,"`view` filter parameter not found or invalid.");return s(e)}var u=l.parseDdocFunctionName(i.view);o.db.get("_design/"+u[0],function(e,t){if(o.isCancelled)return s(null,{status:"cancelled"});if(e)return s(c.generateErrorFromResponse(e));var r,n=t&&t.views&&t.views[u[1]]&&t.views[u[1]].map;if(!n)return s(c.createError(c.MISSING_DOC,t.views?"missing json key: "+u[1]:"missing json key: views"));i.filter=(r=["return function(doc) {",'  "use strict";',"  var emitted = false;","  var emit = function (a, b) {","    emitted = true;","  };","  var view = "+n+";","  view(doc);","  if (emitted) {","    return true;","  }","};"].join("\n"),l.scopeEval(r,{})),o.doChanges(i)})}else if(i.selector)i.filter=function(e){return n.matchesSelector(e,i.selector)},o.doChanges(i);else{var a=l.parseDdocFunctionName(i.filter);o.db.get("_design/"+a[0],function(e,t){if(o.isCancelled)return s(null,{status:"cancelled"});if(e)return s(c.generateErrorFromResponse(e));var r,n=t&&t.filters&&t.filters[a[1]];if(!n)return s(c.createError(c.MISSING_DOC,t&&t.filters?"missing json key: "+a[1]:"missing json key: filters"));i.filter=(r=n,l.scopeEval('"use strict";\nreturn '+r+";",{})),o.doChanges(i)})}}t.exports=function(e){e._changesFilterPlugin={validate:o,normalize:i,shouldFilter:s,filter:u}}},{"pouchdb-errors":448,"pouchdb-selector-core":474,"pouchdb-utils":475}],443:[function(e,t,r){"use strict";var s=e("pouchdb-utils"),n=e("pouchdb-collate"),u=1,a="pouchdb",c=5,l=0;function f(t,r,n,o,i){return t.get(r).catch(function(e){if(404===e.status)return"http"!==t.adapter&&"https"!==t.adapter||s.explainError(404,"PouchDB is just checking if a remote checkpoint exists."),{session_id:o,_id:r,history:[],replicator:a,version:u};throw e}).then(function(e){if(!i.cancelled&&e.last_seq!==n)return e.history=(e.history||[]).filter(function(e){return e.session_id!==o}),e.history.unshift({last_seq:n,session_id:o}),e.history=e.history.slice(0,c),e.version=u,e.replicator=a,e.session_id=o,e.last_seq=n,t.put(e).catch(function(e){if(409===e.status)return f(t,r,n,o,i);throw e})})}function o(e,t,r,n,o){this.src=e,this.target=t,this.id=r,this.returnValue=n,this.opts=o||{}}o.prototype.writeCheckpoint=function(e,t){var r=this;return this.updateTarget(e,t).then(function(){return r.updateSource(e,t)})},o.prototype.updateTarget=function(e,t){return this.opts.writeTargetCheckpoint?f(this.target,this.id,e,t,this.returnValue):Promise.resolve(!0)},o.prototype.updateSource=function(e,t){if(this.opts.writeSourceCheckpoint){var r=this;return f(this.src,this.id,e,t,this.returnValue).catch(function(e){if(h(e))return!(r.opts.writeSourceCheckpoint=!1);throw e})}return Promise.resolve(!0)};var i={undefined:function(e,t){return 0===n.collate(e.last_seq,t.last_seq)?t.last_seq:0},1:function(e,t){return(n=e,(r=t).session_id!==n.session_id?function e(t,r){var n=t[0],o=t.slice(1),i=r[0],s=r.slice(1);if(!n||0===r.length)return{last_seq:l,history:[]};var u=n.session_id;if(p(u,r))return{last_seq:n.last_seq,history:t};var a=i.session_id;return p(a,o)?{last_seq:i.last_seq,history:s}:e(o,s)}(r.history,n.history):{last_seq:r.last_seq,history:r.history}).last_seq;var r,n}};function p(e,t){var r=t[0],n=t.slice(1);return!(!e||0===t.length)&&(e===r.session_id||p(e,n))}function h(e){return"number"==typeof e.status&&4===Math.floor(e.status/100)}o.prototype.getCheckpoint=function(){var t=this;return t.opts&&t.opts.writeSourceCheckpoint&&!t.opts.writeTargetCheckpoint?t.src.get(t.id).then(function(e){return e.last_seq||l}).catch(function(e){if(404!==e.status)throw e;return l}):t.target.get(t.id).then(function(r){return t.opts&&t.opts.writeTargetCheckpoint&&!t.opts.writeSourceCheckpoint?r.last_seq||l:t.src.get(t.id).then(function(e){return r.version!==e.version?l:(t=r.version?r.version.toString():"undefined")in i?i[t](r,e):l;var t},function(e){if(404===e.status&&r.last_seq)return t.src.put({_id:t.id,last_seq:l}).then(function(){return l},function(e){return h(e)?(t.opts.writeSourceCheckpoint=!1,r.last_seq):l});throw e})}).catch(function(e){if(404!==e.status)throw e;return l})},t.exports=o},{"pouchdb-collate":444,"pouchdb-utils":475}],444:[function(e,t,r){arguments[4][432][0].apply(r,arguments)},{dup:432}],445:[function(e,t,r){arguments[4][433][0].apply(r,arguments)},{dup:433}],446:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=e("pouchdb-collections"),s=n(e("argsarray")),j=e("pouchdb-merge"),c=e("pouchdb-errors"),l=e("pouchdb-utils"),i=n(e("inherits")),u=e("events"),a=e("pouchdb-fetch"),f=n(e("pouchdb-changes-filter"));function p(r,t,n){u.EventEmitter.call(this);var o=this;this.db=r;var i=(t=t?l.clone(t):{}).complete=l.once(function(e,t){e?0<l.listenerCount(o,"error")&&o.emit("error",e):o.emit("complete",t),o.removeAllListeners(),r.removeListener("destroyed",s)});function s(){o.cancel()}n&&(o.on("complete",function(e){n(null,e)}),o.on("error",n)),r.once("destroyed",s),t.onChange=function(e,t,r){o.isCancelled||function(e,t,r,n){try{e.emit("change",t,r,n)}catch(e){l.guardedConsole("error",'Error in .on("change", function):',e)}}(o,e,t,r)};var e=new Promise(function(r,n){t.complete=function(e,t){e?n(e):r(t)}});o.once("cancel",function(){r.removeListener("destroyed",s),t.complete(null,{status:"cancelled"})}),this.then=e.then.bind(e),this.catch=e.catch.bind(e),this.then(function(e){i(null,e)},i),r.taskqueue.isReady?o.validateChanges(t):r.taskqueue.addTask(function(e){e?t.complete(e):o.isCancelled?o.emit("cancel"):o.validateChanges(t)})}function h(e,t,r){var n=[{rev:e._rev}];"all_docs"===r.style&&(n=j.collectLeaves(t.rev_tree).map(function(e){return{rev:e.rev}}));var o={id:t.id,changes:n,doc:e};return j.isDeleted(t,e._rev)&&(o.deleted=!0),r.conflicts&&(o.doc._conflicts=j.collectConflicts(t),o.doc._conflicts.length||delete o.doc._conflicts),o}function d(e,t){return e<t?-1:t<e?1:0}function b(r,n){return function(e,t){e||t[0]&&t[0].error?((e=e||t[0]).docId=n,r(e)):r(null,t.length?t[0]:t)}}function v(e,t){var r=d(e._id,t._id);return 0!==r?r:d(e._revisions?e._revisions.start:0,t._revisions?t._revisions.start:0)}function y(){for(var e in u.EventEmitter.call(this),y.prototype)"function"==typeof this[e]&&(this[e]=this[e].bind(this))}function _(){this.isReady=!1,this.failed=!1,this.queue=[]}function m(e,t){if(!(this instanceof m))return new m(e,t);var o=this;if(t=t||{},e&&"object"==typeof e&&(e=(t=e).name,delete t.name),void 0===t.deterministic_revs&&(t.deterministic_revs=!0),this.__opts=t=l.clone(t),o.auto_compaction=t.auto_compaction,o.prefix=m.prefix,"string"!=typeof e)throw new Error("Missing/invalid DB name");var r=function(e,t){var r=e.match(/([a-z-]*):\/\/(.*)/);if(r)return{name:/https?/.test(r[1])?r[1]+"://"+r[2]:r[2],adapter:r[1]};var n=m.adapters,o=m.preferredAdapters,i=m.prefix,s=t.adapter;if(!s)for(var u=0;u<o.length&&("idb"===(s=o[u])&&"websql"in n&&l.hasLocalStorage()&&localStorage["_pouch__websqldb_"+i+e]);++u)l.guardedConsole("log",'PouchDB is downgrading "'+e+'" to WebSQL to avoid data loss, because it was already opened with WebSQL.');var a=n[s];return{name:!(a&&"use_prefix"in a)||a.use_prefix?i+e:e,adapter:s}}((t.prefix||"")+e,t);if(t.name=r.name,t.adapter=t.adapter||r.adapter,o.name=e,o._adapter=t.adapter,m.emit("debug",["adapter","Picked adapter: ",t.adapter]),!m.adapters[t.adapter]||!m.adapters[t.adapter].valid())throw new Error("Invalid Adapter: "+t.adapter);y.call(o),o.taskqueue=new _,o.adapter=t.adapter,m.adapters[t.adapter].call(o,t,function(e){if(e)return o.taskqueue.fail(e);function t(e){n.removeListener("closed",r),e||n.constructor.emit("destroyed",n.name)}function r(){n.removeListener("destroyed",t),n.constructor.emit("unref",n)}var n;(n=o).once("destroyed",t),n.once("closed",r),n.constructor.emit("ref",n),o.emit("created",o),m.emit("created",o.name),o.taskqueue.ready(o)})}i(p,u.EventEmitter),p.prototype.cancel=function(){this.isCancelled=!0,this.db.taskqueue.isReady&&this.emit("cancel")},p.prototype.validateChanges=function(t){var r=t.complete,n=this;m._changesFilterPlugin?m._changesFilterPlugin.validate(t,function(e){if(e)return r(e);n.doChanges(t)}):n.doChanges(t)},p.prototype.doChanges=function(t){var r=this,n=t.complete;if("live"in(t=l.clone(t))&&!("continuous"in t)&&(t.continuous=t.live),t.processChange=h,"latest"===t.since&&(t.since="now"),t.since||(t.since=0),"now"!==t.since){if(m._changesFilterPlugin){if(m._changesFilterPlugin.normalize(t),m._changesFilterPlugin.shouldFilter(this,t))return m._changesFilterPlugin.filter(this,t)}else["doc_ids","filter","selector","view"].forEach(function(e){e in t&&l.guardedConsole("warn",'The "'+e+'" option was passed in to changes/replicate, but pouchdb-changes-filter plugin is not installed, so it was ignored. Please install the plugin to enable filtering.')});"descending"in t||(t.descending=!1),t.limit=0===t.limit?1:t.limit,t.complete=n;var o=this.db._changes(t);if(o&&"function"==typeof o.cancel){var i=r.cancel;r.cancel=s(function(e){o.cancel(),i.apply(this,e)})}}else this.db.info().then(function(e){r.isCancelled?n(null,{status:"cancelled"}):(t.since=e.update_seq,r.doChanges(t))},n)},i(y,u.EventEmitter),y.prototype.post=l.adapterFun("post",function(e,t,r){if("function"==typeof t&&(r=t,t={}),"object"!=typeof e||Array.isArray(e))return r(c.createError(c.NOT_AN_OBJECT));this.bulkDocs({docs:[e]},t,b(r,e._id))}),y.prototype.put=l.adapterFun("put",function(r,t,n){if("function"==typeof t&&(n=t,t={}),"object"!=typeof r||Array.isArray(r))return n(c.createError(c.NOT_AN_OBJECT));if(l.invalidIdError(r._id),j.isLocalId(r._id)&&"function"==typeof this._putLocal)return r._deleted?this._removeLocal(r,n):this._putLocal(r,n);var e,o,i,s,u=this;function a(e){"function"==typeof u._put&&!1!==t.new_edits?u._put(r,t,e):u.bulkDocs({docs:[r]},t,b(e,r._id))}t.force&&r._rev?(e=r._rev.split("-"),o=e[1],i=parseInt(e[0],10)+1,s=l.rev(),r._revisions={start:i,ids:[s,o]},r._rev=i+"-"+s,t.new_edits=!1,a(function(e){var t=e?null:{ok:!0,id:r._id,rev:r._rev};n(e,t)})):a(n)}),y.prototype.putAttachment=l.adapterFun("putAttachment",function(t,r,n,o,i){var s=this;function u(e){var t="_rev"in e?parseInt(e._rev,10):0;return e._attachments=e._attachments||{},e._attachments[r]={content_type:i,data:o,revpos:++t},s.put(e)}return"function"==typeof i&&(i=o,o=n,n=null),void 0===i&&(i=o,o=n,n=null),i||l.guardedConsole("warn","Attachment",r,"on document",t,"is missing content_type"),s.get(t).then(function(e){if(e._rev!==n)throw c.createError(c.REV_CONFLICT);return u(e)},function(e){if(e.reason===c.MISSING_DOC.message)return u({_id:t});throw e})}),y.prototype.removeAttachment=l.adapterFun("removeAttachment",function(e,r,n,o){var i=this;i.get(e,function(e,t){if(e)o(e);else if(t._rev===n){if(!t._attachments)return o();delete t._attachments[r],0===Object.keys(t._attachments).length&&delete t._attachments,i.put(t,o)}else o(c.createError(c.REV_CONFLICT))})}),y.prototype.remove=l.adapterFun("remove",function(e,t,r,n){var o;"string"==typeof t?(o={_id:e,_rev:t},"function"==typeof r&&(n=r,r={})):(o=e,r="function"==typeof t?(n=t,{}):(n=r,t)),(r=r||{}).was_delete=!0;var i={_id:o._id,_rev:o._rev||r.rev,_deleted:!0};if(j.isLocalId(i._id)&&"function"==typeof this._removeLocal)return this._removeLocal(o,n);this.bulkDocs({docs:[i]},r,b(n,i._id))}),y.prototype.revsDiff=l.adapterFun("revsDiff",function(i,e,s){"function"==typeof e&&(s=e,e={});var c=Object.keys(i);if(!c.length)return s(null,{});var l=0,f=new o.Map;function p(e,t){f.has(e)||f.set(e,{missing:[]}),f.get(e).missing.push(t)}c.map(function(o){this._getRevisionTree(o,function(e,t){if(e&&404===e.status&&"missing"===e.message)f.set(o,{missing:i[o]});else{if(e)return s(e);r=t,a=i[u=o].slice(0),j.traverseRevTree(r,function(e,t,r,n,o){var i=t+"-"+r,s=a.indexOf(i);-1!==s&&(a.splice(s,1),"available"!==o.status&&p(u,i))}),a.forEach(function(e){p(u,e)})}var u,r,a;if(++l===c.length){var n={};return f.forEach(function(e,t){n[t]=e}),s(null,n)}})},this)}),y.prototype.bulkGet=l.adapterFun("bulkGet",function(e,t){l.bulkGetShim(this,e,t)}),y.prototype.compactDocument=l.adapterFun("compactDocument",function(o,c,l){var f=this;this._getRevisionTree(o,function(e,t){if(e)return l(e);var r,i,s,n=(r=t,i={},s=[],j.traverseRevTree(r,function(e,t,r,n){var o=t+"-"+r;return e&&(i[o]=0),void 0!==n&&s.push({from:n,to:o}),o}),s.reverse(),s.forEach(function(e){void 0===i[e.from]?i[e.from]=1+i[e.to]:i[e.from]=Math.min(i[e.from],1+i[e.to])}),i),u=[],a=[];Object.keys(n).forEach(function(e){n[e]>c&&u.push(e)}),j.traverseRevTree(t,function(e,t,r,n,o){var i=t+"-"+r;"available"===o.status&&-1!==u.indexOf(i)&&a.push(i)}),f._doCompaction(o,a,l)})}),y.prototype.compact=l.adapterFun("compact",function(e,t){"function"==typeof e&&(t=e,e={});e=e||{},this._compactionQueue=this._compactionQueue||[],this._compactionQueue.push({opts:e,callback:t}),1===this._compactionQueue.length&&function r(n){var e=n._compactionQueue[0],t=e.opts,o=e.callback;n.get("_local/compaction").catch(function(){return!1}).then(function(e){e&&e.last_seq&&(t.last_seq=e.last_seq),n._compact(t,function(e,t){e?o(e):o(null,t),l.nextTick(function(){n._compactionQueue.shift(),n._compactionQueue.length&&r(n)})})})}(this)}),y.prototype._compact=function(e,r){var n=this,t={return_docs:!1,last_seq:e.last_seq||0},o=[];n.changes(t).on("change",function(e){o.push(n.compactDocument(e.id,0))}).on("complete",function(e){var t=e.last_seq;Promise.all(o).then(function(){return l.upsert(n,"_local/compaction",function(e){return(!e.last_seq||e.last_seq<t)&&(e.last_seq=t,e)})}).then(function(){r(null,{ok:!0})}).catch(r)}).on("error",r)},y.prototype.get=l.adapterFun("get",function(g,w,x){if("function"==typeof w&&(x=w,w={}),"string"!=typeof g)return x(c.createError(c.INVALID_ID));if(j.isLocalId(g)&&"function"==typeof this._getLocal)return this._getLocal(g,x);var r=[],O=this;function n(){var s=[],u=r.length;if(!u)return x(null,s);r.forEach(function(i){O.get(g,{rev:i,revs:w.revs,latest:w.latest,attachments:w.attachments,binary:w.binary},function(e,t){if(e)s.push({missing:i});else{for(var r,n=0,o=s.length;n<o;n++)if(s[n].ok&&s[n].ok._rev===t._rev){r=!0;break}r||s.push({ok:t})}--u||x(null,s)})})}if(!w.open_revs)return this._get(g,w,function(e,t){if(e)return e.docId=g,x(e);var o=t.doc,r=t.metadata,i=t.ctx;if(w.conflicts){var n=j.collectConflicts(r);n.length&&(o._conflicts=n)}if(j.isDeleted(r,o._rev)&&(o._deleted=!0),w.revs||w.revs_info){for(var s=o._rev.split("-"),u=parseInt(s[0],10),a=s[1],c=j.rootToLeaf(r.rev_tree),l=null,f=0;f<c.length;f++){var p=c[f],h=p.ids.map(function(e){return e.id}).indexOf(a);(h===u-1||!l&&-1!==h)&&(l=p)}if(!l)return(e=new Error("invalid rev tree")).docId=g,x(e);var d=l.ids.map(function(e){return e.id}).indexOf(o._rev.split("-")[1])+1,b=l.ids.length-d;if(l.ids.splice(d,b),l.ids.reverse(),w.revs&&(o._revisions={start:l.pos+l.ids.length-1,ids:l.ids.map(function(e){return e.id})}),w.revs_info){var v=l.pos+l.ids.length;o._revs_info=l.ids.map(function(e){return{rev:--v+"-"+e.id,status:e.opts.status}})}}if(w.attachments&&o._attachments){var y=o._attachments,_=Object.keys(y).length;if(0===_)return x(null,o);Object.keys(y).forEach(function(n){this._getAttachment(o._id,n,y[n],{rev:o._rev,binary:w.binary,ctx:i},function(e,t){var r=o._attachments[n];r.data=t,delete r.stub,delete r.length,--_||x(null,o)})},O)}else{if(o._attachments)for(var m in o._attachments)o._attachments.hasOwnProperty(m)&&(o._attachments[m].stub=!0);x(null,o)}});if("all"===w.open_revs)this._getRevisionTree(g,function(e,t){if(e)return x(e);r=j.collectLeaves(t).map(function(e){return e.rev}),n()});else{if(!Array.isArray(w.open_revs))return x(c.createError(c.UNKNOWN_ERROR,"function_clause"));r=w.open_revs;for(var e=0;e<r.length;e++){var t=r[e];if("string"!=typeof t||!/^\d+-/.test(t))return x(c.createError(c.INVALID_REV))}n()}}),y.prototype.getAttachment=l.adapterFun("getAttachment",function(r,n,o,i){var s=this;o instanceof Function&&(i=o,o={}),this._get(r,o,function(e,t){return e?i(e):t.doc._attachments&&t.doc._attachments[n]?(o.ctx=t.ctx,o.binary=!0,void s._getAttachment(r,n,t.doc._attachments[n],o,i)):i(c.createError(c.MISSING_DOC))})}),y.prototype.allDocs=l.adapterFun("allDocs",function(t,e){if("function"==typeof t&&(e=t,t={}),t.skip=void 0!==t.skip?t.skip:0,t.start_key&&(t.startkey=t.start_key),t.end_key&&(t.endkey=t.end_key),"keys"in t){if(!Array.isArray(t.keys))return e(new TypeError("options.keys must be an array"));var r=["startkey","endkey","key"].filter(function(e){return e in t})[0];if(r)return void e(c.createError(c.QUERY_PARSE_ERROR,"Query parameter `"+r+"` is not compatible with multi-get"));if(!l.isRemote(this)&&(o="limit"in(n=t)?n.keys.slice(n.skip,n.limit+n.skip):0<n.skip?n.keys.slice(n.skip):n.keys,n.keys=o,n.skip=0,delete n.limit,n.descending&&(o.reverse(),n.descending=!1),0===t.keys.length))return this._allDocs({limit:0},e)}var n,o;return this._allDocs(t,e)}),y.prototype.changes=function(e,t){return"function"==typeof e&&(t=e,e={}),(e=e||{}).return_docs="return_docs"in e?e.return_docs:!e.live,new p(this,e,t)},y.prototype.close=l.adapterFun("close",function(e){return this._closed=!0,this.emit("closed"),this._close(e)}),y.prototype.info=l.adapterFun("info",function(r){var n=this;this._info(function(e,t){if(e)return r(e);t.db_name=t.db_name||n.name,t.auto_compaction=!(!n.auto_compaction||l.isRemote(n)),t.adapter=n.adapter,r(null,t)})}),y.prototype.id=l.adapterFun("id",function(e){return this._id(e)}),y.prototype.type=function(){return"function"==typeof this._type?this._type():this.adapter},y.prototype.bulkDocs=l.adapterFun("bulkDocs",function(e,o,i){if("function"==typeof o&&(i=o,o={}),o=o||{},Array.isArray(e)&&(e={docs:e}),!e||!e.docs||!Array.isArray(e.docs))return i(c.createError(c.MISSING_BULK_DOCS));for(var t=0;t<e.docs.length;++t)if("object"!=typeof e.docs[t]||Array.isArray(e.docs[t]))return i(c.createError(c.NOT_AN_OBJECT));var n;if(e.docs.forEach(function(r){r._attachments&&Object.keys(r._attachments).forEach(function(e){var t;n=n||"_"===(t=e).charAt(0)&&t+" is not a valid attachment name, attachment names cannot start with '_'",r._attachments[e].content_type||l.guardedConsole("warn","Attachment",e,"on document",r._id,"is missing content_type")})}),n)return i(c.createError(c.BAD_REQUEST,n));"new_edits"in o||(o.new_edits=!("new_edits"in e)||e.new_edits);var s=this;o.new_edits||l.isRemote(s)||e.docs.sort(v),function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r._deleted)delete r._attachments;else if(r._attachments)for(var n=Object.keys(r._attachments),o=0;o<n.length;o++){var i=n[o];r._attachments[i]=l.pick(r._attachments[i],["data","digest","content_type","length","revpos","stub"])}}}(e.docs);var u=e.docs.map(function(e){return e._id});return this._bulkDocs(e,o,function(e,t){if(e)return i(e);if(o.new_edits||(t=t.filter(function(e){return e.error})),!l.isRemote(s))for(var r=0,n=t.length;r<n;r++)t[r].id=t[r].id||u[r];i(null,t)})}),y.prototype.registerDependentDatabase=l.adapterFun("registerDependentDatabase",function(t,e){var r=new this.constructor(t,this.__opts);l.upsert(this,"_local/_pouch_dependentDbs",function(e){return e.dependentDbs=e.dependentDbs||{},!e.dependentDbs[t]&&(e.dependentDbs[t]=!0,e)}).then(function(){e(null,{db:r})}).catch(e)}),y.prototype.destroy=l.adapterFun("destroy",function(e,i){"function"==typeof e&&(i=e,e={});var s=this,u=!("use_prefix"in s)||s.use_prefix;function a(){s._destroy(e,function(e,t){if(e)return i(e);s._destroyed=!0,s.emit("destroyed"),i(null,t||{ok:!0})})}if(l.isRemote(s))return a();s.get("_local/_pouch_dependentDbs",function(e,t){if(e)return 404!==e.status?i(e):a();var r=t.dependentDbs,n=s.constructor,o=Object.keys(r).map(function(e){var t=u?e.replace(new RegExp("^"+n.prefix),""):e;return new n(t,s.__opts).destroy()});Promise.all(o).then(a,i)})}),_.prototype.execute=function(){var e;if(this.failed)for(;e=this.queue.shift();)e(this.failed);else for(;e=this.queue.shift();)e()},_.prototype.fail=function(e){this.failed=e,this.execute()},_.prototype.ready=function(e){this.isReady=!0,this.db=e,this.execute()},_.prototype.addTask=function(e){this.queue.push(e),this.failed&&this.execute()},i(m,y),m.adapters={},m.preferredAdapters=[],m.prefix="_pouch_";var g=new u.EventEmitter;!function(t){Object.keys(u.EventEmitter.prototype).forEach(function(e){"function"==typeof u.EventEmitter.prototype[e]&&(t[e]=g[e].bind(g))});var n=t._destructionListeners=new o.Map;t.on("ref",function(e){n.has(e.name)||n.set(e.name,[]),n.get(e.name).push(e)}),t.on("unref",function(e){if(n.has(e.name)){var t=n.get(e.name),r=t.indexOf(e);r<0||(t.splice(r,1),1<t.length?n.set(e.name,t):n.delete(e.name))}}),t.on("destroyed",function(e){if(n.has(e)){var t=n.get(e);n.delete(e),t.forEach(function(e){e.emit("destroyed",!0)})}})}(m),m.adapter=function(e,t,r){t.valid()&&(m.adapters[e]=t,r&&m.preferredAdapters.push(e))},m.plugin=function(t){if("function"==typeof t)t(m);else{if("object"!=typeof t||0===Object.keys(t).length)throw new Error('Invalid plugin: got "'+t+'", expected an object or a function');Object.keys(t).forEach(function(e){m.prototype[e]=t[e]})}return this.__defaults&&(m.__defaults=l.assign({},this.__defaults)),m},m.defaults=function(e){function r(e,t){if(!(this instanceof r))return new r(e,t);t=t||{},e&&"object"==typeof e&&(e=(t=e).name,delete t.name),t=l.assign({},r.__defaults,t),m.call(this,e,t)}return i(r,m),r.preferredAdapters=m.preferredAdapters.slice(),Object.keys(m).forEach(function(e){e in r||(r[e]=m[e])}),r.__defaults=l.assign({},this.__defaults,e),r},m.fetch=function(e,t){return a.fetch(e,t)};m.plugin(f),m.version="7.1.1",t.exports=m},{argsarray:66,events:406,inherits:447,"pouchdb-changes-filter":442,"pouchdb-collections":445,"pouchdb-errors":448,"pouchdb-fetch":450,"pouchdb-merge":471,"pouchdb-utils":475}],447:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],448:[function(e,t,r){arguments[4][434][0].apply(r,arguments)},{dup:434,inherits:449}],449:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],450:[function(e,t,r){arguments[4][435][0].apply(r,arguments)},{dup:435}],451:[function(e,t,r){"use strict";var n,l=e("pouchdb-utils"),s=e("pouchdb-errors"),u=e("pouchdb-fetch"),x=e("pouchdb-selector-core"),o=(n=e("pouchdb-abstract-mapreduce"))&&"object"==typeof n&&"default"in n?n.default:n,c=e("pouchdb-collate"),f=e("pouchdb-md5");function p(t){return(t=l.clone(t)).index||(t.index={}),["type","name","ddoc"].forEach(function(e){t.index[e]&&(t[e]=t.index[e],delete t.index[e])}),t.fields&&(t.index.fields=t.fields,delete t.fields),t.type||(t.type="json"),t}function a(e,t,r,n){var o,i;r.headers=new u.Headers({"Content-type":"application/json"}),e.fetch(t,r).then(function(e){return o=e.status,i=e.ok,e.json()}).then(function(e){if(i)n(null,e);else{e.status=o;var t=s.generateErrorFromResponse(e);n(t)}}).catch(n)}function i(e,t,r){t=p(t),a(e,"_index",{method:"POST",body:JSON.stringify(t)},r)}function h(e,t,r){a(e,"_find",{method:"POST",body:JSON.stringify(t)},r)}function d(e,t,r){a(e,"_explain",{method:"POST",body:JSON.stringify(t)},r)}function b(e,t){a(e,"_index",{method:"GET"},t)}function v(e,t,r){var n=t.ddoc,o=t.type||"json",i=t.name;return n?i?void a(e,"_index/"+[n,o,i].map(encodeURIComponent).join("/"),{method:"DELETE"},r):r(new Error("you must provide an index's name")):r(new Error("you must provide an index's ddoc"))}function y(n){return function(){for(var e=arguments.length,t=new Array(e),r=-1;++r<e;)t[r]=arguments[r];return n.call(this,t)}}function _(o){return y(function(e){var t,r=e.pop(),n=o.apply(this,e);return t=r,n.then(function(e){l.nextTick(function(){t(null,e)})},function(e){l.nextTick(function(){t(e)})}),n})}var m=y(function(e){for(var t=[],r=0,n=e.length;r<n;r++){var o=e[r];Array.isArray(o)?t=t.concat(m.apply(null,o)):t.push(o)}return t});function O(e){for(var t={},r=0,n=e.length;r<n;r++)t=l.assign(t,e[r]);return t}function g(e,t){for(var r=0,n=Math.min(e.length,t.length);r<n;r++)if(e[r]!==t[r])return!1;return!0}function j(e,t){if(e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function w(e,t){var a,c,r,o,i,s,u,n,l,f=function(e){for(var t=0,r=e.length;t<r;t++){if(-1!==e[t].indexOf("."))return!1}return!0}(e),p=1===e.length;return f?p?(n=e[0],l=t,function(e){l(e[n])}):(s=e,u=t,function(e){for(var t=[],r=0,n=s.length;r<n;r++)t.push(e[s[r]]);u(t)}):p?(r=e[0],o=t,i=x.parseField(r),function(e){for(var t=e,r=0,n=i.length;r<n;r++)if(void 0===(t=t[i[r]]))return;o(t)}):(a=e,c=t,function(e){for(var t=[],r=0,n=a.length;r<n;r++){for(var o=x.parseField(a[r]),i=e,s=0,u=o.length;s<u;s++)if(void 0===(i=i[o[s]]))return;t.push(i)}c(t)})}var S=o("indexes",function(e,t){return w(Object.keys(e.fields),t)},function(){throw new Error("reduce not supported")},function(e,t){var r=e.views[t];if(!r.map||!r.map.fields)throw new Error("ddoc "+e._id+" with view "+t+" doesn't have map.fields defined. maybe it wasn't created by this plugin?")});function E(e){return e.fields=e.fields.map(function(e){if("string"!=typeof e)return e;var t={};return t[e]="asc",t}),e}function k(e,t){for(var r=[],n=0;n<t.def.fields.length;n++){var o=x.getKey(t.def.fields[n]);r.push(e[o])}return r}function P(e){return e.allDocs({startkey:"_design/",endkey:"_design/",include_docs:!0}).then(function(e){var t={indexes:[{ddoc:null,name:"_all_docs",type:"special",def:{fields:[{_id:"asc"}]}}]};return t.indexes=m(t.indexes,e.rows.filter(function(e){return"query"===e.doc.language}).map(function(r){return(void 0!==r.doc.views?Object.keys(r.doc.views):[]).map(function(e){var t=r.doc.views[e];return{ddoc:r.id,name:e,type:"json",def:E(t.options.def)}})})),t.indexes.sort(function(e,t){return x.compare(e.name,t.name)}),t.total_rows=t.indexes.length,t})}var A=null,C={"":{}};function R(e,t){for(var r=e.def.fields.map(x.getKey),n=0,o=r.length;n<o;n++){if(t===r[n])return!0}return!1}function M(e,t){var o=t.def.fields.map(x.getKey);return e.slice().sort(function(e,t){var r=o.indexOf(e),n=o.indexOf(t);return-1===r&&(r=Number.MAX_VALUE),-1===n&&(n=Number.MAX_VALUE),x.compare(r,n)})}function I(e,t,r,n){var o,i,s=m(e,function(e,t,r){for(var n,o=!1,i=0,s=(r=M(r,e)).length;i<s;i++){var u=r[i];if(o||!R(e,u))return r.slice(i);i<s-1&&(n=t[u],"$eq"!==x.getKey(n))&&(o=!0)}return[]}(t,r,n),(o=r,i=[],Object.keys(o).forEach(function(t){var e=o[t];Object.keys(e).forEach(function(e){"$ne"===e&&i.push(t)})}),i));return M(function(e){for(var t={},r=0;r<e.length;r++)t["$"+e[r]]=!0;return Object.keys(t).map(function(e){return e.substring(1)})}(s),t)}function D(e,t,r){if(t){var n=(s=e,!((i=t).length>s.length)&&g(i,s)),o=g(r,e);return n&&o}var i,s;return function(e,t){e=e.slice();for(var r=0,n=t.length;r<n;r++){var o=t[r];if(!e.length)break;var i=e.indexOf(o);if(-1===i)return!1;e.splice(i,1)}return!0}(r,e)}var T=["$eq","$gt","$gte","$lt","$lte"];function N(e){return-1===T.indexOf(e)}function B(e,t,r,n){var o,i=e.def.fields.map(x.getKey);return!!D(i,t,r)&&(void 0===(o=n[i[0]])||!!Object.keys(o).some(function(e){return!N(e)})&&!(1===Object.keys(o).length&&"$ne"===x.getKey(o)))}function L(e,t,r,n,o){var i,s,u,a=(i=e,s=t,u=r,n.reduce(function(e,t){return B(t,u,s,i)&&e.push(t),e},[]));if(0===a.length){if(o)throw{error:"no_usable_index",message:"There is no index available for this selector."};var c=n[0];return c.defaultUsed=!0,c}if(1===a.length&&!o)return a[0];var l=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e[r]]=!0;return t}(t);if(o){var f="_design/"+o[0],p=2===o.length&&o[1],h=a.find(function(e){return!(!p||e.ddoc!==f||p!==e.name)||e.ddoc===f});if(!h)throw{error:"unknown_error",message:"Could not find that index or could not use that index for the query"};return h}return function(e,t){for(var r=null,n=-1,o=0,i=e.length;o<i;o++){var s=e[o],u=t(s);n<u&&(n=u,r=s)}return r}(a,function(e){for(var t=e.def.fields.map(x.getKey),r=0,n=0,o=t.length;n<o;n++){var i=t[n];l[i]&&r++}return r})}function q(e,t){var r,n=x.getKey(t.def.fields[0]),o=e[n]||{},i=[];return Object.keys(o).forEach(function(e){if(N(e))i.push(n);else{var t=function(e,t){switch(e){case"$eq":return{key:t};case"$lte":return{endkey:t};case"$gte":return{startkey:t};case"$lt":return{endkey:t,inclusive_end:!1};case"$gt":return{startkey:t,inclusive_start:!1}}}(e,o[e]);r=r?O([r,t]):t}}),{queryOpts:r,inMemoryFields:i}}function $(e,t){switch(e){case"$eq":return{startkey:t,endkey:t};case"$lte":return{endkey:t};case"$gte":return{startkey:t};case"$lt":return{endkey:t,inclusive_end:!1};case"$gt":return{startkey:t,inclusive_start:!1}}}function F(e,t){return t.defaultUsed?(r=e,{queryOpts:{startkey:null},inMemoryFields:[Object.keys(r)]}):1===t.def.fields.length?q(e,t):function(e,t){var r,n,o=t.def.fields.map(x.getKey),i=[],s=[],u=[];function a(e){!1!==r&&s.push(A),!1!==n&&u.push(C),i=o.slice(e)}for(var c=0,l=o.length;c<l;c++){var f=e[o[c]];if(!f||!Object.keys(f).length){a(c);break}if(0<c){if(Object.keys(f).some(N)){a(c);break}var p="$gt"in f||"$gte"in f||"$lt"in f||"$lte"in f,h=Object.keys(e[o[c-1]]),d=j(h,["$eq"]),b=j(h,Object.keys(f));if(p&&!d&&!b){a(c);break}}for(var v=Object.keys(f),y=null,_=0;_<v.length;_++){var m=v[_],g=$(m,f[m]);y=y?O([y,g]):g}s.push("startkey"in y?y.startkey:A),u.push("endkey"in y?y.endkey:C),"inclusive_start"in y&&(r=y.inclusive_start),"inclusive_end"in y&&(n=y.inclusive_end)}var w={startkey:s,endkey:u};return void 0!==r&&(w.inclusive_start=r),void 0!==n&&(w.inclusive_end=n),{queryOpts:w,inMemoryFields:i}}(e,t);var r}function U(e,t){var r,n,o,i,s,u=e.selector,a=e.sort,c=(r=u,n=a,i=Object.keys(r),s=n?n.map(x.getKey):[],o=i.length>=s.length?i:s,0===s.length?{fields:o}:{fields:o=o.sort(function(e,t){var r=s.indexOf(e);-1===r&&(r=Number.MAX_VALUE);var n=s.indexOf(t);return-1===n&&(n=Number.MAX_VALUE),r<n?-1:n<r?1:0}),sortOrder:n.map(x.getKey)}),l=c.fields,f=L(u,l,c.sortOrder,t,e.use_index),p=F(u,f);return{queryOpts:p.queryOpts,index:f,inMemoryFields:I(p.inMemoryFields,f,u,l)}}function V(u,o,a){var e,t;return o.selector&&(o.selector=x.massageSelector(o.selector)),o.sort&&(o.sort=function(e){if(!Array.isArray(e))throw new Error("invalid sort json - should be an array");return e.map(function(e){if("string"!=typeof e)return e;var t={};return t[e]="asc",t})}(o.sort)),o.use_index&&(o.use_index=(e=o.use_index,t=[],"string"==typeof e?t.push(e):t=e,t.map(function(e){return e.replace("_design/","")}))),function(e){if("object"!=typeof e.selector)throw new Error("you must provide a selector when you find()")}(o),P(u).then(function(e){u.constructor.emit("debug",["find","planning query",o]);var r=U(o,e.indexes);u.constructor.emit("debug",["find","query plan",r]);var i=r.index;!function(e,t){if(t.defaultUsed&&e.sort){var r=e.sort.filter(function(e){return"_id"!==Object.keys(e)[0]}).map(function(e){return Object.keys(e)[0]});if(0<r.length)throw new Error('Cannot sort on field(s) "'+r.join(",")+'" when using the default index')}t.defaultUsed}(o,i);var t,n,s=l.assign({include_docs:!0,reduce:!1},r.queryOpts);return"startkey"in s&&"endkey"in s&&0<c.collate(s.startkey,s.endkey)?{docs:[]}:(o.sort&&"string"!=typeof o.sort[0]&&"desc"===x.getValue(o.sort[0])&&(s.descending=!0,t=s,delete(n=l.clone(t)).startkey,delete n.endkey,delete n.inclusive_start,delete n.inclusive_end,"endkey"in t&&(n.startkey=t.endkey),"startkey"in t&&(n.endkey=t.startkey),"inclusive_start"in t&&(n.inclusive_end=t.inclusive_start),"inclusive_end"in t&&(n.inclusive_start=t.inclusive_end),s=n),r.inMemoryFields.length||("limit"in o&&(s.limit=o.limit),"skip"in o&&(s.skip=o.skip)),a?Promise.resolve(r,s):Promise.resolve().then(function(){if("_all_docs"===i.name)return t=u,r=s,(n=l.clone(r)).descending?("endkey"in n&&"string"!=typeof n.endkey&&(n.endkey=""),"startkey"in n&&"string"!=typeof n.startkey&&(n.limit=0)):("startkey"in n&&"string"!=typeof n.startkey&&(n.startkey=""),"endkey"in n&&"string"!=typeof n.endkey&&(n.limit=0)),"key"in n&&"string"!=typeof n.key&&(n.limit=0),t.allDocs(n).then(function(e){return e.rows=e.rows.filter(function(e){return!/^_design\//.test(e.id)}),e});var e,t,r,n,o=(e=i).ddoc.substring(8)+"/"+e.name;return S.query.call(u,o,s)}).then(function(e){!1===s.inclusive_start&&(e.rows=function(e,t,r){for(var n=r.def.fields,o=0,i=e.length;o<i;o++){var s=k(e[o].doc,r);if(1===n.length)s=s[0];else for(;s.length>t.length;)s.pop();if(0<Math.abs(c.collate(s,t)))break}return 0<o?e.slice(o):e}(e.rows,s.startkey,i)),r.inMemoryFields.length&&(e.rows=x.filterInMemoryFields(e.rows,o,r.inMemoryFields));var t={docs:e.rows.map(function(e){var t=e.doc;return o.fields?function(e,t){for(var r={},n=0,o=t.length;n<o;n++){var i=x.parseField(t[n]),s=x.getFieldFromDoc(e,i);void 0!==s&&x.setFieldInDoc(r,i,s)}return r}(t,o.fields):t})};return i.defaultUsed&&(t.warning="no matching index found, create an index to optimize query time"),t}))})}var z=_(function(t,r){r=p(r);var e,n=l.clone(r.index);function o(){return e=e||f.stringMd5(JSON.stringify(r))}r.index=E(r.index),function(e){var t=e.fields.filter(function(e){return"asc"===x.getValue(e)});if(0!==t.length&&t.length!==e.fields.length)throw new Error("unsupported mixed sorting")}(r.index);var i=r.name||"idx-"+o(),s=r.ddoc||"idx-"+o(),u="_design/"+s,a=!1,c=!1;return t.constructor.emit("debug",["find","creating index",u]),l.upsert(t,u,function(e){return e._rev&&"query"!==e.language&&(a=!0),e.language="query",e.views=e.views||{},!(c=!!e.views[i])&&(e.views[i]={map:{fields:O(r.index.fields)},reduce:"_count",options:{def:n}},e)}).then(function(){if(a)throw new Error('invalid language for ddoc with id "'+u+'" (should be "query")')}).then(function(){var e=s+"/"+i;return S.query.call(t,e,{limit:0,reduce:!1}).then(function(){return{id:u,name:i,result:c?"exists":"created"}})})}),W=_(V),J=_(function(t,r){return V(t,r,!0).then(function(e){return{dbname:t.name,index:e.index,selector:r.selector,range:{start_key:e.queryOpts.startkey,end_key:e.queryOpts.endkey},opts:{use_index:r.use_index||[],bookmark:"nil",limit:r.limit,skip:r.skip,sort:r.sort||{},fields:r.fields,conflicts:!1,r:[49]},limit:r.limit,skip:r.skip||0,fields:r.fields}})}),H=_(P),Q=_(function(e,t){if(!t.ddoc)throw new Error("you must supply an index.ddoc when deleting");if(!t.name)throw new Error("you must supply an index.name when deleting");var r=t.ddoc,n=t.name;return l.upsert(e,r,function(e){return 1===Object.keys(e.views).length&&e.views[n]?{_id:r,_deleted:!0}:(delete e.views[n],e)}).then(function(){return S.viewCleanup.apply(e)}).then(function(){return{ok:!0}})}),K={};K.createIndex=l.toPromise(function(e,t){if("object"!=typeof e)return t(new Error("you must provide an index to create"));(l.isRemote(this)?i:z)(this,e,t)}),K.find=l.toPromise(function(e,t){if(void 0===t&&(t=e,e=void 0),"object"!=typeof e)return t(new Error("you must provide search parameters to find()"));(l.isRemote(this)?h:W)(this,e,t)}),K.explain=l.toPromise(function(e,t){if(void 0===t&&(t=e,e=void 0),"object"!=typeof e)return t(new Error("you must provide search parameters to explain()"));(l.isRemote(this)?d:J)(this,e,t)}),K.getIndexes=l.toPromise(function(e){(l.isRemote(this)?b:H)(this,e)}),K.deleteIndex=l.toPromise(function(e,t){if("object"!=typeof e)return t(new Error("you must provide an index to delete"));(l.isRemote(this)?v:Q)(this,e,t)}),t.exports=K},{"pouchdb-abstract-mapreduce":429,"pouchdb-collate":454,"pouchdb-errors":456,"pouchdb-fetch":457,"pouchdb-md5":458,"pouchdb-selector-core":459,"pouchdb-utils":460}],452:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],453:[function(e,t,r){arguments[4][431][0].apply(r,arguments)},{dup:431}],454:[function(e,t,r){arguments[4][432][0].apply(r,arguments)},{dup:432}],455:[function(e,t,r){arguments[4][433][0].apply(r,arguments)},{dup:433}],456:[function(e,t,r){arguments[4][434][0].apply(r,arguments)},{dup:434,inherits:452}],457:[function(e,t,r){arguments[4][435][0].apply(r,arguments)},{dup:435}],458:[function(e,t,r){arguments[4][436][0].apply(r,arguments)},{dup:436,"pouchdb-binary-utils":453,"spark-md5":683}],459:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var u=e("pouchdb-utils"),s=e("pouchdb-collate");function c(e,t){for(var r=e,n=0,o=t.length;n<o;n++){if(!(r=r[t[n]]))break}return r}function a(e,t){return e<t?-1:t<e?1:0}function l(e){for(var t=[],r="",n=0,o=e.length;n<o;n++){var i=e[n];"."===i?r=0<n&&"\\"===e[n-1]?r.substring(0,r.length-1)+".":(t.push(r),""):r+=i}return t.push(r),t}var n=["$or","$nor","$not"];function f(e){return-1<n.indexOf(e)}function o(e){return Object.keys(e)[0]}function p(e){return e[o(e)]}function h(e){var r={};return e.forEach(function(t){Object.keys(t).forEach(function(e){var s=t[e];if("object"!=typeof s&&(s={$eq:s}),f(e))s instanceof Array?r[e]=s.map(function(e){return h([e])}):r[e]=h([s]);else{var u=r[e]=r[e]||{};Object.keys(s).forEach(function(e){var t,r,n,o,i=s[e];return"$gt"===e||"$gte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$gte?"$gte"===e?t>r.$gte&&(r.$gte=t):t>=r.$gte&&(delete r.$gte,r.$gt=t):void 0!==r.$gt?"$gte"===e?t>r.$gt&&(delete r.$gt,r.$gte=t):t>r.$gt&&(r.$gt=t):r[e]=t}(e,i,u):"$lt"===e||"$lte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$lte?"$lte"===e?t<r.$lte&&(r.$lte=t):t<=r.$lte&&(delete r.$lte,r.$lt=t):void 0!==r.$lt?"$lte"===e?t<r.$lt&&(delete r.$lt,r.$lte=t):t<r.$lt&&(r.$lt=t):r[e]=t}(e,i,u):"$ne"===e?(n=i,void("$ne"in(o=u)?o.$ne.push(n):o.$ne=[n])):"$eq"===e?(t=i,delete(r=u).$gt,delete r.$gte,delete r.$lt,delete r.$lte,delete r.$ne,void(r.$eq=t)):void(u[e]=i)})}})}),r}function i(e){var t=u.clone(e),r=!1;"$and"in t&&(t=h(t.$and),r=!0),["$or","$nor"].forEach(function(e){e in t&&t[e].forEach(function(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r],o=e[n];"object"==typeof o&&null!==o||(e[n]={$eq:o})}})}),"$not"in t&&(t.$not=h([t.$not]));for(var n=Object.keys(t),o=0;o<n.length;o++){var i=n[o],s=t[i];"object"!=typeof s||null===s?s={$eq:s}:"$ne"in s&&!r&&(s.$ne=[s.$ne]),t[i]=s}return t}function d(e){function i(r){return e.map(function(e){var t=l(o(e));return c(r,t)})}return function(e,t){var r=i(e.doc),n=i(t.doc),o=s.collate(r,n);return 0!==o?o:a(e.doc._id,t.doc._id)}}function b(e,t,r){if(e=e.filter(function(e){return v(e.doc,t.selector,r)}),t.sort){var n=d(t.sort);e=e.sort(n),"string"!=typeof t.sort[0]&&"desc"===p(t.sort[0])&&(e=e.reverse())}if("limit"in t||"skip"in t){var o=t.skip||0,i=("limit"in t?t.limit:e.length)+o;e=e.slice(o,i)}return e}function v(u,a,e){return e.every(function(e){var t,r,n,o=a[e],i=l(e),s=c(u,i);return f(e)?(r=o,n=u,"$or"!==(t=e)?"$not"!==t?!r.find(function(e){return v(n,e,Object.keys(e))}):!v(n,r,Object.keys(r)):r.some(function(e){return v(n,e,Object.keys(e))})):y(o,u,i,s)})}function y(r,n,o,i){return!r||Object.keys(r).every(function(e){var t=r[e];return function(e,t,r,n,o){if(w[e])return w[e](t,r,n,o);throw new Error('unknown operator "'+e+'" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all')}(e,n,t,o,i)})}function _(e){return null!=e}function m(e){return void 0!==e}function g(t,e){return e.some(function(e){return t instanceof Array?-1<t.indexOf(e):t===e})}var w={$elemMatch:function(t,r,n,e){return!!Array.isArray(e)&&(0!==e.length&&("object"==typeof e[0]?e.some(function(e){return v(e,r,Object.keys(r))}):e.some(function(e){return y(r,t,n,e)})))},$allMatch:function(t,r,n,e){return!!Array.isArray(e)&&(0!==e.length&&("object"==typeof e[0]?e.every(function(e){return v(e,r,Object.keys(r))}):e.every(function(e){return y(r,t,n,e)})))},$eq:function(e,t,r,n){return m(n)&&0===s.collate(n,t)},$gte:function(e,t,r,n){return m(n)&&0<=s.collate(n,t)},$gt:function(e,t,r,n){return m(n)&&0<s.collate(n,t)},$lte:function(e,t,r,n){return m(n)&&s.collate(n,t)<=0},$lt:function(e,t,r,n){return m(n)&&s.collate(n,t)<0},$exists:function(e,t,r,n){return t?m(n):!m(n)},$mod:function(e,t,r,n){return _(n)&&function(e,t){var r=t[0],n=t[1];if(0===r)throw new Error("Bad divisor, cannot divide by zero");if(parseInt(r,10)!==r)throw new Error("Divisor is not an integer");if(parseInt(n,10)!==n)throw new Error("Modulus is not an integer");return parseInt(e,10)===e&&e%r===n}(n,t)},$ne:function(e,t,r,n){return t.every(function(e){return 0!==s.collate(n,e)})},$in:function(e,t,r,n){return _(n)&&g(n,t)},$nin:function(e,t,r,n){return _(n)&&!g(n,t)},$size:function(e,t,r,n){return _(n)&&(o=t,n.length===o);var o},$all:function(e,t,r,n){return Array.isArray(n)&&(o=n,t.every(function(e){return-1<o.indexOf(e)}));var o},$regex:function(e,t,r,n){return _(n)&&(o=n,new RegExp(t).test(o));var o},$type:function(e,t,r,n){return function(e,t){switch(t){case"null":return null===e;case"boolean":return"boolean"==typeof e;case"number":return"number"==typeof e;case"string":return"string"==typeof e;case"array":return e instanceof Array;case"object":return"[object Object]"==={}.toString.call(e)}throw new Error(t+" not supported as a type.Please use one of object, string, array, number, boolean or null.")}(n,t)}};r.massageSelector=i,r.matchesSelector=function(e,t){if("object"!=typeof t)throw new Error("Selector error: expected a JSON object");var r=b([{doc:e}],{selector:t=i(t)},Object.keys(t));return r&&1===r.length},r.filterInMemoryFields=b,r.createFieldSorter=d,r.rowFilter=v,r.isCombinationalField=f,r.getKey=o,r.getValue=p,r.getFieldFromDoc=c,r.setFieldInDoc=function(e,t,r){for(var n=0,o=t.length;n<o-1;n++){e=e[t[n]]={}}e[t[o-1]]=r},r.compare=a,r.parseField=l},{"pouchdb-collate":454,"pouchdb-utils":460}],460:[function(e,t,r){arguments[4][437][0].apply(r,arguments)},{argsarray:66,dup:437,events:406,immediate:413,inherits:452,"pouchdb-collections":455,"pouchdb-errors":456,"pouchdb-md5":458,"pouchdb-utils":460,uuid:686}],461:[function(e,t,r){"use strict";var c=e("pouchdb-md5"),l=e("pouchdb-collate");t.exports=function(e,t,r){var n,o=r.doc_ids?r.doc_ids.sort(l.collate):"",i=r.filter?r.filter.toString():"",s="",u="",a="";return r.selector&&(a=JSON.stringify(r.selector)),r.filter&&r.query_params&&(s=JSON.stringify((n=r.query_params,Object.keys(n).sort(l.collate).reduce(function(e,t){return e[t]=n[t],e},{})))),r.filter&&"_view"===r.filter&&(u=r.view.toString()),Promise.all([e.id(),t.id()]).then(function(e){var t=e[0]+e[1]+i+u+s+o+a;return new Promise(function(e){c.binaryMd5(t,e)})}).then(function(e){return"_local/"+(e=e.replace(/\//g,".").replace(/\+/g,"_"))})}},{"pouchdb-collate":444,"pouchdb-md5":470}],462:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=(n=e("vuvuzela"))&&"object"==typeof n&&"default"in n?n.default:n;r.safeJsonParse=function(t){try{return JSON.parse(t)}catch(e){return o.parse(t)}},r.safeJsonStringify=function(t){try{return JSON.stringify(t)}catch(e){return o.stringify(t)}}},{vuvuzela:691}],463:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(r,"__esModule",{value:!0});var o=n(e("inherits")),i=e("pouchdb-collections"),s=n(e("argsarray")),u=e("pouchdb-utils");function a(e){this.status=400,this.name="query_parse_error",this.message=e,this.error=!0;try{Error.captureStackTrace(this,a)}catch(e){}}function c(e){this.status=404,this.name="not_found",this.message=e,this.error=!0;try{Error.captureStackTrace(this,c)}catch(e){}}function l(e){this.status=500,this.name="invalid_value",this.message=e,this.error=!0;try{Error.captureStackTrace(this,l)}catch(e){}}function f(e,t){return t&&e.then(function(e){u.nextTick(function(){t(null,e)})},function(e){u.nextTick(function(){t(e)})}),e}o(a,Error),o(c,Error),o(l,Error),r.uniq=function(e){var t=new i.Set(e),r=new Array(t.size),n=-1;return t.forEach(function(e){r[++n]=e}),r},r.sequentialize=function(r,n){return function(){var e=arguments,t=this;return r.add(function(){return n.apply(t,e)})}},r.fin=function(e,t){return e.then(function(e){return t().then(function(){return e})},function(e){return t().then(function(){throw e})})},r.callbackify=function(n){return s(function(e){var t=e.pop(),r=n.apply(this,e);return"function"==typeof t&&f(r,t),r})},r.promisedCallback=f,r.mapToKeysArray=function(e){var r=new Array(e.size),n=-1;return e.forEach(function(e,t){r[++n]=t}),r},r.QueryParseError=a,r.NotFoundError=c,r.BuiltInError=l},{argsarray:66,inherits:464,"pouchdb-collections":466,"pouchdb-utils":469}],464:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],465:[function(e,t,r){arguments[4][431][0].apply(r,arguments)},{dup:431}],466:[function(e,t,r){arguments[4][433][0].apply(r,arguments)},{dup:433}],467:[function(e,t,r){arguments[4][434][0].apply(r,arguments)},{dup:434,inherits:464}],468:[function(e,t,r){arguments[4][436][0].apply(r,arguments)},{dup:436,"pouchdb-binary-utils":465,"spark-md5":683}],469:[function(e,t,r){arguments[4][437][0].apply(r,arguments)},{argsarray:66,dup:437,events:406,immediate:413,inherits:464,"pouchdb-collections":466,"pouchdb-errors":467,"pouchdb-md5":468,"pouchdb-utils":469,uuid:686}],470:[function(e,t,r){arguments[4][436][0].apply(r,arguments)},{dup:436,"pouchdb-binary-utils":441,"spark-md5":683}],471:[function(e,t,r){"use strict";function u(e){for(var t,r,n,o,i=e.rev_tree.slice();o=i.pop();){var s=o.ids,u=s[2],a=o.pos;if(u.length)for(var c=0,l=u.length;c<l;c++)i.push({pos:a+1,ids:u[c]});else{var f=!!s[1].deleted,p=s[0];t&&!(n!==f?n:r!==a?r<a:t<p)||(t=p,r=a,n=f)}}return r+"-"+t}function h(e,t){for(var r,n=e.slice();r=n.pop();)for(var o=r.pos,i=r.ids,s=i[2],u=t(0===s.length,o,i[0],r.ctx,i[1]),a=0,c=s.length;a<c;a++)n.push({pos:o+1,ids:s[a],ctx:u})}function n(e,t){return e.pos-t.pos}function a(e){var i=[];h(e,function(e,t,r,n,o){e&&i.push({rev:t+"-"+r,pos:t,opts:o})}),i.sort(n).reverse();for(var t=0,r=i.length;t<r;t++)delete i[t].pos;return i}function d(e){for(var t,r=[],n=e.slice();t=n.pop();){var o=t.pos,i=t.ids,s=i[0],u=i[1],a=i[2],c=0===a.length,l=t.history?t.history.slice():[];l.push({id:s,opts:u}),c&&r.push({pos:o+1-l.length,ids:l});for(var f=0,p=a.length;f<p;f++)n.push({pos:o+1,ids:a[f],history:l})}return r.reverse()}function g(e,t){return e.pos-t.pos}function l(e,t,r){var n=function(e,t,r){for(var n,o=0,i=e.length;o<i;)r(e[n=o+i>>>1],t)<0?o=1+n:i=n;return o}(e,t,r);e.splice(n,0,t)}function b(e,t){for(var r,n,o=t,i=e.length;o<i;o++){var s=e[o],u=[s.id,s.opts,[]];n?(n[2].push(u),n=u):r=n=u}return r}function f(e,t){return e[0]<t[0]?-1:1}function w(e,t){for(var r=[{tree1:e,tree2:t}],n=!1;0<r.length;){var o=r.pop(),i=o.tree1,s=o.tree2;(i[1].status||s[1].status)&&(i[1].status="available"===i[1].status||"available"===s[1].status?"available":"missing");for(var u=0;u<s[2].length;u++)if(i[2][0]){for(var a=!1,c=0;c<i[2].length;c++)i[2][c][0]===s[2][u][0]&&(r.push({tree1:i[2][c],tree2:s[2][u]}),a=!0);a||(n="new_branch",l(i[2],s[2][u],f))}else n="new_leaf",i[2][0]=s[2][u]}return{conflicts:n,tree:e}}function v(e,t,r){var n,o=[],i=!1,s=!1;if(!e.length)return{tree:[t],conflicts:"new_leaf"};for(var u=0,a=e.length;u<a;u++){var c=e[u];if(c.pos===t.pos&&c.ids[0]===t.ids[0])n=w(c.ids,t.ids),o.push({pos:c.pos,ids:n.tree}),i=i||n.conflicts,s=!0;else if(!0!==r){var l=c.pos<t.pos?c:t,f=c.pos<t.pos?t:c,p=f.pos-l.pos,h=[],d=[];for(d.push({ids:l.ids,diff:p,parent:null,parentIdx:null});0<d.length;){var b=d.pop();if(0!==b.diff)for(var v=b.ids[2],y=0,_=v.length;y<_;y++)d.push({ids:v[y],diff:b.diff-1,parent:b.ids,parentIdx:y});else b.ids[0]===f.ids[0]&&h.push(b)}var m=h[0];m?(n=w(m.ids,f.ids),m.parent[2][m.parentIdx]=n.tree,o.push({pos:l.pos,ids:l.ids}),i=i||n.conflicts,s=!0):o.push(c)}else o.push(c)}return s||o.push(t),o.sort(g),{tree:o,conflicts:i||"internal_node"}}function i(e){return e.ids}Object.defineProperty(r,"__esModule",{value:!0}),r.collectConflicts=function(e){for(var t=u(e),r=a(e.rev_tree),n=[],o=0,i=r.length;o<i;o++){var s=r[o];s.rev===t||s.opts.deleted||n.push(s.rev)}return n},r.collectLeaves=a,r.compactTree=function(e){var i=[];return h(e.rev_tree,function(e,t,r,n,o){"available"!==o.status||e||(i.push(t+"-"+r),o.status="missing")}),i},r.isDeleted=function(e,t){for(var r,n=(t=t||u(e)).substring(t.indexOf("-")+1),o=e.rev_tree.map(i);r=o.pop();){if(r[0]===n)return!!r[1].deleted;o=o.concat(r[2])}},r.isLocalId=function(e){return/^_local/.test(e)},r.merge=function(e,t,r){var n=v(e,t),o=function(e,t){for(var n,r,o=d(e),i=0,s=o.length;i<s;i++){var u,a=o[i],c=a.ids;if(c.length>t){n=n||{};var l=c.length-t;u={pos:a.pos+l,ids:b(c,l)};for(var f=0;f<l;f++){var p=a.pos+f+"-"+c[f].id;n[p]=!0}}else u={pos:a.pos,ids:b(c,0)};r=r?v(r,u,!0).tree:[u]}return n&&h(r,function(e,t,r){delete n[t+"-"+r]}),{tree:r,revs:n?Object.keys(n):[]}}(n.tree,r);return{tree:o.tree,stemmedRevs:o.revs,conflicts:n.conflicts}},r.revExists=function(e,t){for(var r,n=e.slice(),o=t.split("-"),i=parseInt(o[0],10),s=o[1];r=n.pop();){if(r.pos===i&&r.ids[0]===s)return!0;for(var u=r.ids[2],a=0,c=u.length;a<c;a++)n.push({pos:r.pos+1,ids:u[a]})}return!1},r.rootToLeaf=d,r.traverseRevTree=h,r.winningRev=u,r.latest=function(e,t){for(var r,n=t.rev_tree.slice();r=n.pop();){var o=r.pos,i=r.ids,s=i[0],u=i[1],a=i[2],c=0===a.length,l=r.history?r.history.slice():[];if(l.push({id:s,pos:o,opts:u}),c)for(var f=0,p=l.length;f<p;f++){var h=l[f];if(h.pos+"-"+h.id===e)return o+"-"+s}for(var d=0,b=a.length;d<b;d++)n.push({pos:o+1,ids:a[d],history:l})}throw new Error("Unable to resolve latest revision for id "+t.id+", rev "+e)}},{}],472:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var N=n(e("pouchdb-checkpointer")),B=n(e("pouchdb-generate-replication-id")),L=e("pouchdb-errors"),q=e("pouchdb-utils"),o=n(e("inherits")),i=e("events");function c(e){return/^1-/.test(e)}function a(t,r){var e=Object.keys(r._attachments);return Promise.all(e.map(function(e){return t.getAttachment(r._id,e,{rev:r._rev})}))}function l(i,s,u){var e=q.isRemote(s)&&!q.isRemote(i),t=Object.keys(u._attachments);return e?i.get(u._id).then(function(o){return Promise.all(t.map(function(e){return r=u,n=e,(t=o)._attachments&&t._attachments[n]&&t._attachments[n].digest===r._attachments[n].digest?i.getAttachment(o._id,e):s.getAttachment(u._id,e);var t,r,n}))}).catch(function(e){if(404!==e.status)throw e;return a(s,u)}):a(s,u)}function $(n,i,o,s){o=q.clone(o);var u=[],a=!0;function t(e){return n.allDocs({keys:e,include_docs:!0,conflicts:!0}).then(function(e){if(s.cancelled)throw new Error("cancelled");e.rows.forEach(function(e){var t,r;e.deleted||!e.doc||!c(e.value.rev)||(r=e.doc)._attachments&&0<Object.keys(r._attachments).length||(t=e.doc)._conflicts&&0<t._conflicts.length||(e.doc._conflicts&&delete e.doc._conflicts,u.push(e.doc),delete o[e.id])})})}return Promise.resolve().then(function(){var e=Object.keys(o).filter(function(e){var t=o[e].missing;return 1===t.length&&c(t[0])});if(0<e.length)return t(e)}).then(function(){var e,r,t=(e=o,r=[],Object.keys(e).forEach(function(t){e[t].missing.forEach(function(e){r.push({id:t,rev:e})})}),{docs:r,revs:!0,latest:!0});if(t.docs.length)return n.bulkGet(t).then(function(e){if(s.cancelled)throw new Error("cancelled");return Promise.all(e.results.map(function(e){return Promise.all(e.docs.map(function(e){var o=e.ok;return e.error&&(a=!1),o&&o._attachments?l(i,n,o).then(function(e){var n=Object.keys(o._attachments);return e.forEach(function(e,t){var r=o._attachments[n[t]];delete r.stub,delete r.length,r.data=e}),o}):o}))})).then(function(e){u=u.concat(q.flatten(e).filter(Boolean))})})}).then(function(){return{ok:a,docs:u}})}var F=0;function U(n,o,i,s,u){var a,r,c=[],l={seq:0,changes:[],docs:[]},f=!1,p=!1,h=!1,d=0,b=i.continuous||i.live||!1,t=i.batch_size||100,v=i.batches_limit||10,y=!1,_=i.doc_ids,m=i.selector,g=[],w=q.uuid();u=u||{ok:!0,start_time:(new Date).toISOString(),docs_read:0,docs_written:0,doc_write_failures:0,errors:[]};var x={};function e(){return r?Promise.resolve():B(n,o,i).then(function(e){var t={};t=!1===i.checkpoint?{writeSourceCheckpoint:!1,writeTargetCheckpoint:!1}:"source"===i.checkpoint?{writeSourceCheckpoint:!0,writeTargetCheckpoint:!1}:"target"===i.checkpoint?{writeSourceCheckpoint:!1,writeTargetCheckpoint:!0}:{writeSourceCheckpoint:!0,writeTargetCheckpoint:!0},r=new N(n,o,e,s,t)})}function O(){if(g=[],0!==a.docs.length){var r=a.docs,e={timeout:i.timeout};return o.bulkDocs({docs:r,new_edits:!1},e).then(function(e){if(s.cancelled)throw A(),new Error("cancelled");var n=Object.create(null);e.forEach(function(e){e.error&&(n[e.id]=e)});var t=Object.keys(n).length;u.doc_write_failures+=t,u.docs_written+=r.length-t,r.forEach(function(e){var t=n[e._id];if(t){u.errors.push(t);var r=(t.name||"").toLowerCase();if("unauthorized"!==r&&"forbidden"!==r)throw t;s.emit("denied",q.clone(t))}else g.push(e)})},function(e){throw u.doc_write_failures+=r.length,e})}}function j(){if(a.error)throw new Error("There was a problem getting docs.");u.last_seq=d=a.seq;var e=q.clone(u);return g.length&&(e.docs=g,"number"==typeof a.pending&&(e.pending=a.pending,delete a.pending),s.emit("change",e)),f=!0,r.writeCheckpoint(a.seq,w).then(function(){if(f=!1,s.cancelled)throw A(),new Error("cancelled");a=void 0,I()}).catch(function(e){throw T(e),e})}function S(){return $(n,o,a.diffs,s).then(function(e){a.error=!e.ok,e.docs.forEach(function(e){delete a.diffs[e._id],u.docs_read++,a.docs.push(e)})})}function E(){var t;s.cancelled||a||(0!==c.length?(a=c.shift(),(t={},a.changes.forEach(function(e){"_user/"!==e.id&&(t[e.id]=e.changes.map(function(e){return e.rev}))}),o.revsDiff(t).then(function(e){if(s.cancelled)throw A(),new Error("cancelled");a.diffs=e})).then(S).then(O).then(j).then(E).catch(function(e){P("batch processing terminated with error",e)})):k(!0))}function k(e){0!==l.changes.length?(e||p||l.changes.length>=t)&&(c.push(l),l={seq:0,changes:[],docs:[]},"pending"!==s.state&&"stopped"!==s.state||(s.state="active",s.emit("active")),E()):0!==c.length||a||((b&&x.live||p)&&(s.state="pending",s.emit("paused")),p&&A())}function P(e,t){h||(t.message||(t.message=e),u.ok=!1,u.status="aborting",c=[],l={seq:0,changes:[],docs:[]},A(t))}function A(e){if(!(h||s.cancelled&&(u.status="cancelled",f)))if(u.status=u.status||"complete",u.end_time=(new Date).toISOString(),u.last_seq=d,h=!0,e){(e=L.createError(e)).result=u;var t=(e.name||"").toLowerCase();"unauthorized"===t||"forbidden"===t?(s.emit("error",e),s.removeAllListeners()):function(e,t,r,n){if(!1===e.retry)return t.emit("error",r),t.removeAllListeners();if("function"!=typeof e.back_off_function&&(e.back_off_function=q.defaultBackOff),t.emit("requestError",r),"active"===t.state||"pending"===t.state){t.emit("paused",r),t.state="stopped";var o=function(){e.current_back_off=F};t.once("paused",function(){t.removeListener("active",o)}),t.once("active",o)}e.current_back_off=e.current_back_off||F,e.current_back_off=e.back_off_function(e.current_back_off),setTimeout(n,e.current_back_off)}(i,s,e,function(){U(n,o,i,s)})}else s.emit("complete",u),s.removeAllListeners()}function C(e,t,r){if(s.cancelled)return A();"number"==typeof t&&(l.pending=t),q.filterChange(i)(e)&&(l.seq=e.seq||r,l.changes.push(e),q.nextTick(function(){k(0===c.length&&x.live)}))}function R(e){if(y=!1,s.cancelled)return A();if(0<e.results.length)x.since=e.results[e.results.length-1].seq,I(),k(!0);else{var t=function(){b?(x.live=!0,I()):p=!0,k(!0)};a||0!==e.results.length?t():(f=!0,r.writeCheckpoint(e.last_seq,w).then(function(){f=!1,u.last_seq=d=e.last_seq,t()}).catch(T))}}function M(e){if(y=!1,s.cancelled)return A();P("changes rejected",e)}function I(){if(!y&&!p&&c.length<v){y=!0,s._changes&&(s.removeListener("cancel",s._abortChanges),s._changes.cancel()),s.once("cancel",t);var e=n.changes(x).on("change",C);e.then(r,r),e.then(R).catch(M),i.retry&&(s._changes=e,s._abortChanges=t)}function t(){e.cancel()}function r(){s.removeListener("cancel",t)}}function D(){e().then(function(){if(!s.cancelled)return r.getCheckpoint().then(function(e){x={since:d=e,limit:t,batch_size:t,style:"all_docs",doc_ids:_,selector:m,return_docs:!0},i.filter&&("string"!=typeof i.filter?x.include_docs=!0:x.filter=i.filter),"heartbeat"in i&&(x.heartbeat=i.heartbeat),"timeout"in i&&(x.timeout=i.timeout),i.query_params&&(x.query_params=i.query_params),i.view&&(x.view=i.view),I()});A()}).catch(function(e){P("getCheckpoint rejected with ",e)})}function T(e){f=!1,P("writeCheckpoint completed with error",e)}s.ready(n,o),s.cancelled?A():(s._addedListeners||(s.once("cancel",A),"function"==typeof i.complete&&(s.once("error",i.complete),s.once("complete",function(e){i.complete(null,e)})),s._addedListeners=!0),void 0===i.since?D():e().then(function(){return f=!0,r.writeCheckpoint(i.since,w)}).then(function(){f=!1,s.cancelled?A():(d=i.since,D())}).catch(T))}function s(){i.EventEmitter.call(this),this.cancelled=!1,this.state="pending";var r=this,n=new Promise(function(e,t){r.once("complete",e),r.once("error",t)});r.then=function(e,t){return n.then(e,t)},r.catch=function(e){return n.catch(e)},r.catch(function(){})}function u(e,t){var r=t.PouchConstructor;return"string"==typeof e?new r(e,t):e}function m(e,t,r,n){if("function"==typeof r&&(n=r,r={}),void 0===r&&(r={}),r.doc_ids&&!Array.isArray(r.doc_ids))throw L.createError(L.BAD_REQUEST,"`doc_ids` filter parameter is not a list.");r.complete=n,(r=q.clone(r)).continuous=r.continuous||r.live,r.retry="retry"in r&&r.retry,r.PouchConstructor=r.PouchConstructor||this;var o=new s(r);return U(u(e,r),u(t,r),r,o),o}function f(e,t,r,n){return"function"==typeof r&&(n=r,r={}),void 0===r&&(r={}),(r=q.clone(r)).PouchConstructor=r.PouchConstructor||this,new p(e=u(e,r),t=u(t,r),r,n)}function p(e,t,r,n){var o=this;this.canceled=!1;var i=r.push?q.assign({},r,r.push):r,s=r.pull?q.assign({},r,r.pull):r;function u(e){o.emit("change",{direction:"pull",change:e})}function a(e){o.emit("change",{direction:"push",change:e})}function c(e){o.emit("denied",{direction:"push",doc:e})}function l(e){o.emit("denied",{direction:"pull",doc:e})}function f(){o.pushPaused=!0,o.pullPaused&&o.emit("paused")}function p(){o.pullPaused=!0,o.pushPaused&&o.emit("paused")}function h(){o.pushPaused=!1,o.pullPaused&&o.emit("active",{direction:"push"})}function d(){o.pullPaused=!1,o.pushPaused&&o.emit("active",{direction:"pull"})}this.push=m(e,t,i),this.pull=m(t,e,s),this.pushPaused=!0,this.pullPaused=!0;var b={};function v(r){return function(e,t){("change"!==e||t!==u&&t!==a)&&("denied"!==e||t!==l&&t!==c)&&("paused"!==e||t!==p&&t!==f)&&("active"!==e||t!==d&&t!==h)||(e in b||(b[e]={}),b[e][r]=!0,2===Object.keys(b[e]).length&&o.removeAllListeners(e))}}function y(e,t,r){-1==e.listeners(t).indexOf(r)&&e.on(t,r)}r.live&&(this.push.on("complete",o.pull.cancel.bind(o.pull)),this.pull.on("complete",o.push.cancel.bind(o.push))),this.on("newListener",function(e){"change"===e?(y(o.pull,"change",u),y(o.push,"change",a)):"denied"===e?(y(o.pull,"denied",l),y(o.push,"denied",c)):"active"===e?(y(o.pull,"active",d),y(o.push,"active",h)):"paused"===e&&(y(o.pull,"paused",p),y(o.push,"paused",f))}),this.on("removeListener",function(e){"change"===e?(o.pull.removeListener("change",u),o.push.removeListener("change",a)):"denied"===e?(o.pull.removeListener("denied",l),o.push.removeListener("denied",c)):"active"===e?(o.pull.removeListener("active",d),o.push.removeListener("active",h)):"paused"===e&&(o.pull.removeListener("paused",p),o.push.removeListener("paused",f))}),this.pull.on("removeListener",v("pull")),this.push.on("removeListener",v("push"));var _=Promise.all([this.push,this.pull]).then(function(e){var t={push:e[0],pull:e[1]};return o.emit("complete",t),n&&n(null,t),o.removeAllListeners(),t},function(e){if(o.cancel(),n?n(e):o.emit("error",e),o.removeAllListeners(),n)throw e});this.then=function(e,t){return _.then(e,t)},this.catch=function(e){return _.catch(e)}}o(s,i.EventEmitter),s.prototype.cancel=function(){this.cancelled=!0,this.state="cancelled",this.emit("cancel")},s.prototype.ready=function(e,t){var r=this;function n(){r.cancel()}r._readyCalled||(r._readyCalled=!0,e.once("destroyed",n),t.once("destroyed",n),r.once("complete",function(){e.removeListener("destroyed",n),t.removeListener("destroyed",n)}))},o(p,i.EventEmitter),p.prototype.cancel=function(){this.canceled||(this.canceled=!0,this.push.cancel(),this.pull.cancel())},t.exports=function(e){e.replicate=m,e.sync=f,Object.defineProperty(e.prototype,"replicate",{get:function(){var n=this;return void 0===this.replicateMethods&&(this.replicateMethods={from:function(e,t,r){return n.constructor.replicate(e,n,t,r)},to:function(e,t,r){return n.constructor.replicate(n,e,t,r)}}),this.replicateMethods}}),e.prototype.sync=function(e,t,r){return this.constructor.sync(this,e,t,r)}}},{events:406,inherits:473,"pouchdb-checkpointer":443,"pouchdb-errors":448,"pouchdb-generate-replication-id":461,"pouchdb-utils":475}],473:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],474:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var u=e("pouchdb-utils"),s=e("pouchdb-collate");function c(e,t){for(var r=e,n=0,o=t.length;n<o;n++){if(!(r=r[t[n]]))break}return r}function a(e,t){return e<t?-1:t<e?1:0}function l(e){for(var t=[],r="",n=0,o=e.length;n<o;n++){var i=e[n];"."===i?r=0<n&&"\\"===e[n-1]?r.substring(0,r.length-1)+".":(t.push(r),""):r+=i}return t.push(r),t}var n=["$or","$nor","$not"];function f(e){return-1<n.indexOf(e)}function o(e){return Object.keys(e)[0]}function p(e){return e[o(e)]}function h(e){var r={};return e.forEach(function(t){Object.keys(t).forEach(function(e){var s=t[e];if("object"!=typeof s&&(s={$eq:s}),f(e))s instanceof Array?r[e]=s.map(function(e){return h([e])}):r[e]=h([s]);else{var u=r[e]=r[e]||{};Object.keys(s).forEach(function(e){var t,r,n,o,i=s[e];return"$gt"===e||"$gte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$gte?"$gte"===e?t>r.$gte&&(r.$gte=t):t>=r.$gte&&(delete r.$gte,r.$gt=t):void 0!==r.$gt?"$gte"===e?t>r.$gt&&(delete r.$gt,r.$gte=t):t>r.$gt&&(r.$gt=t):r[e]=t}(e,i,u):"$lt"===e||"$lte"===e?function(e,t,r){if(void 0!==r.$eq)return;void 0!==r.$lte?"$lte"===e?t<r.$lte&&(r.$lte=t):t<=r.$lte&&(delete r.$lte,r.$lt=t):void 0!==r.$lt?"$lte"===e?t<r.$lt&&(delete r.$lt,r.$lte=t):t<r.$lt&&(r.$lt=t):r[e]=t}(e,i,u):"$ne"===e?(n=i,void("$ne"in(o=u)?o.$ne.push(n):o.$ne=[n])):"$eq"===e?(t=i,delete(r=u).$gt,delete r.$gte,delete r.$lt,delete r.$lte,delete r.$ne,void(r.$eq=t)):void(u[e]=i)})}})}),r}function i(e){var t=u.clone(e),r=!1;!function e(t,r){for(var n in t){"$and"===n&&(r=!0);var o=t[n];"object"==typeof o&&(r=e(o,r))}return r}(t,!1)||("$and"in(t=function e(t){for(var r in t){if(Array.isArray(t))for(var n in t)t[n].$and&&(t[n]=h(t[n].$and));var o=t[r];"object"==typeof o&&e(o)}return t}(t))&&(t=h(t.$and)),r=!0),["$or","$nor"].forEach(function(e){e in t&&t[e].forEach(function(e){for(var t=Object.keys(e),r=0;r<t.length;r++){var n=t[r],o=e[n];"object"==typeof o&&null!==o||(e[n]={$eq:o})}})}),"$not"in t&&(t.$not=h([t.$not]));for(var n=Object.keys(t),o=0;o<n.length;o++){var i=n[o],s=t[i];"object"!=typeof s||null===s?s={$eq:s}:"$ne"in s&&!r&&(s.$ne=[s.$ne]),t[i]=s}return t}function d(e){function i(r){return e.map(function(e){var t=l(o(e));return c(r,t)})}return function(e,t){var r=i(e.doc),n=i(t.doc),o=s.collate(r,n);return 0!==o?o:a(e.doc._id,t.doc._id)}}function b(e,t,r){if(e=e.filter(function(e){return v(e.doc,t.selector,r)}),t.sort){var n=d(t.sort);e=e.sort(n),"string"!=typeof t.sort[0]&&"desc"===p(t.sort[0])&&(e=e.reverse())}if("limit"in t||"skip"in t){var o=t.skip||0,i=("limit"in t?t.limit:e.length)+o;e=e.slice(o,i)}return e}function v(u,a,e){return e.every(function(e){var t,r,n,o=a[e],i=l(e),s=c(u,i);return f(e)?(r=o,n=u,"$or"!==(t=e)?"$not"!==t?!r.find(function(e){return v(n,e,Object.keys(e))}):!v(n,r,Object.keys(r)):r.some(function(e){return v(n,e,Object.keys(e))})):y(o,u,i,s)})}function y(r,n,o,i){return!r||("object"==typeof r?Object.keys(r).every(function(e){var t=r[e];return function(e,t,r,n,o){if(w[e])return w[e](t,r,n,o);throw new Error('unknown operator "'+e+'" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all')}(e,n,t,o,i)}):r===i)}function _(e){return null!=e}function m(e){return void 0!==e}function g(t,e){return e.some(function(e){return t instanceof Array?-1<t.indexOf(e):t===e})}var w={$elemMatch:function(t,r,n,e){return!!Array.isArray(e)&&(0!==e.length&&("object"==typeof e[0]?e.some(function(e){return v(e,r,Object.keys(r))}):e.some(function(e){return y(r,t,n,e)})))},$allMatch:function(t,r,n,e){return!!Array.isArray(e)&&(0!==e.length&&("object"==typeof e[0]?e.every(function(e){return v(e,r,Object.keys(r))}):e.every(function(e){return y(r,t,n,e)})))},$eq:function(e,t,r,n){return m(n)&&0===s.collate(n,t)},$gte:function(e,t,r,n){return m(n)&&0<=s.collate(n,t)},$gt:function(e,t,r,n){return m(n)&&0<s.collate(n,t)},$lte:function(e,t,r,n){return m(n)&&s.collate(n,t)<=0},$lt:function(e,t,r,n){return m(n)&&s.collate(n,t)<0},$exists:function(e,t,r,n){return t?m(n):!m(n)},$mod:function(e,t,r,n){return _(n)&&function(e,t){var r=t[0],n=t[1];if(0===r)throw new Error("Bad divisor, cannot divide by zero");if(parseInt(r,10)!==r)throw new Error("Divisor is not an integer");if(parseInt(n,10)!==n)throw new Error("Modulus is not an integer");return parseInt(e,10)===e&&e%r===n}(n,t)},$ne:function(e,t,r,n){return t.every(function(e){return 0!==s.collate(n,e)})},$in:function(e,t,r,n){return _(n)&&g(n,t)},$nin:function(e,t,r,n){return _(n)&&!g(n,t)},$size:function(e,t,r,n){return _(n)&&(o=t,n.length===o);var o},$all:function(e,t,r,n){return Array.isArray(n)&&(o=n,t.every(function(e){return-1<o.indexOf(e)}));var o},$regex:function(e,t,r,n){return _(n)&&(o=n,new RegExp(t).test(o));var o},$type:function(e,t,r,n){return function(e,t){switch(t){case"null":return null===e;case"boolean":return"boolean"==typeof e;case"number":return"number"==typeof e;case"string":return"string"==typeof e;case"array":return e instanceof Array;case"object":return"[object Object]"==={}.toString.call(e)}throw new Error(t+" not supported as a type.Please use one of object, string, array, number, boolean or null.")}(n,t)}};r.massageSelector=i,r.matchesSelector=function(e,t){if("object"!=typeof t)throw new Error("Selector error: expected a JSON object");var r=b([{doc:e}],{selector:t=i(t)},Object.keys(t));return r&&1===r.length},r.filterInMemoryFields=b,r.createFieldSorter=d,r.rowFilter=v,r.isCombinationalField=f,r.getKey=o,r.getValue=p,r.getFieldFromDoc=c,r.setFieldInDoc=function(e,t,r){for(var n=0,o=t.length;n<o-1;n++){e=e[t[n]]={}}e[t[o-1]]=r},r.compare=a,r.parseField=l},{"pouchdb-collate":444,"pouchdb-utils":475}],475:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(r,"__esModule",{value:!0});var o=n(e("argsarray")),u=e("pouchdb-collections"),i=n(e("inherits")),a=n(e("immediate")),s=e("pouchdb-errors"),c=e("events"),l=n(e("uuid")),f=e("pouchdb-md5");function p(e){if(e instanceof ArrayBuffer)return function(e){if("function"==typeof e.slice)return e.slice(0);var t=new ArrayBuffer(e.byteLength),r=new Uint8Array(t),n=new Uint8Array(e);return r.set(n),t}(e);var t=e.size,r=e.type;return"function"==typeof e.slice?e.slice(0,t,r):e.webkitSlice(0,t,r)}var h=Function.prototype.toString,d=h.call(Object);function b(e){var t,r,n,o;if(!e||"object"!=typeof e)return e;if(Array.isArray(e)){for(t=[],r=0,n=e.length;r<n;r++)t[r]=b(e[r]);return t}if(e instanceof Date)return e.toISOString();if(o=e,"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer||"undefined"!=typeof Blob&&o instanceof Blob)return p(e);if(!function(e){var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=t.constructor;return"function"==typeof r&&r instanceof r&&h.call(r)==d}(e))return e;for(r in t={},e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=b(e[r]);void 0!==i&&(t[r]=i)}return t}function v(t){var r=!1;return o(function(e){if(r)throw new Error("once called more than once");r=!0,t.apply(this,e)})}function y(s){return o(function(o){o=b(o);var i=this,t="function"==typeof o[o.length-1]&&o.pop(),e=new Promise(function(r,n){var e;try{var t=v(function(e,t){e?n(e):r(t)});o.push(t),(e=s.apply(i,o))&&"function"==typeof e.then&&r(e)}catch(e){n(e)}});return t&&e.then(function(e){t(null,e)},t),e})}function _(e,t){for(var r={},n=0,o=t.length;n<o;n++){var i=t[n];i in e&&(r[i]=e[i])}return r}var m;function g(e){return e}function w(e){return[{ok:e}]}try{localStorage.setItem("_pouch_check_localstorage",1),m=!!localStorage.getItem("_pouch_check_localstorage")}catch(e){m=!1}function x(){return m}function O(){var t;c.EventEmitter.call(this),this._listeners={},t=this,x()&&addEventListener("storage",function(e){t.emit(e.key)})}function j(e){if("undefined"!=typeof console&&"function"==typeof console[e]){var t=Array.prototype.slice.call(arguments,1);console[e].apply(console,t)}}i(O,c.EventEmitter),O.prototype.addListener=function(e,t,r,n){if(!this._listeners[t]){var o=this,i=!1;this._listeners[t]=s,this.on(e,s)}function s(){if(o._listeners[t])if(i)i="waiting";else{i=!0;var e=_(n,["style","include_docs","attachments","conflicts","filter","doc_ids","view","since","query_params","binary","return_docs"]);r.changes(e).on("change",function(e){e.seq>n.since&&!n.cancelled&&(n.since=e.seq,n.onChange(e))}).on("complete",function(){"waiting"===i&&a(s),i=!1}).on("error",function(){i=!1})}}},O.prototype.removeListener=function(e,t){t in this._listeners&&(c.EventEmitter.prototype.removeListener.call(this,e,this._listeners[t]),delete this._listeners[t])},O.prototype.notifyLocalWindows=function(e){x()&&(localStorage[e]="a"===localStorage[e]?"b":"a")},O.prototype.notify=function(e){this.emit(e),this.notifyLocalWindows(e)};var S="function"==typeof Object.assign?Object.assign:function(e){for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};var E=function(){}.name?function(e){return e.name}:function(e){var t=e.toString().match(/^\s*function\s*(?:(\S+)\s*)?\(/);return t&&t[1]?t[1]:""};function k(e){if(!e)return null;var t=e.split("/");return 2===t.length?t:1===t.length?[e,e]:null}var P=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],A=/(?:^|&)([^&=]*)=?([^&]*)/g,C=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;function R(c,l,f){return new Promise(function(u,a){c.get(l,function(e,t){if(e){if(404!==e.status)return a(e);t={}}var r,n,o,i=t._rev,s=f(t);if(!s)return u({updated:!1,rev:i});s._id=l,s._rev=i,u((n=s,o=f,(r=c).put(n).then(function(e){return{updated:!0,rev:e.rev}},function(e){if(409!==e.status)throw e;return R(r,n._id,o)})))})})}var M=l.v4;r.adapterFun=function(i,e){return y(o(function(n){if(this._closed)return Promise.reject(new Error("database is closed"));if(this._destroyed)return Promise.reject(new Error("database is destroyed"));var o=this;return function(n,o,e){if(n.constructor.listeners("debug").length){for(var t=["api",n.name,o],r=0;r<e.length-1;r++)t.push(e[r]);n.constructor.emit("debug",t);var i=e[e.length-1];e[e.length-1]=function(e,t){var r=["api",n.name,o];r=r.concat(e?["error",e]:["success",t]),n.constructor.emit("debug",r),i(e,t)}}}(o,i,n),this.taskqueue.isReady?e.apply(this,n):new Promise(function(t,r){o.taskqueue.addTask(function(e){e?r(e):t(o[i].apply(o,n))})})}))},r.assign=S,r.bulkGetShim=function(o,a,e){var t=a.docs,c=new u.Map;t.forEach(function(e){c.has(e.id)?c.get(e.id).push(e):c.set(e.id,[e])});var n=c.size,i=0,l=new Array(n);function f(){var r;++i===n&&(r=[],l.forEach(function(t){t.docs.forEach(function(e){r.push({id:t.id,docs:[e]})})}),e(null,{results:r}))}var r=[];c.forEach(function(e,t){r.push(t)});var s=0;function p(){if(!(s>=r.length)){var n,e=Math.min(s+6,r.length),t=r.slice(s,e);n=s,t.forEach(function(i,e){var s=n+e,t=c.get(i),r=_(t[0],["atts_since","attachments"]);r.open_revs=t.map(function(e){return e.rev}),r.open_revs=r.open_revs.filter(g);var u=g;0===r.open_revs.length&&(delete r.open_revs,u=w),["revs","attachments","binary","ajax","latest"].forEach(function(e){e in a&&(r[e]=a[e])}),o.get(i,r,function(e,t){var r,n,o;r=e?[{error:e}]:u(t),n=i,o=r,l[s]={id:n,docs:o},f(),p()})}),s+=t.length}}p()},r.changesHandler=O,r.clone=b,r.defaultBackOff=function(e){var t,r,n=0;return e||(n=2e3),t=e,r=n,t=parseInt(t,10)||0,(r=parseInt(r,10))!=r||r<=t?r=(t||1)<<1:r+=1,6e5<r&&(t=3e5,r=6e5),~~((r-t)*Math.random()+t)},r.explainError=function(e,t){j("info","The above "+e+" is totally normal. "+t)},r.filterChange=function(n){var o={},i=n.filter&&"function"==typeof n.filter;return o.query=n.query_params,function(e){e.doc||(e.doc={});var t=i&&function(e,t,r){try{return!e(t,r)}catch(e){var n="Filter function threw: "+e.toString();return s.createError(s.BAD_REQUEST,n)}}(n.filter,e.doc,o);if("object"==typeof t)return t;if(t)return!1;if(n.include_docs){if(!n.attachments)for(var r in e.doc._attachments)e.doc._attachments.hasOwnProperty(r)&&(e.doc._attachments[r].stub=!0)}else delete e.doc;return!0}},r.flatten=function(e){for(var t=[],r=0,n=e.length;r<n;r++)t=t.concat(e[r]);return t},r.functionName=E,r.guardedConsole=j,r.hasLocalStorage=x,r.invalidIdError=function(e){var t;if(e?"string"!=typeof e?t=s.createError(s.INVALID_ID):/^_/.test(e)&&!/^_(design|local)/.test(e)&&(t=s.createError(s.RESERVED_ID)):t=s.createError(s.MISSING_ID),t)throw t},r.isRemote=function(e){return"boolean"==typeof e._remote?e._remote:"function"==typeof e.type&&(j("warn","db.type() is deprecated and will be removed in a future version of PouchDB"),"http"===e.type())},r.listenerCount=function(e,t){return"listenerCount"in e?e.listenerCount(t):c.EventEmitter.listenerCount(e,t)},r.nextTick=a,r.normalizeDdocFunctionName=function(e){var t=k(e);return t?t.join("/"):null},r.once=v,r.parseDdocFunctionName=k,r.parseUri=function(e){for(var t=C.exec(e),n={},r=14;r--;){var o=P[r],i=t[r]||"",s=-1!==["user","password"].indexOf(o);n[o]=s?decodeURIComponent(i):i}return n.queryKey={},n[P[12]].replace(A,function(e,t,r){t&&(n.queryKey[t]=r)}),n},r.pick=_,r.rev=function(e,t){var r=b(e);return t?(delete r._rev_tree,f.stringMd5(JSON.stringify(r))):l.v4().replace(/-/g,"").toLowerCase()},r.scopeEval=function(e,t){var r=[],n=[];for(var o in t)t.hasOwnProperty(o)&&(r.push(o),n.push(t[o]));return r.push(e),Function.apply(null,r).apply(null,n)},r.toPromise=y,r.upsert=R,r.uuid=M},{argsarray:66,events:406,immediate:413,inherits:476,"pouchdb-collections":445,"pouchdb-errors":448,"pouchdb-md5":470,uuid:686}],476:[function(e,t,r){arguments[4][82][0].apply(r,arguments)},{dup:82}],477:[function(e,t,r){var n,o,i=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}}();var c,l=[],f=!1,p=-1;function h(){f&&c&&(f=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!f){var e=a(h);f=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,f=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function b(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new b(e,t)),1!==l.length||f||a(d)},b.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],478:[function(e,t,r){function n(e){e="string"==typeof e&&0<e.length?e:"abcdefghijklmnopqrstuvwxzy0123456789";var t=o.bind(o,e);return t.salt=function(){return e},t.create=n,t.gen=n,t}var o;(o=function(e,t){return isNaN(t)?void 0:t<1?void 0:function(e,t){for(var r,n="",o=e.length;t--;){n+=e[r=o,Math.floor(Math.random()*r)]}return n}(e,t)}).gen=n,t.exports=n()},{}],479:[function(e,t,r){var n=function(i){"use strict";var a,e=Object.prototype,c=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",n=t.toStringTag||"@@toStringTag";function s(e,t,r,n){var i,s,u,a,o=t&&t.prototype instanceof y?t:y,c=Object.create(o.prototype),l=new k(n||[]);return c._invoke=(i=e,s=r,u=l,a=p,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===b){if("throw"===e)throw t;return A()}for(u.method=e,u.arg=t;;){var r=u.delegate;if(r){var n=j(r,u);if(n){if(n===v)continue;return n}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(a===p)throw a=b,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);a=d;var o=f(i,s,u);if("normal"===o.type){if(a=u.done?b:h,o.arg===v)continue;return{value:o.arg,done:u.done}}"throw"===o.type&&(a=b,u.method="throw",u.arg=o.arg)}}),c}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}i.wrap=s;var p="suspendedStart",h="suspendedYield",d="executing",b="completed",v={};function y(){}function u(){}function l(){}var _={};_[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(P([])));g&&g!==e&&c.call(g,o)&&(_=g);var w=l.prototype=y.prototype=Object.create(_);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(a){var t;this._invoke=function(r,n){function e(){return new Promise(function(e,t){!function t(e,r,n,o){var i=f(a[e],a,r);if("throw"!==i.type){var s=i.arg,u=s.value;return u&&"object"==typeof u&&c.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):Promise.resolve(u).then(function(e){s.value=e,n(s)},function(e){return t("throw",e,n,o)})}o(i.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function j(e,t){var r=e.iterator[t.method];if(r===a){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=a,j(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=f(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,v;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=a),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=a,e.done=!0,e};return n.next=n}}return{next:A}}function A(){return{value:a,done:!0}}return u.prototype=w.constructor=l,l.constructor=u,l[n]=u.displayName="GeneratorFunction",i.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===u||"GeneratorFunction"===(t.displayName||t.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,n in e||(e[n]="GeneratorFunction")),e.prototype=Object.create(w),e},i.awrap=function(e){return{__await:e}},x(O.prototype),O.prototype[r]=function(){return this},i.AsyncIterator=O,i.async=function(e,t,r,n){var o=new O(s(e,t,r,n));return i.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(w),w[n]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},i.keys=function(r){var n=[];for(var e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},i.values=P,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=a)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=a),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=c.call(o,"catchLoc"),u=c.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=a),v}},i}("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],480:[function(e,t,r){"use strict";var n=Object,o=TypeError;t.exports=function(){if(null!=this&&this!==n(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},{}],481:[function(e,t,r){"use strict";var n=e("define-properties"),o=e("./implementation"),i=e("./polyfill"),s=e("./shim"),u=Function.call.bind(o);n(u,{getPolyfill:i,implementation:o,shim:s}),t.exports=u},{"./implementation":480,"./polyfill":482,"./shim":483,"define-properties":404}],482:[function(e,t,r){"use strict";var n=e("./implementation"),o=e("define-properties").supportsDescriptors,i=Object.getOwnPropertyDescriptor,s=TypeError;t.exports=function(){if(!o)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return n}},{"./implementation":480,"define-properties":404}],483:[function(e,t,r){"use strict";var n=e("define-properties").supportsDescriptors,o=e("./polyfill"),i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,u=TypeError,a=Object.getPrototypeOf,c=/a/;t.exports=function(){if(!n||!a)throw new u("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=a(c),r=i(t,"flags");return r&&r.get===e||s(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},{"./polyfill":482,"define-properties":404}],484:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./internal/Observable");r.Observable=n.Observable;var o=e("./internal/observable/ConnectableObservable");r.ConnectableObservable=o.ConnectableObservable;var i=e("./internal/operators/groupBy");r.GroupedObservable=i.GroupedObservable;var s=e("./internal/symbol/observable");r.observable=s.observable;var u=e("./internal/Subject");r.Subject=u.Subject;var a=e("./internal/BehaviorSubject");r.BehaviorSubject=a.BehaviorSubject;var c=e("./internal/ReplaySubject");r.ReplaySubject=c.ReplaySubject;var l=e("./internal/AsyncSubject");r.AsyncSubject=l.AsyncSubject;var f=e("./internal/scheduler/asap");r.asapScheduler=f.asap;var p=e("./internal/scheduler/async");r.asyncScheduler=p.async;var h=e("./internal/scheduler/queue");r.queueScheduler=h.queue;var d=e("./internal/scheduler/animationFrame");r.animationFrameScheduler=d.animationFrame;var b=e("./internal/scheduler/VirtualTimeScheduler");r.VirtualTimeScheduler=b.VirtualTimeScheduler,r.VirtualAction=b.VirtualAction;var v=e("./internal/Scheduler");r.Scheduler=v.Scheduler;var y=e("./internal/Subscription");r.Subscription=y.Subscription;var _=e("./internal/Subscriber");r.Subscriber=_.Subscriber;var m=e("./internal/Notification");r.Notification=m.Notification,r.NotificationKind=m.NotificationKind;var g=e("./internal/util/pipe");r.pipe=g.pipe;var w=e("./internal/util/noop");r.noop=w.noop;var x=e("./internal/util/identity");r.identity=x.identity;var O=e("./internal/util/isObservable");r.isObservable=O.isObservable;var j=e("./internal/util/ArgumentOutOfRangeError");r.ArgumentOutOfRangeError=j.ArgumentOutOfRangeError;var S=e("./internal/util/EmptyError");r.EmptyError=S.EmptyError;var E=e("./internal/util/ObjectUnsubscribedError");r.ObjectUnsubscribedError=E.ObjectUnsubscribedError;var k=e("./internal/util/UnsubscriptionError");r.UnsubscriptionError=k.UnsubscriptionError;var P=e("./internal/util/TimeoutError");r.TimeoutError=P.TimeoutError;var A=e("./internal/observable/bindCallback");r.bindCallback=A.bindCallback;var C=e("./internal/observable/bindNodeCallback");r.bindNodeCallback=C.bindNodeCallback;var R=e("./internal/observable/combineLatest");r.combineLatest=R.combineLatest;var M=e("./internal/observable/concat");r.concat=M.concat;var I=e("./internal/observable/defer");r.defer=I.defer;var D=e("./internal/observable/empty");r.empty=D.empty;var T=e("./internal/observable/forkJoin");r.forkJoin=T.forkJoin;var N=e("./internal/observable/from");r.from=N.from;var B=e("./internal/observable/fromEvent");r.fromEvent=B.fromEvent;var L=e("./internal/observable/fromEventPattern");r.fromEventPattern=L.fromEventPattern;var q=e("./internal/observable/generate");r.generate=q.generate;var $=e("./internal/observable/iif");r.iif=$.iif;var F=e("./internal/observable/interval");r.interval=F.interval;var U=e("./internal/observable/merge");r.merge=U.merge;var V=e("./internal/observable/never");r.never=V.never;var z=e("./internal/observable/of");r.of=z.of;var W=e("./internal/observable/onErrorResumeNext");r.onErrorResumeNext=W.onErrorResumeNext;var J=e("./internal/observable/pairs");r.pairs=J.pairs;var H=e("./internal/observable/partition");r.partition=H.partition;var Q=e("./internal/observable/race");r.race=Q.race;var K=e("./internal/observable/range");r.range=K.range;var G=e("./internal/observable/throwError");r.throwError=G.throwError;var Y=e("./internal/observable/timer");r.timer=Y.timer;var X=e("./internal/observable/using");r.using=X.using;var Z=e("./internal/observable/zip");r.zip=Z.zip;var ee=e("./internal/scheduled/scheduled");r.scheduled=ee.scheduled;var te=e("./internal/observable/empty");r.EMPTY=te.EMPTY;var re=e("./internal/observable/never");r.NEVER=re.NEVER;var ne=e("./internal/config");r.config=ne.config},{"./internal/AsyncSubject":485,"./internal/BehaviorSubject":486,"./internal/Notification":488,"./internal/Observable":489,"./internal/ReplaySubject":492,"./internal/Scheduler":493,"./internal/Subject":494,"./internal/Subscriber":496,"./internal/Subscription":497,"./internal/config":498,"./internal/observable/ConnectableObservable":499,"./internal/observable/bindCallback":501,"./internal/observable/bindNodeCallback":502,"./internal/observable/combineLatest":503,"./internal/observable/concat":504,"./internal/observable/defer":505,"./internal/observable/empty":506,"./internal/observable/forkJoin":507,"./internal/observable/from":508,"./internal/observable/fromEvent":510,"./internal/observable/fromEventPattern":511,"./internal/observable/generate":512,"./internal/observable/iif":513,"./internal/observable/interval":514,"./internal/observable/merge":515,"./internal/observable/never":516,"./internal/observable/of":517,"./internal/observable/onErrorResumeNext":518,"./internal/observable/pairs":519,"./internal/observable/partition":520,"./internal/observable/race":521,"./internal/observable/range":522,"./internal/observable/throwError":523,"./internal/observable/timer":524,"./internal/observable/using":525,"./internal/observable/zip":526,"./internal/operators/groupBy":562,"./internal/scheduled/scheduled":634,"./internal/scheduler/VirtualTimeScheduler":644,"./internal/scheduler/animationFrame":645,"./internal/scheduler/asap":646,"./internal/scheduler/async":647,"./internal/scheduler/queue":648,"./internal/symbol/observable":650,"./internal/util/ArgumentOutOfRangeError":652,"./internal/util/EmptyError":653,"./internal/util/ObjectUnsubscribedError":655,"./internal/util/TimeoutError":656,"./internal/util/UnsubscriptionError":657,"./internal/util/identity":660,"./internal/util/isObservable":669,"./internal/util/noop":672,"./internal/util/pipe":674}],485:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subject"),u=e("./Subscription"),a=(i=s.Subject,o(c,i),c.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),u.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),u.Subscription.EMPTY):i.prototype._subscribe.call(this,e)},c.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},c.prototype.error=function(e){this.hasCompleted||i.prototype.error.call(this,e)},c.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&i.prototype.next.call(this,this.value),i.prototype.complete.call(this)},c);function c(){var e=null!==i&&i.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}r.AsyncSubject=a},{"./Subject":494,"./Subscription":497}],486:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subject"),u=e("./util/ObjectUnsubscribedError"),a=(i=s.Subject,o(c,i),Object.defineProperty(c.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),c.prototype._subscribe=function(e){var t=i.prototype._subscribe.call(this,e);return t&&!t.closed&&e.next(this._value),t},c.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new u.ObjectUnsubscribedError;return this._value},c.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},c);function c(e){var t=i.call(this)||this;return t._value=e,t}r.BehaviorSubject=a},{"./Subject":494,"./util/ObjectUnsubscribedError":655}],487:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subscriber"),u=(i=s.Subscriber,o(a,i),a.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},a.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},a.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},a);function a(e,t,r){var n=i.call(this)||this;return n.parent=e,n.outerValue=t,n.outerIndex=r,n.index=0,n}r.InnerSubscriber=u},{"./Subscriber":496}],488:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,o=e("./observable/empty"),i=e("./observable/of"),s=e("./observable/throwError");(n=r.NotificationKind||(r.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var u=(a.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},a.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},a.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},a.prototype.toObservable=function(){switch(this.kind){case"N":return i.of(this.value);case"E":return s.throwError(this.error);case"C":return o.empty()}throw new Error("unexpected notification kind value")},a.createNext=function(e){return void 0!==e?new a("N",e):a.undefinedValueNotification},a.createError=function(e){return new a("E",void 0,e)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0),a);function a(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}r.Notification=u},{"./observable/empty":506,"./observable/of":517,"./observable/throwError":523}],489:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./util/canReportError"),i=e("./util/toSubscriber"),o=e("./symbol/observable"),s=e("./util/pipe"),u=e("./config"),a=(c.prototype.lift=function(e){var t=new c;return t.source=this,t.operator=e,t},c.prototype.subscribe=function(e,t,r){var n=this.operator,o=i.toSubscriber(e,t,r);if(n?o.add(n.call(o,this.source)):o.add(this.source||u.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),u.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},c.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),n.canReportError(t)?t.error(e):console.warn(e)}},c.prototype.forEach=function(n,e){var o=this;return new(e=l(e))(function(e,t){var r;r=o.subscribe(function(e){try{n(e)}catch(e){t(e),r&&r.unsubscribe()}},t,e)})},c.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},c.prototype[o.observable]=function(){return this},c.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:s.pipeFromArray(e)(this)},c.prototype.toPromise=function(e){var n=this;return new(e=l(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},c.create=function(e){return new c(e)},c);function c(e){this._isScalar=!1,e&&(this._subscribe=e)}function l(e){if(!(e=e||(u.config.Promise||Promise)))throw new Error("no Promise impl found");return e}r.Observable=a},{"./config":498,"./symbol/observable":650,"./util/canReportError":658,"./util/pipe":674,"./util/toSubscriber":681}],490:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./config"),o=e("./util/hostReportError");r.empty={closed:!0,next:function(e){},error:function(e){if(n.config.useDeprecatedSynchronousErrorHandling)throw e;o.hostReportError(e)},complete:function(){}}},{"./config":498,"./util/hostReportError":659}],491:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subscriber"),u=(i=s.Subscriber,o(a,i),a.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},a.prototype.notifyError=function(e,t){this.destination.error(e)},a.prototype.notifyComplete=function(e){this.destination.complete()},a);function a(){return null!==i&&i.apply(this,arguments)||this}r.OuterSubscriber=u},{"./Subscriber":496}],492:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subject"),u=e("./scheduler/queue"),a=e("./Subscription"),c=e("./operators/observeOn"),l=e("./util/ObjectUnsubscribedError"),f=e("./SubjectSubscription"),p=(i=s.Subject,o(h,i),h.prototype.nextInfiniteTimeWindow=function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),i.prototype.next.call(this,e)},h.prototype.nextTimeWindow=function(e){this._events.push(new d(this._getNow(),e)),this._trimBufferThenGetEvents(),i.prototype.next.call(this,e)},h.prototype._subscribe=function(e){var t,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=n.length;if(this.closed)throw new l.ObjectUnsubscribedError;if(t=this.isStopped||this.hasError?a.Subscription.EMPTY:(this.observers.push(e),new f.SubjectSubscription(this,e)),o&&e.add(e=new c.ObserveOnSubscriber(e,o)),r)for(var s=0;s<i&&!e.closed;s++)e.next(n[s]);else for(s=0;s<i&&!e.closed;s++)e.next(n[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},h.prototype._getNow=function(){return(this.scheduler||u.queue).now()},h.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,r=this._windowTime,n=this._events,o=n.length,i=0;i<o&&!(e-n[i].time<r);)i++;return t<o&&(i=Math.max(i,o-t)),0<i&&n.splice(0,i),n},h);function h(e,t,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY);var n=i.call(this)||this;return n.scheduler=r,n._events=[],n._infiniteTimeWindow=!1,n._bufferSize=e<1?1:e,n._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(n._infiniteTimeWindow=!0,n.next=n.nextInfiniteTimeWindow):n.next=n.nextTimeWindow,n}r.ReplaySubject=p;var d=function(e,t){this.time=e,this.value=t}},{"./Subject":494,"./SubjectSubscription":495,"./Subscription":497,"./operators/observeOn":577,"./scheduler/queue":648,"./util/ObjectUnsubscribedError":655}],493:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},o.now=function(){return Date.now()},o);function o(e,t){void 0===t&&(t=o.now),this.SchedulerAction=e,this.now=t}r.Scheduler=n},{}],494:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Observable"),u=e("./Subscriber"),a=e("./Subscription"),c=e("./util/ObjectUnsubscribedError"),l=e("./SubjectSubscription"),f=e("../internal/symbol/rxSubscriber"),p=(i=u.Subscriber,o(h,i),h);function h(e){var t=i.call(this,e)||this;return t.destination=e,t}r.SubjectSubscriber=p;var d,b=(d=s.Observable,o(v,d),v.prototype[f.rxSubscriber]=function(){return new p(this)},v.prototype.lift=function(e){var t=new _(this,this);return t.operator=e,t},v.prototype.next=function(e){if(this.closed)throw new c.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].next(e)},v.prototype.error=function(e){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].error(e);this.observers.length=0},v.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},v.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},v.prototype._trySubscribe=function(e){if(this.closed)throw new c.ObjectUnsubscribedError;return d.prototype._trySubscribe.call(this,e)},v.prototype._subscribe=function(e){if(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(e.complete(),a.Subscription.EMPTY):(this.observers.push(e),new l.SubjectSubscription(this,e))},v.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},v.create=function(e,t){return new _(e,t)},v);function v(){var e=d.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}r.Subject=b;var y,_=(o(m,y=b),m.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},m.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},m.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},m.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.Subscription.EMPTY},m);function m(e,t){var r=y.call(this)||this;return r.destination=e,r.source=t,r}r.AnonymousSubject=_},{"../internal/symbol/rxSubscriber":651,"./Observable":489,"./SubjectSubscription":495,"./Subscriber":496,"./Subscription":497,"./util/ObjectUnsubscribedError":655}],495:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Subscription"),u=(i=s.Subscription,o(a,i),a.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},a);function a(e,t){var r=i.call(this)||this;return r.subject=e,r.subscriber=t,r.closed=!1,r}r.SubjectSubscription=u},{"./Subscription":497}],496:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,u=e("./util/isFunction"),a=e("./Observer"),s=e("./Subscription"),c=e("../internal/symbol/rxSubscriber"),l=e("./config"),f=e("./util/hostReportError"),p=(i=s.Subscription,o(h,i),h.prototype[c.rxSubscriber]=function(){return this},h.create=function(e,t,r){var n=new h(e,t,r);return n.syncErrorThrowable=!1,n},h.prototype.next=function(e){this.isStopped||this._next(e)},h.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},h.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},h.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this))},h.prototype._next=function(e){this.destination.next(e)},h.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},h.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},h.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},h);function h(e,t,r){var n=i.call(this)||this;switch(n.syncErrorValue=null,n.syncErrorThrown=!1,n.syncErrorThrowable=!1,n.isStopped=!1,arguments.length){case 0:n.destination=a.empty;break;case 1:if(!e){n.destination=a.empty;break}if("object"==typeof e){e instanceof h?(n.syncErrorThrowable=e.syncErrorThrowable,(n.destination=e).add(n)):(n.syncErrorThrowable=!0,n.destination=new b(n,e));break}default:n.syncErrorThrowable=!0,n.destination=new b(n,e,t,r)}return n}r.Subscriber=p;var d,b=(o(v,d=p),v.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},v.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=l.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):f.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;f.hostReportError(e)}}},v.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},v.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.config.useDeprecatedSynchronousErrorHandling)throw e;f.hostReportError(e)}},v.prototype.__tryOrSetError=function(t,e,r){if(!l.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return l.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0):(f.hostReportError(e),!0)}return!1},v.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},v);function v(e,t,r,n){var o,i=d.call(this)||this;i._parentSubscriber=e;var s=i;return u.isFunction(t)?o=t:t&&(o=t.next,r=t.error,n=t.complete,t!==a.empty&&(s=Object.create(t),u.isFunction(s.unsubscribe)&&i.add(s.unsubscribe.bind(s)),s.unsubscribe=i.unsubscribe.bind(i))),i._context=s,i._next=o,i._error=r,i._complete=n,i}r.SafeSubscriber=b},{"../internal/symbol/rxSubscriber":651,"./Observer":490,"./Subscription":497,"./config":498,"./util/hostReportError":659,"./util/isFunction":664}],497:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u=e("./util/isArray"),a=e("./util/isObject"),c=e("./util/isFunction"),l=e("./util/UnsubscriptionError"),o=(f.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this._parentOrParents,r=this._unsubscribe,n=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof f)e.remove(this);else if(null!==e)for(var o=0;o<e.length;++o)e[o].remove(this);if(c.isFunction(r))try{r.call(this)}catch(e){t=e instanceof l.UnsubscriptionError?p(e.errors):[e]}if(u.isArray(n)){o=-1;for(var i=n.length;++o<i;){var s=n[o];if(a.isObject(s))try{s.unsubscribe()}catch(e){t=t||[],e instanceof l.UnsubscriptionError?t=t.concat(p(e.errors)):t.push(e)}}}if(t)throw new l.UnsubscriptionError(t)}},f.prototype.add=function(e){var t=e;if(!e)return f.EMPTY;switch(typeof e){case"function":t=new f(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof f)){var r=t;(t=new f)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var n=t._parentOrParents;if(null===n)t._parentOrParents=this;else if(n instanceof f){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},f.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},f.EMPTY=((n=new f).closed=!0,n),f);function f(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}function p(e){return e.reduce(function(e,t){return e.concat(t instanceof l.UnsubscriptionError?t.errors:t)},[])}r.Subscription=o},{"./util/UnsubscriptionError":657,"./util/isArray":661,"./util/isFunction":664,"./util/isObject":668}],498:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=!1;r.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},{}],499:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s,u=e("../Subject"),a=e("../Observable"),c=e("../Subscriber"),l=e("../Subscription"),f=e("../operators/refCount"),p=(i=a.Observable,o(h,i),h.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},h.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},h.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.Subscription).add(this.source.subscribe(new b(this.getSubject(),this))),e.closed&&(this._connection=null,e=l.Subscription.EMPTY)),e},h.prototype.refCount=function(){return f.refCount()(this)},h);function h(e,t){var r=i.call(this)||this;return r.source=e,r.subjectFactory=t,r._refCount=0,r._isComplete=!1,r}r.ConnectableObservable=p,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(s=p.prototype)._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}};var d,b=(d=u.SubjectSubscriber,o(v,d),v.prototype._error=function(e){this._unsubscribe(),d.prototype._error.call(this,e)},v.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),d.prototype._complete.call(this)},v.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},v);function v(e,t){var r=d.call(this,e)||this;return r.connectable=t,r}y.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new m(e,r),o=t.subscribe(n);return n.closed||(n.connection=r.connect()),o};function y(e){this.connectable=e}var _,m=(_=c.Subscriber,o(g,_),g.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,1<t)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},g);function g(e,t){var r=_.call(this,e)||this;return r.connectable=t,r}},{"../Observable":489,"../Subject":494,"../Subscriber":496,"../Subscription":497,"../operators/refCount":588}],500:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("../Observable"),u=e("../scheduler/asap"),a=e("../util/isNumeric"),c=(i=s.Observable,o(l,i),l.create=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=u.asap),new l(e,t,r)},l.dispatch=function(e){var t=e.source,r=e.subscriber;return this.add(t.subscribe(r))},l.prototype._subscribe=function(e){var t=this.delayTime,r=this.source;return this.scheduler.schedule(l.dispatch,t,{source:r,subscriber:e})},l);function l(e,t,r){void 0===t&&(t=0),void 0===r&&(r=u.asap);var n=i.call(this)||this;return n.source=e,n.delayTime=t,n.scheduler=r,(!a.isNumeric(t)||t<0)&&(n.delayTime=0),r&&"function"==typeof r.schedule||(n.scheduler=u.asap),n}r.SubscribeOnObservable=c},{"../Observable":489,"../scheduler/asap":646,"../util/isNumeric":667}],501:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e("../Observable"),c=e("../AsyncSubject"),o=e("../operators/map"),l=e("../util/canReportError"),i=e("../util/isArray"),f=e("../util/isScheduler");function p(e){var n=this,t=e.args,r=e.subscriber,o=e.params,i=o.callbackFunc,s=o.context,u=o.scheduler,a=o.subject;if(!a){a=o.subject=new c.AsyncSubject;try{i.apply(s,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length<=1?e[0]:e;n.add(u.schedule(h,0,{value:r,subject:a}))}]))}catch(e){a.error(e)}}this.add(a.subscribe(r))}function h(e){var t=e.value,r=e.subject;r.next(t),r.complete()}r.bindCallback=function r(s,n,u){if(n){if(!f.isScheduler(n))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(s,u).apply(void 0,e).pipe(o.map(function(e){return i.isArray(e)?n.apply(void 0,e):n(e)}))};u=n}return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var n,o=this,i={context:o,subject:n,callbackFunc:s,scheduler:u};return new a.Observable(function(e){if(u){var t={args:r,subscriber:e,params:i};return u.schedule(p,0,t)}if(!n){n=new c.AsyncSubject;try{s.apply(o,r.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n.next(e.length<=1?e[0]:e),n.complete()}]))}catch(e){l.canReportError(n)?n.error(e):console.warn(e)}}return n.subscribe(e)})}}},{"../AsyncSubject":485,"../Observable":489,"../operators/map":566,"../util/canReportError":658,"../util/isArray":661,"../util/isScheduler":671}],502:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var u=e("../Observable"),c=e("../AsyncSubject"),o=e("../operators/map"),a=e("../util/canReportError"),l=e("../util/isScheduler"),f=e("../util/isArray");function p(e){var o=this,t=e.params,r=e.subscriber,n=e.context,i=t.callbackFunc,s=t.args,u=t.scheduler,a=t.subject;if(!a){a=t.subject=new c.AsyncSubject;try{i.apply(n,s.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.shift();if(r)o.add(u.schedule(d,0,{err:r,subject:a}));else{var n=e.length<=1?e[0]:e;o.add(u.schedule(h,0,{value:n,subject:a}))}}]))}catch(e){this.add(u.schedule(d,0,{err:e,subject:a}))}}this.add(a.subscribe(r))}function h(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function d(e){var t=e.err;e.subject.error(t)}r.bindNodeCallback=function r(i,n,s){if(n){if(!l.isScheduler(n))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(i,s).apply(void 0,e).pipe(o.map(function(e){return f.isArray(e)?n.apply(void 0,e):n(e)}))};s=n}return function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var o={subject:void 0,args:r,callbackFunc:i,scheduler:s,context:this};return new u.Observable(function(e){var t=o.context,n=o.subject;if(s)return s.schedule(p,0,{params:o,subscriber:e,context:t});if(!n){n=o.subject=new c.AsyncSubject;try{i.apply(t,r.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.shift();r?n.error(r):(n.next(e.length<=1?e[0]:e),n.complete())}]))}catch(e){a.canReportError(n)?n.error(e):console.warn(e)}}return n.subscribe(e)})}}},{"../AsyncSubject":485,"../Observable":489,"../operators/map":566,"../util/canReportError":658,"../util/isArray":661,"../util/isScheduler":671}],503:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../util/isScheduler"),s=e("../util/isArray"),u=e("../OuterSubscriber"),a=e("../util/subscribeToResult"),c=e("./fromArray"),l={};r.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=null,n=null;return i.isScheduler(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&s.isArray(e[0])&&(e=e[0]),c.fromArray(e,n).lift(new f(r))};var f=(p.prototype.call=function(e,t){return t.subscribe(new d(e,this.resultSelector))},p);function p(e){this.resultSelector=e}r.CombineLatestOperator=f;var h,d=(h=u.OuterSubscriber,o(b,h),b.prototype._next=function(e){this.values.push(l),this.observables.push(e)},b.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(a.subscribeToResult(this,n,n,r))}}},b.prototype.notifyComplete=function(e){0==--this.active&&this.destination.complete()},b.prototype.notifyNext=function(e,t,r,n,o){var i=this.values,s=i[r],u=this.toRespond?s===l?--this.toRespond:this.toRespond:0;i[r]=t,0===u&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},b.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},b);function b(e,t){var r=h.call(this,e)||this;return r.resultSelector=t,r.active=0,r.values=[],r.observables=[],r}r.CombineLatestSubscriber=d},{"../OuterSubscriber":491,"../util/isArray":661,"../util/isScheduler":671,"../util/subscribeToResult":680,"./fromArray":509}],504:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./of"),o=e("../operators/concatAll");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.concatAll()(n.of.apply(void 0,e))}},{"../operators/concatAll":538,"./of":517}],505:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),o=e("./from"),i=e("./empty");r.defer=function(r){return new n.Observable(function(t){var e;try{e=r()}catch(e){return void t.error(e)}return(e?o.from(e):i.empty()).subscribe(t)})}},{"../Observable":489,"./empty":506,"./from":508}],506:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable");r.EMPTY=new n.Observable(function(e){return e.complete()}),r.empty=function(e){return e?(t=e,new n.Observable(function(e){return t.schedule(function(){return e.complete()})})):r.EMPTY;var t}},{"../Observable":489}],507:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),i=e("../util/isArray"),s=e("../operators/map"),u=e("../util/isObject"),l=e("./from");function a(a,c){return new n.Observable(function(n){var o=a.length;if(0!==o)for(var i=new Array(o),s=0,u=0,e=function(t){var e=l.from(a[t]),r=!1;n.add(e.subscribe({next:function(e){r||(r=!0,u++),i[t]=e},error:function(e){return n.error(e)},complete:function(){++s!==o&&r||(u===o&&n.next(c?c.reduce(function(e,t,r){return e[t]=i[r],e},{}):i),n.complete())}}))},t=0;t<o;t++)e(t);else n.complete()})}r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var r=e[0];if(i.isArray(r))return a(r,null);if(u.isObject(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return a(n.map(function(e){return r[e]}),n)}}if("function"!=typeof e[e.length-1])return a(e,null);var o=e.pop();return a(e=1===e.length&&i.isArray(e[0])?e[0]:e,null).pipe(s.map(function(e){return o.apply(void 0,e)}))}},{"../Observable":489,"../operators/map":566,"../util/isArray":661,"../util/isObject":668,"./from":508}],508:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),o=e("../util/subscribeTo"),i=e("../scheduled/scheduled");r.from=function(e,t){return t?i.scheduled(e,t):e instanceof n.Observable?e:new n.Observable(o.subscribeTo(e))}},{"../Observable":489,"../scheduled/scheduled":634,"../util/subscribeTo":675}],509:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),o=e("../util/subscribeToArray"),i=e("../scheduled/scheduleArray");r.fromArray=function(e,t){return t?i.scheduleArray(e,t):new n.Observable(o.subscribeToArray(e))}},{"../Observable":489,"../scheduled/scheduleArray":630,"../util/subscribeToArray":676}],510:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../util/isArray"),u=e("../util/isFunction"),a=e("../operators/map");Object.prototype.toString;r.fromEvent=function e(r,n,o,t){return u.isFunction(o)&&(t=o,o=void 0),t?e(r,n,o).pipe(a.map(function(e){return s.isArray(e)?t.apply(void 0,e):t(e)})):new i.Observable(function(t){!function e(t,r,n,o,i){var s,u,a,c;if((c=t)&&"function"==typeof c.addEventListener&&"function"==typeof c.removeEventListener){var l=t;t.addEventListener(r,n,i),s=function(){return l.removeEventListener(r,n,i)}}else if((a=t)&&"function"==typeof a.on&&"function"==typeof a.off){var f=t;t.on(r,n),s=function(){return f.off(r,n)}}else if((u=t)&&"function"==typeof u.addListener&&"function"==typeof u.removeListener){var p=t;t.addListener(r,n),s=function(){return p.removeListener(r,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,d=t.length;h<d;h++)e(t[h],r,n,o,i)}o.add(s)}(r,n,function(e){1<arguments.length?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,o)})}},{"../Observable":489,"../operators/map":566,"../util/isArray":661,"../util/isFunction":664}],511:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../util/isArray"),u=e("../util/isFunction"),a=e("../operators/map");r.fromEventPattern=function e(n,o,t){return t?e(n,o).pipe(a.map(function(e){return s.isArray(e)?t.apply(void 0,e):t(e)})):new i.Observable(function(r){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)}var t;try{t=n(e)}catch(e){return void r.error(e)}if(u.isFunction(o))return function(){return o(e,t)}})}},{"../Observable":489,"../operators/map":566,"../util/isArray":661,"../util/isFunction":664}],512:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),c=e("../util/identity"),l=e("../util/isScheduler");function f(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(r){var n=void 0;try{n=r(e.state)}catch(e){return void t.error(e)}if(!n)return void t.complete();if(t.closed)return}var o;try{o=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(o),!t.closed))return this.schedule(e)}}r.generate=function(e,o,i,t,s){var u,a;if(1==arguments.length){a=e.initialState,o=e.condition,i=e.iterate,u=e.resultSelector||c.identity,s=e.scheduler}else void 0===t||l.isScheduler(t)?(a=e,u=c.identity,s=t):(a=e,u=t);return new n.Observable(function(t){var e=a;if(s)return s.schedule(f,0,{subscriber:t,iterate:i,condition:o,resultSelector:u,state:e});for(;;){if(o){var r=void 0;try{r=o(e)}catch(e){return void t.error(e)}if(!r){t.complete();break}}var n=void 0;try{n=u(e)}catch(e){return void t.error(e)}if(t.next(n),t.closed)break;try{e=i(e)}catch(e){return void t.error(e)}}})}},{"../Observable":489,"../util/identity":660,"../util/isScheduler":671}],513:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./defer"),o=e("./empty");r.iif=function(e,t,r){return void 0===t&&(t=o.EMPTY),void 0===r&&(r=o.EMPTY),n.defer(function(){return e()?t:r})}},{"./defer":505,"./empty":506}],514:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),o=e("../scheduler/async"),i=e("../util/isNumeric");function s(e){var t=e.subscriber,r=e.counter,n=e.period;t.next(r),this.schedule({subscriber:t,counter:r+1,period:n},n)}r.interval=function(t,r){return void 0===t&&(t=0),void 0===r&&(r=o.async),(!i.isNumeric(t)||t<0)&&(t=0),r&&"function"==typeof r.schedule||(r=o.async),new n.Observable(function(e){return e.add(r.schedule(s,t,{subscriber:e,counter:0,period:t})),e})}},{"../Observable":489,"../scheduler/async":647,"../util/isNumeric":667}],515:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../util/isScheduler"),u=e("../operators/mergeAll"),a=e("./fromArray");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Number.POSITIVE_INFINITY,n=null,o=e[e.length-1];return s.isScheduler(o)?(n=e.pop(),1<e.length&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===n&&1===e.length&&e[0]instanceof i.Observable?e[0]:u.mergeAll(r)(a.fromArray(e,n))}},{"../Observable":489,"../operators/mergeAll":571,"../util/isScheduler":671,"./fromArray":509}],516:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),o=e("../util/noop");r.NEVER=new n.Observable(o.noop),r.never=function(){return r.NEVER}},{"../Observable":489,"../util/noop":672}],517:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../util/isScheduler"),o=e("./fromArray"),i=e("../scheduled/scheduleArray");r.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return n.isScheduler(r)?(e.pop(),i.scheduleArray(e,r)):o.fromArray(e)}},{"../scheduled/scheduleArray":630,"../util/isScheduler":671,"./fromArray":509}],518:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("./from"),u=e("../util/isArray"),a=e("./empty");r.onErrorResumeNext=function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return a.EMPTY;var n=e[0],o=e.slice(1);return 1===e.length&&u.isArray(n)?r.apply(void 0,n):new i.Observable(function(t){function e(){return t.add(r.apply(void 0,o).subscribe(t))}return s.from(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}},{"../Observable":489,"../util/isArray":661,"./empty":506,"./from":508}],519:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../Subscription");function u(e){var t=e.keys,r=e.index,n=e.subscriber,o=e.subscription,i=e.obj;if(!n.closed)if(r<t.length){var s=t[r];n.next([s,i[s]]),o.add(this.schedule({keys:t,index:r+1,subscriber:n,subscription:o,obj:i}))}else n.complete()}r.pairs=function(o,n){return n?new i.Observable(function(e){var t=Object.keys(o),r=new s.Subscription;return r.add(n.schedule(u,0,{keys:t,index:0,subscriber:e,subscription:r,obj:o})),r}):new i.Observable(function(e){for(var t=Object.keys(o),r=0;r<t.length&&!e.closed;r++){var n=t[r];o.hasOwnProperty(n)&&e.next([n,o[n]])}e.complete()})},r.dispatch=u},{"../Observable":489,"../Subscription":497}],520:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../util/not"),o=e("../util/subscribeTo"),i=e("../operators/filter"),s=e("../Observable");r.partition=function(e,t,r){return[i.filter(t,r)(new s.Observable(o.subscribeTo(e))),i.filter(n.not(t,r))(new s.Observable(o.subscribeTo(e)))]}},{"../Observable":489,"../operators/filter":557,"../util/not":673,"../util/subscribeTo":675}],521:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../util/isArray"),s=e("./fromArray"),u=e("../OuterSubscriber"),a=e("../util/subscribeToResult");r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!i.isArray(e[0]))return e[0];e=e[0]}return s.fromArray(e,void 0).lift(new c)};var c=(l.prototype.call=function(e,t){return t.subscribe(new p(e))},l);function l(){}r.RaceOperator=c;var f,p=(f=u.OuterSubscriber,o(h,f),h.prototype._next=function(e){this.observables.push(e)},h.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var r=0;r<t&&!this.hasFirst;r++){var n=e[r],o=a.subscribeToResult(this,n,n,r);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},h.prototype.notifyNext=function(e,t,r,n,o){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==r){var s=this.subscriptions[i];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},h);function h(e){var t=f.call(this,e)||this;return t.hasFirst=!1,t.observables=[],t.subscriptions=[],t}r.RaceSubscriber=p},{"../OuterSubscriber":491,"../util/isArray":661,"../util/subscribeToResult":680,"./fromArray":509}],522:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=e("../Observable");function u(e){var t=e.start,r=e.index,n=e.count,o=e.subscriber;n<=r?o.complete():(o.next(t),o.closed||(e.index=r+1,e.start=t+1,this.schedule(e)))}r.range=function(n,o,i){return void 0===n&&(n=0),new s.Observable(function(e){void 0===o&&(o=n,n=0);var t=0,r=n;if(i)return i.schedule(u,0,{index:t,count:o,start:n,subscriber:e});for(;;){if(t++>=o){e.complete();break}if(e.next(r++),e.closed)break}})},r.dispatch=u},{"../Observable":489}],523:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable");function o(e){var t=e.error;e.subscriber.error(t)}r.throwError=function(t,r){return r?new n.Observable(function(e){return r.schedule(o,0,{error:t,subscriber:e})}):new n.Observable(function(e){return e.error(t)})}},{"../Observable":489}],524:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../scheduler/async"),u=e("../util/isNumeric"),a=e("../util/isScheduler");function c(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}r.timer=function(r,e,n){void 0===r&&(r=0);var o=-1;return u.isNumeric(e)?o=Number(e)<1?1:Number(e):a.isScheduler(e)&&(n=e),a.isScheduler(n)||(n=s.async),new i.Observable(function(e){var t=u.isNumeric(r)?r:r-n.now();return n.schedule(c,t,{index:0,period:o,subscriber:e})})}},{"../Observable":489,"../scheduler/async":647,"../util/isNumeric":667,"../util/isScheduler":671}],525:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),s=e("./from"),u=e("./empty");r.using=function(o,i){return new n.Observable(function(t){var e,r;try{e=o()}catch(e){return void t.error(e)}try{r=i(e)}catch(e){return void t.error(e)}var n=(r?s.from(r):u.EMPTY).subscribe(t);return function(){n.unsubscribe(),e&&e.unsubscribe()}})}},{"../Observable":489,"./empty":506,"./from":508}],526:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("./fromArray"),s=e("../util/isArray"),u=e("../Subscriber"),a=e("../OuterSubscriber"),c=e("../util/subscribeToResult"),l=e("../../internal/symbol/iterator");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return"function"==typeof r&&e.pop(),i.fromArray(e,void 0).lift(new f(r))};var f=(p.prototype.call=function(e,t){return t.subscribe(new d(e,this.resultSelector))},p);function p(e){this.resultSelector=e}r.ZipOperator=f;var h,d=(h=u.Subscriber,o(b,h),b.prototype._next=function(e){var t=this.iterators;s.isArray(e)?t.push(new _(e)):"function"==typeof e[l.iterator]?t.push(new v(e[l.iterator]())):t.push(new w(this.destination,this,e))},b.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var r=0;r<t;r++){var n=e[r];n.stillUnsubscribed?this.destination.add(n.subscribe(n,r)):this.active--}}else this.destination.complete()},b.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},b.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++)if("function"==typeof(s=e[n]).hasValue&&!s.hasValue())return;var o=!1,i=[];for(n=0;n<t;n++){var s,u=(s=e[n]).next();if(s.hasCompleted()&&(o=!0),u.done)return void r.complete();i.push(u.value)}this.resultSelector?this._tryresultSelector(i):r.next(i),o&&r.complete()},b.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},b);function b(e,t,r){void 0===r&&(r=Object.create(null));var n=h.call(this,e)||this;return n.iterators=[],n.active=0,n.resultSelector="function"==typeof t?t:null,n.values=r,n}r.ZipSubscriber=d;var v=(y.prototype.hasValue=function(){return!0},y.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},y.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},y);function y(e){this.iterator=e,this.nextResult=e.next()}var _=(m.prototype[l.iterator]=function(){return this},m.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},m.prototype.hasValue=function(){return this.array.length>this.index},m.prototype.hasCompleted=function(){return this.array.length===this.index},m);function m(e){this.array=e,this.index=0,this.length=0,this.length=e.length}var g,w=(g=a.OuterSubscriber,o(x,g),x.prototype[l.iterator]=function(){return this},x.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},x.prototype.hasValue=function(){return 0<this.buffer.length},x.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},x.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},x.prototype.notifyNext=function(e,t,r,n,o){this.buffer.push(t),this.parent.checkIterators()},x.prototype.subscribe=function(e,t){return c.subscribeToResult(this,this.observable,this,t)},x);function x(e,t,r){var n=g.call(this,e)||this;return n.parent=t,n.observable=r,n.stillUnsubscribed=!0,n.buffer=[],n.isComplete=!1,n}},{"../../internal/symbol/iterator":649,"../OuterSubscriber":491,"../Subscriber":496,"../util/isArray":661,"../util/subscribeToResult":680,"./fromArray":509}],527:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.audit=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.durationSelector))},a);function a(e){this.durationSelector=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var r=s.subscribeToResult(this,t);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},f.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},f.prototype.notifyNext=function(e,t,r,n){this.clearThrottle()},f.prototype.notifyComplete=function(){this.clearThrottle()},f);function f(e,t){var r=c.call(this,e)||this;return r.durationSelector=t,r.hasValue=!1,r}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],528:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../scheduler/async"),o=e("./audit"),i=e("../observable/timer");r.auditTime=function(e,t){return void 0===t&&(t=n.async),o.audit(function(){return i.timer(e,t)})}},{"../observable/timer":524,"../scheduler/async":647,"./audit":527}],529:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.buffer=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.closingNotifier))},a);function a(e){this.closingNotifier=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype._next=function(e){this.buffer.push(e)},f.prototype.notifyNext=function(e,t,r,n,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},f);function f(e,t){var r=c.call(this,e)||this;return r.buffer=[],r.add(s.subscribeToResult(r,t)),r}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],530:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.bufferCount=function(t,r){return void 0===r&&(r=null),function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},u);function u(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?p:c}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},l.prototype._complete=function(){var e=this.buffer;0<e.length&&this.destination.next(e),a.prototype._complete.call(this)},l);function l(e,t){var r=a.call(this,e)||this;return r.bufferSize=t,r.buffer=[],r}var f,p=(f=i.Subscriber,o(h,f),h.prototype._next=function(e){var t=this.bufferSize,r=this.startBufferEvery,n=this.buffers,o=this.count;this.count++,o%r==0&&n.push([]);for(var i=n.length;i--;){var s=n[i];s.push(e),s.length===t&&(n.splice(i,1),this.destination.next(s))}},h.prototype._complete=function(){for(var e=this.buffers,t=this.destination;0<e.length;){var r=e.shift();0<r.length&&t.next(r)}f.prototype._complete.call(this)},h);function h(e,t,r){var n=f.call(this,e)||this;return n.bufferSize=t,n.startBufferEvery=r,n.buffers=[],n.count=0,n}},{"../Subscriber":496}],531:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../scheduler/async"),s=e("../Subscriber"),u=e("../util/isScheduler");r.bufferTime=function(t){var e=arguments.length,r=i.async;u.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;2<=e&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return 3<=e&&(o=arguments[2]),function(e){return e.lift(new a(t,n,o,r))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new p(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},c);function c(e,t,r,n){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=n}var l,f=function(){this.buffer=[]},p=(l=s.Subscriber,o(h,l),h.prototype._next=function(e){for(var t,r=this.contexts,n=r.length,o=0;o<n;o++){var i=r[o],s=i.buffer;s.push(e),s.length==this.maxBufferSize&&(t=i)}t&&this.onBufferFull(t)},h.prototype._error=function(e){this.contexts.length=0,l.prototype._error.call(this,e)},h.prototype._complete=function(){for(var e=this.contexts,t=this.destination;0<e.length;){var r=e.shift();t.next(r.buffer)}l.prototype._complete.call(this)},h.prototype._unsubscribe=function(){this.contexts=null},h.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:e,bufferTimeSpan:r};this.add(e.closeAction=this.scheduler.schedule(d,r,n))}},h.prototype.openContext=function(){var e=new f;return this.contexts.push(e),e},h.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;0<=(t?t.indexOf(e):-1)&&t.splice(t.indexOf(e),1)},h);function h(e,t,r,n,o){var i=l.call(this,e)||this;i.bufferTimeSpan=t,i.bufferCreationInterval=r,i.maxBufferSize=n,i.scheduler=o,i.contexts=[];var s=i.openContext();if(i.timespanOnly=null==r||r<0,i.timespanOnly){var u={subscriber:i,context:s,bufferTimeSpan:t};i.add(s.closeAction=o.schedule(d,t,u))}else{var a={subscriber:i,context:s},c={bufferTimeSpan:t,bufferCreationInterval:r,subscriber:i,scheduler:o};i.add(s.closeAction=o.schedule(v,t,a)),i.add(o.schedule(b,r,c))}return i}function d(e){var t=e.subscriber,r=e.context;r&&t.closeContext(r),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function b(e){var t=e.bufferCreationInterval,r=e.bufferTimeSpan,n=e.subscriber,o=e.scheduler,i=n.openContext();n.closed||(n.add(i.closeAction=o.schedule(v,r,{subscriber:n,context:i})),this.schedule(e,t))}function v(e){var t=e.subscriber,r=e.context;t.closeContext(r)}},{"../Subscriber":496,"../scheduler/async":647,"../util/isScheduler":671}],532:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscription"),s=e("../util/subscribeToResult"),u=e("../OuterSubscriber");r.bufferToggle=function(t,r){return function(e){return e.lift(new a(t,r))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.openings,this.closingSelector))},c);function c(e,t){this.openings=e,this.closingSelector=t}var l,f=(l=u.OuterSubscriber,o(p,l),p.prototype._next=function(e){for(var t=this.contexts,r=t.length,n=0;n<r;n++)t[n].buffer.push(e)},p.prototype._error=function(e){for(var t=this.contexts;0<t.length;){var r=t.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,l.prototype._error.call(this,e)},p.prototype._complete=function(){for(var e=this.contexts;0<e.length;){var t=e.shift();this.destination.next(t.buffer),t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,l.prototype._complete.call(this)},p.prototype.notifyNext=function(e,t,r,n,o){e?this.closeBuffer(e):this.openBuffer(t)},p.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},p.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},p.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var r=e.buffer,n=e.subscription;this.destination.next(r),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},p.prototype.trySubscribe=function(e){var t=this.contexts,r=new i.Subscription,n={buffer:[],subscription:r};t.push(n);var o=s.subscribeToResult(this,e,n);!o||o.closed?this.closeBuffer(n):(o.context=n,this.add(o),r.add(o))},p);function p(e,t,r){var n=l.call(this,e)||this;return n.openings=t,n.closingSelector=r,n.contexts=[],n.add(s.subscribeToResult(n,t)),n}},{"../OuterSubscriber":491,"../Subscription":497,"../util/subscribeToResult":680}],533:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscription"),s=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.bufferWhen=function(t){return function(e){return e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.closingSelector))},c);function c(e){this.closingSelector=e}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype._next=function(e){this.buffer.push(e)},p.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),l.prototype._complete.call(this)},p.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},p.prototype.notifyNext=function(e,t,r,n,o){this.openBuffer()},p.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},p.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{t=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new i.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(u.subscribeToResult(this,t)),this.subscribing=!1},p);function p(e,t){var r=l.call(this,e)||this;return r.closingSelector=t,r.subscribing=!1,r.openBuffer(),r}},{"../OuterSubscriber":491,"../Subscription":497,"../util/subscribeToResult":680}],534:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../InnerSubscriber"),u=e("../util/subscribeToResult");r.catchError=function(n){return function(e){var t=new a(n),r=e.lift(t);return t.caught=r}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.selector,this.caught))},c);function c(e){this.selector=e}var l,f=(l=i.OuterSubscriber,o(p,l),p.prototype.error=function(e){if(!this.isStopped){var t=void 0;try{t=this.selector(e,this.caught)}catch(e){return void l.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new s.InnerSubscriber(this,void 0,void 0);this.add(r),u.subscribeToResult(this,t,void 0,void 0,r)}},p);function p(e,t,r){var n=l.call(this,e)||this;return n.selector=t,n.caught=r,n}},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../util/subscribeToResult":680}],535:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/combineLatest");r.combineAll=function(t){return function(e){return e.lift(new n.CombineLatestOperator(t))}}},{"../observable/combineLatest":503}],536:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../util/isArray"),o=e("../observable/combineLatest"),i=e("../observable/from");r.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&n.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(i.from([e].concat(t)),new o.CombineLatestOperator(r))}}},{"../observable/combineLatest":503,"../observable/from":508,"../util/isArray":661}],537:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/concat");r.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(n.concat.apply(void 0,[e].concat(t)))}}},{"../observable/concat":504}],538:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./mergeAll");r.concatAll=function(){return n.mergeAll(1)}},{"./mergeAll":571}],539:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./mergeMap");r.concatMap=function(e,t){return n.mergeMap(e,t,1)}},{"./mergeMap":572}],540:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./concatMap");r.concatMapTo=function(e,t){return n.concatMap(function(){return e},t)}},{"./concatMap":539}],541:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.count=function(t){return function(e){return e.lift(new s(t,e))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.source))},u);function u(e,t){this.predicate=e,this.source=t}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},l.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},l.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},l);function l(e,t,r){var n=a.call(this,e)||this;return n.predicate=t,n.source=r,n.count=0,n.index=0,n}},{"../Subscriber":496}],542:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.debounce=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.durationSelector))},a);function a(e){this.durationSelector=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},f.prototype._complete=function(){this.emitValue(),this.destination.complete()},f.prototype._tryNext=function(e,t){var r=this.durationSubscription;this.value=e,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=s.subscribeToResult(this,t))&&!r.closed&&this.add(this.durationSubscription=r)},f.prototype.notifyNext=function(e,t,r,n,o){this.emitValue()},f.prototype.notifyComplete=function(){this.emitValue()},f.prototype.emitValue=function(){if(this.hasValue){var e=this.value,t=this.durationSubscription;t&&(this.durationSubscription=null,t.unsubscribe(),this.remove(t)),this.value=null,this.hasValue=!1,c.prototype._next.call(this,e)}},f);function f(e,t){var r=c.call(this,e)||this;return r.durationSelector=t,r.hasValue=!1,r.durationSubscription=null,r}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],543:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../scheduler/async");r.debounceTime=function(t,r){return void 0===r&&(r=s.async),function(e){return e.lift(new u(t,r))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.dueTime,this.scheduler))},a);function a(e,t){this.dueTime=e,this.scheduler=t}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(p,this.dueTime,this))},f.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},f.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},f.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},f);function f(e,t,r){var n=c.call(this,e)||this;return n.dueTime=t,n.scheduler=r,n.debouncedSubscription=null,n.lastValue=null,n.hasValue=!1,n}function p(e){e.debouncedNext()}},{"../Subscriber":496,"../scheduler/async":647}],544:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new s(t))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.defaultValue))},u);function u(e){this.defaultValue=e}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},l.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},l);function l(e,t){var r=a.call(this,e)||this;return r.defaultValue=t,r.isEmpty=!0,r}},{"../Subscriber":496}],545:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../scheduler/async"),s=e("../util/isDate"),u=e("../Subscriber"),a=e("../Notification");r.delay=function(e,t){void 0===t&&(t=i.async);var r=s.isDate(e)?e-t.now():Math.abs(e);return function(e){return e.lift(new c(r,t))}};var c=(l.prototype.call=function(e,t){return t.subscribe(new p(e,this.delay,this.scheduler))},l);function l(e,t){this.delay=e,this.scheduler=t}var f,p=(f=u.Subscriber,o(h,f),h.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,o=e.destination;0<r.length&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(0<r.length){var i=Math.max(0,r[0].time-n.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},h.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(h.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},h.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new d(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},h.prototype._next=function(e){this.scheduleNotification(a.Notification.createNext(e))},h.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},h.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete()),this.unsubscribe()},h);function h(e,t,r){var n=f.call(this,e)||this;return n.delay=t,n.scheduler=r,n.queue=[],n.active=!1,n.errored=!1,n}var d=function(e,t){this.time=e,this.notification=t}},{"../Notification":488,"../Subscriber":496,"../scheduler/async":647,"../util/isDate":663}],546:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../Observable"),u=e("../OuterSubscriber"),a=e("../util/subscribeToResult");r.delayWhen=function(t,r){return r?function(e){return new b(e,r).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=(l.prototype.call=function(e,t){return t.subscribe(new p(e,this.delayDurationSelector))},l);function l(e){this.delayDurationSelector=e}var f,p=(f=u.OuterSubscriber,o(h,f),h.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},h.prototype.notifyError=function(e,t){this._error(e)},h.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},h.prototype._next=function(e){var t=this.index++;try{var r=this.delayDurationSelector(e,t);r&&this.tryDelay(r,e)}catch(e){this.destination.error(e)}},h.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},h.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},h.prototype.tryDelay=function(e,t){var r=a.subscribeToResult(this,e,t);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},h.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},h);function h(e,t){var r=f.call(this,e)||this;return r.delayDurationSelector=t,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}var d,b=(d=s.Observable,o(v,d),v.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new _(e,this.source))},v);function v(e,t){var r=d.call(this)||this;return r.source=e,r.subscriptionDelay=t,r}var y,_=(y=i.Subscriber,o(m,y),m.prototype._next=function(e){this.subscribeToSource()},m.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},m.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},m.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},m);function m(e,t){var r=y.call(this)||this;return r.parent=e,r.source=t,r.sourceSubscribed=!1,r}},{"../Observable":489,"../OuterSubscriber":491,"../Subscriber":496,"../util/subscribeToResult":680}],547:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.dematerialize=function(){return function(e){return e.lift(new s)}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e))},u);function u(){}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){e.observe(this.destination)},l);function l(e){return a.call(this,e)||this}},{"../Subscriber":496}],548:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.distinct=function(t,r){return function(e){return e.lift(new u(t,r))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.flushes))},a);function a(e,t){this.keySelector=e,this.flushes=t}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype.notifyNext=function(e,t,r,n,o){this.values.clear()},f.prototype.notifyError=function(e,t){this._error(e)},f.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},f.prototype._useKeySelector=function(e){var t,r=this.destination;try{t=this.keySelector(e)}catch(e){return void r.error(e)}this._finalizeNext(t,e)},f.prototype._finalizeNext=function(e,t){var r=this.values;r.has(e)||(r.add(e),this.destination.next(t))},f);function f(e,t,r){var n=c.call(this,e)||this;return n.keySelector=t,n.values=new Set,r&&n.add(s.subscribeToResult(n,r)),n}r.DistinctSubscriber=l},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],549:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.distinctUntilChanged=function(t,r){return function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.compare,this.keySelector))},u);function u(e,t){this.compare=e,this.keySelector=t}var a,c=(a=i.Subscriber,o(l,a),l.prototype.compare=function(e,t){return e===t},l.prototype._next=function(e){var t;try{var r=this.keySelector;t=r?r(e):e}catch(e){return this.destination.error(e)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))},l);function l(e,t,r){var n=a.call(this,e)||this;return n.keySelector=r,n.hasKey=!1,"function"==typeof t&&(n.compare=t),n}},{"../Subscriber":496}],550:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("./distinctUntilChanged");r.distinctUntilKeyChanged=function(r,n){return o.distinctUntilChanged(function(e,t){return n?n(e[r],t[r]):e[r]===t[r]})}},{"./distinctUntilChanged":549}],551:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../util/ArgumentOutOfRangeError"),i=e("./filter"),s=e("./throwIfEmpty"),u=e("./defaultIfEmpty"),a=e("./take");r.elementAt=function(r,t){if(r<0)throw new o.ArgumentOutOfRangeError;var n=2<=arguments.length;return function(e){return e.pipe(i.filter(function(e,t){return t===r}),a.take(1),n?u.defaultIfEmpty(t):s.throwIfEmpty(function(){return new o.ArgumentOutOfRangeError}))}}},{"../util/ArgumentOutOfRangeError":652,"./defaultIfEmpty":544,"./filter":557,"./take":609,"./throwIfEmpty":616}],552:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/concat"),o=e("../observable/of");r.endWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return n.concat(e,o.of.apply(void 0,t))}}},{"../observable/concat":504,"../observable/of":517}],553:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.every=function(t,r){return function(e){return e.lift(new s(t,r,e))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.thisArg,this.source))},u);function u(e,t,r){this.predicate=e,this.thisArg=t,this.source=r}var a,c=(a=i.Subscriber,o(l,a),l.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},l.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},l.prototype._complete=function(){this.notifyComplete(!0)},l);function l(e,t,r,n){var o=a.call(this,e)||this;return o.predicate=t,o.thisArg=r,o.source=n,o.index=0,o.thisArg=r||o,o}},{"../Subscriber":496}],554:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.exhaust=function(){return function(e){return e.lift(new u)}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e))},a);function a(){}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,e)))},f.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},f.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},f);function f(e){var t=c.call(this,e)||this;return t.hasCompleted=!1,t.hasSubscription=!1,t}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],555:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../InnerSubscriber"),u=e("../util/subscribeToResult"),a=e("./map"),c=e("../observable/from");r.exhaustMap=function t(o,i){return i?function(e){return e.pipe(t(function(r,n){return c.from(o(r,n)).pipe(a.map(function(e,t){return i(r,e,n,t)}))}))}:function(e){return e.lift(new l(o))}};var l=(f.prototype.call=function(e,t){return t.subscribe(new h(e,this.project))},f);function f(e){this.project=e}var p,h=(p=i.OuterSubscriber,o(d,p),d.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},d.prototype.tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,r)},d.prototype._innerSub=function(e,t,r){var n=new s.InnerSubscriber(this,void 0,void 0);this.destination.add(n),u.subscribeToResult(this,e,t,r,n)},d.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},d.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},d.prototype.notifyError=function(e){this.destination.error(e)},d.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},d);function d(e,t){var r=p.call(this,e)||this;return r.project=t,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../observable/from":508,"../util/subscribeToResult":680,"./map":566}],556:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.expand=function(t,r,n){return void 0===r&&(r=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),r=(r||0)<1?Number.POSITIVE_INFINITY:r,function(e){return e.lift(new u(t,r,n))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.concurrent,this.scheduler))},a);function a(e,t,r){this.project=e,this.concurrent=t,this.scheduler=r}r.ExpandOperator=u;var c,l=(c=i.OuterSubscriber,o(f,c),f.dispatch=function(e){var t=e.subscriber,r=e.result,n=e.value,o=e.index;t.subscribeToProjection(r,n,o)},f.prototype._next=function(e){var t=this.destination;if(t.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){t.next(e);try{var n=(0,this.project)(e,r);if(this.scheduler){var o={subscriber:this,result:n,value:e,index:r};this.destination.add(this.scheduler.schedule(f.dispatch,0,o))}else this.subscribeToProjection(n,e,r)}catch(e){t.error(e)}}else this.buffer.push(e)}},f.prototype.subscribeToProjection=function(e,t,r){this.active++,this.destination.add(s.subscribeToResult(this,e,t,r))},f.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},f.prototype.notifyNext=function(e,t,r,n,o){this._next(t)},f.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,t&&0<t.length&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},f);function f(e,t,r,n){var o=c.call(this,e)||this;return o.project=t,o.concurrent=r,o.scheduler=n,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}r.ExpandSubscriber=l},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],557:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.filter=function(t,r){return function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.thisArg))},u);function u(e,t){this.predicate=e,this.thisArg=t}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},l);function l(e,t,r){var n=a.call(this,e)||this;return n.predicate=t,n.thisArg=r,n.count=0,n}},{"../Subscriber":496}],558:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../Subscription");r.finalize=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.callback))},a);function a(e){this.callback=e}var c,l=(c=i.Subscriber,o(f,c),f);function f(e,t){var r=c.call(this,e)||this;return r.add(new s.Subscription(t)),r}},{"../Subscriber":496,"../Subscription":497}],559:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.find=function(t,r){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(e){return e.lift(new s(t,e,!1,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},u);function u(e,t,r,n){this.predicate=e,this.source=t,this.yieldIndex=r,this.thisArg=n}r.FindValueOperator=s;var a,c=(a=i.Subscriber,o(l,a),l.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},l.prototype._next=function(e){var t=this.predicate,r=this.thisArg,n=this.index++;try{t.call(r||this,e,n,this.source)&&this.notifyComplete(this.yieldIndex?n:e)}catch(e){this.destination.error(e)}},l.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},l);function l(e,t,r,n,o){var i=a.call(this,e)||this;return i.predicate=t,i.source=r,i.yieldIndex=n,i.thisArg=o,i.index=0,i}r.FindValueSubscriber=c},{"../Subscriber":496}],560:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../operators/find");r.findIndex=function(t,r){return function(e){return e.lift(new n.FindValueOperator(t,e,!0,r))}}},{"../operators/find":559}],561:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../util/EmptyError"),i=e("./filter"),s=e("./take"),u=e("./defaultIfEmpty"),a=e("./throwIfEmpty"),c=e("../util/identity");r.first=function(n,e){var t=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(e,t){return n(e,t,r)}):c.identity,s.take(1),t?u.defaultIfEmpty(e):a.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":653,"../util/identity":660,"./defaultIfEmpty":544,"./filter":557,"./take":609,"./throwIfEmpty":616}],562:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../Subscription"),u=e("../Observable"),a=e("../Subject");r.groupBy=function(t,r,n,o){return function(e){return e.lift(new c(t,r,n,o))}};var c=(l.prototype.call=function(e,t){return t.subscribe(new p(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},l);function l(e,t,r,n){this.keySelector=e,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=n}var f,p=(f=i.Subscriber,o(h,f),h.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},h.prototype._group=function(e,t){var r,n=this.groups,o=(n=n||(this.groups=new Map)).get(t);if(this.elementSelector)try{r=this.elementSelector(e)}catch(e){this.error(e)}else r=e;if(!o){o=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(t,o);var i=new _(t,o,this);if(this.destination.next(i),this.durationSelector){var s=void 0;try{s=this.durationSelector(new _(t,o))}catch(e){return void this.error(e)}this.add(s.subscribe(new b(t,o,this)))}}o.closed||o.next(r)},h.prototype._error=function(r){var e=this.groups;e&&(e.forEach(function(e,t){e.error(r)}),e.clear()),this.destination.error(r)},h.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},h.prototype.removeGroup=function(e){this.groups.delete(e)},h.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&f.prototype.unsubscribe.call(this))},h);function h(e,t,r,n,o){var i=f.call(this,e)||this;return i.keySelector=t,i.elementSelector=r,i.durationSelector=n,i.subjectSelector=o,i.groups=null,i.attemptedToUnsubscribe=!1,i.count=0,i}var d,b=(d=i.Subscriber,o(v,d),v.prototype._next=function(e){this.complete()},v.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},v);function v(e,t,r){var n=d.call(this,t)||this;return n.key=e,n.group=t,n.parent=r,n}var y,_=(y=u.Observable,o(m,y),m.prototype._subscribe=function(e){var t=new s.Subscription,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&t.add(new w(r)),t.add(n.subscribe(e)),t},m);function m(e,t,r){var n=y.call(this)||this;return n.key=e,n.groupSubject=t,n.refCountSubscription=r,n}r.GroupedObservable=_;var g,w=(g=s.Subscription,o(x,g),x.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(g.prototype.unsubscribe.call(this),--e.count,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},x);function x(e){var t=g.call(this)||this;return(t.parent=e).count++,t}},{"../Observable":489,"../Subject":494,"../Subscriber":496,"../Subscription":497}],563:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.ignoreElements=function(){return function(e){return e.lift(new s)}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e))},u);function u(){}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){},l);function l(){return null!==a&&a.apply(this,arguments)||this}},{"../Subscriber":496}],564:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.isEmpty=function(){return function(e){return e.lift(new s)}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e))},u);function u(){}var a,c=(a=i.Subscriber,o(l,a),l.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},l.prototype._next=function(e){this.notifyComplete(!1)},l.prototype._complete=function(){this.notifyComplete(!0)},l);function l(e){return a.call(this,e)||this}},{"../Subscriber":496}],565:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../util/EmptyError"),i=e("./filter"),s=e("./takeLast"),u=e("./throwIfEmpty"),a=e("./defaultIfEmpty"),c=e("../util/identity");r.last=function(n,e){var t=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(e,t){return n(e,t,r)}):c.identity,s.takeLast(1),t?a.defaultIfEmpty(e):u.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":653,"../util/identity":660,"./defaultIfEmpty":544,"./filter":557,"./takeLast":610,"./throwIfEmpty":616}],566:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.map=function(t,r){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.thisArg))},u);function u(e,t){this.project=e,this.thisArg=t}r.MapOperator=s;var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},l);function l(e,t,r){var n=a.call(this,e)||this;return n.project=t,n.count=0,n.thisArg=r||n,n}},{"../Subscriber":496}],567:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.mapTo=function(t){return function(e){return e.lift(new s(t))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.value))},u);function u(e){this.value=e}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){this.destination.next(this.value)},l);function l(e,t){var r=a.call(this,e)||this;return r.value=t,r}},{"../Subscriber":496}],568:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../Notification");r.materialize=function(){return function(e){return e.lift(new u)}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e))},a);function a(){}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(e){this.destination.next(s.Notification.createNext(e))},f.prototype._error=function(e){var t=this.destination;t.next(s.Notification.createError(e)),t.complete()},f.prototype._complete=function(){var e=this.destination;e.next(s.Notification.createComplete()),e.complete()},f);function f(e){return c.call(this,e)||this}},{"../Notification":488,"../Subscriber":496}],569:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./reduce");r.max=function(r){var e="function"==typeof r?function(e,t){return 0<r(e,t)?e:t}:function(e,t){return t<e?e:t};return n.reduce(e)}},{"./reduce":587}],570:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/merge");r.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(n.merge.apply(void 0,[e].concat(t)))}}},{"../observable/merge":515}],571:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./mergeMap"),o=e("../util/identity");r.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),n.mergeMap(o.identity,e)}},{"../util/identity":660,"./mergeMap":572}],572:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../util/subscribeToResult"),s=e("../OuterSubscriber"),u=e("../InnerSubscriber"),a=e("./map"),c=e("../observable/from");r.mergeMap=function t(o,i,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof i?function(e){return e.pipe(t(function(r,n){return c.from(o(r,n)).pipe(a.map(function(e,t){return i(r,e,n,t)}))},r))}:("number"==typeof i&&(r=i),function(e){return e.lift(new l(o,r))})};var l=(f.prototype.call=function(e,t){return t.subscribe(new h(e,this.project,this.concurrent))},f);function f(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}r.MergeMapOperator=l;var p,h=(p=s.OuterSubscriber,o(d,p),d.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},d.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,r)},d.prototype._innerSub=function(e,t,r){var n=new u.InnerSubscriber(this,void 0,void 0);this.destination.add(n),i.subscribeToResult(this,e,t,r,n)},d.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},d.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},d.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,0<t.length?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},d);function d(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var n=p.call(this,e)||this;return n.project=t,n.concurrent=r,n.hasCompleted=!1,n.buffer=[],n.active=0,n.index=0,n}r.MergeMapSubscriber=h},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../observable/from":508,"../util/subscribeToResult":680,"./map":566}],573:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./mergeMap");r.mergeMapTo=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof t?n.mergeMap(function(){return e},t,r):("number"==typeof t&&(r=t),n.mergeMap(function(){return e},r))}},{"./mergeMap":572}],574:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../util/subscribeToResult"),s=e("../OuterSubscriber"),u=e("../InnerSubscriber");r.mergeScan=function(t,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(e){return e.lift(new a(t,r,n))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.accumulator,this.seed,this.concurrent))},c);function c(e,t,r){this.accumulator=e,this.seed=t,this.concurrent=r}r.MergeScanOperator=a;var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,r=this.destination,n=void 0;try{n=(0,this.accumulator)(this.acc,e,t)}catch(e){return r.error(e)}this.active++,this._innerSub(n,e,t)}else this.buffer.push(e)},p.prototype._innerSub=function(e,t,r){var n=new u.InnerSubscriber(this,void 0,void 0);this.destination.add(n),i.subscribeToResult(this,e,t,r,n)},p.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},p.prototype.notifyNext=function(e,t,r,n,o){var i=this.destination;this.acc=t,this.hasValue=!0,i.next(t)},p.prototype.notifyComplete=function(e){var t=this.buffer;this.destination.remove(e),this.active--,0<t.length?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},p);function p(e,t,r,n){var o=l.call(this,e)||this;return o.accumulator=t,o.acc=r,o.concurrent=n,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}r.MergeScanSubscriber=f},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../util/subscribeToResult":680}],575:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./reduce");r.min=function(r){var e="function"==typeof r?function(e,t){return r(e,t)<0?e:t}:function(e,t){return e<t?e:t};return n.reduce(e)}},{"./reduce":587}],576:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../observable/ConnectableObservable");r.multicast=function(n,o){return function(e){var t;if(t="function"==typeof n?n:function(){return n},"function"==typeof o)return e.lift(new s(t,o));var r=Object.create(e,i.connectableObservableDescriptor);return r.source=e,r.subjectFactory=t,r}};var s=(n.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(e);return o.add(t.subscribe(n)),o},n);function n(e,t){this.subjectFactory=e,this.selector=t}r.MulticastOperator=s},{"../observable/ConnectableObservable":499}],577:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../Notification");r.observeOn=function(t,r){return void 0===r&&(r=0),function(e){return e.lift(new u(t,r))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.scheduler,this.delay))},a);function a(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}r.ObserveOnOperator=u;var c,l=(c=i.Subscriber,o(f,c),f.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},f.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(f.dispatch,this.delay,new p(e,this.destination)))},f.prototype._next=function(e){this.scheduleMessage(s.Notification.createNext(e))},f.prototype._error=function(e){this.scheduleMessage(s.Notification.createError(e)),this.unsubscribe()},f.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete()),this.unsubscribe()},f);function f(e,t,r){void 0===r&&(r=0);var n=c.call(this,e)||this;return n.scheduler=t,n.delay=r,n}r.ObserveOnSubscriber=l;var p=function(e,t){this.notification=e,this.destination=t};r.ObserveOnMessage=p},{"../Notification":488,"../Subscriber":496}],578:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../observable/from"),s=e("../util/isArray"),u=e("../OuterSubscriber"),a=e("../InnerSubscriber"),c=e("../util/subscribeToResult");r.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&s.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new l(t))}},r.onErrorResumeNextStatic=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r;return 1===e.length&&s.isArray(e[0])&&(e=e[0]),r=e.shift(),i.from(r,null).lift(new l(e))};var l=(f.prototype.call=function(e,t){return t.subscribe(new h(e,this.nextSources))},f);function f(e){this.nextSources=e}var p,h=(p=u.OuterSubscriber,o(d,p),d.prototype.notifyError=function(e,t){this.subscribeToNextSource()},d.prototype.notifyComplete=function(e){this.subscribeToNextSource()},d.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},d.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},d.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new a.InnerSubscriber(this,void 0,void 0);this.destination.add(t),c.subscribeToResult(this,e,void 0,void 0,t)}else this.destination.complete()},d);function d(e,t){var r=p.call(this,e)||this;return r.destination=e,r.nextSources=t,r}},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../observable/from":508,"../util/isArray":661,"../util/subscribeToResult":680}],579:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.pairwise=function(){return function(e){return e.lift(new s)}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e))},u);function u(){}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},l);function l(e){var t=a.call(this,e)||this;return t.hasPrev=!1,t}},{"../Subscriber":496}],580:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../util/not"),o=e("./filter");r.partition=function(t,r){return function(e){return[o.filter(t,r)(e),o.filter(n.not(t,r))(e)]}}},{"../util/not":673,"./filter":557}],581:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./map");r.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(e){return n.map((o=t,i=r,function(e){for(var t=e,r=0;r<i;r++){var n=t[o[r]];if(void 0===n)return;t=n}return t}))(e);var o,i}}},{"./map":566}],582:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Subject"),o=e("./multicast");r.publish=function(e){return e?o.multicast(function(){return new n.Subject},e):o.multicast(new n.Subject)}},{"../Subject":494,"./multicast":576}],583:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../BehaviorSubject"),o=e("./multicast");r.publishBehavior=function(t){return function(e){return o.multicast(new n.BehaviorSubject(t))(e)}}},{"../BehaviorSubject":486,"./multicast":576}],584:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../AsyncSubject"),o=e("./multicast");r.publishLast=function(){return function(e){return o.multicast(new n.AsyncSubject)(e)}}},{"../AsyncSubject":485,"./multicast":576}],585:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=e("../ReplaySubject"),u=e("./multicast");r.publishReplay=function(e,t,r,n){r&&"function"!=typeof r&&(n=r);var o="function"==typeof r?r:void 0,i=new s.ReplaySubject(e,t,n);return function(e){return u.multicast(function(){return i},o)(e)}}},{"../ReplaySubject":492,"./multicast":576}],586:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../util/isArray"),o=e("../observable/race");r.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&n.isArray(t[0])&&(t=t[0]),e.lift.call(o.race.apply(void 0,[e].concat(t)))}}},{"../observable/race":521,"../util/isArray":661}],587:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("./scan"),i=e("./takeLast"),s=e("./defaultIfEmpty"),u=e("../util/pipe");r.reduce=function(n,t){return 2<=arguments.length?function(e){return u.pipe(o.scan(n,t),i.takeLast(1),s.defaultIfEmpty(t))(e)}:function(e){return u.pipe(o.scan(function(e,t,r){return n(e,t,r+1)}),i.takeLast(1))(e)}}},{"../util/pipe":674,"./defaultIfEmpty":544,"./scan":595,"./takeLast":610}],588:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.refCount=function(){return function(e){return e.lift(new s(e))}};var s=(u.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new c(e,r),o=t.subscribe(n);return n.closed||(n.connection=r.connect()),o},u);function u(e){this.connectable=e}var a,c=(a=i.Subscriber,o(l,a),l.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,1<t)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},l);function l(e,t){var r=a.call(this,e)||this;return r.connectable=t,r}},{"../Subscriber":496}],589:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../observable/empty");r.repeat=function(t){return void 0===t&&(t=-1),function(e){return 0===t?s.empty():t<0?e.lift(new u(-1,e)):e.lift(new u(t-1,e))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.count,this.source))},a);function a(e,t){this.count=e,this.source=t}var c,l=(c=i.Subscriber,o(f,c),f.prototype.complete=function(){if(!this.isStopped){var e=this.source,t=this.count;if(0===t)return c.prototype.complete.call(this);-1<t&&(this.count=t-1),e.subscribe(this._unsubscribeAndRecycle())}},f);function f(e,t,r){var n=c.call(this,e)||this;return n.count=t,n.source=r,n}},{"../Subscriber":496,"../observable/empty":506}],590:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subject"),s=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.repeatWhen=function(t){return function(e){return e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.notifier,t))},c);function c(e){this.notifier=e}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype.notifyNext=function(e,t,r,n,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},p.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return l.prototype.complete.call(this)},p.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return l.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},p.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},p.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,l.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},p.prototype.subscribeToRetries=function(){var e;this.notifications=new i.Subject;try{e=(0,this.notifier)(this.notifications)}catch(e){return l.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=u.subscribeToResult(this,e)},p);function p(e,t,r){var n=l.call(this,e)||this;return n.notifier=t,n.source=r,n.sourceIsBeingSubscribedTo=!0,n}},{"../OuterSubscriber":491,"../Subject":494,"../util/subscribeToResult":680}],591:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new s(t,e))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.count,this.source))},u);function u(e,t){this.count=e,this.source=t}var a,c=(a=i.Subscriber,o(l,a),l.prototype.error=function(e){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return a.prototype.error.call(this,e);-1<r&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}},l);function l(e,t,r){var n=a.call(this,e)||this;return n.count=t,n.source=r,n}},{"../Subscriber":496}],592:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subject"),s=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.retryWhen=function(t){return function(e){return e.lift(new a(t,e))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.notifier,this.source))},c);function c(e,t){this.notifier=e,this.source=t}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype.error=function(e){if(!this.isStopped){var t=this.errors,r=this.retries,n=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{t=new i.Subject;try{r=(0,this.notifier)(t)}catch(e){return l.prototype.error.call(this,e)}n=u.subscribeToResult(this,r)}this._unsubscribeAndRecycle(),this.errors=t,this.retries=r,this.retriesSubscription=n,t.next(e)}},p.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},p.prototype.notifyNext=function(e,t,r,n,o){var i=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=i,this.source.subscribe(this)},p);function p(e,t,r){var n=l.call(this,e)||this;return n.notifier=t,n.source=r,n}},{"../OuterSubscriber":491,"../Subject":494,"../util/subscribeToResult":680}],593:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.sample=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){var r=new l(e),n=t.subscribe(r);return n.add(s.subscribeToResult(r,this.notifier)),n},a);function a(e){this.notifier=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype._next=function(e){this.value=e,this.hasValue=!0},f.prototype.notifyNext=function(e,t,r,n,o){this.emitValue()},f.prototype.notifyComplete=function(){this.emitValue()},f.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},f);function f(){var e=null!==c&&c.apply(this,arguments)||this;return e.hasValue=!1,e}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],594:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../scheduler/async");r.sampleTime=function(t,r){return void 0===r&&(r=s.async),function(e){return e.lift(new u(t,r))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.period,this.scheduler))},a);function a(e,t){this.period=e,this.scheduler=t}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},f.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},f);function f(e,t,r){var n=c.call(this,e)||this;return n.period=t,n.scheduler=r,n.hasValue=!1,n.add(r.schedule(p,t,{subscriber:n,period:t})),n}function p(e){var t=e.subscriber,r=e.period;t.notifyNext(),this.schedule(e,r)}},{"../Subscriber":496,"../scheduler/async":647}],595:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.scan=function(t,r){var n=!1;return 2<=arguments.length&&(n=!0),function(e){return e.lift(new s(t,r,n))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.accumulator,this.seed,this.hasSeed))},u);function u(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}var a,c=(a=i.Subscriber,o(l,a),Object.defineProperty(l.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),l.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},l.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},l);function l(e,t,r,n){var o=a.call(this,e)||this;return o.accumulator=t,o._seed=r,o.hasSeed=n,o.index=0,o}},{"../Subscriber":496}],596:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.sequenceEqual=function(t,r){return function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.compareTo,this.comparator))},u);function u(e,t){this.compareTo=e,this.comparator=t}r.SequenceEqualOperator=s;var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},l.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},l.prototype.checkValues=function(){for(var e=this._a,t=this._b,r=this.comparator;0<e.length&&0<t.length;){var n=e.shift(),o=t.shift(),i=!1;try{i=r?r(n,o):n===o}catch(e){this.destination.error(e)}i||this.emit(!1)}},l.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},l.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},l.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},l);function l(e,t,r){var n=a.call(this,e)||this;return n.compareTo=t,n.comparator=r,n._a=[],n._b=[],n._oneComplete=!1,n.destination.add(t.subscribe(new p(e,n))),n}r.SequenceEqualSubscriber=c;var f,p=(f=i.Subscriber,o(h,f),h.prototype._next=function(e){this.parent.nextB(e)},h.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},h.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},h);function h(e,t){var r=f.call(this,e)||this;return r.parent=t,r}},{"../Subscriber":496}],597:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./multicast"),o=e("./refCount"),i=e("../Subject");function s(){return new i.Subject}r.share=function(){return function(e){return o.refCount()(n.multicast(s)(e))}}},{"../Subject":494,"./multicast":576,"./refCount":588}],598:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var d=e("../ReplaySubject");r.shareReplay=function(e,t,r){var h;return h=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:r},function(e){return e.lift((o=(t=h).bufferSize,i=void 0===o?Number.POSITIVE_INFINITY:o,s=t.windowTime,u=void 0===s?Number.POSITIVE_INFINITY:s,a=t.refCount,c=t.scheduler,l=0,p=f=!1,function(e){l++,r&&!f||(f=!1,r=new d.ReplaySubject(i,u,c),n=e.subscribe({next:function(e){r.next(e)},error:function(e){f=!0,r.error(e)},complete:function(){p=!0,r.complete()}}));var t=r.subscribe(this);this.add(function(){l--,t.unsubscribe(),n&&!p&&a&&0===l&&(n.unsubscribe(),r=n=void 0)})}));var t,r,n,o,i,s,u,a,c,l,f,p}}},{"../ReplaySubject":492}],599:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../util/EmptyError");r.single=function(t){return function(e){return e.lift(new u(t,e))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate,this.source))},a);function a(e,t){this.predicate=e,this.source=t}var c,l=(c=i.Subscriber,o(f,c),f.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},f.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},f.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},f.prototype._complete=function(){var e=this.destination;0<this.index?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new s.EmptyError)},f);function f(e,t,r){var n=c.call(this,e)||this;return n.predicate=t,n.source=r,n.seenValue=!1,n.index=0,n}},{"../Subscriber":496,"../util/EmptyError":653}],600:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.skip=function(t){return function(e){return e.lift(new s(t))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.total))},u);function u(e){this.total=e}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},l);function l(e,t){var r=a.call(this,e)||this;return r.total=t,r.count=0,r}},{"../Subscriber":496}],601:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../util/ArgumentOutOfRangeError");r.skipLast=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new i.Subscriber(e)):t.subscribe(new l(e,this._skipCount))},a);function a(e){if(this._skipCount=e,this._skipCount<0)throw new s.ArgumentOutOfRangeError}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(e){var t=this._skipCount,r=this._count++;if(r<t)this._ring[r]=e;else{var n=r%t,o=this._ring,i=o[n];o[n]=e,this.destination.next(i)}},f);function f(e,t){var r=c.call(this,e)||this;return r._skipCount=t,r._count=0,r._ring=new Array(t),r}},{"../Subscriber":496,"../util/ArgumentOutOfRangeError":652}],602:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../InnerSubscriber"),u=e("../util/subscribeToResult");r.skipUntil=function(t){return function(e){return e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.notifier))},c);function c(e){this.notifier=e}var l,f=(l=i.OuterSubscriber,o(p,l),p.prototype._next=function(e){this.hasValue&&l.prototype._next.call(this,e)},p.prototype.notifyNext=function(e,t,r,n,o){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},p.prototype.notifyComplete=function(){},p);function p(e,t){var r=l.call(this,e)||this;r.hasValue=!1;var n=new s.InnerSubscriber(r,void 0,void 0);return r.add(n),r.innerSubscription=n,u.subscribeToResult(r,t,void 0,void 0,n),r}},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../util/subscribeToResult":680}],603:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.skipWhile=function(t){return function(e){return e.lift(new s(t))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate))},u);function u(e){this.predicate=e}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},l.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},l);function l(e,t){var r=a.call(this,e)||this;return r.predicate=t,r.skipping=!0,r.index=0,r}},{"../Subscriber":496}],604:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/concat"),o=e("../util/isScheduler");r.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return o.isScheduler(r)?(t.pop(),function(e){return n.concat(t,e,r)}):function(e){return n.concat(t,e)}}},{"../observable/concat":504,"../util/isScheduler":671}],605:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/SubscribeOnObservable");r.subscribeOn=function(t,r){return void 0===r&&(r=0),function(e){return e.lift(new o(t,r))}};var o=(i.prototype.call=function(e,t){return new n.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},i);function i(e,t){this.scheduler=e,this.delay=t}},{"../observable/SubscribeOnObservable":500}],606:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./switchMap"),o=e("../util/identity");r.switchAll=function(){return n.switchMap(o.identity)}},{"../util/identity":660,"./switchMap":607}],607:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../InnerSubscriber"),u=e("../util/subscribeToResult"),a=e("./map"),c=e("../observable/from");r.switchMap=function t(o,i){return"function"==typeof i?function(e){return e.pipe(t(function(r,n){return c.from(o(r,n)).pipe(a.map(function(e,t){return i(r,e,n,t)}))}))}:function(e){return e.lift(new l(o))}};var l=(f.prototype.call=function(e,t){return t.subscribe(new h(e,this.project))},f);function f(e){this.project=e}var p,h=(p=i.OuterSubscriber,o(d,p),d.prototype._next=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,r)},d.prototype._innerSub=function(e,t,r){var n=this.innerSubscription;n&&n.unsubscribe();var o=new s.InnerSubscriber(this,void 0,void 0);this.destination.add(o),this.innerSubscription=u.subscribeToResult(this,e,t,r,o)},d.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||p.prototype._complete.call(this),this.unsubscribe()},d.prototype._unsubscribe=function(){this.innerSubscription=null},d.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&p.prototype._complete.call(this)},d.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},d);function d(e,t){var r=p.call(this,e)||this;return r.project=t,r.index=0,r}},{"../InnerSubscriber":487,"../OuterSubscriber":491,"../observable/from":508,"../util/subscribeToResult":680,"./map":566}],608:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./switchMap");r.switchMapTo=function(e,t){return t?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}},{"./switchMap":607}],609:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../util/ArgumentOutOfRangeError"),u=e("../observable/empty");r.take=function(t){return function(e){return 0===t?u.empty():e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.total))},c);function c(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},p);function p(e,t){var r=l.call(this,e)||this;return r.total=t,r.count=0,r}},{"../Subscriber":496,"../observable/empty":506,"../util/ArgumentOutOfRangeError":652}],610:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../util/ArgumentOutOfRangeError"),u=e("../observable/empty");r.takeLast=function(t){return function(e){return 0===t?u.empty():e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.total))},c);function c(e){if(this.total=e,this.total<0)throw new s.ArgumentOutOfRangeError}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(e){var t=this.ring,r=this.total,n=this.count++;t.length<r?t.push(e):t[n%r]=e},p.prototype._complete=function(){var e=this.destination,t=this.count;if(0<t)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=t++%r;e.next(n[i])}e.complete()},p);function p(e,t){var r=l.call(this,e)||this;return r.total=t,r.ring=new Array,r.count=0,r}},{"../Subscriber":496,"../observable/empty":506,"../util/ArgumentOutOfRangeError":652}],611:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");r.takeUntil=function(t){return function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){var r=new l(e),n=s.subscribeToResult(r,this.notifier);return n&&!r.seenValue?(r.add(n),t.subscribe(r)):r},a);function a(e){this.notifier=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype.notifyNext=function(e,t,r,n,o){this.seenValue=!0,this.complete()},f.prototype.notifyComplete=function(){},f);function f(e){var t=c.call(this,e)||this;return t.seenValue=!1,t}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],612:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber");r.takeWhile=function(t,r){return void 0===r&&(r=!1),function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.predicate,this.inclusive))},u);function u(e,t){this.predicate=e,this.inclusive=t}var a,c=(a=i.Subscriber,o(l,a),l.prototype._next=function(e){var t,r=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void r.error(e)}this.nextOrComplete(e,t)},l.prototype.nextOrComplete=function(e,t){var r=this.destination;Boolean(t)?r.next(e):(this.inclusive&&r.next(e),r.complete())},l);function l(e,t,r){var n=a.call(this,e)||this;return n.predicate=t,n.inclusive=r,n.index=0,n}},{"../Subscriber":496}],613:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../util/noop"),u=e("../util/isFunction");r.tap=function(t,r,n){return function(e){return e.lift(new a(t,r,n))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.nextOrObserver,this.error,this.complete))},c);function c(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},p.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},p.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},p);function p(e,t,r,n){var o=l.call(this,e)||this;return o._tapNext=s.noop,o._tapError=s.noop,o._tapComplete=s.noop,o._tapError=r||s.noop,o._tapComplete=n||s.noop,u.isFunction(t)?(o._context=o)._tapNext=t:t&&(o._context=t,o._tapNext=t.next||s.noop,o._tapError=t.error||s.noop,o._tapComplete=t.complete||s.noop),o}},{"../Subscriber":496,"../util/isFunction":664,"../util/noop":672}],614:[function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0});var i=e("../OuterSubscriber"),s=e("../util/subscribeToResult");n.defaultThrottleConfig={leading:!0,trailing:!1},n.throttle=function(t,r){return void 0===r&&(r=n.defaultThrottleConfig),function(e){return e.lift(new u(t,r.leading,r.trailing))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.durationSelector,this.leading,this.trailing))},a);function a(e,t,r){this.durationSelector=e,this.leading=t,this.trailing=r}var c,l=(c=i.OuterSubscriber,r(f,c),f.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},f.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},f.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=s.subscribeToResult(this,t))},f.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},f.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=null,t&&this.send()},f.prototype.notifyNext=function(e,t,r,n,o){this.throttlingDone()},f.prototype.notifyComplete=function(){this.throttlingDone()},f);function f(e,t,r,n){var o=c.call(this,e)||this;return o.destination=e,o.durationSelector=t,o._leading=r,o._trailing=n,o._hasValue=!1,o}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],615:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),s=e("../scheduler/async"),u=e("./throttle");r.throttleTime=function(t,r,n){return void 0===r&&(r=s.async),void 0===n&&(n=u.defaultThrottleConfig),function(e){return e.lift(new a(t,r,n.leading,n.trailing))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.duration,this.scheduler,this.leading,this.trailing))},c);function c(e,t,r,n){this.duration=e,this.scheduler=t,this.leading=r,this.trailing=n}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(h,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},p.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},p.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},p);function p(e,t,r,n,o){var i=l.call(this,e)||this;return i.duration=t,i.scheduler=r,i.leading=n,i.trailing=o,i._hasTrailingValue=!1,i._trailingValue=null,i}function h(e){e.subscriber.clearThrottle()}},{"../Subscriber":496,"../scheduler/async":647,"./throttle":614}],616:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../util/EmptyError"),s=e("../Subscriber");r.throwIfEmpty=function(t){return void 0===t&&(t=p),function(e){return e.lift(new u(t))}};var u=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.errorFactory))},a);function a(e){this.errorFactory=e}var c,l=(c=s.Subscriber,o(f,c),f.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},f.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},f);function f(e,t){var r=c.call(this,e)||this;return r.errorFactory=t,r.hasValue=!1,r}function p(){return new i.EmptyError}},{"../Subscriber":496,"../util/EmptyError":653}],617:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../scheduler/async"),i=e("./scan"),s=e("../observable/defer"),u=e("./map");r.timeInterval=function(n){return void 0===n&&(n=o.async),function(e){return s.defer(function(){return e.pipe(i.scan(function(e,t){var r=e.current;return{value:t,current:n.now(),last:r}},{current:n.now(),value:void 0,last:void 0}),u.map(function(e){var t=e.current,r=e.last,n=e.value;return new a(n,t-r)}))})}};var a=function(e,t){this.value=e,this.interval=t};r.TimeInterval=a},{"../observable/defer":505,"../scheduler/async":647,"./map":566,"./scan":595}],618:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../scheduler/async"),o=e("../util/TimeoutError"),i=e("./timeoutWith"),s=e("../observable/throwError");r.timeout=function(e,t){return void 0===t&&(t=n.async),i.timeoutWith(e,s.throwError(new o.TimeoutError),t)}},{"../observable/throwError":523,"../scheduler/async":647,"../util/TimeoutError":656,"./timeoutWith":619}],619:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var s=e("../scheduler/async"),u=e("../util/isDate"),i=e("../OuterSubscriber"),a=e("../util/subscribeToResult");r.timeoutWith=function(n,o,i){return void 0===i&&(i=s.async),function(e){var t=u.isDate(n),r=t?n-i.now():Math.abs(n);return e.lift(new c(r,t,o,i))}};var c=(l.prototype.call=function(e,t){return t.subscribe(new p(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},l);function l(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=n}var f,p=(f=i.OuterSubscriber,o(h,f),h.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(a.subscribeToResult(e,t))},h.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(h.dispatchTimeout,this.waitFor,this))},h.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),f.prototype._next.call(this,e)},h.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},h);function h(e,t,r,n,o){var i=f.call(this,e)||this;return i.absoluteTimeout=t,i.waitFor=r,i.withObservable=n,i.scheduler=o,i.action=null,i.scheduleTimeout(),i}},{"../OuterSubscriber":491,"../scheduler/async":647,"../util/isDate":663,"../util/subscribeToResult":680}],620:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../scheduler/async"),o=e("./map");r.timestamp=function(t){return void 0===t&&(t=n.async),o.map(function(e){return new i(e,t.now())})};var i=function(e,t){this.value=e,this.timestamp=t};r.Timestamp=i},{"../scheduler/async":647,"./map":566}],621:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./reduce");function o(e,t,r){return 0===r?[t]:(e.push(t),e)}r.toArray=function(){return n.reduce(o,[])}},{"./reduce":587}],622:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subject"),s=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.window=function(t){return function(e){return e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){var r=new f(e),n=t.subscribe(r);return n.closed||r.add(u.subscribeToResult(r,this.windowBoundaries)),n},c);function c(e){this.windowBoundaries=e}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype.notifyNext=function(e,t,r,n,o){this.openWindow()},p.prototype.notifyError=function(e,t){this._error(e)},p.prototype.notifyComplete=function(e){this._complete()},p.prototype._next=function(e){this.window.next(e)},p.prototype._error=function(e){this.window.error(e),this.destination.error(e)},p.prototype._complete=function(){this.window.complete(),this.destination.complete()},p.prototype._unsubscribe=function(){this.window=null},p.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,r=this.window=new i.Subject;t.next(r)},p);function p(e){var t=l.call(this,e)||this;return t.window=new i.Subject,e.next(t.window),t}},{"../OuterSubscriber":491,"../Subject":494,"../util/subscribeToResult":680}],623:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subscriber"),c=e("../Subject");r.windowCount=function(t,r){return void 0===r&&(r=0),function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new l(e,this.windowSize,this.startWindowEvery))},u);function u(e,t){this.windowSize=e,this.startWindowEvery=t}var a,l=(a=i.Subscriber,o(f,a),f.prototype._next=function(e){for(var t=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,o=this.windows,i=o.length,s=0;s<i&&!this.closed;s++)o[s].next(e);var u=this.count-n+1;if(0<=u&&u%t==0&&!this.closed&&o.shift().complete(),++this.count%t==0&&!this.closed){var a=new c.Subject;o.push(a),r.next(a)}},f.prototype._error=function(e){var t=this.windows;if(t)for(;0<t.length&&!this.closed;)t.shift().error(e);this.destination.error(e)},f.prototype._complete=function(){var e=this.windows;if(e)for(;0<e.length&&!this.closed;)e.shift().complete();this.destination.complete()},f.prototype._unsubscribe=function(){this.count=0,this.windows=null},f);function f(e,t,r){var n=a.call(this,e)||this;return n.destination=e,n.windowSize=t,n.startWindowEvery=r,n.windows=[new c.Subject],n.count=0,e.next(n.windows[0]),n}},{"../Subject":494,"../Subscriber":496}],624:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subject"),s=e("../scheduler/async"),u=e("../Subscriber"),a=e("../util/isNumeric"),c=e("../util/isScheduler");r.windowTime=function(t){var r=s.async,n=null,o=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(r=arguments[3]),c.isScheduler(arguments[2])?r=arguments[2]:a.isNumeric(arguments[2])&&(o=arguments[2]),c.isScheduler(arguments[1])?r=arguments[1]:a.isNumeric(arguments[1])&&(n=arguments[1]),function(e){return e.lift(new l(t,n,o,r))}};var l=(f.prototype.call=function(e,t){return t.subscribe(new v(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},f);function f(e,t,r,n){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=n}var p,h=(p=i.Subject,o(d,p),d.prototype.next=function(e){this._numberOfNextedValues++,p.prototype.next.call(this,e)},Object.defineProperty(d.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),d);function d(){var e=null!==p&&p.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}var b,v=(b=u.Subscriber,o(y,b),y.prototype._next=function(e){for(var t=this.windows,r=t.length,n=0;n<r;n++){var o=t[n];o.closed||(o.next(e),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},y.prototype._error=function(e){for(var t=this.windows;0<t.length;)t.shift().error(e);this.destination.error(e)},y.prototype._complete=function(){for(var e=this.windows;0<e.length;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},y.prototype.openWindow=function(){var e=new h;return this.windows.push(e),this.destination.next(e),e},y.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},y);function y(e,t,r,n,o){var i=b.call(this,e)||this;i.destination=e,i.windowTimeSpan=t,i.windowCreationInterval=r,i.maxWindowSize=n,i.scheduler=o,i.windows=[];var s=i.openWindow();if(null!==r&&0<=r){var u={subscriber:i,window:s,context:null},a={windowTimeSpan:t,windowCreationInterval:r,subscriber:i,scheduler:o};i.add(o.schedule(g,t,u)),i.add(o.schedule(m,r,a))}else{var c={subscriber:i,window:s,windowTimeSpan:t};i.add(o.schedule(_,t,c))}return i}function _(e){var t=e.subscriber,r=e.windowTimeSpan,n=e.window;n&&t.closeWindow(n),e.window=t.openWindow(),this.schedule(e,r)}function m(e){var t=e.windowTimeSpan,r=e.subscriber,n=e.scheduler,o=e.windowCreationInterval,i=r.openWindow(),s={action:this,subscription:null},u={subscriber:r,window:i,context:s};s.subscription=n.schedule(g,t,u),this.add(s.subscription),this.schedule(e,o)}function g(e){var t=e.subscriber,r=e.window,n=e.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),t.closeWindow(r)}},{"../Subject":494,"../Subscriber":496,"../scheduler/async":647,"../util/isNumeric":667,"../util/isScheduler":671}],625:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var l=e("../Subject"),f=e("../Subscription"),i=e("../OuterSubscriber"),p=e("../util/subscribeToResult");r.windowToggle=function(t,r){return function(e){return e.lift(new s(t,r))}};var s=(u.prototype.call=function(e,t){return t.subscribe(new c(e,this.openings,this.closingSelector))},u);function u(e,t){this.openings=e,this.closingSelector=t}var a,c=(a=i.OuterSubscriber,o(h,a),h.prototype._next=function(e){var t=this.contexts;if(t)for(var r=t.length,n=0;n<r;n++)t[n].window.next(e)},h.prototype._error=function(e){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,n=-1;++n<r;){var o=t[n];o.window.error(e),o.subscription.unsubscribe()}a.prototype._error.call(this,e)},h.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,r=-1;++r<t;){var n=e[r];n.window.complete(),n.subscription.unsubscribe()}a.prototype._complete.call(this)},h.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,r=-1;++r<t;){var n=e[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},h.prototype.notifyNext=function(e,t,r,n,o){if(e===this.openings){var i=void 0;try{i=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var s=new l.Subject,u=new f.Subscription,a={window:s,subscription:u};this.contexts.push(a);var c=p.subscribeToResult(this,i,a);c.closed?this.closeWindow(this.contexts.length-1):(c.context=a,u.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(e))},h.prototype.notifyError=function(e){this.error(e)},h.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},h.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,r=t[e],n=r.window,o=r.subscription;t.splice(e,1),n.complete(),o.unsubscribe()}},h);function h(e,t,r){var n=a.call(this,e)||this;return n.openings=t,n.closingSelector=r,n.contexts=[],n.add(n.openSubscription=p.subscribeToResult(n,t,t)),n}},{"../OuterSubscriber":491,"../Subject":494,"../Subscription":497,"../util/subscribeToResult":680}],626:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Subject"),s=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.windowWhen=function(t){return function(e){return e.lift(new a(t))}};var a=(c.prototype.call=function(e,t){return t.subscribe(new f(e,this.closingSelector))},c);function c(e){this.closingSelector=e}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype.notifyNext=function(e,t,r,n,o){this.openWindow(o)},p.prototype.notifyError=function(e,t){this._error(e)},p.prototype.notifyComplete=function(e){this.openWindow(e)},p.prototype._next=function(e){this.window.next(e)},p.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},p.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},p.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},p.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var r,n=this.window=new i.Subject;this.destination.next(n);try{r=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=u.subscribeToResult(this,r))},p);function p(e,t){var r=l.call(this,e)||this;return r.destination=e,r.closingSelector=t,r.openWindow(),r}},{"../OuterSubscriber":491,"../Subject":494,"../util/subscribeToResult":680}],627:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=e("../OuterSubscriber"),u=e("../util/subscribeToResult");r.withLatestFrom=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e){var t;"function"==typeof n[n.length-1]&&(t=n.pop());var r=n;return e.lift(new s(r,t))}};var s=(a.prototype.call=function(e,t){return t.subscribe(new l(e,this.observables,this.project))},a);function a(e,t){this.observables=e,this.project=t}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype.notifyNext=function(e,t,r,n,o){this.values[r]=t;var i=this.toRespond;if(0<i.length){var s=i.indexOf(r);-1!==s&&i.splice(s,1)}},f.prototype.notifyComplete=function(){},f.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},f.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},f);function f(e,t,r){var n=c.call(this,e)||this;n.observables=t,n.project=r,n.toRespond=[];var o=t.length;n.values=new Array(o);for(var i=0;i<o;i++)n.toRespond.push(i);for(i=0;i<o;i++){var s=t[i];n.add(u.subscribeToResult(n,s,s,i))}return n}},{"../OuterSubscriber":491,"../util/subscribeToResult":680}],628:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/zip");r.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(n.zip.apply(void 0,[e].concat(t)))}}},{"../observable/zip":526}],629:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../observable/zip");r.zipAll=function(t){return function(e){return e.lift(new n.ZipOperator(t))}}},{"../observable/zip":526}],630:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../Subscription");r.scheduleArray=function(n,o){return new i.Observable(function(e){var t=new s.Subscription,r=0;return t.add(o.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||t.add(this.schedule())):e.complete()})),t})}},{"../Observable":489,"../Subscription":497}],631:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable"),i=e("../Subscription"),s=e("../symbol/iterator");r.scheduleIterable=function(t,r){if(!t)throw new Error("Iterable cannot be null");return new n.Observable(function(n){var o,e=new i.Subscription;return e.add(function(){o&&"function"==typeof o.return&&o.return()}),e.add(r.schedule(function(){o=t[s.iterator](),e.add(r.schedule(function(){if(!n.closed){var e,t;try{var r=o.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}}))})),e})}},{"../Observable":489,"../Subscription":497,"../symbol/iterator":649}],632:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../Observable"),s=e("../Subscription"),u=e("../symbol/observable");r.scheduleObservable=function(n,o){return new i.Observable(function(t){var r=new s.Subscription;return r.add(o.schedule(function(){var e=n[u.observable]();r.add(e.subscribe({next:function(e){r.add(o.schedule(function(){return t.next(e)}))},error:function(e){r.add(o.schedule(function(){return t.error(e)}))},complete:function(){r.add(o.schedule(function(){return t.complete()}))}}))})),r})}},{"../Observable":489,"../Subscription":497,"../symbol/observable":650}],633:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../Observable"),i=e("../Subscription");r.schedulePromise=function(e,n){return new o.Observable(function(t){var r=new i.Subscription;return r.add(n.schedule(function(){return e.then(function(e){r.add(n.schedule(function(){t.next(e),r.add(n.schedule(function(){return t.complete()}))}))},function(e){r.add(n.schedule(function(){return t.error(e)}))})})),r})}},{"../Observable":489,"../Subscription":497}],634:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./scheduleObservable"),o=e("./schedulePromise"),i=e("./scheduleArray"),s=e("./scheduleIterable"),u=e("../util/isInteropObservable"),a=e("../util/isPromise"),c=e("../util/isArrayLike"),l=e("../util/isIterable");r.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);if(a.isPromise(e))return o.schedulePromise(e,t);if(c.isArrayLike(e))return i.scheduleArray(e,t);if(l.isIterable(e)||"string"==typeof e)return s.scheduleIterable(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},{"../util/isArrayLike":662,"../util/isInteropObservable":665,"../util/isIterable":666,"../util/isPromise":670,"./scheduleArray":630,"./scheduleIterable":631,"./scheduleObservable":632,"./schedulePromise":633}],635:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("../Subscription"),u=(i=s.Subscription,o(a,i),a.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},a);function a(e,t){return i.call(this)||this}r.Action=u},{"../Subscription":497}],636:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncAction"),u=(i=s.AsyncAction,o(a,i),a.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&0<r?i.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},a.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&0<r||null===r&&0<this.delay)return i.prototype.recycleAsyncId.call(this,e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)},a);function a(e,t){var r=i.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.AnimationFrameAction=u},{"./AsyncAction":640}],637:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncScheduler"),u=(i=s.AsyncScheduler,o(a,i),a.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},a);function a(){return null!==i&&i.apply(this,arguments)||this}r.AnimationFrameScheduler=u},{"./AsyncScheduler":641}],638:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("../util/Immediate"),u=e("./AsyncAction"),a=(i=u.AsyncAction,o(c,i),c.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&0<r?i.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=s.Immediate.setImmediate(e.flush.bind(e,null))))},c.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&0<r||null===r&&0<this.delay)return i.prototype.recycleAsyncId.call(this,e,t,r);0===e.actions.length&&(s.Immediate.clearImmediate(t),e.scheduled=void 0)},c);function c(e,t){var r=i.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.AsapAction=a},{"../util/Immediate":654,"./AsyncAction":640}],639:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncScheduler"),u=(i=s.AsyncScheduler,o(a,i),a.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},a);function a(){return null!==i&&i.apply(this,arguments)||this}r.AsapScheduler=u},{"./AsyncScheduler":641}],640:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./Action"),u=(i=s.Action,o(a,i),a.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},a.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),setInterval(e.flush.bind(e,this),r)},a.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)},a.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},a.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},a.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},a);function a(e,t){var r=i.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}r.AsyncAction=u},{"./Action":635}],641:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("../Scheduler"),u=(i=s.Scheduler,o(a,i),a.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),a.delegate&&a.delegate!==this?a.delegate.schedule(e,t,r):i.prototype.schedule.call(this,e,t,r)},a.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},a);function a(e,t){void 0===t&&(t=s.Scheduler.now);var r=i.call(this,e,function(){return a.delegate&&a.delegate!==r?a.delegate.now():t()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}r.AsyncScheduler=u},{"../Scheduler":493}],642:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncAction"),u=(i=s.AsyncAction,o(a,i),a.prototype.schedule=function(e,t){return void 0===t&&(t=0),0<t?i.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},a.prototype.execute=function(e,t){return 0<t||this.closed?i.prototype.execute.call(this,e,t):this._execute(e,t)},a.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&0<r||null===r&&0<this.delay?i.prototype.requestAsyncId.call(this,e,t,r):e.flush(this)},a);function a(e,t){var r=i.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.QueueAction=u},{"./AsyncAction":640}],643:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncScheduler"),u=(i=s.AsyncScheduler,o(a,i),a);function a(){return null!==i&&i.apply(this,arguments)||this}r.QueueScheduler=u},{"./AsyncScheduler":641}],644:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=e("./AsyncAction"),u=e("./AsyncScheduler"),a=(i=u.AsyncScheduler,o(c,i),c.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},c.frameTimeFactor=10,c);function c(e,t){void 0===e&&(e=f),void 0===t&&(t=Number.POSITIVE_INFINITY);var r=i.call(this,e,function(){return r.frame})||this;return r.maxFrames=t,r.frame=0,r.index=-1,r}r.VirtualTimeScheduler=a;var l,f=(l=s.AsyncAction,o(p,l),p.prototype.schedule=function(e,t){if(void 0===t&&(t=0),!this.id)return l.prototype.schedule.call(this,e,t);this.active=!1;var r=new p(this.scheduler,this.work);return this.add(r),r.schedule(e,t)},p.prototype.requestAsyncId=function(e,t,r){void 0===r&&(r=0),this.delay=e.frame+r;var n=e.actions;return n.push(this),n.sort(p.sortActions),!0},p.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},p.prototype._execute=function(e,t){if(!0===this.active)return l.prototype._execute.call(this,e,t)},p.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},p);function p(e,t,r){void 0===r&&(r=e.index+=1);var n=l.call(this,e,t)||this;return n.scheduler=e,n.work=t,n.index=r,n.active=!0,n.index=e.index=r,n}r.VirtualAction=f},{"./AsyncAction":640,"./AsyncScheduler":641}],645:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./AnimationFrameAction"),o=e("./AnimationFrameScheduler");r.animationFrame=new o.AnimationFrameScheduler(n.AnimationFrameAction)},{"./AnimationFrameAction":636,"./AnimationFrameScheduler":637}],646:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./AsapAction"),o=e("./AsapScheduler");r.asap=new o.AsapScheduler(n.AsapAction)},{"./AsapAction":638,"./AsapScheduler":639}],647:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./AsyncAction"),o=e("./AsyncScheduler");r.async=new o.AsyncScheduler(n.AsyncAction)},{"./AsyncAction":640,"./AsyncScheduler":641}],648:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./QueueAction"),o=e("./QueueScheduler");r.queue=new o.QueueScheduler(n.QueueAction)},{"./QueueAction":642,"./QueueScheduler":643}],649:[function(e,t,r){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(r,"__esModule",{value:!0}),r.getSymbolIterator=n,r.iterator=n(),r.$$iterator=r.iterator},{}],650:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},{}],651:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),r.$$rxSubscriber=r.rxSubscriber},{}],652:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}r.ArgumentOutOfRangeError=n},{}],653:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}r.EmptyError=n},{}],654:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=1,o={};r.Immediate={setImmediate:function(e){var t=n++;return o[t]=e,Promise.resolve().then(function(){var e;(e=o[t])&&e()}),t},clearImmediate:function(e){delete o[e]}}},{}],655:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}r.ObjectUnsubscribedError=n},{}],656:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}r.TimeoutError=n},{}],657:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}r.UnsubscriptionError=n},{}],658:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../Subscriber");r.canReportError=function(e){for(;e;){var t=e.closed,r=e.destination,n=e.isStopped;if(t||n)return!1;e=r&&r instanceof o.Subscriber?r:null}return!0}},{"../Subscriber":496}],659:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hostReportError=function(e){setTimeout(function(){throw e},0)}},{}],660:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.identity=function(e){return e}},{}],661:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},{}],662:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},{}],663:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isDate=function(e){return e instanceof Date&&!isNaN(+e)}},{}],664:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=function(e){return"function"==typeof e}},{}],665:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../symbol/observable");r.isInteropObservable=function(e){return e&&"function"==typeof e[n.observable]}},{"../symbol/observable":650}],666:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../symbol/iterator");r.isIterable=function(e){return e&&"function"==typeof e[n.iterator]}},{"../symbol/iterator":649}],667:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./isArray");r.isNumeric=function(e){return!n.isArray(e)&&0<=e-parseFloat(e)+1}},{"./isArray":661}],668:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=function(e){return null!==e&&"object"==typeof e}},{}],669:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Observable");r.isObservable=function(e){return!!e&&(e instanceof n.Observable||"function"==typeof e.lift&&"function"==typeof e.subscribe)}},{"../Observable":489}],670:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},{}],671:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isScheduler=function(e){return e&&"function"==typeof e.schedule}},{}],672:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],673:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.not=function(e,t){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}},{}],674:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./noop");function o(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}:n.noop}r.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)},r.pipeFromArray=o},{"./noop":672}],675:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./subscribeToArray"),o=e("./subscribeToPromise"),i=e("./subscribeToIterable"),s=e("./subscribeToObservable"),u=e("./isArrayLike"),a=e("./isPromise"),c=e("./isObject"),l=e("../symbol/iterator"),f=e("../symbol/observable");r.subscribeTo=function(e){if(e&&"function"==typeof e[f.observable])return s.subscribeToObservable(e);if(u.isArrayLike(e))return n.subscribeToArray(e);if(a.isPromise(e))return o.subscribeToPromise(e);if(e&&"function"==typeof e[l.iterator])return i.subscribeToIterable(e);var t=c.isObject(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},{"../symbol/iterator":649,"../symbol/observable":650,"./isArrayLike":662,"./isObject":668,"./isPromise":670,"./subscribeToArray":676,"./subscribeToIterable":677,"./subscribeToObservable":678,"./subscribeToPromise":679}],676:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeToArray=function(n){return function(e){for(var t=0,r=n.length;t<r&&!e.closed;t++)e.next(n[t]);e.complete()}}},{}],677:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("../symbol/iterator");r.subscribeToIterable=function(n){return function(e){for(var t=n[o.iterator]();;){var r=t.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(function(){t.return&&t.return()}),e}}},{"../symbol/iterator":649}],678:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../symbol/observable");r.subscribeToObservable=function(r){return function(e){var t=r[n.observable]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}},{"../symbol/observable":650}],679:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./hostReportError");r.subscribeToPromise=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,n.hostReportError),t}}},{"./hostReportError":659}],680:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("../InnerSubscriber"),s=e("./subscribeTo"),u=e("../Observable");r.subscribeToResult=function(e,t,r,n,o){if(void 0===o&&(o=new i.InnerSubscriber(e,r,n)),!o.closed)return t instanceof u.Observable?t.subscribe(o):s.subscribeTo(t)(o)}},{"../InnerSubscriber":487,"../Observable":489,"./subscribeTo":675}],681:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../Subscriber"),o=e("../symbol/rxSubscriber"),i=e("../Observer");r.toSubscriber=function(e,t,r){if(e){if(e instanceof n.Subscriber)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||r?new n.Subscriber(e,t,r):new n.Subscriber(i.empty)}},{"../Observer":490,"../Subscriber":496,"../symbol/rxSubscriber":651}],682:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../internal/operators/audit");r.audit=n.audit;var o=e("../internal/operators/auditTime");r.auditTime=o.auditTime;var i=e("../internal/operators/buffer");r.buffer=i.buffer;var s=e("../internal/operators/bufferCount");r.bufferCount=s.bufferCount;var u=e("../internal/operators/bufferTime");r.bufferTime=u.bufferTime;var a=e("../internal/operators/bufferToggle");r.bufferToggle=a.bufferToggle;var c=e("../internal/operators/bufferWhen");r.bufferWhen=c.bufferWhen;var l=e("../internal/operators/catchError");r.catchError=l.catchError;var f=e("../internal/operators/combineAll");r.combineAll=f.combineAll;var p=e("../internal/operators/combineLatest");r.combineLatest=p.combineLatest;var h=e("../internal/operators/concat");r.concat=h.concat;var d=e("../internal/operators/concatAll");r.concatAll=d.concatAll;var b=e("../internal/operators/concatMap");r.concatMap=b.concatMap;var v=e("../internal/operators/concatMapTo");r.concatMapTo=v.concatMapTo;var y=e("../internal/operators/count");r.count=y.count;var _=e("../internal/operators/debounce");r.debounce=_.debounce;var m=e("../internal/operators/debounceTime");r.debounceTime=m.debounceTime;var g=e("../internal/operators/defaultIfEmpty");r.defaultIfEmpty=g.defaultIfEmpty;var w=e("../internal/operators/delay");r.delay=w.delay;var x=e("../internal/operators/delayWhen");r.delayWhen=x.delayWhen;var O=e("../internal/operators/dematerialize");r.dematerialize=O.dematerialize;var j=e("../internal/operators/distinct");r.distinct=j.distinct;var S=e("../internal/operators/distinctUntilChanged");r.distinctUntilChanged=S.distinctUntilChanged;var E=e("../internal/operators/distinctUntilKeyChanged");r.distinctUntilKeyChanged=E.distinctUntilKeyChanged;var k=e("../internal/operators/elementAt");r.elementAt=k.elementAt;var P=e("../internal/operators/endWith");r.endWith=P.endWith;var A=e("../internal/operators/every");r.every=A.every;var C=e("../internal/operators/exhaust");r.exhaust=C.exhaust;var R=e("../internal/operators/exhaustMap");r.exhaustMap=R.exhaustMap;var M=e("../internal/operators/expand");r.expand=M.expand;var I=e("../internal/operators/filter");r.filter=I.filter;var D=e("../internal/operators/finalize");r.finalize=D.finalize;var T=e("../internal/operators/find");r.find=T.find;var N=e("../internal/operators/findIndex");r.findIndex=N.findIndex;var B=e("../internal/operators/first");r.first=B.first;var L=e("../internal/operators/groupBy");r.groupBy=L.groupBy;var q=e("../internal/operators/ignoreElements");r.ignoreElements=q.ignoreElements;var $=e("../internal/operators/isEmpty");r.isEmpty=$.isEmpty;var F=e("../internal/operators/last");r.last=F.last;var U=e("../internal/operators/map");r.map=U.map;var V=e("../internal/operators/mapTo");r.mapTo=V.mapTo;var z=e("../internal/operators/materialize");r.materialize=z.materialize;var W=e("../internal/operators/max");r.max=W.max;var J=e("../internal/operators/merge");r.merge=J.merge;var H=e("../internal/operators/mergeAll");r.mergeAll=H.mergeAll;var Q=e("../internal/operators/mergeMap");r.mergeMap=Q.mergeMap;var K=e("../internal/operators/mergeMap");r.flatMap=K.mergeMap;var G=e("../internal/operators/mergeMapTo");r.mergeMapTo=G.mergeMapTo;var Y=e("../internal/operators/mergeScan");r.mergeScan=Y.mergeScan;var X=e("../internal/operators/min");r.min=X.min;var Z=e("../internal/operators/multicast");r.multicast=Z.multicast;var ee=e("../internal/operators/observeOn");r.observeOn=ee.observeOn;var te=e("../internal/operators/onErrorResumeNext");r.onErrorResumeNext=te.onErrorResumeNext;var re=e("../internal/operators/pairwise");r.pairwise=re.pairwise;var ne=e("../internal/operators/partition");r.partition=ne.partition;var oe=e("../internal/operators/pluck");r.pluck=oe.pluck;var ie=e("../internal/operators/publish");r.publish=ie.publish;var se=e("../internal/operators/publishBehavior");r.publishBehavior=se.publishBehavior;var ue=e("../internal/operators/publishLast");r.publishLast=ue.publishLast;var ae=e("../internal/operators/publishReplay");r.publishReplay=ae.publishReplay;var ce=e("../internal/operators/race");r.race=ce.race;var le=e("../internal/operators/reduce");r.reduce=le.reduce;var fe=e("../internal/operators/repeat");r.repeat=fe.repeat;var pe=e("../internal/operators/repeatWhen");r.repeatWhen=pe.repeatWhen;var he=e("../internal/operators/retry");r.retry=he.retry;var de=e("../internal/operators/retryWhen");r.retryWhen=de.retryWhen;var be=e("../internal/operators/refCount");r.refCount=be.refCount;var ve=e("../internal/operators/sample");r.sample=ve.sample;var ye=e("../internal/operators/sampleTime");r.sampleTime=ye.sampleTime;var _e=e("../internal/operators/scan");r.scan=_e.scan;var me=e("../internal/operators/sequenceEqual");r.sequenceEqual=me.sequenceEqual;var ge=e("../internal/operators/share");r.share=ge.share;var we=e("../internal/operators/shareReplay");r.shareReplay=we.shareReplay;var xe=e("../internal/operators/single");r.single=xe.single;var Oe=e("../internal/operators/skip");r.skip=Oe.skip;var je=e("../internal/operators/skipLast");r.skipLast=je.skipLast;var Se=e("../internal/operators/skipUntil");r.skipUntil=Se.skipUntil;var Ee=e("../internal/operators/skipWhile");r.skipWhile=Ee.skipWhile;var ke=e("../internal/operators/startWith");r.startWith=ke.startWith;var Pe=e("../internal/operators/subscribeOn");r.subscribeOn=Pe.subscribeOn;var Ae=e("../internal/operators/switchAll");r.switchAll=Ae.switchAll;var Ce=e("../internal/operators/switchMap");r.switchMap=Ce.switchMap;var Re=e("../internal/operators/switchMapTo");r.switchMapTo=Re.switchMapTo;var Me=e("../internal/operators/take");r.take=Me.take;var Ie=e("../internal/operators/takeLast");r.takeLast=Ie.takeLast;var De=e("../internal/operators/takeUntil");r.takeUntil=De.takeUntil;var Te=e("../internal/operators/takeWhile");r.takeWhile=Te.takeWhile;var Ne=e("../internal/operators/tap");r.tap=Ne.tap;var Be=e("../internal/operators/throttle");r.throttle=Be.throttle;var Le=e("../internal/operators/throttleTime");r.throttleTime=Le.throttleTime;var qe=e("../internal/operators/throwIfEmpty");r.throwIfEmpty=qe.throwIfEmpty;var $e=e("../internal/operators/timeInterval");r.timeInterval=$e.timeInterval;var Fe=e("../internal/operators/timeout");r.timeout=Fe.timeout;var Ue=e("../internal/operators/timeoutWith");r.timeoutWith=Ue.timeoutWith;var Ve=e("../internal/operators/timestamp");r.timestamp=Ve.timestamp;var ze=e("../internal/operators/toArray");r.toArray=ze.toArray;var We=e("../internal/operators/window");r.window=We.window;var Je=e("../internal/operators/windowCount");r.windowCount=Je.windowCount;var He=e("../internal/operators/windowTime");r.windowTime=He.windowTime;var Qe=e("../internal/operators/windowToggle");r.windowToggle=Qe.windowToggle;var Ke=e("../internal/operators/windowWhen");r.windowWhen=Ke.windowWhen;var Ge=e("../internal/operators/withLatestFrom");r.withLatestFrom=Ge.withLatestFrom;var Ye=e("../internal/operators/zip");r.zip=Ye.zip;var Xe=e("../internal/operators/zipAll");r.zipAll=Xe.zipAll},{"../internal/operators/audit":527,"../internal/operators/auditTime":528,"../internal/operators/buffer":529,"../internal/operators/bufferCount":530,"../internal/operators/bufferTime":531,"../internal/operators/bufferToggle":532,"../internal/operators/bufferWhen":533,"../internal/operators/catchError":534,"../internal/operators/combineAll":535,"../internal/operators/combineLatest":536,"../internal/operators/concat":537,"../internal/operators/concatAll":538,"../internal/operators/concatMap":539,"../internal/operators/concatMapTo":540,"../internal/operators/count":541,"../internal/operators/debounce":542,"../internal/operators/debounceTime":543,"../internal/operators/defaultIfEmpty":544,"../internal/operators/delay":545,"../internal/operators/delayWhen":546,"../internal/operators/dematerialize":547,"../internal/operators/distinct":548,"../internal/operators/distinctUntilChanged":549,"../internal/operators/distinctUntilKeyChanged":550,"../internal/operators/elementAt":551,"../internal/operators/endWith":552,"../internal/operators/every":553,"../internal/operators/exhaust":554,"../internal/operators/exhaustMap":555,"../internal/operators/expand":556,"../internal/operators/filter":557,"../internal/operators/finalize":558,"../internal/operators/find":559,"../internal/operators/findIndex":560,"../internal/operators/first":561,"../internal/operators/groupBy":562,"../internal/operators/ignoreElements":563,"../internal/operators/isEmpty":564,"../internal/operators/last":565,"../internal/operators/map":566,"../internal/operators/mapTo":567,"../internal/operators/materialize":568,"../internal/operators/max":569,"../internal/operators/merge":570,"../internal/operators/mergeAll":571,"../internal/operators/mergeMap":572,"../internal/operators/mergeMapTo":573,"../internal/operators/mergeScan":574,"../internal/operators/min":575,"../internal/operators/multicast":576,"../internal/operators/observeOn":577,"../internal/operators/onErrorResumeNext":578,"../internal/operators/pairwise":579,"../internal/operators/partition":580,"../internal/operators/pluck":581,"../internal/operators/publish":582,"../internal/operators/publishBehavior":583,"../internal/operators/publishLast":584,"../internal/operators/publishReplay":585,"../internal/operators/race":586,"../internal/operators/reduce":587,"../internal/operators/refCount":588,"../internal/operators/repeat":589,"../internal/operators/repeatWhen":590,"../internal/operators/retry":591,"../internal/operators/retryWhen":592,"../internal/operators/sample":593,"../internal/operators/sampleTime":594,"../internal/operators/scan":595,"../internal/operators/sequenceEqual":596,"../internal/operators/share":597,"../internal/operators/shareReplay":598,"../internal/operators/single":599,"../internal/operators/skip":600,"../internal/operators/skipLast":601,"../internal/operators/skipUntil":602,"../internal/operators/skipWhile":603,"../internal/operators/startWith":604,"../internal/operators/subscribeOn":605,"../internal/operators/switchAll":606,"../internal/operators/switchMap":607,"../internal/operators/switchMapTo":608,"../internal/operators/take":609,"../internal/operators/takeLast":610,"../internal/operators/takeUntil":611,"../internal/operators/takeWhile":612,"../internal/operators/tap":613,"../internal/operators/throttle":614,"../internal/operators/throttleTime":615,"../internal/operators/throwIfEmpty":616,"../internal/operators/timeInterval":617,"../internal/operators/timeout":618,"../internal/operators/timeoutWith":619,"../internal/operators/timestamp":620,"../internal/operators/toArray":621,"../internal/operators/window":622,"../internal/operators/windowCount":623,"../internal/operators/windowTime":624,"../internal/operators/windowToggle":625,"../internal/operators/windowWhen":626,"../internal/operators/withLatestFrom":627,"../internal/operators/zip":628,"../internal/operators/zipAll":629}],683:[function(e,r,n){!function(e){if("object"==typeof n)r.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;try{t=window}catch(e){t=self}t.SparkMD5=e()}}(function(c){"use strict";var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function l(e,t){var r=e[0],n=e[1],o=e[2],i=e[3];n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&o)+t[1]-389564586|0)<<12|i>>>20)+r|0)&r|~i&n)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&r)+t[3]-1044525330|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&o)+t[5]+1200080426|0)<<12|i>>>20)+r|0)&r|~i&n)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&r)+t[7]-45705983|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&o)+t[9]-1958414417|0)<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&r)+t[11]-1990404162|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&o|~n&i)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&o)+t[13]-40341101|0)<<12|i>>>20)+r|0)&r|~i&n)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&r)+t[15]+1236535329|0)<<22|n>>>10)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[1]-165796510|0)<<5|r>>>27)+n|0)&o|n&~o)+t[6]-1069501632|0)<<9|i>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|o>>>18)+i|0)&r|i&~r)+t[0]-373897302|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[5]-701558691|0)<<5|r>>>27)+n|0)&o|n&~o)+t[10]+38016083|0)<<9|i>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|o>>>18)+i|0)&r|i&~r)+t[4]-405537848|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[9]+568446438|0)<<5|r>>>27)+n|0)&o|n&~o)+t[14]-1019803690|0)<<9|i>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|o>>>18)+i|0)&r|i&~r)+t[8]+1163531501|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n&i|o&~i)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&o|n&~o)+t[2]-51403784|0)<<9|i>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&r|i&~r)+t[12]-1926607734|0)<<20|n>>>12)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^o)+t[8]-2022574463|0)<<11|i>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^r)+t[14]-35309556|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^o)+t[4]+1272893353|0)<<11|i>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^r)+t[10]-1094730640|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^o)+t[0]-358537222|0)<<11|i>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^r)+t[6]+76029189|0)<<23|n>>>9)+o|0,n=((n+=((o=((o+=((i=((i+=((r=((r+=(n^o^i)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^o)+t[12]-421815835|0)<<11|i>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^r)+t[2]-995338651|0)<<23|n>>>9)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+o|0,n=((n+=((i=((i+=(n^((r=((r+=(o^(n|~i))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+r|0)^((o=((o+=(r^(i|~n))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+o|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function f(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function p(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,r,n,o,i,s,u=e.length,a=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)l(a,f(e.substring(t-64,t)));for(r=(e=e.substring(t-64)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55<t)for(l(a,n),t=0;t<16;t+=1)n[t]=0;return o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(o[2],16),s=parseInt(o[1],16)||0,n[14]=i,n[15]=s,l(a,n),a}function r(e){var t,r="";for(t=0;t<4;t+=1)r+=n[e>>8*t+4&15]+n[e>>8*t&15];return r}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=r(e[t]);return e.join("")}function h(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}function i(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function a(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==s(o("hello"))&&function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(e,t){var r,n,o,i,s=this.byteLength,u=h(e,s),a=s;return t!==c&&(a=h(t,s)),a<u?new ArrayBuffer(0):(r=a-u,n=new ArrayBuffer(r),o=new Uint8Array(n),i=new Uint8Array(this,u,r),o.set(i),n)}),a.prototype.append=function(e){return this.appendBinary(i(e)),this},a.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,r=this._buff.length;for(t=64;t<=r;t+=64)l(this._hash,f(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},a.prototype.end=function(e){var t,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),r=s(this._hash),e&&(r=u(r)),this.reset(),r},a.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},a.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},a.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},a.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},a.prototype._finish=function(e,t){var r,n,o,i=t;if(e[i>>2]|=128<<(i%4<<3),55<i)for(l(this._hash,e),i=0;i<16;i+=1)e[i]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=n,e[15]=o,l(this._hash,e)},a.hash=function(e,t){return a.hashBinary(i(e),t)},a.hashBinary=function(e,t){var r=s(o(e));return t?u(r):r},(a.ArrayBuffer=function(){this.reset()}).prototype.append=function(e){var t,r,n,o,i,s=(r=this._buff.buffer,n=e,o=!0,(i=new Uint8Array(r.byteLength+n.byteLength)).set(new Uint8Array(r)),i.set(new Uint8Array(n),r.byteLength),o?i:i.buffer),u=s.length;for(this._length+=e.byteLength,t=64;t<=u;t+=64)l(this._hash,p(s.subarray(t-64,t)));return this._buff=t-64<u?new Uint8Array(s.buffer.slice(t-64)):new Uint8Array(0),this},a.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=n[t]<<(t%4<<3);return this._finish(i,o),r=s(this._hash),e&&(r=u(r)),this.reset(),r},a.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},a.ArrayBuffer.prototype.getState=function(){var e,t=a.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},a.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,o=new ArrayBuffer(n),i=new Uint8Array(o);for(r=0;r<n;r+=1)i[r]=e.charCodeAt(r);return t?i:o}(e.buff,!0),a.prototype.setState.call(this,e)},a.ArrayBuffer.prototype.destroy=a.prototype.destroy,a.ArrayBuffer.prototype._finish=a.prototype._finish,a.ArrayBuffer.hash=function(e,t){var r=s(function(e){var t,r,n,o,i,s,u=e.length,a=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)l(a,p(e.subarray(t-64,t)));for(r=(e=t-64<u?e.subarray(t-64):new Uint8Array(0)).length,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)n[t>>2]|=e[t]<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),55<t)for(l(a,n),t=0;t<16;t+=1)n[t]=0;return o=(o=8*u).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(o[2],16),s=parseInt(o[1],16)||0,n[14]=i,n[15]=s,l(a,n),a}(new Uint8Array(e)));return t?u(r):r},a})},{}],684:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={add:function(e){if(!("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope)){if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",function(){e()},!0),window.addEventListener("unload",function(){e()},!0)}}};r.default=n},{}],685:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.add=l,r.runAll=f,r.removeAll=p,r.getSize=h,r.default=void 0;var o=n(e("detect-node")),i=n(e("./browser.js")),s=n(e("./node.js")),u=o.default?s.default:i.default,a=new Set,c=!1;function l(e){if(c||(c=!0,u.add(f)),"function"!=typeof e)throw new Error("Listener is no function");return a.add(e),{remove:function(){return a.delete(e)},run:function(){return a.delete(e),e()}}}function f(){var t=[];return a.forEach(function(e){t.push(e()),a.delete(e)}),Promise.all(t)}function p(){a.clear()}function h(){return a.size}var d={add:l,runAll:f,removeAll:p,getSize:h};r.default=d},{"./browser.js":684,"./node.js":81,"@babel/runtime/helpers/interopRequireDefault":60,"detect-node":405}],686:[function(e,t,r){var n=e("./v1"),o=e("./v4"),i=o;i.v1=n,i.v4=o,t.exports=i},{"./v1":689,"./v4":690}],687:[function(e,t,r){for(var n=[],o=0;o<256;++o)n[o]=(o+256).toString(16).substr(1);t.exports=function(e,t){var r=t||0;return n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}},{}],688:[function(e,t,r){var n="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(n){var o=new Uint8Array(16);t.exports=function(){return n(o),o}}else{var i=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},{}],689:[function(e,t,r){var d,b,v=e("./lib/rng"),y=e("./lib/bytesToUuid"),_=0,m=0;t.exports=function(e,t,r){var n=t&&r||0,o=t||[],i=(e=e||{}).node||d,s=void 0!==e.clockseq?e.clockseq:b;if(null==i||null==s){var u=v();null==i&&(i=d=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=b=16383&(u[6]<<8|u[7]))}var a=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:m+1,l=a-_+(c-m)/1e4;if(l<0&&void 0===e.clockseq&&(s=s+1&16383),(l<0||_<a)&&void 0===e.nsecs&&(c=0),1e4<=c)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=a,b=s;var f=(1e4*(268435455&(a+=122192928e5))+(m=c))%4294967296;o[n++]=f>>>24&255,o[n++]=f>>>16&255,o[n++]=f>>>8&255,o[n++]=255&f;var p=a/4294967296*1e4&268435455;o[n++]=p>>>8&255,o[n++]=255&p,o[n++]=p>>>24&15|16,o[n++]=p>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var h=0;h<6;++h)o[n+h]=i[h];return t||y(o)}},{"./lib/bytesToUuid":687,"./lib/rng":688}],690:[function(e,t,r){var s=e("./lib/rng"),u=e("./lib/bytesToUuid");t.exports=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||s)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||u(o)}},{"./lib/bytesToUuid":687,"./lib/rng":688}],691:[function(e,t,r){"use strict";function h(e,t,r){var n=r[r.length-1];e===n.element&&(r.pop(),n=r[r.length-1]);var o=n.element,i=n.index;if(Array.isArray(o))o.push(e);else if(i===t.length-2){o[t.pop()]=e}else t.push(e)}r.stringify=function(e){var t=[];t.push({obj:e});for(var r,n,o,i,s,u,a,c,l,f,p="";r=t.pop();)if(n=r.obj,p+=r.prefix||"",o=r.val||"")p+=o;else if("object"!=typeof n)p+=void 0===n?null:JSON.stringify(n);else if(null===n)p+="null";else if(Array.isArray(n)){for(t.push({val:"]"}),i=n.length-1;0<=i;i--)s=0===i?"":",",t.push({obj:n[i],prefix:s});t.push({val:"["})}else{for(a in u=[],n)n.hasOwnProperty(a)&&u.push(a);for(t.push({val:"}"}),i=u.length-1;0<=i;i--)l=n[c=u[i]],f=0<i?",":"",f+=JSON.stringify(c)+":",t.push({obj:l,prefix:f});t.push({val:"{"})}return p},r.parse=function(e){for(var t,r,n,o,i,s,u,a,c,l=[],f=[],p=0;;)if("}"!==(t=e[p++])&&"]"!==t&&void 0!==t)switch(t){case" ":case"\t":case"\n":case":":case",":break;case"n":p+=3,h(null,l,f);break;case"t":p+=3,h(!0,l,f);break;case"f":p+=4,h(!1,l,f);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":for(r="",p--;;){if(n=e[p++],!/[\d\.\-e\+]/.test(n)){p--;break}r+=n}h(parseFloat(r),l,f);break;case'"':for(o="",i=void 0,s=0;'"'!==(u=e[p++])||"\\"===i&&s%2==1;)o+=u,"\\"===(i=u)?s++:s=0;h(JSON.parse('"'+o+'"'),l,f);break;case"[":a={element:[],index:l.length},l.push(a.element),f.push(a);break;case"{":c={element:{},index:l.length},l.push(c.element),f.push(c);break;default:throw new Error("unexpectedly reached end of input: "+t)}else{if(1===l.length)return l.pop();h(l.pop(),l,f)}}},{}],692:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)o.call(r,n)&&(e[n]=r[n])}return e};var o=Object.prototype.hasOwnProperty},{}]},{},[1]);