axios-cache-adapter
Version:
Caching adapter for axios
2 lines • 40.5 kB
JavaScript
!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])}(window,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=64)}([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){var n=r(19)("wks"),o=r(10),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){"use strict";var n=r(40),o=r(41),i=r(21),u=r(8);t.exports=r(43)(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(5),o=r(16);t.exports=r(7)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(15),o=r(29),i=r(20),u=Object.defineProperty;e.f=r(7)?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(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(42),o=r(23);t.exports=function(t){return n(o(t))}},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(A([])));g&&g!==n&&o.call(g,u)&&(d=g);var b=j.prototype=O.prototype=Object.create(d);S.prototype=b.constructor=j,j.constructor=S,j[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,j):(t.__proto__=j,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},k(P.prototype),P.prototype[a]=function(){return this},f.AsyncIterator=P,f.async=function(t,e,r,n){var o=new P(x(t,e,r,n));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},k(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,R.prototype={constructor:R,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(_),!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),_(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;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(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 R(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 T()}for(r.method=o,r.arg=i;;){var u=r.delegate;if(u){var a=E(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 j(){}function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function P(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 E(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,E(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 L(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function A(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:T}}function T(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},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(4),u=r(10)("src"),a=Function.toString,c=(""+a).split("toString");r(13).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(6);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(32),o=r(26);t.exports=Object.keys||function(t){return n(t,o)}},function(e,r){e.exports=t},function(t,e,r){var n=r(13),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(14)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(6);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(0),o=r(13),i=r(3),u=r(12),a=r(44),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(19)("keys"),o=r(10);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(5).f,o=r(4),i=r(1)("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(7)&&!r(11)(function(){return 7!=Object.defineProperty(r(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(6),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(15),o=r(47),i=r(26),u=r(25)("IE_PROTO"),a=function(){},c=function(){var t,e=r(30)("iframe"),n=i.length;for(e.style.display="none",r(51).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(4),o=r(8),i=r(48)(!1),u=r(25)("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(35)("asyncIterator")},function(t,e,r){var n=r(0),o=r(13),i=r(14),u=r(36),a=r(5).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(1)},function(t,e,r){"use strict";var n=r(0),o=r(4),i=r(7),u=r(24),a=r(12),c=r(54).KEY,s=r(11),f=r(19),l=r(27),p=r(10),h=r(1),v=r(36),y=r(35),d=r(55),m=r(56),g=r(15),b=r(6),x=r(8),w=r(20),O=r(16),S=r(31),j=r(57),k=r(58),P=r(5),E=r(17),L=k.f,_=P.f,R=j.f,A=n.Symbol,T=n.JSON,C=T&&T.stringify,F=h("_hidden"),I=h("toPrimitive"),N={}.propertyIsEnumerable,M=f("symbol-registry"),D=f("symbols"),G=f("op-symbols"),q=Object.prototype,J="function"==typeof A,z=n.QObject,U=!z||!z.prototype||!z.prototype.findChild,H=i&&s(function(){return 7!=S(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=L(q,e);n&&delete q[e],_(t,e,r),n&&t!==q&&_(q,e,n)}:_,V=function(t){var e=D[t]=S(A.prototype);return e._k=t,e},W=J&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},Y=function(t,e,r){return t===q&&Y(G,e,r),g(t),e=w(e,!0),g(r),o(D,e)?(r.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),r=S(r,{enumerable:O(0,!1)})):(o(t,F)||_(t,F,O(1,{})),t[F][e]=!0),H(t,e,r)):_(t,e,r)},B=function(t,e){g(t);for(var r,n=d(e=x(e)),o=0,i=n.length;i>o;)Y(t,r=n[o++],e[r]);return t},K=function(t){var e=N.call(this,t=w(t,!0));return!(this===q&&o(D,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,F)&&this[F][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==q||!o(D,e)||o(G,e)){var r=L(t,e);return!r||!o(D,e)||o(t,F)&&t[F][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=R(x(t)),n=[],i=0;r.length>i;)o(D,e=r[i++])||e==F||e==c||n.push(e);return n},$=function(t){for(var e,r=t===q,n=R(r?G:x(t)),i=[],u=0;n.length>u;)!o(D,e=n[u++])||r&&!o(q,e)||i.push(D[e]);return i};J||(a((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(G,r),o(this,F)&&o(this[F],t)&&(this[F][t]=!1),H(this,t,O(1,r))};return i&&U&&H(q,t,{configurable:!0,set:e}),V(t)}).prototype,"toString",function(){return this._k}),k.f=Q,P.f=Y,r(39).f=j.f=Z,r(28).f=K,r(38).f=$,i&&!r(14)&&a(q,"propertyIsEnumerable",K,!0),v.f=function(t){return V(h(t))}),u(u.G+u.W+u.F*!J,{Symbol:A});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=E(h.store),rt=0;et.length>rt;)y(et[rt++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return o(M,t+="")?M[t]:M[t]=A(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in M)if(M[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),u(u.S+u.F*!J,"Object",{create:function(t,e){return void 0===e?S(t):B(S(t),e)},defineProperty:Y,defineProperties:B,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),T&&u(u.S+u.F*(!J||s(function(){var t=A();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)&&!W(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!W(e))return e}),n[1]=e,C.apply(T,n)}}),A.prototype[I]||r(3)(A.prototype,I,A.prototype.valueOf),l(A,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(32),o=r(26).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(1)("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(22);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(14),o=r(24),i=r(12),u=r(3),a=r(21),c=r(46),s=r(27),f=r(52),l=r(1)("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 k)return k[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,j=!1,k=t.prototype,P=k[l]||k["@@iterator"]||y&&k[y],E=P||w(y),L=y?S?w("entries"):E:void 0,_="Array"==e&&k.entries||P;if(_&&(x=f(_.call(new t)))!==Object.prototype&&x.next&&(s(x,O,!0),n||"function"==typeof x[l]||u(x,l,h)),S&&P&&"values"!==P.name&&(j=!0,E=function(){return P.call(this)}),n&&!m||!p&&!j&&k[l]||u(k,l,E),a[e]=E,a[O]=h,y)if(g={values:S?E:w("values"),keys:d?E:w("keys"),entries:L},m)for(b in g)b in k||i(k,b,g[b]);else o(o.P+o.F*(p||j),e,g);return g}},function(t,e,r){var n=r(45);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){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,r){"use strict";var n=r(31),o=r(16),i=r(27),u={};r(3)(u,r(1)("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(5),o=r(15),i=r(17);t.exports=r(7)?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(8),o=r(49),i=r(50);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(33),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(33),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(4),o=r(53),i=r(25)("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(23);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(10)("meta"),o=r(6),i=r(4),u=r(5).f,a=0,c=Object.isExtensible||function(){return!0},s=!r(11)(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(17),o=r(38),i=r(28);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(22);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(8),o=r(39).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(28),o=r(16),i=r(8),u=r(20),a=r(4),c=r(29),s=Object.getOwnPropertyDescriptor;e.f=r(7)?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(2),o=r(17),i=r(12),u=r(0),a=r(3),c=r(21),s=r(1),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(61)("split",2,function(t,e,n){"use strict";var o=r(62),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(12),i=r(11),u=r(23),a=r(1);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(6),o=r(22),i=r(1)("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(24),o=r(0).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&o(t)}})},function(t,e,r){"use strict";r.r(e);r(2),r(9);var n=r(18),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(34),r(37);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,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 y(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){v(i,n,o,u,a,"next",t)}function a(t){v(i,n,o,u,a,"throw",t)}u(void 0)})}}function d(t,e,r){return m.apply(this,arguments)}function m(){return(m=y(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 g(t,e){return b.apply(this,arguments)}function b(){return(b=y(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 x(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 w(t,e){return O.apply(this,arguments)}function O(){return(O=y(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 S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(t.invalidate)?t.invalidate:w}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(59),r(60),r(63);function k(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 E=/([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g,L="max-age",_="s-maxage",R="max-stale",A="min-fresh",T="immutable",C="must-revalidate",F="no-cache",I="no-store",N="no-transform",M="only-if-cached",D="private",G="proxy-revalidate",q="public";function J(t){return null===t}function z(t){if(!t)return null;var e=parseInt(t,10);return!Number.isFinite(e)||e<0?null:e}var U=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(E)||[];return Array.prototype.forEach.call(r,function(t){var r=t.split("=",2),n=k(r,1)[0],o=null;r.length>1&&(o=r[1].trim()),e[n.toLowerCase()]=o}),this.maxAge=z(e[L]),this.sharedMaxAge=z(e[_]),this.maxStale=J(e[R]),this.maxStaleDuration=z(e[R]),this.maxStaleDuration&&(this.maxStale=!0),this.minFresh=z(e[A]),this.immutable=J(e[T]),this.mustRevalidate=J(e[C]),this.noCache=J(e[F]),this.noStore=J(e[I]),this.noTransform=J(e[N]),this.onlyIfCached=J(e[M]),this.private=J(e[D]),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(_,"=").concat(this.sharedMaxAge)),this.maxStale&&(this.maxStaleDuration?t.push("".concat(R,"=").concat(this.maxStaleDuration)):t.push(R)),this.minFresh&&t.push("".concat(A,"=").concat(this.minFresh)),this.immutable&&t.push(T),this.mustRevalidate&&t.push(C),this.noCache&&t.push(F),this.noStore&&t.push(I),this.noTransform&&t.push(N),this.onlyIfCached&&t.push(M),this.private&&t.push(D),this.proxyRevalidate&&t.push(G),this.public&&t.push(q),t.join(", ")}}]),t}();function H(t){return(new U).parse(t)}function V(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 W(){return(W=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){V(i,n,o,u,a,"next",t)}function a(t){V(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=H(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,d(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 Y=function(t,e,r){return W.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 K(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 Q(){return(Q=function(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){K(i,n,o,u,a,"next",t)}function a(t){K(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 Y.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,g(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 Z=function(t,e){return Q.apply(this,arguments)};function $(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 X(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){$(i,n,o,u,a,"next",t)}function a(t){$(i,n,o,u,a,"throw",t)}u(void 0)})}}function tt(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 et=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&&tt(t.prototype,e),r&&tt(t,r)}(t,[{key:"getItem",value:function(){var t=X(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=X(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=X(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=X(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=X(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(function(t,e){return l(t)?Object.keys(t).map(function(r){return e(t[r],r)}):[]}(this.store,t))}}]),t}();function rt(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){nt(t,e,r[e])})}return t}function nt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ot=function(){},it=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))},ut={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}}},at=["limit","store","adapter","uuid","acceptStale"],ct=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=rt({},ut.cache,t);return e.key=x(e),e.invalidate=S(e),!1!==e.debug?e.debug="function"==typeof e.debug?e.debug:it:e.debug=ot,e.store||(e.store=new et),e.debug("Global cache config",e),e},st=function(t,e){var r=e.cache||{};r&&at.forEach(function(t){return r[t]?delete r[t]:void 0});var n=rt({},t,r,{exclude:rt({},t.exclude,r.exclude)});return!0===n.debug&&(n.debug=it),n.uuid=t.key(e),t.debug("Request config for ".concat(e.url),n),n};function ft(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 lt(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){pt(t,e,r[e])})}return t}function pt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ht(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 vt(){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){ht(i,n,o,u,a,"next",t)}function a(t){ht(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=st(t,r),e.next=3,Z(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,Z(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=ct(t),store:t.store}}function yt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=lt({},ut.axios,t,{cache:lt({},ut.axios.cache,t.cache)}),r=vt(e.cache),n=(e.cache,ft(e,["cache"])),i=o.a.create(lt({},n,{adapter:r.adapter}));return i.cache=r.store,i}var dt={setup:yt,setupCache:vt,serializeQuery:j};r.d(e,"setup",function(){return yt}),r.d(e,"setupCache",function(){return vt}),r.d(e,"serializeQuery",function(){return j}),r.d(e,"default",function(){return dt})}])});
//# sourceMappingURL=cache.min.js.map