diff --git a/CHANGELOG.md b/CHANGELOG.md index a97dfb7..0b4b894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,37 @@ +# Change Log + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + + +## [0.2.11](https://github.com/microlinkhq/mql/compare/v0.2.6...v0.2.11) (2019-03-11) + + +### Bug Fixes + +* add missing browser dependency ([ec1ed09](https://github.com/microlinkhq/mql/commit/ec1ed09)) + + + + +## 0.2.10 (2019-03-03) + + + + +## 0.2.9 (2019-03-03) + + + + +## 0.2.8 (2019-03-03) + + + + +## 0.2.7 (2019-03-03) + + + ## 0.2.10 (2019-03-03) diff --git a/package.json b/package.json index 886ed91..8de7385 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@microlink/mql", "description": "Microlink Query Language", "homepage": "https://nicedoc.io/microlinkhq/mql", - "version": "0.2.10", + "version": "0.2.11", "browser": "src/browser.js", "main": "src/node.js", "author": { diff --git a/src/umd.min.js b/src/umd.min.js index dc56d16..a5f0b74 100644 --- a/src/umd.min.js +++ b/src/umd.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).mql=e()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e,r,n,o,a,i){try{var s=t[a](i),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function r(t){return function(){var r=this,n=arguments;return new Promise(function(o,a){var i=t.apply(r,n);function s(t){e(i,o,a,s,u,"next",t)}function u(t){e(i,o,a,s,u,"throw",t)}s(void 0)})}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var r=0;r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw a;return L()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=x(t,e,r);if("normal"===u.type){if(n=r.done?y:l,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function O(){}function _(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function A(e){var r;this._invoke=function(n,o){function i(){return new Promise(function(r,i){!function r(n,o,i,s){var u=x(e[n],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"===t(h)&&a.call(h,"__await")?Promise.resolve(h.__await).then(function(t){r("next",t,i,s)},function(t){r("throw",t,i,s)}):Promise.resolve(h).then(function(t){c.value=t,i(c)},function(t){return r("throw",t,i,s)})}s(u.arg)}(n,o,r,i)})}return r=r?r.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0,w=g&&b.regeneratorRuntime;b.regeneratorRuntime=void 0;var x=d;if(g)b.regeneratorRuntime=w;else try{delete b.regeneratorRuntime}catch(t){b.regeneratorRuntime=void 0}var j=x,O=Object.prototype.hasOwnProperty,_=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),k=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(Array.isArray(r)){for(var n=[],o=0;o=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?o+=n.charAt(a):i<128?o+=_[i]:i<2048?o+=_[192|i>>6]+_[128|63&i]:i<55296||i>=57344?o+=_[224|i>>12]+_[128|i>>6&63]+_[128|63&i]:(a+=1,i=65536+((1023&i)<<10|1023&n.charCodeAt(a)),o+=_[240|i>>18]+_[128|i>>12&63]+_[128|i>>6&63]+_[128|63&i])}return o},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function e(r,n,o){if(!n)return r;if("object"!==t(n)){if(Array.isArray(r))r.push(n);else{if("object"!==t(r))return[r,n];(o&&(o.plainObjects||o.allowPrototypes)||!O.call(Object.prototype,n))&&(r[n]=!0)}return r}if("object"!==t(r))return[r].concat(n);var a=r;return Array.isArray(r)&&!Array.isArray(n)&&(a=k(r,o)),Array.isArray(r)&&Array.isArray(n)?(n.forEach(function(n,a){O.call(r,a)?r[a]&&"object"===t(r[a])?r[a]=e(r[a],n,o):r.push(n):r[a]=n}),r):Object.keys(n).reduce(function(t,r){var a=n[r];return O.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t},a)}},E=String.prototype.replace,R=/%20/g,S={default:"RFC3986",formatters:{RFC1738:function(t){return E.call(t,R,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"},C={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},P=Array.isArray,L=Array.prototype.push,U=function(t,e){L.apply(t,P(e)?e:[e])},T=Date.prototype.toISOString,N={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:A.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(t){return T.call(t)},skipNulls:!1,strictNullHandling:!1},q=function t(e,r,n,o,a,i,s,u,c,h,f,l,p){var y=e;if("function"==typeof s?y=s(r,y):y instanceof Date&&(y=h(y)),null===y){if(o)return i&&!l?i(r,N.encoder,p):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||A.isBuffer(y))return i?[f(l?r:i(r,N.encoder,p))+"="+f(i(y,N.encoder,p))]:[f(r)+"="+f(String(y))];var v,m=[];if(void 0===y)return m;if(Array.isArray(s))v=s;else{var d=Object.keys(y);v=u?d.sort(u):d}for(var b=0;b0?_+O:""}),F=2147483647,D=36,H=1,z=26,G=38,B=700,M=72,V=128,$="-",K=/[^\x20-\x7E]/,Q=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Y=D-H,Z=Math.floor,J=String.fromCharCode;function X(t){throw new RangeError(W[t])}function tt(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function et(t,e,r){var n=0;for(t=r?Z(t/B):t>>1,t+=Z(t/e);t>Y*z>>1;n+=D)t=Z(t/Y);return Z(n+(Y+1)*t/(t+G))}function rt(t){return function(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]);var o=function(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}((t=t.replace(Q,".")).split("."),e).join(".");return n+o}(t,function(t){return K.test(t)?"xn--"+function(t){var e,r,n,o,a,i,s,u,c,h,f,l,p,y,v,m=[];for(l=(t=function(t){for(var e,r,n=[],o=0,a=t.length;o=55296&&e<=56319&&o=e&&fZ((F-r)/(p=n+1))&&X("overflow"),r+=(s-e)*p,e=s,i=0;iF&&X("overflow"),f==e){for(u=r,c=D;!(u<(h=c<=a?H:c>=a+z?z:c-a));c+=D)v=u-h,y=D-h,m.push(J(tt(h+v%y,0))),u=Z(v/y);m.push(J(tt(u,0))),a=et(r,p,n==o),r=0,++n}++r,++e}return m.join("")}(t):t})}global.setTimeout,global.clearTimeout;var nt=global.performance||{};nt.now||nt.mozNow||nt.msNow||nt.oNow||nt.webkitNow;function ot(t){return null===t}function at(t){return"string"==typeof t}function it(e){return"object"===t(e)&&null!==e}function st(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var ut=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function ct(e){switch(t(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function ht(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n0&&s>i&&(s=i);for(var u=0;u=0?(c=p.substr(0,y),h=p.substr(y+1)):(c=p,h=""),f=decodeURIComponent(c),l=decodeURIComponent(h),st(o,f)?ut(o[f])?o[f].push(l):o[f]=[o[f],l]:o[f]=l}return o}var pt={parse:Rt,resolve:function(t,e){return Rt(t,!1,!0).resolve(e)},resolveObject:function(t,e){return t?Rt(t,!1,!0).resolveObject(e):e},format:function(t){at(t)&&(t=St({},t));return Ct(t)},Url:yt};function yt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var vt=/^([a-z0-9.+-]+:)/i,mt=/:[0-9]*$/,dt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,bt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),gt=["'"].concat(bt),wt=["%","/","?",";","#"].concat(gt),xt=["/","?","#"],jt=255,Ot=/^[+a-z0-9A-Z_-]{0,63}$/,_t=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kt={javascript:!0,"javascript:":!0},At={javascript:!0,"javascript:":!0},Et={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Rt(t,e,r){if(t&&it(t)&&t instanceof yt)return t;var n=new yt;return n.parse(t,e,r),n}function St(e,r,n,o){if(!at(r))throw new TypeError("Parameter 'url' must be a string, not "+t(r));var a=r.indexOf("?"),i=-1!==a&&a127?O+="x":O+=j[_];if(!O.match(Ot)){var A=x.slice(0,h),E=x.slice(h+1),R=j.match(_t);R&&(A.push(R[1]),E.unshift(R[2])),E.length&&(u="/"+E.join(".")+u),e.hostname=A.join(".");break}}}}e.hostname.length>jt?e.hostname="":e.hostname=e.hostname.toLowerCase(),w||(e.hostname=rt(e.hostname)),p=e.port?":"+e.port:"";var S=e.hostname||"";e.host=S+p,e.href+=e.host,w&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!kt[v])for(h=0,l=gt.length;h0)&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift())),n.search=t.search,n.query=t.query,ot(n.pathname)&&ot(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=w.slice(-1)[0],O=(n.host||t.host||w.length>1)&&("."===j||".."===j)||""===j,_=0,k=w.length;k>=0;k--)"."===(j=w[k])?w.splice(k,1):".."===j?(w.splice(k,1),_++):_&&(w.splice(k,1),_--);if(!b&&!g)for(;_--;_)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),O&&"/"!==w.join("/").substr(-1)&&w.push("");var A=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(n.hostname=n.host=A?"":w.length?w.shift():"",(v=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift())),(b=b||n.host&&w.length)&&!A&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),ot(n.pathname)&&ot(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},yt.prototype.parseHost=function(){return Pt(this)};var Lt=pt.URL,Ut=/^https?:\/\//i,Tt=function(t){return"undefined"!=typeof self&&self&&t in self?self[t]:"undefined"!=typeof window&&window&&t in window?window[t]:"undefined"!=typeof global&&global&&t in global?global[t]:"undefined"!=typeof globalThis&&globalThis?globalThis[t]:void 0},Nt=Tt("document"),qt=Tt("Headers"),It=Tt("Response"),Ft=Tt("fetch"),Dt=Tt("AbortController"),Ht=function(e){return null!==e&&"object"===t(e)},zt="function"==typeof Tt("AbortController"),Gt=function t(){for(var e={},r=arguments.length,n=new Array(r),o=0;o0)){t.next=13;break}return t.next=12,Yt(r);case 12:return t.abrupt("return",this._retry(e));case 13:if(!this._throwHttpErrors){t.next=15;break}throw t.t0;case 15:case"end":return t.stop()}},t,this,[[0,6]])}));return function(e){return t.apply(this,arguments)}}()},{key:"_fetch",value:function(){var t=r(j.mark(function t(){var e,r,n,o,a,i;return j.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,r=!1,n=void 0,t.prev=3,o=this._hooks.beforeRequest[Symbol.iterator]();case 5:if(e=(a=o.next()).done){t.next=12;break}return i=a.value,t.next=9,i(this._options);case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),r=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==o.return||o.return();case 21:if(t.prev=21,!r){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:return t.abrupt("return",Zt(Ft(this._input,this._options),this._timeout,this.abortController));case 27:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])}));return function(){return t.apply(this,arguments)}}()}])&&o(e.prototype,a),s&&o(e,s),t}(),te=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ht(e)||Array.isArray(e))throw new TypeError("The `defaultOptions` argument must be an object");for(var r=function(t,r){return new Xt(t,Gt({},e,r))},n=function(){var t=Bt[o];r[t]=function(r,n){return new Xt(r,Gt({},e,n,{method:t}))}},o=0;o=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(t,e,r,n){var o=e&&e.prototype instanceof j?e:j,a=Object.create(o.prototype),i=new C(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw a;return L()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=x(t,e,r);if("normal"===u.type){if(n=r.done?y:l,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=y,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function x(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function j(){}function O(){}function _(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function A(e){var r;this._invoke=function(n,o){function i(){return new Promise(function(r,i){!function r(n,o,i,s){var u=x(e[n],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"===t(h)&&a.call(h,"__await")?Promise.resolve(h.__await).then(function(t){r("next",t,i,s)},function(t){r("throw",t,i,s)}):Promise.resolve(h).then(function(t){c.value=t,i(c)},function(t){return r("throw",t,i,s)})}s(u.arg)}(n,o,r,i)})}return r=r?r.then(i,i):i()}}function E(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=x(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0,x=w&&g.regeneratorRuntime;g.regeneratorRuntime=void 0;var j=b;if(w)g.regeneratorRuntime=x;else try{delete g.regeneratorRuntime}catch(t){g.regeneratorRuntime=void 0}var O=j,_=Object.prototype.hasOwnProperty,k=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),A=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n1;){var e=t.pop(),r=e.obj[e.prop];if(Array.isArray(r)){for(var n=[],o=0;o=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?o+=n.charAt(a):i<128?o+=k[i]:i<2048?o+=k[192|i>>6]+k[128|63&i]:i<55296||i>=57344?o+=k[224|i>>12]+k[128|i>>6&63]+k[128|63&i]:(a+=1,i=65536+((1023&i)<<10|1023&n.charCodeAt(a)),o+=k[240|i>>18]+k[128|i>>12&63]+k[128|i>>6&63]+k[128|63&i])}return o},isBuffer:function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function e(r,n,o){if(!n)return r;if("object"!==t(n)){if(Array.isArray(r))r.push(n);else{if("object"!==t(r))return[r,n];(o&&(o.plainObjects||o.allowPrototypes)||!_.call(Object.prototype,n))&&(r[n]=!0)}return r}if("object"!==t(r))return[r].concat(n);var a=r;return Array.isArray(r)&&!Array.isArray(n)&&(a=A(r,o)),Array.isArray(r)&&Array.isArray(n)?(n.forEach(function(n,a){_.call(r,a)?r[a]&&"object"===t(r[a])?r[a]=e(r[a],n,o):r.push(n):r[a]=n}),r):Object.keys(n).reduce(function(t,r){var a=n[r];return _.call(t,r)?t[r]=e(t[r],a,o):t[r]=a,t},a)}},R=String.prototype.replace,S=/%20/g,C={default:"RFC3986",formatters:{RFC1738:function(t){return R.call(t,S,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"},P={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},L=Array.isArray,U=Array.prototype.push,T=function(t,e){U.apply(t,L(e)?e:[e])},N=Date.prototype.toISOString,q={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:E.encode,encodeValuesOnly:!1,indices:!1,serializeDate:function(t){return N.call(t)},skipNulls:!1,strictNullHandling:!1},I=function t(e,r,n,o,a,i,s,u,c,h,f,l,p){var y=e;if("function"==typeof s?y=s(r,y):y instanceof Date&&(y=h(y)),null===y){if(o)return i&&!l?i(r,q.encoder,p):r;y=""}if("string"==typeof y||"number"==typeof y||"boolean"==typeof y||E.isBuffer(y))return i?[f(l?r:i(r,q.encoder,p))+"="+f(i(y,q.encoder,p))]:[f(r)+"="+f(String(y))];var v,d=[];if(void 0===y)return d;if(Array.isArray(s))v=s;else{var m=Object.keys(y);v=u?m.sort(u):m}for(var b=0;b0?_+O:""}),D=2147483647,H=36,z=1,G=26,B=38,M=700,V=72,$=128,K="-",Q=/[^\x20-\x7E]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,Y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Z=H-z,J=Math.floor,X=String.fromCharCode;function tt(t){throw new RangeError(Y[t])}function et(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function rt(t,e,r){var n=0;for(t=r?J(t/M):t>>1,t+=J(t/e);t>Z*G>>1;n+=H)t=J(t/Z);return J(n+(Z+1)*t/(t+B))}function nt(t){return function(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]);var o=function(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}((t=t.replace(W,".")).split("."),e).join(".");return n+o}(t,function(t){return Q.test(t)?"xn--"+function(t){var e,r,n,o,a,i,s,u,c,h,f,l,p,y,v,d=[];for(l=(t=function(t){for(var e,r,n=[],o=0,a=t.length;o=55296&&e<=56319&&o=e&&fJ((D-r)/(p=n+1))&&tt("overflow"),r+=(s-e)*p,e=s,i=0;iD&&tt("overflow"),f==e){for(u=r,c=H;!(u<(h=c<=a?z:c>=a+G?G:c-a));c+=H)v=u-h,y=H-h,d.push(X(et(h+v%y,0))),u=J(v/y);d.push(X(et(u,0))),a=rt(r,p,n==o),r=0,++n}++r,++e}return d.join("")}(t):t})}global.setTimeout,global.clearTimeout;var ot=global.performance||{};ot.now||ot.mozNow||ot.msNow||ot.oNow||ot.webkitNow;function at(t){return null===t}function it(t){return"string"==typeof t}function st(e){return"object"===t(e)&&null!==e}function ut(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var ct=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function ht(e){switch(t(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}}function ft(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n0&&s>i&&(s=i);for(var u=0;u=0?(c=p.substr(0,y),h=p.substr(y+1)):(c=p,h=""),f=decodeURIComponent(c),l=decodeURIComponent(h),ut(o,f)?ct(o[f])?o[f].push(l):o[f]=[o[f],l]:o[f]=l}return o}var yt={parse:St,resolve:function(t,e){return St(t,!1,!0).resolve(e)},resolveObject:function(t,e){return t?St(t,!1,!0).resolveObject(e):e},format:function(t){it(t)&&(t=Ct({},t));return Pt(t)},Url:vt};function vt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var dt=/^([a-z0-9.+-]+:)/i,mt=/:[0-9]*$/,bt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,gt=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),wt=["'"].concat(gt),xt=["%","/","?",";","#"].concat(wt),jt=["/","?","#"],Ot=255,_t=/^[+a-z0-9A-Z_-]{0,63}$/,kt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,At={javascript:!0,"javascript:":!0},Et={javascript:!0,"javascript:":!0},Rt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function St(t,e,r){if(t&&st(t)&&t instanceof vt)return t;var n=new vt;return n.parse(t,e,r),n}function Ct(e,r,n,o){if(!it(r))throw new TypeError("Parameter 'url' must be a string, not "+t(r));var a=r.indexOf("?"),i=-1!==a&&a127?O+="x":O+=j[_];if(!O.match(_t)){var A=x.slice(0,h),E=x.slice(h+1),R=j.match(kt);R&&(A.push(R[1]),E.unshift(R[2])),E.length&&(u="/"+E.join(".")+u),e.hostname=A.join(".");break}}}}e.hostname.length>Ot?e.hostname="":e.hostname=e.hostname.toLowerCase(),w||(e.hostname=nt(e.hostname)),p=e.port?":"+e.port:"";var S=e.hostname||"";e.host=S+p,e.href+=e.host,w&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!At[v])for(h=0,l=wt.length;h0)&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift())),n.search=t.search,n.query=t.query,at(n.pathname)&&at(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=w.slice(-1)[0],O=(n.host||t.host||w.length>1)&&("."===j||".."===j)||""===j,_=0,k=w.length;k>=0;k--)"."===(j=w[k])?w.splice(k,1):".."===j?(w.splice(k,1),_++):_&&(w.splice(k,1),_--);if(!b&&!g)for(;_--;_)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),O&&"/"!==w.join("/").substr(-1)&&w.push("");var A=""===w[0]||w[0]&&"/"===w[0].charAt(0);return x&&(n.hostname=n.host=A?"":w.length?w.shift():"",(v=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=v.shift(),n.host=n.hostname=v.shift())),(b=b||n.host&&w.length)&&!A&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),at(n.pathname)&&at(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},vt.prototype.parseHost=function(){return Lt(this)};var Ut=d.window?window.URL:yt.URL,Tt=/^https?:\/\//i,Nt=function(t){return"undefined"!=typeof self&&self&&t in self?self[t]:"undefined"!=typeof window&&window&&t in window?window[t]:"undefined"!=typeof global&&global&&t in global?global[t]:"undefined"!=typeof globalThis&&globalThis?globalThis[t]:void 0},qt=Nt("document"),It=Nt("Headers"),Ft=Nt("Response"),Dt=Nt("fetch"),Ht=Nt("AbortController"),zt=function(e){return null!==e&&"object"===t(e)},Gt="function"==typeof Nt("AbortController"),Bt=function t(){for(var e={},r=arguments.length,n=new Array(r),o=0;o0)){t.next=13;break}return t.next=12,Zt(r);case 12:return t.abrupt("return",this._retry(e));case 13:if(!this._throwHttpErrors){t.next=15;break}throw t.t0;case 15:case"end":return t.stop()}},t,this,[[0,6]])}));return function(e){return t.apply(this,arguments)}}()},{key:"_fetch",value:function(){var t=r(O.mark(function t(){var e,r,n,o,a,i;return O.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,r=!1,n=void 0,t.prev=3,o=this._hooks.beforeRequest[Symbol.iterator]();case 5:if(e=(a=o.next()).done){t.next=12;break}return i=a.value,t.next=9,i(this._options);case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),r=!0,n=t.t0;case 18:t.prev=18,t.prev=19,e||null==o.return||o.return();case 21:if(t.prev=21,!r){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:return t.abrupt("return",Jt(Dt(this._input,this._options),this._timeout,this.abortController));case 27:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])}));return function(){return t.apply(this,arguments)}}()}])&&o(e.prototype,a),s&&o(e,s),t}(),ee=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!zt(e)||Array.isArray(e))throw new TypeError("The `defaultOptions` argument must be an object");for(var r=function(t,r){return new te(t,Bt({},e,r))},n=function(){var t=Mt[o];r[t]=function(r,n){return new te(r,Bt({},e,n,{method:t}))}},o=0;o