text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lodash/omit"),require("lodash/merge"),require("axios"),require("lodash/isFunction"),require("lodash/extend"),require("lodash/isString"),require("lodash/find"),require("lodash/isEmpty"),require("lodash/size"),require("lodash/map")):"function"==typeof define&&define.amd?define(["lodash/omit","lodash/merge","axios","lodash/isFunction","lodash/extend","lodash/isString","lodash/find","lodash/isEmpty","lodash/size","lodash/map"],e):"object"==typeof exports?exports.axiosCacheAdapter=e(require("lodash/omit"),require("lodash/merge"),require("axios"),require("lodash/isFunction"),require("lodash/extend"),require("lodash/isString"),require("lodash/find"),require("lodash/isEmpty"),require("lodash/size"),require("lodash/map")):t.axiosCacheAdapter=e(t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0])}(global,function(t,e,r,n,o,i,u,a,c,s){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=35)}([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=b;var p="suspendedStart",l="suspendedYield",h="executing",v="completed",d={},y={};y[u]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(R([])));g&&g!==n&&o.call(g,u)&&(y=g);var x=_.prototype=k.prototype=Object.create(y);O.prototype=x.constructor=_,_.constructor=O,_[c]=O.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},f.awrap=function(t){return{__await:t}},E(j.prototype),j.prototype[a]=function(){return this},f.AsyncIterator=j,f.async=function(t,e,r,n){var o=new j(b(t,e,r,n));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},E(x),x[c]="Generator",x[u]=function(){return this},x.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=R,q.prototype={constructor:q,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,d):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),d},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),d}},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:R(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),d}}}function b(t,e,r,n){var o=e&&e.prototype instanceof k?e:k,i=Object.create(o.prototype),u=new q(n||[]);return i._invoke=function(t,e,r){var n=p;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===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)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:l,c.arg===d)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 k(){}function O(){}function _(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(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 d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=w(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(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 q(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(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){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(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){var n=r(6),o=r(20);t.exports=r(5)?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){t.exports=!r(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(12),o=r(37),i=r(38),u=Object.defineProperty;e.f=r(5)?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){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(22)("wks"),o=r(14),i=r(1).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){t.exports=r},function(t,e){t.exports=n},function(t,e){var r=t.exports={version:"2.6.0"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(13);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof 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,r){var n=r(44),o=r(25);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(22)("keys"),o=r(14);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(1),o=r(11),i=r(4),u=r(21),a=r(39),c=function(t,e,r){var s,f,p,l,h=t&c.F,v=t&c.G,d=t&c.S,y=t&c.P,m=t&c.B,g=v?n:d?n[e]||(n[e]={}):(n[e]||{}).prototype,x=v?o:o[e]||(o[e]={}),b=x.prototype||(x.prototype={});for(s in v&&(r=e),r)p=((f=!h&&g&&void 0!==g[s])?g:r)[s],l=m&&f?a(p,n):y&&"function"==typeof p?a(Function.call,p):p,g&&u(g,s,p,t&c.U),x[s]!=p&&i(x,s,l),y&&b[s]!=p&&(b[s]=p)};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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(13),o=r(1).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(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(1),o=r(4),i=r(7),u=r(14)("src"),a=Function.toString,c=(""+a).split("toString");r(11).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,r){var n=r(11),o=r(1),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(23)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},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){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(6).f,o=r(7),i=r(8)("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){t.exports=o},function(t,e){t.exports=i},function(t,e){t.exports=u},function(t,e){t.exports=a},function(t,e){t.exports=c},function(t,e){t.exports=s},function(t,e,r){t.exports=r(58)},function(t,e,r){var n=r(17);n(n.S+n.F*!r(5),"Object",{defineProperty:r(6).f})},function(t,e,r){t.exports=!r(5)&&!r(18)(function(){return 7!=Object.defineProperty(r(19)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(13);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,r){var n=r(40);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(42),o=r(43),i=r(24),u=r(15);t.exports=r(46)(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(8)("unscopables"),o=Array.prototype;null==o[n]&&r(4)(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(45);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){"use strict";var n=r(23),o=r(17),i=r(21),u=r(4),a=r(24),c=r(47),s=r(28),f=r(56),p=r(8)("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,v,d,y,m){c(r,e,v);var g,x,b,w=function(t){if(!l&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},k=e+" Iterator",O="values"==d,_=!1,E=t.prototype,j=E[p]||E["@@iterator"]||d&&E[d],P=j||w(d),S=d?O?w("entries"):P:void 0,L="Array"==e&&E.entries||j;if(L&&(b=f(L.call(new t)))!==Object.prototype&&b.next&&(s(b,k,!0),n||"function"==typeof b[p]||u(b,p,h)),O&&j&&"values"!==j.name&&(_=!0,P=function(){return j.call(this)}),n&&!m||!l&&!_&&E[p]||u(E,p,P),a[e]=P,a[k]=h,d)if(g={values:O?P:w("values"),keys:y?P:w("keys"),entries:S},m)for(x in g)x in E||i(E,x,g[x]);else o(o.P+o.F*(l||_),e,g);return g}},function(t,e,r){"use strict";var n=r(48),o=r(20),i=r(28),u={};r(4)(u,r(8)("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(12),o=r(49),i=r(27),u=r(16)("IE_PROTO"),a=function(){},c=function(){var t,e=r(19)("iframe"),n=i.length;for(e.style.display="none",r(55).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(6),o=r(12),i=r(50);t.exports=r(5)?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(51),o=r(27);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(7),o=r(15),i=r(52)(!1),u=r(16)("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,r){var n=r(15),o=r(53),i=r(54);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(26),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(26),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(1).document;t.exports=n&&n.documentElement},function(t,e,r){var n=r(7),o=r(57),i=r(16)("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){"use strict";r.r(e);r(0);var n=r(9),o=r.n(n),i=r(2),u=r.n(i),a=r(3),c=r.n(a),s=r(10),f=r.n(s),p=r(29),l=r.n(p);function h(){return"navigator"in window&&"onLine"in navigator&&!navigator.onLine}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 d(){var t;return t=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)}),(d=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)})}).apply(this,arguments)}var y=function(t){return d.apply(this,arguments)},m=r(30),g=r.n(m);var x=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 u()(r,["request","config"])};function b(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(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){b(i,n,o,u,a,"next",t)}function a(t){b(i,n,o,u,a,"throw",t)}u(void 0)})}}function k(t,e,r){return O.apply(this,arguments)}function O(){return(O=w(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:x(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 _(t,e){return E.apply(this,arguments)}function E(){return(E=w(regeneratorRuntime.mark(function t(e,r){var n,o,i,u,a,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.uuid,t.next=3,e.store.getItem(n);case 3:if((o=t.sent)&&o.data){t.next=10;break}throw e.debug("cache-miss",r.url),(i=new Error).reason="cache-miss",i.message="Entry not found from cache",i;case 10:if(u=o.expires,a=o.data,h()||0===u||!(u<Date.now())){t.next=17;break}throw e.debug("cache-stale",r.url),(c=new Error).reason="cache-stale",c.message="Entry is stale",c;case 17:return e.debug("cache-hit",r.url),t.abrupt("return",a);case 19:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function j(t){return f()(t.key)?t.key:g()(t.key)?function(e){return"".concat(t.key,"/").concat(e.url)}:function(t){return t.url}}function P(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 S(){var t;return t=regeneratorRuntime.mark(function t(e,r,n){var o,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=n.request,!(["arraybuffer","blob"].indexOf((void 0===o?{}:o).responseType)>-1)){t.next=3;break}return t.abrupt("return",n);case 3:if(e.excludeFromCache){t.next=12;break}if(i=r.maxAge||e.maxAge,e.expires=0===i?0:Date.now()+i,!e.limit){t.next=10;break}return e.debug("Detected limit: ".concat(e.limit)),t.next=10,y(e);case 10:return t.next=12,k(e,r,n);case 12:return t.abrupt("return",n);case 13:case"end":return t.stop()}},t,this)}),(S=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){P(i,n,o,u,a,"next",t)}function a(t){P(i,n,o,u,a,"throw",t)}u(void 0)})}).apply(this,arguments)}var L=function(t,e,r){return S.apply(this,arguments)},q=r(31),R=r.n(q),F=r(32),I=r.n(F);var T=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=e.url.match(/\?.*$/)||!I()(e.params);if(n.query&&i)return o("Excluding request by query ".concat(e.url)),!0;var u=n.paths||[];return!!R()(u,function(t){return e.url.match(t)})&&(o("Excluding request by url match ".concat(e.url)),!0)};function A(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 C(){var t;return t=regeneratorRuntime.mark(function t(e,r){var n,o,i,u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=function(){return e.excludeFromCache=!0,{config:e,next:o}},n=e.key(r),e=l()({},e,{uuid:n}),o=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return L.apply(void 0,[e,r].concat(n))},!T(e,r)){t.next=6;break}return t.abrupt("return",a());case 6:if("head"!==(i=r.method.toLowerCase())){t.next=9;break}return t.abrupt("return",a());case 9:if(r.cache||"get"===i){t.next=13;break}return t.next=12,e.store.removeItem(n);case 12:return t.abrupt("return",a());case 13:if(!r.networkFirst||h()){t.next=15;break}return t.abrupt("return",{config:e,next:o});case 15:return t.prev=15,t.next=18,_(e,r);case 18:return(u=t.sent).config=r,u.request={fromCache:!0},t.abrupt("return",{config:e,next:u});case 24:if(t.prev=24,t.t0=t.catch(15),!e.clearOnStale||"cache-stale"!==t.t0.reason){t.next=29;break}return t.next=29,e.store.removeItem(n);case 29:return t.abrupt("return",{config:e,next:o});case 30:case"end":return t.stop()}},t,this,[[15,24]])}),(C=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){A(i,n,o,u,a,"next",t)}function a(t){A(i,n,o,u,a,"throw",t)}u(void 0)})}).apply(this,arguments)}var M=function(t,e){return C.apply(this,arguments)},N=(r(36),r(41),r(33)),G=r.n(N),z=r(34),D=r.n(z);function J(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 B(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){J(i,n,o,u,a,"next",t)}function a(t){J(i,n,o,u,a,"throw",t)}u(void 0)})}}function U(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 W=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store={}}var e,r,n;return e=t,(r=[{key:"getItem",value:function(){var t=B(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=B(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=B(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=B(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=B(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",G()(this.store));case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"iterate",value:function(t){return Promise.all(D()(this.store,function(e,r){return t(e,r)}))}}])&&U(e.prototype,r),n&&U(e,n),t}(),Y=function(){},$=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))},H={cache:{maxAge:0,limit:!1,store:null,key:null,exclude:{paths:[],query:!0,filter:null},adapter:o.a.defaults.adapter,clearOnStale:!0,clearOnError:!0,debug:!1},axios:{cache:{maxAge:9e5}}},K=["limit","store","adapter"],Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=c()({},H.cache,t);return e.key=j(e),!1!==e.debug?e.debug="function"==typeof e.debug?e.debug:$:e.debug=Y,e.store||(e.store=new W),e},V=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c()({},t,u()(e,K));return!0===r.debug&&(r.debug=$),r};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 Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function e(){var r;return r=regeneratorRuntime.mark(function e(r){var n,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=V(t,r.cache),e.next=3,M(n,r);case 3:if(o=e.sent,i=o.next,f()(i)){e.next=7;break}return e.abrupt("return",i);case 7:return e.next=9,n.adapter(r);case 9:return o=e.sent,e.abrupt("return",i(o));case 11:case"end":return e.stop()}},e,this)}),(e=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);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)})}).apply(this,arguments)}return{adapter:function(t){return e.apply(this,arguments)},config:t=Q(t),store:t.store}}function tt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Z((t=c()({},H.axios,t)).cache),r=u()(t,["cache"]),n=o.a.create(c()({},r,{adapter:e.adapter}));return n.cache=e.store,n}r.d(e,"setup",function(){return tt}),r.d(e,"setupCache",function(){return Z});e.default={setup:tt,setupCache:Z}}])});
  //# sourceMappingURL=cache.node.min.js.map