Results
07.07.2020
admin_menu 8.x-3.x-dev ::
lib/Drupal/admin_menu/AdminMenuBundle.php
namespace Drupal\admin_menu; use Drupal\Core\Cache\CacheFactory; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; /** * Admin menu dependency injection container. */
*/
public function build(ContainerBuilder $container) {
CacheFactory::registerBin($container, 'admin_menu');
}
} 29.11.2019
angular_js_example 8.x-1.x-dev ::
js/angular.js
$anchorScroll: $AnchorScrollProvider,
$browser: $BrowserProvider,
$cacheFactory: $CacheFactoryProvider,
$controller: $ControllerProvider,
$document: $DocumentProvider,
$exceptionHandler: $ExceptionHandlerProvider,
$filter: $FilterProvider,
$interpolate: $InterpolateProvider,
$http: $HttpProvider,
/**
* @ngdoc object
* @name ng.$cacheFactory
*
* @description
* Factory that constructs cache objects.
*
*
* @param {string} cacheId Name or id of the newly created cache.
* - `{void}` `remove({string} key)` — Removes a key-value pair from the cache.
* - `{void}` `removeAll()` — Removes all cached values.
* - `{void}` `destroy()` — Removes references to this cache from $cacheFactory.
*
*/
function $CacheFactoryProvider() {
this.$get = function() {
var caches = {};
function cacheFactory(cacheId, options) {
if (cacheId in caches) {
throw Error('cacheId ' + cacheId + ' taken');
}
var size = 0,
stats = extend({}, options, {id: cacheId}),
cacheFactory.info = function() {
var info = {};
forEach(caches, function(cache, cacheId) {
info[cacheId] = cache.info();
});
return info;
};
cacheFactory.get = function(cacheId) {
return caches[cacheId];
};
return cacheFactory;
};
}
/**
* @ngdoc object
* @name ng.$templateCache
* Cache used for storing html templates.
*
* See {@link ng.$cacheFactory $cacheFactory}.
*
*/
function $TemplateCacheProvider() {
this.$get = ['$cacheFactory', function($cacheFactory) {
return $cacheFactory('templates');
}];
}
/* ! VARIABLE/FUNCTION NAMING CONVENTIONS THAT APPLY TO THIS FILE!
*
* DOM-related variables:
var providerResponseInterceptors = this.responseInterceptors = [];
this.$get = ['$httpBackend', '$browser', '$cacheFactory', '$rootScope', '$q', '$injector',
function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {
var defaultCache = $cacheFactory('$http'),
responseInterceptors = [];
forEach(providerResponseInterceptors, function(interceptor) {
responseInterceptors.push(
isString(interceptor)
? $injector.get(interceptor)
* @requires $httpBackend
* @requires $browser
* @requires $cacheFactory
* @requires $rootScope
* @requires $q
* @requires $injector
*
* @description
* The `$http` service is a core Angular service that facilitates communication with the remote
* - **cache** – `{boolean|Cache}` – If true, a default $http cache will be used to cache the
* GET request, otherwise if a cache instance built with
* {@link ng.$cacheFactory $cacheFactory}, this cache will be used for
* caching.
* - **timeout** – `{number}` – timeout in milliseconds.
* - **withCredentials** - `{boolean}` - whether to to set the `withCredentials` flag on the
* XHR object. See {@link https://developer.mozilla.org/en/http_access_control#section_5
* requests with credentials} for more information.
* 08.10.2018
angularjsexample 8.x-1.x-dev ::
js/angular.min.js
p++;c=l(function(){delete o[c];e(a)},b||0);o[c]=!0;return c};f.defer.cancel=function(a){return o[a]?(delete o[a],n(a),e(C),!0):!1}}function wc(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new vc(b,d,a,c)}]}function xc(){this.$get=function(){function b(b,d){function e(a){if(a!=l){if(n){if(n==a)n=a.n}else n=a;g(a.n,a.p);g(a,l);l=a;l.n=null}}function g(a,b){if(a!=b){if(a)a.p=b;if(b)b.n=a}}if(b in a)throw Error("cacheId "+b+" taken");var h=0,f=v({},d,{id:b}),i={},j=d&&
d.capacity||Number.MAX_VALUE,k={},l=null,n=null;return a[b]={put:function(a,b){var c=k[a]||(k[a]={key:a});e(c);w(b)||(a in i||h++,i[a]=b,h>j&&this.remove(n.key))},get:function(a){var b=k[a];if(b)return e(b),i[a]},remove:function(a){var b=k[a];if(b){if(b==l)l=b.p;if(b==n)n=b.n;g(b.n,b.p);delete k[a];delete i[a];h--}},removeAll:function(){i={};h=0;k={};l=n=null},destroy:function(){k=f=i=null;delete a[b]},info:function(){return v({},f,{size:h})}}}var a={};b.info=function(){var b={};m(a,function(a,e){b[e]=
a.info()});return b};b.get=function(b){return a[b]};return b}}function yc(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function Db(b){var a={},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g="Template must have exactly one root element. was: ",h=/^\s*(https?|ftp|mailto|file):/;this.directive=function i(d,e){B(d)?($a(e,"directive"),a.hasOwnProperty(d)||(a[d]=[],b.factory(d+c,["$injector","$exceptionHandler",function(b,c){var e=[];m(a[d],
function(a){try{var g=b.invoke(a);if(H(g))g={compile:I(g)};else if(!g.compile&&g.link)g.compile=I(g.link);g.priority=g.priority||0;g.name=g.name||d;g.require=g.require||g.controller&&g.name;g.restrict=g.restrict||"A";e.push(g)}catch(h){c(h)}});return e}])),a[d].push(e)):m(d,nb(i));return this};this.urlSanitizationWhitelist=function(a){return y(a)?(h=a,this):h};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document",function(b,
j,k,l,n,o,p,s,t){function x(a,b,c){a instanceof u||(a=u(a));m(a,function(b,c){b.nodeType==3&&b.nodeValue.match(/\S+/)&&(a[c]=u(b).wrap("<span></span>").parent()[0])});var d=A(a,b,a,c);return function(b,c){$a(b,"scope");for(var e=c?ua.clone.call(a):a,j=0,g=e.length;j<g;j++){var h=e[j];(h.nodeType==1||h.nodeType==9)&&e.eq(j).data("$scope",b)}M(e,"ng-scope");c&&c(e,b);d&&d(b,e,e);return e}}function M(a,b){try{a.addClass(b)}catch(c){}}function A(a,b,c,d){function e(a,c,d,g){var h,i,k,p,o,l,n,t=[];o=0;
for(l=c.length;o<l;o++)t.push(c[o]);n=o=0;for(l=j.length;o<l;n++)i=t[n],c=j[o++],h=j[o++],c?(c.scope?(k=a.$new(L(c.scope)),u(i).data("$scope",k)):k=a,(p=c.transclude)||!g&&b?c(h,k,i,d,function(b){return function(c){var d=a.$new();d.$$transcluded=!0;return b(d,c).bind("$destroy",Ta(d,d.$destroy))}}(p||b)):c(h,k,i,q,g)):h&&h(a,i.childNodes,q,g)}for(var j=[],g,h,i,k=0;k<a.length;k++)h=new ia,g=N(a[k],[],h,d),h=(g=g.length?J(g,a[k],h,b,c):null)&&g.terminal||!a[k].childNodes||!a[k].childNodes.length?null:
A(a[k].childNodes,g?g.transclude:b),j.push(g),j.push(h),i=i||g||h;return i?e:null}function N(a,b,c,g){var j=c.$attr,h;switch(a.nodeType){case 1:r(b,ea(fb(a).toLowerCase()),"E",g);var i,k,o;h=a.attributes;for(var p=0,l=h&&h.length;p<l;p++)if(i=h[p],i.specified)k=i.name,o=ea(k.toLowerCase()),j[o]=k,c[o]=i=Q(Z&&k=="href"?decodeURIComponent(a.getAttribute(k,2)):i.value),Ab(a,o)&&(c[o]=!0),V(a,b,i,o),r(b,o,"A",g);a=a.className;if(B(a)&&a!=="")for(;h=e.exec(a);)o=ea(h[2]),r(b,o,"C",g)&&(c[o]=Q(h[3])),a=
a.substr(h.index+h[0].length);break;case 3:y(b,a.nodeValue);break;case 8:try{if(h=d.exec(a.nodeValue))o=ea(h[1]),r(b,o,"M",g)&&(c[o]=Q(h[2]))}catch(n){}}b.sort(F);return b}function J(a,b,c,d,e){function j(a,b){if(a)a.require=r.require,n.push(a);if(b)b.require=r.require,t.push(b)}function h(a,b){var c,d="data",e=!1;if(B(a)){for(;(c=a.charAt(0))=="^"||c=="?";)a=a.substr(1),c=="^"&&(d="inheritedData"),e=e||c=="?";c=b[d]("$"+a+"Controller");if(!c&&!e)throw Error("No controller: "+a);}else E(a)&&(c=[],
m(a,function(a){c.push(h(a,b))}));return c}function i(a,d,e,g,j){var l,s,r,D,M;l=b===e?c:hc(c,new ia(u(e),c.$attr));s=l.$$element;if(J){var zc=/^\s*([@=&])\s*(\w*)\s*$/,x=d.$parent||d;m(J.scope,function(a,b){var c=a.match(zc)||[],e=c[2]||b,c=c[1],g,j,h;d.$$isolateBindings[b]=c+e;switch(c){case "@":l.$observe(e,function(a){d[b]=a});l.$$observers[e].$$scope=x;break;case "=":j=o(l[e]);h=j.assign||function(){g=d[b]=j(x);throw Error(Eb+l[e]+" (directive: "+J.name+")");};g=d[b]=j(x);d.$watch(function(){var a=
["$window",function(b){var a={},c=G((/android (\d+)/.exec(z(b.navigator.userAgent))||[])[1]);return{history:!(!b.history||!b.history.pushState||c<4),hashchange:"onhashchange"in b&&(!b.document.documentMode||b.document.documentMode>7),hasEvent:function(c){if(c=="input"&&Z==9)return!1;if(w(a[c])){var e=b.document.createElement("div");a[c]="on"+c in e}return a[c]},csp:!1}}]}function Vc(){this.$get=I(P)}function Ob(b){var a={},c,d,e;if(!b)return a;m(b.split("\n"),function(b){e=b.indexOf(":");c=z(Q(b.substr(0,
e)));d=Q(b.substr(e+1));c&&(a[c]?a[c]+=", "+d:a[c]=d)});return a}function Pb(b){var a=L(b)?b:q;return function(c){a||(a=Ob(b));return c?a[z(c)]||null:a}}function Qb(b,a,c){if(H(c))return c(b,a);m(c,function(c){b=c(b,a)});return b}function Wc(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d=this.defaults={transformResponse:[function(d){B(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=pb(d,!0)));return d}],transformRequest:[function(a){return L(a)&&wa.apply(a)!=="[object File]"?da(a):a}],
headers:{common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json;charset=utf-8"},put:{"Content-Type":"application/json;charset=utf-8"}}},e=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,i,j,k){function l(a){function c(a){var b=v({},a,{data:Qb(a.data,a.headers,f)});return 200<=a.status&&a.status<300?b:j.reject(b)}a.method=la(a.method);var e=a.transformRequest||
d.transformRequest,f=a.transformResponse||d.transformResponse,g=d.headers,g=v({"X-XSRF-TOKEN":b.cookies()["XSRF-TOKEN"]},g.common,g[z(a.method)],a.headers),e=Qb(a.data,Pb(g),e),i;w(a.data)&&delete g["Content-Type"];i=n(a,e,g);i=i.then(c,c);m(s,function(a){i=a(i)});i.success=function(b){i.then(function(c){b(c.data,c.status,c.headers,a)});return i};i.error=function(b){i.then(null,function(c){b(c.data,c.status,c.headers,a)});return i};return i}function n(b,c,d){function e(a,b,c){m&&(200<=a&&a<300?m.put(q,
[a,b,Ob(c)]):m.remove(q));f(b,a,c);i.$apply()}function f(a,c,d){c=Math.max(c,0);(200<=c&&c<300?k.resolve:k.reject)({data:a,status:c,headers:Pb(d),config:b})}function h(){var a=za(l.pendingRequests,b);a!==-1&&l.pendingRequests.splice(a,1)}var k=j.defer(),n=k.promise,m,s,q=o(b.url,b.params);l.pendingRequests.push(b);n.then(h,h);b.cache&&b.method=="GET"&&(m=L(b.cache)?b.cache:p);if(m)if(s=m.get(q))if(s.then)return s.then(h,h),s;else E(s)?f(s[1],s[0],U(s[2])):f(s,200,{});else m.put(q,n);s||a(b.method,
q,c,e,d,b.timeout,b.withCredentials);return n}function o(a,b){if(!b)return a;var c=[];fc(b,function(a,b){a==null||a==q||(L(a)&&(a=da(a)),c.push(encodeURIComponent(b)+"="+encodeURIComponent(a)))});return a+(a.indexOf("?")==-1?"?":"&")+c.join("&")}var p=c("$http"),s=[];m(e,function(a){s.push(B(a)?k.get(a):k.invoke(a))});l.pendingRequests=[];(function(a){m(arguments,function(a){l[a]=function(b,c){return l(v(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){m(arguments,function(a){l[a]=
function(b,c,d){return l(v(d||{},{method:a,url:b,data:c}))}})})("post","put");l.defaults=d;return l}]}function Xc(){this.$get=["$browser","$window","$document",function(b,a,c){return Yc(b,Zc,b.defer,a.angular.callbacks,c[0],a.location.protocol.replace(":",""))}]}function Yc(b,a,c,d,e,g){function h(a,b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;Z?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=
d;e.body.appendChild(c)}return function(e,i,j,k,l,n,o){function p(a,c,d,e){c=(i.match(Hb)||["",g])[1]=="file"?d?200:404:c;a(c==1223?204:c,d,e);b.$$completeOutstandingRequest(C)}b.$$incOutstandingRequestCount();i=i||b.url();if(z(e)=="jsonp"){var s="_"+(d.counter++).toString(36);d[s]=function(a){d[s].data=a};h(i.replace("JSON_CALLBACK","angular.callbacks."+s),function(){d[s].data?p(k,200,d[s].data):p(k,-2);delete d[s]})}else{var t=new a;t.open(e,i,!0);m(l,function(a,b){a&&t.setRequestHeader(b,a)});
var q;t.onreadystatechange=function(){if(t.readyState==4){var a=t.getAllResponseHeaders(),b=["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma"];a||(a="",m(b,function(b){var c=t.getResponseHeader(b);c&&(a+=b+": "+c+"\n")}));p(k,q||t.status,t.responseText,a)}};if(o)t.withCredentials=!0;t.send(j||"");n>0&&c(function(){q=-1;t.abort()},n)}}}function $c(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,
c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&k.removeOption(c);k.addOption(a)}):k.addOption(e.value);d.bind("$destroy",function(){k.removeOption(e.value)})}}}}],Xd=I({restrict:"E",terminal:!0});(ca=P.jQuery)?(u=ca,v(ca.fn,{scope:ua.scope,controller:ua.controller,injector:ua.injector,inheritedData:ua.inheritedData}),ab("remove",!0),ab("empty"),ab("html")):u=K;Ya.element=u;(function(a){v(a,{bootstrap:rb,copy:U,extend:v,equals:fa,element:u,forEach:m,injector:sb,noop:C,bind:Ta,toJson:da,fromJson:pb,
identity:ma,isUndefined:w,isDefined:y,isString:B,isFunction:H,isObject:L,isNumber:Qa,isElement:gc,isArray:E,version:jd,isDate:na,lowercase:z,uppercase:la,callbacks:{counter:0}});sa=lc(P);try{sa("ngLocale")}catch(c){sa("ngLocale",[]).provider("$locale",$c)}sa("ng",["ngLocale"],["$provide",function(a){a.provider("$compile",Db).directive({a:kd,input:cc,textarea:cc,form:ld,script:Td,select:Vd,style:Xd,option:Wd,ngBind:wd,ngBindHtmlUnsafe:yd,ngBindTemplate:xd,ngClass:zd,ngClassEven:Bd,ngClassOdd:Ad,ngCsp:Ed,
ngCloak:Cd,ngController:Dd,ngForm:md,ngHide:Md,ngInclude:Gd,ngInit:Hd,ngNonBindable:Id,ngPluralize:Jd,ngRepeat:Kd,ngShow:Ld,ngSubmit:Fd,ngStyle:Nd,ngSwitch:Od,ngSwitchWhen:Pd,ngSwitchDefault:Qd,ngOptions:Ud,ngView:Sd,ngTransclude:Rd,ngModel:rd,ngList:td,ngChange:sd,required:dc,ngRequired:dc,ngValue:vd}).directive(lb).directive(ec);a.provider({$anchorScroll:uc,$browser:wc,$cacheFactory:xc,$controller:Cc,$document:Dc,$exceptionHandler:Ec,$filter:Rb,$interpolate:Fc,$http:Wc,$httpBackend:Xc,$location:Jc,
$log:Kc,$parse:Oc,$route:Rc,$routeParams:Sc,$rootScope:Tc,$q:Pc,$sniffer:Uc,$templateCache:yc,$timeout:ad,$window:Vc})}])})(Ya);u(T).ready(function(){jc(T,rb)})})(window,document);angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>'); 01.04.2018
apollo 8.x-1.x-dev ::
js/dist/apollo-client.js
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=22)}([function(e,t,r){"use strict";function n(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1}function i(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function o(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return o(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return o(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new Error('The inline argument "'+t.value+'" of kind "'+r.kind+'" is not supported.\n Use variables instead of inline arguments to overcome this limitation.');e[t.value]=null}}function a(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,a=n.value;return o(r[e.name.value],i,a,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return o(n,r,i,t)})),s(e.name.value,n,r)}r.r(t);var u=["connection","include","skip","client","rest","export"];function s(e,t,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach(function(e){o[e]=i[e]}),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var s=JSON.stringify(t);a+="("+s+")"}return r&&Object.keys(r).forEach(function(e){-1===u.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)}),a}function c(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,i=e.value;return o(r,n,i,t)}),r}return null}function l(e){return e.alias?e.alias.value:e.name.value}function f(e){return"Field"===e.kind}function d(e){return"InlineFragment"===e.kind}function p(e){return e&&"id"===e.type}function h(e,t){return void 0===t&&(t=!1),{type:"id",id:e,generated:t}}function v(e){return null!=e&&"object"==typeof e&&"json"===e.type}function y(e){throw new Error("Variable nodes are not supported by valueFromNode")}function m(e,t){switch(void 0===t&&(t=y),e.kind){case"Variable":return t(e);case"NullValue":return null;case"IntValue":return parseInt(e.value);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map(function(e){return m(e,t)});case"ObjectValue":for(var r={},n=0,i=e.fields;n<i.length;n++){var o=i[n];r[o.name.value]=m(o.value,t)}return r;default:return e.value}}function b(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=c(e,t)}),r}return null}function g(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var r=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var n=e.arguments||[],i=e.name.value;if(1!==n.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=n[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=n[0].value,u=!1;if(a&&"BooleanValue"===a.kind)u=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a boolean value.");if(void 0===(u=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(u=!u),u||(r=!1)}}),r}function O(e){return e.selectionSet&&e.selectionSet.selections.length>0?[e].concat(e.selectionSet.selections.map(function(e){return[e].concat(O(e))}).reduce(function(e,t){return e.concat(t)},[])):[e]}var w=new Map;function E(e){var t=w.get(e);if(t)return t;var r=e.definitions.filter(function(e){return e.selectionSet&&e.selectionSet.selections}).map(function(e){return O(e)}).reduce(function(e,t){return e.concat(t)},[]).filter(function(e){return e.directives&&e.directives.length>0}).map(function(e){return e.directives}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return e.name.value});return w.set(e,r),r}function I(e,t){return E(t).some(function(t){return e.indexOf(t)>-1})}var k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function N(e,t){var r=t,n=[];if(e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r){if(1!==n.length)throw new Error("Found "+n.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");r=n[0].name.value}return k({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}].concat(e.definitions)})}function T(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){void 0!==t&&null!==t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function _(e){S(e);var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})[0];if(!t)throw new Error("Must contain a mutation definition.");return t}function S(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"');return e});if(t.length>1)throw new Error("Ambiguous GraphQL document: contains "+t.length+" operations")}function F(e){return S(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function P(e){var t=F(e);if(!t)throw new Error("GraphQL document is missing an operation");return t}function D(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function j(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function Q(e){var t=F(e);if(!t||"query"!==t.operation)throw new Error("Must contain a query definition.");return t}function q(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.length>1)throw new Error("Fragment must have exactly one definition.");var t=e.definitions[0];if("FragmentDefinition"!==t.kind)throw new Error("Must be a fragment definition.");return t}function R(e){var t;S(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")}function A(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function L(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t=e.variable,r=e.defaultValue,n={};return o(n,t.name,r),n});return T.apply(void 0,[{}].concat(t))}return{}}function M(e){var t=new Set;if(e.variableDefinitions)for(var r=0,n=e.variableDefinitions;r<n.length;r++){var i=n[r];t.add(i.variable.name.value)}return t}function x(e){if(Array.isArray(e))return e.map(function(e){return x(e)});if(null!==e&&"object"==typeof e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=x(e[r]));return t}return e}var C={kind:"Field",name:{kind:"Name",value:"__typename"}};function V(e,t){return e.selectionSet.selections.filter(function(e){return!(e&&"FragmentSpread"===e.kind&&!V(t[e.name.value],t))}).length>0}function B(e){return function(t){return e.some(function(e){return!(!e.name||e.name!==t.name.value)||!(!e.test||!e.test(t))})}}function U(e,t){var r=x(t);return r.definitions.forEach(function(t){!function e(t,r){if(!r.selections)return r;var n=t.some(function(e){return e.remove});return r.selections=r.selections.map(function(e){if("Field"!==e.kind||!e||!e.directives)return e;var r,i=B(t);return e.directives=e.directives.filter(function(e){var t=!i(e);return r||t||!n||(r=!0),t}),r?null:e}).filter(function(e){return!!e}),r.selections.forEach(function(r){"Field"!==r.kind&&"InlineFragment"!==r.kind||!r.selectionSet||e(t,r.selectionSet)}),r}(e,t.selectionSet)}),V(P(r),A(j(r)))?r:null}var G=new Map;function Y(e){S(e);var t=G.get(e);if(t)return t;var r=x(e);return r.definitions.forEach(function(e){var t="OperationDefinition"===e.kind;!function e(t,r){void 0===r&&(r=!1),t.selections&&(r||t.selections.some(function(e){return"Field"===e.kind&&"__typename"===e.name.value})||t.selections.push(C),t.selections.forEach(function(t){"Field"===t.kind?0!==t.name.value.lastIndexOf("__",0)&&t.selectionSet&&e(t.selectionSet):"InlineFragment"===t.kind&&t.selectionSet&&e(t.selectionSet)}))}(e.selectionSet,t)}),G.set(e,r),r}var K={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}},J=new Map;function H(e){S(e);var t=J.get(e);if(t)return t;var r=U([K],e);return J.set(e,r),r}function W(e,t,r){if(void 0===r&&(r=!0),"Field"!==t.kind||!t)return!0;if(!t.directives)return!1;var n=B(e);return t.directives.filter(n).length>0||r&&function(e,t,r){return void 0===r&&(r=!0),!(!t||!t.selections)&&t.selections.filter(function(t){return W(e,t,r)}).length>0}(e,t.selectionSet,r)}function z(e,t,r){void 0===r&&(r=!1),S(t);var n=x(t);return n.definitions=n.definitions.map(function(t){return("OperationDefinition"===t.kind||"FragmentDefinition"===t.kind&&!r)&&t.selectionSet&&(t.selectionSet=function e(t,r){return r.selections=r.selections.filter(function(e){return W(t,e,!0)}).map(function(r){return W(t,r,!1)?r:("Field"!==r.kind&&"InlineFragment"!==r.kind||!r.selectionSet||(r.selectionSet=e(t,r.selectionSet)),r)}),r}(e,t.selectionSet)),t}),V(P(n),A(j(n)))?n:null}var X=r(3);function $(e){try{return e()}catch(e){console.error&&console.error(e)}}function Z(e){return e.errors&&e.errors.length}function ee(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(null!=e&&"object"==typeof e&&null!=t&&"object"==typeof t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(!ee(e[r],t[r]))return!1}for(var r in t)if(!Object.prototype.hasOwnProperty.call(e,r))return!1;return!0}return!1}function te(e){return Object(X.b)()||Object(X.e)()?function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){!t.hasOwnProperty(r)||null===t[r]||"object"!=typeof t[r]&&"function"!=typeof t[r]||Object.isFrozen(t[r])||e(t[r])}),t}(e):e}var re=Object.create({});function ne(e,t){if(void 0===t&&(t="warn"),!Object(X.d)()&&!re[e])switch(Object(X.e)()||(re[e]=!0),t){case"error":console.error(e);break;default:console.warn(e)}}r.d(t,"getDirectiveInfoFromField",function(){return b}),r.d(t,"shouldInclude",function(){return g}),r.d(t,"flattenSelections",function(){return O}),r.d(t,"getDirectiveNames",function(){return E}),r.d(t,"hasDirectives",function(){return I}),r.d(t,"getFragmentQueryDocument",function(){return N}),r.d(t,"getMutationDefinition",function(){return _}),r.d(t,"checkDocument",function(){return S}),r.d(t,"getOperationDefinition",function(){return F}),r.d(t,"getOperationDefinitionOrDie",function(){return P}),r.d(t,"getOperationName",function(){return D}),r.d(t,"getFragmentDefinitions",function(){return j}),r.d(t,"getQueryDefinition",function(){return Q}),r.d(t,"getFragmentDefinition",function(){return q}),r.d(t,"getMainDefinition",function(){return R}),r.d(t,"createFragmentMap",function(){return A}),r.d(t,"getDefaultValues",function(){return L}),r.d(t,"variablesInOperation",function(){return M}),r.d(t,"removeDirectivesFromDocument",function(){return U}),r.d(t,"addTypenameToDocument",function(){return Y}),r.d(t,"removeConnectionDirectiveFromDocument",function(){return H}),r.d(t,"getDirectivesFromDocument",function(){return z}),r.d(t,"isScalarValue",function(){return n}),r.d(t,"isNumberValue",function(){return i}),r.d(t,"valueToObjectRepresentation",function(){return o}),r.d(t,"storeKeyNameFromField",function(){return a}),r.d(t,"getStoreKeyName",function(){return s}),r.d(t,"argumentsObjectFromField",function(){return c}),r.d(t,"resultKeyNameFromField",function(){return l}),r.d(t,"isField",function(){return f}),r.d(t,"isInlineFragment",function(){return d}),r.d(t,"isIdValue",function(){return p}),r.d(t,"toIdValue",function(){return h}),r.d(t,"isJsonValue",function(){return v}),r.d(t,"valueFromNode",function(){return m}),r.d(t,"assign",function(){return T}),r.d(t,"cloneDeep",function(){return x}),r.d(t,"getEnv",function(){return X.a}),r.d(t,"isEnv",function(){return X.c}),r.d(t,"isProduction",function(){return X.d}),r.d(t,"isDevelopment",function(){return X.b}),r.d(t,"isTest",function(){return X.e}),r.d(t,"tryFunctionOrLogError",function(){return $}),r.d(t,"graphQLResultHasError",function(){return Z}),r.d(t,"isEqual",function(){return ee}),r.d(t,"maybeDeepFreeze",function(){return te}),r.d(t,"warnOnceInDevelopment",function(){return ne})},function(e,t,r){"use strict";r.r(t);var n,i=r(20),o=r(0),a=r(2),u=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};var c=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return u(t,e),t}(Error);function l(e){return e.request.length<=1}function f(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t?console.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,r(e))},error:n})})}var d=f;function p(e){return new i(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}function h(e){return new i(function(t){t.error(e)})}function v(e,t){var r=s({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=s({},r,"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return s({},r)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){return Object(a.a)(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName}(t)}}),t}var y=function(e,t){return t?t(e):i.of()},m=function(e){return"function"==typeof e?new E(e):e},b=function(){return new E(function(e,t){return i.of()})},g=function(e){return 0===e.length?b():e.map(m).reduce(function(e,t){return e.concat(t)})},O=function(e,t,r){void 0===r&&(r=new E(y));var n=m(t),o=m(r);return l(n)&&l(o)?new E(function(t){return e(t)?n.request(t)||i.of():o.request(t)||i.of()}):new E(function(t,r){return e(t)?n.request(t,r)||i.of():o.request(t,r)||i.of()})},w=function(e,t){var r=m(e);if(l(r))return console.warn(new c("You are calling concat on a terminating link, which will have no effect",r)),r;var n=m(t);return l(n)?new E(function(e){return r.request(e,function(e){return n.request(e)||i.of()})||i.of()}):new E(function(e,t){return r.request(e,function(e){return n.request(e,t)||i.of()})||i.of()})},E=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,r,n){return void 0===n&&(n=new e(y)),this.concat(O(t,r,n))},e.prototype.concat=function(e){return w(this,e)},e.prototype.request=function(e,t){throw new Error("request is not implemented")},e.empty=b,e.from=g,e.split=O,e.execute=I,e}();function I(e,t){return e.request(v(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(o.getOperationName)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw new Error("illegal argument: "+i)}return e}(t))))||i.of()}r.d(t,"empty",function(){return b}),r.d(t,"from",function(){return g}),r.d(t,"split",function(){return O}),r.d(t,"concat",function(){return w}),r.d(t,"ApolloLink",function(){return E}),r.d(t,"execute",function(){return I}),r.d(t,"createOperation",function(){return v}),r.d(t,"makePromise",function(){return d}),r.d(t,"toPromise",function(){return f}),r.d(t,"fromPromise",function(){return p}),r.d(t,"fromError",function(){return h}),r.d(t,"Observable",function(){return i})},function(e,t,r){"use strict";var n={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"]},i={};function o(e){return Boolean(e&&"string"==typeof e.kind)}function a(e,t,r){var n=e[t];if(n){if(!r&&"function"==typeof n)return n;var i=r?n.leave:n.enter;if("function"==typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}function u(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n,u=void 0,s=Array.isArray(e),c=[e],l=-1,f=[],d=void 0,p=void 0,h=void 0,v=[],y=[],m=e;do{var b=++l===c.length,g=b&&0!==f.length;if(b){if(p=0===y.length?void 0:v[v.length-1],d=h,h=y.pop(),g){if(s)d=d.slice();else{var O={};for(var w in d)d.hasOwnProperty(w)&&(O[w]=d[w]);d=O}for(var E=0,I=0;I<f.length;I++){var k=f[I][0],N=f[I][1];s&&(k-=E),s&&null===N?(d.splice(k,1),E++):d[k]=N}}l=u.index,c=u.keys,f=u.edits,s=u.inArray,u=u.prev}else{if(p=h?s?l:c[l]:void 0,null===(d=h?h[p]:m)||void 0===d)continue;h&&v.push(p)}var T=void 0;if(!Array.isArray(d)){if(!o(d))throw new Error("Invalid AST Node: "+JSON.stringify(d));var _=a(t,d.kind,b);if(_){if((T=_.call(t,d,p,h,v,y))===i)break;if(!1===T){if(!b){v.pop();continue}}else if(void 0!==T&&(f.push([p,T]),!b)){if(!o(T)){v.pop();continue}d=T}}}void 0===T&&g&&f.push([p,d]),b?v.pop():(u={inArray:s,index:l,keys:c,edits:f,prev:u},c=(s=Array.isArray(d))?d:r[d.kind]||[],l=-1,f=[],h&&y.push(h),h=d)}while(void 0!==u);return 0!==f.length&&(m=f[f.length-1][1]),m}(e,{leave:s})}r.d(t,"a",function(){return u});var s={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=d("(",l(e.variableDefinitions,", "),")"),i=l(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?l([t,l([r,n]),i,o]," "):o},VariableDefinition:function(e){return e.variable+": "+e.type+d(" = ",e.defaultValue)},SelectionSet:function(e){return f(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return l([d("",t,": ")+r+d("(",l(n,", "),")"),l(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+d(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return l(["...",d("on ",t),l(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment "+t+d("(",l(n,", "),")")+" on "+r+" "+d("",l(i," ")," ")+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e,t){var r=e.replace(/"""/g,'\\"""');return" "!==e[0]&&"\t"!==e[0]||-1!==e.indexOf("\n")?'"""\n'+(t?r:p(r))+'\n"""':'"""'+r.replace(/"$/,'"\n')+'"""'}(r,"description"===t):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+d("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:c(function(e){return l(["scalar",e.name,l(e.directives," ")]," ")}),ObjectTypeDefinition:c(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return l(["type",t,d("implements ",l(r," & ")),l(n," "),f(i)]," ")}),FieldDefinition:c(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+d("(",l(r,", "),")")+": "+n+d(" ",l(i," "))}),InputValueDefinition:c(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return l([t+": "+r,d("= ",n),l(i," ")]," ")}),InterfaceTypeDefinition:c(function(e){var t=e.name,r=e.directives,n=e.fields;return l(["interface",t,l(r," "),f(n)]," ")}),UnionTypeDefinition:c(function(e){var t=e.name,r=e.directives,n=e.types;return l(["union",t,l(r," "),n&&0!==n.length?"= "+l(n," | "):""]," ")}),EnumTypeDefinition:c(function(e){var t=e.name,r=e.directives,n=e.values;return l(["enum",t,l(r," "),f(n)]," ")}),EnumValueDefinition:c(function(e){return l([e.name,l(e.directives," ")]," ")}),InputObjectTypeDefinition:c(function(e){var t=e.name,r=e.directives,n=e.fields;return l(["input",t,l(r," "),f(n)]," ")}),ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return l(["extend type",t,d("implements ",l(r," & ")),l(n," "),f(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return l(["extend interface",t,l(r," "),f(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return l(["extend union",t,l(r," "),n&&0!==n.length?"= "+l(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return l(["extend enum",t,l(r," "),f(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return l(["extend input",t,l(r," "),f(n)]," ")},DirectiveDefinition:c(function(e){var t=e.name,r=e.arguments,n=e.locations;return"directive @"+t+d("(",l(r,", "),")")+" on "+l(n," | ")})};function c(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function f(e){return e&&0!==e.length?"{\n"+p(l(e,"\n"))+"\n}":""}function d(e,t,r){return t?e+t+(r||""):""}function p(e){return e&&" "+e.replace(/\n/g,"\n ")}},function(e,t,r){"use strict";(function(e){function n(){return void 0!==e?"production":"development"}function i(e){return n()===e}function o(){return!0===i("production")}function a(){return!0===i("development")}function u(){return!0===i("test")}r.d(t,"a",function(){return n}),r.d(t,"c",function(){return i}),r.d(t,"d",function(){return o}),r.d(t,"b",function(){return a}),r.d(t,"e",function(){return u})}).call(this,r(21))},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function a(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),a(r(5)),a(r(1)),a(r(6));var u=r(1),s=r(13);t.HttpLink=s.HttpLink;var c=r(12),l=r(16),f=r(6);t.InMemoryCache=f.InMemoryCache;var d=r(15);t.gql=d.default;var p=function(e){function t(t){var r=t&&t.cacheRedirects?new f.InMemoryCache({cacheRedirects:t.cacheRedirects}):new f.InMemoryCache,n=!(!t||!t.clientState)&&c.withClientState(o({},t.clientState,{cache:r})),i=t&&t.onError?l.onError(t.onError):l.onError(function(e){var t=e.graphQLErrors,r=e.networkError;t&&t.map(function(e){var t=e.message,r=e.locations,n=e.path;return console.log("[GraphQL error]: Message: "+t+", Location: "+r+", Path: "+n)}),r&&console.log("[Network error]: "+r)}),a=!(!t||!t.request)&&new u.ApolloLink(function(e,r){return new u.Observable(function(n){var i;return Promise.resolve(e).then(function(e){return t.request(e)}).then(function(){i=r(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}).catch(n.error.bind(n)),function(){i&&i.unsubscribe}})}),d=new s.HttpLink({uri:t&&t.uri||"/graphql",fetchOptions:t&&t.fetchOptions||{},credentials:"same-origin"}),p=u.ApolloLink.from([i,a,n,d].filter(function(e){return!!e}));return e.call(this,{cache:r,link:p})||this}return i(t,e),t}(r(5).default);t.default=p},function(e,t,r){"use strict";r.r(t);var n,i=r(2),o=r(0);function a(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}));var u,s=r(1),c=r(11),l=(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype[c.a]=function(){return this},t}(s.Observable),d=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();var p,h=function(e){var t="";return Array.isArray(e.graphQLErrors)&&0!==e.graphQLErrors.length&&e.graphQLErrors.forEach(function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"}),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")},v=function(e){function t(t){var r=t.graphQLErrors,n=t.networkError,i=t.errorMessage,o=t.extraInfo,a=e.call(this,i)||this;return a.graphQLErrors=r||[],a.networkError=n||null,a.message=i||h(a),a.extraInfo=o,a}return d(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(p||(p={}));var y=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b=function(e){function t(t){var r=t.scheduler,n=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,function(e){return a.onSubscribe(e)})||this;return a.isCurrentlyPolling=!1,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.queryManager.generateQueryId(),a.shouldSubscribe=o,a.scheduler=r,a.queryManager=r.queryManager,a.observers=[],a.subscriptionHandles=[],a}return y(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n,i={next:function(r){t(r),e.observers.some(function(e){return e!==i})||e.queryManager.removeQuery(e.queryId),setTimeout(function(){n.unsubscribe()},0)},error:function(e){r(e)}};n=e.subscribe(i)})},t.prototype.currentResult=function(){if(this.isTornDown)return{data:this.lastError?{}:this.lastResult?this.lastResult.data:{},error:this.lastError,loading:!1,networkStatus:n.error};var e,t,r=this.queryManager.queryStore.get(this.queryId);if(e=r,void 0===(t=this.options.errorPolicy)&&(t="none"),e&&(e.graphQLErrors&&e.graphQLErrors.length>0&&"none"===t||e.networkError))return{data:{},loading:!1,networkStatus:r.networkStatus,error:new v({graphQLErrors:r.graphQLErrors,networkError:r.networkError})};var i,o=this.queryManager.getCurrentQueryResult(this),u=o.data,s=o.partial,c=!r||r.networkStatus===n.loading,l="network-only"===this.options.fetchPolicy&&c||s&&"cache-only"!==this.options.fetchPolicy,f={data:u,loading:a(i=r?r.networkStatus:l?n.loading:n.ready),networkStatus:i};if(r&&r.graphQLErrors&&"all"===this.options.errorPolicy&&(f.errors=r.graphQLErrors),!s){this.lastResult=m({},f,{stale:!1})}return m({},f,{partial:s})},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastError,this.isTornDown=!1},t.prototype.refetch=function(e){if("cache-only"===this.options.fetchPolicy)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));Object(o.isEqual)(this.variables,e)||(this.variables=m({},this.variables,e)),Object(o.isEqual)(this.options.variables,this.variables)||(this.options.variables=m({},this.options.variables,this.variables));var t=m({},this.options,{fetchPolicy:"network-only"});return this.queryManager.fetchQuery(this.queryId,t,p.refetch).then(function(e){return Object(o.maybeDeepFreeze)(e)})},t.prototype.fetchMore=function(e){var t=this;if(!e.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");return Promise.resolve().then(function(){var r,n=t.queryManager.generateQueryId();return(r=e.query?e:m({},t.options,e,{variables:m({},t.variables,e.variables)})).fetchPolicy="network-only",t.queryManager.fetchQuery(n,r,p.normal,t.queryId)}).then(function(r){return t.updateQuery(function(t,n){var i=n.variables;return e.updateQuery(t,{fetchMoreResult:r.data,variables:i})}),r})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){e.updateQuery&&t.updateQuery(function(t,n){var i=n.variables;return e.updateQuery(t,{subscriptionData:r,variables:i})})},error:function(t){e.onError?e.onError(t):console.error("Unhandled GraphQL subscription error",t)}});return this.subscriptionHandles.push(r),function(){var e=t.subscriptionHandles.indexOf(r);e>=0&&(t.subscriptionHandles.splice(e,1),r.unsubscribe())}},t.prototype.setOptions=function(e){var t=this.options;this.options=m({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r="network-only"!==t.fetchPolicy&&"network-only"===e.fetchPolicy||"cache-only"===t.fetchPolicy&&"cache-only"!==e.fetchPolicy||"standby"===t.fetchPolicy&&"standby"!==e.fetchPolicy||!1;return this.setVariables(this.options.variables,r,e.fetchResults)},t.prototype.setVariables=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1;var n=m({},this.variables,e);return Object(o.isEqual)(n,this.variables)&&!t?0!==this.observers.length&&r?this.result():new Promise(function(e){return e()}):(this.lastVariables=this.variables,this.variables=n,this.options.variables=n,0===this.observers.length?new Promise(function(e){return e()}):this.queryManager.fetchQuery(this.queryId,m({},this.options,{variables:this.variables})).then(function(e){return Object(o.maybeDeepFreeze)(e)}))},t.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),r=t.previousResult,n=t.variables,i=t.document,a=Object(o.tryFunctionOrLogError)(function(){return e(r,{variables:n})});a&&(this.queryManager.dataStore.markUpdateQueryResult(i,n,a),this.queryManager.broadcastQueries())},t.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},t.prototype.startPolling=function(e){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.options.pollInterval=e,this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)},t.prototype.onSubscribe=function(e){var t=this;return e._subscription&&e._subscription._observer&&!e._subscription._observer.error&&(e._subscription._observer.error=function(e){console.error("Unhandled error",e.message,e.stack)}),this.observers.push(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),1===this.observers.length&&this.setUpQuery(),function(){t.observers=t.observers.filter(function(t){return t!==e}),0===t.observers.length&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this;if(this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)}var t={next:function(t){e.lastResult=t,e.observers.forEach(function(e){return e.next&&e.next(t)})},error:function(t){e.lastError=t,e.observers.forEach(function(e){return e.error&&e.error(t)})}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},t.prototype.tearDownQuery=function(){this.isTornDown=!0,this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach(function(e){return e.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.removeObservableQuery(this.queryId),this.queryManager.stopQuery(this.queryId),this.observers=[]},t}(f),g=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inFlightRequestObservables=new Map,t.subscribers=new Map,t}return g(t,e),t.prototype.request=function(e,t){var r=this;if(e.getContext().forceFetch)return t(e);var n=e.toKey(),i=function(e){return r.inFlightRequestObservables.delete(e),r.subscribers.get(e)};if(!this.inFlightRequestObservables.get(n)){var o,a=t(e),u=new s.Observable(function(e){var t=r.subscribers.get(n);return t||(t={next:[],error:[],complete:[]}),r.subscribers.set(n,{next:t.next.concat([e.next.bind(e)]),error:t.error.concat([e.error.bind(e)]),complete:t.complete.concat([e.complete.bind(e)])}),o||(o=a.subscribe({next:function(e){var t=i(n);r.subscribers.delete(n),t&&(t.next.forEach(function(t){return t(e)}),t.complete.forEach(function(e){return e()}))},error:function(e){var t=i(n);r.subscribers.delete(n),t&&t.error.forEach(function(t){return t(e)})}})),function(){o&&o.unsubscribe(),r.inFlightRequestObservables.delete(n)}});this.inFlightRequestObservables.set(n,u)}return this.inFlightRequestObservables.get(n)},t}(s.ApolloLink),w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E=function(){function e(e){var t=e.queryManager,r=e.ssrMode;this.inFlightQueries={},this.registeredQueries={},this.intervalQueries={},this.pollingTimers={},this.ssrMode=!1,this.queryManager=t,this.ssrMode=r||!1}return e.prototype.checkInFlight=function(e){var t=this.queryManager.queryStore.get(e);return t&&t.networkStatus!==n.ready&&t.networkStatus!==n.error},e.prototype.fetchQuery=function(e,t,r){var n=this;return new Promise(function(i,o){n.queryManager.fetchQuery(e,t,r).then(function(e){i(e)}).catch(function(e){o(e)})})},e.prototype.startPollingQuery=function(e,t,r){if(!e.pollInterval)throw new Error("Attempted to start a polling query without a polling interval.");return this.ssrMode?t:(this.registeredQueries[t]=e,r&&this.queryManager.addQueryListener(t,r),this.addQueryOnInterval(t,e),t)},e.prototype.stopPollingQuery=function(e){delete this.registeredQueries[e]},e.prototype.fetchQueriesOnInterval=function(e){var t=this;this.intervalQueries[e]=this.intervalQueries[e].filter(function(r){if(!t.registeredQueries.hasOwnProperty(r)||t.registeredQueries[r].pollInterval!==e)return!1;if(t.checkInFlight(r))return!0;var n=t.registeredQueries[r],i=w({},n);return i.fetchPolicy="network-only",t.fetchQuery(r,i,p.poll).catch(function(){}),!0}),0===this.intervalQueries[e].length&&(clearInterval(this.pollingTimers[e]),delete this.intervalQueries[e])},e.prototype.addQueryOnInterval=function(e,t){var r=this,n=t.pollInterval;if(!n)throw new Error("A poll interval is required to start polling query with id '"+e+"'.");this.intervalQueries.hasOwnProperty(n.toString())&&this.intervalQueries[n].length>0?this.intervalQueries[n].push(e):(this.intervalQueries[n]=[e],this.pollingTimers[n]=setInterval(function(){r.fetchQueriesOnInterval(n)},n))},e.prototype.registerPollingQuery=function(e){if(!e.pollInterval)throw new Error("Attempted to register a non-polling query with the scheduler.");return new b({scheduler:this,options:e})},e}(),I=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutationString:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];if(t&&t.queryString!==e.queryString)throw new Error("Internal Error: may not update existing query string in store");var r,i=!1,a=null;e.storePreviousVariables&&t&&t.networkStatus!==n.loading&&(Object(o.isEqual)(t.variables,e.variables)||(i=!0,a=t.variables)),r=i?n.setVariables:e.isPoll?n.poll:e.isRefetch?n.refetch:n.loading;var u=[];t&&t.graphQLErrors&&(u=t.graphQLErrors),this.store[e.queryId]={queryString:e.queryString,document:e.document,variables:e.variables,previousVariables:a,networkError:null,graphQLErrors:u,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&(this.store[e.fetchMoreForQueryId].networkStatus=n.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=t.errors&&t.errors.length?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=n.ready,"string"==typeof r&&(this.store[r].networkStatus=n.ready))},e.prototype.markQueryError=function(e,t,r){this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=n.error,"string"==typeof r&&this.markQueryError(r,t,void 0))},e.prototype.markQueryResultClient=function(e,t){this.store[e]&&(this.store[e].networkError=null,this.store[e].previousVariables=null,this.store[e].networkStatus=t?n.ready:n.loading)},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;this.store=Object.keys(this.store).filter(function(t){return e.indexOf(t)>-1}).reduce(function(e,r){return e[r]=k({},t.store[r],{networkStatus:n.loading}),e},{})},e}(),T=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_={listeners:[],invalidated:!1,document:null,newData:null,lastRequestId:null,observableQuery:null,subscriptions:[]},S=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,u=e.ssrMode,c=void 0!==u&&u;this.mutationStore=new I,this.queryStore=new N,this.idCounter=1,this.queries=new Map,this.fetchQueryPromises=new Map,this.queryIdsByName={},this.link=t,this.deduplicator=s.ApolloLink.from([new O,t]),this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.scheduler=new E({queryManager:this,ssrMode:c})}return e.prototype.mutate=function(e){var t=this,r=e.mutation,n=e.variables,a=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.update,d=e.errorPolicy,p=void 0===d?"none":d,h=e.fetchPolicy,y=e.context,m=void 0===y?{}:y;if(!r)throw new Error("mutation option is required. You must specify your GraphQL document in the mutation option.");if(h&&"no-cache"!==h)throw new Error("fetchPolicy for mutations currently only supports the 'no-cache' policy");var b=this.generateQueryId(),g=this.dataStore.getCache();r=g.transformDocument(r),n=Object(o.assign)({},Object(o.getDefaultValues)(Object(o.getMutationDefinition)(r)),n);var O=Object(i.a)(r);this.setQuery(b,function(){return{document:r}});var w=function(){var e={};return u&&Object.keys(u).forEach(function(r){return(t.queryIdsByName[r]||[]).forEach(function(n){e[n]={updater:u[r],query:t.queryStore.get(n)}})}),e};return this.mutationStore.initMutation(b,O,n),this.dataStore.markMutationInit({mutationId:b,document:r,variables:n||{},updateQueries:w(),update:f,optimisticResponse:a}),this.broadcastQueries(),new Promise(function(e,i){var o,u,c=t.buildOperationForLink(r,n,T({},m,{optimisticResponse:a}));Object(s.execute)(t.link,c).subscribe({next:function(e){e.errors&&"none"===p?u=new v({graphQLErrors:e.errors}):(t.mutationStore.markMutationResult(b),"no-cache"!==h&&t.dataStore.markMutationResult({mutationId:b,result:e,document:r,variables:n||{},updateQueries:w(),update:f}),o=e)},error:function(e){t.mutationStore.markMutationError(b,e),t.dataStore.markMutationComplete({mutationId:b,optimisticResponse:a}),t.broadcastQueries(),t.setQuery(b,function(){return{document:void 0}}),i(new v({networkError:e}))},complete:function(){u&&t.mutationStore.markMutationError(b,u),t.dataStore.markMutationComplete({mutationId:b,optimisticResponse:a}),t.broadcastQueries(),u?i(u):("function"==typeof l&&(l=l(o)),l.forEach(function(e){"string"!=typeof e?t.query({query:e.query,variables:e.variables,fetchPolicy:"network-only"}):t.refetchQueryByName(e)}),t.setQuery(b,function(){return{document:void 0}}),"ignore"===p&&o&&o.errors&&delete o.errors,e(o))}})})},e.prototype.fetchQuery=function(e,t,r,n){var a,u=this,s=t.variables,c=void 0===s?{}:s,l=t.metadata,f=void 0===l?null:l,d=t.fetchPolicy,h=void 0===d?"cache-first":d,y=this.dataStore.getCache().transformDocument(t.query),m="network-only"===h||"no-cache"===h;if(r!==p.refetch&&"network-only"!==h&&"no-cache"!==h){var b=this.dataStore.getCache().diff({query:y,variables:c,returnPartialData:!0,optimistic:!1}),g=b.complete,O=b.result;m=!g||"cache-and-network"===h,a=O}var w=m&&"cache-only"!==h&&"standby"!==h;Object(o.hasDirectives)(["live"],y)&&(w=!0);var E=this.generateRequestId(),I=this.updateQueryWatch(e,y,t);if(this.setQuery(e,function(){return{document:y,lastRequestId:E,invalidated:!0,cancel:I}}),this.invalidate(!0,n),this.queryStore.initQuery({queryId:e,queryString:Object(i.a)(y),document:y,storePreviousVariables:w,variables:c,isPoll:r===p.poll,isRefetch:r===p.refetch,metadata:f,fetchMoreForQueryId:n}),this.broadcastQueries(),(!w||"cache-and-network"===h)&&(this.queryStore.markQueryResultClient(e,!w),this.invalidate(!0,e,n),this.broadcastQueries()),w){var k=this.fetchRequest({requestId:E,queryId:e,document:y,options:t,fetchMoreForQueryId:n}).catch(function(t){if(t.hasOwnProperty("graphQLErrors"))throw t;var r=u.getQuery(e).lastRequestId;throw E>=(r||1)&&(u.queryStore.markQueryError(e,t,n),u.invalidate(!0,e,n),u.broadcastQueries()),u.removeFetchQueryPromise(E),new v({networkError:t})});if("cache-and-network"!==h)return k;k.catch(function(){})}return Promise.resolve({data:a})},e.prototype.queryListenerForObserver=function(e,t,r){var n=this,i=!1;return function(u,s){if(n.invalidate(!1,e),u){var c=n.getQuery(e).observableQuery,l=c?c.options.fetchPolicy:t.fetchPolicy;if("standby"!==l){var f=c?c.options.errorPolicy:t.errorPolicy,d=c?c.getLastResult():null,p=c?c.getLastError():null,h=!s&&null!=u.previousVariables||"cache-only"===l||"cache-and-network"===l,y=Boolean(d&&u.networkStatus!==d.networkStatus),m=f&&(p&&p.graphQLErrors)!==u.graphQLErrors&&"none"!==f;if(!a(u.networkStatus)||y&&t.notifyOnNetworkStatusChange||h){if((!f||"none"===f)&&u.graphQLErrors&&u.graphQLErrors.length>0||u.networkError){var b=new v({graphQLErrors:u.graphQLErrors,networkError:u.networkError});if(i=!0,r.error)try{r.error(b)}catch(e){setTimeout(function(){throw e},0)}else setTimeout(function(){throw b},0),Object(o.isProduction)()||console.info("An unhandled error was thrown because no error handler is registered for the query "+u.queryString);return}try{var g=void 0,O=void 0;if(s)n.setQuery(e,function(){return{newData:null}}),g=s.result,O=!s.complete&&!s.complete;else if(d&&d.data&&!m)g=d.data,O=!1;else{var w=n.getQuery(e).document,E=n.dataStore.getCache().diff({query:w,variables:u.previousVariables||u.variables,optimistic:!0});g=E.result,O=!E.complete}var I=void 0;if(I=O&&"cache-only"!==l?{data:d&&d.data,loading:a(u.networkStatus),networkStatus:u.networkStatus,stale:!0}:{data:g,loading:a(u.networkStatus),networkStatus:u.networkStatus,stale:!1},"all"===f&&u.graphQLErrors&&u.graphQLErrors.length>0&&(I.errors=u.graphQLErrors),r.next)if(!(d&&I&&d.networkStatus===I.networkStatus&&d.stale===I.stale&&d.data===I.data)||i)try{r.next(Object(o.maybeDeepFreeze)(I))}catch(e){setTimeout(function(){throw e},0)}i=!1}catch(e){return i=!0,void(r.error&&r.error(new v({networkError:e})))}}}}}},e.prototype.watchQuery=function(e,t){if(void 0===t&&(t=!0),"standby"===e.fetchPolicy)throw new Error('client.watchQuery cannot be called with fetchPolicy set to "standby"');var r=Object(o.getQueryDefinition)(e.query);if(r.variableDefinitions&&r.variableDefinitions.length){var n=Object(o.getDefaultValues)(r);e.variables=Object(o.assign)({},n,e.variables)}void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var i=T({},e);return new b({scheduler:this.scheduler,options:i,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;if(!e.query)throw new Error("query option is required. You must specify your GraphQL document in the query option.");if("Document"!==e.query.kind)throw new Error('You must wrap the query string in a "gql" tag.');if(e.returnPartialData)throw new Error("returnPartialData option only supported on watchQuery.");if(e.pollInterval)throw new Error("pollInterval option only supported on watchQuery.");if(void 0!==e.notifyOnNetworkStatusChange)throw new Error('Cannot call "query" with "notifyOnNetworkStatusChange" option. Only "watchQuery" has that option.');e.notifyOnNetworkStatusChange=!1;var r=this.idCounter,n=new Promise(function(i,o){return t.addFetchQueryPromise(r,n,i,o),t.watchQuery(e,!1).result().then(function(e){t.removeFetchQueryPromise(r),i(e)}).catch(function(e){t.removeFetchQueryPromise(r),o(e)})});return n},e.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},e.prototype.stopQueryInStore=function(e){this.queryStore.stopQuery(e),this.invalidate(!0,e),this.broadcastQueries()},e.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){var r=e.listeners;return{listeners:(void 0===r?[]:r).concat([t]),invalidate:!1}})},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},e.prototype.addFetchQueryPromise=function(e,t,r,n){this.fetchQueryPromises.set(e.toString(),{promise:t,resolve:r,reject:n})},e.prototype.removeFetchQueryPromise=function(e){this.fetchQueryPromises.delete(e.toString())},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}});var r=Object(o.getQueryDefinition)(t.options.query);if(r.name&&r.name.value){var n=r.name.value;this.queryIdsByName[n]=this.queryIdsByName[n]||[],this.queryIdsByName[n].push(t.queryId)}},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e),r=t.observableQuery,n=t.cancel;if(n&&n(),r){var i=Object(o.getQueryDefinition)(r.options.query),a=i.name?i.name.value:null;this.setQuery(e,function(){return{observableQuery:null}}),a&&(this.queryIdsByName[a]=this.queryIdsByName[a].filter(function(e){return!(r.queryId===e)}))}},e.prototype.clearStore=function(){this.fetchQueryPromises.forEach(function(e){(0,e.reject)(new Error("Store reset while query was in flight(not completed in link chain)"))});var e=[];return this.queries.forEach(function(t,r){t.observableQuery&&e.push(r)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.getObservableQueryPromises=function(e){var t=this,r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(!0,i)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this.getObservableQueryPromises(e);return this.broadcastQueries(),Promise.all(t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(){}),e},e.prototype.startGraphQLSubscription=function(e){var t,r=this,n=e.query,i=this.dataStore.getCache().transformDocument(n),a=Object(o.assign)({},Object(o.getDefaultValues)(Object(o.getOperationDefinition)(n)),e.variables),u=[];return new f(function(e){if(u.push(e),1===u.length){var n={next:function(e){r.dataStore.markSubscriptionResult(e,i,a),r.broadcastQueries(),u.forEach(function(t){t.next&&t.next(e)})},error:function(e){u.forEach(function(t){t.error&&t.error(e)})}},o=r.buildOperationForLink(i,a);t=Object(s.execute)(r.link,o).subscribe(n)}return function(){0===(u=u.filter(function(t){return t!==e})).length&&t&&t.unsubscribe()}})},e.prototype.stopQuery=function(e){this.stopQueryInStore(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,a=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u)return Object(o.maybeDeepFreeze)({data:u.result,partial:!1});try{var s=this.dataStore.getCache().read({query:i,variables:n,previousResult:a?a.data:void 0,optimistic:t});return Object(o.maybeDeepFreeze)({data:s,partial:!1})}catch(e){return Object(o.maybeDeepFreeze)({data:{},partial:!0})}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;if(!r)throw new Error("ObservableQuery with this id doesn't exist: "+e);t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,r){t.invalidated&&t.listeners&&t.listeners.filter(function(e){return!!e}).forEach(function(n){n(e.queryStore.get(r),t.newData)})})},e.prototype.fetchRequest=function(e){var t,r,i=this,o=e.requestId,a=e.queryId,u=e.document,c=e.options,l=e.fetchMoreForQueryId,f=c.variables,d=c.context,p=c.errorPolicy,h=void 0===p?"none":p,y=c.fetchPolicy,m=this.buildOperationForLink(u,f,T({},d,{forceFetch:!this.queryDeduplication})),b=new Promise(function(e,c){i.addFetchQueryPromise(o,b,e,c);var d=Object(s.execute)(i.deduplicator,m).subscribe({next:function(e){var n=i.getQuery(a).lastRequestId;if(o>=(n||1)){if("no-cache"!==y)try{i.dataStore.markQueryResult(e,u,f,l,"ignore"===h||"all"===h)}catch(e){return void c(e)}i.queryStore.markQueryResult(a,e,l),i.invalidate(!0,a,l),i.broadcastQueries()}if(e.errors&&"none"===h)c(new v({graphQLErrors:e.errors}));else if("all"===h&&(r=e.errors),l)t=e.data;else try{t=i.dataStore.getCache().read({variables:f,query:u,optimistic:!1})}catch(e){}},error:function(e){i.removeFetchQueryPromise(o),i.setQuery(a,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==d})}}),c(e)},complete:function(){i.removeFetchQueryPromise(o),i.setQuery(a,function(e){return{subscriptions:e.subscriptions.filter(function(e){return e!==d})}}),e({data:t,errors:r,loading:!1,networkStatus:n.ready,stale:!1})}});i.setQuery(a,function(e){return{subscriptions:e.subscriptions.concat([d])}})});return b},e.prototype.refetchQueryByName=function(e){var t=this,r=this.queryIdsByName[e];if(void 0!==r)return Promise.all(r.map(function(e){return t.getQuery(e).observableQuery}).filter(function(e){return!!e}).map(function(e){return e.refetch()}))},e.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},e.prototype.getQuery=function(e){return this.queries.get(e)||T({},_)},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=T({},r,t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t,r){t&&this.setQuery(t,function(){return{invalidated:e}}),r&&this.setQuery(r,function(){return{invalidated:e}})},e.prototype.buildOperationForLink=function(e,t,r){var n=this.dataStore.getCache();return{query:n.transformForLink?n.transformForLink(e):e,variables:t,operationName:Object(o.getOperationName)(e)||void 0,context:T({},r,{cache:n,getCacheKey:function(e){if(n.config)return n.config.dataIdFromObject(e);throw new Error("To use context.getCacheKey, you need to use a cache that has a configurable dataIdFromObject, like apollo-cache-inmemory.")}})}},e}(),F=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var a=!Object(o.graphQLResultHasError)(e);i&&Object(o.graphQLResultHasError)(e)&&e.data&&(a=!0),!n&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(o.graphQLResultHasError)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;r="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse;this.cache.recordOptimisticTransaction(function(n){var i=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=i}},e.mutationId)}},e.prototype.markMutationResult=function(e){var t=this;if(!Object(o.graphQLResultHasError)(e.result)){var r=[];r.push({result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),e.updateQueries&&Object.keys(e.updateQueries).filter(function(t){return e.updateQueries[t]}).forEach(function(n){var i=e.updateQueries[n],a=i.query,u=i.updater,s=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=s.result;if(s.complete){var l=Object(o.tryFunctionOrLogError)(function(){return u(c,{mutationResult:e.result,queryName:Object(o.getOperationName)(a.document)||void 0,queryVariables:a.variables})});l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(e){r.forEach(function(t){return e.write(t)})});var n=e.update;n&&this.cache.performTransaction(function(t){Object(o.tryFunctionOrLogError)(function(){return n(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),P=r(9),D=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j=!1,Q=new s.ApolloLink(function(e,t){return e.query=Object(o.removeConnectionDirectiveFromDocument)(e.query),t(e)}),q=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[];var r=e.link,n=e.cache,i=e.ssrMode,a=void 0!==i&&i,u=e.ssrForceFetchDelay,s=void 0===u?0:u,c=e.connectToDevTools,l=e.queryDeduplication,f=void 0===l||l,d=e.defaultOptions;if(!r||!n)throw new Error("\n In order to initialize Apollo Client, you must specify link & cache properties on the config object.\n This is part of the required upgrade when migrating from Apollo Client 1.0 to Apollo Client 2.0.\n For more information, please visit:\n https://www.apollographql.com/docs/react/basics/setup.html\n to help you get started.\n ");this.link=Q.concat(r),this.cache=n,this.store=new F(n),this.disableNetworkFetches=a||s>0,this.queryDeduplication=f,this.ssrMode=a,this.defaultOptions=d||{},s&&setTimeout(function(){return t.disableNetworkFetches=!1},s),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var p=!Object(o.isProduction)()&&"undefined"!=typeof window&&!window.__APOLLO_CLIENT__;(void 0===c?p:c&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),j||Object(o.isProduction)()||(j=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&void 0===window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=P.version}return e.prototype.watchQuery=function(e){return this.initQueryManager(),this.defaultOptions.watchQuery&&(e=D({},this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=D({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){if(this.initQueryManager(),this.defaultOptions.query&&(e=D({},this.defaultOptions.query,e)),"cache-and-network"===e.fetchPolicy)throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=D({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.initQueryManager(),this.defaultOptions.mutate&&(e=D({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.initQueryManager(),this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e){return this.initProxy().readQuery(e)},e.prototype.readFragment=function(e){return this.initProxy().readFragment(e)},e.prototype.writeQuery=function(e){var t=this.initProxy().writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.initProxy().writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.initProxy().writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(s.execute)(this.link,e)},e.prototype.initQueryManager=function(){var e=this;this.queryManager||(this.queryManager=new S({link:this.link,store:this.store,queryDeduplication:this.queryDeduplication,ssrMode:this.ssrMode,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}}))},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager?e.queryManager.clearStore():Promise.resolve(null)}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.queryManager?e.queryManager.reFetchObservableQueries():Promise.resolve(null)})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager?this.queryManager.reFetchObservableQueries(e):Promise.resolve(null)},e.prototype.extract=function(e){return this.initProxy().extract(e)},e.prototype.restore=function(e){return this.initProxy().restore(e)},e.prototype.initProxy=function(){return this.proxy||(this.initQueryManager(),this.proxy=this.cache),this.proxy},e}();r.d(t,"printAST",function(){return i.a}),r.d(t,"ObservableQuery",function(){return b}),r.d(t,"NetworkStatus",function(){return n}),r.d(t,"FetchType",function(){return p}),r.d(t,"ApolloError",function(){return v}),r.d(t,"ApolloClient",function(){return q});t.default=q},function(e,t,r){"use strict";r.r(t);var n=r(0);function i(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||void 0===e||null===e)return null;if(Array.isArray(e))return i(e[0]);var t=[];return Object.keys(e).forEach(function(r){var n={kind:"Field",name:{kind:"Name",value:r}},o=i(e[r]);o&&(n.selectionSet=o),t.push(n)}),{kind:"SelectionSet",selections:t}}var o,a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(n.getFragmentQueryDocument)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(n.getFragmentQueryDocument)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,r,n=e.id,o=e.data;if(void 0!==n){var s=null;try{s=this.read({rootId:n,optimistic:!1,query:a})}catch(e){}var c=s&&s.__typename||"__ClientData",l=u({__typename:c},o);this.writeFragment({id:n,fragment:(t=l,r=c,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(t)}]}),data:l})}else this.writeQuery({query:function(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:i(e)}]}}(o),data:o})},e}();o||(o={});var c=!1,l=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,r){var i=r.store.get(e.id);return!!i&&(i.__typename?i.__typename===t||(Object(n.warnOnceInDevelopment)("You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types.\n Apollo Client will not be able to able to accurately map fragments.To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: https://www.apollographql.com/docs/react/recipes/fragment-matching.html","error"),r.returnPartialData=!0,!0):(c||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",t,i),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),Object(n.isTest)()||(c=!0)),r.returnPartialData=!0,!0))},e}(),f=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,r){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var n=r.store.get(e.id);if(!n)return!1;if(!n.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(n));if(n.__typename===t)return!0;var i=this.possibleTypesMap[t];return!!(i&&i.indexOf(n.__typename)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t},e}(),d=r(2),p=function(){function e(e){void 0===e&&(e={}),this.data=e}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){this.data[e]=t},e.prototype.delete=function(e){this.data[e]=void 0},e.prototype.clear=function(){this.data={}},e.prototype.replace=function(e){this.data=e||{}},e}();function h(e){return new p(e)}var v,y=(v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return y(t,e),t}(Error);function g(e,t){var r=new b("Error writing result to store for query:\n "+Object(d.a)(t));return r.message+="\n"+e.message,r.stack=e.stack,r}function O(e){var t=e.result,r=e.query,i=e.storeFactory,o=void 0===i?h:i,a=e.store,u=void 0===a?o():a,s=e.variables,c=e.dataIdFromObject,l=e.fragmentMap,f=void 0===l?{}:l,d=e.fragmentMatcherFunction,p=Object(n.getQueryDefinition)(r);s=Object(n.assign)({},Object(n.getDefaultValues)(p),s);try{return E({dataId:"ROOT_QUERY",result:t,selectionSet:p.selectionSet,context:{store:u,storeFactory:o,processedData:{},variables:s,dataIdFromObject:c,fragmentMap:f,fragmentMatcherFunction:d}})}catch(e){throw g(e,r)}}function w(e){var t=e.dataId,r=e.result,i=e.document,o=e.storeFactory,a=void 0===o?h:o,u=e.store,s=void 0===u?a():u,c=e.variables,l=e.dataIdFromObject,f=e.fragmentMatcherFunction,d=Object(n.getOperationDefinition)(i),p=d.selectionSet,v=Object(n.createFragmentMap)(Object(n.getFragmentDefinitions)(i));c=Object(n.assign)({},Object(n.getDefaultValues)(d),c);try{return E({result:r,dataId:t,selectionSet:p,context:{store:s,storeFactory:a,processedData:{},variables:c,dataIdFromObject:l,fragmentMap:v,fragmentMatcherFunction:f}})}catch(e){throw g(e,i)}}function E(e){var t=e.result,r=e.dataId,i=e.selectionSet,o=e.context,a=o.variables,u=o.store,s=o.fragmentMap;return i.selections.forEach(function(e){var i=Object(n.shouldInclude)(e,a);if(Object(n.isField)(e)){var u=Object(n.resultKeyNameFromField)(e),c=t[u];if(i)if(void 0!==c)!function(e){var t,r,i=e.field,o=e.value,a=e.dataId,u=e.context,s=u.variables,c=u.dataIdFromObject,l=u.store,f=Object(n.storeKeyNameFromField)(i,s),p=!1,h="";if(i.selectionSet&&null!==o)if(Array.isArray(o)){var v=a+"."+f;t=function e(t,r,n,i){return t.map(function(t,o){if(null===t)return null;var a=r+"."+o;if(Array.isArray(t))return e(t,a,n,i);var u=!0;if(i.dataIdFromObject){var s=i.dataIdFromObject(t);s&&(a=s,u=!1)}k(a,n,i.processedData)||E({dataId:a,result:t,selectionSet:n,context:i});var c={type:"id",id:a,generated:u};return c})}(o,v,i.selectionSet,u)}else{var y=a+"."+f,b=!0;if(I(y)||(y="$"+y),c){var g=c(o);if(g&&I(g))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');g&&(y=g,b=!1)}if(k(y,i,u.processedData)||E({dataId:y,result:o,selectionSet:i.selectionSet,context:u}),t={type:"id",id:y,generated:b},(r=l.get(a))&&r[f]!==t){var O=r[f];if(Object(n.isIdValue)(t)&&t.generated&&Object(n.isIdValue)(O)&&!O.generated)throw new Error("Store error: the application attempted to write an object with no provided id but the store already contains an id of "+O.id+" for this object. The selectionSet that was trying to be written is:\n"+Object(d.a)(i));Object(n.isIdValue)(O)&&O.generated&&(h=O.id,p=!0)}}else t=null!=o&&"object"==typeof o?{type:"json",json:o}:o;var w,N=m({},l.get(a),((w={})[f]=t,w));p&&function e(t,r,i){var o=i.get(t);var a=i.get(r);Object.keys(o).forEach(function(u){var s=o[u],c=a[u];Object(n.isIdValue)(s)&&I(s.id)&&Object(n.isIdValue)(c)&&e(s.id,c.id,i),i.delete(t),i.set(r,m({},o,a))})}(h,t.id,l);(r=l.get(a))&&t===r[f]||l.set(a,N)}({dataId:r,value:c,field:e,context:o});else!(e.directives&&e.directives.length&&e.directives.some(function(e){return e.name&&"defer"===e.name.value}))&&o.fragmentMatcherFunction&&(Object(n.isProduction)()||console.warn("Missing field "+u+" in "+JSON.stringify(t,null,2).substring(0,100)))}else{var l=void 0;if(Object(n.isInlineFragment)(e))l=e;else if(!(l=(s||{})[e.name.value]))throw new Error("No fragment named "+e.name.value+".");var f=!0;if(o.fragmentMatcherFunction&&l.typeCondition){var h={store:new p({self:t}),returnPartialData:!1,hasMissingField:!1,cacheRedirects:{}};f=o.fragmentMatcherFunction({type:"id",id:"self",generated:!1},l.typeCondition.name.value,h),!Object(n.isProduction)()&&h.returnPartialData&&console.error("WARNING: heuristic fragment matching going on!")}i&&f&&E({result:t,selectionSet:l.selectionSet,dataId:r,context:o})}}),u}function I(e){return"$"===e[0]}function k(e,t,r){if(!r)return!1;if(r[e]){if(r[e].indexOf(t)>=0)return!0;r[e].push(t)}else r[e]=[t];return!1}function N(e,t,r,i,o,a){void 0===a&&(a={});var u=Object(n.getMainDefinition)(t),s=Object(n.getFragmentDefinitions)(t),c={fragmentMap:Object(n.createFragmentMap)(s),contextValue:i,variableValues:o,resultMapper:a.resultMapper,resolver:e,fragmentMatcher:a.fragmentMatcher||function(){return!0}};return T(u.selectionSet,r,c)}function T(e,t,r){var i=r.fragmentMap,o=r.contextValue,a=r.variableValues,u={};return e.selections.forEach(function(e){if(Object(n.shouldInclude)(e,a))if(Object(n.isField)(e)){var s=function(e,t,r){var i=r.variableValues,o=r.contextValue,a=r.resolver,u=e.name.value,s=Object(n.argumentsObjectFromField)(e,i),c={isLeaf:!e.selectionSet,resultKey:Object(n.resultKeyNameFromField)(e),directives:Object(n.getDirectiveInfoFromField)(e,i)},l=a(u,t,s,o,c);if(!e.selectionSet)return l;if(null==l)return l;if(Array.isArray(l))return function e(t,r,n){return r.map(function(r){return null===r?null:Array.isArray(r)?e(t,r,n):T(t.selectionSet,r,n)})}(e,l,r);return T(e.selectionSet,l,r)}(e,t,r),c=Object(n.resultKeyNameFromField)(e);void 0!==s&&(void 0===u[c]?u[c]=s:_(u[c],s))}else{var l=void 0;if(Object(n.isInlineFragment)(e))l=e;else if(!(l=i[e.name.value]))throw new Error("No fragment named "+e.name.value);var f=l.typeCondition.name.value;if(r.fragmentMatcher(t,f,o)){var d=T(l.selectionSet,t,r);_(u,d)}}}),r.resultMapper?r.resultMapper(u,t):u}function _(e,t){if(null===t||"object"!=typeof t)return t;Object.keys(e).forEach(function(r){t.hasOwnProperty(r)&&_(e[r],t[r])}),Object.keys(t).forEach(function(r){e.hasOwnProperty(r)||(e[r]=t[r])})}function S(e){this.message=e,this.stack=""}S.prototype=Error.prototype;var F=N,P=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D="undefined"!=typeof Symbol?Symbol("id"):"@@id";function j(e){return q(P({},e,{returnPartialData:!1})).result}var Q=function(e,t,r,i,o){var a=o.resultKey,u=o.directives;R(t);var s=t.id,c=i.store.get(s),l=Object(n.getStoreKeyName)(e,r,u),f=(c||{})[l];if(void 0===f&&i.cacheRedirects&&c&&(c.__typename||"ROOT_QUERY"===s)){var d=c.__typename||"Query",p=i.cacheRedirects[d];if(p){var h=p[e];h&&(f=h(c,r,{getCacheKey:function(e){return Object(n.toIdValue)(i.dataIdFromObject(e))}}))}}if(void 0===f){if(!i.returnPartialData)throw new Error("Can't find field "+l+" on object ("+s+") "+JSON.stringify(c,null,2)+".");return i.hasMissingField=!0,f}return Object(n.isJsonValue)(f)?t.previousResult&&Object(n.isEqual)(t.previousResult[a],f.json)?t.previousResult[a]:f.json:(t.previousResult&&(f=function e(t,r){if(Object(n.isIdValue)(t))return P({},t,{previousResult:r});if(Array.isArray(t)){var i=new Map;return Array.isArray(r)&&r.forEach(function(e){e&&e[D]&&i.set(e[D],e)}),t.map(function(t,o){var a=r&&r[o];return Object(n.isIdValue)(t)&&(a=i.get(t.id)||a),e(t,a)})}return t}(f,t.previousResult[a])),f)};function q(e){var t=e.store,r=e.query,i=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,l=e.fragmentMatcherFunction,f=e.config,d=Object(n.getQueryDefinition)(r);i=Object(n.assign)({},Object(n.getDefaultValues)(d),i);var p={store:t,returnPartialData:u,dataIdFromObject:f&&f.dataIdFromObject||null,cacheRedirects:f&&f.cacheRedirects||{},hasMissingField:!1};return{result:F(Q,r,{type:"id",id:c,previousResult:o},p,i,{fragmentMatcher:l,resultMapper:A}),complete:!p.hasMissingField}}function R(e){if(!Object(n.isIdValue)(e))throw new Error("Encountered a sub-selection on the query, but the store doesn't have an object reference. This should never happen during normal use unless you have custom code that is directly manipulating the store; please file an issue.")}function A(e,t){if(t.previousResult){var r=Object.keys(e);if(Object.keys(t.previousResult).reduce(function(e,t){return e&&r.indexOf(t)>-1},!0)&&r.every(function(r){return function e(t,r){if(t===r)return!0;if(!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;return t.every(function(t,n){return e(t,r[n])})}(e[r],t.previousResult[r])}))return t.previousResult}return Object.defineProperty(e,D,{enumerable:!1,configurable:!1,writable:!1,value:t.id}),e}var L=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M=function(){function e(e){void 0===e&&(e={}),this.data=e,this.recordedData={}}return e.prototype.record=function(e){e(this);var t=this.recordedData;return this.recordedData={},t},e.prototype.toObject=function(){return L({},this.data,this.recordedData)},e.prototype.get=function(e){return this.recordedData.hasOwnProperty(e)?this.recordedData[e]:this.data[e]},e.prototype.set=function(e,t){this.get(e)!==t&&(this.recordedData[e]=t)},e.prototype.delete=function(e){this.recordedData[e]=void 0},e.prototype.clear=function(){var e=this;Object.keys(this.data).forEach(function(t){return e.delete(t)}),this.recordedData={}},e.prototype.replace=function(e){this.clear(),this.recordedData=L({},e)},e}();function x(e,t){return new M(e).record(t)}var C=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),V=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B={fragmentMatcher:new l,dataIdFromObject:U,addTypename:!0,storeFactory:h};function U(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var G=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.optimistic=[],r.watches=[],r.silenceBroadcast=!1,r.config=V({},B,t),r.config.customResolvers&&(console.warn("customResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating customResolvers in the next major version."),r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(console.warn("cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version."),r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=r.config.addTypename,r.data=r.config.storeFactory(),r}return C(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){if(void 0===e&&(e=!1),e&&this.optimistic.length>0){var t=this.optimistic.map(function(e){return e.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat(t))}return this.data.toObject()},t.prototype.read=function(e){return e.rootId&&void 0===this.data.get(e.rootId)?null:j({store:this.config.storeFactory(this.extract(e.optimistic)),query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:e.previousResult,config:this.config})},t.prototype.write=function(e){w({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},t.prototype.diff=function(e){return q({store:this.config.storeFactory(this.extract(e.optimistic)),query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.push(e),function(){t.watches=t.watches.filter(function(t){return t!==e})}},t.prototype.evict=function(e){throw new Error("eviction is not implemented on InMemory Cache")},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this,r=this.optimistic.filter(function(t){return t.id!==e});this.optimistic=[],r.forEach(function(e){t.recordOptimisticTransaction(e.transaction,e.id)}),this.broadcastWatches()},t.prototype.performTransaction=function(e){var t=this.silenceBroadcast;this.silenceBroadcast=!0,e(this),t||(this.silenceBroadcast=!1),this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){var r=this;this.silenceBroadcast=!0;var n=x(this.extract(!0),function(t){var n=r.data;r.data=t,r.performTransaction(e),r.data=n});this.optimistic.push({id:t,transaction:e,data:n}),this.silenceBroadcast=!1,this.broadcastWatches()},t.prototype.transformDocument=function(e){return this.addTypename?Object(n.addTypenameToDocument)(e):e},t.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},t.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.transformDocument(Object(n.getFragmentQueryDocument)(e.fragment,e.fragmentName)),variables:e.variables,rootId:e.id,optimistic:t})},t.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:this.transformDocument(e.query),variables:e.variables})},t.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,query:this.transformDocument(Object(n.getFragmentQueryDocument)(e.fragment,e.fragmentName)),variables:e.variables})},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){var r=e.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic});t.callback(r)})},t}(s);r.d(t,"InMemoryCache",function(){return G}),r.d(t,"defaultDataIdFromObject",function(){return U}),r.d(t,"ID_KEY",function(){return D}),r.d(t,"readQueryFromStore",function(){return j}),r.d(t,"diffQueryAgainstStore",function(){return q}),r.d(t,"assertIdValue",function(){return R}),r.d(t,"WriteError",function(){return b}),r.d(t,"enhanceErrorWithDocument",function(){return g}),r.d(t,"writeQueryToStore",function(){return O}),r.d(t,"writeResultToStore",function(){return w}),r.d(t,"writeSelectionSetToStore",function(){return E}),r.d(t,"HeuristicFragmentMatcher",function(){return l}),r.d(t,"IntrospectionFragmentMatcher",function(){return f}),r.d(t,"ObjectCache",function(){return p}),r.d(t,"defaultNormalizedCacheFactory",function(){return h}),r.d(t,"RecordingCache",function(){return M}),r.d(t,"record",function(){return x})},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){!function(e,t){"use strict";function r(e,t){if(null===t||"object"!=typeof t)return t;Object.keys(e).forEach(function(n){t.hasOwnProperty(n)&&r(e[n],t[n])}),Object.keys(t).forEach(function(r){e.hasOwnProperty(r)||(e[r]=t[r])})}var n=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=n[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}};function o(e,a,u){return n(this,void 0,void 0,function(){var s,c,l,f,d,p=this;return i(this,function(h){switch(h.label){case 0:return s=u.fragmentMap,c=u.contextValue,l=u.variableValues,f={},d=function(e){return n(p,void 0,void 0,function(){var d,p,h,v,y;return i(this,function(m){switch(m.label){case 0:return t.shouldInclude(e,l)?t.isField(e)?[4,function(e,r,a){return n(this,void 0,void 0,function(){var n,u,s,c,l,f,d;return i(this,function(i){switch(i.label){case 0:return n=a.variableValues,u=a.contextValue,s=a.resolver,c=e.name.value,l=t.argumentsObjectFromField(e,n),f={isLeaf:!e.selectionSet,resultKey:t.resultKeyNameFromField(e),directives:t.getDirectiveInfoFromField(e,n)},[4,s(c,r,l,u,f)];case 1:return d=i.sent(),e.selectionSet?null==d?[2,d]:Array.isArray(d)?[2,function e(t,r,n){return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?e(t,r,n):o(t.selectionSet,r,n)}))}(e,d,a)]:[2,o(e.selectionSet,d,a)]:[2,d]}})})}(e,a,u)]:[3,2]:[2];case 1:return d=m.sent(),p=t.resultKeyNameFromField(e),void 0!==d&&(void 0===f[p]?f[p]=d:r(f[p],d)),[2];case 2:if(t.isInlineFragment(e))h=e;else if(!(h=s[e.name.value]))throw new Error("No fragment named "+e.name.value);return v=h.typeCondition.name.value,u.fragmentMatcher(a,v,c)?[4,o(h.selectionSet,a,u)]:[3,4];case 3:y=m.sent(),r(f,y),m.label=4;case 4:return[2]}})})},[4,Promise.all(e.selections.map(d))];case 1:return h.sent(),u.resultMapper?[2,u.resultMapper(f,a)]:[2,f]}})})}e.graphql=function(e,r,n,i,a,u){void 0===u&&(u={});var s=t.getMainDefinition(r),c=t.getFragmentDefinitions(r),l=t.createFragmentMap(c),f=u.resultMapper,d=u.fragmentMatcher||function(){return!0},p={fragmentMap:l,contextValue:i,variableValues:a,resultMapper:f,resolver:e,fragmentMatcher:d};return o(s.selectionSet,n,p)},Object.defineProperty(e,"__esModule",{value:!0})}(t,r(0))},function(e,t){t.version="2.2.7"},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";(function(e,n){var i,o=r(10);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var a=Object(o.a)(i);t.a=a}).call(this,r(7),r(17)(e))},function(e,t,r){"use strict";r.r(t);var n=r(1),i=r(0),o=r(8),a={test:function(e){return"client"===e.name.value},remove:!0},u=new Map;r.d(t,"withClientState",function(){return l});var s,c=(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){void 0===e&&(e={resolvers:{},defaults:{}});var t=e.resolvers,r=e.defaults,s=e.cache,l=e.typeDefs;return s&&r&&s.writeData({data:r}),new(function(e){function f(){return null!==e&&e.apply(this,arguments)||this}return c(f,e),f.prototype.writeDefaults=function(){s&&r&&s.writeData({data:r})},f.prototype.request=function(e,s){if(void 0===s&&(s=function(){return n.Observable.of({data:{}})}),l){var c="string"==typeof l?l:l.map(function(e){return e.trim()}).join("\n");e.setContext(function(e){var t=e.schemas;return{schemas:(void 0===t?[]:t).concat([{definition:c,directives:"directive @client on FIELD"}])}})}if(!Object(i.hasDirectives)(["client"],e.query))return s(e);var f,d=function(e){var t=u.get(e);if(t)return t;Object(i.checkDocument)(e);var r=Object(i.removeDirectivesFromDocument)([a],e);return u.set(e,r),r}(e.query),p=e.query,h=(f=(Object(i.getMainDefinition)(p)||{}).operation).charAt(0).toUpperCase()+f.slice(1)||"Query",v=function(e,n,i,o,a){void 0===n&&(n={});var u=n[a.resultKey];if(void 0!==u)return u;var s=t[n.__typename||h];if(s){var c=s[e];if(c)return c(n,i,o,a)}return r[e]};return new n.Observable(function(t){d&&(e.query=d);var r=d&&s?s(e):n.Observable.of({data:{}}),i=t.error.bind(t),a=r.subscribe({next:function(r){var n=r.data,a=r.errors,u=e.getContext();Object(o.graphql)(v,p,n,u,e.variables).then(function(e){t.next({data:e,errors:a}),t.complete()}).catch(i)},error:i});return function(){a&&a.unsubscribe()}})},f}(n.ApolloLink))}},function(e,t,r){"use strict";r.r(t);var n,i=r(1),o=r(2),a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t,r){var n=new Error(r);throw n.response=e,n.statusCode=e.status,n.result=t,n},c=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new Error("Network request failed. "+t+" is not serializable: "+e.message);throw n.parseError=e,n}return r},l=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&(r[n[i]]=e[n[i]])}return r},d=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,l=e.includeExtensions,d=e.useGETForQueries,p=f(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch){var t="unfetch";throw"undefined"==typeof window&&(t="node-fetch"),new Error("\nfetch is not found globally and no fetcher passed, to fix pass a fetch for\nyour environment like https://www.npmjs.com/package/"+t+".\n\nFor example:\nimport fetch from '"+t+"';\nimport { createHttpLink } from 'apollo-link-http';\n\nconst link = createHttpLink({ uri: '/graphql', fetch: fetch });")}}(n),n||(n=fetch);var h={http:{includeExtensions:l},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new i.ApolloLink(function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),l=e.getContext(),f={http:l.http,options:l.fetchOptions,credentials:l.credentials,headers:l.headers},p=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=a({},t.options,{headers:t.headers,credentials:t.credentials}),u=t.http;r.forEach(function(e){i=a({},i,e.options,{headers:a({},i.headers,e.headers)}),e.credentials&&(i.credentials=e.credentials),u=a({},u,e.http)});var s=e.operationName,c=e.extensions,l=e.variables,f=e.query,d={operationName:s,variables:l};return u.includeExtensions&&(d.extensions=c),u.includeQuery&&(d.query=Object(o.a)(f)),{options:i,body:d}}(e,u,h,f),v=p.options,y=p.body,m=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),b=m.controller,g=m.signal;b&&(v.signal=g);if(d&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(v.method="GET"),"GET"===v.method){var O=function(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};"query"in t&&n("query",t.query);t.operationName&&n("operationName",t.operationName);if(t.variables){var i=void 0;try{i=c(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=c(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",u=e,s=e.indexOf("#");-1!==s&&(a=e.substr(s),u=e.substr(0,s));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+a}}(t,y),w=O.newURI,E=O.parseError;if(E)return Object(i.fromError)(E);t=w}else try{v.body=c(y,"Payload")}catch(E){return Object(i.fromError)(E)}return new i.Observable(function(r){var i;return n(t,v).then(function(t){return e.setContext({response:t}),t}).then((i=e,function(e){return e.text().then(function(t){try{return JSON.parse(t)}catch(n){var r=n;return r.response=e,r.statusCode=e.status,r.bodyText=t,Promise.reject(r)}}).then(function(t){return e.status>=300&&s(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||s(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(e){return e.operationName}):i.operationName)+"'."),t})})).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){b&&b.abort()}})})};var p=function(e){function t(t){return e.call(this,d(t).request)||this}return l(t,e),t}(i.ApolloLink);r.d(t,"createHttpLink",function(){return d}),r.d(t,"HttpLink",function(){return p})},function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t)}r.r(t);var i=function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=r||"GraphQL request",this.locationOffset=i||{line:1,column:1},this.locationOffset.line>0||n(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||n(0,"column in locationOffset is 1-indexed and must be positive")};function o(e,t){for(var r=/\r\n|[\n\r]/g,n=1,i=t+1,o=void 0;(o=r.exec(e.body))&&o.index<t;)n+=1,i=t+1-(o.index+o[0].length);return{line:n,column:i}}function a(e,t){var r=t.line,n=e.locationOffset.line-1,i=function(e,t){return 1===t.line?e.locationOffset.column-1:0}(e,t),o=r+n,a=t.column+i,c=(o-1).toString(),l=o.toString(),f=(o+1).toString(),d=f.length,p=e.body.split(/\r\n|[\n\r]/g);return p[0]=u(e.locationOffset.column-1)+p[0],[e.name+" ("+o+":"+a+")",r>=2&&s(d,c)+": "+p[r-2],s(d,l)+": "+p[r-1],u(2+d+a-1)+"^",r<p.length&&s(d,f)+": "+p[r]].filter(Boolean).join("\n")}function u(e){return Array(e+1).join(" ")}function s(e,t){return u(e-t.length)+t}function c(e,t,r,n,i,a,u){var s=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,l=r;if(!l&&s){var f=s[0];l=f&&f.loc&&f.loc.source}var d=n;!d&&s&&(d=s.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),d&&0===d.length&&(d=void 0);var p=void 0;n&&r?p=n.map(function(e){return o(r,e)}):s&&(p=s.reduce(function(e,t){return t.loc&&e.push(o(t.loc.source,t.loc.start)),e},[])),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:!0},path:{value:i||void 0,enumerable:!0},nodes:{value:s||void 0},source:{value:l||void 0},positions:{value:d||void 0},originalError:{value:a},extensions:{value:u||a&&a.extensions}}),a&&a.stack?Object.defineProperty(this,"stack",{value:a.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function l(e,t,r){return new c("Syntax Error: "+r,void 0,e,[t])}c.prototype=Object.create(Error.prototype,{constructor:{value:c},name:{value:"GraphQLError"},toString:{value:function(){return function(e){var t=[];if(e.nodes)e.nodes.forEach(function(e){e.loc&&t.push(a(e.loc.source,o(e.loc.source,e.loc.start)))});else if(e.source&&e.locations){var r=e.source;e.locations.forEach(function(e){t.push(a(r,e))})}return 0===t.length?e.message:[e.message].concat(t).join("\n\n")+"\n"}(this)}}});Object.assign;function f(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,n=1;n<t.length;n++){var i=t[n],o=d(i);if(o<i.length&&(null===r||o<r)&&0===(r=o))break}if(r)for(var a=1;a<t.length;a++)t[a]=t[a].slice(r);for(;t.length>0&&p(t[0]);)t.shift();for(;t.length>0&&p(t[t.length-1]);)t.pop();return t.join("\n")}function d(e){for(var t=0;t<e.length&&(" "===e[t]||"\t"===e[t]);)t++;return t}function p(e){return d(e)===e.length}function h(e,t){var r=new w(m.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:v,lookahead:y}}function v(){return this.lastToken=this.token,this.token=this.lookahead()}function y(){var e=this.token;if(e.kind!==m.EOF)do{e=e.next||(e.next=I(this,e))}while(e.kind===m.COMMENT);return e}var m=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function b(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}var g=String.prototype.charCodeAt,O=String.prototype.slice;function w(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function E(e){return isNaN(e)?m.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function I(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i<n;){var o=g.call(e,i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++r.line,r.lineStart=i;else{if(13!==o)break;10===g.call(e,i+1)?i+=2:++i,++r.line,r.lineStart=i}}return i}(n,t.end,e),a=e.line,u=1+o-e.lineStart;if(o>=i)return new w(m.EOF,i,i,a,u,t);var s=g.call(n,o);if(s<32&&9!==s&&10!==s&&13!==s)throw l(r,o,"Cannot contain the invalid character "+E(s)+".");switch(s){case 33:return new w(m.BANG,o,o+1,a,u,t);case 35:return function(e,t,r,n,i){var o=e.body,a=void 0,u=t;do{a=g.call(o,++u)}while(null!==a&&(a>31||9===a));return new w(m.COMMENT,t,u,r,n,i,O.call(o,t+1,u))}(r,o,a,u,t);case 36:return new w(m.DOLLAR,o,o+1,a,u,t);case 38:return new w(m.AMP,o,o+1,a,u,t);case 40:return new w(m.PAREN_L,o,o+1,a,u,t);case 41:return new w(m.PAREN_R,o,o+1,a,u,t);case 46:if(46===g.call(n,o+1)&&46===g.call(n,o+2))return new w(m.SPREAD,o,o+3,a,u,t);break;case 58:return new w(m.COLON,o,o+1,a,u,t);case 61:return new w(m.EQUALS,o,o+1,a,u,t);case 64:return new w(m.AT,o,o+1,a,u,t);case 91:return new w(m.BRACKET_L,o,o+1,a,u,t);case 93:return new w(m.BRACKET_R,o,o+1,a,u,t);case 123:return new w(m.BRACE_L,o,o+1,a,u,t);case 124:return new w(m.PIPE,o,o+1,a,u,t);case 125:return new w(m.BRACE_R,o,o+1,a,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,u=t+1,s=0;for(;u!==a&&null!==(s=g.call(o,u))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++u;return new w(m.NAME,t,u,r,n,i,O.call(o,t,u))}(r,o,a,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,u=r,s=t,c=!1;45===u&&(u=g.call(a,++s));if(48===u){if((u=g.call(a,++s))>=48&&u<=57)throw l(e,s,"Invalid number, unexpected digit after 0: "+E(u)+".")}else s=k(e,s,u),u=g.call(a,s);46===u&&(c=!0,u=g.call(a,++s),s=k(e,s,u),u=g.call(a,s));69!==u&&101!==u||(c=!0,43!==(u=g.call(a,++s))&&45!==u||(u=g.call(a,++s)),s=k(e,s,u));return new w(c?m.FLOAT:m.INT,t,s,n,i,o,O.call(a,t,s))}(r,o,s,a,u,t);case 34:return 34===g.call(n,o+1)&&34===g.call(n,o+2)?function(e,t,r,n,i){var o=e.body,a=t+3,u=a,s=0,c="";for(;a<o.length&&null!==(s=g.call(o,a));){if(34===s&&34===g.call(o,a+1)&&34===g.call(o,a+2))return c+=O.call(o,u,a),new w(m.BLOCK_STRING,t,a+3,r,n,i,f(c));if(s<32&&9!==s&&10!==s&&13!==s)throw l(e,a,"Invalid character within String: "+E(s)+".");92===s&&34===g.call(o,a+1)&&34===g.call(o,a+2)&&34===g.call(o,a+3)?(c+=O.call(o,u,a)+'"""',u=a+=4):++a}throw l(e,a,"Unterminated string.")}(r,o,a,u,t):function(e,t,r,n,i){var o=e.body,a=t+1,u=a,s=0,c="";for(;a<o.length&&null!==(s=g.call(o,a))&&10!==s&&13!==s;){if(34===s)return c+=O.call(o,u,a),new w(m.STRING,t,a+1,r,n,i,c);if(s<32&&9!==s)throw l(e,a,"Invalid character within String: "+E(s)+".");if(++a,92===s){switch(c+=O.call(o,u,a-1),s=g.call(o,a)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var f=(d=g.call(o,a+1),p=g.call(o,a+2),h=g.call(o,a+3),v=g.call(o,a+4),N(d)<<12|N(p)<<8|N(h)<<4|N(v));if(f<0)throw l(e,a,"Invalid character escape sequence: \\u"+o.slice(a+1,a+5)+".");c+=String.fromCharCode(f),a+=4;break;default:throw l(e,a,"Invalid character escape sequence: \\"+String.fromCharCode(s)+".")}u=++a}}var d,p,h,v;throw l(e,a,"Unterminated string.")}(r,o,a,u,t)}throw l(r,o,function(e){if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character "+E(e)+"."}(s))}function k(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do{o=g.call(n,++i)}while(o>=48&&o<=57);return i}throw l(e,i,"Invalid number, expected digit but got: "+E(o)+".")}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}w.prototype.toJSON=w.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};var T=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",VARIABLE:"Variable",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension",DIRECTIVE_DEFINITION:"DirectiveDefinition"}),_=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function S(e,t){var r="string"==typeof e?new i(e):e;if(!(r instanceof i))throw new TypeError("Must provide Source. Received: "+String(r));return function(e){var t=e.token;be(e,m.SOF);var r=[];do{r.push(j(e))}while(!me(e,m.EOF));return{kind:T.DOCUMENT,definitions:r,loc:he(e,t)}}(h(r,t||{}))}function F(e,t){var r=h("string"==typeof e?new i(e):e,t||{});be(r,m.SOF);var n=Y(r,!1);return be(r,m.EOF),n}function P(e,t){var r=h("string"==typeof e?new i(e):e,t||{});be(r,m.SOF);var n=$(r);return be(r,m.EOF),n}function D(e){var t=be(e,m.NAME);return{kind:T.NAME,value:t.value,loc:he(e,t)}}function j(e){if(ye(e,m.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":case"fragment":return Q(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return ee(e)}else{if(ye(e,m.BRACE_L))return Q(e);if(te(e))return ee(e)}throw Oe(e)}function Q(e){if(ye(e,m.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return q(e);case"fragment":return function(e){var t=e.token;if(ge(e,"fragment"),e.options.experimentalFragmentVariables)return{kind:T.FRAGMENT_DEFINITION,name:G(e),variableDefinitions:A(e),typeCondition:(ge(e,"on"),Z(e)),directives:z(e,!1),selectionSet:x(e),loc:he(e,t)};return{kind:T.FRAGMENT_DEFINITION,name:G(e),typeCondition:(ge(e,"on"),Z(e)),directives:z(e,!1),selectionSet:x(e),loc:he(e,t)}}(e)}else if(ye(e,m.BRACE_L))return q(e);throw Oe(e)}function q(e){var t=e.token;if(ye(e,m.BRACE_L))return{kind:T.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:x(e),loc:he(e,t)};var r=R(e),n=void 0;return ye(e,m.NAME)&&(n=D(e)),{kind:T.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:A(e),directives:z(e,!1),selectionSet:x(e),loc:he(e,t)}}function R(e){var t=be(e,m.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw Oe(e,t)}function A(e){return ye(e,m.PAREN_L)?we(e,m.PAREN_L,L,m.PAREN_R):[]}function L(e){var t=e.token;return{kind:T.VARIABLE_DEFINITION,variable:M(e),type:(be(e,m.COLON),$(e)),defaultValue:me(e,m.EQUALS)?Y(e,!0):void 0,loc:he(e,t)}}function M(e){var t=e.token;return be(e,m.DOLLAR),{kind:T.VARIABLE,name:D(e),loc:he(e,t)}}function x(e){var t=e.token;return{kind:T.SELECTION_SET,selections:we(e,m.BRACE_L,C,m.BRACE_R),loc:he(e,t)}}function C(e){return ye(e,m.SPREAD)?function(e){var t=e.token;if(be(e,m.SPREAD),ye(e,m.NAME)&&"on"!==e.token.value)return{kind:T.FRAGMENT_SPREAD,name:G(e),directives:z(e,!1),loc:he(e,t)};var r=void 0;"on"===e.token.value&&(e.advance(),r=Z(e));return{kind:T.INLINE_FRAGMENT,typeCondition:r,directives:z(e,!1),selectionSet:x(e),loc:he(e,t)}}(e):function(e){var t=e.token,r=D(e),n=void 0,i=void 0;me(e,m.COLON)?(n=r,i=D(e)):i=r;return{kind:T.FIELD,alias:n,name:i,arguments:V(e,!1),directives:z(e,!1),selectionSet:ye(e,m.BRACE_L)?x(e):void 0,loc:he(e,t)}}(e)}function V(e,t){var r=t?U:B;return ye(e,m.PAREN_L)?we(e,m.PAREN_L,r,m.PAREN_R):[]}function B(e){var t=e.token;return{kind:T.ARGUMENT,name:D(e),value:(be(e,m.COLON),Y(e,!1)),loc:he(e,t)}}function U(e){var t=e.token;return{kind:T.ARGUMENT,name:D(e),value:(be(e,m.COLON),J(e)),loc:he(e,t)}}function G(e){if("on"===e.token.value)throw Oe(e);return D(e)}function Y(e,t){var r=e.token;switch(r.kind){case m.BRACKET_L:return function(e,t){var r=e.token,n=t?J:H;return{kind:T.LIST,values:function(e,t,r,n){be(e,t);var i=[];for(;!me(e,n);)i.push(r(e));return i}(e,m.BRACKET_L,n,m.BRACKET_R),loc:he(e,r)}}(e,t);case m.BRACE_L:return function(e,t){var r=e.token;be(e,m.BRACE_L);var n=[];for(;!me(e,m.BRACE_R);)n.push(W(e,t));return{kind:T.OBJECT,fields:n,loc:he(e,r)}}(e,t);case m.INT:return e.advance(),{kind:T.INT,value:r.value,loc:he(e,r)};case m.FLOAT:return e.advance(),{kind:T.FLOAT,value:r.value,loc:he(e,r)};case m.STRING:case m.BLOCK_STRING:return K(e);case m.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:T.BOOLEAN,value:"true"===r.value,loc:he(e,r)}):"null"===r.value?(e.advance(),{kind:T.NULL,loc:he(e,r)}):(e.advance(),{kind:T.ENUM,value:r.value,loc:he(e,r)});case m.DOLLAR:if(!t)return M(e)}throw Oe(e)}function K(e){var t=e.token;return e.advance(),{kind:T.STRING,value:t.value,block:t.kind===m.BLOCK_STRING,loc:he(e,t)}}function J(e){return Y(e,!0)}function H(e){return Y(e,!1)}function W(e,t){var r=e.token;return{kind:T.OBJECT_FIELD,name:D(e),value:(be(e,m.COLON),Y(e,t)),loc:he(e,r)}}function z(e,t){for(var r=[];ye(e,m.AT);)r.push(X(e,t));return r}function X(e,t){var r=e.token;return be(e,m.AT),{kind:T.DIRECTIVE,name:D(e),arguments:V(e,t),loc:he(e,r)}}function $(e){var t=e.token,r=void 0;return me(e,m.BRACKET_L)?(r=$(e),be(e,m.BRACKET_R),r={kind:T.LIST_TYPE,type:r,loc:he(e,t)}):r=Z(e),me(e,m.BANG)?{kind:T.NON_NULL_TYPE,type:r,loc:he(e,t)}:r}function Z(e){var t=e.token;return{kind:T.NAMED_TYPE,name:D(e),loc:he(e,t)}}function ee(e){var t=te(e)?e.lookahead():e.token;if(t.kind===m.NAME)switch(t.value){case"schema":return function(e){var t=e.token;ge(e,"schema");var r=z(e,!0),n=we(e,m.BRACE_L,ne,m.BRACE_R);return{kind:T.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:he(e,t)}}(e);case"scalar":return function(e){var t=e.token,r=re(e);ge(e,"scalar");var n=D(e),i=z(e,!0);return{kind:T.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i,loc:he(e,t)}}(e);case"type":return function(e){var t=e.token,r=re(e);ge(e,"type");var n=D(e),i=ie(e),o=z(e,!0),a=oe(e);return{kind:T.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:o,fields:a,loc:he(e,t)}}(e);case"interface":return function(e){var t=e.token,r=re(e);ge(e,"interface");var n=D(e),i=z(e,!0),o=oe(e);return{kind:T.INTERFACE_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o,loc:he(e,t)}}(e);case"union":return function(e){var t=e.token,r=re(e);ge(e,"union");var n=D(e),i=z(e,!0),o=ce(e);return{kind:T.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:o,loc:he(e,t)}}(e);case"enum":return function(e){var t=e.token,r=re(e);ge(e,"enum");var n=D(e),i=z(e,!0),o=le(e);return{kind:T.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:o,loc:he(e,t)}}(e);case"input":return function(e){var t=e.token,r=re(e);ge(e,"input");var n=D(e),i=z(e,!0),o=de(e);return{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:o,loc:he(e,t)}}(e);case"extend":return function(e){var t=e.lookahead();if(t.kind===m.NAME)switch(t.value){case"scalar":return function(e){var t=e.token;ge(e,"extend"),ge(e,"scalar");var r=D(e),n=z(e,!0);if(0===n.length)throw Oe(e);return{kind:T.SCALAR_TYPE_EXTENSION,name:r,directives:n,loc:he(e,t)}}(e);case"type":return function(e){var t=e.token;ge(e,"extend"),ge(e,"type");var r=D(e),n=ie(e),i=z(e,!0),o=oe(e);if(0===n.length&&0===i.length&&0===o.length)throw Oe(e);return{kind:T.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:o,loc:he(e,t)}}(e);case"interface":return function(e){var t=e.token;ge(e,"extend"),ge(e,"interface");var r=D(e),n=z(e,!0),i=oe(e);if(0===n.length&&0===i.length)throw Oe(e);return{kind:T.INTERFACE_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:he(e,t)}}(e);case"union":return function(e){var t=e.token;ge(e,"extend"),ge(e,"union");var r=D(e),n=z(e,!0),i=ce(e);if(0===n.length&&0===i.length)throw Oe(e);return{kind:T.UNION_TYPE_EXTENSION,name:r,directives:n,types:i,loc:he(e,t)}}(e);case"enum":return function(e){var t=e.token;ge(e,"extend"),ge(e,"enum");var r=D(e),n=z(e,!0),i=le(e);if(0===n.length&&0===i.length)throw Oe(e);return{kind:T.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i,loc:he(e,t)}}(e);case"input":return function(e){var t=e.token;ge(e,"extend"),ge(e,"input");var r=D(e),n=z(e,!0),i=de(e);if(0===n.length&&0===i.length)throw Oe(e);return{kind:T.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:he(e,t)}}(e)}throw Oe(e,t)}(e);case"directive":return function(e){var t=e.token,r=re(e);ge(e,"directive"),be(e,m.AT);var n=D(e),i=ue(e);ge(e,"on");var o=function(e){me(e,m.PIPE);var t=[];do{t.push(pe(e))}while(me(e,m.PIPE));return t}(e);return{kind:T.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,locations:o,loc:he(e,t)}}(e)}throw Oe(e,t)}function te(e){return ye(e,m.STRING)||ye(e,m.BLOCK_STRING)}function re(e){if(te(e))return K(e)}function ne(e){var t=e.token,r=R(e);be(e,m.COLON);var n=Z(e);return{kind:T.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:he(e,t)}}function ie(e){var t=[];if("implements"===e.token.value){e.advance(),me(e,m.AMP);do{t.push(Z(e))}while(me(e,m.AMP)||e.options.allowLegacySDLImplementsInterfaces&&ye(e,m.NAME))}return t}function oe(e){return e.options.allowLegacySDLEmptyFields&&ye(e,m.BRACE_L)&&e.lookahead().kind===m.BRACE_R?(e.advance(),e.advance(),[]):ye(e,m.BRACE_L)?we(e,m.BRACE_L,ae,m.BRACE_R):[]}function ae(e){var t=e.token,r=re(e),n=D(e),i=ue(e);be(e,m.COLON);var o=$(e),a=z(e,!0);return{kind:T.FIELD_DEFINITION,description:r,name:n,arguments:i,type:o,directives:a,loc:he(e,t)}}function ue(e){return ye(e,m.PAREN_L)?we(e,m.PAREN_L,se,m.PAREN_R):[]}function se(e){var t=e.token,r=re(e),n=D(e);be(e,m.COLON);var i=$(e),o=void 0;me(e,m.EQUALS)&&(o=J(e));var a=z(e,!0);return{kind:T.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:o,directives:a,loc:he(e,t)}}function ce(e){var t=[];if(me(e,m.EQUALS)){me(e,m.PIPE);do{t.push(Z(e))}while(me(e,m.PIPE))}return t}function le(e){return ye(e,m.BRACE_L)?we(e,m.BRACE_L,fe,m.BRACE_R):[]}function fe(e){var t=e.token,r=re(e),n=D(e),i=z(e,!0);return{kind:T.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i,loc:he(e,t)}}function de(e){return ye(e,m.BRACE_L)?we(e,m.BRACE_L,se,m.BRACE_R):[]}function pe(e){var t=e.token,r=D(e);if(_.hasOwnProperty(r.value))return r;throw Oe(e,t)}function he(e,t){if(!e.options.noLocation)return new ve(t,e.lastToken,e.source)}function ve(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function ye(e,t){return e.token.kind===t}function me(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function be(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw l(e.source,r.start,"Expected "+t+", found "+b(r))}function ge(e,t){var r=e.token;if(r.kind===m.NAME&&r.value===t)return e.advance(),r;throw l(e.source,r.start,'Expected "'+t+'", found '+b(r))}function Oe(e,t){var r=t||e.token;return l(e.source,r.start,"Unexpected "+b(r))}function we(e,t,r,n){be(e,t);for(var i=[r(e)];!me(e,n);)i.push(r(e));return i}r.d(t,"parse",function(){return S}),r.d(t,"parseValue",function(){return F}),r.d(t,"parseType",function(){return P}),r.d(t,"parseConstValue",function(){return J}),r.d(t,"parseTypeReference",function(){return $}),r.d(t,"parseNamedType",function(){return Z}),ve.prototype.toJSON=ve.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,r){var n=r(14).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var u=!0;function s(e){var t=i(e);if(o[t])return o[t];var r=n(e);if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");return r=function e(t,r){var n=Object.prototype.toString.call(t);if("[object Array]"===n)return t.map(function(t){return e(t,r)});if("[object Object]"!==n)throw new Error("Unexpected input.");r&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var i,o,a,u=Object.keys(t);for(i in u)u.hasOwnProperty(i)&&(o=t[u[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[u[i]]=e(o,!0)));return t}(r=function(e){for(var t,r={},n=[],o=0;o<e.definitions.length;o++){var s=e.definitions[o];if("FragmentDefinition"===s.kind){var c=s.name.value,l=i((t=s.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(c)&&!a[c][l]?(u&&console.warn("Warning: fragment with name "+c+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[c][l]=!0):a.hasOwnProperty(c)||(a[c]={},a[c][l]=!0),r[l]||(r[l]=!0,n.push(s))}else n.push(s)}return e.definitions=n,e}(r),!1),o[t]=r,r}function c(){for(var e=Array.prototype.slice.call(arguments),t=e[0],r="string"==typeof t?t:t[0],n=1;n<e.length;n++)e[n]&&e[n].kind&&"Document"===e[n].kind?r+=e[n].loc.source.body:r+=e[n],r+=t[n];return s(r)}c.default=c,c.resetCaches=function(){o={},a={}},c.disableFragmentWarnings=function(){u=!1},e.exports=c},function(e,t,r){"use strict";r.r(t),r.d(t,"onError",function(){return a}),r.d(t,"ErrorLink",function(){return u});var n,i=r(1),o=(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){return new i.ApolloLink(function(t,r){return new i.Observable(function(n){var i;try{i=r(t).subscribe({next:function(r){r.errors&&e({graphQLErrors:r.errors,response:r,operation:t}),n.next(r)},error:function(r){e({operation:t,networkError:r,graphQLErrors:r.result&&r.result.errors}),n.error(r)},complete:n.complete.bind(n)})}catch(r){e({networkError:r,operation:t}),n.error(r)}return function(){i&&i.unsubscribe()}})})},u=function(e){function t(t){var r=e.call(this)||this;return r.link=a(t),r}return o(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)},t}(i.ApolloLink)},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";(function(e){!function(e,t){function r(e){return"function"==typeof Symbol&&Boolean(Symbol[e])}function n(e){return r(e)?Symbol[e]:"@@"+e}function i(e){setTimeout(function(){throw e})}function o(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function a(e){var t=e.constructor;return void 0!==t&&null===(t=t[n("species")])&&(t=void 0),void 0!==t?t:d}function u(e,t){Object.keys(t).forEach(function(r){var n=Object.getOwnPropertyDescriptor(t,r);n.enumerable=!1,Object.defineProperty(e,r,n)})}function s(e){var t=e._cleanup;if(t){e._cleanup=void 0;try{t()}catch(e){i(e)}}}function c(e){return void 0===e._observer}function l(e,t){if(Object(e)!==e)throw new TypeError("Observer must be an object");this._cleanup=void 0,this._observer=e;try{var r=o(e,"start");r&&r.call(e,this)}catch(e){i(e)}if(!c(this)){e=new f(this);try{var n=t.call(void 0,e);if(null!=n){if("function"==typeof n.unsubscribe)a=n,n=function(){a.unsubscribe()};else if("function"!=typeof n)throw new TypeError(n+" is not a function");this._cleanup=n}}catch(t){return void e.error(t)}var a;c(this)&&s(this)}}function f(e){this._subscription=e}function d(e){if(!(this instanceof d))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}"function"!=typeof Symbol||Symbol.observable||(Symbol.observable=Symbol("observable")),u(l.prototype={},{get closed(){return c(this)},unsubscribe:function(){var e;c(e=this)||(e._observer=void 0,s(e))}}),u(f.prototype={},{get closed(){return c(this._subscription)},next:function(e){var t=this._subscription;if(!c(t)){var r=t._observer;try{var n=o(r,"next");n&&n.call(r,e)}catch(e){i(e)}}},error:function(e){var t=this._subscription;if(c(t))i(e);else{var r=t._observer;t._observer=void 0;try{var n=o(r,"error");if(!n)throw e;n.call(r,e)}catch(e){i(e)}s(t)}},complete:function(){var e=this._subscription;if(!c(e)){var t=e._observer;e._observer=void 0;try{var r=o(t,"complete");r&&r.call(t)}catch(e){i(e)}s(e)}}}),u(d.prototype,{subscribe:function(e){for(var t=[],r=1;r<arguments.length;++r)t.push(arguments[r]);return"function"==typeof e?e={next:e,error:t[0],complete:t[1]}:"object"==typeof e&&null!==e||(e={}),new l(e,this._subscriber)},forEach:function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return Promise.reject(new TypeError(e+" is not a function"));t.subscribe({_subscription:null,start:function(e){if(Object(e)!==e)throw new TypeError(e+" is not an object");this._subscription=e},next:function(t){var r=this._subscription;if(!r.closed)try{e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:r})})},map:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=a(this);return new r(function(r){return t.subscribe({next:function(t){if(!r.closed){try{t=e(t)}catch(e){return r.error(e)}r.next(t)}},error:function(e){r.error(e)},complete:function(){r.complete()}})})},filter:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=a(this);return new r(function(r){return t.subscribe({next:function(t){if(!r.closed){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)}},error:function(e){r.error(e)},complete:function(){r.complete()}})})},reduce:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=a(this),n=arguments.length>1,i=!1,o=arguments[1],u=o;return new r(function(r){return t.subscribe({next:function(t){if(!r.closed){var o=!i;if(i=!0,!o||n)try{u=e(u,t)}catch(e){return r.error(e)}else u=t}},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(u),r.complete()}})})}}),Object.defineProperty(d.prototype,n("observable"),{value:function(){return this},writable:!0,configurable:!0}),u(d,{from:function(e){var t="function"==typeof this?this:d;if(null==e)throw new TypeError(e+" is not an object");var i=o(e,n("observable"));if(i){var a=i.call(e);if(Object(a)!==a)throw new TypeError(a+" is not an object");return a.constructor===t?a:new t(function(e){return a.subscribe(e)})}if(r("iterator")&&(i=o(e,n("iterator"))))return new t(function(t){for(var r,n=i.call(e)[Symbol.iterator]();!(r=n.next()).done;){var o=r.value;if(t.next(o),t.closed)return}t.complete()});if(Array.isArray(e))return new t(function(t){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()});throw new TypeError(e+" is not observable")},of:function(){for(var e=[],t=0;t<arguments.length;++t)e.push(arguments[t]);var r="function"==typeof this?this:d;return new r(function(t){for(var r=0;r<e.length;++r)if(t.next(e[r]),t.closed)return;t.complete()})}}),Object.defineProperty(d,n("species"),{get:function(){return this},configurable:!0}),Object.defineProperty(d,"extensions",{value:{observableSymbol:n("observable"),setHostReportError:function(e){i=e}}}),e.Observable=d}(t)}).call(this,r(18)(e))},function(e,t,r){e.exports=r(19).Observable},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,c=[],l=!1,f=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=u(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||l||u(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";r.r(t),function(e){var t=r(4),n=r.n(t);e.ApolloClient=n.a,e.gql=t.gql}.call(this,r(7))}]); 24.03.2018
client_connection 8.x-1.x-dev ::
src/ClientConnectionManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The class resolver. * * @var \Drupal\Core\DependencyInjection\ClassResolverInterface */
$this->setCacheBackend($cache_backend, 'client_connection_plugins');
$this->cacheFactory = $cache_factory;
$this->classResolver = $class_resolver;
$this->entityTypeManager = $entity_type_manager;
$this->serviceIds = $service_ids;
}
/**
// Load from cache.
$cache_id = $this->getInstanceCacheKey($plugin_id, $contexts, $channel_id);
if ($use_cache && $cache = $this->cacheFactory->get($cache_id)) {
return $cache->data['id'];
}
// Resolve ID.
$client_id = NULL;
foreach ($this->serviceIds as $service_id) {
$this->cacheFactory->set($cache_id, ['id' => $client_id], $cache_max_age, $cache_tags);
return $client_id;
}
/**
* Resolves the connection plugin. 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
src/Entity/InventoryItem.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The loaded Inventory Provider. * * @var \Drupal\commerce_inventory\Plugin\Commerce\InventoryProvider\InventoryProviderInterface */
* The Commerce Inventory cache backend.
*/
protected function getCacheFactory() {
if (is_null($this->cacheFactory)) {
$this->cacheFactory = \Drupal::service('cache.commerce_inventory');
}
return $this->cacheFactory;
}
/**
* Gets this entity's Inventory Provider instance.
*
* @return \Drupal\commerce_inventory\Plugin\Commerce\InventoryProvider\InventoryProviderInterface
// Get validation from cache if applicable.
if ($validate == FALSE && !is_null($cid) && $cache = $this->getCacheFactory()->get($cid)) {
return $cache->data;
}
// Catch if there is an issue connecting to the provider.
try {
$valid = $this->getProvider()->validateItemConfiguration($this);
'validation:commerce_inventory_item_list',
]);
$this->getCacheFactory()->set($cid, $valid, Cache::PERMANENT, $tags);
}
return $valid;
}
/**
public function __sleep() {
// Disable plugin on sleep so it isn't serialized.
$this->cacheFactory = NULL;
$this->inventoryProvider = NULL;
$this->quantityAvailable = NULL;
$this->quantityOnHand = NULL;
return parent::__sleep();
} 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
src/QuantityOnHandManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The entity type manager;. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, EntityTypeManagerInterface $entity_type_manager) {
$this->cacheFactory = $cache_factory;
$this->entityTypeManager = $entity_type_manager;
}
/**
* The Inventory Adjustment storage.
*
// Load on-hand quantity if valid.
if ($cache = $this->cacheFactory->get($cid)) {
$cache_data = $cache->data;
}
else {
// Calculate and set on-hand quantity.
$quantity = $this->getAdjustmentStorage()->calculateQuantity($inventory_item_id);
$cache_data['quantity'] = $quantity;
$cache_data['quantity'] = $quantity;
$cache_tags = InventoryHelper::generateQuantityCacheTags($inventory_item_id);
$this->cacheFactory->set($cid, $cache_data, Cache::PERMANENT, Cache::mergeTags($cache_tags, [$cid]));
}
// Return quantity.
return floatval($cache_data['quantity']);
}
// Invalidate all quantity cache for this item.
$cid = InventoryHelper::generateQuantityCacheId($inventory_item_id);
$this->cacheFactory->invalidate($cid);
}
} 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
src/QuantityAvailableManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The event dispatcher. * * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, EventDispatcherInterface $event_dispatcher, QuantityManagerInterface $quantity_on_hand) {
$this->cacheFactory = $cache_factory;
$this->eventDispatcher = $event_dispatcher;
$this->quantityOnHand = $quantity_on_hand;
}
/**
* Gets an Inventory Item's quantity available.
// Load on-hand quantity if valid.
if ($cache = $this->cacheFactory->get($cid)) {
$cache_data = $cache->data;
}
else {
// Get on-hand quantity to adjust.
$quantity_on_hand = $this->quantityOnHand->getQuantity($inventory_item_id);
// Set cache.
$this->cacheFactory->set($cid, $cache_data, Cache::PERMANENT, $cache_tags);
}
// Return quantity.
return floatval($cache_data['quantity']);
}
public function invalidateQuantity($inventory_item_id) {
$cid = InventoryHelper::generateQuantityCacheId($inventory_item_id, 'available');
$this->cacheFactory->invalidate($cid);
}
} 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
src/QuantityMinimumManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The class resolver. * * @var \Drupal\Core\DependencyInjection\ClassResolverInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, ClassResolverInterface $class_resolver, array $service_ids) {
$this->cacheFactory = $cache_factory;
$this->classResolver = $class_resolver;
$this->serviceIds = $service_ids;
}
/**
* Resolves the Inventory Item's minimum quantity.
// Load on-hand quantity if valid.
if ($cache = $this->cacheFactory->get($cid)) {
$cache_data = $cache->data;
}
else {
// Resolve quantity.
$cache_data['quantity'] = $this->resolveQuantity($inventory_item_id);
// Set cache.
$this->cacheFactory->set($cid, $cache_data, Cache::PERMANENT, $cache_tags);
}
// Return quantity.
return floatval($cache_data['quantity']);
}
public function invalidateQuantity($inventory_item_id) {
$cid = InventoryHelper::generateQuantityCacheId($inventory_item_id, 'minimum');
$this->cacheFactory->invalidate($cid);
}
} 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
modules/commerce_inventory_store/src/InventoryStoreManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The event dispatcher. * * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, EventDispatcherInterface $event_dispatcher) {
$this->cacheFactory = $cache_factory;
$this->eventDispatcher = $event_dispatcher;
}
/**
* Returns a list of Inventory Item and Inventory Location entity IDs.
*
// Return cached Inventory Item IDs.
if ($cache = $this->cacheFactory->get($cid)) {
return $cache->data;
}
// Resolve available items.
/** @var \Drupal\commerce_inventory_store\Event\StoreItemLookupEvent $event */
$event = $this->eventDispatcher->dispatch(InventoryStoreEvents::STORE_ITEM_LOOKUP, new StoreItemLookupEvent($purchasable_entity, $store));
// Set Inventory Item IDs to cache.
$this->cacheFactory->set($cid, $ids, Cache::PERMANENT, $tags);
return $ids;
}
/**
* Returns a list of Inventory Item IDs. 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
modules/commerce_inventory_order/src/Guard/OrderGuard.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The inventory Commerce Order manager. * * @var \Drupal\commerce_inventory_order\InventoryOrderManager */
*/
public function __construct(CacheBackendInterface $cache_factory, InventoryOrderManager $inventory_order_manager, InventoryStoreManager $inventory_store_manager) {
$this->cacheFactory = $cache_factory;
$this->inventoryOrderManager = $inventory_order_manager;
$this->inventoryStoreManager = $inventory_store_manager;
}
/**
* {@inheritdoc}
// Check if this is in cache.
if (FALSE && $cache = $this->cacheFactory->get($cid)) {
$data = $cache->data;
}
else {
// Allow by default.
$allowed = TRUE;
$disallowed_items = [];
$data['order_override'] = $entity->getData('inventory_guard_override', FALSE);
$data['items'] = $disallowed_items;
$this->cacheFactory->set($cid, $data, Cache::PERMANENT, $cache_tags);
}
// Alert user why the order can't be transitioned.
if ($data['allowed'] !== TRUE) {
$message_type = ($data['order_override']) ? 'warning' : 'error';
$message_replacements = [ 29.10.2018
commerce_inventory 8.x-1.0-alpha6 ::
modules/commerce_inventory_order/src/InventoryOrderManager.php
* @var \Drupal\Core\Cache\CacheBackendInterface */ protected $cacheFactory; /** * The entity type manager. * * @var \Drupal\Core\Entity\EntityTypeManagerInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, EntityTypeManagerInterface $entity_type_manager, InventoryAllocationManager $allocation_manager) {
$this->cacheFactory = $cache_factory;
$this->entityTypeManager = $entity_type_manager;
$this->inventoryAdjustmentStorage = $entity_type_manager->getStorage('commerce_inventory_adjustment');
$this->inventoryAllocation = $allocation_manager;
$this->inventoryItemStorage = $entity_type_manager->getStorage('commerce_inventory_item');
$this->orderItemStorage = $entity_type_manager->getStorage('commerce_order_item');
$this->orderTypeStorage = $entity_type_manager->getStorage('commerce_order_type');
// Return cached bundle transition information.
if ($cache = $this->cacheFactory->get($cid)) {
$data = $cache->data;
}
// Compile all workflow transitions for each Order Item bundle.
else {
/** @var \Drupal\state_machine\WorkflowManagerInterface $workflow_manager */
$workflow_manager = \Drupal::service('plugin.manager.workflow');
// Set cache.
$this->cacheFactory->set($cid, $data, Cache::PERMANENT, $cache_tags);
}
return $data;
}
/**
foreach (array_column($order_item->get('inventory_adjustment_holds')->getValue(), 'target_id') as $inventory_item_id) {
$cid = InventoryHelper::generateQuantityCacheId($inventory_item_id, 'available');
$this->cacheFactory->invalidate($cid);
}
}
// Clear adjustment placeholders and settings.
$order_item->set('inventory_adjustment_holds', []);
$order_item->set('inventory_adjustment_manual', FALSE);
$cids[] = InventoryHelper::generateQuantityCacheId($inventory_item_id, 'on_hand');
}
$this->cacheFactory->invalidateMultiple($cids);
}
// Clear adjustment-related settings.
$order_item->set('inventory_adjustment_holds', []);
$order_item->set('inventory_adjustment_manual', FALSE);
foreach (array_unique($ids_to_invalidate) as $inventory_item_id) {
$cid = InventoryHelper::generateQuantityCacheId($inventory_item_id, 'available');
$this->cacheFactory->invalidate($cid);
}
}
}
} 01.05.2018
core_extend 8.x-1.0-alpha3 ::
src/ConfigEntityConditionRepository.php
* @todo maybe remove this. Unsure how to cache, other than possible mapping. */ protected $cacheFactory; /** * The context handler. * * @var \Drupal\Core\Plugin\Context\ContextHandlerInterface */
*/
public function __construct(CacheBackendInterface $cache_factory, ContextHandlerInterface $context_handler, ContextRepositoryInterface $context_repository, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler, $entity_type_id = '') {
$this->cacheFactory = $cache_factory;
$this->contextHandler = $context_handler;
$this->contextRepository = $context_repository;
$this->entityTypeId = $entity_type_id;
$this->moduleHandler = $module_handler;
if (!empty($entity_type_id) && $entity_type_manager->hasHandler($entity_type_id, 'storage')) { 20.11.2018
degov 8.x-2.0 ::
modules/degov_common/src/DegovCacheBackendFactory.php
use Drupal\Core\Cache\CacheFactoryInterface; use Drupal\Core\Cache\CacheTagsChecksumInterface; use Drupal\Core\Cache\DatabaseBackend; use Drupal\Core\Database\Connection; use Drupal\Core\Site\Settings; /**
* @package Drupal\degov_common
*/
class DegovCacheBackendFactory implements CacheFactoryInterface {
/**
* The database connection.
*
* @var \Drupal\Core\Database\Connection
*/ 09.04.2018
evergreen 8.x-1.x-dev ::
src/EvergreenService.php
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Entity\Query\QueryFactory; use Drupal\Core\Cache\CacheFactory; use Drupal\Core\Entity\ContentEntityBase; use Drupal\evergreen\Entity\EvergreenConfig; use Drupal\evergreen\Entity\EvergreenConfigInterface; use Drupal\evergreen\Entity\EvergreenContent; use Drupal\evergreen\Entity\EvergreenContentInterface; use Drupal\evergreen\ExpiryParser;
06.09.2019
pattern_library 8.x-2.x-dev ::
src/Discovery/ComponentLibraryDiscovery.php
namespace Drupal\pattern_library\Discovery; use Drupal\Component\FileCache\FileCacheFactory; use Drupal\Component\Plugin\Discovery\DiscoveryInterface; use Drupal\Component\Plugin\Discovery\DiscoveryTrait; use Drupal\Core\Extension\ThemeHandlerInterface; use Drupal\Core\Serialization\Yaml; /**
$this->themeHandler = $theme_handler;
$this->themeName = $this->themeHandler->getDefault();
$this->fileCache = FileCacheFactory::get('component_library_discovery:' . $this->themeName);
}
/**
* {@inheritdoc}
*/
public function getDefinitions() { 13.09.2020
service_description 2.0.0 ::
src/Discovery/JsonDirectoryDiscovery.php
use Drupal\Component\Discovery\DiscoverableInterface; use Drupal\Component\FileCache\FileCacheFactory; use Drupal\Component\FileSystem\RegexDirectoryIterator; use Drupal\Component\Serialization\Json; /** * Provides discovery for JSON files within a given set of directories. */
13.09.2020
service_description 2.0.0 ::
src/Discovery/JsonDiscovery.php
use Drupal\Component\Discovery\DiscoverableInterface;
use Drupal\Component\FileCache\FileCacheFactory;
use Drupal\Component\Serialization\Json;
/**
* Provides discovery for JSON files within a given set of directories.
*/
class JsonDiscovery implements DiscoverableInterface {
$provider_by_files = array_flip($files);
$file_cache = FileCacheFactory::get(Json::getFileExtension() . '_discovery:' . $this->name);
// Try to load from the file cache first.
foreach ($file_cache->getMultiple($files) as $file => $data) {
$all[$provider_by_files[$file]] = $data;
unset($provider_by_files[$file]);
} 22.07.2020
supercache 2.0.x-dev ::
src/KeyValueStore/KeyValueChainedFactory.php
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\CacheFactoryInterface; use Drupal\Core\Database\Connection; use Drupal\Core\Database\Database; /** * Defines the key/value store factory for the database backend. */
* Cache backend. * * @var CacheFactoryInterface */ protected $factory; /** * Constructs this factory object. *
* The Connection object containing the key-value tables.
*/
function __construct(CacheFactoryInterface $factory, SerializationInterface $serializer, Connection $connection) {
$this->serializer = $serializer;
$this->connection = $connection;
$this->factory = $factory;
}
protected $backed_by_database; 22.07.2020
supercache 2.0.x-dev ::
src/KeyValueStore/ChainedStorage.php
use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\CacheFactoryInterface; use Drupal\supercache\Cache\DummyTagChecksum; /** * Defines a chained key value storage that uses * any cache backend on top of the database default
* Overrides Drupal\Core\KeyValueStore\StorageBase::__construct(). * * @param CacheFactoryInterface $factory * The cache backend factory. * @param string $collection * The name of the collection holding key and value pairs. * @param \Drupal\Component\Serialization\SerializationInterface $serializer * The serialization class to use. * @param \Drupal\Core\Database\Connection $connection
* The name of the SQL table to use, defaults to key_value.
*/
public function __construct(CacheFactoryInterface $factory, $collection, SerializationInterface $serializer, Connection $connection, $table = 'key_value') {
parent::__construct($collection, $serializer, $connection, $table);
// Make sure the collection name passed to the cache factory
// does not have any dots, or else if using database storage it will
// crash.
$sanitized_collection = preg_replace('/[^A-Za-z0-9_]+/', '_', $collection);
$this->cache = $factory->get($table . '_' . $sanitized_collection); 