UNPKG

axios-cache-adapter

Version:
2 lines 45 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("axios")):"function"==typeof define&&define.amd?define(["axios"],e):"object"==typeof exports?exports.axiosCacheAdapter=e(require("axios")):t.axiosCacheAdapter=e(t[void 0])}(global,function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=69)}([function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){"use strict";var n=r(42),o=r(43),i=r(23),u=r(10);t.exports=r(45)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e,r){var n=r(21)("wks"),o=r(11),i=r(0).Symbol,u="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=n},function(t,e,r){var n=r(4),o=r(17);t.exports=r(6)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(16),o=r(30),i=r(22),u=Object.defineProperty;e.f=r(6)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e){!function(e){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=x;var l="suspendedStart",p="suspendedYield",h="executing",v="completed",y={},d={};d[u]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(_([])));g&&g!==n&&o.call(g,u)&&(d=g);var b=k.prototype=O.prototype=Object.create(d);S.prototype=b.constructor=k,k.constructor=S,k[c]=S.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},j(E.prototype),E.prototype[a]=function(){return this},f.AsyncIterator=E,f.async=function(t,e,r,n){var o=new E(x(t,e,r,n));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},j(b),b[c]="Generator",b[u]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=_,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return a.type="throw",a.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),y}},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;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function x(t,e,r,n){var o=e&&e.prototype instanceof O?e:O,i=Object.create(o.prototype),u=new A(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return F()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var a=P(u,r);if(a){if(a===y)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=w(t,e,r);if("normal"===c.type){if(n=r.done?v:p,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}(t,r,u),i}function w(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function O(){}function S(){}function k(){}function j(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(r,n){function i(){return new Promise(function(e,i){!function e(r,n,i,u){var a=w(t[r],t,n);if("throw"!==a.type){var c=a.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},u)}u(a.arg)}(r,n,e,i)})}return e=e?e.then(i,i):i()}}function P(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,P(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=w(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function _(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e){t.exports=require("util")},function(t,e,r){var n=r(44),o=r(25);t.exports=function(t){return n(o(t))}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(3),i=r(7),u=r(11)("src"),a=Function.toString,c=(""+a).split("toString");r(14).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var s="function"==typeof r;s&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(s&&(i(r,u)||o(r,u,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||a.call(this)})},function(t,e){var r=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(t,e){t.exports=!1},function(t,e,r){var n=r(5);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(0),o=r(14),i=r(3),u=r(13),a=r(46),c=function(t,e,r){var s,f,l,p,h=t&c.F,v=t&c.G,y=t&c.S,d=t&c.P,m=t&c.B,g=v?n:y?n[e]||(n[e]={}):(n[e]||{}).prototype,b=v?o:o[e]||(o[e]={}),x=b.prototype||(b.prototype={});for(s in v&&(r=e),r)l=((f=!h&&g&&void 0!==g[s])?g:r)[s],p=m&&f?a(l,n):d&&"function"==typeof l?a(Function.call,l):l,g&&u(g,s,l,t&c.U),b[s]!=l&&i(b,s,p),d&&x[s]!=l&&(x[s]=l)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,r){var n=r(34),o=r(27);t.exports=Object.keys||function(t){return n(t,o)}},function(e,r){e.exports=t},function(t,e,r){var n=r(14),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(15)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(5);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(21)("keys"),o=r(11);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(4).f,o=r(7),i=r(2)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,r){t.exports=!r(6)&&!r(12)(function(){return 7!=Object.defineProperty(r(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(5),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){var n=r(16),o=r(48),i=r(27),u=r(26)("IE_PROTO"),a=function(){},c=function(){var t,e=r(31)("iframe"),n=i.length;for(e.style.display="none",r(52).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[i[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(a.prototype=n(t),r=new a,a.prototype=null,r[u]=t):r=c(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(7),o=r(10),i=r(49)(!1),u=r(26)("IE_PROTO");t.exports=function(t,e){var r,a=o(t),c=0,s=[];for(r in a)r!=u&&n(a,r)&&s.push(r);for(;e.length>c;)n(a,r=e[c++])&&(~i(s,r)||s.push(r));return s}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){r(37)("asyncIterator")},function(t,e,r){var n=r(0),o=r(14),i=r(15),u=r(38),a=r(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,r){e.f=r(2)},function(t,e,r){"use strict";var n=r(0),o=r(7),i=r(6),u=r(18),a=r(13),c=r(55).KEY,s=r(12),f=r(21),l=r(28),p=r(11),h=r(2),v=r(38),y=r(37),d=r(56),m=r(57),g=r(16),b=r(5),x=r(10),w=r(22),O=r(17),S=r(33),k=r(58),j=r(59),E=r(4),P=r(19),R=j.f,L=E.f,A=k.f,_=n.Symbol,F=n.JSON,C=F&&F.stringify,T=h("_hidden"),I=h("toPrimitive"),N={}.propertyIsEnumerable,M=f("symbol-registry"),D=f("symbols"),H=f("op-symbols"),G=Object.prototype,q="function"==typeof _,J=n.QObject,Y=!J||!J.prototype||!J.prototype.findChild,K=i&&s(function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=R(G,e);n&&delete G[e],L(t,e,r),n&&t!==G&&L(G,e,n)}:L,z=function(t){var e=D[t]=S(_.prototype);return e._k=t,e},U=q&&"symbol"==typeof _.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof _},V=function(t,e,r){return t===G&&V(H,e,r),g(t),e=w(e,!0),g(r),o(D,e)?(r.enumerable?(o(t,T)&&t[T][e]&&(t[T][e]=!1),r=S(r,{enumerable:O(0,!1)})):(o(t,T)||L(t,T,O(1,{})),t[T][e]=!0),K(t,e,r)):L(t,e,r)},W=function(t,e){g(t);for(var r,n=d(e=x(e)),o=0,i=n.length;i>o;)V(t,r=n[o++],e[r]);return t},B=function(t){var e=N.call(this,t=w(t,!0));return!(this===G&&o(D,t)&&!o(H,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,T)&&this[T][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!o(D,e)||o(H,e)){var r=R(t,e);return!r||!o(D,e)||o(t,T)&&t[T][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=A(x(t)),n=[],i=0;r.length>i;)o(D,e=r[i++])||e==T||e==c||n.push(e);return n},$=function(t){for(var e,r=t===G,n=A(r?H:x(t)),i=[],u=0;n.length>u;)!o(D,e=n[u++])||r&&!o(G,e)||i.push(D[e]);return i};q||(a((_=function(){if(this instanceof _)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===G&&e.call(H,r),o(this,T)&&o(this[T],t)&&(this[T][t]=!1),K(this,t,O(1,r))};return i&&Y&&K(G,t,{configurable:!0,set:e}),z(t)}).prototype,"toString",function(){return this._k}),j.f=Q,E.f=V,r(41).f=k.f=Z,r(29).f=B,r(40).f=$,i&&!r(15)&&a(G,"propertyIsEnumerable",B,!0),v.f=function(t){return z(h(t))}),u(u.G+u.W+u.F*!q,{Symbol:_});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;X.length>tt;)h(X[tt++]);for(var et=P(h.store),rt=0;et.length>rt;)y(et[rt++]);u(u.S+u.F*!q,"Symbol",{for:function(t){return o(M,t+="")?M[t]:M[t]=_(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in M)if(M[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!q,"Object",{create:function(t,e){return void 0===e?S(t):W(S(t),e)},defineProperty:V,defineProperties:W,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),F&&u(u.S+u.F*(!q||s(function(){var t=_();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!U(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!U(e))return e}),n[1]=e,C.apply(F,n)}}),_.prototype[I]||r(3)(_.prototype,I,_.prototype.valueOf),l(_,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(34),o=r(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(2)("unscopables"),o=Array.prototype;void 0==o[n]&&r(3)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){"use strict";var n=r(15),o=r(18),i=r(13),u=r(3),a=r(23),c=r(47),s=r(28),f=r(53),l=r(2)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,v,y,d,m){c(r,e,v);var g,b,x,w=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},O=e+" Iterator",S="values"==y,k=!1,j=t.prototype,E=j[l]||j["@@iterator"]||y&&j[y],P=E||w(y),R=y?S?w("entries"):P:void 0,L="Array"==e&&j.entries||E;if(L&&(x=f(L.call(new t)))!==Object.prototype&&x.next&&(s(x,O,!0),n||"function"==typeof x[l]||u(x,l,h)),S&&E&&"values"!==E.name&&(k=!0,P=function(){return E.call(this)}),n&&!m||!p&&!k&&j[l]||u(j,l,P),a[e]=P,a[O]=h,y)if(g={values:S?P:w("values"),keys:d?P:w("keys"),entries:R},m)for(b in g)b in j||i(j,b,g[b]);else o(o.P+o.F*(p||k),e,g);return g}},function(t,e,r){var n=r(32);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){"use strict";var n=r(33),o=r(17),i=r(28),u={};r(3)(u,r(2)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(4),o=r(16),i=r(19);t.exports=r(6)?Object.defineProperties:function(t,e){o(t);for(var r,u=i(e),a=u.length,c=0;a>c;)n.f(t,r=u[c++],e[r]);return t}},function(t,e,r){var n=r(10),o=r(50),i=r(51);t.exports=function(t){return function(e,r,u){var a,c=n(e),s=o(c.length),f=i(u,s);if(t&&r!=r){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(35),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(35),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(7),o=r(54),i=r(26)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){var n=r(25);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(11)("meta"),o=r(5),i=r(7),u=r(4).f,a=0,c=Object.isExtensible||function(){return!0},s=!r(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){u(t,n,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[n].i},getWeak:function(t,e){if(!i(t,n)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[n].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,n)&&f(t),t}}},function(t,e,r){var n=r(19),o=r(40),i=r(29);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var u,a=r(t),c=i.f,s=0;a.length>s;)c.call(t,u=a[s++])&&e.push(u);return e}},function(t,e,r){var n=r(24);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(10),o=r(41).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(n(t))}},function(t,e,r){var n=r(29),o=r(17),i=r(10),u=r(22),a=r(7),c=r(30),s=Object.getOwnPropertyDescriptor;e.f=r(6)?s:function(t,e){if(t=i(t),e=u(e,!0),c)try{return s(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){for(var n=r(1),o=r(19),i=r(13),u=r(0),a=r(3),c=r(23),s=r(2),f=s("iterator"),l=s("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(h),y=0;y<v.length;y++){var d,m=v[y],g=h[m],b=u[m],x=b&&b.prototype;if(x&&(x[f]||a(x,f,p),x[l]||a(x,l,m),c[m]=p,g))for(d in n)x[d]||i(x,d,n[d],!0)}},function(t,e,r){r(62)("split",2,function(t,e,n){"use strict";var o=r(63),i=n,u=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var a=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n,c,s,f,l,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,y=void 0===e?4294967295:e>>>0,d=new RegExp(t.source,h+"g");for(a||(n=new RegExp("^"+d.source+"$(?!\\s)",h));(c=d.exec(r))&&!((s=c.index+c[0].length)>v&&(p.push(r.slice(v,c.index)),!a&&c.length>1&&c[0].replace(n,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(c[l]=void 0)}),c.length>1&&c.index<r.length&&u.apply(p,c.slice(1)),f=c[0].length,v=s,p.length>=y));)d.lastIndex===c.index&&d.lastIndex++;return v===r.length?!f&&d.test("")||p.push(""):p.push(r.slice(v)),p.length>y?p.slice(0,y):p}}else"0".split(void 0,0).length&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(r,o){var i=t(this),u=void 0==r?void 0:r[e];return void 0!==u?u.call(r,i,o):n.call(String(i),r,o)},n]})},function(t,e,r){"use strict";var n=r(3),o=r(13),i=r(12),u=r(25),a=r(2);t.exports=function(t,e,r){var c=a(t),s=r(u,c,""[t]),f=s[0],l=s[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),n(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,r){var n=r(5),o=r(24),i=r(2)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){var n=r(18),o=r(0).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,r){var n=r(18);n(n.P,"Function",{bind:r(66)})},function(t,e,r){"use strict";var n=r(32),o=r(5),i=r(67),u=[].slice,a={};t.exports=Function.bind||function(t){var e=n(this),r=u.call(arguments,1),c=function(){var n=r.concat(u.call(arguments));return this instanceof c?function(t,e,r){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,r)}(e,n.length,n):i(e,n,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(4).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||r(6)&&n(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,r){"use strict";r.r(e);r(1),r(8);var n=r(20),o=r.n(n);function i(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function u(){return(u=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var u=t.apply(e,r);function a(t){i(u,n,o,a,c,"next",t)}function c(t){i(u,n,o,a,c,"throw",t)}a(void 0)})}}(regeneratorRuntime.mark(function t(e){var r,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.store.length();case 2:if(!((r=t.sent)<e.limit)){t.next=5;break}return t.abrupt("return");case 5:return e.debug("Current store size: ".concat(r)),t.next=8,e.store.iterate(function(t,e){n||(n={value:t,key:e}),t.expires<n.value.expires&&(n={value:t,key:e})});case 8:if(!n){t.next=12;break}return e.debug("Removing item: ".concat(n.key)),t.next=12,e.store.removeItem(n.key);case 12:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var a=function(t){return u.apply(this,arguments)};function c(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var s=function(t,e,r){if(r.data)try{r.data=JSON.parse(r.data)}catch(e){t.debug("Could not parse data as JSON",e)}return r.request,r.config,c(r,["request","config"])};r(36),r(39);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){var e=f(t);return null!=t&&("object"===e||"function"===e)}function p(t){return null===t?void 0===t?"[object Undefined]":"[object Null]":toString.call(t)}function h(t){if(!l(t))return!1;var e=p(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object Proxy]"===e}function v(t,e){return l(t)?Object.keys(t).map(function(r){return e(t[r],r)}):[]}function y(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){y(i,n,o,u,a,"next",t)}function a(t){y(i,n,o,u,a,"throw",t)}u(void 0)})}}function m(t,e,r){return g.apply(this,arguments)}function g(){return(g=d(regeneratorRuntime.mark(function t(e,r,n){var o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,o={expires:e.expires,data:s(e,r,n)},t.next=4,e.store.setItem(e.uuid,o);case 4:t.next=19;break;case 6:if(t.prev=6,t.t0=t.catch(0),e.debug("Could not store response",t.t0),!e.clearOnError){t.next=18;break}return t.prev=10,t.next=13,e.store.clear();case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(10),e.debug("Could not clear store",t.t1);case 18:return t.abrupt("return",!1);case 19:return t.abrupt("return",!0);case 20:case"end":return t.stop()}},t,this,[[0,6],[10,15]])}))).apply(this,arguments)}function b(t,e){return x.apply(this,arguments)}function x(){return(x=d(regeneratorRuntime.mark(function t(e,r){var n,o,i,u,a,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.uuid,o=e.ignoreCache,t.next=3,e.store.getItem(n);case 3:if(i=t.sent,!o&&i&&i.data){t.next=10;break}throw e.debug("cache-miss",r.url),(u=new Error).reason="cache-miss",u.message="Entry not found from cache",u;case 10:if(a=i.expires,c=i.data,"undefined"!=typeof navigator&&"onLine"in navigator&&!navigator.onLine||e.acceptStale||0===a||!(a<Date.now())){t.next=18;break}throw e.debug("cache-stale",r.url),(s=new Error).reason="cache-stale",s.message="Entry is stale",s;case 18:return e.debug(e.acceptStale?"cache-hit-stale":"cache-hit",r.url),t.abrupt("return",c);case 20:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function w(t){return h(t.key)?t.key:function(t){var e=f(t);return"string"===e||"object"===e&&null!=t&&!Array.isArray(t)&&"[object String]"===p(t)}(t.key)?function(e){return"".concat(t.key,"/").concat(e.url).concat(j(e))}:function(t){return t.url+j(t)}}function O(t,e){return S.apply(this,arguments)}function S(){return(S=d(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("get"===r.method.toLowerCase()){t.next=4;break}return t.next=4,e.store.removeItem(e.uuid);case 4:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function k(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(t.invalidate)?t.invalidate:O}function j(t){if(!t.params)return"";if("undefined"==typeof URLSearchParams)return JSON.stringify(t.params);var e=t.params;return t.params instanceof URLSearchParams||(e=new URLSearchParams,Object.keys(t.params).forEach(function(r){return e.append(r,t.params[r])})),"?".concat(e.toString())}r(60),r(61),r(64);function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var u,a=t[Symbol.iterator]();!(n=(u=a.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var R=/([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g,L="max-age",A="s-maxage",_="max-stale",F="min-fresh",C="immutable",T="must-revalidate",I="no-cache",N="no-store",M="no-transform",D="only-if-cached",H="private",G="proxy-revalidate",q="public";function J(t){return null===t}function Y(t){if(!t)return null;var e=parseInt(t,10);return!Number.isFinite(e)||e<0?null:e}var K=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxAge=null,this.sharedMaxAge=null,this.maxStale=null,this.maxStaleDuration=null,this.minFresh=null,this.immutable=null,this.mustRevalidate=null,this.noCache=null,this.noStore=null,this.noTransform=null,this.onlyIfCached=null,this.private=null,this.proxyRevalidate=null,this.public=null}return function(t,e,r){e&&P(t.prototype,e),r&&P(t,r)}(t,[{key:"parse",value:function(t){if(!t||0===t.length)return this;var e={},r=t.match(R)||[];return Array.prototype.forEach.call(r,function(t){var r=t.split("=",2),n=E(r,1)[0],o=null;r.length>1&&(o=r[1].trim()),e[n.toLowerCase()]=o}),this.maxAge=Y(e[L]),this.sharedMaxAge=Y(e[A]),this.maxStale=J(e[_]),this.maxStaleDuration=Y(e[_]),this.maxStaleDuration&&(this.maxStale=!0),this.minFresh=Y(e[F]),this.immutable=J(e[C]),this.mustRevalidate=J(e[T]),this.noCache=J(e[I]),this.noStore=J(e[N]),this.noTransform=J(e[M]),this.onlyIfCached=J(e[D]),this.private=J(e[H]),this.proxyRevalidate=J(e[G]),this.public=J(e[q]),this}},{key:"format",value:function(){var t=[];return this.maxAge&&t.push("".concat(L,"=").concat(this.maxAge)),this.sharedMaxAge&&t.push("".concat(A,"=").concat(this.sharedMaxAge)),this.maxStale&&(this.maxStaleDuration?t.push("".concat(_,"=").concat(this.maxStaleDuration)):t.push(_)),this.minFresh&&t.push("".concat(F,"=").concat(this.minFresh)),this.immutable&&t.push(C),this.mustRevalidate&&t.push(T),this.noCache&&t.push(I),this.noStore&&t.push(N),this.noTransform&&t.push(M),this.onlyIfCached&&t.push(D),this.private&&t.push(H),this.proxyRevalidate&&t.push(G),this.public&&t.push(q),t.join(", ")}}]),t}();function z(t){return(new K).parse(t)}function U(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function V(){return(V=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){U(i,n,o,u,a,"next",t)}function a(t){U(i,n,o,u,a,"throw",t)}u(void 0)})}}(regeneratorRuntime.mark(function t(e,r,n){var o,i,u,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.request,i=void 0===o?{}:o,u=n.headers,c=void 0===u?{}:u,!(["arraybuffer","blob"].indexOf(i.responseType)>-1)){t.next=3;break}return t.abrupt("return",n);case 3:if(s={},e.readHeaders&&(c["cache-control"]?((s=z(c["cache-control"])).noCache||s.noStore)&&(e.excludeFromCache=!0):c.expires&&(e.expires=new Date(c.expires).getTime())),e.excludeFromCache){t.next=15;break}if(s.maxAge||0===s.maxAge?e.expires=Date.now()+1e3*s.maxAge:e.readHeaders||(e.expires=0===e.maxAge?Date.now():Date.now()+e.maxAge),!e.limit){t.next=11;break}return e.debug("Detected limit: ".concat(e.limit)),t.next=11,a(e);case 11:return t.next=13,m(e,r,n);case 13:t.next=16;break;case 15:n.request.excludedFromCache=!0;case 16:return t.abrupt("return",n);case 17:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}var W=function(t,e,r){return V.apply(this,arguments)};var B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=t.exclude,n=void 0===r?{}:r,o=t.debug;if("function"==typeof n.filter&&n.filter(e))return o("Excluding request by filter ".concat(e.url)),!0;var i=/\?.*$/.test(e.url)||l(e.params)&&0!==Object.keys(e.params).length||"undefined"!=typeof URLSearchParams&&e.params instanceof URLSearchParams;return n.query&&i?(o("Excluding request by query ".concat(e.url)),!0):!!(n.paths||[]).some(function(t){return e.url.match(t)})&&(o("Excluding request by url match ".concat(e.url)),!0)};function Q(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function Z(){return(Z=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){Q(i,n,o,u,a,"next",t)}function a(t){Q(i,n,o,u,a,"throw",t)}u(void 0)})}}(regeneratorRuntime.mark(function t(e,r){var n,o,i,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=function(){return e.excludeFromCache=!0,{config:e,next:n}},e.debug("uuid",e.uuid),n=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return W.apply(void 0,[e,r].concat(n))},t.next=5,e.invalidate(e,r);case 5:if(!B(e,r)){t.next=7;break}return t.abrupt("return",u());case 7:if("head"!==(o=r.method.toLowerCase())&&"get"===o){t.next=10;break}return t.abrupt("return",u());case 10:return t.prev=10,t.next=13,b(e,r);case 13:return(i=t.sent).config=r,i.request={fromCache:!0},t.abrupt("return",{config:e,next:i});case 19:if(t.prev=19,t.t0=t.catch(10),!e.clearOnStale||"cache-stale"!==t.t0.reason){t.next=24;break}return t.next=24,e.store.removeItem(e.uuid);case 24:return t.abrupt("return",{config:e,next:n});case 25:case"end":return t.stop()}},t,this,[[10,19]])}))).apply(this,arguments)}var $=function(t,e){return Z.apply(this,arguments)};function X(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function tt(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){X(i,n,o,u,a,"next",t)}function a(t){X(i,n,o,u,a,"throw",t)}u(void 0)})}}function et(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var rt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store={}}return function(t,e,r){e&&et(t.prototype,e),r&&et(t,r)}(t,[{key:"getItem",value:function(){var t=tt(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.store[e]||null,t.abrupt("return",JSON.parse(r));case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"setItem",value:function(){var t=tt(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.store[e]=JSON.stringify(r),t.abrupt("return",r);case 2:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()},{key:"removeItem",value:function(){var t=tt(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:delete this.store[e];case 1:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"clear",value:function(){var t=tt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.store={};case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"length",value:function(){var t=tt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object.keys(this.store).length);case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"iterate",value:function(t){return Promise.all(v(this.store,t))}}]),t}();function nt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){ot(t,e,r[e])})}return t}function ot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var it=function(){},ut=function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=console).log.apply(t,["[axios-cache-adapter]"].concat(r))},at={cache:{maxAge:0,limit:!1,store:null,key:null,invalidate:null,exclude:{paths:[],query:!0,filter:null},adapter:o.a.defaults.adapter,clearOnStale:!0,clearOnError:!0,readOnError:!1,readHeaders:!1,debug:!1,ignoreCache:!1},axios:{cache:{maxAge:9e5}}},ct=["limit","store","adapter","uuid","acceptStale"],st=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=nt({},at.cache,t);return e.key=w(e),e.invalidate=k(e),!1!==e.debug?e.debug="function"==typeof e.debug?e.debug:ut:e.debug=it,e.store||(e.store=new rt),e.debug("Global cache config",e),e},ft=function(t,e){var r=e.cache||{};r&&ct.forEach(function(t){return r[t]?delete r[t]:void 0});var n=nt({},t,r,{exclude:nt({},t.exclude,r.exclude)});return!0===n.debug&&(n.debug=ut),n.uuid=t.key(e),t.debug("Request config for ".concat(e.url),n),n};function lt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){ht(t,e,r[e])})}return t}function ht(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vt(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function e(){return(e=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){vt(i,n,o,u,a,"next",t)}function a(t){vt(i,n,o,u,a,"throw",t)}u(void 0)})}}(regeneratorRuntime.mark(function e(r){var n,o,i,u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=ft(t,r),e.next=3,$(n,r);case 3:if(o=e.sent,h(i=o.next)){e.next=7;break}return e.abrupt("return",i);case 7:return e.prev=7,e.next=10,n.adapter(r);case 10:o=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(7),u=e.t0;case 16:if(!u){e.next=31;break}if(!(h(n.readOnError)?n.readOnError(u,r):n.readOnError)){e.next=30;break}return e.prev=19,n.acceptStale=!0,e.next=23,$(n,r);case 23:return(o=e.sent).next.request.stale=!0,e.abrupt("return",o.next);case 28:e.prev=28,e.t1=e.catch(19);case 30:throw u;case 31:return e.abrupt("return",i(o));case 32:case"end":return e.stop()}},e,this,[[7,13],[19,28]])}))).apply(this,arguments)}return{adapter:function(t){return e.apply(this,arguments)},config:t=st(t),store:t.store}}function dt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=pt({},at.axios,t,{cache:pt({},at.axios.cache,t.cache)}),r=yt(e.cache),n=(e.cache,lt(e,["cache"])),i=o.a.create(pt({},n,{adapter:r.adapter}));return i.cache=r.store,i}r(65),r(68);var mt=r(9);function gt(t,e,r,n,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function bt(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){gt(i,n,o,u,a,"next",t)}function a(t){gt(i,n,o,u,a,"throw",t)}u(void 0)})}}function xt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var wt=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"axios-cache";!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=new TypeError("First parameter must be a valid RedisClient instance.");try{if("RedisClient"!==e.constructor.name)throw n}catch(t){throw n}this.client=e,this.HASH_KEY=r,this.hgetAsync=Object(mt.promisify)(e.hget).bind(e),this.hsetAsync=Object(mt.promisify)(e.hset).bind(e),this.hdelAsync=Object(mt.promisify)(e.hdel).bind(e),this.delAsync=Object(mt.promisify)(e.del).bind(e),this.hlenAsync=Object(mt.promisify)(e.hlen).bind(e),this.hgetallAsync=Object(mt.promisify)(e.hgetall).bind(e)}return function(t,e,r){e&&xt(t.prototype,e),r&&xt(t,r)}(t,[{key:"getItem",value:function(){var t=bt(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hgetAsync(this.HASH_KEY,e);case 2:if(t.t0=t.sent,t.t0){t.next=5;break}t.t0=null;case 5:return r=t.t0,t.abrupt("return",JSON.parse(r));case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"setItem",value:function(){var t=bt(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hsetAsync(this.HASH_KEY,e,JSON.stringify(r));case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()},{key:"removeItem",value:function(){var t=bt(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hdelAsync(this.HASH_KEY,e);case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"clear",value:function(){var t=bt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.delAsync(this.HASH_KEY);case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"length",value:function(){var t=bt(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.hlenAsync(this.HASH_KEY));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"iterate",value:function(){var t=bt(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.hgetallAsync(this.HASH_KEY);case 2:return r=t.sent,t.abrupt("return",Promise.all(v(r,e)));case 4:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t}();r.d(e,"setup",function(){return dt}),r.d(e,"setupCache",function(){return yt}),r.d(e,"serializeQuery",function(){return j}),r.d(e,"RedisStore",function(){return wt});e.default={setup:dt,setupCache:yt,serializeQuery:j,RedisStore:wt}}])}); //# sourceMappingURL=cache.node.min.js.map