Plugin Directory

Changeset 2479894


Ignore:
Timestamp:
02/23/2021 01:13:53 PM (5 years ago)
Author:
davidjayww
Message:

Fix headers sent error for widgets list in options page

Location:
warm-welcome/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • warm-welcome/trunk/dist/js/bundle.js

    r2473719 r2479894  
    1414PERFORMANCE OF THIS SOFTWARE.
    1515***************************************************************************** */
    16 var n=function(e,t){return(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])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=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}).apply(this,arguments)};function a(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&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function c(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&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=a.trys,(i=i.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,s])}}}function u(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}},function(e,t,r){"use strict";r.d(t,"K",(function(){return o})),r.d(t,"x",(function(){return a})),r.d(t,"w",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"o",(function(){return u})),r.d(t,"n",(function(){return f})),r.d(t,"q",(function(){return T})),r.d(t,"r",(function(){return x})),r.d(t,"m",(function(){return _})),r.d(t,"s",(function(){return I})),r.d(t,"p",(function(){return N})),r.d(t,"l",(function(){return D})),r.d(t,"D",(function(){return d})),r.d(t,"B",(function(){return v})),r.d(t,"y",(function(){return k})),r.d(t,"z",(function(){return j})),r.d(t,"L",(function(){return b})),r.d(t,"e",(function(){return O})),r.d(t,"J",(function(){return w})),r.d(t,"t",(function(){return g})),r.d(t,"u",(function(){return E})),r.d(t,"d",(function(){return L})),r.d(t,"g",(function(){return V})),r.d(t,"I",(function(){return M})),r.d(t,"H",(function(){return Q})),r.d(t,"c",(function(){return U.a})),r.d(t,"F",(function(){return K})),r.d(t,"G",(function(){return G})),r.d(t,"b",(function(){return Y})),r.d(t,"i",(function(){return X})),r.d(t,"E",(function(){return $})),r.d(t,"C",(function(){return Z})),r.d(t,"f",(function(){return ee})),r.d(t,"a",(function(){return re})),r.d(t,"A",(function(){return ne})),r.d(t,"v",(function(){return ie})),r.d(t,"h",(function(){return oe})),r.d(t,"j",(function(){return ae}));var n=r(13),i=r(2);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if("skip"===(r=e.name.value)||"include"===r){var r,n=e.arguments;e.name.value;Object(i.b)(n&&1===n.length,39);var o=n[0];Object(i.b)(o.name&&"if"===o.name.value,40);var a=o.value;Object(i.b)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),41),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t&&t[n.value.name.value],Object(i.b)(void 0!==o,38)):o=n.value.value,"skip"===r.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&a(["client"],e)&&a(["export"],e)}var c=r(0);function u(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(42);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,43),r=n[0].name.value),Object(c.a)(Object(c.a)({},e),{definitions:Object(c.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function l(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function f(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return Object(i.b)(r,44),r;default:return null}}var p=r(34),h=r.n(p);function d(e){return{__ref:String(e)}}function v(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function y(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 o={};r.fields.map((function(e){return y(o,e.name,e.value,n)})),e[t.value]=o}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 y(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 i.a(53);e[t.value]=null}}function b(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,o=n.value;return y(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return y(n,r,i,t)}))),g(e.name.value,n,r)}var m=["connection","include","skip","client","rest","export"];function g(e,t,r){if(t&&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={};return n.forEach((function(e){i[e]=t[e]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var a=h()(t);o+="("+a+")"}return r&&Object.keys(r).forEach((function(e){-1===m.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)})),o}function O(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return y(r,n,i,t)})),r}return null}function w(e){return e.alias?e.alias.value:e.name.value}function E(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(k(o)){if("__typename"===o.name.value)return e[w(o)]}else{var a=E(e,f(o,r).selectionSet,r);if("string"==typeof a)return a}}}function k(e){return"Field"===e.kind}function j(e){return"InlineFragment"===e.kind}function S(e){Object(i.b)(e&&"Document"===e.kind,45);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(46);return e}));return Object(i.b)(t.length<=1,47),e}function T(e){return S(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function x(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function _(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function I(e){var t=T(e);return Object(i.b)(t&&"query"===t.operation,48),t}function N(e){var t;S(e);for(var r=0,n=e.definitions;r<n.length;r++){var o=n[r];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(52)}function D(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&y(t,e.variable.name,e.defaultValue)})),t}function A(e,t,r){var n=0;return e.forEach((function(r,i){t.call(this,r,i,e)&&(e[n++]=r)}),r),e.length=n,e}var R={kind:"Field",name:{kind:"Name",value:"__typename"}};function F(e){return function e(t,r){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)}))}(T(e)||function(e){Object(i.b)("Document"===e.kind,49),Object(i.b)(e.definitions.length<=1,50);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,51),t}(e),l(_(e)))?null:e}function C(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function P(e,t){var r=Object.create(null),i=[],o=Object.create(null),a=[],s=F(Object(n.b)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(C(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var r=[];return t.selections.forEach((function(t){(k(t)||j(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return r.push(e)})):"FragmentSpread"===t.kind&&r.push(t)})),r}(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(C(e)(t))return null}}}));return s&&A(i,(function(e){return!!e.name&&!r[e.name]})).length&&(s=function(e,t){var r=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return F(Object(n.b)(t,{OperationDefinition:{enter:function(t){return Object(c.a)(Object(c.a)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var n=0;if(t.arguments&&t.arguments.forEach((function(e){r(e)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(i,s)),s&&A(a,(function(e){return!!e.name&&!o[e.name]})).length&&(s=function(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return F(Object(n.b)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(a,s)),s}function L(e){return Object(n.b)(S(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n)if(!n.some((function(e){return k(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(k(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(c.a)(Object(c.a)({},e),{selections:Object(c.f)(n,[R])})}}}}})}L.added=function(e){return e===R};var q={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function M(e){return P([q],S(e))}function V(e){return"query"===N(e).operation?e:Object(n.b)(e,{OperationDefinition:{enter:function(e){return Object(c.a)(Object(c.a)({},e),{operation:"query"})}}})}function Q(e){S(e);var t=P([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(n.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return k(e)&&"__typename"===e.name.value})))return null}}})),t}var B=r(22),U=r.n(B);r(54);U.a.prototype["@@observable"]=function(){return this};var W=Object.prototype.hasOwnProperty;function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return G(e)}function G(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new Y,i=1;i<r;++i)t=n.merge(t,e[i]);return t}function z(e){return null!==e&&"object"==typeof e}var J=function(e,t,r){return this.merge(e[r],t[r])},Y=function(){function e(e){void 0===e&&(e=J),this.reconciler=e,this.isObject=z,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return z(t)&&z(e)?(Object.keys(t).forEach((function(i){if(W.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,Object(c.f)([e,t,i],n));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return z(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Object(c.a)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),H=Object.prototype.toString;function X(e){return function e(t,r){switch(H.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var n=t.slice(0);return r.set(t,n),n.forEach((function(t,i){n[i]=e(t,r)})),n;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach((function(n){i[n]=e(t[n],r)})),i;default:return t}}(e)}r(57);function $(e){return e}function Z(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function ee(e,t,r){return new U.a((function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1;function u(e,t){return e?function(t){++s,new Promise((function(r){return r(e(t))})).then((function(e){--s,i&&i.call(n,e),c&&l.complete()}),(function(e){--s,o&&o.call(n,e)}))}:function(e){return t&&t.call(n,e)}}var l={next:u(t,i),error:u(r,o),complete:function(){c=!0,s||a&&a.call(n)}},f=e.subscribe(l);return function(){return f.unsubscribe()}}))}function te(e){return e&&"function"==typeof e.then}var re=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],Z(r.observers,"next",e))},error:function(e){null!==r.sub&&(r.sub&&r.sub.unsubscribe(),r.sub=null,r.latest=["error",e],r.reject(e),Z(r.observers,"error",e))},complete:function(){if(null!==r.sub){var e=r.sources.shift();e?te(e)?e.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=e.subscribe(r.handlers):(r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),Z(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),te(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return Object(c.c)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.addObserver=function(e){if(!this.observers.has(e)){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}this.observers.add(e)}},t.prototype.removeObserver=function(e,t){if(this.observers.delete(e)&&this.observers.size<1){if(t)return;this.sub&&(this.sub.unsubscribe(),this.reject(new Error("Observable cancelled prematurely"))),this.sub=null}},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n};this.addObserver(i)},t}(U.a);function ne(e){return Array.isArray(e)&&e.length>0}function ie(e){return e.errors&&e.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(re,Symbol.species,{value:U.a});var oe="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(0),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(r){void 0===r&&(r="Invariant Violation");var n=e.call(this,"number"==typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",o(n,t.prototype),n}return Object(n.c)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(s||(s={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}}).call(this,r(37))},function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"f",(function(){return s})),r.d(t,"g",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return l}));var n=r(1),i=Object.prototype.hasOwnProperty;var o=/^[_a-z][_0-9a-z]*/i;function a(e){var t=e.match(o);return t?t[0]:e}function s(e,t,r){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every((function(t){return s(e,t,r)})):e.selections.every((function(e){if(Object(n.y)(e)&&Object(n.K)(e,r)){var o=Object(n.J)(e);return i.call(t,o)&&(!e.selectionSet||s(e.selectionSet,t[o],r))}return!0})))}function c(e){return null!==e&&"object"==typeof e&&!Object(n.B)(e)&&!Array.isArray(e)}function u(e){var t=e&&e.__field;return t&&Object(n.y)(t)}function l(){return new n.b(f)}var f=function(e,t,r){var n=e[r],i=t[r];return u(n)?(n.__value=this.merge(n.__value,u(i)?i.__value:i),n):u(i)?(i.__value=this.merge(n,i.__value),i):this.merge(n,i)}},function(e,t,r){"use strict";var n;function i(e){return!!e&&e<7}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),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={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));var n=r(24);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,n.a&&(e.prototype[n.a]=t)}var o=function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(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}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},function(e,t,r){"use strict";r(39),r(40),r(41),r(42);var n=r(43);r.d(t,"execute",(function(){return n.a}));var i=r(11);r.d(t,"ApolloLink",(function(){return i.a}));var o=r(44);r.o(o,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return o.createHttpLink}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return S})),r.d(t,"b",(function(){return T})),r.d(t,"c",(function(){return N}));var n=r(16);function i(){}var o=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=i),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),a=new n.a;function s(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var c=[];function u(e,t){if(!e)throw new Error(t||"assertion failure")}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var f=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!h(this))return this.value[0]},e.prototype.recompute=function(){return u(!this.recomputing,"already recomputing"),function(e){var t=a.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),h(e)?y(t,e):b(t,e)}(this),h(this)?function(e){g(e),a.withValue(e,p,[e]),function(e){if("function"==typeof e.subscribe)try{s(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,h(e))return;v(e)}(e);return l(e.value)}(this):l(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,d(this),g(this),s(this))},e.prototype.dispose=function(){var e=this;g(this),s(this),this.parents.forEach((function(t){t.setDirty(),O(t,e)}))},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=c.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),c.push(this.deps),this.deps=null)},e.count=0,e}();function p(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function h(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function d(e){e.parents.forEach((function(t){return y(t,e)}))}function v(e){e.parents.forEach((function(t){return b(t,e)}))}function y(e,t){if(u(e.childValues.has(t)),u(h(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=c.pop()||new Set;e.dirtyChildren.add(t),d(e)}function b(e,t){u(e.childValues.has(t)),u(!h(t));var r,n,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(r=o,n=t.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),m(e,t),h(e)||v(e)}function m(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(c.length<100&&c.push(r),e.dirtyChildren=null))}function g(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){O(e,r)})),e.forgetDeps(),u(null===e.dirtyChildren)}function O(e,t){t.parents.delete(e),e.childValues.delete(t),m(e,t)}var w=function(){return Object.create(null)},E=Array.prototype,k=E.forEach,j=E.slice,S=function(){function e(e,t){void 0===t&&(t=w),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return k.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(j.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();function T(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=a.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(s(i),i.unsubscribe=r(e))}}return n.dirty=function(e){var r=t.get(e);r&&(r.forEach((function(e){return e.setDirty()})),t.delete(e),s(r))},n}var x=new S("function"==typeof WeakMap);function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x.lookupArray(e)}var I=new Set;function N(e,t){void 0===t&&(t=Object.create(null));var r=new o(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},i=t.makeCacheKey||_;function s(){var o=i.apply(null,n.apply(null,arguments));if(void 0===o)return e.apply(null,arguments);var s=Array.prototype.slice.call(arguments),c=r.get(o);c?c.args=s:(c=new f(e,s),r.set(o,c),c.subscribe=t.subscribe);var u=c.recompute();return r.set(o,c),I.add(r),a.hasValue()||(I.forEach((function(e){return e.clean()})),I.clear()),u}function c(){var e=i.apply(null,arguments);if(void 0!==e)return r.get(e)}return s.dirty=function(){var e=c.apply(null,arguments);e&&e.setDirty()},s.peek=function(){var e=c.apply(null,arguments);if(e)return e.peek()},s.forget=function(){var e=i.apply(null,arguments);return void 0!==e&&r.delete(e)},s}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function c(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t),s=i.call(r);if(n!==s)return!1;switch(n){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":if(l(t,r))return!0;var c=Object.keys(t),f=Object.keys(r),p=c.length;if(p!==f.length)return!1;for(var h=0;h<p;++h)if(!o.call(r,c[h]))return!1;for(h=0;h<p;++h){var d=c[h];if(!e(t[d],r[d]))return!1}return!0;case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==""+r;case"[object Map]":case"[object Set]":if(t.size!==r.size)return!1;if(l(t,r))return!0;for(var v=t.entries(),y="[object Map]"===n;;){var b=v.next();if(b.done)break;var m=b.value,g=m[0],O=m[1];if(!r.has(g))return!1;if(y&&!e(O,r.get(g)))return!1}return!0;case"[object Function]":var w=a.call(t);return w===a.call(r)&&(k=u,!((j=(E=w).length-k.length)>=0&&E.indexOf(k,j)===j))}var E,k,j;return!1}(e,t)}finally{s.clear()}}var u="{ [native code] }";function l(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"a",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(1);function i(e){return new n.c((function(t){t.error(e)}))}var o=r(2);var a=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function s(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 o.a(26)}return e}var c=r(0);function u(e,t){var r=Object(c.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(c.a)(Object(c.a)({},r),e(r)):Object(c.a)(Object(c.a)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(c.a)({},r)}}),t}function l(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(n.r)(t.query)||void 0:""),t}},function(e,t,r){var n=r(59).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var s=!0;var c=!1;function u(e){var t=i(e);if(o[t])return o[t];var r=n(e,{experimentalFragmentVariables:c});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,s=Object.keys(t);for(i in s)s.hasOwnProperty(i)&&(o=t[s[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[s[i]]=e(o,!0)));return t}(r=function(e){for(var t,r={},n=[],o=0;o<e.definitions.length;o++){var c=e.definitions[o];if("FragmentDefinition"===c.kind){var u=c.name.value,l=i((t=c.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(u)&&!a[u][l]?(s&&console.warn("Warning: fragment with name "+u+" 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[u][l]=!0):a.hasOwnProperty(u)||(a[u]={},a[u][l]=!0),r[l]||(r[l]=!0,n.push(c))}else n.push(c)}return e.definitions=n,e}(r),!1),o[t]=r,r}function l(){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 u(r)}l.default=l,l.resetCaches=function(){o={},a={}},l.disableFragmentWarnings=function(){s=!1},l.enableExperimentalFragmentVariables=function(){c=!0},l.disableExperimentalFragmentVariables=function(){c=!1},e.exports=l},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(2),o=r(1),a=r(9);function s(e,t){return t?t(e):o.c.of()}function c(e){return"function"==typeof e?new l(e):e}function u(e){return e.request.length<=1}!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}Object(n.c)(t,e)}(Error);var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i=c(r),a=c(n||new e(s));return u(i)&&u(a)?new e((function(e){return t(e)?i.request(e)||o.c.of():a.request(e)||o.c.of()})):new e((function(e,r){return t(e)?i.request(e,r)||o.c.of():a.request(e,r)||o.c.of()}))},e.execute=function(e,t){return e.request(Object(a.a)(t.context,Object(a.d)(Object(a.e)(t))))||o.c.of()},e.concat=function(t,r){var n=c(t);if(u(n))return n;var i=c(r);return u(i)?new e((function(e){return n.request(e,(function(e){return i.request(e)||o.c.of()}))||o.c.of()})):new e((function(e,t){return n.request(e,(function(e){return i.request(e,t)||o.c.of()}))||o.c.of()}))},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new i.a(21)},e.prototype.onError=function(e){throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(0),i=r(1);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(r){var n,o,a=r.graphQLErrors,s=r.networkError,c=r.errorMessage,u=r.extraInfo,l=e.call(this,c)||this;return l.graphQLErrors=a||[],l.networkError=s||null,l.message=c||(n=l,o="",Object(i.A)(n.graphQLErrors)&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";o+=t+"\n"})),n.networkError&&(o+=n.networkError.message+"\n"),o=o.replace(/\n$/,"")),l.extraInfo=u,l.__proto__=t.prototype,l}return Object(n.c)(t,e),t}(Error)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(33),i=r(5),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],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:["description","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","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],h=void 0,d=void 0,v=void 0,y=[],b=[],m=e;do{var g=++f===l.length,O=g&&0!==p.length;if(g){if(d=0===b.length?void 0:y[y.length-1],h=v,v=b.pop(),O){if(u)h=h.slice();else{for(var w={},E=0,k=Object.keys(h);E<k.length;E++){var j=k[E];w[j]=h[j]}h=w}for(var S=0,T=0;T<p.length;T++){var x=p[T][0],_=p[T][1];u&&(x-=S),u&&null===_?(h.splice(x,1),S++):h[x]=_}}f=s.index,l=s.keys,p=s.edits,u=s.inArray,s=s.prev}else{if(d=v?u?f:l[f]:void 0,null==(h=v?v[d]:m))continue;v&&y.push(d)}var I,N=void 0;if(!Array.isArray(h)){if(!Object(i.c)(h))throw new Error("Invalid AST Node: ".concat(Object(n.a)(h),"."));var D=c(t,h.kind,g);if(D){if((N=D.call(t,h,d,v,y,b))===a)break;if(!1===N){if(!g){y.pop();continue}}else if(void 0!==N&&(p.push([d,N]),!g)){if(!Object(i.c)(N)){y.pop();continue}h=N}}}if(void 0===N&&O&&p.push([d,h]),g)y.pop();else s={inArray:u,index:f,keys:l,edits:p,prev:s},l=(u=Array.isArray(h))?h:null!==(I=r[h.kind])&&void 0!==I?I:[],f=-1,p=[],v&&b.push(v),v=h}while(void 0!==s);return 0!==p.length&&(m=p[p.length-1][1]),m}function c(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(e,t,r){"use strict";var n=r(48);r.d(t,"ApolloClient",(function(){return n.a}));r(32),r(4);var i=r(46);r.o(i,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return i.createHttpLink}));r(12);var o=r(15);r.d(t,"InMemoryCache",(function(){return o.InMemoryCache}));var a=r(27);r.o(a,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return a.createHttpLink}));var s=r(6);r.o(s,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return s.createHttpLink}));var c=r(31);r.d(t,"createHttpLink",(function(){return c.b}));r(9),r(1);var u=r(10),l=r.n(u);r.d(t,"gql",(function(){return l.a}));l.a.resetCaches,l.a.disableFragmentWarnings,l.a.enableExperimentalFragmentVariables,l.a.disableExperimentalFragmentVariables},function(e,t,r){"use strict";r(28),r(45),r(29),r(1);var n=r(49);r.d(t,"InMemoryCache",(function(){return n.a}));var i=r(18);r.d(t,"cacheSlot",(function(){return i.a}));r(23),r(27)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=null,i={},o=1,a=Array,s=a["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=n;n={parent:s,slots:a};try{return t.apply(i,r)}finally{n=s}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},function(e,t,r){"use strict";(function(e){var n=r(20);t.a={add:function(t){n.a.remove(),e(".carbon-theme-options h2").append('<span class="ww-loading"></span>')},remove:function(){return e(".ww-loading").remove()}}}).call(this,r(26))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(16),i=r(7),o=Object(i.b)(),a=new n.a;function s(e,t){var r=[];e.forEach((function(e){return r.push(e)})),e.clear(),r.forEach(t)}function c(e){var t=new Set,r=new Set,n=function(i){if(arguments.length>0)e!==i&&(e=i,o.dirty(n),t.forEach(u),s(r,(function(t){return t(e)})));else{var c=a.getValue();c&&t.add(c),o(n)}return e};return n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}},n}function u(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,r){"use strict";var n=r(21);function i(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}var a=window.ww_token;t.a={isUserLoggedIn:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clientProvider.getDefaultClient()){t.next=2;break}return t.abrupt("return",!1);case 2:return t.next=4,e.getUser();case 4:return t.abrupt("return",!!t.sent);case 5:case"end":return t.stop()}}),t)})))()},getUser:function(){return o(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,clientProvider.getDefaultClient().query({query:UserQueries.GetUser});case 3:return t=e.sent,r=t.data.user,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},reset:function(){return o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.client.defaults.headers.Authorization="",window.localStorage.removeItem("accessToken"),e.next=4,clientProvider.getDefaultClient().cache.reset();case 4:window.FileCache&&window.FileCache.clearCache(),window.ServerDataInitializer.resetServerDataCheckers(),StoreStateManager.getInstance().resetState();case 7:case"end":return e.stop()}}),e)})))()},setToken:function(e,t){return o(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e,r.next=3,n.a.PostCredentials({token:a,user:t});case 3:case"end":return r.stop()}}),r)})))()},getToken:function(){return a},hasToken:function(){return!!this.getToken()}}},function(e,t,r){"use strict";(function(e){var n=r(17);t.a={add:function(t){n.a.remove(),e('<p class="ww-error-message">'.concat(t,"</p>")).insertAfter(".carbon-theme-options h2")},remove:function(){return e(".ww-error-message").remove()}}}).call(this,r(26))},function(e,t,r){"use strict";(function(e){r(19);var n=r(20),i=window.ww_ajax_nonce,o=function(e){return e.success||n.a.add("Request failed"),e};t.a={PostCredentials:function(t){var r=t.token,n=t.user;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_token",token:r,user:n,wp_nonce:i},error:function(){console.log("asdfasdf")}}).then(o)},PostWidgets:function(t){var r=t.widgets,n=t.globalWidgetId;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_widgets",widgets:r,globalWidgetId:n,wp_nonce:i}}).then(o)},PostBubbleWidget:function(t){var r=t.id;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_bubble_widget",id:r,wp_nonce:i}}).then(o)}}}).call(this,r(26))},function(e,t,r){e.exports=r(53).Observable},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return v}));var n=r(0),i=r(7),o=r(2),a=r(1),s=r(3),c=r(18);function u(e){return void 0!==e.args?e.args:e.field?Object(a.e)(e.field,e.variables):null}var l=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},f=function(){},p=function(e,t){return t.fieldName},h=function(e,t,r){return(0,r.mergeObjects)(e,t)},d=function(e,t){return t},v=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(n.a)({dataIdFromObject:l},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?Object(a.u)(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:n,selectionSet:t,fragmentMap:r},s=this.getTypePolicy(n,!1),c=s&&s.keyFn||this.config.dataIdFromObject;c;){var u=c(e,o);if(!Array.isArray(u)){i=u;break}c=m(u)}return i=i&&String(i),o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=t.getTypePolicy(r,!0),i=e[r],o=i.keyFields,a=i.fields;i.queryType&&t.setRootTypename("Query",r),i.mutationType&&t.setRootTypename("Mutation",r),i.subscriptionType&&t.setRootTypename("Subscription",r),n.keyFn=!1===o?f:Array.isArray(o)?m(o):"function"==typeof o?o:n.keyFn,a&&Object.keys(a).forEach((function(e){var n=t.getFieldPolicy(r,e,!0),i=a[e];if("function"==typeof i)n.read=i;else{var o=i.keyArgs,s=i.read,c=i.merge;n.keyFn=!1===o?p:Array.isArray(o)?b(o):"function"==typeof o?o:n.keyFn,"function"==typeof s&&(n.read=s),n.merge="function"==typeof c?c:!0===c?h:!1===c?d:n.merge}n.read&&n.merge&&(n.keyFn=n.keyFn||p)}))}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Object(o.b)(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(s.a);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e,t){if(e)return this.typePolicies[e]||t&&(this.typePolicies[e]=Object.create(null))},e.prototype.getFieldPolicy=function(e,t,r){var n=this.getTypePolicy(e,r);if(n){var i=n.fields||r&&(n.fields=Object.create(null));if(i)return i[t]||r&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),c=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=0;f<c.length;++f){var p=c[f];if(p.has(o))return a.has(o)||a.add(o),!0;p.forEach(u),l&&f===c.length-1&&Object(s.f)(e.selectionSet,r,n)&&(l=!1,!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)})))}return!1},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var c={typename:r,fieldName:n,field:e.field||null,variables:e.variables},l=u(e);o;){var f=o(l,c);if(!Array.isArray(f)){t=f||n;break}o=b(f)}return void 0===t&&(t=e.field?Object(a.L)(e.field,e.variables):Object(a.t)(n,u(e))),n===Object(s.b)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Object(s.b)(i),u=t.store.getFieldValue(r,i),l=this.getFieldPolicy(e.typename,o,!1),f=l&&l.read;if(f){var p=y(this,r,e,t,t.store.getStorage(Object(a.B)(r)?r.__ref:r,i));return c.a.withValue(this.cache,f,[u,p])}return u}},e.prototype.hasMergeFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.merge)},e.prototype.applyMerges=function(e,t,r,i){var o,c=this;if(Object(s.d)(t)){var u=t.__field,l=u.name.value;t=(0,this.getFieldPolicy(t.__typename,l,!1).merge)(e,t.__value,y(this,void 0,{typename:t.__typename,fieldName:l,field:u,variables:r.variables},r,i?(o=r.store).getStorage.apply(o,i):Object.create(null)))}if(Array.isArray(t))return t.map((function(e){return c.applyMerges(void 0,e,r)}));if(Object(s.g)(t)){var f,p=e,h=t,d=Object(a.B)(p)?p.__ref:"object"==typeof p&&p;if(Object.keys(h).forEach((function(e){var t=h[e],n=c.applyMerges(r.store.getFieldValue(p,e),t,r,d?[d,e]:void 0);n!==t&&((f=f||Object.create(null))[e]=n)})),f)return Object(n.a)(Object(n.a)({},h),f)}return t},e}();function y(e,t,r,i,c){var l=e.getStoreFieldName(r),f=Object(s.b)(l),p=r.variables||i.variables,h=i.store,d=h.getFieldValue,v=h.toReference,y=h.canRead;return{args:u(r),field:r.field||null,fieldName:f,storeFieldName:l,variables:p,isReference:a.B,toReference:v,storage:c,cache:e.cache,canRead:y,readField:function(r,o){var a="string"==typeof r?{fieldName:r,from:o}:Object(n.a)({},r);return void 0===a.from&&(a.from=t),void 0===a.variables&&(a.variables=p),e.readField(a,i)},mergeObjects:function(t,r){if(Array.isArray(t)||Array.isArray(r))throw new o.a(2);if(t&&"object"==typeof t&&r&&"object"==typeof r){var a=d(t,"__typename"),c=d(r,"__typename"),u=a&&c&&a!==c,l=e.applyMerges(u?void 0:t,r,i);return!u&&Object(s.g)(t)&&Object(s.g)(l)?Object(n.a)(Object(n.a)({},t),l):l}return r}}}function b(e){return function(t,r){return t?r.fieldName+":"+JSON.stringify(g(t,e)):r.fieldName}}function m(e){var t=new i.a(a.h);return function(r,n){var i;if(n.selectionSet&&n.fragmentMap){var o=t.lookupArray([n.selectionSet,n.fragmentMap]);i=o.aliasMap||(o.aliasMap=function e(t,r){var n=Object.create(null),i=new Set([t]);return i.forEach((function(t){t.selections.forEach((function(t){if(Object(a.y)(t)){if(t.alias){var o=t.alias.value,s=t.name.value;if(s!==o)(n.aliases||(n.aliases=Object.create(null)))[s]=o}if(t.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,r)}else{var c=Object(a.n)(t,r);c&&i.add(c.selectionSet)}}))})),n}(n.selectionSet,n.fragmentMap))}var s=n.keyObject=g(r,e,i);return n.typename+":"+JSON.stringify(s)}}function g(e,t,r){var n,i=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof n){var a=r&&r.subsets,c=a&&a[n];i[n]=g(e[n],t,c)}}else{var u=r&&r.aliases,l=u&&u[t]||t;Object(o.b)(s.c.call(e,l),3),i[n=t]=e[l]}})),i}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=n},function(e,t,r){"use strict";var n=r(14),i=r(0),o=r(6),a=r(1);function s(e){return new o.ApolloLink((function(t,r){return new a.c((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=s(t),r}Object(i.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(o.ApolloLink);var c=r(22),u=r.n(c).a,l=r(2),f=r(30);!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}Object(i.c)(t,e)}(Error);function p(e){return e.request.length<=1}function h(e,t){var r=Object(i.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(i.a)({},r,e(r)):Object(i.a)({},r,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(i.a)({},r)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}(t)}}),t}function d(e,t){return t?t(e):u.of()}function v(e){return"function"==typeof e?new g(e):e}function y(){return new g((function(){return u.of()}))}function b(e){return 0===e.length?y():e.map(v).reduce((function(e,t){return e.concat(t)}))}function m(e,t,r){var n=v(t),i=v(r||new g(d));return p(n)&&p(i)?new g((function(t){return e(t)?n.request(t)||u.of():i.request(t)||u.of()})):new g((function(t,r){return e(t)?n.request(t,r)||u.of():i.request(t,r)||u.of()}))}var g=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,r,n){return this.concat(m(t,r,n||new e(d)))},e.prototype.concat=function(e){return function(e,t){var r=v(e);if(p(r))return r;var n=v(t);return p(n)?new g((function(e){return r.request(e,(function(e){return n.request(e)||u.of()}))||u.of()})):new g((function(e,t){return r.request(e,(function(e){return n.request(e,t)||u.of()}))||u.of()}))}(this,e)},e.prototype.request=function(e,t){throw new l.a(1)},e.empty=y,e.from=b,e.split=m,e.execute=O,e}();function O(e,t){return e.request(h(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(f.a)(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 l.a(2)}return e}(t))))||u.of()}var w=r(19),E=r(20);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T,x=new n.createHttpLink({uri:"".concat(ww_api_url,"/graphql")}),_=(T=function(e,t){var r=t.headers;return w.a.hasToken()?{headers:j(j({},r),{},{Authorization:"Bearer ".concat(w.a.getToken())})}:r},new o.ApolloLink((function(e,t){var r=Object(i.e)(e,[]);return new a.c((function(n){var i;return Promise.resolve(r).then((function(t){return T(t,e.getContext())})).then(e.setContext).then((function(){i=t(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()}}))}))),I=s((function(e){var t=e.graphQLErrors;t.length&&E.a.add(t[0].message)})),N=new n.ApolloClient({link:g.from([I,_,x]),cache:new n.InMemoryCache});t.a=N},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(7),i=r(1),o=function(){function e(){this.getFragmentDoc=Object(n.c)(i.o)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));r(13),r(2),r(0),r(34),r(47);function n(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}"function"==typeof WeakMap&&"object"==typeof navigator&&navigator.product,Object.prototype.toString;Object.prototype.hasOwnProperty;Object.create({})}).call(this,r(37))},function(e,t,r){"use strict";r.d(t,"b",(function(){return E})),r.d(t,"a",(function(){return k}));var n=r(9),i=Object.prototype.hasOwnProperty;var o=r(2),a=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new o.a(23);throw n.parseError=e,n}return r},s=r(0),c=r(13),u=r(35);function l(e){return Object(c.b)(e,{leave:f})}var f={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return h(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=v("(",h(e.variableDefinitions,", "),")"),i=h(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?h([t,h([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+v(" = ",n)+v(" ",h(i," "))},SelectionSet:function(e){return d(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet,a=v("",t,": ")+r,s=a+v("(",h(n,", "),")");return s.length>80&&(s=a+v("(\n",y(h(n,"\n")),"\n)")),h([s,h(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+v(" ",h(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return h(["...",v("on ",t),h(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(v("(",h(n,", "),")")," ")+"on ".concat(r," ").concat(v("",h(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?Object(u.b)(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"["+h(e.values,", ")+"]"},ObjectValue:function(e){return"{"+h(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+v("(",h(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:p((function(e){var t=e.directives,r=e.operationTypes;return h(["schema",h(t," "),d(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:p((function(e){return h(["scalar",e.name,h(e.directives," ")]," ")})),ObjectTypeDefinition:p((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["type",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")})),FieldDefinition:p((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(m(r)?v("(\n",y(h(r,"\n")),"\n)"):v("(",h(r,", "),")"))+": "+n+v(" ",h(i," "))})),InputValueDefinition:p((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return h([t+": "+r,v("= ",n),h(i," ")]," ")})),InterfaceTypeDefinition:p((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["interface",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")})),UnionTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.types;return h(["union",t,h(r," "),n&&0!==n.length?"= "+h(n," | "):""]," ")})),EnumTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.values;return h(["enum",t,h(r," "),d(n)]," ")})),EnumValueDefinition:p((function(e){return h([e.name,h(e.directives," ")]," ")})),InputObjectTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.fields;return h(["input",t,h(r," "),d(n)]," ")})),DirectiveDefinition:p((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(m(r)?v("(\n",y(h(r,"\n")),"\n)"):v("(",h(r,", "),")"))+(n?" repeatable":"")+" on "+h(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return h(["extend schema",h(t," "),d(r)]," ")},ScalarTypeExtension:function(e){return h(["extend scalar",e.name,h(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["extend type",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["extend interface",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return h(["extend union",t,h(r," "),n&&0!==n.length?"= "+h(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return h(["extend enum",t,h(r," "),d(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return h(["extend input",t,h(r," "),d(n)]," ")}};function p(e){return function(t){return h([t.description,e(t)],"\n")}}function h(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function d(e){return v("{\n",y(h(e,"\n")),"\n}")}function v(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function y(e){return v("  ",e.replace(/\n/g,"\n  "))}function b(e){return-1!==e.indexOf("\n")}function m(e){return null!=e&&e.some(b)}var g={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},O=r(6),w=r(1);var E=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,c=e.fetch,u=e.includeExtensions,f=e.useGETForQueries,p=Object(s.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch)throw new o.a(22)}(c),c||(c=fetch);var h={http:{includeExtensions:u},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new O.ApolloLink((function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),o=e.getContext(),u={};if(o.clientAwareness){var p=o.clientAwareness,d=p.name,v=p.version;d&&(u["apollographql-client-name"]=d),v&&(u["apollographql-client-version"]=v)}var y,b=Object(s.a)(Object(s.a)({},u),o.headers),m={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:b},O=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Object(s.a)(Object(s.a)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};r.forEach((function(e){i=Object(s.a)(Object(s.a)(Object(s.a)({},i),e.options),{headers:Object(s.a)(Object(s.a)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Object(s.a)(Object(s.a)({},o),e.http)}));var a=e.operationName,c=e.extensions,u=e.variables,f=e.query,p={operationName:a,variables:u};return o.includeExtensions&&(p.extensions=c),o.includeQuery&&(p.query=l(f)),{options:i,body:p}}(e,g,h,m),E=O.options,k=O.body;if(!E.signal){var j=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),S=j.controller,T=j.signal;(y=S)&&(E.signal=T)}if(f&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(E.method="GET"),"GET"===E.method){var x=function(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=a(t.variables)}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=a(t.extensions)}catch(e){return{parseError:e}}n("extensions",o)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+r.join("&")+s}}(t,k),_=x.newURI,I=x.parseError;if(I)return Object(n.b)(I);t=_}else try{E.body=a(k)}catch(I){return Object(n.b)(I)}return new w.c((function(r){var o;return c(t,E).then((function(t){return e.setContext({response:t}),t})).then((o=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}})).then((function(t){return e.status>=300&&Object(n.c)(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||i.call(t,"data")||i.call(t,"errors")||Object(n.c)(e,t,"Server response was missing for query '"+(Array.isArray(o)?o.map((function(e){return e.operationName})):o.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(){y&&y.abort()}}))}))},k=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,E(t).request)||this;return r.options=t,r}return Object(s.c)(t,e),t}(O.ApolloLink)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),i=r(2),o=r(8),a=r(4),s=r(1),c=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,Object(s.j)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,r=this.options.pollInterval;if(r){if((!t||t.interval!==r)&&(Object(i.b)(r,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},a.a.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),u=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,c=e.call(this,(function(e){return c.onSubscribe(e)}))||this;c.observers=new Set,c.subscriptions=new Set,c.observer={next:function(e){(c.lastError||c.isDifferentFromLastResult(e))&&(c.updateLastResult(e),Object(s.C)(c.observers,"next",e))},error:function(e){c.updateLastResult(Object(n.a)(Object(n.a)({},c.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:a.a.error,loading:!1})),Object(s.C)(c.observers,"error",c.lastError=e)}},c.isTornDown=!1,c.options=o,c.queryId=r.generateQueryId();var u=Object(s.q)(o.query);return c.queryName=u&&u.name&&u.name.value,c.queryManager=r,c.queryInfo=i,c}return Object(n.c)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,r=this.queryInfo.networkStatus||t&&t.networkStatus||a.a.ready,i=Object(n.a)(Object(n.a)({},t),{loading:Object(a.b)(r),networkStatus:r});if(this.isTornDown)return i;var o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if("no-cache"===s||"network-only"===s)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var c=this.queryInfo.getDiff();i.data=c.complete||this.options.returnPartialData?c.result:void 0,c.complete?(i.networkStatus!==a.a.loading||"cache-first"!==s&&"cache-only"!==s||(i.networkStatus=a.a.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!Object(o.a)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"no-cache"!==r&&"cache-and-network"!==r&&(t.fetchPolicy="network-only",t.nextFetchPolicy=r||"cache-first"),e&&!Object(o.a)(this.options.variables,e)&&(t.variables=this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,a.a.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Object(n.a)(Object(n.a)({},e.query?e:Object(n.a)(Object(n.a)(Object(n.a)({},this.options),e),{variables:Object(n.a)(Object(n.a)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return r.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=a.a.fetchMore,this.observe()),this.queryManager.fetchQuery(i,r,a.a.fetchMore).then((function(n){var i=n.data,o=e.updateQuery;return o?t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:r.variables})})):t.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(Object(o.a)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,r=void 0===t?"cache-first":t,n={fetchPolicy:r,variables:e};return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(n.fetchPolicy="cache-and-network",n.nextFetchPolicy=r),this.reobserve(n,a.a.setVariables)},t.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(s.i)(e),Object(s.A)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=l)}catch(e){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,r=this.queryManager,i=this.queryId;return r.setObservableQuery(this),new c(this.observer,e?this.options:Object(n.a)({},this.options),(function(e,n){return r.setObservableQuery(t),r.fetchQueryObservable(i,e,n)}),!r.ssrMode&&function(){return!Object(a.b)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.isTornDown=!0,this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.stopQuery(this.queryId),this.observers.clear()},t}(s.c);function l(e){}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(24);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),i=function(e){var t=e[String(n.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o<r;++o)i.push(a(e[o],t));1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t,r=!0,n=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==r)for(var n=1;n<t.length;n++)t[n]=t[n].slice(r);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!n||o||a||r,c="";return!s||n&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,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 s(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 c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=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 d(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];u.push(new d(e,t)),1!==u.length||l||s(h)},d.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";var n=r(14),i=r(25);function o(){var e=c(["\n\t\t\tmutation updateBubbleWidget($input: UpdateBubbleWidgetInput!) {\n\t\t\t\twidget: updateBubbleWidget(input: $input) {\n\t\t\t\t\tid\n\t\t\t\t\tuniqueId\n\t\t\t\t\tname\n\t\t\t\t\tbrandingOptions\n\t\t\t\t\tpublicUrl\n\t\t\t\t\twidgetable {\n\t\t\t\t\t\t... on BubbleWidget {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t\tshowBackdrop\n\t\t\t\t\t\tfont\n\t\t\t\t\t\tbuttonColor\n\t\t\t\t\t\tbackgroundColor\n\t\t\t\t\t\tborderColor\n\t\t\t\t\t\tfitVideo\n\t\t\t\t\t\tsize\n\t\t\t\t\t\tpreviewTextFontSize\n\t\t\t\t\t\tavailabilityUrls\n\t\t\t\t\t\tuseAsDefaultForAllPages\n\t\t\t\t\t\thideReplyOptions\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t"]);return o=function(){return e},e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function s(){var e=c(["\n\t\t\tmutation Login($input: LoginInput!) {\n\t\t\t\tlogin(input: $input)\n\t\t\t},\n\t\t"]);return s=function(){return e},e}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var u,l,f=(u=regeneratorRuntime.mark((function e(t,r){var a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>2&&void 0!==s[2]&&s[2],e.next=3,i.a.mutate({mutation:Object(n.gql)(o()),variables:{input:{id:t,availabilityUrls:"".concat(r),useAsDefaultForAllPages:a,forceAvailabilityUrlsRewrite:!0}}});case 3:case"end":return e.stop()}}),e)})),l=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=u.apply(e,t);function o(e){a(i,r,n,o,s,"next",e)}function s(e){a(i,r,n,o,s,"throw",e)}o(void 0)}))},function(e,t){return l.apply(this,arguments)});t.a={Login:function(e,t){return i.a.mutate({mutation:Object(n.gql)(s()),variables:{input:{email:e,password:t}}})},UpdateWidgetURL:f}},function(e,t,r){"use strict";r(11).a.empty},function(e,t,r){"use strict";r(11).a.from},function(e,t,r){"use strict";r(11).a.split},function(e,t,r){"use strict";r(11).a.concat},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=r(11).a.execute},function(e,t){},function(e,t,r){"use strict";var n;n||(n={})},function(e,t){},function(e,t,r){"use strict";var n=Object.prototype;n.toString,n.hasOwnProperty,new Map},function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(0),i=r(2),o=r(6),a=r(1),s=r(31),c=r(8),u=r(12),l=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]={mutation: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}(),f=r(32),p=r(4),h=r(13),d=r(15),v=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(a.F)(t.resolvers,e)})):this.resolvers=Object(a.F)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(n.a)(Object(n.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(a.x)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(a.H)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(n.a)(Object(n.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(n.a)(Object(n.a)({},t),e.exportedVariables)}))]:[2,Object(n.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(h.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return h.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(a.g)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,(function(){var c,u,l,f,p,h,d,v,y;return Object(n.d)(this,(function(b){return c=Object(a.p)(e),u=Object(a.m)(e),l=Object(a.k)(u),f=c.operation,p=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(h=this).cache,v=h.client,y={fragmentMap:l,context:Object(n.a)(Object(n.a)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(c.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var o,s,c,u,l,f=this;return Object(n.d)(this,(function(p){return o=r.fragmentMap,s=r.context,c=r.variables,u=[t],l=function(e){return Object(n.b)(f,void 0,void 0,(function(){var l,f;return Object(n.d)(this,(function(n){return Object(a.K)(e,c)?Object(a.y)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&u.push(((r={})[Object(a.J)(e)]=t,r))}))]:(Object(a.z)(e)?l=e:(l=o[e.name.value],Object(i.b)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(t,f,s))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(a.G)(u)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var i,o,s,c,u,l,f,p,h,v=this;return Object(n.d)(this,(function(n){return i=r.variables,o=e.name.value,s=Object(a.J)(e),c=o!==s,u=t[s]||t[o],l=Promise.resolve(u),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[c?o:s])&&(l=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[t,Object(a.e)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?v.resolveSubSelectedArray(e,t,r):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}(),y=new(a.h?WeakMap:Map);function b(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return y.set(e,(y.get(e)+1)%1e15),r.apply(this,arguments)})}var m=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.dirty=!1,this.diff=null,this.observableQuery=null,y.has(e)||(y.set(e,0),b(e,"evict"),b(e,"modify"),b(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||p.a.loading;return this.variables&&this.networkStatus!==p.a.loading&&!Object(c.a)(this.variables,e.variables)&&(t=p.a.setVariables),Object(c.a)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&Object(c.a)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,this.dirty||(e&&e.result)===(r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(p.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){this.cancel(),delete this.cancel;var e=this.observableQuery;e&&e.stopPolling()},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(c.a)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===y.get(this.cache)&&Object(c.a)(t,r.variables)&&Object(c.a)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=Object(a.A)(e.errors)?e.errors:[],"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:r&&(g(e,t.errorPolicy)?this.cache.performTransaction((function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:y.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=p.a.ready},e.prototype.markError=function(e){return this.networkStatus=p.a.error,this.lastWrite=void 0,e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function g(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!Object(a.v)(e);return!n&&r&&e.data&&(n=!0),n}var O=Object.prototype.hasOwnProperty,w=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,s=void 0===o?function(){}:o,c=e.ssrMode,u=void 0!==c&&c,f=e.clientAwareness,p=void 0===f?{}:f,h=e.localState,d=e.assumeImmutableResults;this.mutationStore=new l,this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.h?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.onBroadcast=s,this.clientAwareness=p,this.localState=h||new v({cache:t}),this.ssrMode=u,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(new i.a(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,p=void 0!==f&&f,h=e.update,d=e.errorPolicy,v=void 0===d?"none":d,y=e.fetchPolicy,b=e.context,m=void 0===b?{}:b;return Object(n.b)(this,void 0,void 0,(function(){var e,c,f,d,b=this;return Object(n.d)(this,(function(g){switch(g.label){case 0:return Object(i.b)(t,13),Object(i.b)(!y||"no-cache"===y,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,m)]:[3,2];case 1:r=g.sent(),g.label=2;case 2:return c=function(){var e={};return s&&b.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var i=n.queryName;i&&O.call(s,i)&&(e[r]={updater:s[i],queryInfo:b.queries.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),o&&(f="function"==typeof o?o(r):o,this.cache.recordOptimisticTransaction((function(n){try{E({mutationId:e,result:{data:f},document:t,variables:r,errorPolicy:v,queryUpdatersById:c(),update:h},n)}catch(e){}}),e)),this.broadcastQueries(),d=this,[2,new Promise((function(i,s){var f,b;d.getObservableFromLink(t,Object(n.a)(Object(n.a)({},m),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(Object(a.v)(n)&&"none"===v)b=new u.a({graphQLErrors:n.errors});else{if(d.mutationStore.markMutationResult(e),"no-cache"!==y)try{E({mutationId:e,result:n,document:t,variables:r,errorPolicy:v,queryUpdatersById:c(),update:h},d.cache)}catch(e){return void(b=new u.a({networkError:e}))}f=n}},error:function(t){d.mutationStore.markMutationError(e,t),o&&d.cache.removeOptimistic(e),d.broadcastQueries(),s(new u.a({networkError:t}))},complete:function(){if(b&&d.mutationStore.markMutationError(e,b),o&&d.cache.removeOptimistic(e),d.broadcastQueries(),b)s(b);else{"function"==typeof l&&(l=l(f));var t=[];Object(a.A)(l)&&l.forEach((function(e){if("string"==typeof e)d.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(d.query(r))}})),Promise.all(p?t:[]).then((function(){"ignore"===v&&f&&Object(a.v)(f)&&delete f.errors,i(f)}),s)}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=Object(a.I)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Object(a.w)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:Object(a.l)(Object(a.q)(r))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(i),c(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.a)(Object(n.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Object(n.a)(Object(n.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new m(this.cache),r=new f.a({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;Object(i.b)(e.query,15),Object(i.b)("Document"===e.query.kind,16),Object(i.b)(!e.returnPartialData,17),Object(i.b)(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally((function(){return t.stopQuery(r)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=p.a.loading:e.stop()})),this.mutationStore.reset(),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,c=void 0===s?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,c,e,!1).map((function(o){if("no-cache"!==n&&(g(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Object(a.v)(o))throw new u.a({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var f=this.localState.addExportedVariables(r,o,c).then(l);return new a.c((function(e){var t=null;return f.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var s,c,u=this;void 0===i&&(i=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var f=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:Object(a.r)(l)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},t),{forceFetch:!i}))};if(t=h.context,i){var d=f.get(l)||new Map;f.set(l,d);var v=JSON.stringify(r);if(!(c=d.get(v))){var y=new a.a([Object(o.execute)(p,h)]);d.set(v,c=y),y.cleanup((function(){d.delete(v)&&d.size<1&&f.delete(l)}))}}else c=new a.a([Object(o.execute)(p,h)])}else c=new a.a([a.c.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(c=Object(a.f)(c,(function(e){return u.localState.runResolvers({document:b,remoteResult:e,context:t,variables:r})}))),c},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId;return Object(a.f)(this.getObservableFromLink(e.document,r.context,r.variables),(function(i){var o=Object(a.A)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new u.a({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:e.networkStatus||p.a.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s}),(function(t){var r=Object(u.b)(t)?t:new u.a({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=p.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),s=this.getQuery(e),c=s.networkStatus,u=t.fetchPolicy,l=void 0===u?"cache-first":u,f=t.errorPolicy,h=void 0===f?"none":f,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,b=void 0!==y&&y,m=t.context,g=void 0===m?{}:m;("cache-first"===l||"cache-and-network"===l||"network-only"===l||"no-cache"===l)&&b&&"number"==typeof c&&c!==r&&Object(p.b)(r)&&("cache-first"!==l&&(l="cache-and-network"),v=!0);var O=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:h,returnPartialData:v,notifyOnNetworkStatusChange:b,context:g}),w=function(e){return O.variables=e,n.fetchQueryByPolicy(s,O,r)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return E.cancel(e)}))}));var E=new a.a(this.transform(O.query).hasClientExports?this.localState.addExportedVariables(O.query,O.variables,O.context).then(w):w(O.variables));return E.cleanup((function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)})),E},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,c=t.fetchPolicy,u=t.errorPolicy,l=t.returnPartialData,f=t.context;e.init({document:o,variables:s,lastRequestId:this.generateRequestId(),networkStatus:r});var h=function(){return e.getDiff(s)},d=function(t,r){void 0===r&&(r=e.networkStatus||p.a.loading);var c=t.result;var u=function(e){return a.c.of(Object(n.a)({data:e,loading:Object(p.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:c},context:f,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data)})):u(c)},v=function(t){return i.getResultsFromLink(e,t,{variables:s,context:f,fetchPolicy:c,errorPolicy:u})};switch(c){default:case"cache-first":return(y=h()).complete?[d(y,e.markReady())]:l?[d(y),v(!0)]:[v(!0)];case"cache-and-network":var y;return(y=h()).complete||l?[d(y),v(!0)]:[v(!0)];case"cache-only":return[d(h(),e.markReady())];case"network-only":return[v(!0)];case"no-cache":return[v(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new m(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)(Object(n.a)({},t),{clientAwareness:this.clientAwareness})},e}();function E(e,t){if(g(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.queryUpdatersById;n&&Object.keys(n).forEach((function(i){var o=n[i],s=o.updater,c=o.queryInfo,u=c.document,l=c.variables,f=t.diff({query:u,variables:l,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var h=s(p,{mutationResult:e.result,queryName:Object(a.r)(u)||void 0,queryVariables:l});h&&r.push({result:h,dataId:"ROOT_QUERY",query:u,variables:l})}})),t.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&n(t,e.result)}),null)}}var k=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,c=e.cache,u=e.ssrMode,l=void 0!==u&&u,f=e.ssrForceFetchDelay,p=void 0===f?0:f,h=e.connectToDevTools,d=e.queryDeduplication,y=void 0===d||d,b=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,O=e.resolvers,E=e.typeDefs,k=e.fragmentMatcher,j=e.name,S=e.version,T=e.link;if(T||(T=r?new s.a({uri:r,credentials:n,headers:a}):o.ApolloLink.empty()),!c)throw new i.a(9);this.link=T,this.cache=c,this.disableNetworkFetches=l||p>0,this.queryDeduplication=y,this.defaultOptions=b||{},this.typeDefs=E,p&&setTimeout((function(){return t.disableNetworkFetches=!1}),p),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);void 0!==h&&(h&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new v({cache:c,client:this,resolvers:O,fragmentMatcher:k}),this.queryManager=new w({cache:this.cache,link:this.link,queryDeduplication:y,ssrMode:l,clientAwareness:{name:j,version:S},localState:this.localState,assumeImmutableResults:g,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(a.j)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(a.j)(this.defaultOptions.query,e)),Object(i.b)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(a.j)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(o.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},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.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n,i,o=r(0),a=(r(58),r(7)),s=r(28),c=r(1),u=r(2),l=r(8),f=r(3),p=Object.create(null),h=function(){return p},d=Object.create(null),v=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(c.E)(Object(c.B)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(c.B)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Object(c.D)(e);if(Object(c.B)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Object(c.D)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return Object(o.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),f.c.call(this.data,e)){var r=this.data[e];if(r&&f.c.call(r,t))return r[t]}return"__typename"===t&&f.c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof m?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),f.c.call(this.data,e)?this.data[e]:this instanceof m?this.parent.lookup(e,t):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),i=new c.b(g).merge(n,t);if(this.data[e]=i,i!==n&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(t).forEach((function(e){n&&n[e]===i[e]||(o[Object(f.b)(e)]=1,void 0!==i[e]||r instanceof m||delete i[e])})),Object.keys(o).forEach((function(t){return r.group.dirty(e,t)}))}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,u={DELETE:p,INVALIDATE:d,isReference:c.B,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Object(c.D)(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(l){var v=Object(f.b)(l),y=n[l];if(void 0!==y){var b="function"==typeof t?t:t[l]||t[v];if(b){var m=b===h?p:b(Object(c.E)(y),Object(o.a)(Object(o.a)({},u),{fieldName:v,storeFieldName:l,storage:r.getStorage(e,l)}));m===d?r.group.dirty(e,l):(m===p&&(m=void 0),m!==y&&(i[l]=m,a=!0,y=m))}void 0!==y&&(s=!1)}})),a)return this.merge(e,i),s&&(this instanceof m?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=h,n):h)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(f.c.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof m&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;Object.keys(this.data).forEach((function(r){e&&f.c.call(e,r)||t.delete(r)})),e&&Object.keys(e).forEach((function(r){t.merge(r,e[r])}))},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof m&&this.parent.getRootIdSet(e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){f.c.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof m;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!f.c.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"==typeof e};r.forEach((function(e){Object(c.B)(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),y=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new a.a(c.h),this.d=e?Object(a.b)():null}return e.prototype.depend=function(e,t){this.d&&this.d(b(e,t))},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t))},e}();function b(e,t){return Object(f.b)(t)+"#"+e}n=v||(v={}),i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new y(i))||this;return s.storageTrie=new a.a(c.h),s.sharedLayerGroup=new y(i),o&&s.replace(o),s}return Object(o.c)(t,e),t.prototype.addLayer=function(e,t){return new m(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(e,t){return this.storageTrie.lookup(e,t)},t}(n),n.Root=i;var m=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return Object(o.c)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){t.data[e]!==r.lookup(e)&&t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(o.a)(Object(o.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return f.c.call(this.data,t)?Object(o.a)(Object(o.a)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(e,t){return this.parent.getStorage(e,t)},t}(v);function g(e,t,r){var n=e[r],i=t[r];return Object(l.a)(n,i)?n:i}function O(e){return!!(e instanceof v&&e.group.caching)}var w=r(29);function E(e,t){return new w.a(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var k=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=Object(a.c)((function(e){return t.execSelectionSetImpl(e)}),{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(O(r.store))return r.store.makeCacheKey(e,Object(c.B)(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=Object(a.c)((function(e){return t.execSubSelectedArrayImpl(e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(O(n.store))return n.store.makeCacheKey(t,r,n.varString)}}),this.config=Object(o.a)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,a=e.variables,s=e.returnPartialData,u=void 0===s||s,l=this.config.cache.policies;a=Object(o.a)(Object(o.a)({},Object(c.l)(Object(c.s)(r))),a);var f=this.executeSelectionSet({selectionSet:Object(c.p)(r).selectionSet,objectOrReference:Object(c.D)(i),context:{store:t,query:r,policies:l,variables:a,varString:JSON.stringify(a),fragmentMap:Object(c.k)(Object(c.m)(r)),path:[],clientOnly:!1}}),p=f.missing&&f.missing.length>0;if(p&&!u)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},e.prototype.isFresh=function(e,t,r,n){if(O(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if(Object(c.B)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[E(new u.a(4),i)]};var o=i.variables,a=i.policies,s=i.store,l=[],f={result:null},p=s.getFieldValue(n,"__typename");function h(){return f.missing||(f.missing=[])}function d(e){var t;return e.missing&&(t=h()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!a.rootIdsByTypename[p]&&l.push({__typename:p});var v=new Set(r.selections);return v.forEach((function(e){var r;if(Object(c.K)(e,o))if(Object(c.y)(e)){var s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),f=Object(c.J)(e);i.path.push(f);var y=i.clientOnly;i.clientOnly=y||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===s?c.d.added(e)||h().push(E(new u.a(5),i)):Array.isArray(s)?s=d(t.executeSubSelectedArray({field:e,array:s,context:i})):e.selectionSet&&null!=s&&(s=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,context:i}))),void 0!==s&&l.push(((r={})[f]=s,r)),i.clientOnly=y,Object(u.b)(i.path.pop()===f)}else{var b=Object(c.n)(e,i.fragmentMap);b&&a.fragmentMatches(b,p)&&b.selectionSet.selections.forEach(v.add,v)}})),f.result=Object(c.G)(l),this.knownResults.set(f.result,r),f},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function a(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),Object(u.b)(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?a(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(Object(u.b)(o.path.pop()===t),e))})),missing:t}},e}();var j=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,i=e.store,a=e.variables,s=Object(c.q)(t),l=Object(f.e)();a=Object(o.a)(Object(o.a)({},Object(c.l)(s)),a);var p=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:s.selectionSet,context:{store:i,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:JSON.stringify(a),fragmentMap:Object(c.k)(Object(c.m)(t))}});if(!Object(c.B)(p))throw new u.a(7);return i.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.out,s=void 0===a?{shouldApplyMerges:!1}:a,l=this.cache.policies,f=l.identify(n,i,o.fragmentMap),p=f[0],h=f[1];if("string"==typeof(r=r||p)){var d=o.written[r]||(o.written[r]=[]),v=Object(c.D)(r);if(d.indexOf(i)>=0)return v;if(d.push(i),this.reader&&this.reader.isFresh(n,v,i,o))return v}var y=Object.create(null);h&&(y=o.merge(y,h));var b=r&&l.rootTypenamesById[r]||Object(c.u)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof b&&(y.__typename=b);var m=new Set(i.selections);if(m.forEach((function(e){var r;if(Object(c.K)(e,o.variables))if(Object(c.y)(e)){var i=Object(c.J)(e),a=n[i];if(void 0!==a){var f=l.getStoreFieldName({typename:b,fieldName:e.name.value,field:e,variables:o.variables}),p=t.processFieldValue(a,e,o,s);l.hasMergeFunction(b,e.name.value)&&(p={__field:e,__typename:b,__value:p},s.shouldApplyMerges=!0),y=o.merge(y,((r={})[f]=p,r))}else if(l.usingPossibleTypes&&!Object(c.x)(["defer","client"],e))throw new u.a(8)}else{var h=Object(c.n)(e,o.fragmentMap);h&&l.fragmentMatches(h,b,n,o.variables)&&h.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof r){var g=Object(c.D)(r);return s.shouldApplyMerges&&(y=l.applyMerges(g,y,o)),o.store.merge(r,y),g}return y},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e){return i.processFieldValue(e,t,r,n)})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,out:n}):e},e}();new Set;var S=r(18),T=r(23),x={dataIdFromObject:T.b,addTypename:!0,resultCaching:!0,typePolicies:{}},_=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=S.b,r.txCount=0,r.maybeBroadcastWatch=Object(a.c)((function(e,t){return r.broadcastWatch.call(r,e,!!t)}),{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(O(t)){var n=e.optimistic,i=e.rootId,o=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:n,rootId:i,variables:o}))}}}),r.watchDep=Object(a.b)(),r.config=Object(o.a)(Object(o.a)({},x),t),r.addTypename=!!r.config.addTypename,r.policies=new T.a({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new v.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new j(r,r.storeReader=new k({cache:r,addTypename:r.addTypename})),r}return Object(o.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){var t=e.optimistic?this.optimisticData:this.data;return("string"!=typeof e.rootId||t.has(e.rootId))&&this.storeReader.diffQueryAgainstStore({store:t,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:!1}).result||null},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(f.c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Object(c.B)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(f.c.call(e,"id"))return!1;e=Object(o.a)(Object(o.a)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r,i=n.data,o=n.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},i=!1;"string"==typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(c.d)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(s.a)},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(e){}}else t="@@observable";return t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(14),i=r(25),o=r(10),a=r.n(o);function s(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n    fragment LibraryVideoFragment on LibraryVideo {\n        id\n        title\n        watchable {\n            id\n            thumbnailUrl\n            videoUrl\n            downloadUrl\n            isVideoPortrait\n            ... on Video {\n                gifUrl\n            }\n        }\n    }\n"]);return s=function(){return e},e}var c={LibraryVideoFragment:a()(s())};function u(){var e=d(["\n    fragment FullWidgetDataFragment on Widget {\n        id\n        uniqueId\n        name\n        brandingOptions\n        publicUrl\n        user {\n            id\n            image\n        }\n        widgetable {\n            ... on BubbleWidget {\n                ...BubbleWidgetDataFragment\n            }\n\n            ... on SignatureWidget {\n                ...SignatureWidgetDataFragment\n            }\n\n            ... on PageWidget {\n                ...PageDataWidgetFragment\n            }\n\n            ... on BusinessCardWidget {\n                ...BusinessCardFragment\n            }\n        }\n        libraryVideo {\n            ...LibraryVideoFragment\n        }\n    }\n    ","\n    ","\n    ","\n    ","\n    ","\n"]);return u=function(){return e},e}function l(){var e=d(["\n    fragment BusinessCardFragment on BusinessCardWidget {\n        id\n        email\n        fitVideo\n        autoplay\n        backgroundColor\n        buttonColor\n        websiteUrl\n        phoneNumber\n    }\n"]);return l=function(){return e},e}function f(){var e=d(["\n    fragment PageDataWidgetFragment on PageWidget {\n        id\n        font\n        style\n        autoplay\n        fitVideo\n        buttonColor\n        backgroundColor\n    }\n"]);return f=function(){return e},e}function p(){var e=d(["\n    fragment SignatureWidgetDataFragment on SignatureWidget {\n        id\n        borderColor\n        websiteUrl\n        phoneNumber\n        imageUrl\n    }\n"]);return p=function(){return e},e}function h(){var e=d(["\n    fragment BubbleWidgetDataFragment on BubbleWidget {\n        id\n        title\n        showBackdrop\n        font\n        buttonColor\n        backgroundColor\n        borderColor\n        fitVideo\n        size\n        previewTextFontSize\n        availabilityUrls\n        useAsDefaultForAllPages\n        hideReplyOptions\n    }\n"]);return h=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=a()(h()),y=a()(p()),b=a()(f()),m=a()(l()),g={BusinessCardFragment:m,PageDataWidgetFragment:b,BubbleWidgetDataFragment:v,SignatureWidgetDataFragment:y,FullWidgetDataFragment:a()(u(),m,b,v,y,c.LibraryVideoFragment)};function O(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n\t\t\tquery GetWidgets($input: WidgetsFilterInput, $page: Int) {\n\t\t\t\tuser: me {\n\t\t\t\t\tid\n\t\t\t\t\tadditionalData {\n\t\t\t\t\t\tglobalWidgetId\n\t\t\t\t\t}\n\t\t\t\t\twidgets(input: $input, page: $page) {\n\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t...FullWidgetDataFragment\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpaginatorInfo {\n\t\t\t\t\t\t\thasMorePages\n\t\t\t\t\t\t\tcurrentPage\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t","\n\t\t"]);return O=function(){return e},e}t.a={GetWidgets:function(){return i.a.query({query:Object(n.gql)(O(),g.FullWidgetDataFragment)})}}},function(e,t,r){"use strict";r.r(t),function(e){var t=r(19),n=r(38),i=r(51),o=r(21),a=r(17);function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}e(window).load((function(){var r,s,u,l,f=(r=c(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.GetWidgets();case 2:return t=e.sent,r=t.data.user,e.next=6,o.a.PostWidgets({widgets:JSON.stringify(r.widgets.data),globalWidgetId:r.additionalData.globalWidgetId});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)});window.ww_token&&f(),e(".ww-log-in").on("click",(s=c(regeneratorRuntime.mark((function r(i){var o,s,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.a.add(),o=e('[name="carbon_fields_compact_input[_ww_email]"]').val(),s=e('[name="carbon_fields_compact_input[_ww_password]"]').val(),r.next=5,n.a.Login(o,s);case 5:return c=r.sent,u=c.data.login,t.a.setToken(u,o),r.next=10,f().then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 10:i.preventDefault();case 11:case"end":return r.stop()}}),r)}))),function(e){return s.apply(this,arguments)})),e(".ww-log-out").on("click",(u=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.a.add(),e.next=3,o.a.PostCredentials({action:"ww_save_token",token:"",user:""}).then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 3:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})),e(".ww-save-options").on("click",(l=c(regeneratorRuntime.mark((function t(r){var i,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),a.a.add(),i=e('[name="carbon_fields_compact_input[_crb_default_bubble_widget]"]').val(),s=ww_widgets_data,c=s.site_url,s.widgets,"none"===i){t.next=7;break}return t.next=7,n.a.UpdateWidgetURL(i,c,!0);case 7:return t.next=9,o.a.PostBubbleWidget({id:i}).then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 9:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)}))}))}.call(this,r(26))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},c=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=c("iterator"),l=c("observable"),f=c("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function d(e){return e instanceof k}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function y(e){Promise.resolve().then((function(){try{e()}catch(e){v(e)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(e){v(e)}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(m(e),!i)throw r;i.call(n,r);break;case"complete":m(e),i&&i.call(n)}}catch(e){v(e)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function O(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void y((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void g(e,t,r);e._queue.push({type:t,value:r})}}var w=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new E(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(m(this),b(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(t){n(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){O(this._subscription,"next",e)}},{key:"error",value:function(e){O(this._subscription,"error",e)}},{key:"complete",value:function(){O(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=p(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=p(t,u)))return new r((function(e){y((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){y((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"==typeof this?this:e;return new i((function(e){y((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))}},{key:f,get:function(){return this}}]),e}();t.Observable=k,a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:l,hostReportError:v},configurable:!0})},function(e,t,r){"use strict";(function(e,t){var n,i=r(50);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:t;Object(i.a)(n)}).call(this,r(55),r(56)(e))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},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,r){"use strict";(function(e){}).call(this,r(37))},function(e,t){},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.r(t),r.d(t,"parse",(function(){return B})),r.d(t,"parseValue",(function(){return U})),r.d(t,"parseType",(function(){return W})),r.d(t,"Parser",(function(){return K}));"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var i="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function o(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index<t;)i+=1,o=t+1-(r.index+r[0].length);return{line:i,column:o}}function a(e){return s(e.source,o(e.source,e.start))}function s(e,t){var r=e.locationOffset.column-1,n=u(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,f="".concat(e.name,":").concat(a,":").concat(l,"\n"),p=n.split(/\r\n|[\n\r]/g),h=p[i];if(h.length>120){for(var d=Math.floor(l/80),v=l%80,y=[],b=0;b<h.length;b+=80)y.push(h.slice(b,b+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,d+1).map((function(e){return["",e]})),[[" ",u(v-1)+"^"],["",y[d+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),h],["",u(l-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),r=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,n=e[0],i=e[1];return u(r-(t=n).length)+t+(i?" | "+i:" |")})).join("\n")}function u(e){return Array(e+1).join(" ")}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)})(e)}function v(e,t,r){return(v=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&b(i,r.prototype),i}).apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(v,e);var t,r,c,u,l,d=(t=v,r=y(),function(){var e,n=m(t);if(r){var i=m(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return p(this,e)});function v(e,t,r,i,a,s,c){var u,l,f,y,b;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b=d.call(this,e);var m,g=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,O=r;!O&&g&&(O=null===(m=g[0].loc)||void 0===m?void 0:m.source);var w,E=i;!E&&g&&(E=g.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),E&&0===E.length&&(E=void 0),i&&r?w=i.map((function(e){return o(r,e)})):g&&(w=g.reduce((function(e,t){return t.loc&&e.push(o(t.loc.source,t.loc.start)),e}),[]));var k,j=c;if(null==j&&null!=s){var S=s.extensions;"object"==n(k=S)&&null!==k&&(j=S)}return Object.defineProperties(h(b),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(u=w)&&void 0!==u?u:void 0,enumerable:null!=w},path:{value:null!=a?a:void 0,enumerable:null!=a},nodes:{value:null!=g?g:void 0},source:{value:null!==(l=O)&&void 0!==l?l:void 0},positions:{value:null!==(f=E)&&void 0!==f?f:void 0},originalError:{value:s},extensions:{value:null!==(y=j)&&void 0!==y?y:void 0,enumerable:null!=j}}),(null==s?void 0:s.stack)?(Object.defineProperty(h(b),"stack",{value:s.stack,writable:!0,configurable:!0}),p(b)):(Error.captureStackTrace?Error.captureStackTrace(h(b),v):Object.defineProperty(h(b),"stack",{value:Error().stack,writable:!0,configurable:!0}),b)}return c=v,(u=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];i.loc&&(t+="\n\n"+a(i.loc))}else if(e.source&&e.locations)for(var o=0,c=e.locations;o<c.length;o++){var u=c[o];t+="\n\n"+s(e.source,u)}return t}(this)}},{key:i,get:function(){return"Object"}}])&&f(c.prototype,u),l&&f(c,l),v}(d(Error));function O(e,t,r){return new g("Syntax Error: ".concat(r),void 0,e,[t])}var w=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",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",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",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"}),E=r(5),k=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"}),j=r(33);function S(e,t){if(!Boolean(e))throw new Error(t)}var T=function(e,t){return e instanceof t};function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||S(0,"Body must be a string. Received: ".concat(Object(j.a)(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||S(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||S(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,n;return t=e,(r=[{key:i,get:function(){return"Source"}}])&&x(t.prototype,r),n&&x(t,n),e}();var I=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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"}),N=r(35),D=function(){function e(e){var t=new E.b(k.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==k.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=R(this,e)}while(e.kind===k.COMMENT);return e},e}();function A(e){return isNaN(e)?k.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o<i;){var a=n.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new E.b(k.BANG,o,o+1,s,c,t);case 35:return C(r,o,s,c,t);case 36:return new E.b(k.DOLLAR,o,o+1,s,c,t);case 38:return new E.b(k.AMP,o,o+1,s,c,t);case 40:return new E.b(k.PAREN_L,o,o+1,s,c,t);case 41:return new E.b(k.PAREN_R,o,o+1,s,c,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new E.b(k.SPREAD,o,o+3,s,c,t);break;case 58:return new E.b(k.COLON,o,o+1,s,c,t);case 61:return new E.b(k.EQUALS,o,o+1,s,c,t);case 64:return new E.b(k.AT,o,o+1,s,c,t);case 91:return new E.b(k.BRACKET_L,o,o+1,s,c,t);case 93:return new E.b(k.BRACKET_R,o,o+1,s,c,t);case 123:return new E.b(k.BRACE_L,o,o+1,s,c,t);case 124:return new E.b(k.PIPE,o,o+1,s,c,t);case 125:return new E.b(k.BRACE_R,o,o+1,s,c,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?M(r,o,s,c,t,e):q(r,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(r,o,a,s,c,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 Q(r,o,s,c,t)}throw O(r,o,F(a))}var u=e.line,l=1+o-e.lineStart;return new E.b(k.EOF,i,i,u,l,t)}function F(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(A(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(A(e),".")}function C(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new E.b(k.COMMENT,t,s,r,n,i,a.slice(t+1,s))}function P(e,t,r,n,i,o){var a=e.body,s=r,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw O(e,c,"Invalid number, unexpected digit after 0: ".concat(A(s),"."))}else c=L(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=L(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=L(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw O(e,c,"Invalid number, expected digit but got: ".concat(A(s),"."));return new E.b(u?k.FLOAT:k.INT,t,c,n,i,o,a.slice(t,c))}function L(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw O(e,i,"Invalid number, expected digit but got: ".concat(A(o),"."))}function q(e,t,r,n,i){for(var o,a,s,c,u=e.body,l=t+1,f=l,p=0,h="";l<u.length&&!isNaN(p=u.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return h+=u.slice(f,l),new E.b(k.STRING,t,l+1,r,n,i,h);if(p<32&&9!==p)throw O(e,l,"Invalid character within String: ".concat(A(p),"."));if(++l,92===p){switch(h+=u.slice(f,l-1),p=u.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var d=(o=u.charCodeAt(l+1),a=u.charCodeAt(l+2),s=u.charCodeAt(l+3),c=u.charCodeAt(l+4),V(o)<<12|V(a)<<8|V(s)<<4|V(c));if(d<0){var v=u.slice(l+1,l+5);throw O(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}h+=String.fromCharCode(d),l+=4;break;default:throw O(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw O(e,l,"Unterminated string.")}function M(e,t,r,n,i,o){for(var a=e.body,s=t+3,c=s,u=0,l="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(c,s),new E.b(k.BLOCK_STRING,t,s+3,r,n,i,Object(N.a)(l));if(u<32&&9!==u&&10!==u&&13!==u)throw O(e,s,"Invalid character within String: ".concat(A(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(c,s)+'"""',c=s+=4):++s}throw O(e,s,"Unterminated string.")}function V(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Q(e,t,r,n,i){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new E.b(k.NAME,t,s,r,n,i,o.slice(t,s))}function B(e,t){return new K(e,t).parseDocument()}function U(e,t){var r=new K(e,t);r.expectToken(k.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(k.EOF),n}function W(e,t){var r=new K(e,t);r.expectToken(k.SOF);var n=r.parseTypeReference();return r.expectToken(k.EOF),n}var K=function(){function e(e,t){var r=function(e){return T(e,_)}(e)?e:new _(e);this._lexer=new D(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(k.NAME);return{kind:w.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:w.DOCUMENT,definitions:this.many(k.SOF,this.parseDefinition,k.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(k.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(k.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(k.BRACE_L))return{kind:w.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(k.NAME)&&(t=this.parseName()),{kind:w.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(k.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(k.PAREN_L,this.parseVariableDefinition,k.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:w.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(k.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(k.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(k.DOLLAR),{kind:w.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:w.SELECTION_SET,selections:this.many(k.BRACE_L,this.parseSelection,k.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(k.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(k.COLON)?(e=n,t=this.parseName()):t=n,{kind:w.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(k.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(k.PAREN_L,t,k.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(k.COLON),{kind:w.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:w.ARGUMENT,name:this.parseName(),value:(this.expectToken(k.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(k.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(k.NAME)?{kind:w.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:w.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case k.BRACKET_L:return this.parseList(e);case k.BRACE_L:return this.parseObject(e);case k.INT:return this._lexer.advance(),{kind:w.INT,value:t.value,loc:this.loc(t)};case k.FLOAT:return this._lexer.advance(),{kind:w.FLOAT,value:t.value,loc:this.loc(t)};case k.STRING:case k.BLOCK_STRING:return this.parseStringLiteral();case k.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:w.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:w.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:w.NULL,loc:this.loc(t)};default:return{kind:w.ENUM,value:t.value,loc:this.loc(t)}}case k.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:w.STRING,value:e.value,block:e.kind===k.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:w.LIST,values:this.any(k.BRACKET_L,(function(){return t.parseValueLiteral(e)}),k.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:w.OBJECT,fields:this.any(k.BRACE_L,(function(){return t.parseObjectField(e)}),k.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(k.COLON),{kind:w.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(k.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(k.AT),{kind:w.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(k.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(k.BRACKET_R),e={kind:w.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(k.BANG)?{kind:w.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:w.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===k.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(k.STRING)||this.peek(k.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);return{kind:w.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(k.COLON);var r=this.parseNamedType();return{kind:w.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(k.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(k.AMP)||this.peek(k.NAME));return t}return this.delimitedMany(k.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(k.BRACE_L)&&this._lexer.lookahead().kind===k.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(k.BRACE_L,this.parseFieldDefinition,k.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(k.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:w.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(k.PAREN_L,this.parseInputValueDef,k.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(k.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(k.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:w.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:w.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(k.EQUALS)?this.delimitedMany(k.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:w.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(k.BRACE_L,this.parseEnumValueDefinition,k.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:w.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(k.BRACE_L,this.parseInputValueDef,k.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===k.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:w.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:w.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(k.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:w.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(k.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==I[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new E.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw O(this._lexer.source,t.start,"Expected ".concat(z(e),", found ").concat(G(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==k.NAME||t.value!==e)throw O(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(G(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===k.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return O(this._lexer.source,t.start,"Unexpected ".concat(G(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function G(e){var t=e.value;return z(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function z(e){return function(e){return e===k.BANG||e===k.DOLLAR||e===k.AMP||e===k.PAREN_L||e===k.PAREN_R||e===k.SPREAD||e===k.COLON||e===k.EQUALS||e===k.AT||e===k.BRACKET_L||e===k.BRACKET_R||e===k.BRACE_L||e===k.PIPE||e===k.BRACE_R}(e)?'"'.concat(e,'"'):e}}]);
     16var n=function(e,t){return(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])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=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}).apply(this,arguments)};function a(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&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function c(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:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&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=a.trys,(i=i.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,s])}}}function u(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}},function(e,t,r){"use strict";r.d(t,"K",(function(){return o})),r.d(t,"x",(function(){return a})),r.d(t,"w",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"o",(function(){return u})),r.d(t,"n",(function(){return f})),r.d(t,"q",(function(){return T})),r.d(t,"r",(function(){return x})),r.d(t,"m",(function(){return _})),r.d(t,"s",(function(){return I})),r.d(t,"p",(function(){return N})),r.d(t,"l",(function(){return D})),r.d(t,"D",(function(){return d})),r.d(t,"B",(function(){return v})),r.d(t,"y",(function(){return k})),r.d(t,"z",(function(){return j})),r.d(t,"L",(function(){return b})),r.d(t,"e",(function(){return O})),r.d(t,"J",(function(){return w})),r.d(t,"t",(function(){return g})),r.d(t,"u",(function(){return E})),r.d(t,"d",(function(){return L})),r.d(t,"g",(function(){return V})),r.d(t,"I",(function(){return M})),r.d(t,"H",(function(){return Q})),r.d(t,"c",(function(){return U.a})),r.d(t,"F",(function(){return K})),r.d(t,"G",(function(){return G})),r.d(t,"b",(function(){return Y})),r.d(t,"i",(function(){return X})),r.d(t,"E",(function(){return $})),r.d(t,"C",(function(){return Z})),r.d(t,"f",(function(){return ee})),r.d(t,"a",(function(){return re})),r.d(t,"A",(function(){return ne})),r.d(t,"v",(function(){return ie})),r.d(t,"h",(function(){return oe})),r.d(t,"j",(function(){return ae}));var n=r(13),i=r(2);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if("skip"===(r=e.name.value)||"include"===r){var r,n=e.arguments;e.name.value;Object(i.b)(n&&1===n.length,39);var o=n[0];Object(i.b)(o.name&&"if"===o.name.value,40);var a=o.value;Object(i.b)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),41),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t&&t[n.value.name.value],Object(i.b)(void 0!==o,38)):o=n.value.value,"skip"===r.name.value?!o:o}))}function a(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&a(["client"],e)&&a(["export"],e)}var c=r(0);function u(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(42);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(i.b)(1===n.length,43),r=n[0].name.value),Object(c.a)(Object(c.a)({},e),{definitions:Object(c.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function l(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function f(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return Object(i.b)(r,44),r;default:return null}}var p=r(34),h=r.n(p);function d(e){return{__ref:String(e)}}function v(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function y(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 o={};r.fields.map((function(e){return y(o,e.name,e.value,n)})),e[t.value]=o}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 y(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 i.a(53);e[t.value]=null}}function b(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,o=n.value;return y(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return y(n,r,i,t)}))),g(e.name.value,n,r)}var m=["connection","include","skip","client","rest","export"];function g(e,t,r){if(t&&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={};return n.forEach((function(e){i[e]=t[e]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var a=h()(t);o+="("+a+")"}return r&&Object.keys(r).forEach((function(e){-1===m.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)})),o}function O(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return y(r,n,i,t)})),r}return null}function w(e){return e.alias?e.alias.value:e.name.value}function E(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(k(o)){if("__typename"===o.name.value)return e[w(o)]}else{var a=E(e,f(o,r).selectionSet,r);if("string"==typeof a)return a}}}function k(e){return"Field"===e.kind}function j(e){return"InlineFragment"===e.kind}function S(e){Object(i.b)(e&&"Document"===e.kind,45);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new i.a(46);return e}));return Object(i.b)(t.length<=1,47),e}function T(e){return S(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function x(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function _(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function I(e){var t=T(e);return Object(i.b)(t&&"query"===t.operation,48),t}function N(e){var t;S(e);for(var r=0,n=e.definitions;r<n.length;r++){var o=n[r];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw new i.a(52)}function D(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&y(t,e.variable.name,e.defaultValue)})),t}function A(e,t,r){var n=0;return e.forEach((function(r,i){t.call(this,r,i,e)&&(e[n++]=r)}),r),e.length=n,e}var R={kind:"Field",name:{kind:"Name",value:"__typename"}};function F(e){return function e(t,r){return t.selectionSet.selections.every((function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)}))}(T(e)||function(e){Object(i.b)("Document"===e.kind,49),Object(i.b)(e.definitions.length<=1,50);var t=e.definitions[0];return Object(i.b)("FragmentDefinition"===t.kind,51),t}(e),l(_(e)))?null:e}function C(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function P(e,t){var r=Object.create(null),i=[],o=Object.create(null),a=[],s=F(Object(n.b)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(C(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&i.push({name:e.value.name.value})})),t.selectionSet&&function e(t){var r=[];return t.selections.forEach((function(t){(k(t)||j(t))&&t.selectionSet?e(t.selectionSet).forEach((function(e){return r.push(e)})):"FragmentSpread"===t.kind&&r.push(t)})),r}(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(C(e)(t))return null}}}));return s&&A(i,(function(e){return!!e.name&&!r[e.name]})).length&&(s=function(e,t){var r=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return F(Object(n.b)(t,{OperationDefinition:{enter:function(t){return Object(c.a)(Object(c.a)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var n=0;if(t.arguments&&t.arguments.forEach((function(e){r(e)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(i,s)),s&&A(a,(function(e){return!!e.name&&!o[e.name]})).length&&(s=function(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return F(Object(n.b)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(a,s)),s}function L(e){return Object(n.b)(S(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n)if(!n.some((function(e){return k(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(k(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(c.a)(Object(c.a)({},e),{selections:Object(c.f)(n,[R])})}}}}})}L.added=function(e){return e===R};var q={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function M(e){return P([q],S(e))}function V(e){return"query"===N(e).operation?e:Object(n.b)(e,{OperationDefinition:{enter:function(e){return Object(c.a)(Object(c.a)({},e),{operation:"query"})}}})}function Q(e){S(e);var t=P([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(n.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return k(e)&&"__typename"===e.name.value})))return null}}})),t}var B=r(22),U=r.n(B);r(54);U.a.prototype["@@observable"]=function(){return this};var W=Object.prototype.hasOwnProperty;function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return G(e)}function G(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new Y,i=1;i<r;++i)t=n.merge(t,e[i]);return t}function z(e){return null!==e&&"object"==typeof e}var J=function(e,t,r){return this.merge(e[r],t[r])},Y=function(){function e(e){void 0===e&&(e=J),this.reconciler=e,this.isObject=z,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return z(t)&&z(e)?(Object.keys(t).forEach((function(i){if(W.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,Object(c.f)([e,t,i],n));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return z(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):Object(c.a)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),H=Object.prototype.toString;function X(e){return function e(t,r){switch(H.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var n=t.slice(0);return r.set(t,n),n.forEach((function(t,i){n[i]=e(t,r)})),n;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach((function(n){i[n]=e(t[n],r)})),i;default:return t}}(e)}r(57);function $(e){return e}function Z(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function ee(e,t,r){return new U.a((function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1;function u(e,t){return e?function(t){++s,new Promise((function(r){return r(e(t))})).then((function(e){--s,i&&i.call(n,e),c&&l.complete()}),(function(e){--s,o&&o.call(n,e)}))}:function(e){return t&&t.call(n,e)}}var l={next:u(t,i),error:u(r,o),complete:function(){c=!0,s||a&&a.call(n)}},f=e.subscribe(l);return function(){return f.unsubscribe()}}))}function te(e){return e&&"function"==typeof e.then}var re=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],Z(r.observers,"next",e))},error:function(e){null!==r.sub&&(r.sub&&r.sub.unsubscribe(),r.sub=null,r.latest=["error",e],r.reject(e),Z(r.observers,"error",e))},complete:function(){if(null!==r.sub){var e=r.sources.shift();e?te(e)?e.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=e.subscribe(r.handlers):(r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),Z(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),te(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return Object(c.c)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.addObserver=function(e){if(!this.observers.has(e)){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}this.observers.add(e)}},t.prototype.removeObserver=function(e,t){if(this.observers.delete(e)&&this.observers.size<1){if(t)return;this.sub&&(this.sub.unsubscribe(),this.reject(new Error("Observable cancelled prematurely"))),this.sub=null}},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n};this.addObserver(i)},t}(U.a);function ne(e){return Array.isArray(e)&&e.length>0}function ie(e){return e.errors&&e.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(re,Symbol.species,{value:U.a});var oe="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function ae(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(0),i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(r){void 0===r&&(r="Invariant Violation");var n=e.call(this,"number"==typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",o(n,t.prototype),n}return Object(n.c)(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(s||(s={}));var u={env:{}};if("object"==typeof e)u=e;else try{Function("stub","process = stub")(u)}catch(e){}}).call(this,r(37))},function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"f",(function(){return s})),r.d(t,"g",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return l}));var n=r(1),i=Object.prototype.hasOwnProperty;var o=/^[_a-z][_0-9a-z]*/i;function a(e){var t=e.match(o);return t?t[0]:e}function s(e,t,r){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every((function(t){return s(e,t,r)})):e.selections.every((function(e){if(Object(n.y)(e)&&Object(n.K)(e,r)){var o=Object(n.J)(e);return i.call(t,o)&&(!e.selectionSet||s(e.selectionSet,t[o],r))}return!0})))}function c(e){return null!==e&&"object"==typeof e&&!Object(n.B)(e)&&!Array.isArray(e)}function u(e){var t=e&&e.__field;return t&&Object(n.y)(t)}function l(){return new n.b(f)}var f=function(e,t,r){var n=e[r],i=t[r];return u(n)?(n.__value=this.merge(n.__value,u(i)?i.__value:i),n):u(i)?(i.__value=this.merge(n,i.__value),i):this.merge(n,i)}},function(e,t,r){"use strict";var n;function i(e){return!!e&&e<7}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),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={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));var n=r(24);function i(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,n.a&&(e.prototype[n.a]=t)}var o=function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(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}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"==typeof e.kind}i(a)},function(e,t,r){"use strict";r(39),r(40),r(41),r(42);var n=r(43);r.d(t,"execute",(function(){return n.a}));var i=r(11);r.d(t,"ApolloLink",(function(){return i.a}));var o=r(44);r.o(o,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return o.createHttpLink}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return S})),r.d(t,"b",(function(){return T})),r.d(t,"c",(function(){return N}));var n=r(16);function i(){}var o=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=i),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),a=new n.a;function s(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var c=[];function u(e,t){if(!e)throw new Error(t||"assertion failure")}function l(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var f=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!h(this))return this.value[0]},e.prototype.recompute=function(){return u(!this.recomputing,"already recomputing"),function(e){var t=a.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),h(e)?y(t,e):b(t,e)}(this),h(this)?function(e){g(e),a.withValue(e,p,[e]),function(e){if("function"==typeof e.subscribe)try{s(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,h(e))return;v(e)}(e);return l(e.value)}(this):l(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,d(this),g(this),s(this))},e.prototype.dispose=function(){var e=this;g(this),s(this),this.parents.forEach((function(t){t.setDirty(),O(t,e)}))},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=c.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),c.push(this.deps),this.deps=null)},e.count=0,e}();function p(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function h(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function d(e){e.parents.forEach((function(t){return y(t,e)}))}function v(e){e.parents.forEach((function(t){return b(t,e)}))}function y(e,t){if(u(e.childValues.has(t)),u(h(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=c.pop()||new Set;e.dirtyChildren.add(t),d(e)}function b(e,t){u(e.childValues.has(t)),u(!h(t));var r,n,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(r=o,n=t.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),m(e,t),h(e)||v(e)}function m(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(c.length<100&&c.push(r),e.dirtyChildren=null))}function g(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){O(e,r)})),e.forgetDeps(),u(null===e.dirtyChildren)}function O(e,t){t.parents.delete(e),e.childValues.delete(t),m(e,t)}var w=function(){return Object.create(null)},E=Array.prototype,k=E.forEach,j=E.slice,S=function(){function e(e,t){void 0===t&&(t=w),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return k.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(j.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();function T(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=a.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(s(i),i.unsubscribe=r(e))}}return n.dirty=function(e){var r=t.get(e);r&&(r.forEach((function(e){return e.setDirty()})),t.delete(e),s(r))},n}var x=new S("function"==typeof WeakMap);function _(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x.lookupArray(e)}var I=new Set;function N(e,t){void 0===t&&(t=Object.create(null));var r=new o(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs||function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},i=t.makeCacheKey||_;function s(){var o=i.apply(null,n.apply(null,arguments));if(void 0===o)return e.apply(null,arguments);var s=Array.prototype.slice.call(arguments),c=r.get(o);c?c.args=s:(c=new f(e,s),r.set(o,c),c.subscribe=t.subscribe);var u=c.recompute();return r.set(o,c),I.add(r),a.hasValue()||(I.forEach((function(e){return e.clean()})),I.clear()),u}function c(){var e=i.apply(null,arguments);if(void 0!==e)return r.get(e)}return s.dirty=function(){var e=c.apply(null,arguments);e&&e.setDirty()},s.peek=function(){var e=c.apply(null,arguments);if(e)return e.peek()},s.forget=function(){var e=i.apply(null,arguments);return void 0!==e&&r.delete(e)},s}},function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function c(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t),s=i.call(r);if(n!==s)return!1;switch(n){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":if(l(t,r))return!0;var c=Object.keys(t),f=Object.keys(r),p=c.length;if(p!==f.length)return!1;for(var h=0;h<p;++h)if(!o.call(r,c[h]))return!1;for(h=0;h<p;++h){var d=c[h];if(!e(t[d],r[d]))return!1}return!0;case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==""+r;case"[object Map]":case"[object Set]":if(t.size!==r.size)return!1;if(l(t,r))return!0;for(var v=t.entries(),y="[object Map]"===n;;){var b=v.next();if(b.done)break;var m=b.value,g=m[0],O=m[1];if(!r.has(g))return!1;if(y&&!e(O,r.get(g)))return!1}return!0;case"[object Function]":var w=a.call(t);return w===a.call(r)&&(k=u,!((j=(E=w).length-k.length)>=0&&E.indexOf(k,j)===j))}var E,k,j;return!1}(e,t)}finally{s.clear()}}var u="{ [native code] }";function l(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"e",(function(){return s})),r.d(t,"a",(function(){return u})),r.d(t,"d",(function(){return l}));var n=r(1);function i(e){return new n.c((function(t){t.error(e)}))}var o=r(2);var a=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};function s(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 o.a(26)}return e}var c=r(0);function u(e,t){var r=Object(c.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(c.a)(Object(c.a)({},r),e(r)):Object(c.a)(Object(c.a)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(c.a)({},r)}}),t}function l(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(n.r)(t.query)||void 0:""),t}},function(e,t,r){var n=r(59).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var s=!0;var c=!1;function u(e){var t=i(e);if(o[t])return o[t];var r=n(e,{experimentalFragmentVariables:c});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,s=Object.keys(t);for(i in s)s.hasOwnProperty(i)&&(o=t[s[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[s[i]]=e(o,!0)));return t}(r=function(e){for(var t,r={},n=[],o=0;o<e.definitions.length;o++){var c=e.definitions[o];if("FragmentDefinition"===c.kind){var u=c.name.value,l=i((t=c.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(u)&&!a[u][l]?(s&&console.warn("Warning: fragment with name "+u+" 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[u][l]=!0):a.hasOwnProperty(u)||(a[u]={},a[u][l]=!0),r[l]||(r[l]=!0,n.push(c))}else n.push(c)}return e.definitions=n,e}(r),!1),o[t]=r,r}function l(){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 u(r)}l.default=l,l.resetCaches=function(){o={},a={}},l.disableFragmentWarnings=function(){s=!1},l.enableExperimentalFragmentVariables=function(){c=!0},l.disableExperimentalFragmentVariables=function(){c=!1},e.exports=l},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(0),i=r(2),o=r(1),a=r(9);function s(e,t){return t?t(e):o.c.of()}function c(e){return"function"==typeof e?new l(e):e}function u(e){return e.request.length<=1}!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}Object(n.c)(t,e)}(Error);var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i=c(r),a=c(n||new e(s));return u(i)&&u(a)?new e((function(e){return t(e)?i.request(e)||o.c.of():a.request(e)||o.c.of()})):new e((function(e,r){return t(e)?i.request(e,r)||o.c.of():a.request(e,r)||o.c.of()}))},e.execute=function(e,t){return e.request(Object(a.a)(t.context,Object(a.d)(Object(a.e)(t))))||o.c.of()},e.concat=function(t,r){var n=c(t);if(u(n))return n;var i=c(r);return u(i)?new e((function(e){return n.request(e,(function(e){return i.request(e)||o.c.of()}))||o.c.of()})):new e((function(e,t){return n.request(e,(function(e){return i.request(e,t)||o.c.of()}))||o.c.of()}))},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new i.a(21)},e.prototype.onError=function(e){throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(0),i=r(1);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(r){var n,o,a=r.graphQLErrors,s=r.networkError,c=r.errorMessage,u=r.extraInfo,l=e.call(this,c)||this;return l.graphQLErrors=a||[],l.networkError=s||null,l.message=c||(n=l,o="",Object(i.A)(n.graphQLErrors)&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";o+=t+"\n"})),n.networkError&&(o+=n.networkError.message+"\n"),o=o.replace(/\n$/,"")),l.extraInfo=u,l.__proto__=t.prototype,l}return Object(n.c)(t,e),t}(Error)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return s}));var n=r(33),i=r(5),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],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:["description","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","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],h=void 0,d=void 0,v=void 0,y=[],b=[],m=e;do{var g=++f===l.length,O=g&&0!==p.length;if(g){if(d=0===b.length?void 0:y[y.length-1],h=v,v=b.pop(),O){if(u)h=h.slice();else{for(var w={},E=0,k=Object.keys(h);E<k.length;E++){var j=k[E];w[j]=h[j]}h=w}for(var S=0,T=0;T<p.length;T++){var x=p[T][0],_=p[T][1];u&&(x-=S),u&&null===_?(h.splice(x,1),S++):h[x]=_}}f=s.index,l=s.keys,p=s.edits,u=s.inArray,s=s.prev}else{if(d=v?u?f:l[f]:void 0,null==(h=v?v[d]:m))continue;v&&y.push(d)}var I,N=void 0;if(!Array.isArray(h)){if(!Object(i.c)(h))throw new Error("Invalid AST Node: ".concat(Object(n.a)(h),"."));var D=c(t,h.kind,g);if(D){if((N=D.call(t,h,d,v,y,b))===a)break;if(!1===N){if(!g){y.pop();continue}}else if(void 0!==N&&(p.push([d,N]),!g)){if(!Object(i.c)(N)){y.pop();continue}h=N}}}if(void 0===N&&O&&p.push([d,h]),g)y.pop();else s={inArray:u,index:f,keys:l,edits:p,prev:s},l=(u=Array.isArray(h))?h:null!==(I=r[h.kind])&&void 0!==I?I:[],f=-1,p=[],v&&b.push(v),v=h}while(void 0!==s);return 0!==p.length&&(m=p[p.length-1][1]),m}function c(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(e,t,r){"use strict";var n=r(48);r.d(t,"ApolloClient",(function(){return n.a}));r(32),r(4);var i=r(46);r.o(i,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return i.createHttpLink}));r(12);var o=r(15);r.d(t,"InMemoryCache",(function(){return o.InMemoryCache}));var a=r(27);r.o(a,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return a.createHttpLink}));var s=r(6);r.o(s,"createHttpLink")&&r.d(t,"createHttpLink",(function(){return s.createHttpLink}));var c=r(31);r.d(t,"createHttpLink",(function(){return c.b}));r(9),r(1);var u=r(10),l=r.n(u);r.d(t,"gql",(function(){return l.a}));l.a.resetCaches,l.a.disableFragmentWarnings,l.a.enableExperimentalFragmentVariables,l.a.disableExperimentalFragmentVariables},function(e,t,r){"use strict";r(28),r(45),r(29),r(1);var n=r(49);r.d(t,"InMemoryCache",(function(){return n.a}));var i=r(18);r.d(t,"cacheSlot",(function(){return i.a}));r(23),r(27)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=null,i={},o=1,a=Array,s=a["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=n;n={parent:s,slots:a};try{return t.apply(i,r)}finally{n=s}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},function(e,t,r){"use strict";(function(e){var n=r(20);t.a={add:function(t){n.a.remove(),e(".carbon-theme-options h2").append('<span class="ww-loading"></span>')},remove:function(){return e(".ww-loading").remove()}}}).call(this,r(26))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(16),i=r(7),o=Object(i.b)(),a=new n.a;function s(e,t){var r=[];e.forEach((function(e){return r.push(e)})),e.clear(),r.forEach(t)}function c(e){var t=new Set,r=new Set,n=function(i){if(arguments.length>0)e!==i&&(e=i,o.dirty(n),t.forEach(u),s(r,(function(t){return t(e)})));else{var c=a.getValue();c&&t.add(c),o(n)}return e};return n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}},n}function u(e){e.broadcastWatches&&e.broadcastWatches()}},function(e,t,r){"use strict";var n=r(21);function i(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function s(e){i(a,n,o,s,c,"next",e)}function c(e){i(a,n,o,s,c,"throw",e)}s(void 0)}))}}var a=window.ww_token;t.a={isUserLoggedIn:function(){var e=this;return o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clientProvider.getDefaultClient()){t.next=2;break}return t.abrupt("return",!1);case 2:return t.next=4,e.getUser();case 4:return t.abrupt("return",!!t.sent);case 5:case"end":return t.stop()}}),t)})))()},getUser:function(){return o(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,clientProvider.getDefaultClient().query({query:UserQueries.GetUser});case 3:return t=e.sent,r=t.data.user,e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",null);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},reset:function(){return o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.client.defaults.headers.Authorization="",window.localStorage.removeItem("accessToken"),e.next=4,clientProvider.getDefaultClient().cache.reset();case 4:window.FileCache&&window.FileCache.clearCache(),window.ServerDataInitializer.resetServerDataCheckers(),StoreStateManager.getInstance().resetState();case 7:case"end":return e.stop()}}),e)})))()},setToken:function(e,t){return o(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=e,r.next=3,n.a.PostCredentials({token:a,user:t});case 3:case"end":return r.stop()}}),r)})))()},getToken:function(){return a},hasToken:function(){return!!this.getToken()}}},function(e,t,r){"use strict";(function(e){var n=r(17);t.a={add:function(t){n.a.remove(),e('<p class="ww-error-message">'.concat(t,"</p>")).insertAfter(".carbon-theme-options h2")},remove:function(){return e(".ww-error-message").remove()}}}).call(this,r(26))},function(e,t,r){"use strict";(function(e){r(19);var n=r(20),i=window.ww_ajax_nonce,o=function(e){return e.success||n.a.add("Request failed"),e};t.a={PostCredentials:function(t){var r=t.token,n=t.user;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_token",token:r,user:n,wp_nonce:i},error:function(){console.log("asdfasdf")}}).then(o)},PostWidgets:function(t){var r=t.widgets,n=t.globalWidgetId;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_widgets",widgets:r,globalWidgetId:n,wp_nonce:i}}).then(o)},PostBubbleWidget:function(t){var r=t.id;return e.ajax({url:ajaxurl,method:"POST",data:{action:"ww_save_bubble_widget",id:r,wp_nonce:i}}).then(o)}}}).call(this,r(26))},function(e,t,r){e.exports=r(53).Observable},function(e,t,r){"use strict";r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return v}));var n=r(0),i=r(7),o=r(2),a=r(1),s=r(3),c=r(18);function u(e){return void 0!==e.args?e.args:e.field?Object(a.e)(e.field,e.variables):null}var l=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},f=function(){},p=function(e,t){return t.fieldName},h=function(e,t,r){return(0,r.mergeObjects)(e,t)},d=function(e,t){return t},v=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(n.a)({dataIdFromObject:l},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?Object(a.u)(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:n,selectionSet:t,fragmentMap:r},s=this.getTypePolicy(n,!1),c=s&&s.keyFn||this.config.dataIdFromObject;c;){var u=c(e,o);if(!Array.isArray(u)){i=u;break}c=m(u)}return i=i&&String(i),o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=t.getTypePolicy(r,!0),i=e[r],o=i.keyFields,a=i.fields;i.queryType&&t.setRootTypename("Query",r),i.mutationType&&t.setRootTypename("Mutation",r),i.subscriptionType&&t.setRootTypename("Subscription",r),n.keyFn=!1===o?f:Array.isArray(o)?m(o):"function"==typeof o?o:n.keyFn,a&&Object.keys(a).forEach((function(e){var n=t.getFieldPolicy(r,e,!0),i=a[e];if("function"==typeof i)n.read=i;else{var o=i.keyArgs,s=i.read,c=i.merge;n.keyFn=!1===o?p:Array.isArray(o)?b(o):"function"==typeof o?o:n.keyFn,"function"==typeof s&&(n.read=s),n.merge="function"==typeof c?c:!0===c?h:!1===c?d:n.merge}n.read&&n.merge&&(n.keyFn=n.keyFn||p)}))}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Object(o.b)(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(s.a);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e,t){if(e)return this.typePolicies[e]||t&&(this.typePolicies[e]=Object.create(null))},e.prototype.getFieldPolicy=function(e,t,r){var n=this.getTypePolicy(e,r);if(n){var i=n.fields||r&&(n.fields=Object.create(null));if(i)return i[t]||r&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),c=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=0;f<c.length;++f){var p=c[f];if(p.has(o))return a.has(o)||a.add(o),!0;p.forEach(u),l&&f===c.length-1&&Object(s.f)(e.selectionSet,r,n)&&(l=!1,!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)})))}return!1},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var c={typename:r,fieldName:n,field:e.field||null,variables:e.variables},l=u(e);o;){var f=o(l,c);if(!Array.isArray(f)){t=f||n;break}o=b(f)}return void 0===t&&(t=e.field?Object(a.L)(e.field,e.variables):Object(a.t)(n,u(e))),n===Object(s.b)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Object(s.b)(i),u=t.store.getFieldValue(r,i),l=this.getFieldPolicy(e.typename,o,!1),f=l&&l.read;if(f){var p=y(this,r,e,t,t.store.getStorage(Object(a.B)(r)?r.__ref:r,i));return c.a.withValue(this.cache,f,[u,p])}return u}},e.prototype.hasMergeFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.merge)},e.prototype.applyMerges=function(e,t,r,i){var o,c=this;if(Object(s.d)(t)){var u=t.__field,l=u.name.value;t=(0,this.getFieldPolicy(t.__typename,l,!1).merge)(e,t.__value,y(this,void 0,{typename:t.__typename,fieldName:l,field:u,variables:r.variables},r,i?(o=r.store).getStorage.apply(o,i):Object.create(null)))}if(Array.isArray(t))return t.map((function(e){return c.applyMerges(void 0,e,r)}));if(Object(s.g)(t)){var f,p=e,h=t,d=Object(a.B)(p)?p.__ref:"object"==typeof p&&p;if(Object.keys(h).forEach((function(e){var t=h[e],n=c.applyMerges(r.store.getFieldValue(p,e),t,r,d?[d,e]:void 0);n!==t&&((f=f||Object.create(null))[e]=n)})),f)return Object(n.a)(Object(n.a)({},h),f)}return t},e}();function y(e,t,r,i,c){var l=e.getStoreFieldName(r),f=Object(s.b)(l),p=r.variables||i.variables,h=i.store,d=h.getFieldValue,v=h.toReference,y=h.canRead;return{args:u(r),field:r.field||null,fieldName:f,storeFieldName:l,variables:p,isReference:a.B,toReference:v,storage:c,cache:e.cache,canRead:y,readField:function(r,o){var a="string"==typeof r?{fieldName:r,from:o}:Object(n.a)({},r);return void 0===a.from&&(a.from=t),void 0===a.variables&&(a.variables=p),e.readField(a,i)},mergeObjects:function(t,r){if(Array.isArray(t)||Array.isArray(r))throw new o.a(2);if(t&&"object"==typeof t&&r&&"object"==typeof r){var a=d(t,"__typename"),c=d(r,"__typename"),u=a&&c&&a!==c,l=e.applyMerges(u?void 0:t,r,i);return!u&&Object(s.g)(t)&&Object(s.g)(l)?Object(n.a)(Object(n.a)({},t),l):l}return r}}}function b(e){return function(t,r){return t?r.fieldName+":"+JSON.stringify(g(t,e)):r.fieldName}}function m(e){var t=new i.a(a.h);return function(r,n){var i;if(n.selectionSet&&n.fragmentMap){var o=t.lookupArray([n.selectionSet,n.fragmentMap]);i=o.aliasMap||(o.aliasMap=function e(t,r){var n=Object.create(null),i=new Set([t]);return i.forEach((function(t){t.selections.forEach((function(t){if(Object(a.y)(t)){if(t.alias){var o=t.alias.value,s=t.name.value;if(s!==o)(n.aliases||(n.aliases=Object.create(null)))[s]=o}if(t.selectionSet)(n.subsets||(n.subsets=Object.create(null)))[t.name.value]=e(t.selectionSet,r)}else{var c=Object(a.n)(t,r);c&&i.add(c.selectionSet)}}))})),n}(n.selectionSet,n.fragmentMap))}var s=n.keyObject=g(r,e,i);return n.typename+":"+JSON.stringify(s)}}function g(e,t,r){var n,i=Object.create(null);return t.forEach((function(t){if(Array.isArray(t)){if("string"==typeof n){var a=r&&r.subsets,c=a&&a[n];i[n]=g(e[n],t,c)}}else{var u=r&&r.aliases,l=u&&u[t]||t;Object(o.b)(s.c.call(e,l),3),i[n=t]=e[l]}})),i}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=n},function(e,t,r){"use strict";var n=r(14),i=r(0),o=r(6),a=r(1);function s(e){return new o.ApolloLink((function(t,r){return new a.c((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=s(t),r}Object(i.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(o.ApolloLink);var c=r(22),u=r.n(c).a,l=r(2),f=r(30);!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}Object(i.c)(t,e)}(Error);function p(e){return e.request.length<=1}function h(e,t){var r=Object(i.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(i.a)({},r,e(r)):Object(i.a)({},r,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(i.a)({},r)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}(t)}}),t}function d(e,t){return t?t(e):u.of()}function v(e){return"function"==typeof e?new g(e):e}function y(){return new g((function(){return u.of()}))}function b(e){return 0===e.length?y():e.map(v).reduce((function(e,t){return e.concat(t)}))}function m(e,t,r){var n=v(t),i=v(r||new g(d));return p(n)&&p(i)?new g((function(t){return e(t)?n.request(t)||u.of():i.request(t)||u.of()})):new g((function(t,r){return e(t)?n.request(t,r)||u.of():i.request(t,r)||u.of()}))}var g=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,r,n){return this.concat(m(t,r,n||new e(d)))},e.prototype.concat=function(e){return function(e,t){var r=v(e);if(p(r))return r;var n=v(t);return p(n)?new g((function(e){return r.request(e,(function(e){return n.request(e)||u.of()}))||u.of()})):new g((function(e,t){return r.request(e,(function(e){return n.request(e,t)||u.of()}))||u.of()}))}(this,e)},e.prototype.request=function(e,t){throw new l.a(1)},e.empty=y,e.from=b,e.split=m,e.execute=O,e}();function O(e,t){return e.request(h(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(f.a)(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 l.a(2)}return e}(t))))||u.of()}var w=r(19),E=r(20);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T,x=new n.createHttpLink({uri:"".concat(ww_api_url,"/graphql")}),_=(T=function(e,t){var r=t.headers;return w.a.hasToken()?{headers:j(j({},r),{},{Authorization:"Bearer ".concat(w.a.getToken())})}:r},new o.ApolloLink((function(e,t){var r=Object(i.e)(e,[]);return new a.c((function(n){var i;return Promise.resolve(r).then((function(t){return T(t,e.getContext())})).then(e.setContext).then((function(){i=t(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()}}))}))),I=s((function(e){var t=e.graphQLErrors;t.length&&E.a.add(t[0].message)})),N=new n.ApolloClient({link:g.from([I,_,x]),cache:new n.InMemoryCache});t.a=N},function(e,t){e.exports=jQuery},function(e,t){},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(7),i=r(1),o=function(){function e(){this.getFragmentDoc=Object(n.c)(i.o)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return n}));r(13),r(2),r(0),r(34),r(47);function n(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}"function"==typeof WeakMap&&"object"==typeof navigator&&navigator.product,Object.prototype.toString;Object.prototype.hasOwnProperty;Object.create({})}).call(this,r(37))},function(e,t,r){"use strict";r.d(t,"b",(function(){return E})),r.d(t,"a",(function(){return k}));var n=r(9),i=Object.prototype.hasOwnProperty;var o=r(2),a=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new o.a(23);throw n.parseError=e,n}return r},s=r(0),c=r(13),u=r(35);function l(e){return Object(c.b)(e,{leave:f})}var f={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return h(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=v("(",h(e.variableDefinitions,", "),")"),i=h(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?h([t,h([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+v(" = ",n)+v(" ",h(i," "))},SelectionSet:function(e){return d(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet,a=v("",t,": ")+r,s=a+v("(",h(n,", "),")");return s.length>80&&(s=a+v("(\n",y(h(n,"\n")),"\n)")),h([s,h(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+v(" ",h(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return h(["...",v("on ",t),h(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(v("(",h(n,", "),")")," ")+"on ".concat(r," ").concat(v("",h(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?Object(u.b)(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"["+h(e.values,", ")+"]"},ObjectValue:function(e){return"{"+h(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+v("(",h(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:p((function(e){var t=e.directives,r=e.operationTypes;return h(["schema",h(t," "),d(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:p((function(e){return h(["scalar",e.name,h(e.directives," ")]," ")})),ObjectTypeDefinition:p((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["type",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")})),FieldDefinition:p((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(m(r)?v("(\n",y(h(r,"\n")),"\n)"):v("(",h(r,", "),")"))+": "+n+v(" ",h(i," "))})),InputValueDefinition:p((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return h([t+": "+r,v("= ",n),h(i," ")]," ")})),InterfaceTypeDefinition:p((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["interface",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")})),UnionTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.types;return h(["union",t,h(r," "),n&&0!==n.length?"= "+h(n," | "):""]," ")})),EnumTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.values;return h(["enum",t,h(r," "),d(n)]," ")})),EnumValueDefinition:p((function(e){return h([e.name,h(e.directives," ")]," ")})),InputObjectTypeDefinition:p((function(e){var t=e.name,r=e.directives,n=e.fields;return h(["input",t,h(r," "),d(n)]," ")})),DirectiveDefinition:p((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(m(r)?v("(\n",y(h(r,"\n")),"\n)"):v("(",h(r,", "),")"))+(n?" repeatable":"")+" on "+h(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return h(["extend schema",h(t," "),d(r)]," ")},ScalarTypeExtension:function(e){return h(["extend scalar",e.name,h(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["extend type",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return h(["extend interface",t,v("implements ",h(r," & ")),h(n," "),d(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return h(["extend union",t,h(r," "),n&&0!==n.length?"= "+h(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return h(["extend enum",t,h(r," "),d(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return h(["extend input",t,h(r," "),d(n)]," ")}};function p(e){return function(t){return h([t.description,e(t)],"\n")}}function h(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function d(e){return v("{\n",y(h(e,"\n")),"\n}")}function v(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function y(e){return v("  ",e.replace(/\n/g,"\n  "))}function b(e){return-1!==e.indexOf("\n")}function m(e){return null!=e&&e.some(b)}var g={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},O=r(6),w=r(1);var E=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,c=e.fetch,u=e.includeExtensions,f=e.useGETForQueries,p=Object(s.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch)throw new o.a(22)}(c),c||(c=fetch);var h={http:{includeExtensions:u},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new O.ApolloLink((function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),o=e.getContext(),u={};if(o.clientAwareness){var p=o.clientAwareness,d=p.name,v=p.version;d&&(u["apollographql-client-name"]=d),v&&(u["apollographql-client-version"]=v)}var y,b=Object(s.a)(Object(s.a)({},u),o.headers),m={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:b},O=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Object(s.a)(Object(s.a)({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};r.forEach((function(e){i=Object(s.a)(Object(s.a)(Object(s.a)({},i),e.options),{headers:Object(s.a)(Object(s.a)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Object(s.a)(Object(s.a)({},o),e.http)}));var a=e.operationName,c=e.extensions,u=e.variables,f=e.query,p={operationName:a,variables:u};return o.includeExtensions&&(p.extensions=c),o.includeQuery&&(p.query=l(f)),{options:i,body:p}}(e,g,h,m),E=O.options,k=O.body;if(!E.signal){var j=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),S=j.controller,T=j.signal;(y=S)&&(E.signal=T)}if(f&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(E.method="GET"),"GET"===E.method){var x=function(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=a(t.variables)}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=a(t.extensions)}catch(e){return{parseError:e}}n("extensions",o)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+r.join("&")+s}}(t,k),_=x.newURI,I=x.parseError;if(I)return Object(n.b)(I);t=_}else try{E.body=a(k)}catch(I){return Object(n.b)(I)}return new w.c((function(r){var o;return c(t,E).then((function(t){return e.setContext({response:t}),t})).then((o=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}})).then((function(t){return e.status>=300&&Object(n.c)(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||i.call(t,"data")||i.call(t,"errors")||Object(n.c)(e,t,"Server response was missing for query '"+(Array.isArray(o)?o.map((function(e){return e.operationName})):o.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(){y&&y.abort()}}))}))},k=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,E(t).request)||this;return r.options=t,r}return Object(s.c)(t,e),t}(O.ApolloLink)},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),i=r(2),o=r(8),a=r(4),s=r(1),c=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,Object(s.j)(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,r=this.options.pollInterval;if(r){if((!t||t.interval!==r)&&(Object(i.b)(r,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},a.a.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),u=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,c=e.call(this,(function(e){return c.onSubscribe(e)}))||this;c.observers=new Set,c.subscriptions=new Set,c.observer={next:function(e){(c.lastError||c.isDifferentFromLastResult(e))&&(c.updateLastResult(e),Object(s.C)(c.observers,"next",e))},error:function(e){c.updateLastResult(Object(n.a)(Object(n.a)({},c.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:a.a.error,loading:!1})),Object(s.C)(c.observers,"error",c.lastError=e)}},c.isTornDown=!1,c.options=o,c.queryId=r.generateQueryId();var u=Object(s.q)(o.query);return c.queryName=u&&u.name&&u.name.value,c.queryManager=r,c.queryInfo=i,c}return Object(n.c)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,r=this.queryInfo.networkStatus||t&&t.networkStatus||a.a.ready,i=Object(n.a)(Object(n.a)({},t),{loading:Object(a.b)(r),networkStatus:r});if(this.isTornDown)return i;var o=this.options.fetchPolicy,s=void 0===o?"cache-first":o;if("no-cache"===s||"network-only"===s)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var c=this.queryInfo.getDiff();i.data=c.complete||this.options.returnPartialData?c.result:void 0,c.complete?(i.networkStatus!==a.a.loading||"cache-first"!==s&&"cache-only"!==s||(i.networkStatus=a.a.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!Object(o.a)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"no-cache"!==r&&"cache-and-network"!==r&&(t.fetchPolicy="network-only",t.nextFetchPolicy=r||"cache-first"),e&&!Object(o.a)(this.options.variables,e)&&(t.variables=this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,a.a.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Object(n.a)(Object(n.a)({},e.query?e:Object(n.a)(Object(n.a)(Object(n.a)({},this.options),e),{variables:Object(n.a)(Object(n.a)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return r.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=a.a.fetchMore,this.observe()),this.queryManager.fetchQuery(i,r,a.a.fetchMore).then((function(n){var i=n.data,o=e.updateQuery;return o?t.updateQuery((function(e){return o(e,{fetchMoreResult:i,variables:r.variables})})):t.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(Object(o.a)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,r=void 0===t?"cache-first":t,n={fetchPolicy:r,variables:e};return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(n.fetchPolicy="cache-and-network",n.nextFetchPolicy=r),this.reobserve(n,a.a.setVariables)},t.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(s.i)(e),Object(s.A)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=l)}catch(e){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,r=this.queryManager,i=this.queryId;return r.setObservableQuery(this),new c(this.observer,e?this.options:Object(n.a)({},this.options),(function(e,n){return r.setObservableQuery(t),r.fetchQueryObservable(i,e,n)}),!r.ssrMode&&function(){return!Object(a.b)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.isTornDown=!0,this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.stopQuery(this.queryId),this.observers.clear()},t}(s.c);function l(e){}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(24);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),i=function(e){var t=e[String(n.a)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"==typeof o?o:a(o,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o<r;++o)i.push(a(e[o],t));1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t,r=!0,n=!0,i=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==r)for(var n=1;n<t.length;n++)t[n]=t[n].slice(r);for(var o=0;o<t.length&&i(t[o]);)++o;for(var a=t.length;a>o&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!n||o||a||r,c="";return!s||n&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,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 s(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 c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=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 d(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];u.push(new d(e,t)),1!==u.length||l||s(h)},d.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";var n=r(14),i=r(25);function o(){var e=c(["\n\t\t\tmutation updateBubbleWidget($input: UpdateBubbleWidgetInput!) {\n\t\t\t\twidget: updateBubbleWidget(input: $input) {\n\t\t\t\t\tid\n\t\t\t\t\tuniqueId\n\t\t\t\t\tname\n\t\t\t\t\tbrandingOptions\n\t\t\t\t\tpublicUrl\n\t\t\t\t\twidgetable {\n\t\t\t\t\t\t... on BubbleWidget {\n\t\t\t\t\t\tid\n\t\t\t\t\t\ttitle\n\t\t\t\t\t\tshowBackdrop\n\t\t\t\t\t\tfont\n\t\t\t\t\t\tbuttonColor\n\t\t\t\t\t\tbackgroundColor\n\t\t\t\t\t\tborderColor\n\t\t\t\t\t\tfitVideo\n\t\t\t\t\t\tsize\n\t\t\t\t\t\tpreviewTextFontSize\n\t\t\t\t\t\tavailabilityUrls\n\t\t\t\t\t\tuseAsDefaultForAllPages\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t"]);return o=function(){return e},e}function a(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function s(){var e=c(["\n\t\t\tmutation Login($input: LoginInput!) {\n\t\t\t\tlogin(input: $input)\n\t\t\t},\n\t\t"]);return s=function(){return e},e}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var u,l,f=(u=regeneratorRuntime.mark((function e(t,r){var a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>2&&void 0!==s[2]&&s[2],e.next=3,i.a.mutate({mutation:Object(n.gql)(o()),variables:{input:{id:t,availabilityUrls:"".concat(r),useAsDefaultForAllPages:a,forceAvailabilityUrlsRewrite:!0}}});case 3:case"end":return e.stop()}}),e)})),l=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=u.apply(e,t);function o(e){a(i,r,n,o,s,"next",e)}function s(e){a(i,r,n,o,s,"throw",e)}o(void 0)}))},function(e,t){return l.apply(this,arguments)});t.a={Login:function(e,t){return i.a.mutate({mutation:Object(n.gql)(s()),variables:{input:{email:e,password:t}}})},UpdateWidgetURL:f}},function(e,t,r){"use strict";r(11).a.empty},function(e,t,r){"use strict";r(11).a.from},function(e,t,r){"use strict";r(11).a.split},function(e,t,r){"use strict";r(11).a.concat},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=r(11).a.execute},function(e,t){},function(e,t,r){"use strict";var n;n||(n={})},function(e,t){},function(e,t,r){"use strict";var n=Object.prototype;n.toString,n.hasOwnProperty,new Map},function(e,t,r){"use strict";r.d(t,"a",(function(){return k}));var n=r(0),i=r(2),o=r(6),a=r(1),s=r(31),c=r(8),u=r(12),l=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]={mutation: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}(),f=r(32),p=r(4),h=r(13),d=r(15),v=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(a.F)(t.resolvers,e)})):this.resolvers=Object(a.F)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(n.a)(Object(n.a)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(a.x)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(a.H)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(n.a)(Object(n.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(n.a)(Object(n.a)({},t),e.exportedVariables)}))]:[2,Object(n.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(h.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return h.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(a.g)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,(function(){var c,u,l,f,p,h,d,v,y;return Object(n.d)(this,(function(b){return c=Object(a.p)(e),u=Object(a.m)(e),l=Object(a.k)(u),f=c.operation,p=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(h=this).cache,v=h.client,y={fragmentMap:l,context:Object(n.a)(Object(n.a)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(c.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var o,s,c,u,l,f=this;return Object(n.d)(this,(function(p){return o=r.fragmentMap,s=r.context,c=r.variables,u=[t],l=function(e){return Object(n.b)(f,void 0,void 0,(function(){var l,f;return Object(n.d)(this,(function(n){return Object(a.K)(e,c)?Object(a.y)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&u.push(((r={})[Object(a.J)(e)]=t,r))}))]:(Object(a.z)(e)?l=e:(l=o[e.name.value],Object(i.b)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(t,f,s))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(a.G)(u)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var i,o,s,c,u,l,f,p,h,v=this;return Object(n.d)(this,(function(n){return i=r.variables,o=e.name.value,s=Object(a.J)(e),c=o!==s,u=t[s]||t[o],l=Promise.resolve(u),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[c?o:s])&&(l=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[t,Object(a.e)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?v.resolveSubSelectedArray(e,t,r):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}(),y=new(a.h?WeakMap:Map);function b(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return y.set(e,(y.get(e)+1)%1e15),r.apply(this,arguments)})}var m=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.dirty=!1,this.diff=null,this.observableQuery=null,y.has(e)||(y.set(e,0),b(e,"evict"),b(e,"modify"),b(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||p.a.loading;return this.variables&&this.networkStatus!==p.a.loading&&!Object(c.a)(this.variables,e.variables)&&(t=p.a.setVariables),Object(c.a)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&Object(c.a)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,this.dirty||(e&&e.result)===(r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(p.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){this.cancel(),delete this.cancel;var e=this.observableQuery;e&&e.stopPolling()},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(c.a)(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===y.get(this.cache)&&Object(c.a)(t,r.variables)&&Object(c.a)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=Object(a.A)(e.errors)?e.errors:[],"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:r&&(g(e,t.errorPolicy)?this.cache.performTransaction((function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:y.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=p.a.ready},e.prototype.markError=function(e){return this.networkStatus=p.a.error,this.lastWrite=void 0,e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function g(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!Object(a.v)(e);return!n&&r&&e.data&&(n=!0),n}var O=Object.prototype.hasOwnProperty,w=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,s=void 0===o?function(){}:o,c=e.ssrMode,u=void 0!==c&&c,f=e.clientAwareness,p=void 0===f?{}:f,h=e.localState,d=e.assumeImmutableResults;this.mutationStore=new l,this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.h?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.onBroadcast=s,this.clientAwareness=p,this.localState=h||new v({cache:t}),this.ssrMode=u,this.assumeImmutableResults=!!d}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(new i.a(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,p=void 0!==f&&f,h=e.update,d=e.errorPolicy,v=void 0===d?"none":d,y=e.fetchPolicy,b=e.context,m=void 0===b?{}:b;return Object(n.b)(this,void 0,void 0,(function(){var e,c,f,d,b=this;return Object(n.d)(this,(function(g){switch(g.label){case 0:return Object(i.b)(t,13),Object(i.b)(!y||"no-cache"===y,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,m)]:[3,2];case 1:r=g.sent(),g.label=2;case 2:return c=function(){var e={};return s&&b.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var i=n.queryName;i&&O.call(s,i)&&(e[r]={updater:s[i],queryInfo:b.queries.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),o&&(f="function"==typeof o?o(r):o,this.cache.recordOptimisticTransaction((function(n){try{E({mutationId:e,result:{data:f},document:t,variables:r,errorPolicy:v,queryUpdatersById:c(),update:h},n)}catch(e){}}),e)),this.broadcastQueries(),d=this,[2,new Promise((function(i,s){var f,b;d.getObservableFromLink(t,Object(n.a)(Object(n.a)({},m),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(Object(a.v)(n)&&"none"===v)b=new u.a({graphQLErrors:n.errors});else{if(d.mutationStore.markMutationResult(e),"no-cache"!==y)try{E({mutationId:e,result:n,document:t,variables:r,errorPolicy:v,queryUpdatersById:c(),update:h},d.cache)}catch(e){return void(b=new u.a({networkError:e}))}f=n}},error:function(t){d.mutationStore.markMutationError(e,t),o&&d.cache.removeOptimistic(e),d.broadcastQueries(),s(new u.a({networkError:t}))},complete:function(){if(b&&d.mutationStore.markMutationError(e,b),o&&d.cache.removeOptimistic(e),d.broadcastQueries(),b)s(b);else{"function"==typeof l&&(l=l(f));var t=[];Object(a.A)(l)&&l.forEach((function(e){if("string"==typeof e)d.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(d.query(r))}})),Promise.all(p?t:[]).then((function(){"ignore"===v&&f&&Object(a.v)(f)&&delete f.errors,i(f)}),s)}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=Object(a.I)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Object(a.w)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:Object(a.l)(Object(a.q)(r))},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(i),c(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.a)(Object(n.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Object(n.a)(Object(n.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new m(this.cache),r=new f.a({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;Object(i.b)(e.query,15),Object(i.b)("Document"===e.query.kind,16),Object(i.b)(!e.returnPartialData,17),Object(i.b)(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally((function(){return t.stopQuery(r)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=p.a.loading:e.stop()})),this.mutationStore.reset(),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,c=void 0===s?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var l=function(e){return t.getObservableFromLink(r,c,e,!1).map((function(o){if("no-cache"!==n&&(g(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Object(a.v)(o))throw new u.a({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var f=this.localState.addExportedVariables(r,o,c).then(l);return new a.c((function(e){var t=null;return f.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var s,c,u=this;void 0===i&&(i=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var f=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:Object(a.r)(l)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},t),{forceFetch:!i}))};if(t=h.context,i){var d=f.get(l)||new Map;f.set(l,d);var v=JSON.stringify(r);if(!(c=d.get(v))){var y=new a.a([Object(o.execute)(p,h)]);d.set(v,c=y),y.cleanup((function(){d.delete(v)&&d.size<1&&f.delete(l)}))}}else c=new a.a([Object(o.execute)(p,h)])}else c=new a.a([a.c.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(c=Object(a.f)(c,(function(e){return u.localState.runResolvers({document:b,remoteResult:e,context:t,variables:r})}))),c},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId;return Object(a.f)(this.getObservableFromLink(e.document,r.context,r.variables),(function(i){var o=Object(a.A)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new u.a({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:e.networkStatus||p.a.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s}),(function(t){var r=Object(u.b)(t)?t:new u.a({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=p.a.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),s=this.getQuery(e),c=s.networkStatus,u=t.fetchPolicy,l=void 0===u?"cache-first":u,f=t.errorPolicy,h=void 0===f?"none":f,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,b=void 0!==y&&y,m=t.context,g=void 0===m?{}:m;("cache-first"===l||"cache-and-network"===l||"network-only"===l||"no-cache"===l)&&b&&"number"==typeof c&&c!==r&&Object(p.b)(r)&&("cache-first"!==l&&(l="cache-and-network"),v=!0);var O=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:h,returnPartialData:v,notifyOnNetworkStatusChange:b,context:g}),w=function(e){return O.variables=e,n.fetchQueryByPolicy(s,O,r)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return E.cancel(e)}))}));var E=new a.a(this.transform(O.query).hasClientExports?this.localState.addExportedVariables(O.query,O.variables,O.context).then(w):w(O.variables));return E.cleanup((function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)})),E},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,c=t.fetchPolicy,u=t.errorPolicy,l=t.returnPartialData,f=t.context;e.init({document:o,variables:s,lastRequestId:this.generateRequestId(),networkStatus:r});var h=function(){return e.getDiff(s)},d=function(t,r){void 0===r&&(r=e.networkStatus||p.a.loading);var c=t.result;var u=function(e){return a.c.of(Object(n.a)({data:e,loading:Object(p.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:c},context:f,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data)})):u(c)},v=function(t){return i.getResultsFromLink(e,t,{variables:s,context:f,fetchPolicy:c,errorPolicy:u})};switch(c){default:case"cache-first":return(y=h()).complete?[d(y,e.markReady())]:l?[d(y),v(!0)]:[v(!0)];case"cache-and-network":var y;return(y=h()).complete||l?[d(y),v(!0)]:[v(!0)];case"cache-only":return[d(h(),e.markReady())];case"network-only":return[v(!0)];case"no-cache":return[v(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new m(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)(Object(n.a)({},t),{clientAwareness:this.clientAwareness})},e}();function E(e,t){if(g(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.queryUpdatersById;n&&Object.keys(n).forEach((function(i){var o=n[i],s=o.updater,c=o.queryInfo,u=c.document,l=c.variables,f=t.diff({query:u,variables:l,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var h=s(p,{mutationResult:e.result,queryName:Object(a.r)(u)||void 0,queryVariables:l});h&&r.push({result:h,dataId:"ROOT_QUERY",query:u,variables:l})}})),t.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&n(t,e.result)}),null)}}var k=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,c=e.cache,u=e.ssrMode,l=void 0!==u&&u,f=e.ssrForceFetchDelay,p=void 0===f?0:f,h=e.connectToDevTools,d=e.queryDeduplication,y=void 0===d||d,b=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,O=e.resolvers,E=e.typeDefs,k=e.fragmentMatcher,j=e.name,S=e.version,T=e.link;if(T||(T=r?new s.a({uri:r,credentials:n,headers:a}):o.ApolloLink.empty()),!c)throw new i.a(9);this.link=T,this.cache=c,this.disableNetworkFetches=l||p>0,this.queryDeduplication=y,this.defaultOptions=b||{},this.typeDefs=E,p&&setTimeout((function(){return t.disableNetworkFetches=!1}),p),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);void 0!==h&&(h&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new v({cache:c,client:this,resolvers:O,fragmentMatcher:k}),this.queryManager=new w({cache:this.cache,link:this.link,queryDeduplication:y,ssrMode:l,clientAwareness:{name:j,version:S},localState:this.localState,assumeImmutableResults:g,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(a.j)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(a.j)(this.defaultOptions.query,e)),Object(i.b)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(a.j)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(o.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},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.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n,i,o=r(0),a=(r(58),r(7)),s=r(28),c=r(1),u=r(2),l=r(8),f=r(3),p=Object.create(null),h=function(){return p},d=Object.create(null),v=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(c.E)(Object(c.B)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(c.B)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Object(c.D)(e);if(Object(c.B)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Object(c.D)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return Object(o.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),f.c.call(this.data,e)){var r=this.data[e];if(r&&f.c.call(r,t))return r[t]}return"__typename"===t&&f.c.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof m?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),f.c.call(this.data,e)?this.data[e]:this instanceof m?this.parent.lookup(e,t):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),i=new c.b(g).merge(n,t);if(this.data[e]=i,i!==n&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(t).forEach((function(e){n&&n[e]===i[e]||(o[Object(f.b)(e)]=1,void 0!==i[e]||r instanceof m||delete i[e])})),Object.keys(o).forEach((function(t){return r.group.dirty(e,t)}))}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,u={DELETE:p,INVALIDATE:d,isReference:c.B,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Object(c.D)(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(l){var v=Object(f.b)(l),y=n[l];if(void 0!==y){var b="function"==typeof t?t:t[l]||t[v];if(b){var m=b===h?p:b(Object(c.E)(y),Object(o.a)(Object(o.a)({},u),{fieldName:v,storeFieldName:l,storage:r.getStorage(e,l)}));m===d?r.group.dirty(e,l):(m===p&&(m=void 0),m!==y&&(i[l]=m,a=!0,y=m))}void 0!==y&&(s=!1)}})),a)return this.merge(e,i),s&&(this instanceof m?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=h,n):h)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(f.c.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof m&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;Object.keys(this.data).forEach((function(r){e&&f.c.call(e,r)||t.delete(r)})),e&&Object.keys(e).forEach((function(r){t.merge(r,e[r])}))},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof m&&this.parent.getRootIdSet(e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){f.c.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof m;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!f.c.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"==typeof e};r.forEach((function(e){Object(c.B)(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)}))}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),y=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new a.a(c.h),this.d=e?Object(a.b)():null}return e.prototype.depend=function(e,t){this.d&&this.d(b(e,t))},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t))},e}();function b(e,t){return Object(f.b)(t)+"#"+e}n=v||(v={}),i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new y(i))||this;return s.storageTrie=new a.a(c.h),s.sharedLayerGroup=new y(i),o&&s.replace(o),s}return Object(o.c)(t,e),t.prototype.addLayer=function(e,t){return new m(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(e,t){return this.storageTrie.lookup(e,t)},t}(n),n.Root=i;var m=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return Object(o.c)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){t.data[e]!==r.lookup(e)&&t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(o.a)(Object(o.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return f.c.call(this.data,t)?Object(o.a)(Object(o.a)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(e,t){return this.parent.getStorage(e,t)},t}(v);function g(e,t,r){var n=e[r],i=t[r];return Object(l.a)(n,i)?n:i}function O(e){return!!(e instanceof v&&e.group.caching)}var w=r(29);function E(e,t){return new w.a(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var k=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=Object(a.c)((function(e){return t.execSelectionSetImpl(e)}),{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(O(r.store))return r.store.makeCacheKey(e,Object(c.B)(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=Object(a.c)((function(e){return t.execSubSelectedArrayImpl(e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(O(n.store))return n.store.makeCacheKey(t,r,n.varString)}}),this.config=Object(o.a)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,a=e.variables,s=e.returnPartialData,u=void 0===s||s,l=this.config.cache.policies;a=Object(o.a)(Object(o.a)({},Object(c.l)(Object(c.s)(r))),a);var f=this.executeSelectionSet({selectionSet:Object(c.p)(r).selectionSet,objectOrReference:Object(c.D)(i),context:{store:t,query:r,policies:l,variables:a,varString:JSON.stringify(a),fragmentMap:Object(c.k)(Object(c.m)(r)),path:[],clientOnly:!1}}),p=f.missing&&f.missing.length>0;if(p&&!u)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},e.prototype.isFresh=function(e,t,r,n){if(O(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if(Object(c.B)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[E(new u.a(4),i)]};var o=i.variables,a=i.policies,s=i.store,l=[],f={result:null},p=s.getFieldValue(n,"__typename");function h(){return f.missing||(f.missing=[])}function d(e){var t;return e.missing&&(t=h()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!a.rootIdsByTypename[p]&&l.push({__typename:p});var v=new Set(r.selections);return v.forEach((function(e){var r;if(Object(c.K)(e,o))if(Object(c.y)(e)){var s=a.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),f=Object(c.J)(e);i.path.push(f);var y=i.clientOnly;i.clientOnly=y||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===s?c.d.added(e)||h().push(E(new u.a(5),i)):Array.isArray(s)?s=d(t.executeSubSelectedArray({field:e,array:s,context:i})):e.selectionSet&&null!=s&&(s=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,context:i}))),void 0!==s&&l.push(((r={})[f]=s,r)),i.clientOnly=y,Object(u.b)(i.path.pop()===f)}else{var b=Object(c.n)(e,i.fragmentMap);b&&a.fragmentMatches(b,p)&&b.selectionSet.selections.forEach(v.add,v)}})),f.result=Object(c.G)(l),this.knownResults.set(f.result,r),f},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function a(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),Object(u.b)(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?a(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(Object(u.b)(o.path.pop()===t),e))})),missing:t}},e}();var j=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,i=e.store,a=e.variables,s=Object(c.q)(t),l=Object(f.e)();a=Object(o.a)(Object(o.a)({},Object(c.l)(s)),a);var p=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:s.selectionSet,context:{store:i,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:JSON.stringify(a),fragmentMap:Object(c.k)(Object(c.m)(t))}});if(!Object(c.B)(p))throw new u.a(7);return i.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.out,s=void 0===a?{shouldApplyMerges:!1}:a,l=this.cache.policies,f=l.identify(n,i,o.fragmentMap),p=f[0],h=f[1];if("string"==typeof(r=r||p)){var d=o.written[r]||(o.written[r]=[]),v=Object(c.D)(r);if(d.indexOf(i)>=0)return v;if(d.push(i),this.reader&&this.reader.isFresh(n,v,i,o))return v}var y=Object.create(null);h&&(y=o.merge(y,h));var b=r&&l.rootTypenamesById[r]||Object(c.u)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof b&&(y.__typename=b);var m=new Set(i.selections);if(m.forEach((function(e){var r;if(Object(c.K)(e,o.variables))if(Object(c.y)(e)){var i=Object(c.J)(e),a=n[i];if(void 0!==a){var f=l.getStoreFieldName({typename:b,fieldName:e.name.value,field:e,variables:o.variables}),p=t.processFieldValue(a,e,o,s);l.hasMergeFunction(b,e.name.value)&&(p={__field:e,__typename:b,__value:p},s.shouldApplyMerges=!0),y=o.merge(y,((r={})[f]=p,r))}else if(l.usingPossibleTypes&&!Object(c.x)(["defer","client"],e))throw new u.a(8)}else{var h=Object(c.n)(e,o.fragmentMap);h&&l.fragmentMatches(h,b,n,o.variables)&&h.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof r){var g=Object(c.D)(r);return s.shouldApplyMerges&&(y=l.applyMerges(g,y,o)),o.store.merge(r,y),g}return y},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e){return i.processFieldValue(e,t,r,n)})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,out:n}):e},e}();new Set;var S=r(18),T=r(23),x={dataIdFromObject:T.b,addTypename:!0,resultCaching:!0,typePolicies:{}},_=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=S.b,r.txCount=0,r.maybeBroadcastWatch=Object(a.c)((function(e,t){return r.broadcastWatch.call(r,e,!!t)}),{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(O(t)){var n=e.optimistic,i=e.rootId,o=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:n,rootId:i,variables:o}))}}}),r.watchDep=Object(a.b)(),r.config=Object(o.a)(Object(o.a)({},x),t),r.addTypename=!!r.config.addTypename,r.policies=new T.a({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new v.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new j(r,r.storeReader=new k({cache:r,addTypename:r.addTypename})),r}return Object(o.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){var t=e.optimistic?this.optimisticData:this.data;return("string"!=typeof e.rootId||t.has(e.rootId))&&this.storeReader.diffQueryAgainstStore({store:t,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:!1}).result||null},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(f.c.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return Object(c.B)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(f.c.call(e,"id"))return!1;e=Object(o.a)(Object(o.a)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r,i=n.data,o=n.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},i=!1;"string"==typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(c.d)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(s.a)},function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;if("function"==typeof r)if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(e){}}else t="@@observable";return t}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(14),i=r(25),o=r(10),a=r.n(o);function s(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n    fragment LibraryVideoFragment on LibraryVideo {\n        id\n        title\n        watchable {\n            id\n            thumbnailUrl\n            videoUrl\n            downloadUrl\n            isVideoPortrait\n            ... on Video {\n                gifUrl\n            }\n        }\n    }\n"]);return s=function(){return e},e}var c={LibraryVideoFragment:a()(s())};function u(){var e=d(["\n    fragment FullWidgetDataFragment on Widget {\n        id\n        uniqueId\n        name\n        brandingOptions\n        publicUrl\n        user {\n            id\n            image\n        }\n        widgetable {\n            ... on BubbleWidget {\n                ...BubbleWidgetDataFragment\n            }\n\n            ... on SignatureWidget {\n                ...SignatureWidgetDataFragment\n            }\n\n            ... on PageWidget {\n                ...PageDataWidgetFragment\n            }\n\n            ... on BusinessCardWidget {\n                ...BusinessCardFragment\n            }\n        }\n        libraryVideo {\n            ...LibraryVideoFragment\n        }\n    }\n    ","\n    ","\n    ","\n    ","\n    ","\n"]);return u=function(){return e},e}function l(){var e=d(["\n    fragment BusinessCardFragment on BusinessCardWidget {\n        id\n        email\n        fitVideo\n        autoplay\n        backgroundColor\n        buttonColor\n        websiteUrl\n        phoneNumber\n    }\n"]);return l=function(){return e},e}function f(){var e=d(["\n    fragment PageDataWidgetFragment on PageWidget {\n        id\n        font\n        style\n        autoplay\n        fitVideo\n        buttonColor\n        backgroundColor\n    }\n"]);return f=function(){return e},e}function p(){var e=d(["\n    fragment SignatureWidgetDataFragment on SignatureWidget {\n        id\n        borderColor\n        websiteUrl\n        phoneNumber\n        imageUrl\n    }\n"]);return p=function(){return e},e}function h(){var e=d(["\n    fragment BubbleWidgetDataFragment on BubbleWidget {\n        id\n        title\n        showBackdrop\n        font\n        buttonColor\n        backgroundColor\n        borderColor\n        fitVideo\n        size\n        previewTextFontSize\n        availabilityUrls\n        useAsDefaultForAllPages\n    }\n"]);return h=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=a()(h()),y=a()(p()),b=a()(f()),m=a()(l()),g={BusinessCardFragment:m,PageDataWidgetFragment:b,BubbleWidgetDataFragment:v,SignatureWidgetDataFragment:y,FullWidgetDataFragment:a()(u(),m,b,v,y,c.LibraryVideoFragment)};function O(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n\t\t\tquery GetWidgets($input: WidgetsFilterInput, $page: Int) {\n\t\t\t\tuser: me {\n\t\t\t\t\tid\n\t\t\t\t\tadditionalData {\n\t\t\t\t\t\tglobalWidgetId\n\t\t\t\t\t}\n\t\t\t\t\twidgets(input: $input, page: $page) {\n\t\t\t\t\t\tdata {\n\t\t\t\t\t\t\t...FullWidgetDataFragment\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpaginatorInfo {\n\t\t\t\t\t\t\thasMorePages\n\t\t\t\t\t\t\tcurrentPage\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t","\n\t\t"]);return O=function(){return e},e}t.a={GetWidgets:function(){return i.a.query({query:Object(n.gql)(O(),g.FullWidgetDataFragment)})}}},function(e,t,r){"use strict";r.r(t),function(e){var t=r(19),n=r(38),i=r(51),o=r(21),a=r(17);function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}e(window).load((function(){var r,s,u,l,f=(r=c(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.GetWidgets();case 2:return t=e.sent,r=t.data.user,e.next=6,o.a.PostWidgets({widgets:JSON.stringify(r.widgets.data),globalWidgetId:r.additionalData.globalWidgetId});case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)});window.ww_token&&f(),e(".ww-log-in").on("click",(s=c(regeneratorRuntime.mark((function r(i){var o,s,c,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a.a.add(),o=e('[name="carbon_fields_compact_input[_ww_email]"]').val(),s=e('[name="carbon_fields_compact_input[_ww_password]"]').val(),r.next=5,n.a.Login(o,s);case 5:return c=r.sent,u=c.data.login,t.a.setToken(u,o),r.next=10,f().then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 10:i.preventDefault();case 11:case"end":return r.stop()}}),r)}))),function(e){return s.apply(this,arguments)})),e(".ww-log-out").on("click",(u=c(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a.a.add(),e.next=3,o.a.PostCredentials({action:"ww_save_token",token:"",user:""}).then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 3:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})),e(".ww-save-options").on("click",(l=c(regeneratorRuntime.mark((function t(r){var i,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r.preventDefault(),a.a.add(),i=e('[name="carbon_fields_compact_input[_crb_default_bubble_widget]"]').val(),s=ww_widgets_data,c=s.site_url,s.widgets,"none"===i){t.next=7;break}return t.next=7,n.a.UpdateWidgetURL(i,c,!0);case 7:return t.next=9,o.a.PostBubbleWidget({id:i}).then((function(e){e.success&&(a.a.remove(),window.location.reload())}));case 9:case"end":return t.stop()}}),t)}))),function(e){return l.apply(this,arguments)}))}))}.call(this,r(26))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&Boolean(Symbol[e])},c=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=c("iterator"),l=c("observable"),f=c("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function d(e){return e instanceof k}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function y(e){Promise.resolve().then((function(){try{e()}catch(e){v(e)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(e){v(e)}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(m(e),!i)throw r;i.call(n,r);break;case"complete":m(e),i&&i.call(n)}}catch(e){v(e)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function O(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void y((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void g(e,t,r);e._queue.push({type:t,value:r})}}var w=function(){function e(t,r){n(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new E(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return o(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(m(this),b(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(t){n(this,e),this._subscription=t}return o(e,[{key:"next",value:function(e){O(this._subscription,"next",e)}},{key:"error",value:function(e){O(this._subscription,"error",e)}},{key:"complete",value:function(){O(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(n(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return o(e,[{key:"subscribe",value:function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=p(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=p(t,u)))return new r((function(e){y((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){y((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"==typeof this?this:e;return new i((function(e){y((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))}},{key:f,get:function(){return this}}]),e}();t.Observable=k,a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:l,hostReportError:v},configurable:!0})},function(e,t,r){"use strict";(function(e,t){var n,i=r(50);n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:t;Object(i.a)(n)}).call(this,r(55),r(56)(e))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},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,r){"use strict";(function(e){}).call(this,r(37))},function(e,t){},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.r(t),r.d(t,"parse",(function(){return B})),r.d(t,"parseValue",(function(){return U})),r.d(t,"parseType",(function(){return W})),r.d(t,"Parser",(function(){return K}));"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var i="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function o(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index<t;)i+=1,o=t+1-(r.index+r[0].length);return{line:i,column:o}}function a(e){return s(e.source,o(e.source,e.start))}function s(e,t){var r=e.locationOffset.column-1,n=u(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,l=t.column+s,f="".concat(e.name,":").concat(a,":").concat(l,"\n"),p=n.split(/\r\n|[\n\r]/g),h=p[i];if(h.length>120){for(var d=Math.floor(l/80),v=l%80,y=[],b=0;b<h.length;b+=80)y.push(h.slice(b,b+80));return f+c([["".concat(a),y[0]]].concat(y.slice(1,d+1).map((function(e){return["",e]})),[[" ",u(v-1)+"^"],["",y[d+1]]]))}return f+c([["".concat(a-1),p[i-1]],["".concat(a),h],["",u(l-1)+"^"],["".concat(a+1),p[i+1]]])}function c(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),r=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,n=e[0],i=e[1];return u(r-(t=n).length)+t+(i?" | "+i:" |")})).join("\n")}function u(e){return Array(e+1).join(" ")}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)})(e)}function v(e,t,r){return(v=y()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&b(i,r.prototype),i}).apply(null,arguments)}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(v,e);var t,r,c,u,l,d=(t=v,r=y(),function(){var e,n=m(t);if(r){var i=m(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return p(this,e)});function v(e,t,r,i,a,s,c){var u,l,f,y,b;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),b=d.call(this,e);var m,g=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,O=r;!O&&g&&(O=null===(m=g[0].loc)||void 0===m?void 0:m.source);var w,E=i;!E&&g&&(E=g.reduce((function(e,t){return t.loc&&e.push(t.loc.start),e}),[])),E&&0===E.length&&(E=void 0),i&&r?w=i.map((function(e){return o(r,e)})):g&&(w=g.reduce((function(e,t){return t.loc&&e.push(o(t.loc.source,t.loc.start)),e}),[]));var k,j=c;if(null==j&&null!=s){var S=s.extensions;"object"==n(k=S)&&null!==k&&(j=S)}return Object.defineProperties(h(b),{name:{value:"GraphQLError"},message:{value:e,enumerable:!0,writable:!0},locations:{value:null!==(u=w)&&void 0!==u?u:void 0,enumerable:null!=w},path:{value:null!=a?a:void 0,enumerable:null!=a},nodes:{value:null!=g?g:void 0},source:{value:null!==(l=O)&&void 0!==l?l:void 0},positions:{value:null!==(f=E)&&void 0!==f?f:void 0},originalError:{value:s},extensions:{value:null!==(y=j)&&void 0!==y?y:void 0,enumerable:null!=j}}),(null==s?void 0:s.stack)?(Object.defineProperty(h(b),"stack",{value:s.stack,writable:!0,configurable:!0}),p(b)):(Error.captureStackTrace?Error.captureStackTrace(h(b),v):Object.defineProperty(h(b),"stack",{value:Error().stack,writable:!0,configurable:!0}),b)}return c=v,(u=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];i.loc&&(t+="\n\n"+a(i.loc))}else if(e.source&&e.locations)for(var o=0,c=e.locations;o<c.length;o++){var u=c[o];t+="\n\n"+s(e.source,u)}return t}(this)}},{key:i,get:function(){return"Object"}}])&&f(c.prototype,u),l&&f(c,l),v}(d(Error));function O(e,t,r){return new g("Syntax Error: ".concat(r),void 0,e,[t])}var w=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",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",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",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"}),E=r(5),k=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"}),j=r(33);function S(e,t){if(!Boolean(e))throw new Error(t)}var T=function(e,t){return e instanceof t};function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||S(0,"Body must be a string. Received: ".concat(Object(j.a)(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||S(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||S(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,n;return t=e,(r=[{key:i,get:function(){return"Source"}}])&&x(t.prototype,r),n&&x(t,n),e}();var I=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",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"}),N=r(35),D=function(){function e(e){var t=new E.b(k.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==k.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=R(this,e)}while(e.kind===k.COMMENT);return e},e}();function A(e){return isNaN(e)?k.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function R(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o<i;){var a=n.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new E.b(k.BANG,o,o+1,s,c,t);case 35:return C(r,o,s,c,t);case 36:return new E.b(k.DOLLAR,o,o+1,s,c,t);case 38:return new E.b(k.AMP,o,o+1,s,c,t);case 40:return new E.b(k.PAREN_L,o,o+1,s,c,t);case 41:return new E.b(k.PAREN_R,o,o+1,s,c,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new E.b(k.SPREAD,o,o+3,s,c,t);break;case 58:return new E.b(k.COLON,o,o+1,s,c,t);case 61:return new E.b(k.EQUALS,o,o+1,s,c,t);case 64:return new E.b(k.AT,o,o+1,s,c,t);case 91:return new E.b(k.BRACKET_L,o,o+1,s,c,t);case 93:return new E.b(k.BRACKET_R,o,o+1,s,c,t);case 123:return new E.b(k.BRACE_L,o,o+1,s,c,t);case 124:return new E.b(k.PIPE,o,o+1,s,c,t);case 125:return new E.b(k.BRACE_R,o,o+1,s,c,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?M(r,o,s,c,t,e):q(r,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return P(r,o,a,s,c,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 Q(r,o,s,c,t)}throw O(r,o,F(a))}var u=e.line,l=1+o-e.lineStart;return new E.b(k.EOF,i,i,u,l,t)}function F(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(A(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(A(e),".")}function C(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new E.b(k.COMMENT,t,s,r,n,i,a.slice(t+1,s))}function P(e,t,r,n,i,o){var a=e.body,s=r,c=t,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw O(e,c,"Invalid number, unexpected digit after 0: ".concat(A(s),"."))}else c=L(e,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=L(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=L(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw O(e,c,"Invalid number, expected digit but got: ".concat(A(s),"."));return new E.b(u?k.FLOAT:k.INT,t,c,n,i,o,a.slice(t,c))}function L(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw O(e,i,"Invalid number, expected digit but got: ".concat(A(o),"."))}function q(e,t,r,n,i){for(var o,a,s,c,u=e.body,l=t+1,f=l,p=0,h="";l<u.length&&!isNaN(p=u.charCodeAt(l))&&10!==p&&13!==p;){if(34===p)return h+=u.slice(f,l),new E.b(k.STRING,t,l+1,r,n,i,h);if(p<32&&9!==p)throw O(e,l,"Invalid character within String: ".concat(A(p),"."));if(++l,92===p){switch(h+=u.slice(f,l-1),p=u.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var d=(o=u.charCodeAt(l+1),a=u.charCodeAt(l+2),s=u.charCodeAt(l+3),c=u.charCodeAt(l+4),V(o)<<12|V(a)<<8|V(s)<<4|V(c));if(d<0){var v=u.slice(l+1,l+5);throw O(e,l,"Invalid character escape sequence: \\u".concat(v,"."))}h+=String.fromCharCode(d),l+=4;break;default:throw O(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(p),"."))}f=++l}}throw O(e,l,"Unterminated string.")}function M(e,t,r,n,i,o){for(var a=e.body,s=t+3,c=s,u=0,l="";s<a.length&&!isNaN(u=a.charCodeAt(s));){if(34===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return l+=a.slice(c,s),new E.b(k.BLOCK_STRING,t,s+3,r,n,i,Object(N.a)(l));if(u<32&&9!==u&&10!==u&&13!==u)throw O(e,s,"Invalid character within String: ".concat(A(u),"."));10===u?(++s,++o.line,o.lineStart=s):13===u?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===u&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(l+=a.slice(c,s)+'"""',c=s+=4):++s}throw O(e,s,"Unterminated string.")}function V(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Q(e,t,r,n,i){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new E.b(k.NAME,t,s,r,n,i,o.slice(t,s))}function B(e,t){return new K(e,t).parseDocument()}function U(e,t){var r=new K(e,t);r.expectToken(k.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(k.EOF),n}function W(e,t){var r=new K(e,t);r.expectToken(k.SOF);var n=r.parseTypeReference();return r.expectToken(k.EOF),n}var K=function(){function e(e,t){var r=function(e){return T(e,_)}(e)?e:new _(e);this._lexer=new D(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(k.NAME);return{kind:w.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:w.DOCUMENT,definitions:this.many(k.SOF,this.parseDefinition,k.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(k.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(k.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(k.BRACE_L))return{kind:w.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(k.NAME)&&(t=this.parseName()),{kind:w.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(k.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(k.PAREN_L,this.parseVariableDefinition,k.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:w.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(k.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(k.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(k.DOLLAR),{kind:w.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:w.SELECTION_SET,selections:this.many(k.BRACE_L,this.parseSelection,k.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(k.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(k.COLON)?(e=n,t=this.parseName()):t=n,{kind:w.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(k.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(k.PAREN_L,t,k.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(k.COLON),{kind:w.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:w.ARGUMENT,name:this.parseName(),value:(this.expectToken(k.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(k.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(k.NAME)?{kind:w.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:w.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:w.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case k.BRACKET_L:return this.parseList(e);case k.BRACE_L:return this.parseObject(e);case k.INT:return this._lexer.advance(),{kind:w.INT,value:t.value,loc:this.loc(t)};case k.FLOAT:return this._lexer.advance(),{kind:w.FLOAT,value:t.value,loc:this.loc(t)};case k.STRING:case k.BLOCK_STRING:return this.parseStringLiteral();case k.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:w.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:w.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:w.NULL,loc:this.loc(t)};default:return{kind:w.ENUM,value:t.value,loc:this.loc(t)}}case k.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:w.STRING,value:e.value,block:e.kind===k.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:w.LIST,values:this.any(k.BRACKET_L,(function(){return t.parseValueLiteral(e)}),k.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:w.OBJECT,fields:this.any(k.BRACE_L,(function(){return t.parseObjectField(e)}),k.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(k.COLON),{kind:w.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(k.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(k.AT),{kind:w.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(k.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(k.BRACKET_R),e={kind:w.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(k.BANG)?{kind:w.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:w.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===k.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(k.STRING)||this.peek(k.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);return{kind:w.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(k.COLON);var r=this.parseNamedType();return{kind:w.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(k.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(k.AMP)||this.peek(k.NAME));return t}return this.delimitedMany(k.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(k.BRACE_L)&&this._lexer.lookahead().kind===k.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(k.BRACE_L,this.parseFieldDefinition,k.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(k.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:w.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(k.PAREN_L,this.parseInputValueDef,k.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(k.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(k.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:w.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:w.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:w.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(k.EQUALS)?this.delimitedMany(k.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:w.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(k.BRACE_L,this.parseEnumValueDefinition,k.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:w.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:w.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(k.BRACE_L,this.parseInputValueDef,k.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===k.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(k.BRACE_L,this.parseOperationTypeDefinition,k.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:w.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:w.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:w.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:w.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(k.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:w.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(k.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==I[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new E.a(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw O(this._lexer.source,t.start,"Expected ".concat(z(e),", found ").concat(G(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==k.NAME||t.value!==e)throw O(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(G(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===k.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return O(this._lexer.source,t.start,"Unexpected ".concat(G(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function G(e){var t=e.value;return z(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function z(e){return function(e){return e===k.BANG||e===k.DOLLAR||e===k.AMP||e===k.PAREN_L||e===k.PAREN_R||e===k.SPREAD||e===k.COLON||e===k.EQUALS||e===k.AT||e===k.BRACKET_L||e===k.BRACKET_R||e===k.BRACE_L||e===k.PIPE||e===k.BRACE_R}(e)?'"'.concat(e,'"'):e}}]);
  • warm-welcome/trunk/includes/fields.php

    r2473719 r2479894  
    120120    }
    121121
    122     ob_clean();
     122    ob_start();
    123123    ?>
    124124    <h3>Your widgets</h3>
     
    140140        <p>To place a Signature or a Business widget on your page with the Classic editor you can use the <strong>[ww-widget]</strong> shortcode with widget ID attribute. <pre>Example: [ww-widget id=12]</pre></p>
    141141    </div>
     142    <?php
     143    $html = ob_get_clean();
    142144
    143 
    144     <?php
    145 
    146     $html = ob_get_clean();
    147145    return array(
    148146        Field::make( 'html', 'ww_widgets_list', __( 'Widgets List', ' crb' ) )->set_html( $html )
  • warm-welcome/trunk/includes/save-post.php

    r2473719 r2479894  
    3434                availabilityUrls
    3535                useAsDefaultForAllPages
    36                 hideReplyOptions
    3736            }
    3837        }
  • warm-welcome/trunk/resources/js/graphql/fragments/widget.js

    r2473719 r2479894  
    2323        availabilityUrls
    2424        useAsDefaultForAllPages
    25         hideReplyOptions
    2625    }
    2726`;
  • warm-welcome/trunk/resources/js/graphql/mutations.js

    r2473719 r2479894  
    4949                        availabilityUrls
    5050                        useAsDefaultForAllPages
    51                         hideReplyOptions
    5251                        }
    5352                    }
Note: See TracChangeset for help on using the changeset viewer.