Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- function _0x2a35aa(_0x37f62f, _0xfbbb42, _0x5e16b4) {
- function _0x2f5546(_0x316e02, _0xdcfdc6) {
- if (!_0xfbbb42[_0x316e02]) {
- if (!_0x37f62f[_0x316e02]) {
- var _0x21388d = "function" == typeof require && require;
- if (!_0xdcfdc6 && _0x21388d) {
- return _0x21388d(_0x316e02, true);
- }
- if (_0x31a546) {
- return _0x31a546(_0x316e02, true);
- }
- var _0xf5f0e2 = new Error("Cannot find module '" + _0x316e02 + "'");
- _0xf5f0e2.code = "MODULE_NOT_FOUND";
- throw _0xf5f0e2;
- }
- var _0x43dd3a = _0xfbbb42[_0x316e02] = {
- 'exports': {}
- };
- _0x37f62f[_0x316e02][0x0].call(_0x43dd3a.exports, function(_0x3b2602) {
- var _0x549e79 = _0x37f62f[_0x316e02][0x1][_0x3b2602];
- return _0x2f5546(_0x549e79 || _0x3b2602);
- }, _0x43dd3a, _0x43dd3a.exports, _0x2a35aa, _0x37f62f, _0xfbbb42, _0x5e16b4);
- }
- return _0xfbbb42[_0x316e02].exports;
- }
- var _0x31a546 = "function" == typeof require && require;
- for (var _0x5bc11d = 0x0; _0x5bc11d < _0x5e16b4.length; _0x5bc11d++) {
- _0x2f5546(_0x5e16b4[_0x5bc11d]);
- }
- return _0x2f5546;
- }
- return _0x2a35aa;
- })()({
- 0x1: [function(_0x1027bc, _0x3f1f04, _0x123e71) {
- 'use strict';
- var _0x2b1674 = this && this.__awaiter || function(_0x435ad6, _0x3befca, _0xfc9e83, _0x50f523) {
- function _0x37f8f9(_0x42cad0) {
- return _0x42cad0 instanceof _0xfc9e83 ? _0x42cad0 : new _0xfc9e83(function(_0x56dbb4) {
- _0x56dbb4(_0x42cad0);
- });
- }
- return new (_0xfc9e83 || (_0xfc9e83 = Promise))(function(_0x217be9, _0x4357ea) {
- function _0x2b4164(_0x325555) {
- try {
- _0x3af31f(_0x50f523.next(_0x325555));
- } catch (_0x20a115) {
- _0x4357ea(_0x20a115);
- }
- }
- function _0x41cb2c(_0x5cd877) {
- try {
- _0x3af31f(_0x50f523["throw"](_0x5cd877));
- } catch (_0x260e3b) {
- _0x4357ea(_0x260e3b);
- }
- }
- function _0x3af31f(_0x571bb2) {
- if (_0x571bb2.done) {
- _0x217be9(_0x571bb2.value);
- } else {
- _0x37f8f9(_0x571bb2.value).then(_0x2b4164, _0x41cb2c);
- }
- }
- _0x3af31f((_0x50f523 = _0x50f523.apply(_0x435ad6, _0x3befca || [])).next());
- });
- };
- var _0x28d5a0 = this && this.__importDefault || function(_0x45315a) {
- return _0x45315a && _0x45315a.__esModule ? _0x45315a : {
- 'default': _0x45315a
- };
- };
- Object.defineProperty(_0x123e71, "__esModule", {
- 'value': true
- });
- const _0x512879 = _0x28d5a0(_0x1027bc("@sanity/client"));
- const _0x4feb1c = () => _0x2b1674(undefined, undefined, undefined, function*() {
- const _0x15caf4 = _0x512879["default"]({
- 'projectId': "v475t82f",
- 'dataset': "production"
- });
- return _0x15caf4.fetch("*[_type == \"release\"] | order(version desc)");
- });
- const _0x14f274 = _0x41df3f => {
- return '' + _0x41df3f.reduce((_0x1c465d, {
- version: _0x2d4cd1,
- title: _0x1e9fb7,
- fixed: _0x1795d2,
- new: _0x481680,
- breaking: _0x5d7944
- }) => _0x1c465d.concat("<section class=\"Release\">\n <header class=\"Release__Header\">\n <span class=\"Release__Number\">" + _0x2d4cd1 + "</span>\n <h2 class=\"Release__Title\">" + _0x1e9fb7 + "</h2>\n </header>\n <ul class=\"Release-List\">\n " + _0x1795d2.reduce((_0x359cce, _0x201944) => _0x201944.length > 0x0 ? _0x359cce.concat("<li data-type=\"fixed\">" + _0x201944 + '</li>') : '', '') + "\n " + _0x481680.reduce((_0x1ca8b0, _0x428228) => _0x428228.length > 0x0 ? _0x1ca8b0.concat("<li data-type=\"new\">" + _0x428228 + '</li>') : '', '') + "\n " + _0x5d7944.reduce((_0x5eddc2, _0xc2b483) => _0xc2b483.length > 0x0 ? _0x5eddc2.concat("<li data-type=\"breaking\">" + _0xc2b483 + "</li>") : '', '') + "\n </ul>\n </section>"), '');
- };
- _0x4feb1c().then(_0x45aa75 => {
- const _0x550059 = _0x45aa75.reduce((_0x60edff, _0x468d08) => _0x60edff.concat(Object.assign(Object.assign({}, _0x468d08), {
- 'fixed': _0x468d08.fixed ? _0x468d08.fixed.map(_0x495fb6 => _0x495fb6.children[0x0].text) : [],
- 'new': _0x468d08["new"] ? _0x468d08['new'].map(_0x5c8f2f => _0x5c8f2f.children[0x0].text) : [],
- 'breaking': _0x468d08.breaking ? _0x468d08.breaking.map(_0x5b50ed => _0x5b50ed.children[0x0].text) : []
- })), []);
- document.querySelector('.Container').innerHTML = _0x14f274(_0x550059);
- });
- }, {
- '@sanity/client': 0x12
- }],
- 0x2: [function(_0x42768b, _0x7bc6e0, _0x4b37e2) {
- (function(_0x32d947) {
- (function() {
- ;
- (function(_0x48b365, _0x30b1af) {
- if (typeof define === 'function' && define.amd) {
- define([], _0x30b1af);
- } else {
- if (typeof _0x7bc6e0 === "object" && _0x7bc6e0.exports) {
- _0x7bc6e0.exports = _0x30b1af();
- } else {
- if (_0x32d947.EventSource && !_0x32d947._eventSourceImportPrefix) {
- return;
- }
- var _0x1d9b5c = (_0x48b365._eventSourceImportPrefix || '') + 'EventSource';
- _0x48b365[_0x1d9b5c] = _0x30b1af();
- }
- }
- })(typeof self === "undefined" ? this : self, function() {
- var _0x4dcacf = function(_0x14b19f, _0x59b2ba) {
- if (!_0x14b19f || typeof _0x14b19f != "string") {
- throw new SyntaxError("Not enough arguments");
- }
- this.URL = _0x14b19f;
- this.setOptions(_0x59b2ba);
- var _0x368b48 = this;
- setTimeout(function() {
- _0x368b48.poll();
- }, 0x0);
- };
- _0x4dcacf.prototype = {
- 'CONNECTING': 0x0,
- 'OPEN': 0x1,
- 'CLOSED': 0x2,
- 'defaultOptions': {
- 'loggingEnabled': false,
- 'loggingPrefix': "eventsource",
- 'interval': 0x1f4,
- 'bufferSizeLimit': 262144,
- 'silentTimeout': 0x493e0,
- 'getArgs': {
- 'evs_buffer_size_limit': 262144
- },
- 'xhrHeaders': {
- 'Accept': 'text/event-stream',
- 'Cache-Control': "no-cache",
- 'X-Requested-With': "XMLHttpRequest"
- }
- },
- 'setOptions': function(_0x56c5fb) {
- var _0x418102 = this.defaultOptions;
- var _0x51ad7e;
- for (_0x51ad7e in _0x418102) {
- if (_0x418102.hasOwnProperty(_0x51ad7e)) {
- this[_0x51ad7e] = _0x418102[_0x51ad7e];
- }
- }
- for (_0x51ad7e in _0x56c5fb) {
- if (_0x51ad7e in _0x418102 && _0x56c5fb.hasOwnProperty(_0x51ad7e)) {
- this[_0x51ad7e] = _0x56c5fb[_0x51ad7e];
- }
- }
- if (this.getArgs && this.bufferSizeLimit) {
- this.getArgs.evs_buffer_size_limit = this.bufferSizeLimit;
- }
- if (typeof console === "undefined" || typeof console.log === "undefined") {
- this.loggingEnabled = false;
- }
- },
- 'log': function(_0x4b97ba) {
- if (this.loggingEnabled) {
- console.log('[' + this.loggingPrefix + ']:' + _0x4b97ba);
- }
- },
- 'poll': function() {
- try {
- if (this.readyState == this.CLOSED) {
- return;
- }
- this.cleanup();
- this.readyState = this.CONNECTING;
- this.cursor = 0x0;
- this.cache = '';
- this._xhr = new this.XHR(this);
- this.resetNoActivityTimer();
- } catch (_0x50a0be) {
- this.log("There were errors inside the pool try-catch");
- this.dispatchEvent("error", {
- 'type': "error",
- 'data': _0x50a0be.message
- });
- }
- },
- 'pollAgain': function(_0x22a56a) {
- var _0x54f54c = this;
- _0x54f54c.readyState = _0x54f54c.CONNECTING;
- _0x54f54c.dispatchEvent("error", {
- 'type': "error",
- 'data': "Reconnecting "
- });
- this._pollTimer = setTimeout(function() {
- _0x54f54c.poll();
- }, _0x22a56a || 0x0);
- },
- 'cleanup': function() {
- this.log("evs cleaning up");
- if (this._pollTimer) {
- clearInterval(this._pollTimer);
- this._pollTimer = null;
- }
- if (this._noActivityTimer) {
- clearInterval(this._noActivityTimer);
- this._noActivityTimer = null;
- }
- if (this._xhr) {
- this._xhr.abort();
- this._xhr = null;
- }
- },
- 'resetNoActivityTimer': function() {
- if (this.silentTimeout) {
- if (this._noActivityTimer) {
- clearInterval(this._noActivityTimer);
- }
- var _0x1e7786 = this;
- this._noActivityTimer = setTimeout(function() {
- _0x1e7786.log("Timeout! silentTImeout:" + _0x1e7786.silentTimeout);
- _0x1e7786.pollAgain();
- }, this.silentTimeout);
- }
- },
- 'close': function() {
- this.readyState = this.CLOSED;
- this.log("Closing connection. readyState: " + this.readyState);
- this.cleanup();
- },
- '_onxhrdata': function() {
- var _0x12ddfd = this._xhr;
- if (_0x12ddfd.isReady() && !_0x12ddfd.hasError()) {
- this.resetNoActivityTimer();
- if (this.readyState == this.CONNECTING) {
- this.readyState = this.OPEN;
- this.dispatchEvent("open", {
- 'type': "open"
- });
- }
- var _0x1d1dba = _0x12ddfd.getBuffer();
- if (_0x1d1dba.length > this.bufferSizeLimit) {
- this.log("buffer.length > this.bufferSizeLimit");
- this.pollAgain();
- }
- if (this.cursor == 0x0 && _0x1d1dba.length > 0x0) {
- if (_0x1d1dba.substring(0x0, 0x1) == "") {
- this.cursor = 0x1;
- }
- }
- var _0xb29dc4 = this.lastMessageIndex(_0x1d1dba);
- if (_0xb29dc4[0x0] >= this.cursor) {
- var _0x38a929 = _0xb29dc4[0x1];
- var _0x560b09 = _0x1d1dba.substring(this.cursor, _0x38a929);
- this.parseStream(_0x560b09);
- this.cursor = _0x38a929;
- }
- if (_0x12ddfd.isDone()) {
- this.log("request.isDone(). reopening the connection");
- this.pollAgain(this.interval);
- }
- } else if (this.readyState !== this.CLOSED) {
- this.log("this.readyState !== this.CLOSED");
- this.pollAgain(this.interval);
- }
- },
- 'parseStream': function(_0x2acbbe) {
- _0x2acbbe = this.cache + this.normalizeToLF(_0x2acbbe);
- var _0x271f9c = _0x2acbbe.split("\n\n");
- var _0x5795d5;
- var _0x26a585;
- var _0x274661;
- var _0x36091b;
- var _0x19ba99;
- var _0x58e3cd;
- for (_0x5795d5 = 0x0; _0x5795d5 < _0x271f9c.length - 0x1; _0x5795d5++) {
- _0x274661 = "message";
- _0x36091b = [];
- var _0x3c52f4 = _0x271f9c[_0x5795d5].split("\n");
- for (_0x26a585 = 0x0; _0x26a585 < _0x3c52f4.length; _0x26a585++) {
- _0x19ba99 = this.trimWhiteSpace(_0x3c52f4[_0x26a585]);
- if (_0x19ba99.indexOf("event") == 0x0) {
- _0x274661 = _0x19ba99.replace(/event:?\s*/, '');
- } else {
- if (_0x19ba99.indexOf("retry") == 0x0) {
- _0x58e3cd = parseInt(_0x19ba99.replace(/retry:?\s*/, ''), 0xa);
- if (!isNaN(_0x58e3cd)) {
- this.interval = _0x58e3cd;
- }
- } else {
- if (_0x19ba99.indexOf("data") == 0x0) {
- _0x36091b.push(_0x19ba99.replace(/data:?\s*/, ''));
- } else {
- if (_0x19ba99.indexOf('id:') == 0x0) {
- this.lastEventId = _0x19ba99.replace(/id:?\s*/, '');
- } else if (_0x19ba99.indexOf('id') == 0x0) {
- this.lastEventId = null;
- }
- }
- }
- }
- }
- if (_0x36091b.length && this.readyState != this.CLOSED) {
- var _0x395b95 = new _0x1559ef(_0x274661, _0x36091b.join("\n"), typeof window !== "undefined" && typeof window.location !== "undefined" ? window.location.origin : null, this.lastEventId);
- this.dispatchEvent(_0x274661, _0x395b95);
- }
- }
- this.cache = _0x271f9c[_0x271f9c.length - 0x1];
- },
- 'dispatchEvent': function(_0x56e00a, _0x2eb141) {
- var _0x4671ee = this['_' + _0x56e00a + "Handlers"];
- if (_0x4671ee) {
- for (var _0xf0e6fb = 0x0; _0xf0e6fb < _0x4671ee.length; _0xf0e6fb++) {
- _0x4671ee[_0xf0e6fb].call(this, _0x2eb141);
- }
- }
- if (this['on' + _0x56e00a]) {
- this['on' + _0x56e00a].call(this, _0x2eb141);
- }
- },
- 'addEventListener': function(_0x11453c, _0xa3e118) {
- if (!this['_' + _0x11453c + 'Handlers']) {
- this['_' + _0x11453c + 'Handlers'] = [];
- }
- this['_' + _0x11453c + 'Handlers'].push(_0xa3e118);
- },
- 'removeEventListener': function(_0x51b405, _0x33d1e9) {
- var _0x1ee492 = this['_' + _0x51b405 + 'Handlers'];
- if (!_0x1ee492) {
- return;
- }
- for (var _0x282298 = _0x1ee492.length - 0x1; _0x282298 >= 0x0; --_0x282298) {
- if (_0x1ee492[_0x282298] === _0x33d1e9) {
- _0x1ee492.splice(_0x282298, 0x1);
- break;
- }
- }
- },
- '_pollTimer': null,
- '_noactivityTimer': null,
- '_xhr': null,
- 'lastEventId': null,
- 'cache': '',
- 'cursor': 0x0,
- 'onerror': null,
- 'onmessage': null,
- 'onopen': null,
- 'readyState': 0x0,
- 'urlWithParams': function(_0x5449be, _0x51c1c0) {
- var _0x271247 = [];
- if (_0x51c1c0) {
- var _0x3c36e2;
- var _0x585a17;
- for (_0x3c36e2 in _0x51c1c0) {
- if (_0x51c1c0.hasOwnProperty(_0x3c36e2)) {
- _0x585a17 = encodeURIComponent(_0x3c36e2) + '=' + encodeURIComponent(_0x51c1c0[_0x3c36e2]);
- _0x271247.push(_0x585a17);
- }
- }
- }
- if (_0x271247.length > 0x0) {
- if (_0x5449be.indexOf('?') == -0x1) {
- return _0x5449be + '?' + _0x271247.join('&');
- }
- return _0x5449be + '&' + _0x271247.join('&');
- }
- return _0x5449be;
- },
- 'lastMessageIndex': function(_0x58046e) {
- var _0x123fd3 = _0x58046e.lastIndexOf("\n\n");
- var _0x45ab4f = _0x58046e.lastIndexOf("\r\r");
- var _0x57c06b = _0x58046e.lastIndexOf("\r\n\r\n");
- if (_0x57c06b > Math.max(_0x123fd3, _0x45ab4f)) {
- return [_0x57c06b, _0x57c06b + 0x4];
- }
- return [Math.max(_0x123fd3, _0x45ab4f), Math.max(_0x123fd3, _0x45ab4f) + 0x2];
- },
- 'trimWhiteSpace': function(_0xc5354c) {
- var _0xeb8fc4 = /^(\s|\u00A0)+|(\s|\u00A0)+$/g;
- return _0xc5354c.replace(_0xeb8fc4, '');
- },
- 'normalizeToLF': function(_0x2a9aea) {
- return _0x2a9aea.replace(/\r\n|\r/g, "\n");
- }
- };
- if (Boolean(typeof window !== "undefined" && window.XDomainRequest && window.XMLHttpRequest && new XMLHttpRequest().responseType === undefined)) {
- _0x4dcacf.isPolyfill = "IE_8-9";
- var _0x37ba33 = _0x4dcacf.prototype.defaultOptions;
- _0x37ba33.xhrHeaders = null;
- _0x37ba33.getArgs.evs_preamble = 2056;
- _0x4dcacf.prototype.XHR = function(_0x2a10c5) {
- var _0x18ffe6 = new XDomainRequest();
- this._request = _0x18ffe6;
- _0x18ffe6.onprogress = function() {
- _0x18ffe6._ready = true;
- _0x2a10c5._onxhrdata();
- };
- _0x18ffe6.onload = function() {
- this._loaded = true;
- _0x2a10c5._onxhrdata();
- };
- _0x18ffe6.onerror = function() {
- this._failed = true;
- _0x2a10c5.readyState = _0x2a10c5.CLOSED;
- _0x2a10c5.dispatchEvent("error", {
- 'type': "error",
- 'data': "XDomainRequest error"
- });
- };
- _0x18ffe6.ontimeout = function() {
- this._failed = true;
- _0x2a10c5.readyState = _0x2a10c5.CLOSED;
- _0x2a10c5.dispatchEvent("error", {
- 'type': "error",
- 'data': "XDomainRequest timed out"
- });
- };
- var _0x39d3f4 = {};
- if (_0x2a10c5.getArgs) {
- var _0x2669c0 = _0x2a10c5.getArgs;
- for (var _0x5409e1 in _0x2669c0) {
- if (_0x2669c0.hasOwnProperty(_0x5409e1)) {
- _0x39d3f4[_0x5409e1] = _0x2669c0[_0x5409e1];
- }
- }
- if (_0x2a10c5.lastEventId) {
- _0x39d3f4.evs_last_event_id = _0x2a10c5.lastEventId;
- }
- }
- _0x18ffe6.open("GET", _0x2a10c5.urlWithParams(_0x2a10c5.URL, _0x39d3f4));
- _0x18ffe6.send();
- };
- _0x4dcacf.prototype.XHR.prototype = {
- 'useXDomainRequest': true,
- '_request': null,
- '_ready': false,
- '_loaded': false,
- '_failed': false,
- 'isReady': function() {
- return this._request._ready;
- },
- 'isDone': function() {
- return this._request._loaded;
- },
- 'hasError': function() {
- return this._request._failed;
- },
- 'getBuffer': function() {
- var _0x44850d = '';
- try {
- _0x44850d = this._request.responseText || '';
- } catch (_0x5055d5) { }
- return _0x44850d;
- },
- 'abort': function() {
- if (this._request) {
- this._request.abort();
- }
- }
- };
- } else {
- _0x4dcacf.isPolyfill = "XHR";
- _0x4dcacf.prototype.XHR = function(_0x5ae478) {
- var _0x389259 = new XMLHttpRequest();
- this._request = _0x389259;
- _0x5ae478._xhr = this;
- _0x389259.onreadystatechange = function() {
- if (_0x389259.readyState > 0x1 && _0x5ae478.readyState != _0x5ae478.CLOSED) {
- if (_0x389259.status == 0xc8 || _0x389259.status >= 0x12c && _0x389259.status < 0x190) {
- _0x5ae478._onxhrdata();
- } else {
- _0x389259._failed = true;
- _0x5ae478.readyState = _0x5ae478.CLOSED;
- _0x5ae478.dispatchEvent("error", {
- 'type': "error",
- 'data': "The server responded with " + _0x389259.status
- });
- _0x5ae478.close();
- }
- }
- };
- _0x389259.onprogress = function() { };
- _0x389259.open("GET", _0x5ae478.urlWithParams(_0x5ae478.URL, _0x5ae478.getArgs), true);
- var _0x4746c4 = _0x5ae478.xhrHeaders;
- for (var _0x4456b0 in _0x4746c4) {
- if (_0x4746c4.hasOwnProperty(_0x4456b0)) {
- _0x389259.setRequestHeader(_0x4456b0, _0x4746c4[_0x4456b0]);
- }
- }
- if (_0x5ae478.lastEventId) {
- _0x389259.setRequestHeader('Last-Event-Id', _0x5ae478.lastEventId);
- }
- _0x389259.send();
- };
- _0x4dcacf.prototype.XHR.prototype = {
- 'useXDomainRequest': false,
- '_request': null,
- '_failed': false,
- 'isReady': function() {
- return this._request.readyState >= 0x2;
- },
- 'isDone': function() {
- return this._request.readyState == 0x4;
- },
- 'hasError': function() {
- return this._failed || this._request.status >= 0x190;
- },
- 'getBuffer': function() {
- var _0x260a6c = '';
- try {
- _0x260a6c = this._request.responseText || '';
- } catch (_0x411bd6) { }
- return _0x260a6c;
- },
- 'abort': function() {
- if (this._request) {
- this._request.abort();
- }
- }
- };
- }
- function _0x1559ef(_0x520090, _0x4d6f83, _0x6377c4, _0x1ad292) {
- this.bubbles = false;
- this.cancelBubble = false;
- this.cancelable = false;
- this.data = _0x4d6f83 || null;
- this.origin = _0x6377c4 || '';
- this.lastEventId = _0x1ad292 || '';
- this.type = _0x520090 || 'message';
- }
- return _0x4dcacf;
- });
- }).call(this);
- }).call(this, typeof global !== "undefined" ? global : typeof self !== 'undefined' ? self : typeof window !== "undefined" ? window : {});
- }, {}],
- 0x3: [function(_0x1bf5b6, _0x330687, _0x2fed8a) {
- 'use strict';
- function _0x1d8c0c() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- function _0x1de71b(_0x12fcfe, _0x26df3e) {
- if (!_0x12fcfe) {
- return;
- }
- if (typeof _0x12fcfe === "string") {
- return _0x24a273(_0x12fcfe, _0x26df3e);
- }
- var _0x40543e = Object.prototype.toString.call(_0x12fcfe).slice(0x8, -0x1);
- if (_0x40543e === "Object" && _0x12fcfe.constructor) {
- _0x40543e = _0x12fcfe.constructor.name;
- }
- if (_0x40543e === "Map" || _0x40543e === 'Set') {
- return Array.from(_0x12fcfe);
- }
- if (_0x40543e === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_0x40543e)) {
- return _0x24a273(_0x12fcfe, _0x26df3e);
- }
- }
- function _0x24a273(_0x2750ff, _0x1ebdd7) {
- if (_0x1ebdd7 == null || _0x1ebdd7 > _0x2750ff.length) {
- _0x1ebdd7 = _0x2750ff.length;
- }
- var _0x585854 = 0x0;
- for (var _0x4a7276 = new Array(_0x1ebdd7); _0x585854 < _0x1ebdd7; _0x585854++) {
- _0x4a7276[_0x585854] = _0x2750ff[_0x585854];
- }
- return _0x4a7276;
- }
- function _0xd9a444(_0x18fa2a, _0x5795b6) {
- if (typeof Symbol === 'undefined' || !(Symbol.iterator in Object(_0x18fa2a))) {
- return;
- }
- var _0x240171 = [];
- var _0x29e206 = true;
- var _0x37c41d = false;
- var _0x10b679 = undefined;
- try {
- var _0x18134f = _0x18fa2a[Symbol.iterator]();
- for (var _0x38011d; !(_0x29e206 = (_0x38011d = _0x18134f.next()).done); _0x29e206 = true) {
- _0x240171.push(_0x38011d.value);
- if (_0x5795b6 && _0x240171.length === _0x5795b6) {
- break;
- }
- }
- } catch (_0x2eefdf) {
- _0x37c41d = true;
- _0x10b679 = _0x2eefdf;
- } finally {
- try {
- if (!_0x29e206 && _0x18134f['return'] != null) {
- _0x18134f['return']();
- }
- } finally {
- if (_0x37c41d) {
- throw _0x10b679;
- }
- }
- }
- return _0x240171;
- }
- function _0x5eb6d9(_0x515295) {
- if (Array.isArray(_0x515295)) {
- return _0x515295;
- }
- }
- var _0x4bbf91 = _0x1bf5b6("object-assign");
- var _0x448618 = _0x1bf5b6("@sanity/observable/operators/map");
- var _0x2ff012 = _0x448618.map;
- var _0x1f7786 = _0x1bf5b6("@sanity/observable/operators/filter");
- var _0x18abd8 = _0x1f7786.filter;
- var _0x3adae8 = _0x1bf5b6("../http/queryString");
- var _0x21706e = _0x1bf5b6("../validators");
- function _0x3904b2(_0x1abd1c) {
- this.client = _0x1abd1c;
- }
- function _0x3d5936(_0x1cf0ae) {
- var _0x157c7e = _0x1cf0ae.document;
- Object.defineProperty(_0x157c7e, "document", {
- 'enumerable': false,
- 'get': function _0x317fec() {
- console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document");
- return _0x157c7e;
- }
- });
- return _0x157c7e;
- }
- function _0x4333ae(_0x2ff9c6, _0x3012c4) {
- if (typeof window === "undefined" || !(_0x3012c4 instanceof window.File)) {
- return _0x2ff9c6;
- }
- return _0x4bbf91({
- 'filename': _0x2ff9c6.preserveFilename === false ? undefined : _0x3012c4.name,
- 'contentType': _0x3012c4.type
- }, _0x2ff9c6);
- }
- _0x4bbf91(_0x3904b2.prototype, {
- 'upload': function _0x15c65c(_0x226bc5, _0x2259e6) {
- var _0x34df27 = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- _0x21706e.validateAssetType(_0x226bc5);
- var _0xf0b3dd = _0x34df27.extract || undefined;
- if (_0xf0b3dd && !_0xf0b3dd.length) {
- _0xf0b3dd = ["none"];
- }
- var _0x222ef2 = _0x21706e.hasDataset(this.client.clientConfig);
- var _0x41884f = _0x226bc5 === 'image' ? "images" : "files";
- var _0x2fcd9c = _0x4333ae(_0x34df27, _0x2259e6);
- var _0x3fe9f8 = _0x2fcd9c.label;
- var _0xfd0457 = _0x2fcd9c.title;
- var _0x28a110 = _0x2fcd9c.description;
- var _0x41e69f = _0x2fcd9c.creditLine;
- var _0x17d940 = _0x2fcd9c.filename;
- var _0x1ce047 = _0x2fcd9c.source;
- var _0x89f35 = {
- 'label': _0x3fe9f8,
- 'title': _0xfd0457,
- 'description': _0x28a110,
- 'filename': _0x17d940,
- 'meta': _0xf0b3dd,
- 'creditLine': _0x41e69f
- };
- if (_0x1ce047) {
- _0x89f35.sourceId = _0x1ce047.id;
- _0x89f35.sourceName = _0x1ce047.name;
- _0x89f35.sourceUrl = _0x1ce047.url;
- }
- var _0x361eaa = this.client._requestObservable({
- 'method': "POST",
- 'timeout': _0x2fcd9c.timeout || 0x0,
- 'uri': "/assets/".concat(_0x41884f, '/').concat(_0x222ef2),
- 'headers': _0x2fcd9c.contentType ? {
- 'Content-Type': _0x2fcd9c.contentType
- } : {},
- 'query': _0x89f35,
- 'body': _0x2259e6
- });
- return this.client.isPromiseAPI() ? _0x361eaa.pipe(_0x18abd8(function(_0x230b09) {
- return _0x230b09.type === "response";
- }), _0x2ff012(function(_0x453f24) {
- return _0x3d5936(_0x453f24.body);
- })).toPromise() : _0x361eaa;
- },
- 'delete': function _0x12629c(_0x234c73, _0x4792e0) {
- console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");
- var _0x193f80 = _0x4792e0 || '';
- if (!/^(image|file)-/.test(_0x193f80)) {
- _0x193f80 = ''.concat(_0x234c73, '-').concat(_0x193f80);
- } else if (_0x234c73._id) {
- _0x193f80 = _0x234c73._id;
- }
- _0x21706e.hasDataset(this.client.clientConfig);
- return this.client["delete"](_0x193f80);
- },
- 'getImageUrl': function _0x25bb85(_0x7d2c1a, _0x7404e2) {
- var _0x4b819a = _0x7d2c1a._ref || _0x7d2c1a;
- if (typeof _0x4b819a !== "string") {
- throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");
- }
- if (!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(_0x4b819a)) {
- throw new Error("Unsupported asset ID \"".concat(_0x4b819a, "\". URL generation only works for auto-generated IDs."));
- }
- var _0x57bc9c = _0x4b819a.split('-');
- var _0x59050a = _0x5eb6d9(_0x57bc9c) || _0xd9a444(_0x57bc9c, 0x4) || _0x1de71b(_0x57bc9c, 0x4) || _0x1d8c0c();
- var _0x34e861 = _0x59050a[0x1];
- var _0x443be5 = _0x59050a[0x2];
- var _0x1abb8c = _0x59050a[0x3];
- _0x21706e.hasDataset(this.client.clientConfig);
- var _0x5501c1 = this.client.clientConfig;
- var _0x381379 = _0x5501c1.projectId;
- var _0x391b8e = _0x5501c1.dataset;
- var _0x535676 = _0x7404e2 ? _0x3adae8(_0x7404e2) : '';
- return 'https://cdn.sanity.io/images/'.concat(_0x381379, '/').concat(_0x391b8e, '/').concat(_0x34e861, '-').concat(_0x443be5, '.').concat(_0x1abb8c).concat(_0x535676);
- }
- });
- _0x330687.exports = _0x3904b2;
- }, {
- '../http/queryString': 0xe,
- '../validators': 0x18,
- '@sanity/observable/operators/filter': 0x1d,
- '@sanity/observable/operators/map': 0x1e,
- 'object-assign': 0x34
- }],
- 0x4: [function(_0x418ec2, _0x3d204e, _0x32b058) {
- 'use strict';
- var _0x5c3d8e = _0x418ec2("object-assign");
- function _0xe4cade(_0x4db5f1) {
- this.client = _0x4db5f1;
- }
- _0x5c3d8e(_0xe4cade.prototype, {
- 'getLoginProviders': function _0x502246() {
- return this.client.request({
- 'uri': "/auth/providers"
- });
- },
- 'logout': function _0x51b529() {
- return this.client.request({
- 'uri': "/auth/logout",
- 'method': "POST"
- });
- }
- });
- _0x3d204e.exports = _0xe4cade;
- }, {
- 'object-assign': 0x34
- }],
- 0x5: [function(_0x2c985f, _0x3569c3, _0x3eab4c) {
- 'use strict';
- var _0x109899 = _0x2c985f("@sanity/generate-help-url");
- var _0x36e305 = _0x2c985f('object-assign');
- var _0x4441b2 = _0x2c985f("./validators");
- var _0x163d77 = _0x2c985f('./util/once');
- var _0x513d2e = {
- 'apiHost': "https://api.sanity.io",
- 'useProjectHostname': true,
- 'gradientMode': false,
- 'isPromiseAPI': true
- };
- var _0x4a3d71 = ["localhost", "127.0.0.1", '0.0.0.0'];
- var _0xd90fdd = function _0x58e44f(_0x204f4d) {
- return _0x163d77(function() {
- return console.warn(_0x204f4d.join(" "));
- });
- };
- var _0x221534 = _0xd90fdd(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and", "cheaper. Think about it! For more info, see ".concat(_0x109899('js-client-cdn-configuration'), '.'), "To hide this warning, please set the `useCdn` option to either `true` or `false` when creating", "the client."]);
- var _0x650a20 = _0xd90fdd(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.", "See ".concat(_0x109899("js-client-browser-token"), " for more information and how to hide this warning.")]);
- var _0x232173 = _0xd90fdd(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you", "want. The CDN cannot be used with an authorization token, since private data cannot be cached.", "See ".concat(_0x109899('js-client-usecdn-token'), " for more information.")]);
- _0x3eab4c.defaultConfig = _0x513d2e;
- _0x3eab4c.initConfig = function(_0xa5867, _0x2d62f9) {
- var _0x537314 = _0x36e305({}, _0x513d2e, _0x2d62f9, _0xa5867);
- var _0x5daa22 = _0x537314.gradientMode;
- var _0x7bdcf2 = !_0x5daa22 && _0x537314.useProjectHostname;
- if (typeof Promise === 'undefined') {
- var _0x253d25 = _0x109899("js-client-promise-polyfill");
- throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(_0x253d25));
- }
- if (_0x5daa22 && !_0x537314.namespace) {
- throw new Error("Configuration must contain `namespace` when running in gradient mode");
- }
- if (_0x7bdcf2 && !_0x537314.projectId) {
- throw new Error("Configuration must contain `projectId`");
- }
- var _0x4d50b5 = typeof window !== 'undefined' && window.location && window.location.hostname;
- var _0x51a588 = _0x4d50b5 && _0x4a3d71.indexOf(window.location.hostname) !== -0x1;
- if (_0x4d50b5 && _0x51a588 && _0x537314.token && _0x537314.ignoreBrowserTokenWarning !== true) {
- _0x650a20();
- } else {
- if ((!_0x4d50b5 || _0x51a588) && _0x537314.useCdn && _0x537314.token) {
- _0x232173();
- } else if (typeof _0x537314.useCdn === 'undefined') {
- _0x221534();
- }
- }
- if (_0x7bdcf2) {
- _0x4441b2.projectId(_0x537314.projectId);
- }
- if (!_0x5daa22 && _0x537314.dataset) {
- _0x4441b2.dataset(_0x537314.dataset, _0x537314.gradientMode);
- }
- _0x537314.isDefaultApi = _0x537314.apiHost === "https://api.sanity.io";
- _0x537314.useCdn = Boolean(_0x537314.useCdn) && !_0x537314.token && !_0x537314.withCredentials;
- if (_0x537314.gradientMode) {
- _0x537314.url = _0x537314.apiHost;
- _0x537314.cdnUrl = _0x537314.apiHost;
- } else {
- var _0x100f19 = _0x537314.apiHost.split('://', 0x2);
- var _0x5501d8 = _0x100f19[0x0];
- var _0xd54400 = _0x100f19[0x1];
- var _0x4b9584 = _0x537314.isDefaultApi ? "apicdn.sanity.io" : _0xd54400;
- if (_0x537314.useProjectHostname) {
- _0x537314.url = ''.concat(_0x5501d8, '://').concat(_0x537314.projectId, '.').concat(_0xd54400, "/v1");
- _0x537314.cdnUrl = ''.concat(_0x5501d8, '://').concat(_0x537314.projectId, '.').concat(_0x4b9584, "/v1");
- } else {
- _0x537314.url = ''.concat(_0x537314.apiHost, "/v1");
- _0x537314.cdnUrl = _0x537314.url;
- }
- }
- return _0x537314;
- };
- }, {
- './util/once': 0x16,
- './validators': 0x18,
- '@sanity/generate-help-url': 0x1a,
- 'object-assign': 0x34
- }],
- 0x6: [function(_0x129113, _0x4aaa25, _0x3b3316) {
- 'use strict';
- function _0x18aef7(_0x18a185, _0x1a47dc, _0x1303b2) {
- if (_0x1a47dc in _0x18a185) {
- Object.defineProperty(_0x18a185, _0x1a47dc, {
- 'value': _0x1303b2,
- 'enumerable': true,
- 'configurable': true,
- 'writable': true
- });
- } else {
- _0x18a185[_0x1a47dc] = _0x1303b2;
- }
- return _0x18a185;
- }
- var _0x2e9062 = _0x129113("object-assign");
- var _0x25aa9d = _0x129113('@sanity/observable/operators/filter');
- var _0x311569 = _0x25aa9d.filter;
- var _0x21d610 = _0x129113('@sanity/observable/operators/map');
- var _0x25682b = _0x21d610.map;
- var _0x2ba172 = _0x129113("../validators");
- var _0x392545 = _0x129113("../util/getSelection");
- var _0x3154ca = _0x129113("./encodeQueryString");
- var _0x4dfacc = _0x129113("./transaction");
- var _0x5d7b85 = _0x129113("./patch");
- var _0x1562da = _0x129113("./listen");
- var _0x58fe56 = function _0x3a5ba9(_0x15bf48, _0x5176f9) {
- var _0x119089 = typeof _0x15bf48 === 'undefined' ? _0x5176f9 : _0x15bf48;
- return _0x15bf48 === false ? undefined : _0x119089;
- };
- var _0x369de2 = function _0x13b4ef() {
- var _0x2b8f55 = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : {};
- return {
- 'returnIds': true,
- 'returnDocuments': _0x58fe56(_0x2b8f55.returnDocuments, true),
- 'visibility': _0x2b8f55.visibility || 'sync'
- };
- };
- var _0x411091 = function _0x4e5d87(_0x22da03) {
- return _0x22da03.type === "response";
- };
- var _0x4179ba = function _0xebe020(_0x5cebc1) {
- return _0x5cebc1.body;
- };
- var _0x5b325c = function _0x2d5050(_0x44f6dd, _0x4e7bfb) {
- return _0x44f6dd.reduce(function(_0x51aeda, _0x385260) {
- _0x51aeda[_0x4e7bfb(_0x385260)] = _0x385260;
- return _0x51aeda;
- }, Object.create(null));
- };
- _0x4aaa25.exports = {
- 'listen': _0x1562da,
- 'getDataUrl': function _0x25d9b7(_0x22c8a4, _0x56adea) {
- var _0x5c8b25 = this.clientConfig;
- var _0x242142 = _0x5c8b25.gradientMode ? _0x5c8b25.namespace : _0x2ba172.hasDataset(_0x5c8b25);
- var _0x5a168f = '/'.concat(_0x22c8a4, '/').concat(_0x242142);
- var _0x564a10 = _0x56adea ? ''.concat(_0x5a168f, '/').concat(_0x56adea) : _0x5a168f;
- return (this.clientConfig.gradientMode ? _0x564a10 : "/data".concat(_0x564a10)).replace(/\/($|\?)/, '$1');
- },
- 'fetch': function _0x324715(_0x1c5ed8, _0x1393a2) {
- var _0x278c5d = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- var _0x81b417 = _0x278c5d.filterResponse === false ? function(_0xd8804f) {
- return _0xd8804f;
- } : function(_0x29ddc3) {
- return _0x29ddc3.result;
- };
- var _0x5bd8c7 = this._dataRequest("query", {
- 'query': _0x1c5ed8,
- 'params': _0x1393a2
- }, _0x278c5d).pipe(_0x25682b(_0x81b417));
- return this.isPromiseAPI() ? _0x5bd8c7.toPromise() : _0x5bd8c7;
- },
- 'getDocument': function _0x2cf53c(_0x56940e) {
- var _0x2b8892 = {
- 'uri': this.getDataUrl('doc', _0x56940e),
- 'json': true
- };
- var _0x4db6c1 = this._requestObservable(_0x2b8892).pipe(_0x311569(_0x411091), _0x25682b(function(_0x3abe04) {
- return _0x3abe04.body.documents && _0x3abe04.body.documents[0x0];
- }));
- return this.isPromiseAPI() ? _0x4db6c1.toPromise() : _0x4db6c1;
- },
- 'getDocuments': function _0x40168c(_0x568896) {
- var _0x1735af = {
- 'uri': this.getDataUrl("doc", _0x568896.join(',')),
- 'json': true
- };
- var _0x509c5c = this._requestObservable(_0x1735af).pipe(_0x311569(_0x411091), _0x25682b(function(_0x35e72e) {
- var _0xffe7c3 = _0x5b325c(_0x35e72e.body.documents || [], function(_0x296921) {
- return _0x296921._id;
- });
- return _0x568896.map(function(_0x2c7ba7) {
- return _0xffe7c3[_0x2c7ba7] || null;
- });
- }));
- return this.isPromiseAPI() ? _0x509c5c.toPromise() : _0x509c5c;
- },
- 'create': function _0x5de91b(_0x26f55f, _0x4d8188) {
- return this._create(_0x26f55f, 'create', _0x4d8188);
- },
- 'createIfNotExists': function _0x26c201(_0x4b865f, _0x3c72c2) {
- _0x2ba172.requireDocumentId('createIfNotExists', _0x4b865f);
- return this._create(_0x4b865f, "createIfNotExists", _0x3c72c2);
- },
- 'createOrReplace': function _0x2876ef(_0x1f441f, _0x51a230) {
- _0x2ba172.requireDocumentId('createOrReplace', _0x1f441f);
- return this._create(_0x1f441f, 'createOrReplace', _0x51a230);
- },
- 'patch': function _0x2101ed(_0x3144fb, _0x44e37f) {
- return new _0x5d7b85(_0x3144fb, _0x44e37f, this);
- },
- 'delete': function _0x459a6b(_0x3a4c0f, _0x1f9bd9) {
- return this.dataRequest("mutate", {
- 'mutations': [{
- 'delete': _0x392545(_0x3a4c0f)
- }]
- }, _0x1f9bd9);
- },
- 'mutate': function _0x5bbc87(_0x207dd2, _0x5659d1) {
- var _0x5b7df3 = _0x207dd2 instanceof _0x5d7b85 || _0x207dd2 instanceof _0x4dfacc ? _0x207dd2.serialize() : _0x207dd2;
- var _0x1cedb7 = Array.isArray(_0x5b7df3) ? _0x5b7df3 : [_0x5b7df3];
- var _0x295d02 = _0x5659d1 && _0x5659d1.transactionId;
- return this.dataRequest("mutate", {
- 'mutations': _0x1cedb7,
- 'transactionId': _0x295d02
- }, _0x5659d1);
- },
- 'transaction': function _0x57e211(_0x120fc9) {
- return new _0x4dfacc(_0x120fc9, this);
- },
- 'dataRequest': function _0x18785a(_0x5a0d20, _0x19b3d7) {
- var _0x43be2e = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- var _0x3af188 = this._dataRequest(_0x5a0d20, _0x19b3d7, _0x43be2e);
- return this.isPromiseAPI() ? _0x3af188.toPromise() : _0x3af188;
- },
- '_dataRequest': function _0x2819fc(_0x32335e, _0x2898af) {
- var _0x2afe4e = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- var _0x3c1abe = _0x32335e === "mutate";
- var _0x487c1e = !_0x3c1abe && _0x3154ca(_0x2898af);
- var _0x2cdda2 = !_0x3c1abe && _0x487c1e.length < 0x2c00;
- var _0x949bc3 = _0x2cdda2 ? _0x487c1e : '';
- var _0x2d24a4 = _0x2afe4e.returnFirst;
- var _0x22ad64 = _0x2afe4e.timeout;
- var _0x106636 = _0x2afe4e.token;
- var _0x22f8da = this.getDataUrl(_0x32335e, _0x949bc3);
- var _0x46afe9 = {
- 'method': _0x2cdda2 ? "GET" : "POST",
- 'uri': _0x22f8da,
- 'json': true,
- 'body': _0x2cdda2 ? undefined : _0x2898af,
- 'query': _0x3c1abe && _0x369de2(_0x2afe4e),
- 'timeout': _0x22ad64,
- 'token': _0x106636
- };
- return this._requestObservable(_0x46afe9).pipe(_0x311569(_0x411091), _0x25682b(_0x4179ba), _0x25682b(function(_0x388098) {
- if (!_0x3c1abe) {
- return _0x388098;
- }
- var _0x4177fe = _0x388098.results || [];
- if (_0x2afe4e.returnDocuments) {
- return _0x2d24a4 ? _0x4177fe[0x0] && _0x4177fe[0x0].document : _0x4177fe.map(function(_0x16df08) {
- return _0x16df08.document;
- });
- }
- var _0x390f23 = _0x2d24a4 ? "documentId" : 'documentIds';
- var _0x5c7d2e = _0x2d24a4 ? _0x4177fe[0x0] && _0x4177fe[0x0].id : _0x4177fe.map(function(_0x62a850) {
- return _0x62a850.id;
- });
- return _0x18aef7({
- 'transactionId': _0x388098.transactionId,
- 'results': _0x4177fe
- }, _0x390f23, _0x5c7d2e);
- }));
- },
- '_create': function _0x23dbed(_0x1ec1ed, _0x3eb953) {
- var _0x22fcf6 = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- var _0xd986be = _0x18aef7({}, _0x3eb953, _0x1ec1ed);
- var _0x577fa2 = _0x2e9062({
- 'returnFirst': true,
- 'returnDocuments': true
- }, _0x22fcf6);
- return this.dataRequest("mutate", {
- 'mutations': [_0xd986be]
- }, _0x577fa2);
- }
- };
- }, {
- '../util/getSelection': 0x15,
- '../validators': 0x18,
- './encodeQueryString': 0x7,
- './listen': 0x8,
- './patch': 0x9,
- './transaction': 0xa,
- '@sanity/observable/operators/filter': 0x1d,
- '@sanity/observable/operators/map': 0x1e,
- 'object-assign': 0x34
- }],
- 0x7: [function(_0x175f45, _0x55ee3e, _0x332158) {
- 'use strict';
- _0x55ee3e.exports = function(_0xb417e1) {
- var _0x3cb1c3 = _0xb417e1.query;
- var _0x31acdd = _0xb417e1.params;
- var _0x5ab5df = _0x31acdd === undefined ? {} : _0x31acdd;
- var _0xbe1feb = _0xb417e1.options;
- var _0x25dc05 = _0xbe1feb === undefined ? {} : _0xbe1feb;
- var _0x3b1567 = '?query='.concat(encodeURIComponent(_0x3cb1c3));
- var _0x36f9c5 = Object.keys(_0x5ab5df).reduce(function(_0x3892e3, _0x1a7758) {
- return ''.concat(_0x3892e3, '&').concat(encodeURIComponent('$'.concat(_0x1a7758)), '=').concat(encodeURIComponent(JSON.stringify(_0x5ab5df[_0x1a7758])));
- }, _0x3b1567);
- return Object.keys(_0x25dc05).reduce(function(_0x374280, _0x19d84b) {
- return _0x25dc05[_0x19d84b] ? ''.concat(_0x374280, '&').concat(encodeURIComponent(_0x19d84b), '=').concat(encodeURIComponent(_0x25dc05[_0x19d84b])) : _0x374280;
- }, _0x36f9c5);
- };
- }, {}],
- 0x8: [function(_0x3bd1b8, _0x344e01, _0x2815c0) {
- 'use strict';
- var _0x992f76 = _0x3bd1b8('object-assign');
- var _0x4d8571 = _0x3bd1b8("@sanity/observable/minimal");
- var _0x416a9f = _0x3bd1b8('@sanity/eventsource');
- var _0x437a38 = _0x3bd1b8("../util/pick");
- var _0x604311 = _0x3bd1b8('../util/defaults');
- var _0x2fcb80 = _0x3bd1b8("./encodeQueryString");
- var _0x48e139 = _0x3bd1b8("@sanity/generate-help-url");
- var _0x332f75 = _0x3bd1b8("../util/once");
- var _0x1631bd = ["Using token with listeners is not supported in browsers. ", "For more info, see ".concat(_0x48e139('js-client-listener-tokens-browser'), '.')];
- var _0xa3e35f = _0x332f75(function() {
- return console.warn(_0x1631bd.join(" "));
- });
- var _0x552995 = Boolean(typeof window !== "undefined" && window.EventSource);
- var _0x9b264e = _0x552995 ? window.EventSource : _0x416a9f;
- var _0xdc0e81 = ["includePreviousRevision", "includeResult", "visibility", "effectFormat"];
- var _0x490e8d = {
- 'includeResult': true
- };
- _0x344e01.exports = function _0x31eaf1(_0x92f308, _0x5a5cf0) {
- var _0x9b9844 = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : {};
- var _0x2f923c = _0x604311(_0x9b9844, _0x490e8d);
- var _0x421125 = _0x437a38(_0x2f923c, _0xdc0e81);
- var _0x385d3f = _0x2fcb80({
- 'query': _0x92f308,
- 'params': _0x5a5cf0,
- 'options': _0x421125
- });
- var _0x3b5688 = this.clientConfig;
- var _0x1646c1 = _0x3b5688.url;
- var _0x529fea = _0x3b5688.token;
- var _0x2c0f69 = _0x3b5688.withCredentials;
- var _0xf1425 = ''.concat(_0x1646c1).concat(this.getDataUrl("listen", _0x385d3f));
- var _0x2bf1ab = _0x2f923c.events ? _0x2f923c.events : ['mutation'];
- var _0x4235cf = _0x2bf1ab.indexOf('reconnect') !== -0x1;
- if (_0x529fea && _0x552995) {
- _0xa3e35f();
- }
- var _0x289c68 = {};
- if (_0x529fea || _0x2c0f69) {
- _0x289c68.withCredentials = true;
- }
- if (_0x529fea) {
- _0x289c68.headers = {
- 'Authorization': "Bearer ".concat(_0x529fea)
- };
- }
- return new _0x4d8571(function(_0x48461a) {
- var _0x18fcca = _0x414a85();
- var _0x238506;
- var _0x201b11 = false;
- function _0x139d92() {
- if (_0x201b11) {
- return;
- }
- _0x664fb();
- if (_0x201b11) {
- return;
- }
- if (_0x18fcca.readyState === _0x9b264e.CLOSED) {
- _0x3cf6bb();
- clearTimeout(_0x238506);
- _0x238506 = setTimeout(_0x16875f, 0x64);
- }
- }
- function _0xd5fc70(_0x15464e) {
- _0x48461a.error(_0x183f5c(_0x15464e));
- }
- function _0x1c5347(_0x13afc6) {
- var _0x464d59 = _0x38404b(_0x13afc6);
- return _0x464d59 instanceof Error ? _0x48461a.error(_0x464d59) : _0x48461a.next(_0x464d59);
- }
- function _0x1ec4b5(_0x4321df) {
- _0x201b11 = true;
- _0x3cf6bb();
- _0x48461a.complete();
- }
- function _0x3cf6bb() {
- _0x18fcca.removeEventListener("error", _0x139d92, false);
- _0x18fcca.removeEventListener('channelError', _0xd5fc70, false);
- _0x18fcca.removeEventListener("disconnect", _0x1ec4b5, false);
- _0x2bf1ab.forEach(function(_0x452da6) {
- return _0x18fcca.removeEventListener(_0x452da6, _0x1c5347, false);
- });
- _0x18fcca.close();
- }
- function _0x664fb() {
- if (_0x4235cf) {
- _0x48461a.next({
- 'type': "reconnect"
- });
- }
- }
- function _0x414a85() {
- var _0x3c52d0 = new _0x9b264e(_0xf1425, _0x289c68);
- _0x3c52d0.addEventListener("error", _0x139d92, false);
- _0x3c52d0.addEventListener('channelError', _0xd5fc70, false);
- _0x3c52d0.addEventListener("disconnect", _0x1ec4b5, false);
- _0x2bf1ab.forEach(function(_0x12e4b1) {
- return _0x3c52d0.addEventListener(_0x12e4b1, _0x1c5347, false);
- });
- return _0x3c52d0;
- }
- function _0x16875f() {
- _0x18fcca = _0x414a85();
- }
- function _0x352439() {
- _0x201b11 = true;
- _0x3cf6bb();
- }
- return _0x352439;
- });
- };
- function _0x38404b(_0x1a1c7a) {
- try {
- var _0xa234c7 = _0x1a1c7a.data && JSON.parse(_0x1a1c7a.data) || {};
- return _0x992f76({
- 'type': _0x1a1c7a.type
- }, _0xa234c7);
- } catch (_0x4fc89d) {
- return _0x4fc89d;
- }
- }
- function _0x183f5c(_0x2e9118) {
- if (_0x2e9118 instanceof Error) {
- return _0x2e9118;
- }
- var _0x125327 = _0x38404b(_0x2e9118);
- return _0x125327 instanceof Error ? _0x125327 : new Error(_0x372880(_0x125327));
- }
- function _0x372880(_0x15b0de) {
- if (!_0x15b0de.error) {
- return _0x15b0de.message || "Unknown listener error";
- }
- if (_0x15b0de.error.description) {
- return _0x15b0de.error.description;
- }
- return typeof _0x15b0de.error === 'string' ? _0x15b0de.error : JSON.stringify(_0x15b0de.error, null, 0x2);
- }
- }, {
- '../util/defaults': 0x14,
- '../util/once': 0x16,
- '../util/pick': 0x17,
- './encodeQueryString': 0x7,
- '@sanity/eventsource': 0x19,
- '@sanity/generate-help-url': 0x1a,
- '@sanity/observable/minimal': 0x1c,
- 'object-assign': 0x34
- }],
- 0x9: [function(_0x21cfd4, _0x2c251a, _0x432867) {
- 'use strict';
- function _0x34b15e(_0xfd09ef, _0x862fe4, _0x411726) {
- if (_0x862fe4 in _0xfd09ef) {
- Object.defineProperty(_0xfd09ef, _0x862fe4, {
- 'value': _0x411726,
- 'enumerable': true,
- 'configurable': true,
- 'writable': true
- });
- } else {
- _0xfd09ef[_0x862fe4] = _0x411726;
- }
- return _0xfd09ef;
- }
- var _0x92887e = _0x21cfd4("deep-assign");
- var _0x549aa6 = _0x21cfd4("object-assign");
- var _0x3ffd83 = _0x21cfd4("../util/getSelection");
- var _0x30886f = _0x21cfd4("../validators");
- var _0x4dc964 = _0x30886f.validateObject;
- var _0x3b6b23 = _0x30886f.validateInsert;
- function _0x170b50(_0x56b714) {
- var _0x5a87bb = arguments.length > 0x1 && arguments[0x1] !== undefined ? arguments[0x1] : {};
- var _0x5dba4b = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : null;
- this.selection = _0x56b714;
- this.operations = _0x549aa6({}, _0x5a87bb);
- this.client = _0x5dba4b;
- }
- _0x549aa6(_0x170b50.prototype, {
- 'clone': function _0x2c806d() {
- return new _0x170b50(this.selection, _0x549aa6({}, this.operations), this.client);
- },
- 'merge': function _0x573134(_0x6909fc) {
- _0x4dc964("merge", _0x6909fc);
- var _0x9ad78f = new Error().stack.toString().split("\n").filter(function(_0x590043) {
- return _0x590043.trim();
- }).slice(0x2);
- console.warn("The \"merge\" patch has been deprecated and will be removed in the future\n".concat(_0x9ad78f.join("\n")));
- return this._assign("merge", _0x92887e(this.operations.merge || {}, _0x6909fc));
- },
- 'set': function _0x17da02(_0x2a7369) {
- return this._assign("set", _0x2a7369);
- },
- 'diffMatchPatch': function _0xf11cab(_0x37b4ea) {
- _0x4dc964("diffMatchPatch", _0x37b4ea);
- return this._assign("diffMatchPatch", _0x37b4ea);
- },
- 'unset': function _0x40b14d(_0xf2e3d7) {
- if (!Array.isArray(_0xf2e3d7)) {
- throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");
- }
- this.operations = _0x549aa6({}, this.operations, {
- 'unset': _0xf2e3d7
- });
- return this;
- },
- 'setIfMissing': function _0x3bf812(_0x1f53ad) {
- return this._assign("setIfMissing", _0x1f53ad);
- },
- 'replace': function _0x15b3cc(_0x3c3e12) {
- _0x4dc964("replace", _0x3c3e12);
- return this._set('set', {
- '$': _0x3c3e12
- });
- },
- 'inc': function _0x1f7b6e(_0x8017e0) {
- return this._assign("inc", _0x8017e0);
- },
- 'dec': function _0x5d07f2(_0x486da0) {
- return this._assign('dec', _0x486da0);
- },
- 'insert': function _0x5e25b8(_0xd9411d, _0x5436a1, _0x555d77) {
- var _0x6dc2c2;
- _0x3b6b23(_0xd9411d, _0x5436a1, _0x555d77);
- _0x6dc2c2 = {};
- _0x34b15e(_0x6dc2c2, _0xd9411d, _0x5436a1);
- _0x34b15e(_0x6dc2c2, "items", _0x555d77);
- return this._assign("insert", _0x6dc2c2);
- },
- 'append': function _0x2d18be(_0x290a71, _0xb87800) {
- return this.insert("after", ''.concat(_0x290a71, "[-1]"), _0xb87800);
- },
- 'prepend': function _0x13cf3b(_0x34f4b0, _0x374a1d) {
- return this.insert("before", ''.concat(_0x34f4b0, "[0]"), _0x374a1d);
- },
- 'splice': function _0x14a23c(_0x8913a, _0x52023a, _0x4f9cd1, _0x4ee1c0) {
- var _0x5b3515 = typeof _0x4f9cd1 === "undefined" || _0x4f9cd1 === -0x1;
- var _0x171339 = _0x52023a < 0x0 ? _0x52023a - 0x1 : _0x52023a;
- var _0x1c162c = _0x5b3515 ? -0x1 : Math.max(0x0, _0x52023a + _0x4f9cd1);
- var _0x2a014a = _0x171339 < 0x0 && _0x1c162c >= 0x0 ? '' : _0x1c162c;
- var _0x1bf744 = ''.concat(_0x8913a, '[').concat(_0x171339, ':').concat(_0x2a014a, ']');
- return this.insert("replace", _0x1bf744, _0x4ee1c0 || []);
- },
- 'ifRevisionId': function _0x4ab03f(_0x8ea71f) {
- this.operations.ifRevisionID = _0x8ea71f;
- return this;
- },
- 'serialize': function _0x1f8b41() {
- return _0x549aa6(_0x3ffd83(this.selection), this.operations);
- },
- 'toJSON': function _0x3514b2() {
- return this.serialize();
- },
- 'commit': function _0x1224bd() {
- var _0x2b7446 = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : {};
- if (!this.client) {
- throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");
- }
- var _0x14b8bb = typeof this.selection === 'string';
- var _0x100570 = _0x549aa6({
- 'returnFirst': _0x14b8bb,
- 'returnDocuments': true
- }, _0x2b7446);
- return this.client.mutate({
- 'patch': this.serialize()
- }, _0x100570);
- },
- 'reset': function _0x2e8e42() {
- this.operations = {};
- return this;
- },
- '_set': function _0x2f679f(_0x530a70, _0xceb012) {
- return this._assign(_0x530a70, _0xceb012, false);
- },
- '_assign': function _0x3c7015(_0x50f4ac, _0x5c141b) {
- var _0x3a1237 = arguments.length > 0x2 && arguments[0x2] !== undefined ? arguments[0x2] : true;
- _0x4dc964(_0x50f4ac, _0x5c141b);
- this.operations = _0x549aa6({}, this.operations, _0x34b15e({}, _0x50f4ac, _0x549aa6({}, _0x3a1237 && this.operations[_0x50f4ac] || {}, _0x5c141b)));
- return this;
- }
- });
- _0x2c251a.exports = _0x170b50;
- }, {
- '../util/getSelection': 0x15,
- '../validators': 0x18,
- 'deep-assign': 0x20,
- 'object-assign': 0x34
- }],
- 0xa: [function(_0x4e75cc, _0x133f51, _0x13749a) {
- 'use strict';
- function _0x19d44c(_0x17f506, _0x3a7a3f, _0x4abbc2) {
- if (_0x3a7a3f in _0x17f506) {
- Object.defineProperty(_0x17f506, _0x3a7a3f, {
- 'value': _0x4abbc2,
- 'enumerable': true,
- 'configurable': true,
- 'writable': true
- });
- } else {
- _0x17f506[_0x3a7a3f] = _0x4abbc2;
- }
- return _0x17f506;
- }
- var _0x432d15 = _0x4e75cc("object-assign");
- var _0x4ee7f1 = _0x4e75cc("../validators");
- var _0x5f0eb5 = _0x4e75cc("./patch");
- var _0x734627 = {
- 'returnDocuments': false
- };
- function _0x24cf3b() {
- var _0x5dc1e8 = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : [];
- var _0x3d6ceb = arguments.length > 0x1 ? arguments[0x1] : undefined;
- var _0x2e11dc = arguments.length > 0x2 ? arguments[0x2] : undefined;
- this.trxId = _0x2e11dc;
- this.operations = _0x5dc1e8;
- this.client = _0x3d6ceb;
- }
- _0x432d15(_0x24cf3b.prototype, {
- 'clone': function _0x1a09f1() {
- return new _0x24cf3b(this.operations.slice(0x0), this.client, this.trxId);
- },
- 'create': function _0x5315d8(_0x429b7b) {
- _0x4ee7f1.validateObject("create", _0x429b7b);
- return this._add({
- 'create': _0x429b7b
- });
- },
- 'createIfNotExists': function _0xccf402(_0x5d4714) {
- _0x4ee7f1.validateObject("createIfNotExists", _0x5d4714);
- _0x4ee7f1.requireDocumentId("createIfNotExists", _0x5d4714);
- return this._add(_0x19d44c({}, "createIfNotExists", _0x5d4714));
- },
- 'createOrReplace': function _0x2b0187(_0x300eb7) {
- _0x4ee7f1.validateObject("createOrReplace", _0x300eb7);
- _0x4ee7f1.requireDocumentId("createOrReplace", _0x300eb7);
- return this._add(_0x19d44c({}, "createOrReplace", _0x300eb7));
- },
- 'delete': function _0x5172cd(_0x1034f3) {
- _0x4ee7f1.validateDocumentId("delete", _0x1034f3);
- return this._add({
- 'delete': {
- 'id': _0x1034f3
- }
- });
- },
- 'patch': function _0xb4f563(_0x581113, _0x53035d) {
- var _0x536d80 = typeof _0x53035d === "function";
- var _0x35f5a1 = _0x581113 instanceof _0x5f0eb5;
- if (_0x35f5a1) {
- return this._add({
- 'patch': _0x581113.serialize()
- });
- }
- if (_0x536d80) {
- var _0x3a2ec5 = _0x53035d(new _0x5f0eb5(_0x581113, {}, this.client));
- if (!(_0x3a2ec5 instanceof _0x5f0eb5)) {
- throw new Error("function passed to `patch()` must return the patch");
- }
- return this._add({
- 'patch': _0x3a2ec5.serialize()
- });
- }
- return this._add({
- 'patch': _0x432d15({
- 'id': _0x581113
- }, _0x53035d)
- });
- },
- 'transactionId': function _0x4a7aff(_0x532d35) {
- if (!_0x532d35) {
- return this.trxId;
- }
- this.trxId = _0x532d35;
- return this;
- },
- 'serialize': function _0x8c512e() {
- return this.operations.slice();
- },
- 'toJSON': function _0x1922be() {
- return this.serialize();
- },
- 'commit': function _0x559704(_0x20f1a2) {
- if (!this.client) {
- throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");
- }
- return this.client.mutate(this.serialize(), _0x432d15({
- 'transactionId': this.trxId
- }, _0x734627, _0x20f1a2 || {}));
- },
- 'reset': function _0x328e2f() {
- this.operations = [];
- return this;
- },
- '_add': function _0x4c3788(_0x200dfb) {
- this.operations.push(_0x200dfb);
- return this;
- }
- });
- _0x133f51.exports = _0x24cf3b;
- }, {
- '../validators': 0x18,
- './patch': 0x9,
- 'object-assign': 0x34
- }],
- 0xb: [function(_0x4662d7, _0xa224c7, _0x1be1d6) {
- 'use strict';
- var _0x18c106 = _0x4662d7('object-assign');
- var _0x54f0e9 = _0x4662d7("../validators");
- function _0x56a7a7(_0x293cb6) {
- this.request = _0x293cb6.request.bind(_0x293cb6);
- }
- _0x18c106(_0x56a7a7.prototype, {
- 'create': function _0x4e9445(_0x4582a7, _0x90b142) {
- return this._modify('PUT', _0x4582a7, _0x90b142);
- },
- 'edit': function _0xc35992(_0x283122, _0x22ede5) {
- return this._modify("PATCH", _0x283122, _0x22ede5);
- },
- 'delete': function _0x1074f6(_0x2ca08e) {
- return this._modify("DELETE", _0x2ca08e);
- },
- 'list': function _0x2f04ab() {
- return this.request({
- 'uri': '/datasets'
- });
- },
- '_modify': function _0x274d03(_0xc4e76d, _0xc4c955, _0xd13b2b) {
- _0x54f0e9.dataset(_0xc4c955);
- return this.request({
- 'method': _0xc4e76d,
- 'uri': "/datasets/".concat(_0xc4c955),
- 'body': _0xd13b2b
- });
- }
- });
- _0xa224c7.exports = _0x56a7a7;
- }, {
- '../validators': 0x18,
- 'object-assign': 0x34
- }],
- 0xc: [function(_0x118539, _0x3e33bf, _0x162708) {
- 'use strict';
- _0x3e33bf.exports = [];
- }, {}],
- 0xd: [function(_0x1add48, _0x47455c, _0x4708af) {
- 'use strict';
- var _0x150536 = _0x1add48("make-error");
- var _0x2975ab = _0x1add48("object-assign");
- function _0x1e854b(_0x4e3c56) {
- var _0x15c0ae = _0x1c68e3(_0x4e3c56);
- _0x1e854b["super"].call(this, _0x15c0ae.message);
- _0x2975ab(this, _0x15c0ae);
- }
- function _0x47340b(_0x21cf3a) {
- var _0x52feb4 = _0x1c68e3(_0x21cf3a);
- _0x47340b['super'].call(this, _0x52feb4.message);
- _0x2975ab(this, _0x52feb4);
- }
- function _0x1c68e3(_0x222b3a) {
- var _0x21d556 = _0x222b3a.body;
- var _0x326322 = {
- 'response': _0x222b3a,
- 'statusCode': _0x222b3a.statusCode,
- 'responseBody': _0x36ddc3(_0x21d556, _0x222b3a)
- };
- if (_0x21d556.error && _0x21d556.message) {
- _0x326322.message = ''.concat(_0x21d556.error, " - ").concat(_0x21d556.message);
- return _0x326322;
- }
- if (_0x21d556.error && _0x21d556.error.description) {
- _0x326322.message = _0x21d556.error.description;
- _0x326322.details = _0x21d556.error;
- return _0x326322;
- }
- _0x326322.message = _0x21d556.error || _0x21d556.message || _0x3550df(_0x222b3a);
- return _0x326322;
- }
- function _0x3550df(_0x41e1f3) {
- var _0x509956 = _0x41e1f3.statusMessage ? " ".concat(_0x41e1f3.statusMessage) : '';
- return ''.concat(_0x41e1f3.method, "-request to ").concat(_0x41e1f3.url, " resulted in HTTP ").concat(_0x41e1f3.statusCode).concat(_0x509956);
- }
- function _0x36ddc3(_0x46daec, _0x183ec0) {
- var _0x56b5fb = (_0x183ec0.headers["content-type"] || '').toLowerCase();
- var _0x3ff499 = _0x56b5fb.indexOf("application/json") !== -0x1;
- return _0x3ff499 ? JSON.stringify(_0x46daec, null, 0x2) : _0x46daec;
- }
- _0x150536(_0x1e854b);
- _0x150536(_0x47340b);
- _0x4708af.ClientError = _0x1e854b;
- _0x4708af.ServerError = _0x47340b;
- }, {
- 'make-error': 0x32,
- 'object-assign': 0x34
- }],
- 0xe: [function(_0x421c77, _0x78aaf2, _0x4a4087) {
- 'use strict';
- _0x78aaf2.exports = function(_0x96153a) {
- var _0x376504 = [];
- for (var _0x14583a in _0x96153a) {
- if (_0x96153a.hasOwnProperty(_0x14583a)) {
- _0x376504.push(''.concat(encodeURIComponent(_0x14583a), '=').concat(encodeURIComponent(_0x96153a[_0x14583a])));
- }
- }
- return _0x376504.length > 0x0 ? '?'.concat(_0x376504.join('&')) : '';
- };
- }, {}],
- 0xf: [function(_0x332268, _0x12625b, _0x475dba) {
- 'use strict';
- var _0x52fb6d = _0x332268("get-it");
- var _0x1590d4 = _0x332268("object-assign");
- var _0x8d3114 = _0x332268("get-it/lib/middleware/observable");
- var _0xdc5898 = _0x332268('get-it/lib/middleware/jsonRequest');
- var _0x3feac0 = _0x332268("get-it/lib/middleware/jsonResponse");
- var _0x432b57 = _0x332268("get-it/lib/middleware/progress");
- var _0x59643e = _0x332268("@sanity/observable/minimal");
- var _0x9e6d3c = _0x332268("./errors");
- var _0x5c99bb = _0x9e6d3c.ClientError;
- var _0xbecd57 = _0x9e6d3c.ServerError;
- var _0x3d670b = {
- 'onResponse': function _0x8b4f25(_0x11ab15) {
- if (_0x11ab15.statusCode >= 0x1f4) {
- throw new _0xbecd57(_0x11ab15);
- } else {
- if (_0x11ab15.statusCode >= 0x190) {
- throw new _0x5c99bb(_0x11ab15);
- }
- }
- return _0x11ab15;
- }
- };
- var _0x56bb27 = _0x332268("./nodeMiddleware");
- var _0x135ea6 = _0x56bb27.concat([_0xdc5898(), _0x3feac0(), _0x432b57(), _0x3d670b, _0x8d3114({
- 'implementation': _0x59643e
- })]);
- var _0x4f8a95 = _0x52fb6d(_0x135ea6);
- function _0x206925(_0x5dfe1e) {
- var _0x3fce24 = arguments.length > 0x1 && arguments[0x1] !== undefined ? arguments[0x1] : _0x4f8a95;
- return _0x3fce24(_0x1590d4({
- 'maxRedirects': 0x0
- }, _0x5dfe1e));
- }
- _0x206925.defaultRequester = _0x4f8a95;
- _0x206925.ClientError = _0x5c99bb;
- _0x206925.ServerError = _0xbecd57;
- _0x12625b.exports = _0x206925;
- }, {
- './errors': 0xd,
- './nodeMiddleware': 0xc,
- '@sanity/observable/minimal': 0x1c,
- 'get-it': 0x21,
- 'get-it/lib/middleware/jsonRequest': 0x25,
- 'get-it/lib/middleware/jsonResponse': 0x26,
- 'get-it/lib/middleware/observable': 0x27,
- 'get-it/lib/middleware/progress': 0x29,
- 'object-assign': 0x34
- }],
- 0x10: [function(_0x83acda, _0x8921a5, _0xb17eab) {
- 'use strict';
- var _0x50cfd6 = _0x83acda("object-assign");
- _0x8921a5.exports = function(_0x1ab926) {
- var _0x201cc0 = arguments.length > 0x1 && arguments[0x1] !== undefined ? arguments[0x1] : {};
- var _0x454960 = {};
- var _0xf64d7f = _0x201cc0.token || _0x1ab926.token;
- if (_0xf64d7f) {
- _0x454960.Authorization = "Bearer ".concat(_0xf64d7f);
- }
- if (!_0x201cc0.useGlobalApi && !_0x1ab926.useProjectHostname && _0x1ab926.projectId) {
- _0x454960["X-Sanity-Project-ID"] = _0x1ab926.projectId;
- }
- var _0x3095fe = Boolean(typeof _0x201cc0.withCredentials === "undefined" ? _0x1ab926.token || _0x1ab926.withCredentials : _0x201cc0.withCredentials);
- var _0x160812 = typeof _0x201cc0.timeout === "undefined" ? _0x1ab926.timeout : _0x201cc0.timeout;
- return _0x50cfd6({}, _0x201cc0, {
- 'headers': _0x50cfd6({}, _0x454960, _0x201cc0.headers || {}),
- 'timeout': typeof _0x160812 === "undefined" ? 300000 : _0x160812,
- 'json': true,
- 'withCredentials': _0x3095fe
- });
- };
- }, {
- 'object-assign': 0x34
- }],
- 0x11: [function(_0x1c90f3, _0x249215, _0x74ce04) {
- 'use strict';
- var _0x1120b0 = _0x1c90f3("object-assign");
- function _0x1e1c57(_0x2fa00a) {
- this.client = _0x2fa00a;
- }
- _0x1120b0(_0x1e1c57.prototype, {
- 'list': function _0x5c5ee0() {
- return this.client.request({
- 'uri': "/projects"
- });
- },
- 'getById': function _0x1cd1f1(_0x433767) {
- return this.client.request({
- 'uri': '/projects/'.concat(_0x433767)
- });
- }
- });
- _0x249215.exports = _0x1e1c57;
- }, {
- 'object-assign': 0x34
- }],
- 0x12: [function(_0xf7138b, _0x1c0273, _0x159b6b) {
- 'use strict';
- var _0x40f680 = _0xf7138b("object-assign");
- var _0xe70bd9 = _0xf7138b("@sanity/observable/operators/filter");
- var _0x523eda = _0xe70bd9.filter;
- var _0x3e82e8 = _0xf7138b("@sanity/observable/operators/map");
- var _0x11827a = _0x3e82e8.map;
- var _0x23cbc4 = _0xf7138b("./data/patch");
- var _0x1068b3 = _0xf7138b("./data/transaction");
- var _0x30e24d = _0xf7138b("./data/dataMethods");
- var _0x47d198 = _0xf7138b("./datasets/datasetsClient");
- var _0x12b587 = _0xf7138b("./projects/projectsClient");
- var _0x9ae6a = _0xf7138b('./assets/assetsClient');
- var _0x1f2c89 = _0xf7138b("./users/usersClient");
- var _0x2a9409 = _0xf7138b("./auth/authClient");
- var _0x3659f8 = _0xf7138b("./http/request");
- var _0xcb7891 = _0xf7138b("./http/requestOptions");
- var _0x4f6297 = _0xf7138b("./config");
- var _0x1c5981 = _0x4f6297.defaultConfig;
- var _0x5a31d5 = _0x4f6297.initConfig;
- function _0x1d269e() {
- var _0xe7b9bf = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : _0x1c5981;
- if (!(this instanceof _0x1d269e)) {
- return new _0x1d269e(_0xe7b9bf);
- }
- this.config(_0xe7b9bf);
- this.assets = new _0x9ae6a(this);
- this.datasets = new _0x47d198(this);
- this.projects = new _0x12b587(this);
- this.users = new _0x1f2c89(this);
- this.auth = new _0x2a9409(this);
- if (this.clientConfig.isPromiseAPI) {
- var _0x5a9a56 = _0x40f680({}, this.clientConfig, {
- 'isPromiseAPI': false
- });
- this.observable = new _0x1d269e(_0x5a9a56);
- }
- }
- _0x40f680(_0x1d269e.prototype, _0x30e24d);
- _0x40f680(_0x1d269e.prototype, {
- 'clone': function _0x4a15a1() {
- return new _0x1d269e(this.config());
- },
- 'config': function _0x55c4e1(_0x55f828) {
- if (typeof _0x55f828 === 'undefined') {
- return _0x40f680({}, this.clientConfig);
- }
- if (this.observable) {
- var _0x41a5b4 = _0x40f680({}, _0x55f828, {
- 'isPromiseAPI': false
- });
- this.observable.config(_0x41a5b4);
- }
- this.clientConfig = _0x5a31d5(_0x55f828, this.clientConfig || {});
- return this;
- },
- 'getUrl': function _0x46105a(_0x3c76c6) {
- var _0x42d3c1 = arguments.length > 0x1 && arguments[0x1] !== undefined ? arguments[0x1] : false;
- var _0x66e2c8 = _0x42d3c1 ? this.clientConfig.cdnUrl : this.clientConfig.url;
- return ''.concat(_0x66e2c8, '/').concat(_0x3c76c6.replace(/^\//, ''));
- },
- 'isPromiseAPI': function _0x2e08b7() {
- return this.clientConfig.isPromiseAPI;
- },
- '_requestObservable': function _0x4c06d2(_0x6a7a29) {
- var _0x7b83eb = _0x6a7a29.url || _0x6a7a29.uri;
- var _0x46566d = this.clientConfig.useCdn && ["GET", "HEAD"].indexOf(_0x6a7a29.method || "GET") >= 0x0 && _0x7b83eb.indexOf('/data/') === 0x0;
- var _0x2c402f = _0xcb7891(this.clientConfig, _0x40f680({}, _0x6a7a29, {
- 'url': this.getUrl(_0x7b83eb, _0x46566d)
- }));
- return _0x3659f8(_0x2c402f, this.clientConfig.requester);
- },
- 'request': function _0x574ebc(_0x3b68dc) {
- var _0x563b78 = this._requestObservable(_0x3b68dc).pipe(_0x523eda(function(_0x2fcedb) {
- return _0x2fcedb.type === "response";
- }), _0x11827a(function(_0xbd6a4c) {
- return _0xbd6a4c.body;
- }));
- return this.isPromiseAPI() ? _0x563b78.toPromise() : _0x563b78;
- }
- });
- _0x1d269e.Patch = _0x23cbc4;
- _0x1d269e.Transaction = _0x1068b3;
- _0x1d269e.ClientError = _0x3659f8.ClientError;
- _0x1d269e.ServerError = _0x3659f8.ServerError;
- _0x1d269e.requester = _0x3659f8.defaultRequester;
- _0x1c0273.exports = _0x1d269e;
- }, {
- './assets/assetsClient': 0x3,
- './auth/authClient': 0x4,
- './config': 0x5,
- './data/dataMethods': 0x6,
- './data/patch': 0x9,
- './data/transaction': 0xa,
- './datasets/datasetsClient': 0xb,
- './http/request': 0xf,
- './http/requestOptions': 0x10,
- './projects/projectsClient': 0x11,
- './users/usersClient': 0x13,
- '@sanity/observable/operators/filter': 0x1d,
- '@sanity/observable/operators/map': 0x1e,
- 'object-assign': 0x34
- }],
- 0x13: [function(_0x96eb09, _0x1e3d00, _0x5c9fa7) {
- 'use strict';
- var _0x4f4dd5 = _0x96eb09('object-assign');
- function _0x1ac506(_0x77035f) {
- this.client = _0x77035f;
- }
- _0x4f4dd5(_0x1ac506.prototype, {
- 'getById': function _0xa634b5(_0x2bf500) {
- return this.client.request({
- 'uri': "/users/".concat(_0x2bf500)
- });
- }
- });
- _0x1e3d00.exports = _0x1ac506;
- }, {
- 'object-assign': 0x34
- }],
- 0x14: [function(_0x56a174, _0x50cd7c, _0x41ee9e) {
- 'use strict';
- _0x50cd7c.exports = function(_0x2789e1, _0x43c6d2) {
- return Object.keys(_0x43c6d2).concat(Object.keys(_0x2789e1)).reduce(function(_0x58a93d, _0x18589b) {
- _0x58a93d[_0x18589b] = typeof _0x2789e1[_0x18589b] === "undefined" ? _0x43c6d2[_0x18589b] : _0x2789e1[_0x18589b];
- return _0x58a93d;
- }, {});
- };
- }, {}],
- 0x15: [function(_0xb71a02, _0x4720ef, _0x5e7fb2) {
- 'use strict';
- _0x4720ef.exports = function _0x7638bf(_0x3899cf) {
- if (typeof _0x3899cf === "string" || Array.isArray(_0x3899cf)) {
- return {
- 'id': _0x3899cf
- };
- }
- if (_0x3899cf && _0x3899cf.query) {
- return {
- 'query': _0x3899cf.query
- };
- }
- var _0x4d65c5 = ["* Document ID (<docId>)", "* Array of document IDs", "* Object containing `query`"].join("\n");
- throw new Error("Unknown selection - must be one of:\n\n".concat(_0x4d65c5));
- };
- }, {}],
- 0x16: [function(_0x58da4a, _0x370263, _0x594ebf) {
- 'use strict';
- _0x370263.exports = function(_0x473faf) {
- var _0x5b1636 = false;
- var _0x1ae393;
- return function() {
- if (_0x5b1636) {
- return _0x1ae393;
- }
- _0x1ae393 = _0x473faf.apply(undefined, arguments);
- _0x5b1636 = true;
- return _0x1ae393;
- };
- };
- }, {}],
- 0x17: [function(_0x5f3a28, _0x356be4, _0x2bde22) {
- 'use strict';
- _0x356be4.exports = function(_0x5c2b7d, _0x3f10e2) {
- return _0x3f10e2.reduce(function(_0x1cbc3f, _0x31be5d) {
- if (typeof _0x5c2b7d[_0x31be5d] === "undefined") {
- return _0x1cbc3f;
- }
- _0x1cbc3f[_0x31be5d] = _0x5c2b7d[_0x31be5d];
- return _0x1cbc3f;
- }, {});
- };
- }, {}],
- 0x18: [function(_0x50eade, _0xa82e72, _0xea6d84) {
- 'use strict';
- function _0x2d1d6c(_0x4eb53a) {
- '@babel/helpers - typeof';
- if (typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol') {
- _0x2d1d6c = function _0x17a576(_0x385b30) {
- return typeof _0x385b30;
- };
- } else {
- _0x2d1d6c = function _0x23fc9d(_0x507677) {
- return _0x507677 && typeof Symbol === 'function' && _0x507677.constructor === Symbol && _0x507677 !== Symbol.prototype ? 'symbol' : typeof _0x507677;
- };
- }
- return _0x2d1d6c(_0x4eb53a);
- }
- var _0x23220d = ["image", "file"];
- var _0x5455b0 = ["before", "after", 'replace'];
- _0xea6d84.dataset = function(_0x154f99) {
- if (!/^[-\w]{1,128}$/.test(_0x154f99)) {
- throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes");
- }
- };
- _0xea6d84.projectId = function(_0x1ae748) {
- if (!/^[-a-z0-9]+$/i.test(_0x1ae748)) {
- throw new Error("`projectId` can only contain only a-z, 0-9 and dashes");
- }
- };
- _0xea6d84.validateAssetType = function(_0x2f7ec8) {
- if (_0x23220d.indexOf(_0x2f7ec8) === -0x1) {
- throw new Error("Invalid asset type: ".concat(_0x2f7ec8, ". Must be one of ").concat(_0x23220d.join(", ")));
- }
- };
- _0xea6d84.validateObject = function(_0x2a3d64, _0xfa09e) {
- if (_0xfa09e === null || _0x2d1d6c(_0xfa09e) !== "object" || Array.isArray(_0xfa09e)) {
- throw new Error(''.concat(_0x2a3d64, "() takes an object of properties"));
- }
- };
- _0xea6d84.requireDocumentId = function(_0x29cc78, _0xb064d5) {
- if (!_0xb064d5._id) {
- throw new Error(''.concat(_0x29cc78, "() requires that the document contains an ID (\"_id\" property)"));
- }
- _0xea6d84.validateDocumentId(_0x29cc78, _0xb064d5._id);
- };
- _0xea6d84.validateDocumentId = function(_0x134e23, _0x410624) {
- if (typeof _0x410624 !== 'string' || !/^[a-z0-9_.-]+$/i.test(_0x410624)) {
- throw new Error(''.concat(_0x134e23, "(): \"").concat(_0x410624, "\" is not a valid document ID"));
- }
- };
- _0xea6d84.validateInsert = function(_0xc9f018, _0x2dfd91, _0x14619f) {
- if (_0x5455b0.indexOf(_0xc9f018) === -0x1) {
- var _0x4a7174 = _0x5455b0.map(function(_0xcda587) {
- return "\"".concat(_0xcda587, "\"");
- }).join(", ");
- throw new Error(''.concat("insert(at, selector, items)", " takes an \"at\"-argument which is one of: ").concat(_0x4a7174));
- }
- if (typeof _0x2dfd91 !== 'string') {
- throw new Error(''.concat("insert(at, selector, items)", " takes a \"selector\"-argument which must be a string"));
- }
- if (!Array.isArray(_0x14619f)) {
- throw new Error(''.concat("insert(at, selector, items)", " takes an \"items\"-argument which must be an array"));
- }
- };
- _0xea6d84.hasDataset = function(_0x784159) {
- if (!_0x784159.gradientMode && !_0x784159.dataset) {
- throw new Error("`dataset` must be provided to perform queries");
- }
- return _0x784159.dataset || '';
- };
- }, {}],
- 0x19: [function(_0xe860b, _0x6af020, _0x34d061) {
- var _0x416da9 = _0xe860b("@rexxars/eventsource-polyfill");
- _0x6af020.exports = window.EventSource || _0x416da9.EventSource;
- }, {
- '@rexxars/eventsource-polyfill': 0x2
- }],
- 0x1a: [function(_0x26d826, _0x341b0d, _0x135f6f) {
- _0x341b0d.exports = function _0xd6a83f(_0x3df1a4) {
- return "https://docs.sanity.io/help/" + _0x3df1a4;
- };
- }, {}],
- 0x1b: [function(_0x10dda7, _0x12b7dc, _0x492e2c) {
- 'use strict';
- var _0x41f8af = _0x10dda7("rxjs/internal/Observable");
- var _0x5ac841 = _0x41f8af.Observable;
- var _0x5986b6 = _0x10dda7("object-assign");
- var _0x9395d3 = _0x10dda7("../operators/map");
- var _0x2aa3da = _0x9395d3.map;
- var _0x5a376b = _0x10dda7("../operators/filter");
- var _0x5d0277 = _0x5a376b.filter;
- var _0x103866 = _0x10dda7("../operators/reduce");
- var _0x1de5ab = _0x103866.reduce;
- function _0x4c4d97() {
- _0x5ac841.apply(this, arguments);
- }
- _0x4c4d97.prototype = Object.create(_0x5986b6(Object.create(null), _0x5ac841.prototype));
- Object.defineProperty(_0x4c4d97.prototype, "constructor", {
- 'value': _0x4c4d97,
- 'enumerable': false,
- 'writable': true,
- 'configurable': true
- });
- _0x4c4d97.prototype.lift = function _0x1b48a7(_0x690d04) {
- var _0xb18e08 = new _0x4c4d97();
- _0xb18e08.source = this;
- _0xb18e08.operator = _0x690d04;
- return _0xb18e08;
- };
- function _0x14c002(_0x3506e1, _0x4d0f6a) {
- var _0x493dc1 = false;
- return function _0x1d7919() {
- if (!_0x493dc1) {
- _0x493dc1 = true;
- console.warn(new Error("Calling observable.".concat(_0x3506e1, "(...) is deprecated. Please use observable.pipe(").concat(_0x3506e1, "(...)) instead")));
- }
- return this.pipe(_0x4d0f6a.apply(this, arguments));
- };
- }
- _0x4c4d97.prototype.map = _0x14c002("map", _0x2aa3da);
- _0x4c4d97.prototype.filter = _0x14c002("filter", _0x5d0277);
- _0x4c4d97.prototype.reduce = _0x14c002("filter", _0x1de5ab);
- _0x12b7dc.exports = _0x4c4d97;
- }, {
- '../operators/filter': 0x1d,
- '../operators/map': 0x1e,
- '../operators/reduce': 0x1f,
- 'object-assign': 0x34,
- 'rxjs/internal/Observable': 0x38
- }],
- 0x1c: [function(_0x3c9bf4, _0x59ca9d, _0x5cb663) {
- _0x59ca9d.exports = _0x3c9bf4('./lib/SanityObservableMinimal');
- }, {
- './lib/SanityObservableMinimal': 0x1b
- }],
- 0x1d: [function(_0x49a647, _0x590562, _0x594f7f) {
- _0x594f7f.filter = _0x49a647("rxjs/internal/operators/filter").filter;
- }, {
- 'rxjs/internal/operators/filter': 0x3f
- }],
- 0x1e: [function(_0x25aee9, _0x51abbf, _0x30e08e) {
- _0x30e08e.map = _0x25aee9("rxjs/internal/operators/map").map;
- }, {
- 'rxjs/internal/operators/map': 0x40
- }],
- 0x1f: [function(_0x1a8e01, _0x37e41b, _0x539299) {
- _0x539299.reduce = _0x1a8e01("rxjs/internal/operators/reduce").reduce;
- }, {
- 'rxjs/internal/operators/reduce': 0x41
- }],
- 0x20: [function(_0x443fcf, _0xecc328, _0x37d5ac) {
- 'use strict';
- var _0xe9126d = _0x443fcf('is-obj');
- var _0x53932a = Object.prototype.hasOwnProperty;
- var _0x2ad1b5 = Object.prototype.propertyIsEnumerable;
- function _0x4a6964(_0x1be5d0) {
- if (_0x1be5d0 === null || _0x1be5d0 === undefined) {
- throw new TypeError("Sources cannot be null or undefined");
- }
- return Object(_0x1be5d0);
- }
- function _0x307afd(_0x2fc5b7, _0x2bfae9, _0x13c101) {
- var _0x3fcb75 = _0x2bfae9[_0x13c101];
- if (_0x3fcb75 === undefined || _0x3fcb75 === null) {
- return;
- }
- if (_0x53932a.call(_0x2fc5b7, _0x13c101)) {
- if (_0x2fc5b7[_0x13c101] === undefined || _0x2fc5b7[_0x13c101] === null) {
- throw new TypeError("Cannot convert undefined or null to object (" + _0x13c101 + ')');
- }
- }
- if (!_0x53932a.call(_0x2fc5b7, _0x13c101) || !_0xe9126d(_0x3fcb75)) {
- _0x2fc5b7[_0x13c101] = _0x3fcb75;
- } else {
- _0x2fc5b7[_0x13c101] = _0x2a1b30(Object(_0x2fc5b7[_0x13c101]), _0x2bfae9[_0x13c101]);
- }
- }
- function _0x2a1b30(_0x3ff6eb, _0x1c891c) {
- if (_0x3ff6eb === _0x1c891c) {
- return _0x3ff6eb;
- }
- _0x1c891c = Object(_0x1c891c);
- for (var _0x8f5e38 in _0x1c891c) {
- if (_0x53932a.call(_0x1c891c, _0x8f5e38)) {
- _0x307afd(_0x3ff6eb, _0x1c891c, _0x8f5e38);
- }
- }
- if (Object.getOwnPropertySymbols) {
- var _0x347d67 = Object.getOwnPropertySymbols(_0x1c891c);
- for (var _0xf5eaf2 = 0x0; _0xf5eaf2 < _0x347d67.length; _0xf5eaf2++) {
- if (_0x2ad1b5.call(_0x1c891c, _0x347d67[_0xf5eaf2])) {
- _0x307afd(_0x3ff6eb, _0x1c891c, _0x347d67[_0xf5eaf2]);
- }
- }
- }
- return _0x3ff6eb;
- }
- _0xecc328.exports = function _0x8b338a(_0x282899) {
- _0x282899 = _0x4a6964(_0x282899);
- for (var _0x200e2a = 0x1; _0x200e2a < arguments.length; _0x200e2a++) {
- _0x2a1b30(_0x282899, arguments[_0x200e2a]);
- }
- return _0x282899;
- };
- }, {
- 'is-obj': 0x2f
- }],
- 0x21: [function(_0x4a7c42, _0x1403d4, _0x3d0b1d) {
- _0x1403d4.exports = _0x4a7c42("./lib-node");
- }, {
- './lib-node': 0x22
- }],
- 0x22: [function(_0x1a12f8, _0x3c6f9e, _0x277a4b) {
- 'use strict';
- var _0xbd1ef9 = _0x1a12f8("nano-pubsub");
- var _0x438c11 = _0x1a12f8("./util/middlewareReducer");
- var _0x145992 = _0x1a12f8("./middleware/defaultOptionsProcessor");
- var _0x465f45 = _0x1a12f8('./middleware/defaultOptionsValidator');
- var _0x560c29 = _0x1a12f8("./request");
- var _0x2cf2c8 = ["request", "response", "progress", "error", "abort"];
- var _0x2aea81 = ['processOptions', "validateOptions", "interceptRequest", "finalizeOptions", "onRequest", 'onResponse', "onError", "onReturn", 'onHeaders'];
- _0x3c6f9e.exports = function _0x2efce2() {
- var _0x58800f = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : [];
- var _0x33199f = arguments.length > 0x1 && arguments[0x1] !== undefined ? arguments[0x1] : _0x560c29;
- var _0x3840e4 = [];
- var _0x3268a4 = _0x2aea81.reduce(function(_0x2a817f, _0x5a30db) {
- _0x2a817f[_0x5a30db] = _0x2a817f[_0x5a30db] || [];
- return _0x2a817f;
- }, {
- 'processOptions': [_0x145992],
- 'validateOptions': [_0x465f45]
- });
- function _0x45f830(_0x15005c) {
- var _0x58a663 = _0x2cf2c8.reduce(function(_0x46baf3, _0x13b46b) {
- _0x46baf3[_0x13b46b] = _0xbd1ef9();
- return _0x46baf3;
- }, {});
- var _0x51e3ed = _0x438c11(_0x3268a4);
- var _0x3326b8 = _0x51e3ed("processOptions", _0x15005c);
- _0x51e3ed('validateOptions', _0x3326b8);
- var _0x2f0c70 = {
- 'options': _0x3326b8,
- 'channels': _0x58a663,
- 'applyMiddleware': _0x51e3ed
- };
- var _0xb87d8e = null;
- var _0x12872f = _0x58a663.request.subscribe(function(_0x62b32c) {
- _0xb87d8e = _0x33199f(_0x62b32c, function(_0x4d80af, _0x147504) {
- return _0x5c2be3(_0x4d80af, _0x147504, _0x62b32c);
- });
- });
- _0x58a663.abort.subscribe(function() {
- _0x12872f();
- if (_0xb87d8e) {
- _0xb87d8e.abort();
- }
- });
- var _0x2a3002 = _0x51e3ed("onReturn", _0x58a663, _0x2f0c70);
- if (_0x2a3002 === _0x58a663) {
- _0x58a663.request.publish(_0x2f0c70);
- }
- return _0x2a3002;
- function _0x5c2be3(_0x49fa98, _0x57a368, _0x536a6a) {
- var _0x3bc988 = _0x49fa98;
- var _0x407e3b = _0x57a368;
- if (!_0x3bc988) {
- try {
- _0x407e3b = _0x51e3ed('onResponse', _0x57a368, _0x536a6a);
- } catch (_0x1c092c) {
- _0x407e3b = null;
- _0x3bc988 = _0x1c092c;
- }
- }
- _0x3bc988 = _0x3bc988 && _0x51e3ed("onError", _0x3bc988, _0x536a6a);
- if (_0x3bc988) {
- _0x58a663.error.publish(_0x3bc988);
- } else if (_0x407e3b) {
- _0x58a663.response.publish(_0x407e3b);
- }
- }
- }
- _0x45f830.use = function _0x4c49bc(_0x370525) {
- if (!_0x370525) {
- throw new Error("Tried to add middleware that resolved to falsey value");
- }
- if (typeof _0x370525 === "function") {
- throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");
- }
- if (_0x370525.onReturn && _0x3268a4.onReturn.length > 0x0) {
- throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");
- }
- _0x2aea81.forEach(function(_0x7b7947) {
- if (_0x370525[_0x7b7947]) {
- _0x3268a4[_0x7b7947].push(_0x370525[_0x7b7947]);
- }
- });
- _0x3840e4.push(_0x370525);
- return _0x45f830;
- };
- _0x45f830.clone = function _0x1e7c2a() {
- return _0x2efce2(_0x3840e4);
- };
- _0x58800f.forEach(_0x45f830.use);
- return _0x45f830;
- };
- }, {
- './middleware/defaultOptionsProcessor': 0x23,
- './middleware/defaultOptionsValidator': 0x24,
- './request': 0x2c,
- './util/middlewareReducer': 0x2e,
- 'nano-pubsub': 0x33
- }],
- 0x23: [function(_0x26fee0, _0x1bf7e6, _0x476b1b) {
- 'use strict';
- var _0x473de2 = _0x26fee0("object-assign");
- var _0x2a1b60 = _0x26fee0('url-parse');
- var _0x17cd42 = typeof navigator === "undefined" ? false : navigator.product === "ReactNative";
- var _0x44d3e9 = Object.prototype.hasOwnProperty;
- var _0x3f66db = {
- 'timeout': _0x17cd42 ? 0xea60 : 0x1d4c0
- };
- _0x1bf7e6.exports = function(_0x15bf8e) {
- var _0x156d4f = typeof _0x15bf8e === 'string' ? _0x473de2({
- 'url': _0x15bf8e
- }, _0x3f66db) : _0x473de2({}, _0x3f66db, _0x15bf8e);
- var _0x358818 = _0x2a1b60(_0x156d4f.url, {}, true);
- _0x156d4f.timeout = _0x4c629a(_0x156d4f.timeout);
- if (_0x156d4f.query) {
- _0x358818.query = _0x473de2({}, _0x358818.query, _0x50c10b(_0x156d4f.query));
- }
- _0x156d4f.method = _0x156d4f.body && !_0x156d4f.method ? "POST" : (_0x156d4f.method || "GET").toUpperCase();
- _0x156d4f.url = _0x358818.toString(_0x431122);
- return _0x156d4f;
- };
- function _0x431122(_0x599f71) {
- var _0x2f3623 = [];
- for (var _0x3fea3d in _0x599f71) {
- if (_0x44d3e9.call(_0x599f71, _0x3fea3d)) {
- _0x286a51(_0x3fea3d, _0x599f71[_0x3fea3d]);
- }
- }
- return _0x2f3623.length ? _0x2f3623.join('&') : '';
- function _0x286a51(_0x30fa1e, _0x5ebc18) {
- if (Array.isArray(_0x5ebc18)) {
- _0x5ebc18.forEach(function(_0x48172e) {
- return _0x286a51(_0x30fa1e, _0x48172e);
- });
- } else {
- _0x2f3623.push([_0x30fa1e, _0x5ebc18].map(encodeURIComponent).join('='));
- }
- }
- }
- function _0x4c629a(_0x38ddc0) {
- if (_0x38ddc0 === false || _0x38ddc0 === 0x0) {
- return false;
- }
- if (_0x38ddc0.connect || _0x38ddc0.socket) {
- return _0x38ddc0;
- }
- var _0x436983 = Number(_0x38ddc0);
- if (isNaN(_0x436983)) {
- return _0x4c629a(_0x3f66db.timeout);
- }
- return {
- 'connect': _0x436983,
- 'socket': _0x436983
- };
- }
- function _0x50c10b(_0x1993c8) {
- var _0x5d73fd = {};
- for (var _0x3724ad in _0x1993c8) {
- if (_0x1993c8[_0x3724ad] !== undefined) {
- _0x5d73fd[_0x3724ad] = _0x1993c8[_0x3724ad];
- }
- }
- return _0x5d73fd;
- }
- }, {
- 'object-assign': 0x34,
- 'url-parse': 0x52
- }],
- 0x24: [function(_0x237a13, _0x1e90d, _0x239f42) {
- 'use strict';
- var _0x4cb459 = /^https?:\/\//i;
- _0x1e90d.exports = function(_0x46ef77) {
- if (!_0x4cb459.test(_0x46ef77.url)) {
- throw new Error("\"" + _0x46ef77.url + "\" is not a valid URL");
- }
- };
- }, {}],
- 0x25: [function(_0x2b573b, _0x39b6cf, _0x44354b) {
- 'use strict';
- var _0xa5f5d2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(_0x2cb20c) {
- return typeof _0x2cb20c;
- } : function(_0x974ebb) {
- return _0x974ebb && typeof Symbol === 'function' && _0x974ebb.constructor === Symbol && _0x974ebb !== Symbol.prototype ? "symbol" : typeof _0x974ebb;
- };
- var _0x4e0a81 = _0x2b573b("object-assign");
- var _0x173545 = _0x2b573b("is-plain-object");
- var _0x1ea7ea = ["boolean", 'string', 'number'];
- _0x39b6cf.exports = function() {
- return {
- 'processOptions': function _0x28a1ec(_0x1e2c4e) {
- var _0xa42aa3 = _0x1e2c4e.body;
- if (!_0xa42aa3) {
- return _0x1e2c4e;
- }
- var _0x1d1134 = typeof _0xa42aa3.pipe === 'function';
- var _0x595b70 = !_0x1d1134 && !(!!_0xa42aa3.constructor && typeof _0xa42aa3.constructor.isBuffer === 'function' && _0xa42aa3.constructor.isBuffer(_0xa42aa3)) && (_0x1ea7ea.indexOf(typeof _0xa42aa3 === "undefined" ? "undefined" : _0xa5f5d2(_0xa42aa3)) !== -0x1 || Array.isArray(_0xa42aa3) || _0x173545(_0xa42aa3));
- if (!_0x595b70) {
- return _0x1e2c4e;
- }
- return _0x4e0a81({}, _0x1e2c4e, {
- 'body': JSON.stringify(_0x1e2c4e.body),
- 'headers': _0x4e0a81({}, _0x1e2c4e.headers, {
- 'Content-Type': 'application/json'
- })
- });
- }
- };
- };
- }, {
- 'is-plain-object': 0x30,
- 'object-assign': 0x34
- }],
- 0x26: [function(_0x4b553b, _0x4c2bdb, _0x47083c) {
- 'use strict';
- var _0xa749b7 = _0x4b553b('object-assign');
- _0x4c2bdb.exports = function(_0x1e7a74) {
- return {
- 'onResponse': function _0x61fe23(_0x34cde5) {
- var _0x46b290 = _0x34cde5.headers['content-type'] || '';
- var _0x4dd73e = _0x1e7a74 && _0x1e7a74.force || _0x46b290.indexOf("application/json") !== -0x1;
- if (!_0x34cde5.body || !_0x46b290 || !_0x4dd73e) {
- return _0x34cde5;
- }
- return _0xa749b7({}, _0x34cde5, {
- 'body': _0x2d768f(_0x34cde5.body)
- });
- },
- 'processOptions': function _0x14705a(_0x453801) {
- return _0xa749b7({}, _0x453801, {
- 'headers': _0xa749b7({
- 'Accept': "application/json"
- }, _0x453801.headers)
- });
- }
- };
- };
- function _0x2d768f(_0x1a626d) {
- try {
- return JSON.parse(_0x1a626d);
- } catch (_0x547f18) {
- _0x547f18.message = "Failed to parsed response body as JSON: " + _0x547f18.message;
- throw _0x547f18;
- }
- }
- }, {
- 'object-assign': 0x34
- }],
- 0x27: [function(_0x4f5672, _0x345104, _0x38854e) {
- 'use strict';
- var _0x4d8f1f = _0x4f5672("../util/global");
- var _0x47e6f5 = _0x4f5672("object-assign");
- _0x345104.exports = function() {
- var _0xc9951c = arguments.length > 0x0 && arguments[0x0] !== undefined ? arguments[0x0] : {};
- var _0x55a53b = _0xc9951c.implementation || _0x4d8f1f.Observable;
- if (!_0x55a53b) {
- throw new Error("`Observable` is not available in global scope, and no implementation was passed");
- }
- return {
- 'onReturn': function _0x2f97a7(_0x46c14d, _0x3f36ed) {
- return new _0x55a53b(function(_0x293848) {
- _0x46c14d.error.subscribe(function(_0x1eab78) {
- return _0x293848.error(_0x1eab78);
- });
- _0x46c14d.progress.subscribe(function(_0x2e38e9) {
- return _0x293848.next(_0x47e6f5({
- 'type': "progress"
- }, _0x2e38e9));
- });
- _0x46c14d.response.subscribe(function(_0x48c224) {
- _0x293848.next(_0x47e6f5({
- 'type': 'response'
- }, _0x48c224));
- _0x293848.complete();
- });
- _0x46c14d.request.publish(_0x3f36ed);
- return function() {
- return _0x46c14d.abort.publish();
- };
- });
- }
- };
- };
- }, {
- '../util/global': 0x2d,
- 'object-assign': 0x34
- }],
- 0x28: [function(_0x20c67d, _0x2c21ec, _0x5dfacd) {
- 'use strict';
- _0x2c21ec.exports = function() {
- return {
- 'onRequest': function _0x2ecbb3(_0x4094c4) {
- if (_0x4094c4.adapter !== 'xhr') {
- return;
- }
- var _0x3ad928 = _0x4094c4.request;
- var _0x51b7fa = _0x4094c4.context;
- if ("upload" in _0x3ad928 && 'onprogress' in _0x3ad928.upload) {
- _0x3ad928.upload.onprogress = _0x24f72e("upload");
- }
- if ("onprogress" in _0x3ad928) {
- _0x3ad928.onprogress = _0x24f72e('download');
- }
- function _0x24f72e(_0x197e3) {
- return function(_0x1273b2) {
- var _0x179a8c = _0x1273b2.lengthComputable ? _0x1273b2.loaded / _0x1273b2.total * 0x64 : -0x1;
- _0x51b7fa.channels.progress.publish({
- 'stage': _0x197e3,
- 'percent': _0x179a8c,
- 'total': _0x1273b2.total,
- 'loaded': _0x1273b2.loaded,
- 'lengthComputable': _0x1273b2.lengthComputable
- });
- };
- }
- }
- };
- };
- }, {}],
- 0x29: [function(_0x20e6f3, _0x1b3e73, _0x592b64) {
- 'use strict';
- _0x1b3e73.exports = _0x20e6f3("./node-progress");
- }, {
- './node-progress': 0x28
- }],
- 0x2a: [function(_0x7d824, _0x16f174, _0x1db02) {
- 'use strict';
- var _0x36d033 = _0x7d824("same-origin");
- var _0x1cf9eb = _0x7d824('parse-headers');
- var _0x101fcf = _0x7d824("./browser/fetchXhr");
- var _0x539754 = function _0x4e8f8a() { };
- var _0x281709 = typeof window === "undefined" ? undefined : window;
- var _0x217b51 = _0x281709 ? "xhr" : "fetch";
- var _0x5b38e9 = typeof XMLHttpRequest === "function" ? XMLHttpRequest : _0x539754;
- var _0x4a2033 = "withCredentials" in new _0x5b38e9();
- var _0x450f04 = typeof XDomainRequest === 'undefined' ? undefined : XDomainRequest;
- var _0x2a523f = _0x4a2033 ? _0x5b38e9 : _0x450f04;
- if (!_0x281709) {
- _0x5b38e9 = _0x101fcf;
- _0x2a523f = _0x101fcf;
- }
- _0x16f174.exports = function(_0x11df63, _0x3dd7d8) {
- var _0x283af5 = _0x11df63.options;
- var _0x463656 = _0x11df63.applyMiddleware("finalizeOptions", _0x283af5);
- var _0x5d2be4 = {};
- var _0x3309a0 = _0x281709 && _0x281709.location && !_0x36d033(_0x281709.location.href, _0x463656.url);
- var _0x3bb1b9 = _0x11df63.applyMiddleware("interceptRequest", undefined, {
- 'adapter': _0x217b51,
- 'context': _0x11df63
- });
- if (_0x3bb1b9) {
- var _0x117f3a = setTimeout(_0x3dd7d8, 0x0, null, _0x3bb1b9);
- var _0x435c3a = function _0xb9558f() {
- return clearTimeout(_0x117f3a);
- };
- return {
- 'abort': _0x435c3a
- };
- }
- var _0x1297f7 = _0x3309a0 ? new _0x2a523f() : new _0x5b38e9();
- var _0x3e1684 = _0x281709 && _0x281709.XDomainRequest && _0x1297f7 instanceof _0x281709.XDomainRequest;
- var _0x26da16 = _0x463656.headers;
- var _0x367111 = _0x463656.timeout;
- var _0x48b479 = false;
- var _0x302ca1 = false;
- var _0x105585 = false;
- _0x1297f7.onerror = _0x22be9f;
- _0x1297f7.ontimeout = _0x22be9f;
- _0x1297f7.onabort = function() {
- _0x48b479 = true;
- };
- _0x1297f7.onprogress = function() { };
- var _0xc021f = _0x3e1684 ? "onload" : "onreadystatechange";
- _0x1297f7[_0xc021f] = function() {
- _0x174d52();
- if (_0x48b479 || _0x1297f7.readyState !== 0x4 && !_0x3e1684) {
- return;
- }
- if (_0x1297f7.status === 0x0) {
- return;
- }
- _0x17ff7c();
- };
- _0x1297f7.open(_0x463656.method, _0x463656.url, true);
- _0x1297f7.withCredentials = !!_0x463656.withCredentials;
- if (_0x26da16 && _0x1297f7.setRequestHeader) {
- for (var _0xf19cd5 in _0x26da16) {
- if (_0x26da16.hasOwnProperty(_0xf19cd5)) {
- _0x1297f7.setRequestHeader(_0xf19cd5, _0x26da16[_0xf19cd5]);
- }
- }
- } else {
- if (_0x26da16 && _0x3e1684) {
- throw new Error("Headers cannot be set on an XDomainRequest object");
- }
- }
- if (_0x463656.rawBody) {
- _0x1297f7.responseType = 'arraybuffer';
- }
- _0x11df63.applyMiddleware("onRequest", {
- 'options': _0x463656,
- 'adapter': _0x217b51,
- 'request': _0x1297f7,
- 'context': _0x11df63
- });
- _0x1297f7.send(_0x463656.body || null);
- if (_0x367111) {
- _0x5d2be4.connect = setTimeout(function() {
- return _0x2a1ed6("ETIMEDOUT");
- }, _0x367111.connect);
- }
- return {
- 'abort': _0x397701
- };
- function _0x397701() {
- _0x48b479 = true;
- if (_0x1297f7) {
- _0x1297f7.abort();
- }
- }
- function _0x2a1ed6(_0x1ecdf2) {
- _0x105585 = true;
- _0x1297f7.abort();
- var _0x2239f3 = new Error(_0x1ecdf2 === 'ESOCKETTIMEDOUT' ? "Socket timed out on request to " + _0x463656.url : "Connection timed out on request to " + _0x463656.url);
- _0x2239f3.code = _0x1ecdf2;
- _0x11df63.channels.error.publish(_0x2239f3);
- }
- function _0x174d52() {
- if (!_0x367111) {
- return;
- }
- _0x1a20aa();
- _0x5d2be4.socket = setTimeout(function() {
- return _0x2a1ed6('ESOCKETTIMEDOUT');
- }, _0x367111.socket);
- }
- function _0x1a20aa() {
- if (_0x48b479 || _0x1297f7.readyState >= 0x2 && _0x5d2be4.connect) {
- clearTimeout(_0x5d2be4.connect);
- }
- if (_0x5d2be4.socket) {
- clearTimeout(_0x5d2be4.socket);
- }
- }
- function _0x22be9f(_0x2b57f9) {
- if (_0x302ca1) {
- return;
- }
- _0x1a20aa();
- _0x302ca1 = true;
- _0x1297f7 = null;
- var _0x3e40db = _0x2b57f9 || new Error("Network error while attempting to reach " + _0x463656.url);
- _0x3e40db.isNetworkError = true;
- _0x3e40db.request = _0x463656;
- _0x3dd7d8(_0x3e40db);
- }
- function _0x3856b1() {
- var _0x29805d = _0x1297f7.status;
- var _0x502aea = _0x1297f7.statusText;
- if (_0x3e1684 && _0x29805d === undefined) {
- _0x29805d = 0xc8;
- } else {
- if (_0x29805d > 0x2ee0 && _0x29805d < 0x2f7c) {
- return _0x22be9f();
- } else {
- _0x29805d = _0x1297f7.status === 0x4c7 ? 0xcc : _0x1297f7.status;
- _0x502aea = _0x1297f7.status === 0x4c7 ? "No Content" : _0x502aea;
- }
- }
- return {
- 'body': _0x1297f7.response || _0x1297f7.responseText,
- 'url': _0x463656.url,
- 'method': _0x463656.method,
- 'headers': _0x3e1684 ? {} : _0x1cf9eb(_0x1297f7.getAllResponseHeaders()),
- 'statusCode': _0x29805d,
- 'statusMessage': _0x502aea
- };
- }
- function _0x17ff7c() {
- if (_0x48b479 || _0x302ca1 || _0x105585) {
- return;
- }
- if (_0x1297f7.status === 0x0) {
- _0x22be9f(new Error("Unknown XHR error"));
- return;
- }
- _0x1a20aa();
- _0x302ca1 = true;
- _0x3dd7d8(null, _0x3856b1());
- }
- };
- }, {
- './browser/fetchXhr': 0x2b,
- 'parse-headers': 0x35,
- 'same-origin': 0x50
- }],
- 0x2b: [function(_0x3b3e89, _0x370613, _0x53a3ea) {
- 'use strict';
- function _0x4cd6e3() {
- this.readyState = 0x0;
- }
- _0x4cd6e3.prototype.open = function(_0x454595, _0x5d4ea0) {
- this._method = _0x454595;
- this._url = _0x5d4ea0;
- this._resHeaders = '';
- this.readyState = 0x1;
- this.onreadystatechange();
- };
- _0x4cd6e3.prototype.abort = function() {
- if (this._controller) {
- this._controller.abort();
- }
- };
- _0x4cd6e3.prototype.getAllResponseHeaders = function() {
- return this._resHeaders;
- };
- _0x4cd6e3.prototype.setRequestHeader = function(_0x247682, _0xb8ffde) {
- this._headers = this._headers || {};
- this._headers[_0x247682] = _0xb8ffde;
- };
- _0x4cd6e3.prototype.send = function(_0x1c1c3a) {
- var _0x48cdf7 = this;
- var _0x4356e9 = this._controller = typeof AbortController === "function" && new AbortController();
- var _0x27a727 = this.responseType !== "arraybuffer";
- var _0x2c3990 = {
- 'method': this._method,
- 'headers': this._headers,
- 'signal': _0x4356e9 && _0x4356e9.signal,
- 'body': _0x1c1c3a
- };
- if (typeof window !== "undefined") {
- _0x2c3990.credentials = this.withCredentials ? 'include' : "omit";
- }
- fetch(this._url, _0x2c3990).then(function(_0x42f0ef) {
- _0x42f0ef.headers.forEach(function(_0x14d295, _0x3a598a) {
- _0x48cdf7._resHeaders += _0x3a598a + ": " + _0x14d295 + "\r\n";
- });
- _0x48cdf7.status = _0x42f0ef.status;
- _0x48cdf7.statusText = _0x42f0ef.statusText;
- _0x48cdf7.readyState = 0x3;
- return _0x27a727 ? _0x42f0ef.text() : _0x42f0ef.arrayBuffer();
- }).then(function(_0x27dd6b) {
- if (_0x27a727) {
- _0x48cdf7.responseText = _0x27dd6b;
- } else {
- _0x48cdf7.response = _0x27dd6b;
- }
- _0x48cdf7.readyState = 0x4;
- _0x48cdf7.onreadystatechange();
- })['catch'](function(_0x5c29c6) {
- if (_0x5c29c6.name === 'AbortError') {
- _0x48cdf7.onabort();
- return;
- }
- _0x48cdf7.onerror(_0x5c29c6);
- });
- };
- _0x370613.exports = _0x4cd6e3;
- }, {}],
- 0x2c: [function(_0x1b0d90, _0x30c406, _0x189cbe) {
- 'use strict';
- _0x30c406.exports = _0x1b0d90("./node-request");
- }, {
- './node-request': 0x2a
- }],
- 0x2d: [function(_0x33f110, _0x4daa5c, _0x5bf26a) {
- (function(_0x23cc7c) {
- (function() {
- 'use strict';
- if (typeof window !== 'undefined') {
- _0x4daa5c.exports = window;
- } else {
- if (typeof _0x23cc7c !== 'undefined') {
- _0x4daa5c.exports = _0x23cc7c;
- } else if (typeof self !== 'undefined') {
- _0x4daa5c.exports = self;
- } else {
- _0x4daa5c.exports = {};
- }
- }
- }).call(this);
- }).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {});
- }, {}],
- 0x2e: [function(_0x3923e9, _0x178b31, _0x23a2c8) {
- 'use strict';
- _0x178b31.exports = function(_0xa18551) {
- var _0x24ade5 = function _0x4a74ce(_0x17efb4, _0x3245a7) {
- var _0x367062 = arguments.length;
- var _0x45a5ec = Array(_0x367062 > 0x2 ? _0x367062 - 0x2 : 0x0);
- for (var _0xd9779f = 0x2; _0xd9779f < _0x367062; _0xd9779f++) {
- _0x45a5ec[_0xd9779f - 0x2] = arguments[_0xd9779f];
- }
- var _0x398327 = _0x17efb4 === 'onError';
- var _0x540694 = _0x3245a7;
- for (var _0x418400 = 0x0; _0x418400 < _0xa18551[_0x17efb4].length; _0x418400++) {
- var _0x3445ac = _0xa18551[_0x17efb4][_0x418400];
- _0x540694 = _0x3445ac.apply(undefined, [_0x540694].concat(_0x45a5ec));
- if (_0x398327 && !_0x540694) {
- break;
- }
- }
- return _0x540694;
- };
- return _0x24ade5;
- };
- }, {}],
- 0x2f: [function(_0x5b39a5, _0x10e9bd, _0x326b51) {
- 'use strict';
- _0x10e9bd.exports = function(_0x5ca10e) {
- var _0x4355ea = typeof _0x5ca10e;
- return _0x5ca10e !== null && (_0x4355ea === "object" || _0x4355ea === 'function');
- };
- }, {}],
- 0x30: [function(_0x2e1487, _0x25aaa8, _0x2ee12c) {
- 'use strict';
- var _0x41242f = _0x2e1487("isobject");
- _0x25aaa8.exports = function _0x6940a5(_0x2309f7) {
- var _0x5406ff;
- var _0x18e509;
- if ((_0x41242f(_0x2309f7) === true && Object.prototype.toString.call(_0x2309f7) === "[object Object]") === false) {
- return false;
- }
- _0x5406ff = _0x2309f7.constructor;
- if (typeof _0x5406ff !== "function") {
- return false;
- }
- _0x18e509 = _0x5406ff.prototype;
- if ((_0x41242f(_0x18e509) === true && Object.prototype.toString.call(_0x18e509) === "[object Object]") === false) {
- return false;
- }
- if (_0x18e509.hasOwnProperty("isPrototypeOf") === false) {
- return false;
- }
- return true;
- };
- }, {
- 'isobject': 0x31
- }],
- 0x31: [function(_0x53015d, _0x49b5b5, _0x126a08) {
- 'use strict';
- _0x49b5b5.exports = function _0x4d6abc(_0x2714e7) {
- return _0x2714e7 != null && typeof _0x2714e7 === 'object' && Array.isArray(_0x2714e7) === false;
- };
- }, {}],
- 0x32: [function(_0x444eb8, _0x2db43e, _0x2b8149) {
- 'use strict';
- var _0x489645 = typeof Reflect !== "undefined" ? Reflect.construct : undefined;
- var _0x427d2a = Object.defineProperty;
- var _0x56f576 = Error.captureStackTrace;
- if (_0x56f576 === undefined) {
- _0x56f576 = function _0x269fcc(_0x35bf4f) {
- var _0x35f211 = new Error();
- _0x427d2a(_0x35bf4f, 'stack', {
- 'configurable': true,
- 'get': function _0x17e232() {
- var _0x1e94bb = _0x35f211.stack;
- _0x427d2a(this, 'stack', {
- 'configurable': true,
- 'value': _0x1e94bb,
- 'writable': true
- });
- return _0x1e94bb;
- },
- 'set': function _0x53576e(_0x5d3fd0) {
- _0x427d2a(_0x35bf4f, 'stack', {
- 'configurable': true,
- 'value': _0x5d3fd0,
- 'writable': true
- });
- }
- });
- };
- }
- function _0x10a5d0(_0x39f58a) {
- if (_0x39f58a !== undefined) {
- _0x427d2a(this, 'message', {
- 'configurable': true,
- 'value': _0x39f58a,
- 'writable': true
- });
- }
- var _0x2dba5b = this.constructor.name;
- if (_0x2dba5b !== undefined && _0x2dba5b !== this.name) {
- _0x427d2a(this, "name", {
- 'configurable': true,
- 'value': _0x2dba5b,
- 'writable': true
- });
- }
- _0x56f576(this, this.constructor);
- }
- _0x10a5d0.prototype = Object.create(Error.prototype, {
- 'constructor': {
- 'configurable': true,
- 'value': _0x10a5d0,
- 'writable': true
- }
- });
- var _0x28f836 = function() {
- function _0x58fbe5(_0x2161f7, _0x3fa2dd) {
- return _0x427d2a(_0x2161f7, "name", {
- 'configurable': true,
- 'value': _0x3fa2dd
- });
- }
- try {
- var _0x2c0ed7 = function() { };
- _0x427d2a(_0x2c0ed7, "name", {
- 'configurable': true,
- 'value': "foo"
- });
- if (_0x2c0ed7.name === 'foo') {
- return _0x58fbe5;
- }
- } catch (_0x5891d0) { }
- }();
- function _0x5b2233(_0x1f9818, _0x10a0ae) {
- if (_0x10a0ae == null || _0x10a0ae === Error) {
- _0x10a0ae = _0x10a5d0;
- } else {
- if (typeof _0x10a0ae !== "function") {
- throw new TypeError("super_ should be a function");
- }
- }
- var _0x3e2b33;
- if (typeof _0x1f9818 === "string") {
- _0x3e2b33 = _0x1f9818;
- _0x1f9818 = _0x489645 !== undefined ? function() {
- return _0x489645(_0x10a0ae, arguments, this.constructor);
- } : function() {
- _0x10a0ae.apply(this, arguments);
- };
- if (_0x28f836 !== undefined) {
- _0x28f836(_0x1f9818, _0x3e2b33);
- _0x3e2b33 = undefined;
- }
- } else {
- if (typeof _0x1f9818 !== "function") {
- throw new TypeError("constructor should be either a string or a function");
- }
- }
- _0x1f9818.super_ = _0x1f9818['super'] = _0x10a0ae;
- var _0x3b51ca = {
- 'constructor': {
- 'configurable': true,
- 'value': _0x1f9818,
- 'writable': true
- }
- };
- if (_0x3e2b33 !== undefined) {
- _0x3b51ca.name = {
- 'configurable': true,
- 'value': _0x3e2b33,
- 'writable': true
- };
- }
- _0x1f9818.prototype = Object.create(_0x10a0ae.prototype, _0x3b51ca);
- return _0x1f9818;
- }
- _0x2b8149 = _0x2db43e.exports = _0x5b2233;
- _0x2b8149.BaseError = _0x10a5d0;
- }, {}],
- 0x33: [function(_0x20dbec, _0xbdf08a, _0x9e2779) {
- _0xbdf08a.exports = function _0x53ea56() {
- var _0x2ff51e = [];
- return {
- 'subscribe': _0x5e29c6,
- 'publish': _0x2724a1
- };
- function _0x5e29c6(_0x87f3c9) {
- _0x2ff51e.push(_0x87f3c9);
- return function _0x448c5b() {
- var _0x1c4138 = _0x2ff51e.indexOf(_0x87f3c9);
- if (_0x1c4138 > -0x1) {
- _0x2ff51e.splice(_0x1c4138, 0x1);
- }
- };
- }
- function _0x2724a1() {
- for (var _0x137013 = 0x0; _0x137013 < _0x2ff51e.length; _0x137013++) {
- _0x2ff51e[_0x137013].apply(null, arguments);
- }
- }
- };
- }, {}],
- 0x34: [function(_0x2f5a9c, _0x13c879, _0x4d8d10) {
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */
- 'use strict';
- var _0x4b7e46 = Object.getOwnPropertySymbols;
- var _0x5bc607 = Object.prototype.hasOwnProperty;
- var _0x17c23b = Object.prototype.propertyIsEnumerable;
- function _0xf13c57(_0x3c5e6b) {
- if (_0x3c5e6b === null || _0x3c5e6b === undefined) {
- throw new TypeError("Object.assign cannot be called with null or undefined");
- }
- return Object(_0x3c5e6b);
- }
- function _0x1b5e74() {
- try {
- if (!Object.assign) {
- return false;
- }
- var _0x44973f = new String("abc");
- _0x44973f[0x5] = 'de';
- if (Object.getOwnPropertyNames(_0x44973f)[0x0] === '5') {
- return false;
- }
- var _0x5bea85 = {};
- for (var _0x57308d = 0x0; _0x57308d < 0xa; _0x57308d++) {
- _0x5bea85['_' + String.fromCharCode(_0x57308d)] = _0x57308d;
- }
- var _0x2e1911 = Object.getOwnPropertyNames(_0x5bea85).map(function(_0x175307) {
- return _0x5bea85[_0x175307];
- });
- if (_0x2e1911.join('') !== "0123456789") {
- return false;
- }
- var _0x4db950 = {};
- "abcdefghijklmnopqrst".split('').forEach(function(_0x209a66) {
- _0x4db950[_0x209a66] = _0x209a66;
- });
- if (Object.keys(Object.assign({}, _0x4db950)).join('') !== "abcdefghijklmnopqrst") {
- return false;
- }
- return true;
- } catch (_0x155102) {
- return false;
- }
- }
- _0x13c879.exports = _0x1b5e74() ? Object.assign : function(_0x8cb916, _0x2c6212) {
- var _0xf1aa48;
- var _0x31659d = _0xf13c57(_0x8cb916);
- var _0x1e9166;
- for (var _0x395a13 = 0x1; _0x395a13 < arguments.length; _0x395a13++) {
- _0xf1aa48 = Object(arguments[_0x395a13]);
- for (var _0x556fcb in _0xf1aa48) {
- if (_0x5bc607.call(_0xf1aa48, _0x556fcb)) {
- _0x31659d[_0x556fcb] = _0xf1aa48[_0x556fcb];
- }
- }
- if (_0x4b7e46) {
- _0x1e9166 = _0x4b7e46(_0xf1aa48);
- for (var _0x209147 = 0x0; _0x209147 < _0x1e9166.length; _0x209147++) {
- if (_0x17c23b.call(_0xf1aa48, _0x1e9166[_0x209147])) {
- _0x31659d[_0x1e9166[_0x209147]] = _0xf1aa48[_0x1e9166[_0x209147]];
- }
- }
- }
- }
- return _0x31659d;
- };
- }, {}],
- 0x35: [function(_0x1a432f, _0x4d8498, _0x50d16c) {
- _0x4d8498.exports = function(_0x473f43) {
- if (!_0x473f43) {
- return {};
- }
- var _0x20e7c2 = {};
- var _0x38622f = _0x473f43.replace(/^\s+|\s+$/g, '').split("\n");
- for (var _0x2289af = 0x0; _0x2289af < _0x38622f.length; _0x2289af++) {
- var _0x2085ca = _0x38622f[_0x2289af];
- var _0x2d2bdd = _0x2085ca.indexOf(':');
- var _0x1898e8 = _0x2085ca.slice(0x0, _0x2d2bdd).replace(/^\s+|\s+$/g, '').toLowerCase();
- var _0x2afad3 = _0x2085ca.slice(_0x2d2bdd + 0x1).replace(/^\s+|\s+$/g, '');
- if (typeof _0x20e7c2[_0x1898e8] === "undefined") {
- _0x20e7c2[_0x1898e8] = _0x2afad3;
- } else if (Object.prototype.toString.call(_0x20e7c2[_0x1898e8]) === "[object Array]") {
- _0x20e7c2[_0x1898e8].push(_0x2afad3);
- } else {
- _0x20e7c2[_0x1898e8] = [_0x20e7c2[_0x1898e8], _0x2afad3];
- }
- }
- return _0x20e7c2;
- };
- }, {}],
- 0x36: [function(_0x1ad981, _0x1b67e5, _0x1468cf) {
- 'use strict';
- var _0x243dbe = Object.prototype.hasOwnProperty;
- var _0x3f997a;
- function _0x171649(_0x738a2b) {
- try {
- return decodeURIComponent(_0x738a2b.replace(/\+/g, " "));
- } catch (_0x426e83) {
- return null;
- }
- }
- function _0x1ca7cd(_0x14e22a) {
- try {
- return encodeURIComponent(_0x14e22a);
- } catch (_0x4a27a8) {
- return null;
- }
- }
- function _0xf0adc(_0x56ae9f) {
- var _0x2ce9d7 = /([^=?#&]+)=?([^&]*)/g;
- var _0x4f3ed4 = {};
- var _0x5480d3;
- while (_0x5480d3 = _0x2ce9d7.exec(_0x56ae9f)) {
- var _0x185fe5 = _0x171649(_0x5480d3[0x1]);
- var _0x2c6951 = _0x171649(_0x5480d3[0x2]);
- if (_0x185fe5 === null || _0x2c6951 === null || _0x185fe5 in _0x4f3ed4) {
- continue;
- }
- _0x4f3ed4[_0x185fe5] = _0x2c6951;
- }
- return _0x4f3ed4;
- }
- function _0x51110c(_0x48d986, _0x33f36a) {
- _0x33f36a = _0x33f36a || '';
- var _0x1c86d8 = [];
- var _0x49f36f;
- var _0xdb6750;
- if ("string" !== typeof _0x33f36a) {
- _0x33f36a = '?';
- }
- for (_0xdb6750 in _0x48d986) {
- if (_0x243dbe.call(_0x48d986, _0xdb6750)) {
- _0x49f36f = _0x48d986[_0xdb6750];
- if (!_0x49f36f && (_0x49f36f === null || _0x49f36f === _0x3f997a || isNaN(_0x49f36f))) {
- _0x49f36f = '';
- }
- _0xdb6750 = _0x1ca7cd(_0xdb6750);
- _0x49f36f = _0x1ca7cd(_0x49f36f);
- if (_0xdb6750 === null || _0x49f36f === null) {
- continue;
- }
- _0x1c86d8.push(_0xdb6750 + '=' + _0x49f36f);
- }
- }
- return _0x1c86d8.length ? _0x33f36a + _0x1c86d8.join('&') : '';
- }
- _0x1468cf.stringify = _0x51110c;
- _0x1468cf.parse = _0xf0adc;
- }, {}],
- 0x37: [function(_0xb7542f, _0x403421, _0x456347) {
- 'use strict';
- _0x403421.exports = function _0x308b68(_0x590cb0, _0xe6bb3c) {
- _0xe6bb3c = _0xe6bb3c.split(':')[0x0];
- _0x590cb0 = +_0x590cb0;
- if (!_0x590cb0) {
- return false;
- }
- switch (_0xe6bb3c) {
- case "http":
- case 'ws':
- return _0x590cb0 !== 0x50;
- case "https":
- case "wss":
- return _0x590cb0 !== 0x1bb;
- case "ftp":
- return _0x590cb0 !== 0x15;
- case "gopher":
- return _0x590cb0 !== 0x46;
- case "file":
- return false;
- }
- return _0x590cb0 !== 0x0;
- };
- }, {}],
- 0x38: [function(_0x3fe56b, _0x531e0e, _0x2f8a8d) {
- 'use strict';
- Object.defineProperty(_0x2f8a8d, "__esModule", {
- 'value': true
- });
- var _0x5c4295 = _0x3fe56b("./util/canReportError");
- var _0x5f1e34 = _0x3fe56b("./util/toSubscriber");
- var _0x13dd5b = _0x3fe56b("./symbol/observable");
- var _0x4f09a6 = _0x3fe56b("./util/pipe");
- var _0x56b101 = _0x3fe56b("./config");
- var _0x441506 = function() {
- function _0x4d7180(_0x2196f6) {
- this._isScalar = false;
- if (_0x2196f6) {
- this._subscribe = _0x2196f6;
- }
- }
- _0x4d7180.prototype.lift = function(_0x3faa80) {
- var _0x450626 = new _0x4d7180();
- _0x450626.source = this;
- _0x450626.operator = _0x3faa80;
- return _0x450626;
- };
- _0x4d7180.prototype.subscribe = function(_0x3b51d4, _0xcebdf8, _0x38cb99) {
- var _0x3bb7d6 = this.operator;
- var _0x899a40 = _0x5f1e34.toSubscriber(_0x3b51d4, _0xcebdf8, _0x38cb99);
- if (_0x3bb7d6) {
- _0x899a40.add(_0x3bb7d6.call(_0x899a40, this.source));
- } else {
- _0x899a40.add(this.source || _0x56b101.config.useDeprecatedSynchronousErrorHandling && !_0x899a40.syncErrorThrowable ? this._subscribe(_0x899a40) : this._trySubscribe(_0x899a40));
- }
- if (_0x56b101.config.useDeprecatedSynchronousErrorHandling) {
- if (_0x899a40.syncErrorThrowable) {
- _0x899a40.syncErrorThrowable = false;
- if (_0x899a40.syncErrorThrown) {
- throw _0x899a40.syncErrorValue;
- }
- }
- }
- return _0x899a40;
- };
- _0x4d7180.prototype._trySubscribe = function(_0x2fe260) {
- try {
- return this._subscribe(_0x2fe260);
- } catch (_0x4a2b6b) {
- if (_0x56b101.config.useDeprecatedSynchronousErrorHandling) {
- _0x2fe260.syncErrorThrown = true;
- _0x2fe260.syncErrorValue = _0x4a2b6b;
- }
- if (_0x5c4295.canReportError(_0x2fe260)) {
- _0x2fe260.error(_0x4a2b6b);
- } else {
- console.warn(_0x4a2b6b);
- }
- }
- };
- _0x4d7180.prototype.forEach = function(_0x489e45, _0x11146a) {
- var _0x9f8cbe = this;
- _0x11146a = _0x11b710(_0x11146a);
- return new _0x11146a(function(_0x152eb8, _0x23bdcd) {
- var _0x38ac3a;
- _0x38ac3a = _0x9f8cbe.subscribe(function(_0x4ab974) {
- try {
- _0x489e45(_0x4ab974);
- } catch (_0x2237e7) {
- _0x23bdcd(_0x2237e7);
- if (_0x38ac3a) {
- _0x38ac3a.unsubscribe();
- }
- }
- }, _0x23bdcd, _0x152eb8);
- });
- };
- _0x4d7180.prototype._subscribe = function(_0x1ed3cb) {
- var _0x9ff84b = this.source;
- return _0x9ff84b && _0x9ff84b.subscribe(_0x1ed3cb);
- };
- _0x4d7180.prototype[_0x13dd5b.observable] = function() {
- return this;
- };
- _0x4d7180.prototype.pipe = function() {
- var _0x463ce8 = [];
- for (var _0x88fe09 = 0x0; _0x88fe09 < arguments.length; _0x88fe09++) {
- _0x463ce8[_0x88fe09] = arguments[_0x88fe09];
- }
- if (_0x463ce8.length === 0x0) {
- return this;
- }
- return _0x4f09a6.pipeFromArray(_0x463ce8)(this);
- };
- _0x4d7180.prototype.toPromise = function(_0x16fc84) {
- var _0x571e37 = this;
- _0x16fc84 = _0x11b710(_0x16fc84);
- return new _0x16fc84(function(_0x30e486, _0x1898b3) {
- var _0x2e4267;
- _0x571e37.subscribe(function(_0x488022) {
- return _0x2e4267 = _0x488022;
- }, function(_0x1b5937) {
- return _0x1898b3(_0x1b5937);
- }, function() {
- return _0x30e486(_0x2e4267);
- });
- });
- };
- _0x4d7180.create = function(_0x313cdd) {
- return new _0x4d7180(_0x313cdd);
- };
- return _0x4d7180;
- }();
- _0x2f8a8d.Observable = _0x441506;
- function _0x11b710(_0x5ab7ef) {
- if (!_0x5ab7ef) {
- _0x5ab7ef = _0x56b101.config.Promise || Promise;
- }
- if (!_0x5ab7ef) {
- throw new Error("no Promise impl found");
- }
- return _0x5ab7ef;
- }
- }, {
- './config': 0x3c,
- './symbol/observable': 0x44,
- './util/canReportError': 0x48,
- './util/pipe': 0x4e,
- './util/toSubscriber': 0x4f
- }],
- 0x39: [function(_0x424b26, _0x3ba743, _0x376e7c) {
- 'use strict';
- Object.defineProperty(_0x376e7c, "__esModule", {
- 'value': true
- });
- var _0x345a45 = _0x424b26("./config");
- var _0x2330d9 = _0x424b26("./util/hostReportError");
- _0x376e7c.empty = {
- 'closed': true,
- 'next': function(_0xba0b83) { },
- 'error': function(_0x4ca00c) {
- if (_0x345a45.config.useDeprecatedSynchronousErrorHandling) {
- throw _0x4ca00c;
- } else {
- _0x2330d9.hostReportError(_0x4ca00c);
- }
- },
- 'complete': function() { }
- };
- }, {
- './config': 0x3c,
- './util/hostReportError': 0x49
- }],
- 0x3a: [function(_0x5284e2, _0x54ad02, _0x2fc5db) {
- 'use strict';
- var _0x665df6 = this && this.__extends || function() {
- var _0x18244c = function(_0x3ecd93, _0x2d27be) {
- _0x18244c = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x320b1b, _0x3e26f2) {
- _0x320b1b.__proto__ = _0x3e26f2;
- } || function(_0x46ab7c, _0x48902c) {
- for (var _0x2d0a23 in _0x48902c) if (_0x48902c.hasOwnProperty(_0x2d0a23)) {
- _0x46ab7c[_0x2d0a23] = _0x48902c[_0x2d0a23];
- }
- };
- return _0x18244c(_0x3ecd93, _0x2d27be);
- };
- return function(_0x49707f, _0x2d3c34) {
- _0x18244c(_0x49707f, _0x2d3c34);
- function _0x573884() {
- this.constructor = _0x49707f;
- }
- _0x49707f.prototype = _0x2d3c34 === null ? Object.create(_0x2d3c34) : (_0x573884.prototype = _0x2d3c34.prototype, new _0x573884());
- };
- }();
- Object.defineProperty(_0x2fc5db, "__esModule", {
- 'value': true
- });
- var _0x5825ed = _0x5284e2("./util/isFunction");
- var _0x1a22ad = _0x5284e2("./Observer");
- var _0x53eb65 = _0x5284e2("./Subscription");
- var _0x267c79 = _0x5284e2("../internal/symbol/rxSubscriber");
- var _0x4115b7 = _0x5284e2("./config");
- var _0x3d440f = _0x5284e2("./util/hostReportError");
- var _0x5238ab = function(_0x27db2d) {
- _0x665df6(_0x15772a, _0x27db2d);
- function _0x15772a(_0x2ba37d, _0x29ebb6, _0x1b4841) {
- var _0x3b7179 = _0x27db2d.call(this) || this;
- _0x3b7179.syncErrorValue = null;
- _0x3b7179.syncErrorThrown = false;
- _0x3b7179.syncErrorThrowable = false;
- _0x3b7179.isStopped = false;
- switch (arguments.length) {
- case 0x0:
- _0x3b7179.destination = _0x1a22ad.empty;
- break;
- case 0x1:
- if (!_0x2ba37d) {
- _0x3b7179.destination = _0x1a22ad.empty;
- break;
- }
- if (typeof _0x2ba37d === "object") {
- if (_0x2ba37d instanceof _0x15772a) {
- _0x3b7179.syncErrorThrowable = _0x2ba37d.syncErrorThrowable;
- _0x3b7179.destination = _0x2ba37d;
- _0x2ba37d.add(_0x3b7179);
- } else {
- _0x3b7179.syncErrorThrowable = true;
- _0x3b7179.destination = new _0x4b07a0(_0x3b7179, _0x2ba37d);
- }
- break;
- }
- default:
- _0x3b7179.syncErrorThrowable = true;
- _0x3b7179.destination = new _0x4b07a0(_0x3b7179, _0x2ba37d, _0x29ebb6, _0x1b4841);
- break;
- }
- return _0x3b7179;
- }
- _0x15772a.prototype[_0x267c79.rxSubscriber] = function() {
- return this;
- };
- _0x15772a.create = function(_0x2be241, _0x21af69, _0x66f5c0) {
- var _0x54245b = new _0x15772a(_0x2be241, _0x21af69, _0x66f5c0);
- _0x54245b.syncErrorThrowable = false;
- return _0x54245b;
- };
- _0x15772a.prototype.next = function(_0x4f0d) {
- if (!this.isStopped) {
- this._next(_0x4f0d);
- }
- };
- _0x15772a.prototype.error = function(_0x18a88f) {
- if (!this.isStopped) {
- this.isStopped = true;
- this._error(_0x18a88f);
- }
- };
- _0x15772a.prototype.complete = function() {
- if (!this.isStopped) {
- this.isStopped = true;
- this._complete();
- }
- };
- _0x15772a.prototype.unsubscribe = function() {
- if (this.closed) {
- return;
- }
- this.isStopped = true;
- _0x27db2d.prototype.unsubscribe.call(this);
- };
- _0x15772a.prototype._next = function(_0x1ad83b) {
- this.destination.next(_0x1ad83b);
- };
- _0x15772a.prototype._error = function(_0x3f942f) {
- this.destination.error(_0x3f942f);
- this.unsubscribe();
- };
- _0x15772a.prototype._complete = function() {
- this.destination.complete();
- this.unsubscribe();
- };
- _0x15772a.prototype._unsubscribeAndRecycle = function() {
- var _0x2edd9a = this._parentOrParents;
- this._parentOrParents = null;
- this.unsubscribe();
- this.closed = false;
- this.isStopped = false;
- this._parentOrParents = _0x2edd9a;
- return this;
- };
- return _0x15772a;
- }(_0x53eb65.Subscription);
- _0x2fc5db.Subscriber = _0x5238ab;
- var _0x4b07a0 = function(_0x1ff890) {
- _0x665df6(_0x73cd73, _0x1ff890);
- function _0x73cd73(_0x5165a7, _0x235833, _0x26a10a, _0x31327f) {
- var _0x36af8e = _0x1ff890.call(this) || this;
- _0x36af8e._parentSubscriber = _0x5165a7;
- var _0x1c3fb4;
- var _0x338b03 = _0x36af8e;
- if (_0x5825ed.isFunction(_0x235833)) {
- _0x1c3fb4 = _0x235833;
- } else if (_0x235833) {
- _0x1c3fb4 = _0x235833.next;
- _0x26a10a = _0x235833.error;
- _0x31327f = _0x235833.complete;
- if (_0x235833 !== _0x1a22ad.empty) {
- _0x338b03 = Object.create(_0x235833);
- if (_0x5825ed.isFunction(_0x338b03.unsubscribe)) {
- _0x36af8e.add(_0x338b03.unsubscribe.bind(_0x338b03));
- }
- _0x338b03.unsubscribe = _0x36af8e.unsubscribe.bind(_0x36af8e);
- }
- }
- _0x36af8e._context = _0x338b03;
- _0x36af8e._next = _0x1c3fb4;
- _0x36af8e._error = _0x26a10a;
- _0x36af8e._complete = _0x31327f;
- return _0x36af8e;
- }
- _0x73cd73.prototype.next = function(_0x178cf8) {
- if (!this.isStopped && this._next) {
- var _0x44cbe5 = this._parentSubscriber;
- if (!_0x4115b7.config.useDeprecatedSynchronousErrorHandling || !_0x44cbe5.syncErrorThrowable) {
- this.__tryOrUnsub(this._next, _0x178cf8);
- } else if (this.__tryOrSetError(_0x44cbe5, this._next, _0x178cf8)) {
- this.unsubscribe();
- }
- }
- };
- _0x73cd73.prototype.error = function(_0x34ec57) {
- if (!this.isStopped) {
- var _0x56ddac = this._parentSubscriber;
- var _0x566524 = _0x4115b7.config.useDeprecatedSynchronousErrorHandling;
- if (this._error) {
- if (!_0x566524 || !_0x56ddac.syncErrorThrowable) {
- this.__tryOrUnsub(this._error, _0x34ec57);
- this.unsubscribe();
- } else {
- this.__tryOrSetError(_0x56ddac, this._error, _0x34ec57);
- this.unsubscribe();
- }
- } else {
- if (!_0x56ddac.syncErrorThrowable) {
- this.unsubscribe();
- if (_0x566524) {
- throw _0x34ec57;
- }
- _0x3d440f.hostReportError(_0x34ec57);
- } else {
- if (_0x566524) {
- _0x56ddac.syncErrorValue = _0x34ec57;
- _0x56ddac.syncErrorThrown = true;
- } else {
- _0x3d440f.hostReportError(_0x34ec57);
- }
- this.unsubscribe();
- }
- }
- }
- };
- _0x73cd73.prototype.complete = function() {
- var _0x323589 = this;
- if (!this.isStopped) {
- var _0x521a60 = this._parentSubscriber;
- if (this._complete) {
- var _0xa7b0b7 = function() {
- return _0x323589._complete.call(_0x323589._context);
- };
- if (!_0x4115b7.config.useDeprecatedSynchronousErrorHandling || !_0x521a60.syncErrorThrowable) {
- this.__tryOrUnsub(_0xa7b0b7);
- this.unsubscribe();
- } else {
- this.__tryOrSetError(_0x521a60, _0xa7b0b7);
- this.unsubscribe();
- }
- } else {
- this.unsubscribe();
- }
- }
- };
- _0x73cd73.prototype.__tryOrUnsub = function(_0x22a250, _0x459947) {
- try {
- _0x22a250.call(this._context, _0x459947);
- } catch (_0x389211) {
- this.unsubscribe();
- if (_0x4115b7.config.useDeprecatedSynchronousErrorHandling) {
- throw _0x389211;
- } else {
- _0x3d440f.hostReportError(_0x389211);
- }
- }
- };
- _0x73cd73.prototype.__tryOrSetError = function(_0xf6f92a, _0x31951c, _0x5779cd) {
- if (!_0x4115b7.config.useDeprecatedSynchronousErrorHandling) {
- throw new Error("bad call");
- }
- try {
- _0x31951c.call(this._context, _0x5779cd);
- } catch (_0x3a8daf) {
- return _0x4115b7.config.useDeprecatedSynchronousErrorHandling ? (_0xf6f92a.syncErrorValue = _0x3a8daf, _0xf6f92a.syncErrorThrown = true, true) : (_0x3d440f.hostReportError(_0x3a8daf), true);
- }
- return false;
- };
- _0x73cd73.prototype._unsubscribe = function() {
- var _0x550937 = this._parentSubscriber;
- this._context = null;
- this._parentSubscriber = null;
- _0x550937.unsubscribe();
- };
- return _0x73cd73;
- }(_0x5238ab);
- _0x2fc5db.SafeSubscriber = _0x4b07a0;
- }, {
- '../internal/symbol/rxSubscriber': 0x45,
- './Observer': 0x39,
- './Subscription': 0x3b,
- './config': 0x3c,
- './util/hostReportError': 0x49,
- './util/isFunction': 0x4c
- }],
- 0x3b: [function(_0x3d9b98, _0x4f286b, _0x2ddddc) {
- 'use strict';
- Object.defineProperty(_0x2ddddc, "__esModule", {
- 'value': true
- });
- var _0x4094a5 = _0x3d9b98("./util/isArray");
- var _0x355baa = _0x3d9b98("./util/isObject");
- var _0x1f0f49 = _0x3d9b98('./util/isFunction');
- var _0xff4a01 = _0x3d9b98("./util/UnsubscriptionError");
- var _0x509d5a = function() {
- function _0x575cbf(_0x2c4b0a) {
- this.closed = false;
- this._parentOrParents = null;
- this._subscriptions = null;
- if (_0x2c4b0a) {
- this._ctorUnsubscribe = true;
- this._unsubscribe = _0x2c4b0a;
- }
- }
- _0x575cbf.prototype.unsubscribe = function() {
- var _0x4ad5c7;
- if (this.closed) {
- return;
- }
- var _0x4e92aa = this;
- var _0x438844 = _0x4e92aa._parentOrParents;
- var _0x89ffdd = _0x4e92aa._ctorUnsubscribe;
- var _0x5759a5 = _0x4e92aa._unsubscribe;
- var _0x4601ab = _0x4e92aa._subscriptions;
- this.closed = true;
- this._parentOrParents = null;
- this._subscriptions = null;
- if (_0x438844 instanceof _0x575cbf) {
- _0x438844.remove(this);
- } else {
- if (_0x438844 !== null) {
- for (var _0x9fe145 = 0x0; _0x9fe145 < _0x438844.length; ++_0x9fe145) {
- var _0x22bed6 = _0x438844[_0x9fe145];
- _0x22bed6.remove(this);
- }
- }
- }
- if (_0x1f0f49.isFunction(_0x5759a5)) {
- if (_0x89ffdd) {
- this._unsubscribe = undefined;
- }
- try {
- _0x5759a5.call(this);
- } catch (_0x31a36b) {
- _0x4ad5c7 = _0x31a36b instanceof _0xff4a01.UnsubscriptionError ? _0x17d95c(_0x31a36b.errors) : [_0x31a36b];
- }
- }
- if (_0x4094a5.isArray(_0x4601ab)) {
- var _0x9fe145 = -0x1;
- var _0xc89739 = _0x4601ab.length;
- while (++_0x9fe145 < _0xc89739) {
- var _0x80e9b3 = _0x4601ab[_0x9fe145];
- if (_0x355baa.isObject(_0x80e9b3)) {
- try {
- _0x80e9b3.unsubscribe();
- } catch (_0x41860d) {
- _0x4ad5c7 = _0x4ad5c7 || [];
- if (_0x41860d instanceof _0xff4a01.UnsubscriptionError) {
- _0x4ad5c7 = _0x4ad5c7.concat(_0x17d95c(_0x41860d.errors));
- } else {
- _0x4ad5c7.push(_0x41860d);
- }
- }
- }
- }
- }
- if (_0x4ad5c7) {
- throw new _0xff4a01.UnsubscriptionError(_0x4ad5c7);
- }
- };
- _0x575cbf.prototype.add = function(_0x47bd40) {
- var _0x1dd8e6 = _0x47bd40;
- if (!_0x47bd40) {
- return _0x575cbf.EMPTY;
- }
- switch (typeof _0x47bd40) {
- case "function":
- _0x1dd8e6 = new _0x575cbf(_0x47bd40);
- case "object":
- if (_0x1dd8e6 === this || _0x1dd8e6.closed || typeof _0x1dd8e6.unsubscribe !== "function") {
- return _0x1dd8e6;
- } else {
- if (this.closed) {
- _0x1dd8e6.unsubscribe();
- return _0x1dd8e6;
- } else {
- if (!(_0x1dd8e6 instanceof _0x575cbf)) {
- var _0x1ca5fe = _0x1dd8e6;
- _0x1dd8e6 = new _0x575cbf();
- _0x1dd8e6._subscriptions = [_0x1ca5fe];
- }
- }
- }
- break;
- default:
- {
- throw new Error("unrecognized teardown " + _0x47bd40 + " added to Subscription.");
- }
- }
- var _0x4537a5 = _0x1dd8e6._parentOrParents;
- if (_0x4537a5 === null) {
- _0x1dd8e6._parentOrParents = this;
- } else {
- if (_0x4537a5 instanceof _0x575cbf) {
- if (_0x4537a5 === this) {
- return _0x1dd8e6;
- }
- _0x1dd8e6._parentOrParents = [_0x4537a5, this];
- } else {
- if (_0x4537a5.indexOf(this) === -0x1) {
- _0x4537a5.push(this);
- } else {
- return _0x1dd8e6;
- }
- }
- }
- var _0x185374 = this._subscriptions;
- if (_0x185374 === null) {
- this._subscriptions = [_0x1dd8e6];
- } else {
- _0x185374.push(_0x1dd8e6);
- }
- return _0x1dd8e6;
- };
- _0x575cbf.prototype.remove = function(_0x128aea) {
- var _0x447bb1 = this._subscriptions;
- if (_0x447bb1) {
- var _0xdb520d = _0x447bb1.indexOf(_0x128aea);
- if (_0xdb520d !== -0x1) {
- _0x447bb1.splice(_0xdb520d, 0x1);
- }
- }
- };
- _0x575cbf.EMPTY = function(_0x5d7b74) {
- _0x5d7b74.closed = true;
- return _0x5d7b74;
- }(new _0x575cbf());
- return _0x575cbf;
- }();
- _0x2ddddc.Subscription = _0x509d5a;
- function _0x17d95c(_0x4629c9) {
- return _0x4629c9.reduce(function(_0x1d0261, _0x33a641) {
- return _0x1d0261.concat(_0x33a641 instanceof _0xff4a01.UnsubscriptionError ? _0x33a641.errors : _0x33a641);
- }, []);
- }
- }, {
- './util/UnsubscriptionError': 0x47,
- './util/isArray': 0x4b,
- './util/isFunction': 0x4c,
- './util/isObject': 0x4d
- }],
- 0x3c: [function(_0x1fb8cc, _0x150f4f, _0x5e49c5) {
- 'use strict';
- Object.defineProperty(_0x5e49c5, "__esModule", {
- 'value': true
- });
- var _0x47dc38 = false;
- _0x5e49c5.config = {
- 'Promise': undefined,
- set 'useDeprecatedSynchronousErrorHandling'(_0x57007f) {
- if (_0x57007f) {
- var _0x328250 = new Error();
- console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n" + _0x328250.stack);
- } else if (_0x47dc38) {
- console.log("RxJS: Back to a better error behavior. Thank you. <3");
- }
- _0x47dc38 = _0x57007f;
- },
- get 'useDeprecatedSynchronousErrorHandling'() {
- return _0x47dc38;
- }
- };
- }, {}],
- 0x3d: [function(_0x461a26, _0x217ad8, _0xfe06f4) {
- 'use strict';
- Object.defineProperty(_0xfe06f4, "__esModule", {
- 'value': true
- });
- var _0x9c4ab1 = _0x461a26('../Observable');
- _0xfe06f4.EMPTY = new _0x9c4ab1.Observable(function(_0x2d21a4) {
- return _0x2d21a4.complete();
- });
- function _0x29c741(_0x4c48e9) {
- return _0x4c48e9 ? _0x3fc72d(_0x4c48e9) : _0xfe06f4.EMPTY;
- }
- _0xfe06f4.empty = _0x29c741;
- function _0x3fc72d(_0x1defc5) {
- return new _0x9c4ab1.Observable(function(_0x42088f) {
- return _0x1defc5.schedule(function() {
- return _0x42088f.complete();
- });
- });
- }
- }, {
- '../Observable': 0x38
- }],
- 0x3e: [function(_0x3793c1, _0x561fcd, _0x57b2ab) {
- 'use strict';
- var _0x2a6f62 = this && this.__extends || function() {
- var _0x3a8cb0 = function(_0x2b5faf, _0x284f77) {
- _0x3a8cb0 = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x4f4bd9, _0x42b4a5) {
- _0x4f4bd9.__proto__ = _0x42b4a5;
- } || function(_0x1a3d42, _0x249f0d) {
- for (var _0x1a3701 in _0x249f0d) if (_0x249f0d.hasOwnProperty(_0x1a3701)) {
- _0x1a3d42[_0x1a3701] = _0x249f0d[_0x1a3701];
- }
- };
- return _0x3a8cb0(_0x2b5faf, _0x284f77);
- };
- return function(_0x35fc67, _0x2315ba) {
- _0x3a8cb0(_0x35fc67, _0x2315ba);
- function _0x45cbb8() {
- this.constructor = _0x35fc67;
- }
- _0x35fc67.prototype = _0x2315ba === null ? Object.create(_0x2315ba) : (_0x45cbb8.prototype = _0x2315ba.prototype, new _0x45cbb8());
- };
- }();
- Object.defineProperty(_0x57b2ab, "__esModule", {
- 'value': true
- });
- var _0x182600 = _0x3793c1("../Subscriber");
- function _0x23e314(_0x23ab5f) {
- if (_0x23ab5f === undefined) {
- _0x23ab5f = null;
- }
- return function(_0x4e3a4a) {
- return _0x4e3a4a.lift(new _0xb4fc17(_0x23ab5f));
- };
- }
- _0x57b2ab.defaultIfEmpty = _0x23e314;
- var _0xb4fc17 = function() {
- function _0x1db892(_0x36ca1e) {
- this.defaultValue = _0x36ca1e;
- }
- _0x1db892.prototype.call = function(_0x52f8cb, _0x2f8a80) {
- return _0x2f8a80.subscribe(new _0x419af0(_0x52f8cb, this.defaultValue));
- };
- return _0x1db892;
- }();
- var _0x419af0 = function(_0x8077c7) {
- _0x2a6f62(_0x238fb8, _0x8077c7);
- function _0x238fb8(_0xa9f5e2, _0x493b10) {
- var _0x38ceb4 = _0x8077c7.call(this, _0xa9f5e2) || this;
- _0x38ceb4.defaultValue = _0x493b10;
- _0x38ceb4.isEmpty = true;
- return _0x38ceb4;
- }
- _0x238fb8.prototype._next = function(_0xf9cd47) {
- this.isEmpty = false;
- this.destination.next(_0xf9cd47);
- };
- _0x238fb8.prototype._complete = function() {
- if (this.isEmpty) {
- this.destination.next(this.defaultValue);
- }
- this.destination.complete();
- };
- return _0x238fb8;
- }(_0x182600.Subscriber);
- }, {
- '../Subscriber': 0x3a
- }],
- 0x3f: [function(_0x39c503, _0x5134be, _0x14783d) {
- 'use strict';
- var _0x3abbc7 = this && this.__extends || function() {
- var _0x45db14 = function(_0x38ec15, _0x32e68a) {
- _0x45db14 = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x9757c6, _0x131f2f) {
- _0x9757c6.__proto__ = _0x131f2f;
- } || function(_0x374dd4, _0x47e874) {
- for (var _0x1ebd39 in _0x47e874) if (_0x47e874.hasOwnProperty(_0x1ebd39)) {
- _0x374dd4[_0x1ebd39] = _0x47e874[_0x1ebd39];
- }
- };
- return _0x45db14(_0x38ec15, _0x32e68a);
- };
- return function(_0x57c967, _0x295abb) {
- _0x45db14(_0x57c967, _0x295abb);
- function _0x5ab2cd() {
- this.constructor = _0x57c967;
- }
- _0x57c967.prototype = _0x295abb === null ? Object.create(_0x295abb) : (_0x5ab2cd.prototype = _0x295abb.prototype, new _0x5ab2cd());
- };
- }();
- Object.defineProperty(_0x14783d, "__esModule", {
- 'value': true
- });
- var _0x3ba19e = _0x39c503("../Subscriber");
- function _0x122ae0(_0x19316a, _0x46a047) {
- return function _0x4d4d2e(_0x49d1b9) {
- return _0x49d1b9.lift(new _0x3a2662(_0x19316a, _0x46a047));
- };
- }
- _0x14783d.filter = _0x122ae0;
- var _0x3a2662 = function() {
- function _0x1cbd2c(_0x1e29b8, _0x438103) {
- this.predicate = _0x1e29b8;
- this.thisArg = _0x438103;
- }
- _0x1cbd2c.prototype.call = function(_0x5d3bdd, _0x229b4e) {
- return _0x229b4e.subscribe(new _0x27f24a(_0x5d3bdd, this.predicate, this.thisArg));
- };
- return _0x1cbd2c;
- }();
- var _0x27f24a = function(_0x305ad9) {
- _0x3abbc7(_0x20903a, _0x305ad9);
- function _0x20903a(_0x192e12, _0x568be8, _0x5cfca4) {
- var _0x5b8572 = _0x305ad9.call(this, _0x192e12) || this;
- _0x5b8572.predicate = _0x568be8;
- _0x5b8572.thisArg = _0x5cfca4;
- _0x5b8572.count = 0x0;
- return _0x5b8572;
- }
- _0x20903a.prototype._next = function(_0x3f3c98) {
- var _0x440b33;
- try {
- _0x440b33 = this.predicate.call(this.thisArg, _0x3f3c98, this.count++);
- } catch (_0x3c8be3) {
- this.destination.error(_0x3c8be3);
- return;
- }
- if (_0x440b33) {
- this.destination.next(_0x3f3c98);
- }
- };
- return _0x20903a;
- }(_0x3ba19e.Subscriber);
- }, {
- '../Subscriber': 0x3a
- }],
- 0x40: [function(_0x518f6f, _0xdb3dc9, _0x1c97fc) {
- 'use strict';
- var _0x202488 = this && this.__extends || function() {
- var _0x18add3 = function(_0x55be5b, _0x2e2406) {
- _0x18add3 = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x26056b, _0x148a14) {
- _0x26056b.__proto__ = _0x148a14;
- } || function(_0x38b813, _0x5be829) {
- for (var _0x891a6a in _0x5be829) if (_0x5be829.hasOwnProperty(_0x891a6a)) {
- _0x38b813[_0x891a6a] = _0x5be829[_0x891a6a];
- }
- };
- return _0x18add3(_0x55be5b, _0x2e2406);
- };
- return function(_0x26aee0, _0xd4096a) {
- _0x18add3(_0x26aee0, _0xd4096a);
- function _0x1fcb2c() {
- this.constructor = _0x26aee0;
- }
- _0x26aee0.prototype = _0xd4096a === null ? Object.create(_0xd4096a) : (_0x1fcb2c.prototype = _0xd4096a.prototype, new _0x1fcb2c());
- };
- }();
- Object.defineProperty(_0x1c97fc, "__esModule", {
- 'value': true
- });
- var _0x2ded36 = _0x518f6f("../Subscriber");
- function _0x441ca0(_0x18304d, _0xde778b) {
- return function _0x24c4ab(_0x102d96) {
- if (typeof _0x18304d !== 'function') {
- throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
- }
- return _0x102d96.lift(new _0x98f97b(_0x18304d, _0xde778b));
- };
- }
- _0x1c97fc.map = _0x441ca0;
- var _0x98f97b = function() {
- function _0x51d4b7(_0x5db74f, _0x71c0a6) {
- this.project = _0x5db74f;
- this.thisArg = _0x71c0a6;
- }
- _0x51d4b7.prototype.call = function(_0x5747c0, _0x10b404) {
- return _0x10b404.subscribe(new _0x1456e4(_0x5747c0, this.project, this.thisArg));
- };
- return _0x51d4b7;
- }();
- _0x1c97fc.MapOperator = _0x98f97b;
- var _0x1456e4 = function(_0x482f86) {
- _0x202488(_0x14c9c8, _0x482f86);
- function _0x14c9c8(_0x226259, _0x35cf57, _0x45b361) {
- var _0x216cba = _0x482f86.call(this, _0x226259) || this;
- _0x216cba.project = _0x35cf57;
- _0x216cba.count = 0x0;
- _0x216cba.thisArg = _0x45b361 || _0x216cba;
- return _0x216cba;
- }
- _0x14c9c8.prototype._next = function(_0x2569ed) {
- var _0x390b1a;
- try {
- _0x390b1a = this.project.call(this.thisArg, _0x2569ed, this.count++);
- } catch (_0x1610ac) {
- this.destination.error(_0x1610ac);
- return;
- }
- this.destination.next(_0x390b1a);
- };
- return _0x14c9c8;
- }(_0x2ded36.Subscriber);
- }, {
- '../Subscriber': 0x3a
- }],
- 0x41: [function(_0x50164d, _0x4346b0, _0x28f38d) {
- 'use strict';
- Object.defineProperty(_0x28f38d, '__esModule', {
- 'value': true
- });
- var _0x45aca3 = _0x50164d("./scan");
- var _0x364c67 = _0x50164d("./takeLast");
- var _0x1c9072 = _0x50164d("./defaultIfEmpty");
- var _0x142e2d = _0x50164d("../util/pipe");
- function _0x340b00(_0x198cf3, _0x3c5b96) {
- if (arguments.length >= 0x2) {
- return function _0x230f13(_0x38f5b6) {
- return _0x142e2d.pipe(_0x45aca3.scan(_0x198cf3, _0x3c5b96), _0x364c67.takeLast(0x1), _0x1c9072.defaultIfEmpty(_0x3c5b96))(_0x38f5b6);
- };
- }
- return function _0x7bff50(_0x3e4145) {
- return _0x142e2d.pipe(_0x45aca3.scan(function(_0x5e3d92, _0x462e71, _0x1f9530) {
- return _0x198cf3(_0x5e3d92, _0x462e71, _0x1f9530 + 0x1);
- }), _0x364c67.takeLast(0x1))(_0x3e4145);
- };
- }
- _0x28f38d.reduce = _0x340b00;
- }, {
- '../util/pipe': 0x4e,
- './defaultIfEmpty': 0x3e,
- './scan': 0x42,
- './takeLast': 0x43
- }],
- 0x42: [function(_0xe520b7, _0x440126, _0x1201e6) {
- 'use strict';
- var _0x124f53 = this && this.__extends || function() {
- var _0x2e0b40 = function(_0x4742cf, _0x4dca1d) {
- _0x2e0b40 = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x37269b, _0xb31ef3) {
- _0x37269b.__proto__ = _0xb31ef3;
- } || function(_0x3595f7, _0x104419) {
- for (var _0x445709 in _0x104419) if (_0x104419.hasOwnProperty(_0x445709)) {
- _0x3595f7[_0x445709] = _0x104419[_0x445709];
- }
- };
- return _0x2e0b40(_0x4742cf, _0x4dca1d);
- };
- return function(_0x4cfffc, _0x4f29bf) {
- _0x2e0b40(_0x4cfffc, _0x4f29bf);
- function _0x40d4f1() {
- this.constructor = _0x4cfffc;
- }
- _0x4cfffc.prototype = _0x4f29bf === null ? Object.create(_0x4f29bf) : (_0x40d4f1.prototype = _0x4f29bf.prototype, new _0x40d4f1());
- };
- }();
- Object.defineProperty(_0x1201e6, '__esModule', {
- 'value': true
- });
- var _0x200cec = _0xe520b7("../Subscriber");
- function _0x5abc92(_0x112395, _0x4c26c3) {
- var _0x286fa2 = false;
- if (arguments.length >= 0x2) {
- _0x286fa2 = true;
- }
- return function _0x329bc1(_0x5ae768) {
- return _0x5ae768.lift(new _0x10af3c(_0x112395, _0x4c26c3, _0x286fa2));
- };
- }
- _0x1201e6.scan = _0x5abc92;
- var _0x10af3c = function() {
- function _0x2c0c39(_0x18a25b, _0x5f208e, _0x4a4d78) {
- if (_0x4a4d78 === undefined) {
- _0x4a4d78 = false;
- }
- this.accumulator = _0x18a25b;
- this.seed = _0x5f208e;
- this.hasSeed = _0x4a4d78;
- }
- _0x2c0c39.prototype.call = function(_0x40b72c, _0x49cf89) {
- return _0x49cf89.subscribe(new _0x3b00de(_0x40b72c, this.accumulator, this.seed, this.hasSeed));
- };
- return _0x2c0c39;
- }();
- var _0x3b00de = function(_0x5b13c7) {
- _0x124f53(_0x175ed2, _0x5b13c7);
- function _0x175ed2(_0x123cf1, _0x2874a9, _0xdfbf94, _0x58a6f1) {
- var _0x2307ce = _0x5b13c7.call(this, _0x123cf1) || this;
- _0x2307ce.accumulator = _0x2874a9;
- _0x2307ce._seed = _0xdfbf94;
- _0x2307ce.hasSeed = _0x58a6f1;
- _0x2307ce.index = 0x0;
- return _0x2307ce;
- }
- Object.defineProperty(_0x175ed2.prototype, "seed", {
- 'get': function() {
- return this._seed;
- },
- 'set': function(_0x4ebf63) {
- this.hasSeed = true;
- this._seed = _0x4ebf63;
- },
- 'enumerable': true,
- 'configurable': true
- });
- _0x175ed2.prototype._next = function(_0x19691c) {
- if (!this.hasSeed) {
- this.seed = _0x19691c;
- this.destination.next(_0x19691c);
- } else {
- return this._tryNext(_0x19691c);
- }
- };
- _0x175ed2.prototype._tryNext = function(_0x57d2fa) {
- var _0x5c16fb = this.index++;
- var _0x2f8af0;
- try {
- _0x2f8af0 = this.accumulator(this.seed, _0x57d2fa, _0x5c16fb);
- } catch (_0x119d05) {
- this.destination.error(_0x119d05);
- }
- this.seed = _0x2f8af0;
- this.destination.next(_0x2f8af0);
- };
- return _0x175ed2;
- }(_0x200cec.Subscriber);
- }, {
- '../Subscriber': 0x3a
- }],
- 0x43: [function(_0xa4d711, _0x54562b, _0x1ea78c) {
- 'use strict';
- var _0x1f41be = this && this.__extends || function() {
- var _0x1a138c = function(_0xe9285e, _0x26d723) {
- _0x1a138c = Object.setPrototypeOf || {
- '__proto__': []
- } instanceof Array && function(_0x8a3c5b, _0x2afdfa) {
- _0x8a3c5b.__proto__ = _0x2afdfa;
- } || function(_0x44ba3a, _0x2e3e50) {
- for (var _0x2f3132 in _0x2e3e50) if (_0x2e3e50.hasOwnProperty(_0x2f3132)) {
- _0x44ba3a[_0x2f3132] = _0x2e3e50[_0x2f3132];
- }
- };
- return _0x1a138c(_0xe9285e, _0x26d723);
- };
- return function(_0x4ea99b, _0x21f2dd) {
- _0x1a138c(_0x4ea99b, _0x21f2dd);
- function _0xbbcf07() {
- this.constructor = _0x4ea99b;
- }
- _0x4ea99b.prototype = _0x21f2dd === null ? Object.create(_0x21f2dd) : (_0xbbcf07.prototype = _0x21f2dd.prototype, new _0xbbcf07());
- };
- }();
- Object.defineProperty(_0x1ea78c, '__esModule', {
- 'value': true
- });
- var _0x58cf61 = _0xa4d711("../Subscriber");
- var _0x24f476 = _0xa4d711("../util/ArgumentOutOfRangeError");
- var _0x46fae0 = _0xa4d711("../observable/empty");
- function _0x2d658a(_0x395c78) {
- return function _0x11d4b1(_0xe0e3f4) {
- return _0x395c78 === 0x0 ? _0x46fae0.empty() : _0xe0e3f4.lift(new _0x131d78(_0x395c78));
- };
- }
- _0x1ea78c.takeLast = _0x2d658a;
- var _0x131d78 = function() {
- function _0x16ed8d(_0x2a70ac) {
- this.total = _0x2a70ac;
- if (this.total < 0x0) {
- throw new _0x24f476.ArgumentOutOfRangeError();
- }
- }
- _0x16ed8d.prototype.call = function(_0x382dae, _0x5e3bb3) {
- return _0x5e3bb3.subscribe(new _0x256bc8(_0x382dae, this.total));
- };
- return _0x16ed8d;
- }();
- var _0x256bc8 = function(_0x5f037a) {
- _0x1f41be(_0x855afa, _0x5f037a);
- function _0x855afa(_0x245cca, _0x1dc24f) {
- var _0x12d8dd = _0x5f037a.call(this, _0x245cca) || this;
- _0x12d8dd.total = _0x1dc24f;
- _0x12d8dd.ring = new Array();
- _0x12d8dd.count = 0x0;
- return _0x12d8dd;
- }
- _0x855afa.prototype._next = function(_0x35e94d) {
- var _0x3255f6 = this.ring;
- var _0x3985b5 = this.total;
- var _0x4f949c = this.count++;
- if (_0x3255f6.length < _0x3985b5) {
- _0x3255f6.push(_0x35e94d);
- } else {
- var _0x9b94d4 = _0x4f949c % _0x3985b5;
- _0x3255f6[_0x9b94d4] = _0x35e94d;
- }
- };
- _0x855afa.prototype._complete = function() {
- var _0x3a39a9 = this.destination;
- var _0x4abdb7 = this.count;
- if (_0x4abdb7 > 0x0) {
- var _0x143d5e = this.count >= this.total ? this.total : this.count;
- var _0x302011 = this.ring;
- for (var _0x315757 = 0x0; _0x315757 < _0x143d5e; _0x315757++) {
- var _0x29ece8 = _0x4abdb7++ % _0x143d5e;
- _0x3a39a9.next(_0x302011[_0x29ece8]);
- }
- }
- _0x3a39a9.complete();
- };
- return _0x855afa;
- }(_0x58cf61.Subscriber);
- }, {
- '../Subscriber': 0x3a,
- '../observable/empty': 0x3d,
- '../util/ArgumentOutOfRangeError': 0x46
- }],
- 0x44: [function(_0x36d80f, _0x43e0d4, _0x6f956e) {
- 'use strict';
- Object.defineProperty(_0x6f956e, "__esModule", {
- 'value': true
- });
- _0x6f956e.observable = function() {
- return typeof Symbol === 'function' && Symbol.observable || "@@observable";
- }();
- }, {}],
- 0x45: [function(_0x382d94, _0x1b0618, _0xe65fb3) {
- 'use strict';
- Object.defineProperty(_0xe65fb3, "__esModule", {
- 'value': true
- });
- _0xe65fb3.rxSubscriber = function() {
- return typeof Symbol === "function" ? Symbol("rxSubscriber") : "@@rxSubscriber_" + Math.random();
- }();
- _0xe65fb3.$$rxSubscriber = _0xe65fb3.rxSubscriber;
- }, {}],
- 0x46: [function(_0x3c83ae, _0xc71e51, _0x396f99) {
- 'use strict';
- Object.defineProperty(_0x396f99, "__esModule", {
- 'value': true
- });
- var _0x5e1691 = function() {
- function _0x99004c() {
- Error.call(this);
- this.message = "argument out of range";
- this.name = "ArgumentOutOfRangeError";
- return this;
- }
- _0x99004c.prototype = Object.create(Error.prototype);
- return _0x99004c;
- }();
- _0x396f99.ArgumentOutOfRangeError = _0x5e1691;
- }, {}],
- 0x47: [function(_0x5c2530, _0x35c719, _0x410bc9) {
- 'use strict';
- Object.defineProperty(_0x410bc9, "__esModule", {
- 'value': true
- });
- var _0x4e7251 = function() {
- function _0x30f317(_0xc68330) {
- Error.call(this);
- this.message = _0xc68330 ? _0xc68330.length + " errors occurred during unsubscription:\n" + _0xc68330.map(function(_0x3b2b51, _0x1a6747) {
- return _0x1a6747 + 0x1 + ") " + _0x3b2b51.toString();
- }).join("\n ") : '';
- this.name = "UnsubscriptionError";
- this.errors = _0xc68330;
- return this;
- }
- _0x30f317.prototype = Object.create(Error.prototype);
- return _0x30f317;
- }();
- _0x410bc9.UnsubscriptionError = _0x4e7251;
- }, {}],
- 0x48: [function(_0x1d78af, _0x57082a, _0x3dedfe) {
- 'use strict';
- Object.defineProperty(_0x3dedfe, "__esModule", {
- 'value': true
- });
- var _0x3bfacb = _0x1d78af('../Subscriber');
- function _0x4d763d(_0x113942) {
- while (_0x113942) {
- var _0x289663 = _0x113942;
- var _0x5c31aa = _0x289663.closed;
- var _0x28cc8b = _0x289663.destination;
- var _0x43d271 = _0x289663.isStopped;
- if (_0x5c31aa || _0x43d271) {
- return false;
- } else if (_0x28cc8b && _0x28cc8b instanceof _0x3bfacb.Subscriber) {
- _0x113942 = _0x28cc8b;
- } else {
- _0x113942 = null;
- }
- }
- return true;
- }
- _0x3dedfe.canReportError = _0x4d763d;
- }, {
- '../Subscriber': 0x3a
- }],
- 0x49: [function(_0x507370, _0x49f822, _0x20e39e) {
- 'use strict';
- Object.defineProperty(_0x20e39e, "__esModule", {
- 'value': true
- });
- function _0x1aba66(_0x34dcf1) {
- setTimeout(function() {
- throw _0x34dcf1;
- }, 0x0);
- }
- _0x20e39e.hostReportError = _0x1aba66;
- }, {}],
- 0x4a: [function(_0x52fadf, _0x107755, _0x2a5c4d) {
- 'use strict';
- Object.defineProperty(_0x2a5c4d, "__esModule", {
- 'value': true
- });
- function _0x4d3a7e(_0x5c4e84) {
- return _0x5c4e84;
- }
- _0x2a5c4d.identity = _0x4d3a7e;
- }, {}],
- 0x4b: [function(_0x2c33c6, _0x467fd5, _0x3ab58) {
- 'use strict';
- Object.defineProperty(_0x3ab58, "__esModule", {
- 'value': true
- });
- _0x3ab58.isArray = function() {
- return Array.isArray || function(_0x5c7f71) {
- return _0x5c7f71 && typeof _0x5c7f71.length === "number";
- };
- }();
- }, {}],
- 0x4c: [function(_0x41eb89, _0x3d458d, _0x1a4f15) {
- 'use strict';
- Object.defineProperty(_0x1a4f15, "__esModule", {
- 'value': true
- });
- function _0x292f98(_0x2e2057) {
- return typeof _0x2e2057 === "function";
- }
- _0x1a4f15.isFunction = _0x292f98;
- }, {}],
- 0x4d: [function(_0x258b8a, _0x43cf82, _0x3c8591) {
- 'use strict';
- Object.defineProperty(_0x3c8591, "__esModule", {
- 'value': true
- });
- function _0x2760b3(_0x473fbf) {
- return _0x473fbf !== null && typeof _0x473fbf === "object";
- }
- _0x3c8591.isObject = _0x2760b3;
- }, {}],
- 0x4e: [function(_0x38bf80, _0x1a8bc4, _0x22465b) {
- 'use strict';
- Object.defineProperty(_0x22465b, "__esModule", {
- 'value': true
- });
- var _0x590b81 = _0x38bf80("./identity");
- function _0x470378() {
- var _0x2db1fa = [];
- for (var _0x1e49ed = 0x0; _0x1e49ed < arguments.length; _0x1e49ed++) {
- _0x2db1fa[_0x1e49ed] = arguments[_0x1e49ed];
- }
- return _0x43dc2e(_0x2db1fa);
- }
- _0x22465b.pipe = _0x470378;
- function _0x43dc2e(_0x511aa1) {
- if (_0x511aa1.length === 0x0) {
- return _0x590b81.identity;
- }
- if (_0x511aa1.length === 0x1) {
- return _0x511aa1[0x0];
- }
- return function _0x123cf3(_0x492f31) {
- return _0x511aa1.reduce(function(_0x537029, _0x4bfc94) {
- return _0x4bfc94(_0x537029);
- }, _0x492f31);
- };
- }
- _0x22465b.pipeFromArray = _0x43dc2e;
- }, {
- './identity': 0x4a
- }],
- 0x4f: [function(_0x58b86b, _0x4c52d5, _0x9e8195) {
- 'use strict';
- Object.defineProperty(_0x9e8195, "__esModule", {
- 'value': true
- });
- var _0x4a7bb2 = _0x58b86b("../Subscriber");
- var _0x13499d = _0x58b86b("../symbol/rxSubscriber");
- var _0x4a564c = _0x58b86b('../Observer');
- function _0x3f957a(_0x51b338, _0x3362cf, _0x3995a3) {
- if (_0x51b338) {
- if (_0x51b338 instanceof _0x4a7bb2.Subscriber) {
- return _0x51b338;
- }
- if (_0x51b338[_0x13499d.rxSubscriber]) {
- return _0x51b338[_0x13499d.rxSubscriber]();
- }
- }
- if (!_0x51b338 && !_0x3362cf && !_0x3995a3) {
- return new _0x4a7bb2.Subscriber(_0x4a564c.empty);
- }
- return new _0x4a7bb2.Subscriber(_0x51b338, _0x3362cf, _0x3995a3);
- }
- _0x9e8195.toSubscriber = _0x3f957a;
- }, {
- '../Observer': 0x39,
- '../Subscriber': 0x3a,
- '../symbol/rxSubscriber': 0x45
- }],
- 0x50: [function(_0x45f2fd, _0x5298bb, _0x6bb72) {
- 'use strict';
- var _0x231011 = _0x45f2fd("url");
- _0x5298bb.exports = function(_0x4a8861, _0x4171bb, _0x138a75) {
- if (_0x4a8861 === _0x4171bb) {
- return true;
- }
- var _0x38c02c = _0x231011.parse(_0x4a8861, false, true);
- var _0x5c3e4b = _0x231011.parse(_0x4171bb, false, true);
- var _0x41e057 = _0x38c02c.port | 0x0 || (_0x38c02c.protocol === 'https' ? 0x1bb : 0x50);
- var _0x2b9623 = _0x5c3e4b.port | 0x0 || (_0x5c3e4b.protocol === "https" ? 0x1bb : 0x50);
- var _0x4f0735 = {
- 'proto': _0x38c02c.protocol === _0x5c3e4b.protocol,
- 'hostname': _0x38c02c.hostname === _0x5c3e4b.hostname,
- 'port': _0x41e057 === _0x2b9623
- };
- return _0x4f0735.proto && _0x4f0735.hostname && (_0x4f0735.port || _0x138a75);
- };
- }, {
- 'url': 0x51
- }],
- 0x51: [function(_0x5f5c53, _0x4e5b4b, _0x5dd39c) {
- 'use strict';
- var _0x35e973 = /^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;
- _0x4e5b4b.exports = {
- 'regex': _0x35e973,
- 'parse': function(_0x2cbe97) {
- var _0x3454a4 = _0x35e973.exec(_0x2cbe97);
- if (!_0x3454a4) {
- return {};
- }
- return {
- 'protocol': (_0x3454a4[0x1] || '').toLowerCase() || undefined,
- 'hostname': (_0x3454a4[0x5] || '').toLowerCase() || undefined,
- 'port': _0x3454a4[0x6] || undefined
- };
- }
- };
- }, {}],
- 0x52: [function(_0x358885, _0x1d0f45, _0x3248a7) {
- (function(_0x35946a) {
- (function() {
- 'use strict';
- var _0xbbfd1d = _0x358885('requires-port');
- var _0x5afa60 = _0x358885("querystringify");
- var _0xc0746e = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;
- var _0x414b71 = /[\n\r\t]/g;
- var _0x3a3bda = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//;
- var _0x4aa519 = /:\d+$/;
- var _0x27f200 = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i;
- var _0x43b1cb = /^[a-zA-Z]:/;
- function _0x1cc1a6(_0x21f113) {
- return (_0x21f113 ? _0x21f113 : '').toString().replace(_0xc0746e, '');
- }
- var _0x1b9ca4 = [['#', "hash"], ['?', "query"], function _0x556bef(_0x15278d, _0x45ed29) {
- return _0x45ed29.protocol === "file:" || _0x45ed29.protocol === "ftp:" || _0x45ed29.protocol === 'http:' || _0x45ed29.protocol === "https:" || _0x45ed29.protocol === 'ws:' || _0x45ed29.protocol === "wss:" ? _0x15278d.replace(/\\/g, '/') : _0x15278d;
- }, ['/', "pathname"], ['@', "auth", 0x1], [NaN, 'host', undefined, 0x1, 0x1], [/:(\d*)$/, "port", undefined, 0x1], [NaN, "hostname", undefined, 0x1, 0x1]];
- var _0x2f3d8e = {
- 'hash': 0x1,
- 'query': 0x1
- };
- function _0x3e7e52(_0x3bbe64) {
- var _0x541de2;
- if (typeof window !== "undefined") {
- _0x541de2 = window;
- } else {
- if (typeof _0x35946a !== "undefined") {
- _0x541de2 = _0x35946a;
- } else {
- if (typeof self !== "undefined") {
- _0x541de2 = self;
- } else {
- _0x541de2 = {};
- }
- }
- }
- var _0x1dbda3 = _0x541de2.location || {};
- _0x3bbe64 = _0x3bbe64 || _0x1dbda3;
- var _0x5a9497 = {};
- var _0x333d9b = typeof _0x3bbe64;
- var _0x2cb8fa;
- if ("blob:" === _0x3bbe64.protocol) {
- _0x5a9497 = new _0x3fb766(unescape(_0x3bbe64.pathname), {});
- } else {
- if ("string" === _0x333d9b) {
- _0x5a9497 = new _0x3fb766(_0x3bbe64, {});
- for (_0x2cb8fa in _0x2f3d8e) delete _0x5a9497[_0x2cb8fa];
- } else {
- if ("object" === _0x333d9b) {
- for (_0x2cb8fa in _0x3bbe64) {
- if (_0x2cb8fa in _0x2f3d8e) {
- continue;
- }
- _0x5a9497[_0x2cb8fa] = _0x3bbe64[_0x2cb8fa];
- }
- if (_0x5a9497.slashes === undefined) {
- _0x5a9497.slashes = _0x3a3bda.test(_0x3bbe64.href);
- }
- }
- }
- }
- return _0x5a9497;
- }
- function _0x37adf8(_0x2c691a, _0x2360a6) {
- _0x2c691a = (_0x2c691a ? _0x2c691a : '').toString().replace(_0xc0746e, '');
- _0x2c691a = _0x2c691a.replace(_0x414b71, '');
- _0x2360a6 = _0x2360a6 || {};
- var _0x6379cd = _0x27f200.exec(_0x2c691a);
- var _0x5511e2 = _0x6379cd[0x1] ? _0x6379cd[0x1].toLowerCase() : '';
- var _0x358683 = !!_0x6379cd[0x2];
- var _0x2d69ad = !!_0x6379cd[0x3];
- var _0x3b10b2 = 0x0;
- var _0x53ff89;
- if (_0x358683) {
- if (_0x2d69ad) {
- _0x53ff89 = _0x6379cd[0x2] + _0x6379cd[0x3] + _0x6379cd[0x4];
- _0x3b10b2 = _0x6379cd[0x2].length + _0x6379cd[0x3].length;
- } else {
- _0x53ff89 = _0x6379cd[0x2] + _0x6379cd[0x4];
- _0x3b10b2 = _0x6379cd[0x2].length;
- }
- } else if (_0x2d69ad) {
- _0x53ff89 = _0x6379cd[0x3] + _0x6379cd[0x4];
- _0x3b10b2 = _0x6379cd[0x3].length;
- } else {
- _0x53ff89 = _0x6379cd[0x4];
- }
- if (_0x5511e2 === "file:") {
- if (_0x3b10b2 >= 0x2) {
- _0x53ff89 = _0x53ff89.slice(0x2);
- }
- } else {
- if (_0x5511e2 === "file:" || _0x5511e2 === "ftp:" || _0x5511e2 === 'http:' || _0x5511e2 === "https:" || _0x5511e2 === 'ws:' || _0x5511e2 === "wss:") {
- _0x53ff89 = _0x6379cd[0x4];
- } else {
- if (_0x5511e2) {
- if (_0x358683) {
- _0x53ff89 = _0x53ff89.slice(0x2);
- }
- } else if (_0x3b10b2 >= 0x2 && (_0x2360a6.protocol === "file:" || _0x2360a6.protocol === "ftp:" || _0x2360a6.protocol === 'http:' || _0x2360a6.protocol === "https:" || _0x2360a6.protocol === 'ws:' || _0x2360a6.protocol === "wss:")) {
- _0x53ff89 = _0x6379cd[0x4];
- }
- }
- }
- return {
- 'protocol': _0x5511e2,
- 'slashes': _0x358683 || _0x5511e2 === "file:" || _0x5511e2 === "ftp:" || _0x5511e2 === 'http:' || _0x5511e2 === "https:" || _0x5511e2 === 'ws:' || _0x5511e2 === "wss:",
- 'slashesCount': _0x3b10b2,
- 'rest': _0x53ff89
- };
- }
- function _0x4e5f6a(_0x385635, _0x245fe3) {
- if (_0x385635 === '') {
- return _0x245fe3;
- }
- var _0x12aaf8 = (_0x245fe3 || '/').split('/').slice(0x0, -0x1).concat(_0x385635.split('/'));
- var _0x2edbdb = _0x12aaf8.length;
- var _0xf845de = _0x12aaf8[_0x2edbdb - 0x1];
- var _0x537131 = false;
- var _0x59797a = 0x0;
- while (_0x2edbdb--) {
- if (_0x12aaf8[_0x2edbdb] === '.') {
- _0x12aaf8.splice(_0x2edbdb, 0x1);
- } else {
- if (_0x12aaf8[_0x2edbdb] === '..') {
- _0x12aaf8.splice(_0x2edbdb, 0x1);
- _0x59797a++;
- } else {
- if (_0x59797a) {
- if (_0x2edbdb === 0x0) {
- _0x537131 = true;
- }
- _0x12aaf8.splice(_0x2edbdb, 0x1);
- _0x59797a--;
- }
- }
- }
- }
- if (_0x537131) {
- _0x12aaf8.unshift('');
- }
- if (_0xf845de === '.' || _0xf845de === '..') {
- _0x12aaf8.push('');
- }
- return _0x12aaf8.join('/');
- }
- function _0x3fb766(_0x4f7391, _0x533a0e, _0x1465e7) {
- _0x4f7391 = (_0x4f7391 ? _0x4f7391 : '').toString().replace(_0xc0746e, '');
- _0x4f7391 = _0x4f7391.replace(_0x414b71, '');
- if (!(this instanceof _0x3fb766)) {
- return new _0x3fb766(_0x4f7391, _0x533a0e, _0x1465e7);
- }
- var _0x360c1f;
- var _0x472abd;
- var _0x1643bf;
- var _0x56cecd;
- var _0x4076ca;
- var _0x516eb4;
- var _0x2aa1b0 = _0x1b9ca4.slice();
- var _0x221d29 = typeof _0x533a0e;
- var _0x59f041 = this;
- var _0x21ffb3 = 0x0;
- if ("object" !== _0x221d29 && "string" !== _0x221d29) {
- _0x1465e7 = _0x533a0e;
- _0x533a0e = null;
- }
- if (_0x1465e7 && 'function' !== typeof _0x1465e7) {
- _0x1465e7 = _0x5afa60.parse;
- }
- _0x533a0e = _0x3e7e52(_0x533a0e);
- _0x472abd = _0x37adf8(_0x4f7391 || '', _0x533a0e);
- _0x360c1f = !_0x472abd.protocol && !_0x472abd.slashes;
- _0x59f041.slashes = _0x472abd.slashes || _0x360c1f && _0x533a0e.slashes;
- _0x59f041.protocol = _0x472abd.protocol || _0x533a0e.protocol || '';
- _0x4f7391 = _0x472abd.rest;
- if (_0x472abd.protocol === "file:" && (_0x472abd.slashesCount !== 0x2 || _0x43b1cb.test(_0x4f7391)) || !_0x472abd.slashes && (_0x472abd.protocol || _0x472abd.slashesCount < 0x2 || !(_0x59f041.protocol === "file:" || _0x59f041.protocol === "ftp:" || _0x59f041.protocol === 'http:' || _0x59f041.protocol === "https:" || _0x59f041.protocol === 'ws:' || _0x59f041.protocol === "wss:"))) {
- _0x2aa1b0[0x3] = [/(.*)/, "pathname"];
- }
- for (; _0x21ffb3 < _0x2aa1b0.length; _0x21ffb3++) {
- _0x56cecd = _0x2aa1b0[_0x21ffb3];
- if (typeof _0x56cecd === "function") {
- _0x4f7391 = _0x56cecd(_0x4f7391, _0x59f041);
- continue;
- }
- _0x1643bf = _0x56cecd[0x0];
- _0x516eb4 = _0x56cecd[0x1];
- if (_0x1643bf !== _0x1643bf) {
- _0x59f041[_0x516eb4] = _0x4f7391;
- } else {
- if ("string" === typeof _0x1643bf) {
- _0x4076ca = _0x1643bf === '@' ? _0x4f7391.lastIndexOf(_0x1643bf) : _0x4f7391.indexOf(_0x1643bf);
- if (~_0x4076ca) {
- if ("number" === typeof _0x56cecd[0x2]) {
- _0x59f041[_0x516eb4] = _0x4f7391.slice(0x0, _0x4076ca);
- _0x4f7391 = _0x4f7391.slice(_0x4076ca + _0x56cecd[0x2]);
- } else {
- _0x59f041[_0x516eb4] = _0x4f7391.slice(_0x4076ca);
- _0x4f7391 = _0x4f7391.slice(0x0, _0x4076ca);
- }
- }
- } else if (_0x4076ca = _0x1643bf.exec(_0x4f7391)) {
- _0x59f041[_0x516eb4] = _0x4076ca[0x1];
- _0x4f7391 = _0x4f7391.slice(0x0, _0x4076ca.index);
- }
- }
- _0x59f041[_0x516eb4] = _0x59f041[_0x516eb4] || (_0x360c1f && _0x56cecd[0x3] ? _0x533a0e[_0x516eb4] || '' : '');
- if (_0x56cecd[0x4]) {
- _0x59f041[_0x516eb4] = _0x59f041[_0x516eb4].toLowerCase();
- }
- }
- if (_0x1465e7) {
- _0x59f041.query = _0x1465e7(_0x59f041.query);
- }
- if (_0x360c1f && _0x533a0e.slashes && _0x59f041.pathname.charAt(0x0) !== '/' && (_0x59f041.pathname !== '' || _0x533a0e.pathname !== '')) {
- _0x59f041.pathname = _0x4e5f6a(_0x59f041.pathname, _0x533a0e.pathname);
- }
- if (_0x59f041.pathname.charAt(0x0) !== '/' && (_0x59f041.protocol === "file:" || _0x59f041.protocol === "ftp:" || _0x59f041.protocol === 'http:' || _0x59f041.protocol === "https:" || _0x59f041.protocol === 'ws:' || _0x59f041.protocol === "wss:")) {
- _0x59f041.pathname = '/' + _0x59f041.pathname;
- }
- if (!_0xbbfd1d(_0x59f041.port, _0x59f041.protocol)) {
- _0x59f041.host = _0x59f041.hostname;
- _0x59f041.port = '';
- }
- _0x59f041.username = _0x59f041.password = '';
- if (_0x59f041.auth) {
- _0x4076ca = _0x59f041.auth.indexOf(':');
- if (~_0x4076ca) {
- _0x59f041.username = _0x59f041.auth.slice(0x0, _0x4076ca);
- _0x59f041.username = encodeURIComponent(decodeURIComponent(_0x59f041.username));
- _0x59f041.password = _0x59f041.auth.slice(_0x4076ca + 0x1);
- _0x59f041.password = encodeURIComponent(decodeURIComponent(_0x59f041.password));
- } else {
- _0x59f041.username = encodeURIComponent(decodeURIComponent(_0x59f041.auth));
- }
- _0x59f041.auth = _0x59f041.password ? _0x59f041.username + ':' + _0x59f041.password : _0x59f041.username;
- }
- _0x59f041.origin = _0x59f041.protocol !== "file:" && (_0x59f041.protocol === "file:" || _0x59f041.protocol === "ftp:" || _0x59f041.protocol === 'http:' || _0x59f041.protocol === "https:" || _0x59f041.protocol === 'ws:' || _0x59f041.protocol === "wss:") && _0x59f041.host ? _0x59f041.protocol + '//' + _0x59f041.host : "null";
- _0x59f041.href = _0x59f041.toString();
- }
- function _0x3ead15(_0x4f3011, _0x16c6eb, _0x544a5b) {
- var _0x154862 = this;
- switch (_0x4f3011) {
- case "query":
- if ("string" === typeof _0x16c6eb && _0x16c6eb.length) {
- _0x16c6eb = (_0x544a5b || _0x5afa60.parse)(_0x16c6eb);
- }
- _0x154862[_0x4f3011] = _0x16c6eb;
- break;
- case "port":
- _0x154862[_0x4f3011] = _0x16c6eb;
- if (!_0xbbfd1d(_0x16c6eb, _0x154862.protocol)) {
- _0x154862.host = _0x154862.hostname;
- _0x154862[_0x4f3011] = '';
- } else if (_0x16c6eb) {
- _0x154862.host = _0x154862.hostname + ':' + _0x16c6eb;
- }
- break;
- case "hostname":
- _0x154862[_0x4f3011] = _0x16c6eb;
- if (_0x154862.port) {
- _0x16c6eb += ':' + _0x154862.port;
- }
- _0x154862.host = _0x16c6eb;
- break;
- case "host":
- _0x154862[_0x4f3011] = _0x16c6eb;
- if (_0x4aa519.test(_0x16c6eb)) {
- _0x16c6eb = _0x16c6eb.split(':');
- _0x154862.port = _0x16c6eb.pop();
- _0x154862.hostname = _0x16c6eb.join(':');
- } else {
- _0x154862.hostname = _0x16c6eb;
- _0x154862.port = '';
- }
- break;
- case "protocol":
- _0x154862.protocol = _0x16c6eb.toLowerCase();
- _0x154862.slashes = !_0x544a5b;
- break;
- case "pathname":
- case "hash":
- if (_0x16c6eb) {
- var _0x1b93dd = _0x4f3011 === "pathname" ? '/' : '#';
- _0x154862[_0x4f3011] = _0x16c6eb.charAt(0x0) !== _0x1b93dd ? _0x1b93dd + _0x16c6eb : _0x16c6eb;
- } else {
- _0x154862[_0x4f3011] = _0x16c6eb;
- }
- break;
- case 'username':
- case "password":
- _0x154862[_0x4f3011] = encodeURIComponent(_0x16c6eb);
- break;
- case "auth":
- var _0x3e399e = _0x16c6eb.indexOf(':');
- if (~_0x3e399e) {
- _0x154862.username = _0x16c6eb.slice(0x0, _0x3e399e);
- _0x154862.username = encodeURIComponent(decodeURIComponent(_0x154862.username));
- _0x154862.password = _0x16c6eb.slice(_0x3e399e + 0x1);
- _0x154862.password = encodeURIComponent(decodeURIComponent(_0x154862.password));
- } else {
- _0x154862.username = encodeURIComponent(decodeURIComponent(_0x16c6eb));
- }
- }
- for (var _0x393a7d = 0x0; _0x393a7d < _0x1b9ca4.length; _0x393a7d++) {
- var _0x3a1777 = _0x1b9ca4[_0x393a7d];
- if (_0x3a1777[0x4]) {
- _0x154862[_0x3a1777[0x1]] = _0x154862[_0x3a1777[0x1]].toLowerCase();
- }
- }
- _0x154862.auth = _0x154862.password ? _0x154862.username + ':' + _0x154862.password : _0x154862.username;
- _0x154862.origin = _0x154862.protocol !== "file:" && (_0x154862.protocol === "file:" || _0x154862.protocol === "ftp:" || _0x154862.protocol === 'http:' || _0x154862.protocol === "https:" || _0x154862.protocol === 'ws:' || _0x154862.protocol === "wss:") && _0x154862.host ? _0x154862.protocol + '//' + _0x154862.host : 'null';
- _0x154862.href = _0x154862.toString();
- return _0x154862;
- }
- function _0x250110(_0x285cfa) {
- if (!_0x285cfa || "function" !== typeof _0x285cfa) {
- _0x285cfa = _0x5afa60.stringify;
- }
- var _0x3fae12;
- var _0x811f3e = this;
- var _0x57429c = _0x811f3e.host;
- var _0x1b0304 = _0x811f3e.protocol;
- if (_0x1b0304 && _0x1b0304.charAt(_0x1b0304.length - 0x1) !== ':') {
- _0x1b0304 += ':';
- }
- var _0x5772fa = _0x1b0304 + (_0x811f3e.protocol && _0x811f3e.slashes || _0x811f3e.protocol === "file:" || _0x811f3e.protocol === "ftp:" || _0x811f3e.protocol === 'http:' || _0x811f3e.protocol === "https:" || _0x811f3e.protocol === 'ws:' || _0x811f3e.protocol === "wss:" ? '//' : '');
- if (_0x811f3e.username) {
- _0x5772fa += _0x811f3e.username;
- if (_0x811f3e.password) {
- _0x5772fa += ':' + _0x811f3e.password;
- }
- _0x5772fa += '@';
- } else {
- if (_0x811f3e.password) {
- _0x5772fa += ':' + _0x811f3e.password;
- _0x5772fa += '@';
- } else if (_0x811f3e.protocol !== 'file:' && (_0x811f3e.protocol === "file:" || _0x811f3e.protocol === "ftp:" || _0x811f3e.protocol === 'http:' || _0x811f3e.protocol === "https:" || _0x811f3e.protocol === 'ws:' || _0x811f3e.protocol === "wss:") && !_0x57429c && _0x811f3e.pathname !== '/') {
- _0x5772fa += '@';
- }
- }
- if (_0x57429c[_0x57429c.length - 0x1] === ':' || _0x4aa519.test(_0x811f3e.hostname) && !_0x811f3e.port) {
- _0x57429c += ':';
- }
- _0x5772fa += _0x57429c + _0x811f3e.pathname;
- _0x3fae12 = "object" === typeof _0x811f3e.query ? _0x285cfa(_0x811f3e.query) : _0x811f3e.query;
- if (_0x3fae12) {
- _0x5772fa += '?' !== _0x3fae12.charAt(0x0) ? '?' + _0x3fae12 : _0x3fae12;
- }
- if (_0x811f3e.hash) {
- _0x5772fa += _0x811f3e.hash;
- }
- return _0x5772fa;
- }
- _0x3fb766.prototype = {
- 'set': _0x3ead15,
- 'toString': _0x250110
- };
- _0x3fb766.extractProtocol = _0x37adf8;
- _0x3fb766.location = _0x3e7e52;
- _0x3fb766.trimLeft = _0x1cc1a6;
- _0x3fb766.qs = _0x5afa60;
- _0x1d0f45.exports = _0x3fb766;
- }).call(this);
- }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {});
- }, {
- 'querystringify': 0x36,
- 'requires-port': 0x37
- }]
- }, {}, [0x1]);
Advertisement
Add Comment
Please, Sign In to add comment