@saasquatch/vanilla-components 1.2.4-1 → 1.2.4-12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-f349e877.js} +157 -0
  2. package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
  3. package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
  6. package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +1182 -42
  7. package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
  8. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
  9. package/dist/cjs/widget-components.cjs.js +3 -3
  10. package/dist/collection/collection-manifest.json +2 -0
  11. package/dist/collection/components/close-button/close-button.js +3 -0
  12. package/dist/collection/components/copy-button/copy-button.js +22 -28
  13. package/dist/collection/components/copy-link-button/copy-link-button.js +16 -16
  14. package/dist/collection/components/cta-component/cta-component.css +6 -0
  15. package/dist/collection/components/cta-component/cta-component.js +393 -0
  16. package/dist/collection/components/global-container/global-container.js +9 -20
  17. package/dist/collection/components/image-component/image-component.js +13 -12
  18. package/dist/collection/components/partner-stat-component/partner-stat-component.js +20 -9
  19. package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
  20. package/dist/collection/components/progress-indicator/progress-indicator.js +557 -0
  21. package/dist/collection/components/referral-code/referral-code.js +3 -0
  22. package/dist/collection/components/referral-component/referral-component.js +1 -0
  23. package/dist/collection/components/referral-list/referral-list.js +70 -88
  24. package/dist/collection/components/rewards-actions/rewards-actions.js +1 -0
  25. package/dist/collection/components/share-button/share-button.js +4 -12
  26. package/dist/collection/components/share-button-container/share-button-container.js +90 -173
  27. package/dist/collection/components/stat-component/stat-component.js +22 -10
  28. package/dist/collection/components/stats-container/stats-container.js +15 -9
  29. package/dist/collection/components/text-component/text-component.js +42 -17
  30. package/dist/collection/services/WidgetHost.js +157 -0
  31. package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +157 -0
  32. package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
  33. package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
  34. package/dist/esm/loader.mjs +3 -3
  35. package/dist/esm/sqh-close-button.entry.js +2 -2
  36. package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1181 -43
  37. package/dist/esm/sqh-referral-code.entry.js +2 -2
  38. package/dist/esm/sqh-rewards-actions.entry.js +1 -1
  39. package/dist/esm/widget-components.mjs +3 -3
  40. package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +96 -4
  41. package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1 -1
  42. package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +53 -3
  43. package/dist/esm-es5/loader.mjs +3 -3
  44. package/dist/esm-es5/sqh-close-button.entry.js +2 -2
  45. package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1073 -56
  46. package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
  47. package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
  48. package/dist/esm-es5/widget-components.mjs +3 -3
  49. package/dist/types/components/close-button/close-button.d.ts +3 -0
  50. package/dist/types/components/copy-button/copy-button.d.ts +14 -28
  51. package/dist/types/components/copy-link-button/copy-link-button.d.ts +10 -16
  52. package/dist/types/components/cta-component/cta-component.d.ts +88 -0
  53. package/dist/types/components/global-container/global-container.d.ts +7 -14
  54. package/dist/types/components/image-component/image-component.d.ts +8 -13
  55. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +12 -9
  56. package/dist/types/components/progress-indicator/progress-indicator.d.ts +96 -0
  57. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  58. package/dist/types/components/referral-component/referral-component.d.ts +1 -0
  59. package/dist/types/components/referral-list/referral-list.d.ts +63 -77
  60. package/dist/types/components/rewards-actions/rewards-actions.d.ts +1 -0
  61. package/dist/types/components/share-button/share-button.d.ts +3 -7
  62. package/dist/types/components/share-button-container/share-button-container.d.ts +49 -137
  63. package/dist/types/components/stat-component/stat-component.d.ts +13 -11
  64. package/dist/types/components/stats-container/stats-container.d.ts +10 -7
  65. package/dist/types/components/text-component/text-component.d.ts +17 -21
  66. package/dist/types/components.d.ts +634 -542
  67. package/dist/types/saasquatch.d.ts +3 -1
  68. package/dist/types/services/WidgetHost.d.ts +6 -0
  69. package/dist/widget-components/p-0e55cfb5.system.entry.js +10 -0
  70. package/dist/widget-components/p-0ec230df.entry.js +233 -0
  71. package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
  72. package/dist/widget-components/{p-54ea7a00.entry.js → p-3ba562d0.entry.js} +1 -1
  73. package/dist/widget-components/{p-366f1663.entry.js → p-4293e873.entry.js} +1 -1
  74. package/dist/widget-components/{p-8e232564.system.js → p-54e83dfb.system.js} +2 -2
  75. package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
  76. package/dist/widget-components/{p-edd43dbc.js → p-6e753d23.js} +68 -3
  77. package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
  78. package/dist/widget-components/{p-b17efca4.system.entry.js → p-abf8a511.system.entry.js} +1 -1
  79. package/dist/widget-components/p-ad5121cf.system.js +1 -0
  80. package/dist/widget-components/p-d9e9c55c.system.entry.js +1 -0
  81. package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
  82. package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
  83. package/dist/widget-components/p-fbf0c7fe.js +1 -0
  84. package/dist/widget-components/widget-components.esm.js +1 -1
  85. package/dist/widget-components/widget-components.js +1 -1
  86. package/docs/raisins.json +1 -1
  87. package/package.json +4 -3
  88. package/dist/widget-components/p-485eaf44.js +0 -1
  89. package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
  90. package/dist/widget-components/p-d416634a.entry.js +0 -148
  91. package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
  92. package/dist/widget-components/p-e61a8100.system.js +0 -1
@@ -1,4 +1,4 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?r(e.value):i(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-22e300c7.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.c;r=e.u}],execute:function(){e("w",jn);
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?r(e.value):i(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-22e300c7.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.c;r=e.u}],execute:function(){e("w",Vn);
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Objec
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n=function(e,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return n(e,t)};function i(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){a=Object.assign||function e(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))t[a]=r[a]}return t};return a.apply(this,arguments)};function o(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++){if(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){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?r(e.value):i(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))}function u(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}function c(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}var l=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var n=r;t.default=n}));r(l);var f=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var r=n(l);function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var r=[].concat(t,[e]);var n=p(e);if(n!==undefined){var i=n.call(e);if(i!==e){return typeof i==="string"?i:u(i,r)}}else if(Array.isArray(e)){return d(e,r)}return f(e,r)}function f(e,t){var r=Object.keys(e);if(r.length===0){return"{}"}if(t.length>o){return"["+h(e)+"]"}var n=r.map((function(r){var n=u(e[r],t);return r+": "+n}));return"{ "+n.join(", ")+" }"}function d(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var r=Math.min(a,e.length);var n=e.length-r;var i=[];for(var s=0;s<r;++s){i.push(u(e[s],t))}if(n===1){i.push("... 1 more item")}else if(n>1){i.push("... ".concat(n," more items"))}return"["+i.join(", ")+"]"}function p(e){var t=e[String(r.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function h(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var r=e.constructor.name;if(typeof r==="string"&&r!==""){return r}}return t}}));r(f);var d=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=u;t.visitWithTypeInfo=c;t.getVisitFn=l;t.BREAK=t.QueryDocumentKeys=void 0;var r=n(f);function n(e){return e&&e.__esModule?e:{default:e}}var i={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:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var u=Array.isArray(e);var c=[e];var f=-1;var d=[];var p=undefined;var h=undefined;var v=undefined;var y=[];var m=[];var g=e;do{f++;var b=f===c.length;var I=b&&d.length!==0;if(b){h=m.length===0?undefined:y[y.length-1];p=v;v=m.pop();if(I){if(u){p=p.slice()}else{var k={};for(var E=0,w=Object.keys(p);E<w.length;E++){var T=w[E];k[T]=p[T]}p=k}var S=0;for(var _=0;_<d.length;_++){var O=d[_][0];var x=d[_][1];if(u){O-=S}if(u&&x===null){p.splice(O,1);S++}else{p[O]=x}}}f=o.index;c=o.keys;d=o.edits;u=o.inArray;o=o.prev}else{h=v?u?f:c[f]:undefined;p=v?v[h]:g;if(p===null||p===undefined){continue}if(v){y.push(h)}}var N=void 0;if(!Array.isArray(p)){if(!s(p)){throw new Error("Invalid AST Node: "+(0,r.default)(p))}var D=l(t,p.kind,b);if(D){N=D.call(t,p,h,v,y,m);if(N===a){break}if(N===false){if(!b){y.pop();continue}}else if(N!==undefined){d.push([h,N]);if(!b){if(s(N)){p=N}else{y.pop();continue}}}}}if(N===undefined&&I){d.push([h,p])}if(b){y.pop()}else{o={inArray:u,index:f,keys:c,edits:d,prev:o};u=Array.isArray(p);c=u?p:n[p.kind]||[];f=-1;d=[];if(v){m.push(v)}v=p}}while(o!==undefined);if(d.length!==0){g=d[d.length-1][1]}return g}function s(e){return Boolean(e&&typeof e.kind==="string")}function u(e){var t=new Array(e.length);return{enter:function r(n){for(var i=0;i<e.length;i++){if(!t[i]){var o=l(e[i],n.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=n}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function r(n){for(var i=0;i<e.length;i++){if(!t[i]){var o=l(e[i],n.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===n){t[i]=null}}}}}function c(e,t){return{enter:function r(n){e.enter(n);var i=l(t,n.kind,false);if(i){var a=i.apply(t,arguments);if(a!==undefined){e.leave(n);if(s(a)){e.enter(a)}}return a}},leave:function r(n){var i=l(t,n.kind,true);var a;if(i){a=i.apply(t,arguments)}e.leave(n);return a}}}function l(e,t,r){var n=e[t];if(n){if(!r&&typeof n==="function"){return n}var i=r?n.leave:n.enter;if(typeof i==="function"){return i}}else{var a=r?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));r(d);var p=d.visit;var h=d.BREAK;var v="Invariant Violation";var y=Object.setPrototypeOf,m=y===void 0?function(e,t){e.__proto__=t;return e}:y;var g=function(e){i(t,e);function t(r){if(r===void 0){r=v}var n=e.call(this,typeof r==="number"?v+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;n.framesToPop=1;n.name=v;m(n,t.prototype);return n}return t}(Error);function b(e,t){if(!e){throw new g(t)}}function I(e){return function(){return console[e].apply(console,arguments)}}(function(e){e.warn=I("warn");e.error=I("error")})(b||(b={}));var k={env:{}};if(typeof process==="object"){k=process}else try{Function("stub","process = stub")(k)}catch(e){}var E=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var r=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]};var a={key:n,value:t[n]};return e(i,a)}}}(t.cmp);var i=[];return function e(t){if(t&&t.toJSON&&typeof t.toJSON==="function"){t=t.toJSON()}if(t===undefined)return;if(typeof t=="number")return isFinite(t)?""+t:"null";if(typeof t!=="object")return JSON.stringify(t);var a,o;if(Array.isArray(t)){o="[";for(a=0;a<t.length;a++){if(a)o+=",";o+=e(t[a])||"null"}return o+"]"}if(t===null)return"null";if(i.indexOf(t)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1;var u=Object.keys(t).sort(n&&n(t));o="";for(a=0;a<u.length;a++){var c=u[a];var l=e(t[c]);if(!l)continue;if(o)o+=",";o+=JSON.stringify(c)+":"+l}i.splice(s,1);return"{"+o+"}"}(e)};var w=Object.prototype,T=w.toString,S=w.hasOwnProperty;var _=new Map;function O(e,t){try{return x(e,t)}finally{_.clear()}}function x(e,t){if(e===t){return true}var r=T.call(e);var n=T.call(t);if(r!==n){return false}switch(r){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(N(e,t))return true;var i=Object.keys(e);var a=Object.keys(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!S.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!x(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(N(e,t))return true;var c=e.entries();var l=r==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!x(h,t.get(p))){return false}}return true}}return false}function N(e,t){var r=_.get(e);if(r){if(r.has(t))return true}else{_.set(e,r=new Set)}r.add(t);return false}function D(e){return e.kind==="StringValue"}function R(e){return e.kind==="BooleanValue"}function C(e){return e.kind==="IntValue"}function A(e){return e.kind==="FloatValue"}function M(e){return e.kind==="Variable"}function F(e){return e.kind==="ObjectValue"}function q(e){return e.kind==="ListValue"}function L(e){return e.kind==="EnumValue"}function Q(e){return e.kind==="NullValue"}function P(e,t,r,n){if(C(r)||A(r)){e[t.value]=Number(r.value)}else if(R(r)||D(r)){e[t.value]=r.value}else if(F(r)){var i={};r.fields.map((function(e){return P(i,e.name,e.value,n)}));e[t.value]=i}else if(M(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(q(r)){e[t.value]=r.values.map((function(e){var r={};P(r,t,e,n);return r[t.value]}))}else if(L(r)){e[t.value]=r.value}else if(Q(r)){e[t.value]=null}else{throw new g(17)}}function K(e,t){var r=null;if(e.directives){r={};e.directives.forEach((function(e){r[e.name.value]={};if(e.arguments){e.arguments.forEach((function(n){var i=n.name,a=n.value;return P(r[e.name.value],i,a,t)}))}}))}var n=null;if(e.arguments&&e.arguments.length){n={};e.arguments.forEach((function(e){var r=e.name,i=e.value;return P(n,r,i,t)}))}return j(e.name.value,n,r)}var V=["connection","include","skip","client","rest","export"];function j(e,t,r){if(r&&r["connection"]&&r["connection"]["key"]){if(r["connection"]["filter"]&&r["connection"]["filter"].length>0){var n=r["connection"]["filter"]?r["connection"]["filter"]:[];n.sort();var i=t;var a={};n.forEach((function(e){a[e]=i[e]}));return r["connection"]["key"]+"("+JSON.stringify(a)+")"}else{return r["connection"]["key"]}}var o=e;if(t){var s=E(t);o+="("+s+")"}if(r){Object.keys(r).forEach((function(e){if(V.indexOf(e)!==-1)return;if(r[e]&&Object.keys(r[e]).length){o+="@"+e+"("+JSON.stringify(r[e])+")"}else{o+="@"+e}}))}return o}function $(e,t){if(e.arguments&&e.arguments.length){var r={};e.arguments.forEach((function(e){var n=e.name,i=e.value;return P(r,n,i,t)}));return r}return null}function B(e){return e.alias?e.alias.value:e.name.value}function U(e){return e.kind==="Field"}function G(e){return e.kind==="InlineFragment"}function Y(e){return e&&e.type==="id"&&typeof e.generated==="boolean"}function J(e,t){if(t===void 0){t=false}return a({type:"id",generated:t},typeof e==="string"?{id:e,typename:undefined}:e)}function W(e){return e!=null&&typeof e==="object"&&e.type==="json"}function z(e,t){if(e.directives&&e.directives.length){var r={};e.directives.forEach((function(e){r[e.name.value]=$(e,t)}));return r}return null}function X(e,t){if(t===void 0){t={}}return re(e.directives).every((function(e){var r=e.directive,n=e.ifArgument;var i=false;if(n.value.kind==="Variable"){i=t[n.value.name.value];b(i!==void 0,13)}else{i=n.value.value}return r.name.value==="skip"?!i:i}))}function H(e){var t=[];p(e,{Directive:function(e){t.push(e.name.value)}});return t}function Z(e,t){return H(t).some((function(t){return e.indexOf(t)>-1}))}function ee(e){return e&&Z(["client"],e)&&Z(["export"],e)}function te(e){var t=e.name.value;return t==="skip"||t==="include"}function re(e){return e?e.filter(te).map((function(e){var t=e.arguments;b(t&&t.length===1,14);var r=t[0];b(r.name&&r.name.value==="if",15);var n=r.value;b(n&&(n.kind==="Variable"||n.kind==="BooleanValue"),16);return{directive:e,ifArgument:r}})):[]}function ne(e,t){var r=t;var n=[];e.definitions.forEach((function(e){if(e.kind==="OperationDefinition"){throw new g(11)}if(e.kind==="FragmentDefinition"){n.push(e)}}));if(typeof r==="undefined"){b(n.length===1,12);r=n[0].name.value}var i=a(a({},e),{definitions:c([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)});return i}function ie(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}t.forEach((function(t){if(typeof t==="undefined"||t===null){return}Object.keys(t).forEach((function(r){e[r]=t[r]}))}));return e}function ae(e){b(e&&e.kind==="Document",2);var t=e.definitions.filter((function(e){return e.kind!=="FragmentDefinition"})).map((function(e){if(e.kind!=="OperationDefinition"){throw new g(3)}return e}));b(t.length<=1,4);return e}function oe(e){ae(e);return e.definitions.filter((function(e){return e.kind==="OperationDefinition"}))[0]}function se(e){return e.definitions.filter((function(e){return e.kind==="OperationDefinition"&&e.name})).map((function(e){return e.name.value}))[0]||null}function ue(e){return e.definitions.filter((function(e){return e.kind==="FragmentDefinition"}))}function ce(e){var t=oe(e);b(t&&t.operation==="query",6);return t}function le(e){b(e.kind==="Document",7);b(e.definitions.length<=1,8);var t=e.definitions[0];b(t.kind==="FragmentDefinition",9);return t}function fe(e){ae(e);var t;for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription"){return i}}if(i.kind==="FragmentDefinition"&&!t){t=i}}if(t){return t}throw new g(10)}function de(e){if(e===void 0){e=[]}var t={};e.forEach((function(e){t[e.name.value]=e}));return t}function pe(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){var t=e.defaultValue;return t})).map((function(e){var t=e.variable,r=e.defaultValue;var n={};P(n,t.name,r);return n}));return ie.apply(void 0,c([{}],t))}return{}}function he(e,t,r){var n=0;e.forEach((function(r,i){if(t.call(this,r,i,e)){e[n++]=r}}),r);e.length=n;return e}var ve={kind:"Field",name:{kind:"Name",value:"__typename"}};function ye(e,t){return e.selectionSet.selections.every((function(e){return e.kind==="FragmentSpread"&&ye(t[e.name.value],t)}))}function me(e){return ye(oe(e)||le(e),de(ue(e)))?null:e}function ge(e){return function t(r){return e.some((function(e){return e.name&&e.name===r.name.value||e.test&&e.test(r)}))}}function be(e,t){var r=Object.create(null);var n=[];var i=Object.create(null);var a=[];var o=me(p(t,{Variable:{enter:function(e,t,n){if(n.kind!=="VariableDefinition"){r[e.name.value]=true}}},Field:{enter:function(t){if(e&&t.directives){var r=e.some((function(e){return e.remove}));if(r&&t.directives&&t.directives.some(ge(e))){if(t.arguments){t.arguments.forEach((function(e){if(e.value.kind==="Variable"){n.push({name:e.value.name.value})}}))}if(t.selectionSet){_e(t.selectionSet).forEach((function(e){a.push({name:e.name.value})}))}return null}}}},FragmentSpread:{enter:function(e){i[e.name.value]=true}},Directive:{enter:function(t){if(ge(e)(t)){return null}}}}));if(o&&he(n,(function(e){return!r[e.name]})).length){o=Te(n,o)}if(o&&he(a,(function(e){return!i[e.name]})).length){o=Se(a,o)}return o}function Ie(e){return p(ae(e),{SelectionSet:{enter:function(e,t,r){if(r&&r.kind==="OperationDefinition"){return}var n=e.selections;if(!n){return}var i=n.some((function(e){return U(e)&&(e.name.value==="__typename"||e.name.value.lastIndexOf("__",0)===0)}));if(i){return}var o=r;if(U(o)&&o.directives&&o.directives.some((function(e){return e.name.value==="export"}))){return}return a(a({},e),{selections:c(n,[ve])})}}})}var ke={test:function(e){var t=e.name.value==="connection";if(t){if(!e.arguments||!e.arguments.some((function(e){return e.name.value==="key"})));}return t}};function Ee(e){return be([ke],ae(e))}function we(e){return function t(r){return e.some((function(e){return r.value&&r.value.kind==="Variable"&&r.value.name&&(e.name===r.value.name.value||e.test&&e.test(r))}))}}function Te(e,t){var r=we(e);return me(p(t,{OperationDefinition:{enter:function(t){return a(a({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){var n=e.some((function(e){return e.remove}));if(n){var i=0;t.arguments.forEach((function(e){if(r(e)){i+=1}}));if(i===1){return null}}}},Argument:{enter:function(e){if(r(e)){return null}}}}))}function Se(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value}))){return null}}return me(p(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function _e(e){var t=[];e.selections.forEach((function(e){if((U(e)||G(e))&&e.selectionSet){_e(e.selectionSet).forEach((function(e){return t.push(e)}))}else if(e.kind==="FragmentSpread"){t.push(e)}}));return t}function Oe(e){var t=fe(e);var r=t.operation;if(r==="query"){return e}var n=p(e,{OperationDefinition:{enter:function(e){return a(a({},e),{operation:"query"})}}});return n}function xe(e){ae(e);var t=be([{test:function(e){return e.name.value==="client"},remove:true}],e);if(t){t=p(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet){var t=e.selectionSet.selections.every((function(e){return U(e)&&e.name.value==="__typename"}));if(t){return null}}}}})}return t}var Ne=typeof WeakMap==="function"&&!(typeof navigator==="object"&&navigator.product==="ReactNative");var De=Object.prototype.toString;function Re(e){return Ce(e,new Map)}function Ce(e,t){switch(De.call(e)){case"[object Array]":{if(t.has(e))return t.get(e);var r=e.slice(0);t.set(e,r);r.forEach((function(e,n){r[n]=Ce(e,t)}));return r}case"[object Object]":{if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));t.set(e,n);Object.keys(e).forEach((function(r){n[r]=Ce(e[r],t)}));return n}default:return e}}function Ae(){if(typeof process!=="undefined"&&"production"){return"production"}return"development"}function Me(e){return Ae()===e}function Fe(){return Me("development")===true}function qe(){return Me("test")===true}function Le(e){try{return e()}catch(e){if(console.error){console.error(e)}}}function Qe(e){return e.errors&&e.errors.length}function Pe(e){Object.freeze(e);Object.getOwnPropertyNames(e).forEach((function(t){if(e[t]!==null&&(typeof e[t]==="object"||typeof e[t]==="function")&&!Object.isFrozen(e[t])){Pe(e[t])}}));return e}function Ke(e){if(Fe()||qe()){var t=typeof Symbol==="function"&&typeof Symbol("")==="string";if(!t){return Pe(e)}}return e}var Ve=Object.prototype.hasOwnProperty;function je(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return $e(e)}function $e(e){var t=e[0]||{};var r=e.length;if(r>1){var n=[];t=Ge(t,n);for(var i=1;i<r;++i){t=Ue(t,e[i],n)}}return t}function Be(e){return e!==null&&typeof e==="object"}function Ue(e,t,r){if(Be(t)&&Be(e)){if(Object.isExtensible&&!Object.isExtensible(e)){e=Ge(e,r)}Object.keys(t).forEach((function(n){var i=t[n];if(Ve.call(e,n)){var a=e[n];if(i!==a){e[n]=Ue(Ge(a,r),i,r)}}else{e[n]=i}}));return e}return t}function Ge(e,t){if(e!==null&&typeof e==="object"&&t.indexOf(e)<0){if(Array.isArray(e)){e=e.slice(0)}else{e=a({__proto__:Object.getPrototypeOf(e)},e)}t.push(e)}return e}var Ye=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Observable=void 0;function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function i(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}var a=function(){return typeof Symbol==="function"};var o=function(e){return a()&&Boolean(Symbol[e])};var s=function(e){return o(e)?Symbol[e]:"@@"+e};if(a()&&!o("observable")){Symbol.observable=Symbol("observable")}var u=s("iterator");var c=s("observable");var l=s("species");function f(e,t){var r=e[t];if(r==null)return undefined;if(typeof r!=="function")throw new TypeError(r+" is not a function");return r}function d(e){var t=e.constructor;if(t!==undefined){t=t[l];if(t===null){t=undefined}}return t!==undefined?t:w}function p(e){return e instanceof w}function h(e){if(h.log){h.log(e)}else{setTimeout((function(){throw e}))}}function v(e){Promise.resolve().then((function(){try{e()}catch(e){h(e)}}))}function y(e){var t=e._cleanup;if(t===undefined)return;e._cleanup=undefined;if(!t){return}try{if(typeof t==="function"){t()}else{var r=f(t,"unsubscribe");if(r){r.call(t)}}}catch(e){h(e)}}function m(e){e._observer=undefined;e._queue=undefined;e._state="closed"}function g(e){var t=e._queue;if(!t){return}e._queue=undefined;e._state="ready";for(var r=0;r<t.length;++r){b(e,t[r].type,t[r].value);if(e._state==="closed")break}}function b(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":if(i)i.call(n,r);break;case"error":m(e);if(i)i.call(n,r);else throw r;break;case"complete":m(e);if(i)i.call(n);break}}catch(e){h(e)}if(e._state==="closed")y(e);else if(e._state==="running")e._state="ready"}function I(e,t,r){if(e._state==="closed")return;if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering";e._queue=[{type:t,value:r}];v((function(){return g(e)}));return}b(e,t,r)}var k=function(){function e(t,n){r(this,e);this._cleanup=undefined;this._observer=t;this._queue=undefined;this._state="initializing";var i=new E(this);try{this._cleanup=n.call(undefined,i)}catch(e){i.error(e)}if(this._state==="initializing")this._state="ready"}i(e,[{key:"unsubscribe",value:function e(){if(this._state!=="closed"){m(this);y(this)}}},{key:"closed",get:function(){return this._state==="closed"}}]);return e}();var E=function(){function e(t){r(this,e);this._subscription=t}i(e,[{key:"next",value:function e(t){I(this._subscription,"next",t)}},{key:"error",value:function e(t){I(this._subscription,"error",t)}},{key:"complete",value:function e(){I(this._subscription,"complete")}},{key:"closed",get:function(){return this._subscription._state==="closed"}}]);return e}();var w=function(){function e(t){r(this,e);if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof t!=="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}i(e,[{key:"subscribe",value:function e(t){if(typeof t!=="object"||t===null){t={next:t,error:arguments[1],complete:arguments[2]}}return new k(t,this._subscriber)}},{key:"forEach",value:function e(t){var r=this;return new Promise((function(e,n){if(typeof t!=="function"){n(new TypeError(t+" is not a function"));return}function i(){a.unsubscribe();e()}var a=r.subscribe({next:function(e){try{t(e,i)}catch(e){n(e);a.unsubscribe()}},error:n,complete:e})}))}},{key:"map",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){return r.subscribe({next:function(r){try{r=t(r)}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))}},{key:"filter",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){return r.subscribe({next:function(r){try{if(!t(r))return}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))}},{key:"reduce",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);var i=arguments.length>1;var a=false;var o=arguments[1];var s=o;return new n((function(e){return r.subscribe({next:function(r){var n=!a;a=true;if(!n||i){try{s=t(s,r)}catch(t){return e.error(t)}}else{s=r}},error:function(t){e.error(t)},complete:function(){if(!a&&!i)return e.error(new TypeError("Cannot reduce an empty sequence"));e.next(s);e.complete()}})}))}},{key:"concat",value:function e(){var t=this;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}var a=d(this);return new a((function(e){var r;var i=0;function o(t){r=t.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){if(i===n.length){r=undefined;e.complete()}else{o(a.from(n[i++]))}}})}o(t);return function(){if(r){r.unsubscribe();r=undefined}}}))}},{key:"flatMap",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){var i=[];var a=r.subscribe({next:function(r){if(t){try{r=t(r)}catch(t){return e.error(t)}}var a=n.from(r).subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){var e=i.indexOf(a);if(e>=0)i.splice(e,1);o()}});i.push(a)},error:function(t){e.error(t)},complete:function(){o()}});function o(){if(a.closed&&i.length===0)e.complete()}return function(){i.forEach((function(e){return e.unsubscribe()}));a.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function t(r){var n=typeof this==="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=f(r,c);if(i){var a=i.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");if(p(a)&&a.constructor===n)return a;return new n((function(e){return a.subscribe(e)}))}if(o("iterator")){i=f(r,u);if(i){return new n((function(e){v((function(){if(e.closed)return;var t=true;var n=false;var a=undefined;try{for(var o=i.call(r)[Symbol.iterator](),s;!(t=(s=o.next()).done);t=true){var u=s.value;e.next(u);if(e.closed)return}}catch(e){n=true;a=e}finally{try{if(!t&&o.return!=null){o.return()}}finally{if(n){throw a}}}e.complete()}))}))}}if(Array.isArray(r)){return new n((function(e){v((function(){if(e.closed)return;for(var t=0;t<r.length;++t){e.next(r[t]);if(e.closed)return}e.complete()}))}))}throw new TypeError(r+" is not observable")}},{key:"of",value:function t(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}var a=typeof this==="function"?this:e;return new a((function(e){v((function(){if(e.closed)return;for(var t=0;t<n.length;++t){e.next(n[t]);if(e.closed)return}e.complete()}))}))}},{key:l,get:function(){return this}}]);return e}();t.Observable=w;if(a()){Object.defineProperty(w,Symbol("extensions"),{value:{symbol:c,hostReportError:h},configurable:true})}}));r(Ye);var Je=Ye.Observable;var We=Je;function ze(e){var t=["query","operationName","variables","extensions","context"];for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0){throw new g(2)}}return e}var Xe=function(e){i(t,e);function t(t,r){var n=e.call(this,t)||this;n.link=r;return n}return t}(Error);function He(e){return e.request.length<=1}function Ze(e){return new We((function(t){t.error(e)}))}function et(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};if(!t.operationName){t.operationName=typeof t.query!=="string"?se(t.query):""}return t}function tt(e,t){var r=a({},e);var n=function(e){if(typeof e==="function"){r=a({},r,e(r))}else{r=a({},r,e)}};var i=function(){return a({},r)};Object.defineProperty(t,"setContext",{enumerable:false,value:n});Object.defineProperty(t,"getContext",{enumerable:false,value:i});Object.defineProperty(t,"toKey",{enumerable:false,value:function(){return rt(t)}});return t}function rt(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}function nt(e,t){return t?t(e):We.of()}function it(e){return typeof e==="function"?new ct(e):e}function at(){return new ct((function(){return We.of()}))}function ot(e){if(e.length===0)return at();return e.map(it).reduce((function(e,t){return e.concat(t)}))}function st(e,t,r){var n=it(t);var i=it(r||new ct(nt));if(He(n)&&He(i)){return new ct((function(t){return e(t)?n.request(t)||We.of():i.request(t)||We.of()}))}else{return new ct((function(t,r){return e(t)?n.request(t,r)||We.of():i.request(t,r)||We.of()}))}}var ut=function(e,t){var r=it(e);if(He(r)){return r}var n=it(t);if(He(n)){return new ct((function(e){return r.request(e,(function(e){return n.request(e)||We.of()}))||We.of()}))}else{return new ct((function(e,t){return r.request(e,(function(e){return n.request(e,t)||We.of()}))||We.of()}))}};var ct=function(){function e(e){if(e)this.request=e}e.prototype.split=function(t,r,n){return this.concat(st(t,r,n||new e(nt)))};e.prototype.concat=function(e){return ut(this,e)};e.prototype.request=function(e,t){throw new g(1)};e.empty=at;e.from=ot;e.split=st;e.execute=lt;return e}();function lt(e,t){return e.request(tt(t.context,et(ze(t))))||We.of()}function ft(e){var t;var r=e.Symbol;if(typeof r==="function"){if(r.observable){t=r.observable}else{t=r("observable");r.observable=t}}else{t="@@observable"}return t}var dt;if(typeof self!=="undefined"){dt=self}else if(typeof window!=="undefined"){dt=window}else if(typeof global!=="undefined"){dt=global}else if(typeof module!=="undefined"){dt=module}else{dt=Function("return this")()}var pt=ft(dt);var ht;(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"})(ht||(ht={}));function vt(e){return e<7}var yt=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype[pt]=function(){return this};t.prototype["@@observable"]=function(){return this};return t}(We);function mt(e){return Array.isArray(e)&&e.length>0}function gt(e){return e.hasOwnProperty("graphQLErrors")}var bt=function(e){var t="";if(mt(e.graphQLErrors)){e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"}))}if(e.networkError){t+="Network error: "+e.networkError.message+"\n"}t=t.replace(/\n$/,"");return t};var It=function(e){i(t,e);function t(r){var n=r.graphQLErrors,i=r.networkError,a=r.errorMessage,o=r.extraInfo;var s=e.call(this,a)||this;s.graphQLErrors=n||[];s.networkError=i||null;if(!a){s.message=bt(s)}else{s.message=a}s.extraInfo=o;s.__proto__=t.prototype;return s}return t}(Error);var kt;(function(e){e[e["normal"]=1]="normal";e[e["refetch"]=2]="refetch";e[e["poll"]=3]="poll"})(kt||(kt={}));var Et=function(e,t){if(t===void 0){t="none"}return e&&(e.networkError||t==="none"&&mt(e.graphQLErrors))};var wt=function(e){i(t,e);function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,a=i===void 0?true:i;var o=e.call(this,(function(e){return o.onSubscribe(e)}))||this;o.observers=new Set;o.subscriptions=new Set;o.isTornDown=false;o.options=n;o.variables=n.variables||{};o.queryId=r.generateQueryId();o.shouldSubscribe=a;var s=oe(n.query);o.queryName=s&&s.name&&s.name.value;o.queryManager=r;return o}t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r);e.observers.delete(n);if(!e.observers.size){e.queryManager.removeQuery(e.queryId)}setTimeout((function(){i.unsubscribe()}),0)},error:r};var i=e.subscribe(n)}))};t.prototype.currentResult=function(){var e=this.getCurrentResult();if(e.data===undefined){e.data={}}return e};t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:false,networkStatus:ht.error}}var t=this.queryManager.getCurrentQueryResult(this),r=t.data,n=t.partial;var i=this.queryManager.queryStore.get(this.queryId);var o;var s=this.options.fetchPolicy;var u=s==="network-only"||s==="no-cache";if(i){var c=i.networkStatus;if(Et(i,this.options.errorPolicy)){return{data:void 0,loading:false,networkStatus:c,error:new It({graphQLErrors:i.graphQLErrors,networkError:i.networkError})}}if(i.variables){this.options.variables=a(a({},this.options.variables),i.variables);this.variables=this.options.variables}o={data:r,loading:vt(c),networkStatus:c};if(i.graphQLErrors&&this.options.errorPolicy==="all"){o.errors=i.graphQLErrors}}else{var l=u||n&&s!=="cache-only";o={data:r,loading:l,networkStatus:l?ht.loading:ht.ready}}if(!n){this.updateLastResult(a(a({},o),{stale:false}))}return a(a({},o),{partial:n})};t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&O(t.data,e.data))};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=false};t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);if(e){e.networkError=null;e.graphQLErrors=[]}};t.prototype.refetch=function(e){var t=this.options.fetchPolicy;if(t==="cache-only"){return Promise.reject(new g(1))}if(t!=="no-cache"&&t!=="cache-and-network"){t="network-only"}if(!O(this.variables,e)){this.variables=a(a({},this.variables),e)}if(!O(this.options.variables,this.variables)){this.options.variables=a(a({},this.options.variables),this.variables)}return this.queryManager.fetchQuery(this.queryId,a(a({},this.options),{fetchPolicy:t}),kt.refetch)};t.prototype.fetchMore=function(e){var t=this;b(e.updateQuery,2);var r=a(a({},e.query?e:a(a(a({},this.options),e),{variables:a(a({},this.variables),e.variables)})),{fetchPolicy:"network-only"});var n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,kt.normal,this.queryId).then((function(i){t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})}));t.queryManager.stopQuery(n);return i}),(function(e){t.queryManager.stopQuery(n);throw e}))};t.prototype.subscribeToMore=function(e){var t=this;var r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;if(n){t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))}},error:function(t){if(e.onError){e.onError(t);return}}});this.subscriptions.add(r);return function(){if(t.subscriptions.delete(r)){r.unsubscribe()}}};t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=a(a({},this.options),e);if(e.pollInterval){this.startPolling(e.pollInterval)}else if(e.pollInterval===0){this.stopPolling()}var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&(t==="cache-only"||t==="standby"||r==="network-only"),e.fetchResults)};t.prototype.setVariables=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=true}this.isTornDown=false;e=e||this.variables;if(!t&&O(e,this.variables)){return this.observers.size&&r?this.result():Promise.resolve()}this.variables=this.options.variables=e;if(!this.observers.size){return Promise.resolve()}return this.queryManager.fetchQuery(this.queryId,this.options)};t.prototype.updateQuery=function(e){var t=this.queryManager;var r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,a=r.document;var o=Le((function(){return e(n,{variables:i})}));if(o){t.dataStore.markUpdateQueryResult(a,i,o);t.broadcastQueries()}};t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId);this.options.pollInterval=undefined};t.prototype.startPolling=function(e){_t(this);this.options.pollInterval=e;this.queryManager.startPollingQuery(this.options,this.queryId)};t.prototype.updateLastResult=function(e){var t=this.lastResult;this.lastResult=e;this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Re(e);return t};t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;if(r&&!r.error){r.error=Tt}}catch(e){}var n=!this.observers.size;this.observers.add(e);if(e.next&&this.lastResult)e.next(this.lastResult);if(e.error&&this.lastError)e.error(this.lastError);if(n){this.setUpQuery()}return function(){if(t.observers.delete(e)&&!t.observers.size){t.tearDownQuery()}}};t.prototype.setUpQuery=function(){var e=this;var t=this,r=t.queryManager,n=t.queryId;if(this.shouldSubscribe){r.addObservableQuery(n,this)}if(this.options.pollInterval){_t(this);r.startPollingQuery(this.options,n)}var i=function(t){e.updateLastResult(a(a({},e.lastResult),{errors:t.graphQLErrors,networkStatus:ht.error,loading:false}));St(e.observers,"error",e.lastError=t)};r.observeQuery(n,this.options,{next:function(t){if(e.lastError||e.isDifferentFromLastResult(t)){var n=e.updateLastResult(t);var i=e.options,a=i.query,o=i.variables,s=i.fetchPolicy;if(r.transform(a).hasClientExports){r.getLocalState().addExportedVariables(a,o).then((function(i){var o=e.variables;e.variables=e.options.variables=i;if(!t.loading&&n&&s!=="cache-only"&&r.transform(a).serverQuery&&!O(o,i)){e.refetch()}else{St(e.observers,"next",t)}}))}else{St(e.observers,"next",t)}}},error:i}).catch(i)};t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=true;e.stopPollingQuery(this.queryId);this.subscriptions.forEach((function(e){return e.unsubscribe()}));this.subscriptions.clear();e.removeObservableQuery(this.queryId);e.stopQuery(this.queryId);this.observers.clear()};return t}(yt);function Tt(e){}function St(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)}));n.forEach((function(e){return e[t](r)}))}function _t(e){var t=e.options.fetchPolicy;b(t!=="cache-first"&&t!=="cache-only",3)}var Ot=function(){function e(){this.store={}}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:true,error:null}};e.prototype.markMutationError=function(e,t){var r=this.store[e];if(r){r.loading=false;r.error=t}};e.prototype.markMutationResult=function(e){var t=this.store[e];if(t){t.loading=false;t.error=null}};e.prototype.reset=function(){this.store={}};return e}();var xt=function(){function e(){this.store={}}e.prototype.getStore=function(){return this.store};e.prototype.get=function(e){return this.store[e]};e.prototype.initQuery=function(e){var t=this.store[e.queryId];b(!t||t.document===e.document||O(t.document,e.document),19);var r=false;var n=null;if(e.storePreviousVariables&&t&&t.networkStatus!==ht.loading){if(!O(t.variables,e.variables)){r=true;n=t.variables}}var i;if(r){i=ht.setVariables}else if(e.isPoll){i=ht.poll}else if(e.isRefetch){i=ht.refetch}else{i=ht.loading}var a=[];if(t&&t.graphQLErrors){a=t.graphQLErrors}this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:n,networkError:null,graphQLErrors:a,networkStatus:i,metadata:e.metadata};if(typeof e.fetchMoreForQueryId==="string"&&this.store[e.fetchMoreForQueryId]){this.store[e.fetchMoreForQueryId].networkStatus=ht.fetchMore}};e.prototype.markQueryResult=function(e,t,r){if(!this.store||!this.store[e])return;this.store[e].networkError=null;this.store[e].graphQLErrors=mt(t.errors)?t.errors:[];this.store[e].previousVariables=null;this.store[e].networkStatus=ht.ready;if(typeof r==="string"&&this.store[r]){this.store[r].networkStatus=ht.ready}};e.prototype.markQueryError=function(e,t,r){if(!this.store||!this.store[e])return;this.store[e].networkError=t;this.store[e].networkStatus=ht.error;if(typeof r==="string"){this.markQueryResultClient(r,true)}};e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];if(r){r.networkError=null;r.previousVariables=null;if(t){r.networkStatus=ht.ready}}};e.prototype.stopQuery=function(e){delete this.store[e]};e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){if(e.indexOf(r)<0){t.stopQuery(r)}else{t.store[r].networkStatus=ht.loading}}))};return e}();function Nt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Dt=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t;if(r){this.client=r}if(n){this.addResolvers(n)}if(i){this.setFragmentMatcher(i)}}e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{};if(Array.isArray(e)){e.forEach((function(e){t.resolvers=je(t.resolvers,e)}))}else{this.resolvers=je(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,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,c=o===void 0?false:o;return s(this,void 0,void 0,(function(){return u(this,(function(e){if(t){return[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,c).then((function(e){return a(a({},r),{data:e.result})}))]}return[2,r]}))}))};e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e};e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher};e.prototype.clientQuery=function(e){if(Z(["client"],e)){if(this.resolvers){return e}}return null};e.prototype.serverQuery=function(e){return this.resolvers?xe(e):e};e.prototype.prepareContext=function(e){if(e===void 0){e={}}var t=this.cache;var r=a(a({},e),{cache:t,getCacheKey:function(e){if(t.config){return t.config.dataIdFromObject(e)}else{b(false,6)}}});return r};e.prototype.addExportedVariables=function(e,t,r){if(t===void 0){t={}}if(r===void 0){r={}}return s(this,void 0,void 0,(function(){return u(this,(function(n){if(e){return[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return a(a({},t),e.exportedVariables)}))]}return[2,a({},t)]}))}))};e.prototype.shouldForceResolvers=function(e){var t=false;p(e,{Directive:{enter:function(e){if(e.name.value==="client"&&e.arguments){t=e.arguments.some((function(e){return e.name.value==="always"&&e.value.kind==="BooleanValue"&&e.value.value===true}));if(t){return h}}}}});return t};e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Oe(e),variables:t,returnPartialData:true,optimistic:false}).result};e.prototype.resolveDocument=function(e,t,r,n,i,o){if(r===void 0){r={}}if(n===void 0){n={}}if(i===void 0){i=function(){return true}}if(o===void 0){o=false}return s(this,void 0,void 0,(function(){var s,c,l,f,d,p,h,v,y;return u(this,(function(u){s=fe(e);c=ue(e);l=de(c);f=s.operation;d=f?Nt(f):"Query";p=this,h=p.cache,v=p.client;y={fragmentMap:l,context:a(a({},r),{cache:h,client:v}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:o};return[2,this.resolveSelectionSet(s.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))};e.prototype.resolveSelectionSet=function(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,o,c;var l=this;return u(this,(function(f){n=r.fragmentMap,i=r.context,a=r.variables;o=[t];c=function(e){return s(l,void 0,void 0,(function(){var s,c;return u(this,(function(u){if(!X(e,a)){return[2]}if(U(e)){return[2,this.resolveField(e,t,r).then((function(t){var r;if(typeof t!=="undefined"){o.push((r={},r[B(e)]=t,r))}}))]}if(G(e)){s=e}else{s=n[e.name.value];b(s,7)}if(s&&s.typeCondition){c=s.typeCondition.name.value;if(r.fragmentMatcher(t,c,i)){return[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){o.push(e)}))]}}return[2]}))}))};return[2,Promise.all(e.selections.map(c)).then((function(){return $e(o)}))]}))}))};e.prototype.resolveField=function(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,o,s,c,l,f,d;var p=this;return u(this,(function(u){n=r.variables;i=e.name.value;a=B(e);o=i!==a;s=t[a]||t[i];c=Promise.resolve(s);if(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e)){l=t.__typename||r.defaultOperationType;f=this.resolvers&&this.resolvers[l];if(f){d=f[o?i:a];if(d){c=Promise.resolve(d(t,$(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))}}}return[2,c.then((function(t){if(t===void 0){t=s}if(e.directives){e.directives.forEach((function(e){if(e.name.value==="export"&&e.arguments){e.arguments.forEach((function(e){if(e.name.value==="as"&&e.value.kind==="StringValue"){r.exportedVariables[e.value.value]=t}}))}}))}if(!e.selectionSet){return t}if(t==null){return t}if(Array.isArray(t)){return p.resolveSubSelectedArray(e,t,r)}if(e.selectionSet){return p.resolveSelectionSet(e.selectionSet,t,r)}}))]}))}))};e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){if(t===null){return null}if(Array.isArray(t)){return n.resolveSubSelectedArray(e,t,r)}if(e.selectionSet){return n.resolveSelectionSet(e.selectionSet,t,r)}})))};return e}();function Rt(e){var t=new Set;var r=null;return new yt((function(n){t.add(n);r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}});return function(){if(t.delete(n)&&!t.size&&r){r.unsubscribe();r=null}}}))}function Ct(e,t){return new yt((function(r){var n=r.next,i=r.error,a=r.complete;var o=0;var s=false;var u={next:function(e){++o;new Promise((function(r){r(t(e))})).then((function(e){--o;n&&n.call(r,e);s&&u.complete()}),(function(e){--o;i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=true;if(!o){a&&a.call(r)}}};var c=e.subscribe(u);return function(){return c.unsubscribe()}}))}var At=Object.prototype.hasOwnProperty;var Mt=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=r===void 0?false:r,i=e.store,a=e.onBroadcast,o=a===void 0?function(){return undefined}:a,s=e.ssrMode,u=s===void 0?false:s,c=e.clientAwareness,l=c===void 0?{}:c,f=e.localState,d=e.assumeImmutableResults;this.mutationStore=new Ot;this.queryStore=new xt;this.clientAwareness={};this.idCounter=1;this.queries=new Map;this.fetchQueryRejectFns=new Map;this.transformCache=new(Ne?WeakMap:Map);this.inFlightLinkObservables=new Map;this.pollingInfoByQueryId=new Map;this.link=t;this.queryDeduplication=n;this.dataStore=i;this.onBroadcast=o;this.clientAwareness=l;this.localState=f||new Dt({cache:i.getCache()});this.ssrMode=u;this.assumeImmutableResults=!!d}e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)}));this.fetchQueryRejectFns.forEach((function(e){e(new g(8))}))};e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,c=o===void 0?[]:o,l=e.awaitRefetchQueries,f=l===void 0?false:l,d=e.update,p=e.errorPolicy,h=p===void 0?"none":p,v=e.fetchPolicy,y=e.context,m=y===void 0?{}:y;return s(this,void 0,void 0,(function(){var e,o,s;var l=this;return u(this,(function(u){switch(u.label){case 0:b(t,9);b(!v||v==="no-cache",10);e=this.generateQueryId();t=this.transform(t).document;this.setQuery(e,(function(){return{document:t}}));r=this.getVariables(t,r);if(!this.transform(t).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(t,r,m)];case 1:r=u.sent();u.label=2;case 2:o=function(){var e={};if(i){l.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var a=n.queryName;if(a&&At.call(i,a)){e[r]={updater:i[a],query:l.queryStore.get(r)}}}}))}return e};this.mutationStore.initMutation(e,t,r);this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:d,optimisticResponse:n});this.broadcastQueries();s=this;return[2,new Promise((function(i,u){var l;var p;s.getObservableFromLink(t,a(a({},m),{optimisticResponse:n}),r,false).subscribe({next:function(n){if(Qe(n)&&h==="none"){p=new It({graphQLErrors:n.errors});return}s.mutationStore.markMutationResult(e);if(v!=="no-cache"){s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:d})}l=n},error:function(t){s.mutationStore.markMutationError(e,t);s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n});s.broadcastQueries();s.setQuery(e,(function(){return{document:null}}));u(new It({networkError:t}))},complete:function(){if(p){s.mutationStore.markMutationError(e,p)}s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n});s.broadcastQueries();if(p){u(p);return}if(typeof c==="function"){c=c(l)}var t=[];if(mt(c)){c.forEach((function(e){if(typeof e==="string"){s.queries.forEach((function(r){var n=r.observableQuery;if(n&&n.queryName===e){t.push(n.refetch())}}))}else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};if(e.context){r.context=e.context}t.push(s.query(r))}}))}Promise.all(f?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}}));if(h==="ignore"&&l&&Qe(l)){delete l.errors}i(l)}))}})}))]}}))}))};e.prototype.fetchQuery=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,o,s,c,l,f,d,p,h,v,y,m,g,b,I,k,E,w;var T=this;return u(this,(function(u){switch(u.label){case 0:i=t.metadata,o=i===void 0?null:i,s=t.fetchPolicy,c=s===void 0?"cache-first":s,l=t.context,f=l===void 0?{}:l;d=this.transform(t.query).document;p=this.getVariables(d,t.variables);if(!this.transform(d).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(d,p,f)];case 1:p=u.sent();u.label=2;case 2:t=a(a({},t),{variables:p});v=c==="network-only"||c==="no-cache";y=v;if(!v){m=this.dataStore.getCache().diff({query:d,variables:p,returnPartialData:true,optimistic:false}),g=m.complete,b=m.result;y=!g||c==="cache-and-network";h=b}I=y&&c!=="cache-only"&&c!=="standby";if(Z(["live"],d))I=true;k=this.idCounter++;E=c!=="no-cache"?this.updateQueryWatch(e,d,t):undefined;this.setQuery(e,(function(){return{document:d,lastRequestId:k,invalidated:true,cancel:E}}));this.invalidate(n);this.queryStore.initQuery({queryId:e,document:d,storePreviousVariables:I,variables:p,isPoll:r===kt.poll,isRefetch:r===kt.refetch,metadata:o,fetchMoreForQueryId:n});this.broadcastQueries();if(I){w=this.fetchRequest({requestId:k,queryId:e,document:d,options:t,fetchMoreForQueryId:n}).catch((function(t){if(gt(t)){throw t}else{if(k>=T.getQuery(e).lastRequestId){T.queryStore.markQueryError(e,t,n);T.invalidate(e);T.invalidate(n);T.broadcastQueries()}throw new It({networkError:t})}}));if(c!=="cache-and-network"){return[2,w]}w.catch((function(){}))}this.queryStore.markQueryResultClient(e,!I);this.invalidate(e);this.invalidate(n);if(this.transform(d).hasForcedResolvers){return[2,this.localState.runResolvers({document:d,remoteResult:{data:h},context:f,variables:p,onlyRunForcedResolvers:true}).then((function(r){T.markQueryResult(e,r,t,n);T.broadcastQueries();return r}))]}this.broadcastQueries();return[2,{data:h}]}}))}))};e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,a=r.variables,o=r.errorPolicy;if(i==="no-cache"){this.setQuery(e,(function(){return{newData:{result:t.data,complete:true}}}))}else{this.dataStore.markQueryResult(t,this.getQuery(e).document,a,n,o==="ignore"||o==="all")}};e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e]){try{r[e](t)}catch(e){}}}return function(r,a){n.invalidate(e,false);if(!r)return;var o=n.getQuery(e),s=o.observableQuery,u=o.document;var c=s?s.options.fetchPolicy:t.fetchPolicy;if(c==="standby")return;var l=vt(r.networkStatus);var f=s&&s.getLastResult();var d=!!(f&&f.networkStatus!==r.networkStatus);var p=t.returnPartialData||!a&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||c==="cache-only"||c==="cache-and-network";if(l&&!p){return}var h=mt(r.graphQLErrors);var v=s&&s.options.errorPolicy||t.errorPolicy||"none";if(v==="none"&&h||r.networkError){return i("error",new It({graphQLErrors:r.graphQLErrors,networkError:r.networkError}))}try{var y=void 0;var m=void 0;if(a){if(c!=="no-cache"&&c!=="network-only"){n.setQuery(e,(function(){return{newData:null}}))}y=a.result;m=!a.complete}else{var g=s&&s.getLastError();var b=v!=="none"&&(g&&g.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!b){y=f.data;m=false}else{var I=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:true,optimistic:true});y=I.result;m=!I.complete}}var k=m&&!(t.returnPartialData||c==="cache-only");var E={data:k?f&&f.data:y,loading:l,networkStatus:r.networkStatus,stale:k};if(v==="all"&&h){E.errors=r.graphQLErrors}i("next",E)}catch(e){i("error",new It({networkError:e}))}}};e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache();var n=r.transformDocument(e);var i=Ee(r.transformForLink(n));var a=this.localState.clientQuery(n);var o=this.localState.serverQuery(i);var s={document:n,hasClientExports:ee(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:o,defaultVars:pe(oe(n))};var u=function(e){if(e&&!t.has(e)){t.set(e,s)}};u(e);u(n);u(a);u(o)}return t.get(e)};e.prototype.getVariables=function(e,t){return a(a({},this.transform(e).defaultVars),t)};e.prototype.watchQuery=function(e,t){if(t===void 0){t=true}b(e.fetchPolicy!=="standby",11);e.variables=this.getVariables(e.query,e.variables);if(typeof e.notifyOnNetworkStatusChange==="undefined"){e.notifyOnNetworkStatusChange=false}var r=a({},e);return new wt({queryManager:this,options:r,shouldSubscribe:t})};e.prototype.query=function(e){var t=this;b(e.query,12);b(e.query.kind==="Document",13);b(!e.returnPartialData,14);b(!e.pollInterval,15);return new Promise((function(r,n){var i=t.watchQuery(e,false);t.fetchQueryRejectFns.set("query:"+i.queryId,n);i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))};e.prototype.generateQueryId=function(){return String(this.idCounter++)};e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e);this.broadcastQueries()};e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e);this.queryStore.stopQuery(e);this.invalidate(e)};e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){var r=e.listeners;r.add(t);return{invalidated:false}}))};e.prototype.updateQueryWatch=function(e,t,r){var n=this;var i=this.getQuery(e).cancel;if(i)i();var a=function(){var t=null;var r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();if(i){t=i.data}}return t};return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:true,previousResult:a,callback:function(t){n.setQuery(e,(function(){return{invalidated:true,newData:t}}))}})};e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))};e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}}));if(t)t()};e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new g(16))}));var e=[];this.queries.forEach((function(t,r){var n=t.observableQuery;if(n)e.push(r)}));this.queryStore.reset(e);this.mutationStore.reset();return this.dataStore.reset()};e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))};e.prototype.reFetchObservableQueries=function(e){var t=this;if(e===void 0){e=false}var r=[];this.queries.forEach((function(n,i){var a=n.observableQuery;if(a){var o=a.options.fetchPolicy;a.resetLastResults();if(o!=="cache-only"&&(e||o!=="standby")){r.push(a.refetch())}t.setQuery(i,(function(){return{newData:null}}));t.invalidate(i)}}));this.broadcastQueries();return Promise.all(r)};e.prototype.observeQuery=function(e,t,r){this.addQueryListener(e,this.queryListenerForObserver(e,t,r));return this.fetchQuery(e,t)};e.prototype.startQuery=function(e,t,r){this.addQueryListener(e,r);this.fetchQuery(e,t).catch((function(){return undefined}));return e};e.prototype.startGraphQLSubscription=function(e){var t=this;var r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document;i=this.getVariables(r,i);var a=function(e){return t.getObservableFromLink(r,{},e,false).map((function(i){if(!n||n!=="no-cache"){t.dataStore.markSubscriptionResult(i,r,e);t.broadcastQueries()}if(Qe(i)){throw new It({graphQLErrors:i.errors})}return i}))};if(this.transform(r).hasClientExports){var o=this.localState.addExportedVariables(r,i).then(a);return new yt((function(e){var t=null;o.then((function(r){return t=r.subscribe(e)}),e.error);return function(){return t&&t.unsubscribe()}}))}return a(i)};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.fetchQueryRejectFns.delete("query:"+e);this.fetchQueryRejectFns.delete("fetchRequest:"+e);this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()}));this.queries.delete(e)};e.prototype.getCurrentQueryResult=function(e,t){if(t===void 0){t=true}var r=e.options,n=r.variables,i=r.query,a=r.fetchPolicy,o=r.returnPartialData;var s=e.getLastResult();var u=this.getQuery(e.queryId).newData;if(u&&u.complete){return{data:u.result,partial:false}}if(a==="no-cache"||a==="network-only"){return{data:undefined,partial:false}}var c=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:undefined,returnPartialData:true,optimistic:t}),l=c.result,f=c.complete;return{data:f||o?l:void 0,partial:!f}};e.prototype.getQueryWithPreviousResult=function(e){var t;if(typeof e==="string"){var r=this.getQuery(e).observableQuery;b(r,17);t=r}else{t=e}var n=t.options,i=n.variables,a=n.query;return{previousResult:this.getCurrentQueryResult(t,false).data,variables:i,document:a}};e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast();this.queries.forEach((function(t,r){if(t.invalidated){t.listeners.forEach((function(n){if(n){n(e.queryStore.get(r),t.newData)}}))}}))};e.prototype.getLocalState=function(){return this.localState};e.prototype.getObservableFromLink=function(e,t,r,n){var i=this;if(n===void 0){n=this.queryDeduplication}var o;var s=this.transform(e).serverQuery;if(s){var u=this,c=u.inFlightLinkObservables,l=u.link;var f={query:s,variables:r,operationName:se(s)||void 0,context:this.prepareContext(a(a({},t),{forceFetch:!n}))};t=f.context;if(n){var d=c.get(s)||new Map;c.set(s,d);var p=JSON.stringify(r);o=d.get(p);if(!o){d.set(p,o=Rt(lt(l,f)));var h=function(){d.delete(p);if(!d.size)c.delete(s);v.unsubscribe()};var v=o.subscribe({next:h,error:h,complete:h})}}else{o=Rt(lt(l,f))}}else{o=yt.of({data:{}});t=this.prepareContext(t)}var y=this.transform(e).clientQuery;if(y){o=Ct(o,(function(e){return i.localState.runResolvers({document:y,remoteResult:e,context:t,variables:r})}))}return o};e.prototype.fetchRequest=function(e){var t=this;var r=e.requestId,n=e.queryId,i=e.document,a=e.options,o=e.fetchMoreForQueryId;var s=a.variables,u=a.errorPolicy,c=u===void 0?"none":u,l=a.fetchPolicy;var f;var d;return new Promise((function(e,u){var p=t.getObservableFromLink(i,a.context,s);var h="fetchRequest:"+n;t.fetchQueryRejectFns.set(h,u);var v=function(){t.fetchQueryRejectFns.delete(h);t.setQuery(n,(function(e){var t=e.subscriptions;t.delete(y)}))};var y=p.map((function(e){if(r>=t.getQuery(n).lastRequestId){t.markQueryResult(n,e,a,o);t.queryStore.markQueryResult(n,e,o);t.invalidate(n);t.invalidate(o);t.broadcastQueries()}if(c==="none"&&mt(e.errors)){return u(new It({graphQLErrors:e.errors}))}if(c==="all"){d=e.errors}if(o||l==="no-cache"){f=e.data}else{var p=t.dataStore.getCache().diff({variables:s,query:i,optimistic:false,returnPartialData:true}),h=p.result,v=p.complete;if(v||a.returnPartialData){f=h}}})).subscribe({error:function(e){v();u(e)},complete:function(){v();e({data:f,errors:d,loading:false,networkStatus:ht.ready,stale:false})}});t.setQuery(n,(function(e){var t=e.subscriptions;t.add(y)}))}))};e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:false,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}};e.prototype.setQuery=function(e,t){var r=this.getQuery(e);var n=a(a({},r),t(r));this.queries.set(e,n)};e.prototype.invalidate=function(e,t){if(t===void 0){t=true}if(e){this.setQuery(e,(function(){return{invalidated:t}}))}};e.prototype.prepareContext=function(e){if(e===void 0){e={}}var t=this.localState.prepareContext(e);return a(a({},t),{clientAwareness:this.clientAwareness})};e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==ht.ready&&t.networkStatus!==ht.error};e.prototype.startPollingQuery=function(e,t,r){var n=this;var i=e.pollInterval;b(i,18);if(!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);if(!o){this.pollingInfoByQueryId.set(t,o={})}o.interval=i;o.options=a(a({},e),{fetchPolicy:"network-only"});var s=function(){var e=n.pollingInfoByQueryId.get(t);if(e){if(n.checkInFlight(t)){u()}else{n.fetchQuery(t,e.options,kt.poll).then(u,u)}}};var u=function(){var e=n.pollingInfoByQueryId.get(t);if(e){clearTimeout(e.timeout);e.timeout=setTimeout(s,e.interval)}};if(r){this.addQueryListener(t,r)}u()}return t};e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)};return e}();var Ft=function(){function e(e){this.cache=e}e.prototype.getCache=function(){return this.cache};e.prototype.markQueryResult=function(e,t,r,n,i){if(i===void 0){i=false}var a=!Qe(e);if(i&&Qe(e)&&e.data){a=true}if(!n&&a){this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})}};e.prototype.markSubscriptionResult=function(e,t,r){if(!Qe(e)){this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})}};e.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;if(typeof e.optimisticResponse==="function"){r=e.optimisticResponse(e.variables)}else{r=e.optimisticResponse}this.cache.recordOptimisticTransaction((function(n){var i=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=i}}),e.mutationId)}};e.prototype.markMutationResult=function(e){var t=this;if(!Qe(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}];var n=e.updateQueries;if(n){Object.keys(n).forEach((function(i){var a=n[i],o=a.query,s=a.updater;var u=t.cache.diff({query:o.document,variables:o.variables,returnPartialData:true,optimistic:false}),c=u.result,l=u.complete;if(l){var f=Le((function(){return s(c,{mutationResult:e.result,queryName:se(o.document)||undefined,queryVariables:o.variables})}));if(f){r.push({result:f,dataId:"ROOT_QUERY",query:o.document,variables:o.variables})}}}))}this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;if(n){Le((function(){return n(t,e.result)}))}}))}};e.prototype.markMutationComplete=function(e){var t=e.mutationId,r=e.optimisticResponse;if(r){this.cache.removeOptimistic(t)}};e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})};e.prototype.reset=function(){return this.cache.reset()};return e}();var qt="2.6.10";var Lt=function(){function e(e){var t=this;this.defaultOptions={};this.resetStoreCallbacks=[];this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=n===void 0?false:n,a=e.ssrForceFetchDelay,o=a===void 0?0:a,s=e.connectToDevTools,u=e.queryDeduplication,c=u===void 0?true:u,l=e.defaultOptions,f=e.assumeImmutableResults,d=f===void 0?false:f,p=e.resolvers,h=e.typeDefs,v=e.fragmentMatcher,y=e.name,m=e.version;var b=e.link;if(!b&&p){b=ct.empty()}if(!b||!r){throw new g(4)}this.link=b;this.cache=r;this.store=new Ft(r);this.disableNetworkFetches=i||o>0;this.queryDeduplication=c;this.defaultOptions=l||{};this.typeDefs=h;if(o){setTimeout((function(){return t.disableNetworkFetches=false}),o)}this.watchQuery=this.watchQuery.bind(this);this.query=this.query.bind(this);this.mutate=this.mutate.bind(this);this.resetStore=this.resetStore.bind(this);this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var I="production"!=="production";if(typeof s==="undefined"?I:s&&typeof window!=="undefined"){window.__APOLLO_CLIENT__=this}this.version=qt;this.localState=new Dt({cache:r,client:this,resolvers:p,fragmentMatcher:v});this.queryManager=new Mt({link:this.link,store:this.store,queryDeduplication:c,ssrMode:i,clientAwareness:{name:y,version:m},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){if(t.devToolsHookCb){t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(true)})}}})}e.prototype.stop=function(){this.queryManager.stop()};e.prototype.watchQuery=function(e){if(this.defaultOptions.watchQuery){e=a(a({},this.defaultOptions.watchQuery),e)}if(this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")){e=a(a({},e),{fetchPolicy:"cache-first"})}return this.queryManager.watchQuery(e)};e.prototype.query=function(e){if(this.defaultOptions.query){e=a(a({},this.defaultOptions.query),e)}b(e.fetchPolicy!=="cache-and-network",5);if(this.disableNetworkFetches&&e.fetchPolicy==="network-only"){e=a(a({},e),{fetchPolicy:"cache-first"})}return this.queryManager.query(e)};e.prototype.mutate=function(e){if(this.defaultOptions.mutate){e=a(a({},this.defaultOptions.mutate),e)}return this.queryManager.mutate(e)};e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)};e.prototype.readQuery=function(e,t){if(t===void 0){t=false}return this.cache.readQuery(e,t)};e.prototype.readFragment=function(e,t){if(t===void 0){t=false}return this.cache.readFragment(e,t)};e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);this.queryManager.broadcastQueries();return t};e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);this.queryManager.broadcastQueries();return t};e.prototype.writeData=function(e){var t=this.cache.writeData(e);this.queryManager.broadcastQueries();return t};e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e};e.prototype.__requestRaw=function(e){return lt(this.link,e)};e.prototype.initQueryManager=function(){return this.queryManager};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;this.resetStoreCallbacks.push(e);return function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}};e.prototype.onClearStore=function(e){var t=this;this.clearStoreCallbacks.push(e);return 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)};return e}();var Qt=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=r;t.getBlockStringIndentation=n;t.printBlockString=o;function r(e){var t=e.split(/\r\n|[\n\r]/g);var r=n(t);if(r!==0){for(var i=1;i<t.length;i++){t[i]=t[i].slice(r)}}while(t.length>0&&a(t[0])){t.shift()}while(t.length>0&&a(t[t.length-1])){t.pop()}return t.join("\n")}function n(e){var t=null;for(var r=1;r<e.length;r++){var n=e[r];var a=i(n);if(a===n.length){continue}if(t===null||a<t){t=a;if(t===0){break}}}return t===null?0:t}function i(e){var t=0;while(t<e.length&&(e[t]===" "||e[t]==="\t")){t++}return t}function a(e){return i(e)===e.length}function o(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=!n||a||r;var s="";if(o&&!(n&&i)){s+="\n"+t}s+=t?e.replace(/\n/g,"\n"+t):e;if(o){s+="\n"}return'"""'+s.replace(/"""/g,'\\"""')+'"""'}}));r(Qt);var Pt=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=r;function r(e){return(0,d.visit)(e,{leave:n})}var n={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return a(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var r=t.operation;var n=t.name;var i=s("(",a(t.variableDefinitions,", "),")");var o=a(t.directives," ");var u=t.selectionSet;return!n&&!o&&!i&&r==="query"?u:a([r,a([n,i]),o,u]," ")},VariableDefinition:function e(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+s(" = ",i)+s(" ",a(o," "))},SelectionSet:function e(t){var r=t.selections;return o(r)},Field:function e(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,u=t.selectionSet;return a([s("",r,": ")+n+s("(",a(i,", "),")"),a(o," "),u]," ")},Argument:function e(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function e(t){var r=t.name,n=t.directives;return"..."+r+s(" ",a(n," "))},InlineFragment:function e(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return a(["...",s("on ",r),a(n," "),i]," ")},FragmentDefinition:function e(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,u=t.selectionSet;return"fragment ".concat(r).concat(s("(",a(i,", "),")")," ")+"on ".concat(n," ").concat(s("",a(o," ")," "))+u},IntValue:function e(t){var r=t.value;return r},FloatValue:function e(t){var r=t.value;return r},StringValue:function e(t,r){var n=t.value,i=t.block;return i?(0,Qt.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function e(t){var r=t.value;return r?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var r=t.value;return r},ListValue:function e(t){var r=t.values;return"["+a(r,", ")+"]"},ObjectValue:function e(t){var r=t.fields;return"{"+a(r,", ")+"}"},ObjectField:function e(t){var r=t.name,n=t.value;return r+": "+n},Directive:function e(t){var r=t.name,n=t.arguments;return"@"+r+s("(",a(n,", "),")")},NamedType:function e(t){var r=t.name;return r},ListType:function e(t){var r=t.type;return"["+r+"]"},NonNullType:function e(t){var r=t.type;return r+"!"},SchemaDefinition:function e(t){var r=t.directives,n=t.operationTypes;return a(["schema",a(r," "),o(n)]," ")},OperationTypeDefinition:function e(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:i((function(e){var t=e.name,r=e.directives;return a(["scalar",t,a(r," ")]," ")})),ObjectTypeDefinition:i((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return a(["type",t,s("implements ",a(r," & ")),a(n," "),o(i)]," ")})),FieldDefinition:i((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(l(r)?s("(\n",u(a(r,"\n")),"\n)"):s("(",a(r,", "),")"))+": "+n+s(" ",a(i," "))})),InputValueDefinition:i((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return a([t+": "+r,s("= ",n),a(i," ")]," ")})),InterfaceTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.fields;return a(["interface",t,a(r," "),o(n)]," ")})),UnionTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.types;return a(["union",t,a(r," "),n&&n.length!==0?"= "+a(n," | "):""]," ")})),EnumTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.values;return a(["enum",t,a(r," "),o(n)]," ")})),EnumValueDefinition:i((function(e){var t=e.name,r=e.directives;return a([t,a(r," ")]," ")})),InputObjectTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.fields;return a(["input",t,a(r," "),o(n)]," ")})),DirectiveDefinition:i((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(l(r)?s("(\n",u(a(r,"\n")),"\n)"):s("(",a(r,", "),")"))+(n?" repeatable":"")+" on "+a(i," | ")})),SchemaExtension:function e(t){var r=t.directives,n=t.operationTypes;return a(["extend schema",a(r," "),o(n)]," ")},ScalarTypeExtension:function e(t){var r=t.name,n=t.directives;return a(["extend scalar",r,a(n," ")]," ")},ObjectTypeExtension:function e(t){var r=t.name,n=t.interfaces,i=t.directives,u=t.fields;return a(["extend type",r,s("implements ",a(n," & ")),a(i," "),o(u)]," ")},InterfaceTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.fields;return a(["extend interface",r,a(n," "),o(i)]," ")},UnionTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.types;return a(["extend union",r,a(n," "),i&&i.length!==0?"= "+a(i," | "):""]," ")},EnumTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.values;return a(["extend enum",r,a(n," "),o(i)]," ")},InputObjectTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.fields;return a(["extend input",r,a(n," "),o(i)]," ")}};function i(e){return function(t){return a([t.description,e(t)],"\n")}}function a(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function o(e){return e&&e.length!==0?"{\n"+u(a(e,"\n"))+"\n}":""}function s(e,t,r){return t?e+t+(r||""):""}function u(e){return e&&" "+e.replace(/\n/g,"\n ")}function c(e){return e.indexOf("\n")!==-1}function l(e){return e&&e.some(c)}}));r(Pt);var Kt=Pt.print;var Vt={includeQuery:true,includeExtensions:false};var jt={accept:"*/*","content-type":"application/json"};var $t={method:"POST"};var Bt={http:Vt,headers:jt,options:$t};var Ut=function(e,t,r){var n=new Error(r);n.name="ServerError";n.response=e;n.statusCode=e.status;n.result=t;throw n};var Gt=function(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(n){var r=n;r.name="ServerParseError";r.response=t;r.statusCode=t.status;r.bodyText=e;return Promise.reject(r)}})).then((function(r){if(t.status>=300){Ut(t,r,"Response not successful: Received status code "+t.status)}if(!Array.isArray(r)&&!r.hasOwnProperty("data")&&!r.hasOwnProperty("errors")){Ut(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'.")}return r}))}};var Yt=function(e){if(!e&&typeof fetch==="undefined"){throw new g(1)}};var Jt=function(){if(typeof AbortController==="undefined")return{controller:false,signal:false};var e=new AbortController;var t=e.signal;return{controller:e,signal:t}};var Wt=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var i=a({},t.options,{headers:t.headers,credentials:t.credentials});var o=t.http;r.forEach((function(e){i=a({},i,e.options,{headers:a({},i.headers,e.headers)});if(e.credentials)i.credentials=e.credentials;o=a({},o,e.http)}));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query;var f={operationName:s,variables:c};if(o.includeExtensions)f.extensions=u;if(o.includeQuery)f.query=Kt(l);return{options:i,body:f}};var zt=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new g(2);n.parseError=e;throw n}return r};var Xt=function(e,t){var r=e.getContext();var n=r.uri;if(n){return n}else if(typeof t==="function"){return t(e)}else{return t||"/graphql"}};var Ht=function(e){if(e===void 0){e={}}var t=e.uri,r=t===void 0?"/graphql":t,n=e.fetch,i=e.includeExtensions,s=e.useGETForQueries,u=o(e,["uri","fetch","includeExtensions","useGETForQueries"]);Yt(n);if(!n){n=fetch}var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ct((function(e){var t=Xt(e,r);var i=e.getContext();var o={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;if(l){o["apollographql-client-name"]=l}if(f){o["apollographql-client-version"]=f}}var d=a({},o,i.headers);var p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d};var h=Wt(e,Bt,c,p),v=h.options,y=h.body;var m;if(!v.signal){var g=Jt(),b=g.controller,I=g.signal;m=b;if(m)v.signal=I}var k=function(e){return e.kind==="OperationDefinition"&&e.operation==="mutation"};if(s&&!e.query.definitions.some(k)){v.method="GET"}if(v.method==="GET"){var E=Zt(t,y),w=E.newURI,T=E.parseError;if(T){return Ze(T)}t=w}else{try{v.body=zt(y)}catch(T){return Ze(T)}}return new We((function(r){n(t,v).then((function(t){e.setContext({response:t});return t})).then(Gt(e)).then((function(e){r.next(e);r.complete();return e})).catch((function(e){if(e.name==="AbortError")return;if(e.result&&e.result.errors&&e.result.data){r.next(e.result)}r.error(e)}));return function(){if(m)m.abort()}}))}))};function Zt(e,t){var r=[];var n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t){n("query",t.query)}if(t.operationName){n("operationName",t.operationName)}if(t.variables){var i=void 0;try{i=zt(t.variables)}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=zt(t.extensions)}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e;var u=e.indexOf("#");if(u!==-1){o=e.substr(u);s=e.substr(0,u)}var c=s.indexOf("?")===-1?"?":"&";var l=s+c+r.join("&")+o;return{newURI:l}}var er=function(e){i(t,e);function t(t){return e.call(this,Ht(t).request)||this}return t}(ct);function tr(e){var t={kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:nr(e)};var r={kind:"Document",definitions:[t]};return r}function rr(e,t){var r={kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:nr(e)};var n={kind:"Document",definitions:[r]};return n}function nr(e){if(typeof e==="number"||typeof e==="boolean"||typeof e==="string"||typeof e==="undefined"||e===null){return null}if(Array.isArray(e)){return nr(e[0])}var t=[];Object.keys(e).forEach((function(r){var n=nr(e[r]);var i={kind:"Field",name:{kind:"Name",value:r},selectionSet:n||undefined};t.push(i)}));var r={kind:"SelectionSet",selections:t};return r}var ir={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]};var ar=function(){function e(){}e.prototype.transformDocument=function(e){return e};e.prototype.transformForLink=function(e){return e};e.prototype.readQuery=function(e,t){if(t===void 0){t=false}return this.read({query:e.query,variables:e.variables,optimistic:t})};e.prototype.readFragment=function(e,t){if(t===void 0){t=false}return this.read({query:ne(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})};e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})};e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:ne(e.fragment,e.fragmentName)})};e.prototype.writeData=function(e){var t=e.id,r=e.data;if(typeof t!=="undefined"){var n=null;try{n=this.read({rootId:t,optimistic:false,query:ir})}catch(e){}var i=n&&n.__typename||"__ClientData";var a=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:rr(a,i),data:a})}else{this.writeQuery({query:tr(r),data:r})}};return e}();var or=null;var sr={};var ur=1;var cr=function(){return function(){function e(){this.id=["slot",ur++,Date.now(),Math.random().toString(36).slice(2)].join(":")}e.prototype.hasValue=function(){for(var e=or;e;e=e.parent){if(this.id in e.slots){var t=e.slots[this.id];if(t===sr)break;if(e!==or){or.slots[this.id]=t}return true}}if(or){or.slots[this.id]=sr}return false};e.prototype.getValue=function(){if(this.hasValue()){return or.slots[this.id]}};e.prototype.withValue=function(e,t,r,n){var i;var a=(i={__proto__:null},i[this.id]=e,i);var o=or;or={parent:o,slots:a};try{return t.apply(n,r)}finally{or=o}};e.bind=function(e){var t=or;return function(){var r=or;try{or=t;return e.apply(this,arguments)}finally{or=r}}};e.noContext=function(e,t,r){if(or){var n=or;try{or=null;return e.apply(r,t)}finally{or=n}}else{return e.apply(r,t)}};return e}()};var lr="@wry/context:Slot";var fr=Array;var dr=fr[lr]||function(){var e=cr();try{Object.defineProperty(fr,lr,{value:fr[lr]=e,enumerable:false,writable:false,configurable:false})}finally{return e}}();function pr(){}var hr=function(){function e(e,t){if(e===void 0){e=Infinity}if(t===void 0){t=pr}this.max=e;this.dispose=t;this.map=new Map;this.newest=null;this.oldest=null}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;if(n){n.older=r}if(r){r.newer=n}t.older=this.newest;t.older.newer=t;t.newer=null;this.newest=t;if(t===this.oldest){this.oldest=n}}return t};e.prototype.set=function(e,t){var r=this.getEntry(e);if(r){return r.value=t}r={key:e,value:t,newer:null,older:this.newest};if(this.newest){this.newest.newer=r}this.newest=r;this.oldest=this.oldest||r;this.map.set(e,r);return r.value};e.prototype.clean=function(){while(this.oldest&&this.map.size>this.max){this.delete(this.oldest.key)}};e.prototype.delete=function(e){var t=this.map.get(e);if(t){if(t===this.newest){this.newest=t.older}if(t===this.oldest){this.oldest=t.newer}if(t.newer){t.newer.older=t.older}if(t.older){t.older.newer=t.newer}this.map.delete(e);this.dispose(t.value,e);return true}return false};return e}();var vr=new dr;var yr=[];var mr=[];var gr=100;function br(e,t){if(!e){throw new Error(t||"assertion failure")}}function Ir(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function kr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Er(e){return e.slice(0)}var wr=function(){function e(t,r){this.fn=t;this.args=r;this.parents=new Set;this.childValues=new Map;this.dirtyChildren=null;this.dirty=true;this.recomputing=false;this.value=[];++e.count}e.prototype.recompute=function(){br(!this.recomputing,"already recomputing");if(!Tr(this)&&Mr(this)){return void 0}return Or(this)?Sr(this):kr(this.value)};e.prototype.setDirty=function(){if(this.dirty)return;this.dirty=true;this.value.length=0;Nr(this);Qr(this)};e.prototype.dispose=function(){var e=this;Fr(this).forEach(Mr);Qr(this);this.parents.forEach((function(t){t.setDirty();qr(t,e)}))};e.count=0;return e}();function Tr(e){var t=vr.getValue();if(t){e.parents.add(t);if(!t.childValues.has(e)){t.childValues.set(e,[])}if(Or(e)){Rr(t,e)}else{Cr(t,e)}return t}}function Sr(e){var t=Fr(e);vr.withValue(e,_r,[e]);if(Lr(e)){xr(e)}t.forEach(Mr);return kr(e.value)}function _r(e){e.recomputing=true;e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=false}function Or(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function xr(e){e.dirty=false;if(Or(e)){return}Dr(e)}function Nr(e){e.parents.forEach((function(t){return Rr(t,e)}))}function Dr(e){e.parents.forEach((function(t){return Cr(t,e)}))}function Rr(e,t){br(e.childValues.has(t));br(Or(t));if(!e.dirtyChildren){e.dirtyChildren=mr.pop()||new Set}else if(e.dirtyChildren.has(t)){return}e.dirtyChildren.add(t);Nr(e)}function Cr(e,t){br(e.childValues.has(t));br(!Or(t));var r=e.childValues.get(t);if(r.length===0){e.childValues.set(t,Er(t.value))}else if(!Ir(r,t.value)){e.setDirty()}Ar(e,t);if(Or(e)){return}Dr(e)}function Ar(e,t){var r=e.dirtyChildren;if(r){r.delete(t);if(r.size===0){if(mr.length<gr){mr.push(r)}e.dirtyChildren=null}}}function Mr(e){return e.parents.size===0&&typeof e.reportOrphan==="function"&&e.reportOrphan()===true}function Fr(e){var t=yr;if(e.childValues.size>0){t=[];e.childValues.forEach((function(r,n){qr(e,n);t.push(n)}))}br(e.dirtyChildren===null);return t}function qr(e,t){t.parents.delete(e);e.childValues.delete(t);Ar(e,t)}function Lr(e){if(typeof e.subscribe==="function"){try{Qr(e);e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){e.setDirty();return false}}return true}function Qr(e){var t=e.unsubscribe;if(typeof t==="function"){e.unsubscribe=void 0;t()}}var Pr=function(){function e(e){this.weakness=e}e.prototype.lookup=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return this.lookupArray(e)};e.prototype.lookupArray=function(e){var t=this;e.forEach((function(e){return t=t.getChildTrie(e)}));return t.data||(t.data=Object.create(null))};e.prototype.getChildTrie=function(t){var r=this.weakness&&Kr(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);var n=r.get(t);if(!n)r.set(t,n=new e(this.weakness));return n};return e}();function Kr(e){switch(typeof e){case"object":if(e===null)break;case"function":return true}return false}var Vr=new Pr(typeof WeakMap==="function");function jr(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Vr.lookupArray(e)}var $r=new Set;function Br(e,t){if(t===void 0){t=Object.create(null)}var r=new hr(t.max||Math.pow(2,16),(function(e){return e.dispose()}));var n=!!t.disposable;var i=t.makeCacheKey||jr;function a(){if(n&&!vr.hasValue()){return void 0}var a=i.apply(null,arguments);if(a===void 0){return e.apply(null,arguments)}var o=Array.prototype.slice.call(arguments);var s=r.get(a);if(s){s.args=o}else{s=new wr(e,o);r.set(a,s);s.subscribe=t.subscribe;if(n){s.reportOrphan=function(){return r.delete(a)}}}var u=s.recompute();r.set(a,s);$r.add(r);if(!vr.hasValue()){$r.forEach((function(e){return e.clean()}));$r.clear()}return n?void 0:u}a.dirty=function(){var e=i.apply(null,arguments);var t=e!==void 0&&r.get(e);if(t){t.setDirty()}};return a}var Ur=function(){function e(){}e.prototype.ensureReady=function(){return Promise.resolve()};e.prototype.canBypassInit=function(){return true};e.prototype.match=function(e,t,r){var n=r.store.get(e.id);var i=e.id==="ROOT_QUERY";if(!n){return i}var a=n.__typename,o=a===void 0?i&&"Query":a;if(!o){return"heuristic"}if(o===t){return true}return"heuristic"};return e}();var Gr=Object.prototype.hasOwnProperty;var Yr=function(){function e(e){var t=this;if(e===void 0){e=Object.create(null)}this.data=e;this.depend=Br((function(e){return t.data[e]}),{disposable:true,makeCacheKey:function(e){return e}})}e.prototype.toObject=function(){return this.data};e.prototype.get=function(e){this.depend(e);return this.data[e]};e.prototype.set=function(e,t){var r=this.data[e];if(t!==r){this.data[e]=t;this.depend.dirty(e)}};e.prototype.delete=function(e){if(Gr.call(this.data,e)){delete this.data[e];this.depend.dirty(e)}};e.prototype.clear=function(){this.replace(null)};e.prototype.replace=function(e){var t=this;if(e){Object.keys(e).forEach((function(r){t.set(r,e[r])}));Object.keys(this.data).forEach((function(r){if(!Gr.call(e,r)){t.delete(r)}}))}else{Object.keys(this.data).forEach((function(e){t.delete(e)}))}};return e}();function Jr(e){return new Yr(e)}var Wr=function(){function e(e){var t=this;var r=e===void 0?{}:e,n=r.cacheKeyRoot,i=n===void 0?new Pr(Ne):n,a=r.freezeResults,o=a===void 0?false:a;var s=this,u=s.executeStoreQuery,c=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=o;this.executeStoreQuery=Br((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,a=e.variableValues,o=e.fragmentMatcher;if(n.store instanceof Yr){return i.lookup(n.store,t,o,JSON.stringify(a),r.id)}}});this.executeSelectionSet=Br((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof Yr){return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}});this.executeSubSelectedArray=Br((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof Yr){return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}}})}e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(a(a({},e),{returnPartialData:false})).result};e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,a=e.returnPartialData,o=a===void 0?true:a,s=e.rootId,u=s===void 0?"ROOT_QUERY":s,c=e.fragmentMatcherFunction,l=e.config;var f=ce(r);n=ie({},pe(f),n);var d={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}};var p=this.executeStoreQuery({query:r,rootValue:{type:"id",id:u,generated:true,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:c});var h=p.missing&&p.missing.length>0;if(h&&!o){p.missing.forEach((function(e){if(e.tolerable)return;throw new g(8)}))}if(i){if(O(i,p.result)){p.result=i}}return{result:p.result,complete:!h}};e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,a=e.fragmentMatcher,o=a===void 0?Xr:a;var s=fe(t);var u=ue(t);var c=de(u);var l={query:t,fragmentMap:c,contextValue:n,variableValues:i,fragmentMatcher:o};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:l})};e.prototype.executeSelectionSet=function(e){var t=this;var r=e.selectionSet,n=e.rootValue,i=e.execContext;var o=i.fragmentMap,s=i.contextValue,u=i.variableValues;var c={result:null};var l=[];var f=s.store.get(n.id);var d=f&&f.__typename||n.id==="ROOT_QUERY"&&"Query"||void 0;function p(e){var t;if(e.missing){c.missing=c.missing||[];(t=c.missing).push.apply(t,e.missing)}return e.result}r.selections.forEach((function(e){var r;if(!X(e,u)){return}if(U(e)){var c=p(t.executeField(f,d,e,i));if(typeof c!=="undefined"){l.push((r={},r[B(e)]=c,r))}}else{var h=void 0;if(G(e)){h=e}else{h=o[e.name.value];if(!h){throw new g(9)}}var v=h.typeCondition&&h.typeCondition.name.value;var y=!v||i.fragmentMatcher(n,v,s);if(y){var m=t.executeSelectionSet({selectionSet:h.selectionSet,rootValue:n,execContext:i});if(y==="heuristic"&&m.missing){m=a(a({},m),{missing:m.missing.map((function(e){return a(a({},e),{tolerable:true})}))})}l.push(p(m))}}}));c.result=$e(l);if(this.freezeResults&&"production"!=="production"){Object.freeze(c.result)}return c};e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,a=n.contextValue;var o=r.name.value;var s=$(r,i);var u={resultKey:B(r),directives:z(r,i)};var c=Hr(e,t,o,s,a,u);if(Array.isArray(c.result)){return this.combineExecResults(c,this.executeSubSelectedArray({field:r,array:c.result,execContext:n}))}if(!r.selectionSet){zr(r,c.result);if(this.freezeResults&&"production"!=="production"){Ke(c)}return c}if(c.result==null){return c}return this.combineExecResults(c,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:c.result,execContext:n}))};e.prototype.combineExecResults=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;e.forEach((function(e){if(e.missing){r=r||[];r.push.apply(r,e.missing)}}));return{result:e.pop().result,missing:r}};e.prototype.executeSubSelectedArray=function(e){var t=this;var r=e.field,n=e.array,i=e.execContext;var a;function o(e){if(e.missing){a=a||[];a.push.apply(a,e.missing)}return e.result}n=n.map((function(e){if(e===null){return null}if(Array.isArray(e)){return o(t.executeSubSelectedArray({field:r,array:e,execContext:i}))}if(r.selectionSet){return o(t.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:i}))}zr(r,e);return e}));if(this.freezeResults&&"production"!=="production"){Object.freeze(n)}return{result:n,missing:a}};return e}();function zr(e,t){if(!e.selectionSet&&Y(t)){throw new g(10)}}function Xr(){return true}function Hr(e,t,r,n,i,a){var o=a.directives;var s=r;if(n||o){s=j(s,n,o)}var u=void 0;if(e){u=e[s];if(typeof u==="undefined"&&i.cacheRedirects&&typeof t==="string"){var c=i.cacheRedirects[t];if(c){var l=c[r];if(l){u=l(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&J({id:t,typename:e.__typename})}})}}}}if(typeof u==="undefined"){return{result:u,missing:[{object:e,fieldName:s,tolerable:false}]}}if(W(u)){u=u.json}return{result:u}}var Zr=function(){function e(e){if(e===void 0){e=Object.create(null)}this.data=e}e.prototype.toObject=function(){return this.data};e.prototype.get=function(e){return this.data[e]};e.prototype.set=function(e,t){this.data[e]=t};e.prototype.delete=function(e){this.data[e]=void 0};e.prototype.clear=function(){this.data=Object.create(null)};e.prototype.replace=function(e){this.data=e||Object.create(null)};return e}();var en=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type="WriteError";return t}return t}(Error);function tn(e,t){var r=new en("Error writing result to store for query:\n "+JSON.stringify(t));r.message+="\n"+e.message;r.stack=e.stack;return r}var rn=function(){function e(){}e.prototype.writeQueryToStore=function(e){var t=e.query,r=e.result,n=e.store,i=n===void 0?Jr():n,a=e.variables,o=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:t,store:i,variables:a,dataIdFromObject:o,fragmentMatcherFunction:s})};e.prototype.writeResultToStore=function(e){var t=e.dataId,r=e.result,n=e.document,i=e.store,a=i===void 0?Jr():i,o=e.variables,s=e.dataIdFromObject,u=e.fragmentMatcherFunction;var c=oe(n);try{return this.writeSelectionSetToStore({result:r,dataId:t,selectionSet:c.selectionSet,context:{store:a,processedData:{},variables:ie({},pe(c),o),dataIdFromObject:s,fragmentMap:de(ue(n)),fragmentMatcherFunction:u}})}catch(e){throw tn(e,n)}};e.prototype.writeSelectionSetToStore=function(e){var t=this;var r=e.result,n=e.dataId,i=e.selectionSet,a=e.context;var o=a.variables,s=a.store,u=a.fragmentMap;i.selections.forEach((function(e){var i;if(!X(e,o)){return}if(U(e)){var s=B(e);var c=r[s];if(typeof c!=="undefined"){t.writeFieldToStore({dataId:n,value:c,field:e,context:a})}else{var l=false;var f=false;if(e.directives&&e.directives.length){l=e.directives.some((function(e){return e.name&&e.name.value==="defer"}));f=e.directives.some((function(e){return e.name&&e.name.value==="client"}))}}}else{var d=void 0;if(G(e)){d=e}else{d=(u||{})[e.name.value];b(d,3)}var p=true;if(a.fragmentMatcherFunction&&d.typeCondition){var h=n||"self";var v=J({id:h,typename:undefined});var y={store:new Zr((i={},i[h]=r,i)),cacheRedirects:{}};var m=a.fragmentMatcherFunction(v,d.typeCondition.name.value,y);p=!!m}if(p){t.writeSelectionSetToStore({result:r,selectionSet:d.selectionSet,dataId:n,context:a})}}}));return s};e.prototype.writeFieldToStore=function(e){var t;var r=e.field,n=e.value,i=e.dataId,o=e.context;var s=o.variables,u=o.dataIdFromObject,c=o.store;var l;var f;var d=K(r,s);if(!r.selectionSet||n===null){l=n!=null&&typeof n==="object"?{type:"json",json:n}:n}else if(Array.isArray(n)){var p=i+"."+d;l=this.processArrayValue(n,p,r.selectionSet,o)}else{var h=i+"."+d;var v=true;if(!nn(h)){h="$"+h}if(u){var y=u(n);b(!y||!nn(y),4);if(y||typeof y==="number"&&y===0){h=y;v=false}}if(!on(h,r,o.processedData)){this.writeSelectionSetToStore({dataId:h,result:n,selectionSet:r.selectionSet,context:o})}var m=n.__typename;l=J({id:h,typename:m},v);f=c.get(i);var g=f&&f[d];if(g!==l&&Y(g)){var I=g.typename!==undefined;var k=m!==undefined;var E=I&&k&&g.typename!==m;b(!v||g.generated||E,5);b(!I||k,6);if(g.generated){if(E){if(!v){c.delete(g.id)}}else{an(g.id,l.id,c)}}}}f=c.get(i);if(!f||!O(l,f[d])){c.set(i,a(a({},f),(t={},t[d]=l,t)))}};e.prototype.processArrayValue=function(e,t,r,n){var i=this;return e.map((function(e,a){if(e===null){return null}var o=t+"."+a;if(Array.isArray(e)){return i.processArrayValue(e,o,r,n)}var s=true;if(n.dataIdFromObject){var u=n.dataIdFromObject(e);if(u){o=u;s=false}}if(!on(o,r,n.processedData)){i.writeSelectionSetToStore({dataId:o,result:e,selectionSet:r,context:n})}return J({id:o,typename:e.__typename},s)}))};return e}();function nn(e){return e[0]==="$"}function an(e,t,r){if(e===t){return false}var n=r.get(e);var i=r.get(t);var o=false;Object.keys(n).forEach((function(e){var t=n[e];var a=i[e];if(Y(t)&&nn(t.id)&&Y(a)&&!O(t,a)&&an(t.id,a.id,r)){o=true}}));r.delete(e);var s=a(a({},n),i);if(O(s,i)){return o}r.set(t,s);return true}function on(e,t,r){if(!r){return false}if(r[e]){if(r[e].indexOf(t)>=0){return true}else{r[e].push(t)}}else{r[e]=[t]}return false}var sn={fragmentMatcher:new Ur,dataIdFromObject:un,addTypename:true,resultCaching:true,freezeResults:false};function un(e){if(e.__typename){if(e.id!==undefined){return e.__typename+":"+e.id}if(e._id!==undefined){return e.__typename+":"+e._id}}return null}var cn=Object.prototype.hasOwnProperty;var ln=function(e){i(t,e);function t(t,r,n){var i=e.call(this,Object.create(null))||this;i.optimisticId=t;i.parent=r;i.transaction=n;return i}t.prototype.toObject=function(){return a(a({},this.parent.toObject()),this.data)};t.prototype.get=function(e){return cn.call(this.data,e)?this.data[e]:this.parent.get(e)};return t}(Zr);var fn=function(e){i(t,e);function t(t){if(t===void 0){t={}}var r=e.call(this)||this;r.watches=new Set;r.typenameDocumentCache=new Map;r.cacheKeyRoot=new Pr(Ne);r.silenceBroadcast=false;r.config=a(a({},sn),t);if(r.config.customResolvers){r.config.cacheRedirects=r.config.customResolvers}if(r.config.cacheResolvers){r.config.cacheRedirects=r.config.cacheResolvers}r.addTypename=!!r.config.addTypename;r.data=r.config.resultCaching?new Yr:new Zr;r.optimisticData=r.data;r.storeWriter=new rn;r.storeReader=new Wr({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r;var i=n.maybeBroadcastWatch;r.maybeBroadcastWatch=Br((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(e.optimistic){return}if(e.previousResult){return}if(n.data instanceof Yr){return n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables))}}});return r}t.prototype.restore=function(e){if(e)this.data.replace(e);return this};t.prototype.extract=function(e){if(e===void 0){e=false}return(e?this.optimisticData:this.data).toObject()};t.prototype.read=function(e){if(typeof e.rootId==="string"&&typeof this.data.get(e.rootId)==="undefined"){return null}var t=this.config.fragmentMatcher;var r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null};t.prototype.write=function(e){var t=this.config.fragmentMatcher;var r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r});this.broadcastWatches()};t.prototype.diff=function(e){var t=this.config.fragmentMatcher;var r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})};t.prototype.watch=function(e){var t=this;this.watches.add(e);return function(){t.watches.delete(e)}};t.prototype.evict=function(e){throw new g(7)};t.prototype.reset=function(){this.data.clear();this.broadcastWatches();return Promise.resolve()};t.prototype.removeOptimistic=function(e){var t=[];var r=0;var n=this.optimisticData;while(n instanceof ln){if(n.optimisticId===e){++r}else{t.push(n)}n=n.parent}if(r>0){this.optimisticData=n;while(t.length>0){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}};t.prototype.performTransaction=function(e,t){var r=this,n=r.data,i=r.silenceBroadcast;this.silenceBroadcast=true;if(typeof t==="string"){this.data=this.optimisticData=new ln(t,this.optimisticData,e)}try{e(this)}finally{this.silenceBroadcast=i;this.data=n}this.broadcastWatches()};t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)};t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);if(!t){t=Ie(e);this.typenameDocumentCache.set(e,t);this.typenameDocumentCache.set(t,t)}return t}return e};t.prototype.broadcastWatches=function(){var e=this;if(!this.silenceBroadcast){this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))}};t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))};return t}(ar);var dn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=r;function r(e,t){var r=Boolean(e);if(!r){throw new Error(t)}}}));r(dn);var pn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=i;var r=n(l);function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e.prototype.toString;e.prototype.toJSON=t;e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));r(pn);var hn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function r(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){r=function e(t){return typeof t}}else{r=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return r(e)}function n(e){return r(e)=="object"&&e!==null}}));r(hn);var vn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getLocation=r;function r(e,t){var r=/\r\n|[\n\r]/g;var n=1;var i=t+1;var a;while((a=r.exec(e.body))&&a.index<t){n+=1;i=t+1-(a.index+a[0].length)}return{line:n,column:i}}}));r(vn);var yn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.printLocation=r;t.printSourceLocation=n;function r(e){return n(e.source,(0,vn.getLocation)(e.source,e.start))}function n(e,t){var r=e.locationOffset.column-1;var n=a(r)+e.body;var o=t.line-1;var s=e.locationOffset.line-1;var u=t.line+s;var c=t.line===1?r:0;var l=t.column+c;var f="".concat(e.name,":").concat(u,":").concat(l,"\n");var d=n.split(/\r\n|[\n\r]/g);var p=d[o];if(p.length>120){var h=Math.floor(l/80);var v=l%80;var y=[];for(var m=0;m<p.length;m+=80){y.push(p.slice(m,m+80))}return f+i([["".concat(u),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",a(v-1)+"^"],["",y[h+1]]]))}return f+i([["".concat(u-1),d[o-1]],["".concat(u),p],["",a(l-1)+"^"],["".concat(u+1),d[o+1]]])}function i(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var r=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],n=e[1];return o(r,t)+(n?" | "+n:" |")})).join("\n")}function a(e){return Array(e+1).join(" ")}function o(e,t){return a(e-t.length)+t}}));r(yn);var mn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=i;t.printError=a;var r=n(hn);function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,a,o,s,u){var c=Array.isArray(t)?t.length!==0?t:undefined:t?[t]:undefined;var l=n;if(!l&&c){var f=c[0];l=f&&f.loc&&f.loc.source}var d=a;if(!d&&c){d=c.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(d&&d.length===0){d=undefined}var p;if(a&&n){p=a.map((function(e){return(0,vn.getLocation)(n,e)}))}else if(c){p=c.reduce((function(e,t){if(t.loc){e.push((0,vn.getLocation)(t.loc.source,t.loc.start))}return e}),[])}var h=u;if(h==null&&s!=null){var v=s.extensions;if((0,r.default)(v)){h=v}}Object.defineProperties(this,{message:{value:e,enumerable:true,writable:true},locations:{value:p||undefined,enumerable:Boolean(p)},path:{value:o||undefined,enumerable:Boolean(o)},nodes:{value:c||undefined},source:{value:l||undefined},positions:{value:d||undefined},originalError:{value:s},extensions:{value:h||undefined,enumerable:Boolean(h)}});if(s&&s.stack){Object.defineProperty(this,"stack",{value:s.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,i)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"},toString:{value:function e(){return a(this)}}});function a(e){var t=e.message;if(e.nodes){for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];if(i.loc){t+="\n\n"+(0,yn.printLocation)(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+(0,yn.printSourceLocation)(e.source,s)}}return t}}));r(mn);var gn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=r;function r(e,t,r){return new mn.GraphQLError("Syntax Error: ".concat(r),undefined,e,[t])}}));r(gn);var bn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r=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"});t.Kind=r}));r(bn);var In=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=r;function r(e){if(typeof Symbol==="function"&&Symbol.toStringTag){Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function e(){return this.constructor.name}})}}}));r(In);var kn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;var r=i(dn);var n=i(In);function i(e){return e&&e.__esModule?e:{default:e}}var a=function e(t,n,i){this.body=t;this.name=n||"GraphQL request";this.locationOffset=i||{line:1,column:1};this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive");this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=a;(0,n.default)(a)}));r(kn);var En=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r=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"});t.TokenKind=r}));r(En);var wn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.createLexer=i;t.isPunctuatorToken=s;var r=n(pn);function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=new u(En.TokenKind.SOF,0,0,0,0,null);var n={source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:a,lookahead:o};return n}function a(){this.lastToken=this.token;var e=this.token=this.lookahead();return e}function o(){var e=this.token;if(e.kind!==En.TokenKind.EOF){do{e=e.next||(e.next=l(this,e))}while(e.kind===En.TokenKind.COMMENT)}return e}function s(e){var t=e.kind;return t===En.TokenKind.BANG||t===En.TokenKind.DOLLAR||t===En.TokenKind.AMP||t===En.TokenKind.PAREN_L||t===En.TokenKind.PAREN_R||t===En.TokenKind.SPREAD||t===En.TokenKind.COLON||t===En.TokenKind.EQUALS||t===En.TokenKind.AT||t===En.TokenKind.BRACKET_L||t===En.TokenKind.BRACKET_R||t===En.TokenKind.BRACE_L||t===En.TokenKind.PIPE||t===En.TokenKind.BRACE_R}function u(e,t,r,n,i,a,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=i;this.value=o;this.prev=a;this.next=null}(0,r.default)(u,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));function c(e){return isNaN(e)?En.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){var r=e.source;var n=r.body;var i=n.length;var a=d(n,t.end,e);var o=e.line;var s=1+a-e.lineStart;if(a>=i){return new u(En.TokenKind.EOF,i,i,o,s,t)}var c=n.charCodeAt(a);switch(c){case 33:return new u(En.TokenKind.BANG,a,a+1,o,s,t);case 35:return p(r,a,o,s,t);case 36:return new u(En.TokenKind.DOLLAR,a,a+1,o,s,t);case 38:return new u(En.TokenKind.AMP,a,a+1,o,s,t);case 40:return new u(En.TokenKind.PAREN_L,a,a+1,o,s,t);case 41:return new u(En.TokenKind.PAREN_R,a,a+1,o,s,t);case 46:if(n.charCodeAt(a+1)===46&&n.charCodeAt(a+2)===46){return new u(En.TokenKind.SPREAD,a,a+3,o,s,t)}break;case 58:return new u(En.TokenKind.COLON,a,a+1,o,s,t);case 61:return new u(En.TokenKind.EQUALS,a,a+1,o,s,t);case 64:return new u(En.TokenKind.AT,a,a+1,o,s,t);case 91:return new u(En.TokenKind.BRACKET_L,a,a+1,o,s,t);case 93:return new u(En.TokenKind.BRACKET_R,a,a+1,o,s,t);case 123:return new u(En.TokenKind.BRACE_L,a,a+1,o,s,t);case 124:return new u(En.TokenKind.PIPE,a,a+1,o,s,t);case 125:return new u(En.TokenKind.BRACE_R,a,a+1,o,s,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 I(r,a,o,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h(r,a,c,o,s,t);case 34:if(n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){return m(r,a,o,s,t,e)}return y(r,a,o,s,t)}throw(0,gn.syntaxError)(r,a,f(c))}function f(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(c(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(c(e),".")}function d(e,t,r){var n=e.length;var i=t;while(i<n){var a=e.charCodeAt(i);if(a===9||a===32||a===44||a===65279){++i}else if(a===10){++i;++r.line;r.lineStart=i}else if(a===13){if(e.charCodeAt(i+1)===10){i+=2}else{++i}++r.line;r.lineStart=i}else{break}}return i}function p(e,t,r,n,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new u(En.TokenKind.COMMENT,t,s,r,n,i,a.slice(t+1,s))}function h(e,t,r,n,i,a){var o=e.body;var s=r;var l=t;var f=false;if(s===45){s=o.charCodeAt(++l)}if(s===48){s=o.charCodeAt(++l);if(s>=48&&s<=57){throw(0,gn.syntaxError)(e,l,"Invalid number, unexpected digit after 0: ".concat(c(s),"."))}}else{l=v(e,l,s);s=o.charCodeAt(l)}if(s===46){f=true;s=o.charCodeAt(++l);l=v(e,l,s);s=o.charCodeAt(l)}if(s===69||s===101){f=true;s=o.charCodeAt(++l);if(s===43||s===45){s=o.charCodeAt(++l)}l=v(e,l,s);s=o.charCodeAt(l)}if(s===46||s===69||s===101){throw(0,gn.syntaxError)(e,l,"Invalid number, expected digit but got: ".concat(c(s),"."))}return new u(f?En.TokenKind.FLOAT:En.TokenKind.INT,t,l,n,i,a,o.slice(t,l))}function v(e,t,r){var n=e.body;var i=t;var a=r;if(a>=48&&a<=57){do{a=n.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw(0,gn.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(c(a),"."))}function y(e,t,r,n,i){var a=e.body;var o=t+1;var s=o;var l=0;var f="";while(o<a.length&&!isNaN(l=a.charCodeAt(o))&&l!==10&&l!==13){if(l===34){f+=a.slice(s,o);return new u(En.TokenKind.STRING,t,o+1,r,n,i,f)}if(l<32&&l!==9){throw(0,gn.syntaxError)(e,o,"Invalid character within String: ".concat(c(l),"."))}++o;if(l===92){f+=a.slice(s,o-1);l=a.charCodeAt(o);switch(l){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:{var d=g(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(d<0){var p=a.slice(o+1,o+5);throw(0,gn.syntaxError)(e,o,"Invalid character escape sequence: \\u".concat(p,"."))}f+=String.fromCharCode(d);o+=4;break}default:throw(0,gn.syntaxError)(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}++o;s=o}}throw(0,gn.syntaxError)(e,o,"Unterminated string.")}function m(e,t,r,n,i,a){var o=e.body;var s=t+3;var l=s;var f=0;var d="";while(s<o.length&&!isNaN(f=o.charCodeAt(s))){if(f===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){d+=o.slice(l,s);return new u(En.TokenKind.BLOCK_STRING,t,s+3,r,n,i,(0,Qt.dedentBlockStringValue)(d))}if(f<32&&f!==9&&f!==10&&f!==13){throw(0,gn.syntaxError)(e,s,"Invalid character within String: ".concat(c(f),"."))}if(f===10){++s;++a.line;a.lineStart=s}else if(f===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(f===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){d+=o.slice(l,s)+'"""';s+=4;l=s}else{++s}}throw(0,gn.syntaxError)(e,s,"Unterminated string.")}function g(e,t,r,n){return b(e)<<12|b(t)<<8|b(r)<<4|b(n)}function b(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t,r,n,i){var a=e.body;var o=a.length;var s=t+1;var c=0;while(s!==o&&!isNaN(c=a.charCodeAt(s))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122)){++s}return new u(En.TokenKind.NAME,t,s,r,n,i,a.slice(t,s))}}));r(wn);var Tn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r=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"});t.DirectiveLocation=r}));r(Tn);var Sn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.parse=o;t.parseValue=s;t.parseType=u;var r=a(f);var n=a(dn);var i=a(pn);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=new c(e,t);return r.parseDocument()}function s(e,t){var r=new c(e,t);r.expectToken(En.TokenKind.SOF);var n=r.parseValueLiteral(false);r.expectToken(En.TokenKind.EOF);return n}function u(e,t){var r=new c(e,t);r.expectToken(En.TokenKind.SOF);var n=r.parseTypeReference();r.expectToken(En.TokenKind.EOF);return n}var c=function(){function e(e,t){var i=typeof e==="string"?new kn.Source(e):e;i instanceof kn.Source||(0,n.default)(0,"Must provide Source. Received: ".concat((0,r.default)(i)));this._lexer=(0,wn.createLexer)(i);this._options=t||{}}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(En.TokenKind.NAME);return{kind:bn.Kind.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:bn.Kind.DOCUMENT,definitions:this.many(En.TokenKind.SOF,this.parseDefinition,En.TokenKind.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(En.TokenKind.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(En.TokenKind.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(En.TokenKind.BRACE_L)){return{kind:bn.Kind.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var r=this.parseOperationType();var n;if(this.peek(En.TokenKind.NAME)){n=this.parseName()}return{kind:bn.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(En.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(En.TokenKind.PAREN_L,this.parseVariableDefinition,En.TokenKind.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:bn.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(En.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(En.TokenKind.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(En.TokenKind.DOLLAR);return{kind:bn.Kind.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:bn.Kind.SELECTION_SET,selections:this.many(En.TokenKind.BRACE_L,this.parseSelection,En.TokenKind.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(En.TokenKind.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var r=this.parseName();var n;var i;if(this.expectOptionalToken(En.TokenKind.COLON)){n=r;i=this.parseName()}else{i=r}return{kind:bn.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(En.TokenKind.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(En.TokenKind.PAREN_L,r,En.TokenKind.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var r=this.parseName();this.expectToken(En.TokenKind.COLON);return{kind:bn.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:bn.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(En.TokenKind.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(En.TokenKind.SPREAD);var r=this.expectOptionalKeyword("on");if(!r&&this.peek(En.TokenKind.NAME)){return{kind:bn.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:bn.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t=this._lexer.token;this.expectKeyword("fragment");if(this._options.experimentalFragmentVariables){return{kind:bn.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}return{kind:bn.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var r=this._lexer.token;switch(r.kind){case En.TokenKind.BRACKET_L:return this.parseList(t);case En.TokenKind.BRACE_L:return this.parseObject(t);case En.TokenKind.INT:this._lexer.advance();return{kind:bn.Kind.INT,value:r.value,loc:this.loc(r)};case En.TokenKind.FLOAT:this._lexer.advance();return{kind:bn.Kind.FLOAT,value:r.value,loc:this.loc(r)};case En.TokenKind.STRING:case En.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case En.TokenKind.NAME:if(r.value==="true"||r.value==="false"){this._lexer.advance();return{kind:bn.Kind.BOOLEAN,value:r.value==="true",loc:this.loc(r)}}else if(r.value==="null"){this._lexer.advance();return{kind:bn.Kind.NULL,loc:this.loc(r)}}this._lexer.advance();return{kind:bn.Kind.ENUM,value:r.value,loc:this.loc(r)};case En.TokenKind.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:bn.Kind.STRING,value:t.value,block:t.kind===En.TokenKind.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var r=this;var n=this._lexer.token;var i=function e(){return r.parseValueLiteral(t)};return{kind:bn.Kind.LIST,values:this.any(En.TokenKind.BRACKET_L,i,En.TokenKind.BRACKET_R),loc:this.loc(n)}};t.parseObject=function e(t){var r=this;var n=this._lexer.token;var i=function e(){return r.parseObjectField(t)};return{kind:bn.Kind.OBJECT,fields:this.any(En.TokenKind.BRACE_L,i,En.TokenKind.BRACE_R),loc:this.loc(n)}};t.parseObjectField=function e(t){var r=this._lexer.token;var n=this.parseName();this.expectToken(En.TokenKind.COLON);return{kind:bn.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t),loc:this.loc(r)}};t.parseDirectives=function e(t){var r=[];while(this.peek(En.TokenKind.AT)){r.push(this.parseDirective(t))}return r};t.parseDirective=function e(t){var r=this._lexer.token;this.expectToken(En.TokenKind.AT);return{kind:bn.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(r)}};t.parseTypeReference=function e(){var t=this._lexer.token;var r;if(this.expectOptionalToken(En.TokenKind.BRACKET_L)){r=this.parseTypeReference();this.expectToken(En.TokenKind.BRACKET_R);r={kind:bn.Kind.LIST_TYPE,type:r,loc:this.loc(t)}}else{r=this.parseNamedType()}if(this.expectOptionalToken(En.TokenKind.BANG)){return{kind:bn.Kind.NON_NULL_TYPE,type:r,loc:this.loc(t)}}return r};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:bn.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===En.TokenKind.NAME){switch(t.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(t)};t.peekDescription=function e(){return this.peek(En.TokenKind.STRING)||this.peek(En.TokenKind.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;this.expectKeyword("schema");var r=this.parseDirectives(true);var n=this.many(En.TokenKind.BRACE_L,this.parseOperationTypeDefinition,En.TokenKind.BRACE_R);return{kind:bn.Kind.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseOperationType();this.expectToken(En.TokenKind.COLON);var n=this.parseNamedType();return{kind:bn.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName();var i=this.parseDirectives(true);return{kind:bn.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("type");var n=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:bn.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(En.TokenKind.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(En.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(En.TokenKind.NAME))}return t};t.parseFieldsDefinition=function e(){if(this._options.allowLegacySDLEmptyFields&&this.peek(En.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===En.TokenKind.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(En.TokenKind.BRACE_L,this.parseFieldDefinition,En.TokenKind.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();var i=this.parseArgumentDefs();this.expectToken(En.TokenKind.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:bn.Kind.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(En.TokenKind.PAREN_L,this.parseInputValueDef,En.TokenKind.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();this.expectToken(En.TokenKind.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(En.TokenKind.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:bn.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("interface");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();return{kind:bn.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("union");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:bn.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){var t=[];if(this.expectOptionalToken(En.TokenKind.EQUALS)){this.expectOptionalToken(En.TokenKind.PIPE);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(En.TokenKind.PIPE))}return t};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("enum");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:bn.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(En.TokenKind.BRACE_L,this.parseEnumValueDefinition,En.TokenKind.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();var i=this.parseDirectives(true);return{kind:bn.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("input");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:bn.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(En.TokenKind.BRACE_L,this.parseInputValueDef,En.TokenKind.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===En.TokenKind.NAME){switch(t.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(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var r=this.parseDirectives(true);var n=this.optionalMany(En.TokenKind.BRACE_L,this.parseOperationTypeDefinition,En.TokenKind.BRACE_R);if(r.length===0&&n.length===0){throw this.unexpected()}return{kind:bn.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var r=this.parseName();var n=this.parseDirectives(true);if(n.length===0){throw this.unexpected()}return{kind:bn.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var r=this.parseName();var n=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:bn.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseFieldsDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.INTERFACE_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("directive");this.expectToken(En.TokenKind.AT);var n=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:bn.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){this.expectOptionalToken(En.TokenKind.PIPE);var t=[];do{t.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(En.TokenKind.PIPE));return t};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var r=this.parseName();if(Tn.DirectiveLocation[r.value]!==undefined){return r}throw this.unexpected(t)};t.loc=function e(t){if(!this._options.noLocation){return new l(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var r=this._lexer.token;if(r.kind===t){this._lexer.advance();return r}throw(0,gn.syntaxError)(this._lexer.source,r.start,"Expected ".concat(t,", found ").concat(d(r)))};t.expectOptionalToken=function e(t){var r=this._lexer.token;if(r.kind===t){this._lexer.advance();return r}return undefined};t.expectKeyword=function e(t){var r=this._lexer.token;if(r.kind===En.TokenKind.NAME&&r.value===t){this._lexer.advance()}else{throw(0,gn.syntaxError)(this._lexer.source,r.start,'Expected "'.concat(t,'", found ').concat(d(r)))}};t.expectOptionalKeyword=function e(t){var r=this._lexer.token;if(r.kind===En.TokenKind.NAME&&r.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var r=t||this._lexer.token;return(0,gn.syntaxError)(this._lexer.source,r.start,"Unexpected ".concat(d(r)))};t.any=function e(t,r,n){this.expectToken(t);var i=[];while(!this.expectOptionalToken(n)){i.push(r.call(this))}return i};t.optionalMany=function e(t,r,n){if(this.expectOptionalToken(t)){var i=[];do{i.push(r.call(this))}while(!this.expectOptionalToken(n));return i}return[]};t.many=function e(t,r,n){this.expectToken(t);var i=[];do{i.push(r.call(this))}while(!this.expectOptionalToken(n));return i};return e}();function l(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}(0,i.default)(l,(function(){return{start:this.start,end:this.end}}));function d(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}}));r(Sn);var _n=Sn.parse;function On(e){return e.replace(/[\s,]+/g," ").trim()}var xn={};var Nn={};function Dn(e){return On(e.source.body.substring(e.start,e.end))}function Rn(){xn={};Nn={}}var Cn=true;function An(e){var t={};var r=[];for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.kind==="FragmentDefinition"){var a=i.name.value;var o=Dn(i.loc);if(Nn.hasOwnProperty(a)&&!Nn[a][o]){if(Cn){console.warn("Warning: fragment with name "+a+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}Nn[a][o]=true}else if(!Nn.hasOwnProperty(a)){Nn[a]={};Nn[a][o]=true}if(!t[o]){t[o]=true;r.push(i)}}else{r.push(i)}}e.definitions=r;return e}function Mn(){Cn=false}function Fn(e,t){var r=Object.prototype.toString.call(e);if(r==="[object Array]"){return e.map((function(e){return Fn(e,t)}))}if(r!=="[object Object]"){throw new Error("Unexpected input.")}if(t&&e.loc){delete e.loc}if(e.loc){delete e.loc.startToken;delete e.loc.endToken}var n=Object.keys(e);var i;var a;var o;for(i in n){if(n.hasOwnProperty(i)){a=e[n[i]];o=Object.prototype.toString.call(a);if(o==="[object Object]"||o==="[object Array]"){e[n[i]]=Fn(a,true)}}}return e}var qn=false;function Ln(e){var t=On(e);if(xn[t]){return xn[t]}var r=_n(e,{experimentalFragmentVariables:qn});if(!r||r.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}r=An(r);r=Fn(r,false);xn[t]=r;return r}function Qn(){qn=true}function Pn(){qn=false}function Kn(){var e=Array.prototype.slice.call(arguments);var t=e[0];var r=typeof t==="string"?t:t[0];for(var n=1;n<e.length;n++){if(e[n]&&e[n].kind&&e[n].kind==="Document"){r+=e[n].loc.source.body}else{r+=e[n]}r+=t[n]}return Ln(r)}Kn.default=Kn;Kn.resetCaches=Rn;Kn.disableFragmentWarnings=Mn;Kn.enableExperimentalFragmentVariables=Qn;Kn.disableExperimentalFragmentVariables=Pn;var Vn=Kn;if(!window["widgetIdent"]){window["widgetIdent"]={env:"demo"}}function jn(){return window.widgetIdent}var $n=new Date;var Bn={shareLink:"http://ssqt.co",fueltankCode:"12AS3F",referralcode:"RIDDIKULUS",locale:"en_US",messageLink:{EMAIL:"http://short.staging.referralsaasquatch.com/mJjFXu",FACEBOOK:"http://short.staging.referralsaasquatch.com/mwjFXu",TWITTER:"http://short.staging.referralsaasquatch.com/mwjFXu",SMS:"http://short.staging.referralsaasquatch.com/mwjFXu",WHATSAPP:"http://short.staging.referralsaasquatch.com/mwjFXu",LINKEDIN:"http://short.staging.referralsaasquatch.com/mwjFXu",PINTEREST:"http://short.staging.referralsaasquatch.com/mwjFXu",FBMESSENGER:"http://short.staging.referralsaasquatch.com/mwjFXu"},referrals:{totalCount:9,data:[{dateReferralStarted:$n.setDate($n.getDate()-2),referredUser:{firstName:"Remus",lastName:"Lupin"},rewards:[{prettyValue:"$20.00",dateExpires:$n.setDate($n.getDate()+4),statuses:["EXPIRED"],meta:{message:"Applied to Invoice #1234"}},{prettyValue:"$10.00",statuses:["AVAILABLE"]},{prettyValue:"$5.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:$n.setDate($n.getDate()-1),referredUser:{firstName:"Gellert",lastName:"Grindelwald"},rewards:[]},{dateReferralStarted:$n.setDate($n.getDate()-1),referredUser:{firstName:"",lastName:""},rewards:[{prettyValue:"$20.00",dateExpires:$n.setDate($n.getDate()-2),statuses:["EXPIRED"]}]},{dateReferralStarted:$n.setDate($n.getDate()-5),referredUser:{firstName:"Lavender",lastName:"Brown"},rewards:[{prettyValue:"$20.00",statuses:["CANCELLED"]}]},{dateReferralStarted:$n.setDate($n.getDate()-4),referredUser:{firstName:"Blaise",lastName:"Zabini"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]},{prettyValue:"$10.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:$n.setDate($n.getDate()-10),referredUser:{firstName:"Argus",lastName:"Filch"},rewards:[]},{dateReferralStarted:$n.setDate($n.getDate()-15),referredUser:{firstName:"Ron",lastName:"Weasley"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:$n.setDate($n.getDate()-2),referredUser:{firstName:"Hermione",lastName:"Granger"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]},{prettyValue:"$10.00",statuses:["AVAILABLE"]},{prettyValue:"$5.00",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]}]},{dateConverted:1606943971468,dateReferralStarted:1606943971468,referredUser:{imageUrl:"",firstName:"Seamus",lastName:"Finnigan"},rewards:[]}]},referredByReferral:{dateReferralStarted:$n.setDate($n.getDate()-2),referrerUser:{firstName:"Rubeus",lastName:"Hagrid",referralCode:"RUBEUSHAGRID12"},rewards:[{fuelTankCode:"CODE1234",prettyValue:"$10.00",statuses:["AVAILABLE"]}]},referralsMonth:{totalCount:6},referralsWeek:{totalCount:3},rewardsCount:{totalCount:14},rewardsMonth:{totalCount:7},rewardsWeek:{totalCount:4},rewardBalancesGlobal:[{type:"CREDIT",unit:"CENTS",value:17e3,prettyValue:"$170.00",totalAssignedCredit:"17000",totalRedeemedCredit:"1500",prettyAssignedCredit:"$1000.00",prettyRedeemedCredit:"$15.00"},{type:"PCT_DISCOUNT",unit:"%",value:15,prettyValue:"15%"},{type:"CREDIT",unit:"CASH/CAD",count:3,totalPendingCredit:2e4,totalAssignedCredit:3e4,totalRedeemedCredit:1e4,totalExpiredCredit:0,totalCancelledCredit:0,prettyPendingCredit:"$200.00",prettyAssignedCredit:"$300.00",prettyRedeemedCredit:"$100.00",value:3e4,prettyValue:"$300.00"},{type:"CREDIT",unit:"CASH/USD",count:6,totalPendingCredit:25e3,totalAssignedCredit:4e4,totalRedeemedCredit:1e4,totalExpiredCredit:15e3,totalCancelledCredit:1e4,prettyPendingCredit:"USD250.00",prettyAssignedCredit:"USD400.00",prettyRedeemedCredit:"USD150.00",value:4e4,prettyValue:"USD400.00"}],rewardBalances:[{type:"CREDIT",unit:"CENTS",value:17e3,prettyValue:"$170.00",totalAssignedCredit:"17000",totalRedeemedCredit:"1500",prettyAssignedCredit:"$170.00",prettyRedeemedCredit:"$15.00"},{type:"PCT_DISCOUNT",unit:"%",value:15,prettyValue:"15%"},{type:"CREDIT",unit:"CASH/CAD",count:3,totalPendingCredit:2e4,totalAssignedCredit:3e4,totalRedeemedCredit:1e4,totalExpiredCredit:0,totalCancelledCredit:0,prettyPendingCredit:"$200.00",prettyAssignedCredit:"$300.00",prettyRedeemedCredit:"$100.00",value:3e4,prettyValue:"$300.00"},{type:"CREDIT",unit:"CASH/USD",count:6,totalPendingCredit:25e3,totalAssignedCredit:4e4,totalRedeemedCredit:1e4,totalExpiredCredit:15e3,totalCancelledCredit:1e4,prettyPendingCredit:"USD250.00",prettyAssignedCredit:"USD400.00",prettyRedeemedCredit:"USD150.00",value:4e4,prettyValue:"USD400.00"}],rewardBalanceDetails:[{prettyAvailableValue:"$5.00"},{prettyAvailableValue:"18%"}]};var Un=window.frameElement?window.frameElement.squatchJsApi:{};var Gn=function(){var e=jn(),t=e.tenantAlias,r=e.appDomain,n=e.token;var i=r+"/api/v1/"+t+"/graphql";var a={Authorization:"Bearer "+n};var o=new Lt({link:new er({uri:i,headers:a}),cache:new fn});return o};var Yn=e("A",{version:"Welcome to widget-host",analytics:{shareEvent:function(e){var t=jn();if(t["env"]==="demo"||!t)return Promise.resolve({});var r=t.userId,n=t.accountId,i=t.programId,a=i===void 0?"classic":i,o=t.engagementMedium;var s={eventMeta:{id:r,accountId:n,programId:a,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:o,shareMedium:e}}};return Gn().mutate({mutation:Vn(__makeTemplateObject(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "],["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "])),variables:s}).then((function(e){return e.data.createUserAnalyticsEvent}))},loadEvent:function(){return Promise.resolve({event:"loadEvent"})}},graphql:{getClient:function(){return Gn()},getUserFragment:function(e,t){var r=Vn(__makeTemplateObject(["\n fragment UserFragment on User {\n ","\n }"],["\n fragment UserFragment on User {\n ","\n }"]),e);var n=jn(),i=n.userId,a=n.accountId;var o=Object.assign(Object.assign({},t),{userId:i,accountId:a});return this.getClient().query({query:Vn(__makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ","\n "],["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ","\n "]),r),variables:o})},getShareLink:function(){var e=jn();if(e["env"]==="demo"||!e)return Promise.resolve(Bn.shareLink);var t=e.userId,r=e.accountId,n=e.programId,i=n===void 0?null:n,a=e.engagementMedium;var o={userId:t,accountId:r,programId:i,engagementMedium:a};return this.getClient().query({query:Vn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "])),variables:o}).then((function(e){return e.data.user.shareLink}))},getReferrals:function(e,t,r){if(t===void 0){t=0}if(r===void 0){r=3}var n=jn();if(n["env"]==="demo"||!n){var i=Bn.referrals,a=Bn.referredByReferral,o=Bn.locale;var s={totalCount:i.totalCount,data:i.data.slice(t,t+r)};var u={referrals:s,referredByReferral:a,locale:o};return Promise.resolve(u)}var c=n.userId,l=n.accountId,f=n.programId,d=f===void 0?null:f;var p={limit:r,offset:t,userId:c,accountId:l,programId:d,programId_exists:d?true:false};return this.getClient().query({query:Vn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ","\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ","\n }\n }\n "]),e?"referredByReferral(programId: $programId) {\n referrerUser {\n firstName\n lastName\n }\n dateReferralStarted\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n statuses\n }\n }":""),variables:p}).then((function(e){return e.data.user}))},getStats:function(){var e=jn();if(e["env"]==="demo"||!e){var t=Bn.referrals,r=Bn.referralsMonth,n=Bn.referralsWeek,i=Bn.rewardsCount,a=Bn.rewardsMonth,o=Bn.rewardsWeek,s=Bn.rewardBalances,u=Bn.rewardBalancesGlobal;var c={referralsCount:t,referralsMonth:r,referralsWeek:n,rewardsCount:i,rewardsMonth:a,rewardsWeek:o,rewardBalances:s,rewardBalancesGlobal:u};return Promise.resolve(c)}var l=e.userId,f=e.accountId,d=e.programId,p=d===void 0?null:d;var h={userId:l,accountId:f,programId:p,programId_exists:p?true:false};return this.getClient().query({query:Vn(__makeTemplateObject(['\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n '],['\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n '])),variables:h}).then((function(e){return e.data.user}))},getReferralCode:function(){return s(this,void 0,void 0,(function(){var e,t,r,n,i;return u(this,(function(a){e=jn();if(e["env"]==="demo"||!e)return[2,Bn.referralcode];t=e.userId,r=e.accountId,n=e.programId;i={userId:t,accountId:r,programId:n};return[2,this.getClient().query({query:Vn(__makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "],["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "])),variables:i}).then((function(e){return e.data.user.referralCode}))]}))}))},getFueltankCode:function(e){return s(this,void 0,void 0,(function(){var t,r,n,i,a;return u(this,(function(o){t=jn();if(t["env"]==="demo"||!t){return[2,{referredByReferral:Bn.referredByReferral,rewards:{data:Bn.referredByReferral.rewards}}]}r=t.userId,n=t.accountId,i=t.programId;a={userId:r,accountId:n,programId:i,rewardKey:e};return[2,this.getClient().query({query:Vn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "])),variables:a}).then((function(e){return e.data.user}))]}))}))},getMessageLinks:function(e){var t=jn();if(t["env"]==="demo"||!t)return Promise.resolve(Bn.messageLink);var r=t.userId,n=t.accountId,i=t.programId,a=i===void 0?null:i,o=t.engagementMedium;var s={userId:r,accountId:n,programId:a,engagementMedium:o};return this.getClient().query({query:Vn(__makeTemplateObject(["\n query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {\n user(id: $userId, accountId: $accountId) {\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n }\n }\n "],["\n query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {\n user(id: $userId, accountId: $accountId) {\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n }\n }\n "]),e[0],e[0],e[1],e[1],e[2],e[2],e[3],e[3],e[4],e[4],e[5],e[5],e[6],e[6],e[7],e[7],e[8],e[8]),variables:s}).then((function(e){return e.data.user}))}},ui:Un})}}}));
15
+ ***************************************************************************** */var n=function(e,t){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return n(e,t)};function i(e,t){n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){a=Object.assign||function e(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))t[a]=r[a]}return t};return a.apply(this,arguments)};function o(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++){if(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){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?r(e.value):i(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))}function u(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}function c(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n}var l=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var n=r;t.default=n}));r(l);var f=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var r=n(l);function n(e){return e&&e.__esModule?e:{default:e}}function i(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var r=[].concat(t,[e]);var n=p(e);if(n!==undefined){var i=n.call(e);if(i!==e){return typeof i==="string"?i:u(i,r)}}else if(Array.isArray(e)){return d(e,r)}return f(e,r)}function f(e,t){var r=Object.keys(e);if(r.length===0){return"{}"}if(t.length>o){return"["+h(e)+"]"}var n=r.map((function(r){var n=u(e[r],t);return r+": "+n}));return"{ "+n.join(", ")+" }"}function d(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var r=Math.min(a,e.length);var n=e.length-r;var i=[];for(var s=0;s<r;++s){i.push(u(e[s],t))}if(n===1){i.push("... 1 more item")}else if(n>1){i.push("... ".concat(n," more items"))}return"["+i.join(", ")+"]"}function p(e){var t=e[String(r.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function h(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var r=e.constructor.name;if(typeof r==="string"&&r!==""){return r}}return t}}));r(f);var d=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=u;t.visitWithTypeInfo=c;t.getVisitFn=l;t.BREAK=t.QueryDocumentKeys=void 0;var r=n(f);function n(e){return e&&e.__esModule?e:{default:e}}var i={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:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var u=Array.isArray(e);var c=[e];var f=-1;var d=[];var p=undefined;var h=undefined;var v=undefined;var y=[];var m=[];var g=e;do{f++;var b=f===c.length;var I=b&&d.length!==0;if(b){h=m.length===0?undefined:y[y.length-1];p=v;v=m.pop();if(I){if(u){p=p.slice()}else{var k={};for(var E=0,w=Object.keys(p);E<w.length;E++){var T=w[E];k[T]=p[T]}p=k}var S=0;for(var _=0;_<d.length;_++){var O=d[_][0];var x=d[_][1];if(u){O-=S}if(u&&x===null){p.splice(O,1);S++}else{p[O]=x}}}f=o.index;c=o.keys;d=o.edits;u=o.inArray;o=o.prev}else{h=v?u?f:c[f]:undefined;p=v?v[h]:g;if(p===null||p===undefined){continue}if(v){y.push(h)}}var D=void 0;if(!Array.isArray(p)){if(!s(p)){throw new Error("Invalid AST Node: "+(0,r.default)(p))}var N=l(t,p.kind,b);if(N){D=N.call(t,p,h,v,y,m);if(D===a){break}if(D===false){if(!b){y.pop();continue}}else if(D!==undefined){d.push([h,D]);if(!b){if(s(D)){p=D}else{y.pop();continue}}}}}if(D===undefined&&I){d.push([h,p])}if(b){y.pop()}else{o={inArray:u,index:f,keys:c,edits:d,prev:o};u=Array.isArray(p);c=u?p:n[p.kind]||[];f=-1;d=[];if(v){m.push(v)}v=p}}while(o!==undefined);if(d.length!==0){g=d[d.length-1][1]}return g}function s(e){return Boolean(e&&typeof e.kind==="string")}function u(e){var t=new Array(e.length);return{enter:function r(n){for(var i=0;i<e.length;i++){if(!t[i]){var o=l(e[i],n.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=n}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function r(n){for(var i=0;i<e.length;i++){if(!t[i]){var o=l(e[i],n.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===n){t[i]=null}}}}}function c(e,t){return{enter:function r(n){e.enter(n);var i=l(t,n.kind,false);if(i){var a=i.apply(t,arguments);if(a!==undefined){e.leave(n);if(s(a)){e.enter(a)}}return a}},leave:function r(n){var i=l(t,n.kind,true);var a;if(i){a=i.apply(t,arguments)}e.leave(n);return a}}}function l(e,t,r){var n=e[t];if(n){if(!r&&typeof n==="function"){return n}var i=r?n.leave:n.enter;if(typeof i==="function"){return i}}else{var a=r?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));r(d);var p=d.visit;var h=d.BREAK;var v="Invariant Violation";var y=Object.setPrototypeOf,m=y===void 0?function(e,t){e.__proto__=t;return e}:y;var g=function(e){i(t,e);function t(r){if(r===void 0){r=v}var n=e.call(this,typeof r==="number"?v+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;n.framesToPop=1;n.name=v;m(n,t.prototype);return n}return t}(Error);function b(e,t){if(!e){throw new g(t)}}function I(e){return function(){return console[e].apply(console,arguments)}}(function(e){e.warn=I("warn");e.error=I("error")})(b||(b={}));var k={env:{}};if(typeof process==="object"){k=process}else try{Function("stub","process = stub")(k)}catch(e){}var E=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var r=typeof t.cycles==="boolean"?t.cycles:false;var n=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]};var a={key:n,value:t[n]};return e(i,a)}}}(t.cmp);var i=[];return function e(t){if(t&&t.toJSON&&typeof t.toJSON==="function"){t=t.toJSON()}if(t===undefined)return;if(typeof t=="number")return isFinite(t)?""+t:"null";if(typeof t!=="object")return JSON.stringify(t);var a,o;if(Array.isArray(t)){o="[";for(a=0;a<t.length;a++){if(a)o+=",";o+=e(t[a])||"null"}return o+"]"}if(t===null)return"null";if(i.indexOf(t)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1;var u=Object.keys(t).sort(n&&n(t));o="";for(a=0;a<u.length;a++){var c=u[a];var l=e(t[c]);if(!l)continue;if(o)o+=",";o+=JSON.stringify(c)+":"+l}i.splice(s,1);return"{"+o+"}"}(e)};var w=Object.prototype,T=w.toString,S=w.hasOwnProperty;var _=new Map;function O(e,t){try{return x(e,t)}finally{_.clear()}}function x(e,t){if(e===t){return true}var r=T.call(e);var n=T.call(t);if(r!==n){return false}switch(r){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(D(e,t))return true;var i=Object.keys(e);var a=Object.keys(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!S.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!x(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(D(e,t))return true;var c=e.entries();var l=r==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!x(h,t.get(p))){return false}}return true}}return false}function D(e,t){var r=_.get(e);if(r){if(r.has(t))return true}else{_.set(e,r=new Set)}r.add(t);return false}function N(e){return e.kind==="StringValue"}function R(e){return e.kind==="BooleanValue"}function C(e){return e.kind==="IntValue"}function A(e){return e.kind==="FloatValue"}function M(e){return e.kind==="Variable"}function q(e){return e.kind==="ObjectValue"}function F(e){return e.kind==="ListValue"}function L(e){return e.kind==="EnumValue"}function P(e){return e.kind==="NullValue"}function Q(e,t,r,n){if(C(r)||A(r)){e[t.value]=Number(r.value)}else if(R(r)||N(r)){e[t.value]=r.value}else if(q(r)){var i={};r.fields.map((function(e){return Q(i,e.name,e.value,n)}));e[t.value]=i}else if(M(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(F(r)){e[t.value]=r.values.map((function(e){var r={};Q(r,t,e,n);return r[t.value]}))}else if(L(r)){e[t.value]=r.value}else if(P(r)){e[t.value]=null}else{throw new g(17)}}function $(e,t){var r=null;if(e.directives){r={};e.directives.forEach((function(e){r[e.name.value]={};if(e.arguments){e.arguments.forEach((function(n){var i=n.name,a=n.value;return Q(r[e.name.value],i,a,t)}))}}))}var n=null;if(e.arguments&&e.arguments.length){n={};e.arguments.forEach((function(e){var r=e.name,i=e.value;return Q(n,r,i,t)}))}return V(e.name.value,n,r)}var K=["connection","include","skip","client","rest","export"];function V(e,t,r){if(r&&r["connection"]&&r["connection"]["key"]){if(r["connection"]["filter"]&&r["connection"]["filter"].length>0){var n=r["connection"]["filter"]?r["connection"]["filter"]:[];n.sort();var i=t;var a={};n.forEach((function(e){a[e]=i[e]}));return r["connection"]["key"]+"("+JSON.stringify(a)+")"}else{return r["connection"]["key"]}}var o=e;if(t){var s=E(t);o+="("+s+")"}if(r){Object.keys(r).forEach((function(e){if(K.indexOf(e)!==-1)return;if(r[e]&&Object.keys(r[e]).length){o+="@"+e+"("+JSON.stringify(r[e])+")"}else{o+="@"+e}}))}return o}function j(e,t){if(e.arguments&&e.arguments.length){var r={};e.arguments.forEach((function(e){var n=e.name,i=e.value;return Q(r,n,i,t)}));return r}return null}function B(e){return e.alias?e.alias.value:e.name.value}function U(e){return e.kind==="Field"}function G(e){return e.kind==="InlineFragment"}function Y(e){return e&&e.type==="id"&&typeof e.generated==="boolean"}function J(e,t){if(t===void 0){t=false}return a({type:"id",generated:t},typeof e==="string"?{id:e,typename:undefined}:e)}function W(e){return e!=null&&typeof e==="object"&&e.type==="json"}function z(e,t){if(e.directives&&e.directives.length){var r={};e.directives.forEach((function(e){r[e.name.value]=j(e,t)}));return r}return null}function X(e,t){if(t===void 0){t={}}return re(e.directives).every((function(e){var r=e.directive,n=e.ifArgument;var i=false;if(n.value.kind==="Variable"){i=t[n.value.name.value];b(i!==void 0,13)}else{i=n.value.value}return r.name.value==="skip"?!i:i}))}function H(e){var t=[];p(e,{Directive:function(e){t.push(e.name.value)}});return t}function Z(e,t){return H(t).some((function(t){return e.indexOf(t)>-1}))}function ee(e){return e&&Z(["client"],e)&&Z(["export"],e)}function te(e){var t=e.name.value;return t==="skip"||t==="include"}function re(e){return e?e.filter(te).map((function(e){var t=e.arguments;b(t&&t.length===1,14);var r=t[0];b(r.name&&r.name.value==="if",15);var n=r.value;b(n&&(n.kind==="Variable"||n.kind==="BooleanValue"),16);return{directive:e,ifArgument:r}})):[]}function ne(e,t){var r=t;var n=[];e.definitions.forEach((function(e){if(e.kind==="OperationDefinition"){throw new g(11)}if(e.kind==="FragmentDefinition"){n.push(e)}}));if(typeof r==="undefined"){b(n.length===1,12);r=n[0].name.value}var i=a(a({},e),{definitions:c([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)});return i}function ie(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}t.forEach((function(t){if(typeof t==="undefined"||t===null){return}Object.keys(t).forEach((function(r){e[r]=t[r]}))}));return e}function ae(e){b(e&&e.kind==="Document",2);var t=e.definitions.filter((function(e){return e.kind!=="FragmentDefinition"})).map((function(e){if(e.kind!=="OperationDefinition"){throw new g(3)}return e}));b(t.length<=1,4);return e}function oe(e){ae(e);return e.definitions.filter((function(e){return e.kind==="OperationDefinition"}))[0]}function se(e){return e.definitions.filter((function(e){return e.kind==="OperationDefinition"&&e.name})).map((function(e){return e.name.value}))[0]||null}function ue(e){return e.definitions.filter((function(e){return e.kind==="FragmentDefinition"}))}function ce(e){var t=oe(e);b(t&&t.operation==="query",6);return t}function le(e){b(e.kind==="Document",7);b(e.definitions.length<=1,8);var t=e.definitions[0];b(t.kind==="FragmentDefinition",9);return t}function fe(e){ae(e);var t;for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription"){return i}}if(i.kind==="FragmentDefinition"&&!t){t=i}}if(t){return t}throw new g(10)}function de(e){if(e===void 0){e=[]}var t={};e.forEach((function(e){t[e.name.value]=e}));return t}function pe(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){var t=e.defaultValue;return t})).map((function(e){var t=e.variable,r=e.defaultValue;var n={};Q(n,t.name,r);return n}));return ie.apply(void 0,c([{}],t))}return{}}function he(e,t,r){var n=0;e.forEach((function(r,i){if(t.call(this,r,i,e)){e[n++]=r}}),r);e.length=n;return e}var ve={kind:"Field",name:{kind:"Name",value:"__typename"}};function ye(e,t){return e.selectionSet.selections.every((function(e){return e.kind==="FragmentSpread"&&ye(t[e.name.value],t)}))}function me(e){return ye(oe(e)||le(e),de(ue(e)))?null:e}function ge(e){return function t(r){return e.some((function(e){return e.name&&e.name===r.name.value||e.test&&e.test(r)}))}}function be(e,t){var r=Object.create(null);var n=[];var i=Object.create(null);var a=[];var o=me(p(t,{Variable:{enter:function(e,t,n){if(n.kind!=="VariableDefinition"){r[e.name.value]=true}}},Field:{enter:function(t){if(e&&t.directives){var r=e.some((function(e){return e.remove}));if(r&&t.directives&&t.directives.some(ge(e))){if(t.arguments){t.arguments.forEach((function(e){if(e.value.kind==="Variable"){n.push({name:e.value.name.value})}}))}if(t.selectionSet){_e(t.selectionSet).forEach((function(e){a.push({name:e.name.value})}))}return null}}}},FragmentSpread:{enter:function(e){i[e.name.value]=true}},Directive:{enter:function(t){if(ge(e)(t)){return null}}}}));if(o&&he(n,(function(e){return!r[e.name]})).length){o=Te(n,o)}if(o&&he(a,(function(e){return!i[e.name]})).length){o=Se(a,o)}return o}function Ie(e){return p(ae(e),{SelectionSet:{enter:function(e,t,r){if(r&&r.kind==="OperationDefinition"){return}var n=e.selections;if(!n){return}var i=n.some((function(e){return U(e)&&(e.name.value==="__typename"||e.name.value.lastIndexOf("__",0)===0)}));if(i){return}var o=r;if(U(o)&&o.directives&&o.directives.some((function(e){return e.name.value==="export"}))){return}return a(a({},e),{selections:c(n,[ve])})}}})}var ke={test:function(e){var t=e.name.value==="connection";if(t){if(!e.arguments||!e.arguments.some((function(e){return e.name.value==="key"})));}return t}};function Ee(e){return be([ke],ae(e))}function we(e){return function t(r){return e.some((function(e){return r.value&&r.value.kind==="Variable"&&r.value.name&&(e.name===r.value.name.value||e.test&&e.test(r))}))}}function Te(e,t){var r=we(e);return me(p(t,{OperationDefinition:{enter:function(t){return a(a({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){var n=e.some((function(e){return e.remove}));if(n){var i=0;t.arguments.forEach((function(e){if(r(e)){i+=1}}));if(i===1){return null}}}},Argument:{enter:function(e){if(r(e)){return null}}}}))}function Se(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value}))){return null}}return me(p(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function _e(e){var t=[];e.selections.forEach((function(e){if((U(e)||G(e))&&e.selectionSet){_e(e.selectionSet).forEach((function(e){return t.push(e)}))}else if(e.kind==="FragmentSpread"){t.push(e)}}));return t}function Oe(e){var t=fe(e);var r=t.operation;if(r==="query"){return e}var n=p(e,{OperationDefinition:{enter:function(e){return a(a({},e),{operation:"query"})}}});return n}function xe(e){ae(e);var t=be([{test:function(e){return e.name.value==="client"},remove:true}],e);if(t){t=p(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet){var t=e.selectionSet.selections.every((function(e){return U(e)&&e.name.value==="__typename"}));if(t){return null}}}}})}return t}var De=typeof WeakMap==="function"&&!(typeof navigator==="object"&&navigator.product==="ReactNative");var Ne=Object.prototype.toString;function Re(e){return Ce(e,new Map)}function Ce(e,t){switch(Ne.call(e)){case"[object Array]":{if(t.has(e))return t.get(e);var r=e.slice(0);t.set(e,r);r.forEach((function(e,n){r[n]=Ce(e,t)}));return r}case"[object Object]":{if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));t.set(e,n);Object.keys(e).forEach((function(r){n[r]=Ce(e[r],t)}));return n}default:return e}}function Ae(){if(typeof process!=="undefined"&&"production"){return"production"}return"development"}function Me(e){return Ae()===e}function qe(){return Me("development")===true}function Fe(){return Me("test")===true}function Le(e){try{return e()}catch(e){if(console.error){console.error(e)}}}function Pe(e){return e.errors&&e.errors.length}function Qe(e){Object.freeze(e);Object.getOwnPropertyNames(e).forEach((function(t){if(e[t]!==null&&(typeof e[t]==="object"||typeof e[t]==="function")&&!Object.isFrozen(e[t])){Qe(e[t])}}));return e}function $e(e){if(qe()||Fe()){var t=typeof Symbol==="function"&&typeof Symbol("")==="string";if(!t){return Qe(e)}}return e}var Ke=Object.prototype.hasOwnProperty;function Ve(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return je(e)}function je(e){var t=e[0]||{};var r=e.length;if(r>1){var n=[];t=Ge(t,n);for(var i=1;i<r;++i){t=Ue(t,e[i],n)}}return t}function Be(e){return e!==null&&typeof e==="object"}function Ue(e,t,r){if(Be(t)&&Be(e)){if(Object.isExtensible&&!Object.isExtensible(e)){e=Ge(e,r)}Object.keys(t).forEach((function(n){var i=t[n];if(Ke.call(e,n)){var a=e[n];if(i!==a){e[n]=Ue(Ge(a,r),i,r)}}else{e[n]=i}}));return e}return t}function Ge(e,t){if(e!==null&&typeof e==="object"&&t.indexOf(e)<0){if(Array.isArray(e)){e=e.slice(0)}else{e=a({__proto__:Object.getPrototypeOf(e)},e)}t.push(e)}return e}var Ye=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Observable=void 0;function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function i(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}var a=function(){return typeof Symbol==="function"};var o=function(e){return a()&&Boolean(Symbol[e])};var s=function(e){return o(e)?Symbol[e]:"@@"+e};if(a()&&!o("observable")){Symbol.observable=Symbol("observable")}var u=s("iterator");var c=s("observable");var l=s("species");function f(e,t){var r=e[t];if(r==null)return undefined;if(typeof r!=="function")throw new TypeError(r+" is not a function");return r}function d(e){var t=e.constructor;if(t!==undefined){t=t[l];if(t===null){t=undefined}}return t!==undefined?t:w}function p(e){return e instanceof w}function h(e){if(h.log){h.log(e)}else{setTimeout((function(){throw e}))}}function v(e){Promise.resolve().then((function(){try{e()}catch(e){h(e)}}))}function y(e){var t=e._cleanup;if(t===undefined)return;e._cleanup=undefined;if(!t){return}try{if(typeof t==="function"){t()}else{var r=f(t,"unsubscribe");if(r){r.call(t)}}}catch(e){h(e)}}function m(e){e._observer=undefined;e._queue=undefined;e._state="closed"}function g(e){var t=e._queue;if(!t){return}e._queue=undefined;e._state="ready";for(var r=0;r<t.length;++r){b(e,t[r].type,t[r].value);if(e._state==="closed")break}}function b(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":if(i)i.call(n,r);break;case"error":m(e);if(i)i.call(n,r);else throw r;break;case"complete":m(e);if(i)i.call(n);break}}catch(e){h(e)}if(e._state==="closed")y(e);else if(e._state==="running")e._state="ready"}function I(e,t,r){if(e._state==="closed")return;if(e._state==="buffering"){e._queue.push({type:t,value:r});return}if(e._state!=="ready"){e._state="buffering";e._queue=[{type:t,value:r}];v((function(){return g(e)}));return}b(e,t,r)}var k=function(){function e(t,n){r(this,e);this._cleanup=undefined;this._observer=t;this._queue=undefined;this._state="initializing";var i=new E(this);try{this._cleanup=n.call(undefined,i)}catch(e){i.error(e)}if(this._state==="initializing")this._state="ready"}i(e,[{key:"unsubscribe",value:function e(){if(this._state!=="closed"){m(this);y(this)}}},{key:"closed",get:function(){return this._state==="closed"}}]);return e}();var E=function(){function e(t){r(this,e);this._subscription=t}i(e,[{key:"next",value:function e(t){I(this._subscription,"next",t)}},{key:"error",value:function e(t){I(this._subscription,"error",t)}},{key:"complete",value:function e(){I(this._subscription,"complete")}},{key:"closed",get:function(){return this._subscription._state==="closed"}}]);return e}();var w=function(){function e(t){r(this,e);if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof t!=="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}i(e,[{key:"subscribe",value:function e(t){if(typeof t!=="object"||t===null){t={next:t,error:arguments[1],complete:arguments[2]}}return new k(t,this._subscriber)}},{key:"forEach",value:function e(t){var r=this;return new Promise((function(e,n){if(typeof t!=="function"){n(new TypeError(t+" is not a function"));return}function i(){a.unsubscribe();e()}var a=r.subscribe({next:function(e){try{t(e,i)}catch(e){n(e);a.unsubscribe()}},error:n,complete:e})}))}},{key:"map",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){return r.subscribe({next:function(r){try{r=t(r)}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))}},{key:"filter",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){return r.subscribe({next:function(r){try{if(!t(r))return}catch(t){return e.error(t)}e.next(r)},error:function(t){e.error(t)},complete:function(){e.complete()}})}))}},{key:"reduce",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);var i=arguments.length>1;var a=false;var o=arguments[1];var s=o;return new n((function(e){return r.subscribe({next:function(r){var n=!a;a=true;if(!n||i){try{s=t(s,r)}catch(t){return e.error(t)}}else{s=r}},error:function(t){e.error(t)},complete:function(){if(!a&&!i)return e.error(new TypeError("Cannot reduce an empty sequence"));e.next(s);e.complete()}})}))}},{key:"concat",value:function e(){var t=this;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}var a=d(this);return new a((function(e){var r;var i=0;function o(t){r=t.subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){if(i===n.length){r=undefined;e.complete()}else{o(a.from(n[i++]))}}})}o(t);return function(){if(r){r.unsubscribe();r=undefined}}}))}},{key:"flatMap",value:function e(t){var r=this;if(typeof t!=="function")throw new TypeError(t+" is not a function");var n=d(this);return new n((function(e){var i=[];var a=r.subscribe({next:function(r){if(t){try{r=t(r)}catch(t){return e.error(t)}}var a=n.from(r).subscribe({next:function(t){e.next(t)},error:function(t){e.error(t)},complete:function(){var e=i.indexOf(a);if(e>=0)i.splice(e,1);o()}});i.push(a)},error:function(t){e.error(t)},complete:function(){o()}});function o(){if(a.closed&&i.length===0)e.complete()}return function(){i.forEach((function(e){return e.unsubscribe()}));a.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function t(r){var n=typeof this==="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var i=f(r,c);if(i){var a=i.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");if(p(a)&&a.constructor===n)return a;return new n((function(e){return a.subscribe(e)}))}if(o("iterator")){i=f(r,u);if(i){return new n((function(e){v((function(){if(e.closed)return;var t=true;var n=false;var a=undefined;try{for(var o=i.call(r)[Symbol.iterator](),s;!(t=(s=o.next()).done);t=true){var u=s.value;e.next(u);if(e.closed)return}}catch(e){n=true;a=e}finally{try{if(!t&&o.return!=null){o.return()}}finally{if(n){throw a}}}e.complete()}))}))}}if(Array.isArray(r)){return new n((function(e){v((function(){if(e.closed)return;for(var t=0;t<r.length;++t){e.next(r[t]);if(e.closed)return}e.complete()}))}))}throw new TypeError(r+" is not observable")}},{key:"of",value:function t(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++){n[i]=arguments[i]}var a=typeof this==="function"?this:e;return new a((function(e){v((function(){if(e.closed)return;for(var t=0;t<n.length;++t){e.next(n[t]);if(e.closed)return}e.complete()}))}))}},{key:l,get:function(){return this}}]);return e}();t.Observable=w;if(a()){Object.defineProperty(w,Symbol("extensions"),{value:{symbol:c,hostReportError:h},configurable:true})}}));r(Ye);var Je=Ye.Observable;var We=Je;function ze(e){var t=["query","operationName","variables","extensions","context"];for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0){throw new g(2)}}return e}var Xe=function(e){i(t,e);function t(t,r){var n=e.call(this,t)||this;n.link=r;return n}return t}(Error);function He(e){return e.request.length<=1}function Ze(e){return new We((function(t){t.error(e)}))}function et(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};if(!t.operationName){t.operationName=typeof t.query!=="string"?se(t.query):""}return t}function tt(e,t){var r=a({},e);var n=function(e){if(typeof e==="function"){r=a({},r,e(r))}else{r=a({},r,e)}};var i=function(){return a({},r)};Object.defineProperty(t,"setContext",{enumerable:false,value:n});Object.defineProperty(t,"getContext",{enumerable:false,value:i});Object.defineProperty(t,"toKey",{enumerable:false,value:function(){return rt(t)}});return t}function rt(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}function nt(e,t){return t?t(e):We.of()}function it(e){return typeof e==="function"?new ct(e):e}function at(){return new ct((function(){return We.of()}))}function ot(e){if(e.length===0)return at();return e.map(it).reduce((function(e,t){return e.concat(t)}))}function st(e,t,r){var n=it(t);var i=it(r||new ct(nt));if(He(n)&&He(i)){return new ct((function(t){return e(t)?n.request(t)||We.of():i.request(t)||We.of()}))}else{return new ct((function(t,r){return e(t)?n.request(t,r)||We.of():i.request(t,r)||We.of()}))}}var ut=function(e,t){var r=it(e);if(He(r)){return r}var n=it(t);if(He(n)){return new ct((function(e){return r.request(e,(function(e){return n.request(e)||We.of()}))||We.of()}))}else{return new ct((function(e,t){return r.request(e,(function(e){return n.request(e,t)||We.of()}))||We.of()}))}};var ct=function(){function e(e){if(e)this.request=e}e.prototype.split=function(t,r,n){return this.concat(st(t,r,n||new e(nt)))};e.prototype.concat=function(e){return ut(this,e)};e.prototype.request=function(e,t){throw new g(1)};e.empty=at;e.from=ot;e.split=st;e.execute=lt;return e}();function lt(e,t){return e.request(tt(t.context,et(ze(t))))||We.of()}function ft(e){var t;var r=e.Symbol;if(typeof r==="function"){if(r.observable){t=r.observable}else{t=r("observable");r.observable=t}}else{t="@@observable"}return t}var dt;if(typeof self!=="undefined"){dt=self}else if(typeof window!=="undefined"){dt=window}else if(typeof global!=="undefined"){dt=global}else if(typeof module!=="undefined"){dt=module}else{dt=Function("return this")()}var pt=ft(dt);var ht;(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"})(ht||(ht={}));function vt(e){return e<7}var yt=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype[pt]=function(){return this};t.prototype["@@observable"]=function(){return this};return t}(We);function mt(e){return Array.isArray(e)&&e.length>0}function gt(e){return e.hasOwnProperty("graphQLErrors")}var bt=function(e){var t="";if(mt(e.graphQLErrors)){e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"}))}if(e.networkError){t+="Network error: "+e.networkError.message+"\n"}t=t.replace(/\n$/,"");return t};var It=function(e){i(t,e);function t(r){var n=r.graphQLErrors,i=r.networkError,a=r.errorMessage,o=r.extraInfo;var s=e.call(this,a)||this;s.graphQLErrors=n||[];s.networkError=i||null;if(!a){s.message=bt(s)}else{s.message=a}s.extraInfo=o;s.__proto__=t.prototype;return s}return t}(Error);var kt;(function(e){e[e["normal"]=1]="normal";e[e["refetch"]=2]="refetch";e[e["poll"]=3]="poll"})(kt||(kt={}));var Et=function(e,t){if(t===void 0){t="none"}return e&&(e.networkError||t==="none"&&mt(e.graphQLErrors))};var wt=function(e){i(t,e);function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,a=i===void 0?true:i;var o=e.call(this,(function(e){return o.onSubscribe(e)}))||this;o.observers=new Set;o.subscriptions=new Set;o.isTornDown=false;o.options=n;o.variables=n.variables||{};o.queryId=r.generateQueryId();o.shouldSubscribe=a;var s=oe(n.query);o.queryName=s&&s.name&&s.name.value;o.queryManager=r;return o}t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r);e.observers.delete(n);if(!e.observers.size){e.queryManager.removeQuery(e.queryId)}setTimeout((function(){i.unsubscribe()}),0)},error:r};var i=e.subscribe(n)}))};t.prototype.currentResult=function(){var e=this.getCurrentResult();if(e.data===undefined){e.data={}}return e};t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:false,networkStatus:ht.error}}var t=this.queryManager.getCurrentQueryResult(this),r=t.data,n=t.partial;var i=this.queryManager.queryStore.get(this.queryId);var o;var s=this.options.fetchPolicy;var u=s==="network-only"||s==="no-cache";if(i){var c=i.networkStatus;if(Et(i,this.options.errorPolicy)){return{data:void 0,loading:false,networkStatus:c,error:new It({graphQLErrors:i.graphQLErrors,networkError:i.networkError})}}if(i.variables){this.options.variables=a(a({},this.options.variables),i.variables);this.variables=this.options.variables}o={data:r,loading:vt(c),networkStatus:c};if(i.graphQLErrors&&this.options.errorPolicy==="all"){o.errors=i.graphQLErrors}}else{var l=u||n&&s!=="cache-only";o={data:r,loading:l,networkStatus:l?ht.loading:ht.ready}}if(!n){this.updateLastResult(a(a({},o),{stale:false}))}return a(a({},o),{partial:n})};t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&O(t.data,e.data))};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=false};t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);if(e){e.networkError=null;e.graphQLErrors=[]}};t.prototype.refetch=function(e){var t=this.options.fetchPolicy;if(t==="cache-only"){return Promise.reject(new g(1))}if(t!=="no-cache"&&t!=="cache-and-network"){t="network-only"}if(!O(this.variables,e)){this.variables=a(a({},this.variables),e)}if(!O(this.options.variables,this.variables)){this.options.variables=a(a({},this.options.variables),this.variables)}return this.queryManager.fetchQuery(this.queryId,a(a({},this.options),{fetchPolicy:t}),kt.refetch)};t.prototype.fetchMore=function(e){var t=this;b(e.updateQuery,2);var r=a(a({},e.query?e:a(a(a({},this.options),e),{variables:a(a({},this.variables),e.variables)})),{fetchPolicy:"network-only"});var n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,kt.normal,this.queryId).then((function(i){t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})}));t.queryManager.stopQuery(n);return i}),(function(e){t.queryManager.stopQuery(n);throw e}))};t.prototype.subscribeToMore=function(e){var t=this;var r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;if(n){t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))}},error:function(t){if(e.onError){e.onError(t);return}}});this.subscriptions.add(r);return function(){if(t.subscriptions.delete(r)){r.unsubscribe()}}};t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=a(a({},this.options),e);if(e.pollInterval){this.startPolling(e.pollInterval)}else if(e.pollInterval===0){this.stopPolling()}var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&(t==="cache-only"||t==="standby"||r==="network-only"),e.fetchResults)};t.prototype.setVariables=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=true}this.isTornDown=false;e=e||this.variables;if(!t&&O(e,this.variables)){return this.observers.size&&r?this.result():Promise.resolve()}this.variables=this.options.variables=e;if(!this.observers.size){return Promise.resolve()}return this.queryManager.fetchQuery(this.queryId,this.options)};t.prototype.updateQuery=function(e){var t=this.queryManager;var r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,a=r.document;var o=Le((function(){return e(n,{variables:i})}));if(o){t.dataStore.markUpdateQueryResult(a,i,o);t.broadcastQueries()}};t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId);this.options.pollInterval=undefined};t.prototype.startPolling=function(e){_t(this);this.options.pollInterval=e;this.queryManager.startPollingQuery(this.options,this.queryId)};t.prototype.updateLastResult=function(e){var t=this.lastResult;this.lastResult=e;this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Re(e);return t};t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;if(r&&!r.error){r.error=Tt}}catch(e){}var n=!this.observers.size;this.observers.add(e);if(e.next&&this.lastResult)e.next(this.lastResult);if(e.error&&this.lastError)e.error(this.lastError);if(n){this.setUpQuery()}return function(){if(t.observers.delete(e)&&!t.observers.size){t.tearDownQuery()}}};t.prototype.setUpQuery=function(){var e=this;var t=this,r=t.queryManager,n=t.queryId;if(this.shouldSubscribe){r.addObservableQuery(n,this)}if(this.options.pollInterval){_t(this);r.startPollingQuery(this.options,n)}var i=function(t){e.updateLastResult(a(a({},e.lastResult),{errors:t.graphQLErrors,networkStatus:ht.error,loading:false}));St(e.observers,"error",e.lastError=t)};r.observeQuery(n,this.options,{next:function(t){if(e.lastError||e.isDifferentFromLastResult(t)){var n=e.updateLastResult(t);var i=e.options,a=i.query,o=i.variables,s=i.fetchPolicy;if(r.transform(a).hasClientExports){r.getLocalState().addExportedVariables(a,o).then((function(i){var o=e.variables;e.variables=e.options.variables=i;if(!t.loading&&n&&s!=="cache-only"&&r.transform(a).serverQuery&&!O(o,i)){e.refetch()}else{St(e.observers,"next",t)}}))}else{St(e.observers,"next",t)}}},error:i}).catch(i)};t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=true;e.stopPollingQuery(this.queryId);this.subscriptions.forEach((function(e){return e.unsubscribe()}));this.subscriptions.clear();e.removeObservableQuery(this.queryId);e.stopQuery(this.queryId);this.observers.clear()};return t}(yt);function Tt(e){}function St(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)}));n.forEach((function(e){return e[t](r)}))}function _t(e){var t=e.options.fetchPolicy;b(t!=="cache-first"&&t!=="cache-only",3)}var Ot=function(){function e(){this.store={}}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:true,error:null}};e.prototype.markMutationError=function(e,t){var r=this.store[e];if(r){r.loading=false;r.error=t}};e.prototype.markMutationResult=function(e){var t=this.store[e];if(t){t.loading=false;t.error=null}};e.prototype.reset=function(){this.store={}};return e}();var xt=function(){function e(){this.store={}}e.prototype.getStore=function(){return this.store};e.prototype.get=function(e){return this.store[e]};e.prototype.initQuery=function(e){var t=this.store[e.queryId];b(!t||t.document===e.document||O(t.document,e.document),19);var r=false;var n=null;if(e.storePreviousVariables&&t&&t.networkStatus!==ht.loading){if(!O(t.variables,e.variables)){r=true;n=t.variables}}var i;if(r){i=ht.setVariables}else if(e.isPoll){i=ht.poll}else if(e.isRefetch){i=ht.refetch}else{i=ht.loading}var a=[];if(t&&t.graphQLErrors){a=t.graphQLErrors}this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:n,networkError:null,graphQLErrors:a,networkStatus:i,metadata:e.metadata};if(typeof e.fetchMoreForQueryId==="string"&&this.store[e.fetchMoreForQueryId]){this.store[e.fetchMoreForQueryId].networkStatus=ht.fetchMore}};e.prototype.markQueryResult=function(e,t,r){if(!this.store||!this.store[e])return;this.store[e].networkError=null;this.store[e].graphQLErrors=mt(t.errors)?t.errors:[];this.store[e].previousVariables=null;this.store[e].networkStatus=ht.ready;if(typeof r==="string"&&this.store[r]){this.store[r].networkStatus=ht.ready}};e.prototype.markQueryError=function(e,t,r){if(!this.store||!this.store[e])return;this.store[e].networkError=t;this.store[e].networkStatus=ht.error;if(typeof r==="string"){this.markQueryResultClient(r,true)}};e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];if(r){r.networkError=null;r.previousVariables=null;if(t){r.networkStatus=ht.ready}}};e.prototype.stopQuery=function(e){delete this.store[e]};e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){if(e.indexOf(r)<0){t.stopQuery(r)}else{t.store[r].networkStatus=ht.loading}}))};return e}();function Dt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nt=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t;if(r){this.client=r}if(n){this.addResolvers(n)}if(i){this.setFragmentMatcher(i)}}e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{};if(Array.isArray(e)){e.forEach((function(e){t.resolvers=Ve(t.resolvers,e)}))}else{this.resolvers=Ve(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,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,c=o===void 0?false:o;return s(this,void 0,void 0,(function(){return u(this,(function(e){if(t){return[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,c).then((function(e){return a(a({},r),{data:e.result})}))]}return[2,r]}))}))};e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e};e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher};e.prototype.clientQuery=function(e){if(Z(["client"],e)){if(this.resolvers){return e}}return null};e.prototype.serverQuery=function(e){return this.resolvers?xe(e):e};e.prototype.prepareContext=function(e){if(e===void 0){e={}}var t=this.cache;var r=a(a({},e),{cache:t,getCacheKey:function(e){if(t.config){return t.config.dataIdFromObject(e)}else{b(false,6)}}});return r};e.prototype.addExportedVariables=function(e,t,r){if(t===void 0){t={}}if(r===void 0){r={}}return s(this,void 0,void 0,(function(){return u(this,(function(n){if(e){return[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return a(a({},t),e.exportedVariables)}))]}return[2,a({},t)]}))}))};e.prototype.shouldForceResolvers=function(e){var t=false;p(e,{Directive:{enter:function(e){if(e.name.value==="client"&&e.arguments){t=e.arguments.some((function(e){return e.name.value==="always"&&e.value.kind==="BooleanValue"&&e.value.value===true}));if(t){return h}}}}});return t};e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Oe(e),variables:t,returnPartialData:true,optimistic:false}).result};e.prototype.resolveDocument=function(e,t,r,n,i,o){if(r===void 0){r={}}if(n===void 0){n={}}if(i===void 0){i=function(){return true}}if(o===void 0){o=false}return s(this,void 0,void 0,(function(){var s,c,l,f,d,p,h,v,y;return u(this,(function(u){s=fe(e);c=ue(e);l=de(c);f=s.operation;d=f?Dt(f):"Query";p=this,h=p.cache,v=p.client;y={fragmentMap:l,context:a(a({},r),{cache:h,client:v}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:o};return[2,this.resolveSelectionSet(s.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))};e.prototype.resolveSelectionSet=function(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,o,c;var l=this;return u(this,(function(f){n=r.fragmentMap,i=r.context,a=r.variables;o=[t];c=function(e){return s(l,void 0,void 0,(function(){var s,c;return u(this,(function(u){if(!X(e,a)){return[2]}if(U(e)){return[2,this.resolveField(e,t,r).then((function(t){var r;if(typeof t!=="undefined"){o.push((r={},r[B(e)]=t,r))}}))]}if(G(e)){s=e}else{s=n[e.name.value];b(s,7)}if(s&&s.typeCondition){c=s.typeCondition.name.value;if(r.fragmentMatcher(t,c,i)){return[2,this.resolveSelectionSet(s.selectionSet,t,r).then((function(e){o.push(e)}))]}}return[2]}))}))};return[2,Promise.all(e.selections.map(c)).then((function(){return je(o)}))]}))}))};e.prototype.resolveField=function(e,t,r){return s(this,void 0,void 0,(function(){var n,i,a,o,s,c,l,f,d;var p=this;return u(this,(function(u){n=r.variables;i=e.name.value;a=B(e);o=i!==a;s=t[a]||t[i];c=Promise.resolve(s);if(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e)){l=t.__typename||r.defaultOperationType;f=this.resolvers&&this.resolvers[l];if(f){d=f[o?i:a];if(d){c=Promise.resolve(d(t,j(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))}}}return[2,c.then((function(t){if(t===void 0){t=s}if(e.directives){e.directives.forEach((function(e){if(e.name.value==="export"&&e.arguments){e.arguments.forEach((function(e){if(e.name.value==="as"&&e.value.kind==="StringValue"){r.exportedVariables[e.value.value]=t}}))}}))}if(!e.selectionSet){return t}if(t==null){return t}if(Array.isArray(t)){return p.resolveSubSelectedArray(e,t,r)}if(e.selectionSet){return p.resolveSelectionSet(e.selectionSet,t,r)}}))]}))}))};e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){if(t===null){return null}if(Array.isArray(t)){return n.resolveSubSelectedArray(e,t,r)}if(e.selectionSet){return n.resolveSelectionSet(e.selectionSet,t,r)}})))};return e}();function Rt(e){var t=new Set;var r=null;return new yt((function(n){t.add(n);r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}});return function(){if(t.delete(n)&&!t.size&&r){r.unsubscribe();r=null}}}))}function Ct(e,t){return new yt((function(r){var n=r.next,i=r.error,a=r.complete;var o=0;var s=false;var u={next:function(e){++o;new Promise((function(r){r(t(e))})).then((function(e){--o;n&&n.call(r,e);s&&u.complete()}),(function(e){--o;i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=true;if(!o){a&&a.call(r)}}};var c=e.subscribe(u);return function(){return c.unsubscribe()}}))}var At=Object.prototype.hasOwnProperty;var Mt=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=r===void 0?false:r,i=e.store,a=e.onBroadcast,o=a===void 0?function(){return undefined}:a,s=e.ssrMode,u=s===void 0?false:s,c=e.clientAwareness,l=c===void 0?{}:c,f=e.localState,d=e.assumeImmutableResults;this.mutationStore=new Ot;this.queryStore=new xt;this.clientAwareness={};this.idCounter=1;this.queries=new Map;this.fetchQueryRejectFns=new Map;this.transformCache=new(De?WeakMap:Map);this.inFlightLinkObservables=new Map;this.pollingInfoByQueryId=new Map;this.link=t;this.queryDeduplication=n;this.dataStore=i;this.onBroadcast=o;this.clientAwareness=l;this.localState=f||new Nt({cache:i.getCache()});this.ssrMode=u;this.assumeImmutableResults=!!d}e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)}));this.fetchQueryRejectFns.forEach((function(e){e(new g(8))}))};e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,c=o===void 0?[]:o,l=e.awaitRefetchQueries,f=l===void 0?false:l,d=e.update,p=e.errorPolicy,h=p===void 0?"none":p,v=e.fetchPolicy,y=e.context,m=y===void 0?{}:y;return s(this,void 0,void 0,(function(){var e,o,s;var l=this;return u(this,(function(u){switch(u.label){case 0:b(t,9);b(!v||v==="no-cache",10);e=this.generateQueryId();t=this.transform(t).document;this.setQuery(e,(function(){return{document:t}}));r=this.getVariables(t,r);if(!this.transform(t).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(t,r,m)];case 1:r=u.sent();u.label=2;case 2:o=function(){var e={};if(i){l.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var a=n.queryName;if(a&&At.call(i,a)){e[r]={updater:i[a],query:l.queryStore.get(r)}}}}))}return e};this.mutationStore.initMutation(e,t,r);this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:d,optimisticResponse:n});this.broadcastQueries();s=this;return[2,new Promise((function(i,u){var l;var p;s.getObservableFromLink(t,a(a({},m),{optimisticResponse:n}),r,false).subscribe({next:function(n){if(Pe(n)&&h==="none"){p=new It({graphQLErrors:n.errors});return}s.mutationStore.markMutationResult(e);if(v!=="no-cache"){s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:d})}l=n},error:function(t){s.mutationStore.markMutationError(e,t);s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n});s.broadcastQueries();s.setQuery(e,(function(){return{document:null}}));u(new It({networkError:t}))},complete:function(){if(p){s.mutationStore.markMutationError(e,p)}s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n});s.broadcastQueries();if(p){u(p);return}if(typeof c==="function"){c=c(l)}var t=[];if(mt(c)){c.forEach((function(e){if(typeof e==="string"){s.queries.forEach((function(r){var n=r.observableQuery;if(n&&n.queryName===e){t.push(n.refetch())}}))}else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};if(e.context){r.context=e.context}t.push(s.query(r))}}))}Promise.all(f?t:[]).then((function(){s.setQuery(e,(function(){return{document:null}}));if(h==="ignore"&&l&&Pe(l)){delete l.errors}i(l)}))}})}))]}}))}))};e.prototype.fetchQuery=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,o,s,c,l,f,d,p,h,v,y,m,g,b,I,k,E,w;var T=this;return u(this,(function(u){switch(u.label){case 0:i=t.metadata,o=i===void 0?null:i,s=t.fetchPolicy,c=s===void 0?"cache-first":s,l=t.context,f=l===void 0?{}:l;d=this.transform(t.query).document;p=this.getVariables(d,t.variables);if(!this.transform(d).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(d,p,f)];case 1:p=u.sent();u.label=2;case 2:t=a(a({},t),{variables:p});v=c==="network-only"||c==="no-cache";y=v;if(!v){m=this.dataStore.getCache().diff({query:d,variables:p,returnPartialData:true,optimistic:false}),g=m.complete,b=m.result;y=!g||c==="cache-and-network";h=b}I=y&&c!=="cache-only"&&c!=="standby";if(Z(["live"],d))I=true;k=this.idCounter++;E=c!=="no-cache"?this.updateQueryWatch(e,d,t):undefined;this.setQuery(e,(function(){return{document:d,lastRequestId:k,invalidated:true,cancel:E}}));this.invalidate(n);this.queryStore.initQuery({queryId:e,document:d,storePreviousVariables:I,variables:p,isPoll:r===kt.poll,isRefetch:r===kt.refetch,metadata:o,fetchMoreForQueryId:n});this.broadcastQueries();if(I){w=this.fetchRequest({requestId:k,queryId:e,document:d,options:t,fetchMoreForQueryId:n}).catch((function(t){if(gt(t)){throw t}else{if(k>=T.getQuery(e).lastRequestId){T.queryStore.markQueryError(e,t,n);T.invalidate(e);T.invalidate(n);T.broadcastQueries()}throw new It({networkError:t})}}));if(c!=="cache-and-network"){return[2,w]}w.catch((function(){}))}this.queryStore.markQueryResultClient(e,!I);this.invalidate(e);this.invalidate(n);if(this.transform(d).hasForcedResolvers){return[2,this.localState.runResolvers({document:d,remoteResult:{data:h},context:f,variables:p,onlyRunForcedResolvers:true}).then((function(r){T.markQueryResult(e,r,t,n);T.broadcastQueries();return r}))]}this.broadcastQueries();return[2,{data:h}]}}))}))};e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,a=r.variables,o=r.errorPolicy;if(i==="no-cache"){this.setQuery(e,(function(){return{newData:{result:t.data,complete:true}}}))}else{this.dataStore.markQueryResult(t,this.getQuery(e).document,a,n,o==="ignore"||o==="all")}};e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e]){try{r[e](t)}catch(e){}}}return function(r,a){n.invalidate(e,false);if(!r)return;var o=n.getQuery(e),s=o.observableQuery,u=o.document;var c=s?s.options.fetchPolicy:t.fetchPolicy;if(c==="standby")return;var l=vt(r.networkStatus);var f=s&&s.getLastResult();var d=!!(f&&f.networkStatus!==r.networkStatus);var p=t.returnPartialData||!a&&r.previousVariables||d&&t.notifyOnNetworkStatusChange||c==="cache-only"||c==="cache-and-network";if(l&&!p){return}var h=mt(r.graphQLErrors);var v=s&&s.options.errorPolicy||t.errorPolicy||"none";if(v==="none"&&h||r.networkError){return i("error",new It({graphQLErrors:r.graphQLErrors,networkError:r.networkError}))}try{var y=void 0;var m=void 0;if(a){if(c!=="no-cache"&&c!=="network-only"){n.setQuery(e,(function(){return{newData:null}}))}y=a.result;m=!a.complete}else{var g=s&&s.getLastError();var b=v!=="none"&&(g&&g.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!b){y=f.data;m=false}else{var I=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:true,optimistic:true});y=I.result;m=!I.complete}}var k=m&&!(t.returnPartialData||c==="cache-only");var E={data:k?f&&f.data:y,loading:l,networkStatus:r.networkStatus,stale:k};if(v==="all"&&h){E.errors=r.graphQLErrors}i("next",E)}catch(e){i("error",new It({networkError:e}))}}};e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache();var n=r.transformDocument(e);var i=Ee(r.transformForLink(n));var a=this.localState.clientQuery(n);var o=this.localState.serverQuery(i);var s={document:n,hasClientExports:ee(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:o,defaultVars:pe(oe(n))};var u=function(e){if(e&&!t.has(e)){t.set(e,s)}};u(e);u(n);u(a);u(o)}return t.get(e)};e.prototype.getVariables=function(e,t){return a(a({},this.transform(e).defaultVars),t)};e.prototype.watchQuery=function(e,t){if(t===void 0){t=true}b(e.fetchPolicy!=="standby",11);e.variables=this.getVariables(e.query,e.variables);if(typeof e.notifyOnNetworkStatusChange==="undefined"){e.notifyOnNetworkStatusChange=false}var r=a({},e);return new wt({queryManager:this,options:r,shouldSubscribe:t})};e.prototype.query=function(e){var t=this;b(e.query,12);b(e.query.kind==="Document",13);b(!e.returnPartialData,14);b(!e.pollInterval,15);return new Promise((function(r,n){var i=t.watchQuery(e,false);t.fetchQueryRejectFns.set("query:"+i.queryId,n);i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))};e.prototype.generateQueryId=function(){return String(this.idCounter++)};e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e);this.broadcastQueries()};e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e);this.queryStore.stopQuery(e);this.invalidate(e)};e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){var r=e.listeners;r.add(t);return{invalidated:false}}))};e.prototype.updateQueryWatch=function(e,t,r){var n=this;var i=this.getQuery(e).cancel;if(i)i();var a=function(){var t=null;var r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();if(i){t=i.data}}return t};return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:true,previousResult:a,callback:function(t){n.setQuery(e,(function(){return{invalidated:true,newData:t}}))}})};e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))};e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}}));if(t)t()};e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new g(16))}));var e=[];this.queries.forEach((function(t,r){var n=t.observableQuery;if(n)e.push(r)}));this.queryStore.reset(e);this.mutationStore.reset();return this.dataStore.reset()};e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))};e.prototype.reFetchObservableQueries=function(e){var t=this;if(e===void 0){e=false}var r=[];this.queries.forEach((function(n,i){var a=n.observableQuery;if(a){var o=a.options.fetchPolicy;a.resetLastResults();if(o!=="cache-only"&&(e||o!=="standby")){r.push(a.refetch())}t.setQuery(i,(function(){return{newData:null}}));t.invalidate(i)}}));this.broadcastQueries();return Promise.all(r)};e.prototype.observeQuery=function(e,t,r){this.addQueryListener(e,this.queryListenerForObserver(e,t,r));return this.fetchQuery(e,t)};e.prototype.startQuery=function(e,t,r){this.addQueryListener(e,r);this.fetchQuery(e,t).catch((function(){return undefined}));return e};e.prototype.startGraphQLSubscription=function(e){var t=this;var r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document;i=this.getVariables(r,i);var a=function(e){return t.getObservableFromLink(r,{},e,false).map((function(i){if(!n||n!=="no-cache"){t.dataStore.markSubscriptionResult(i,r,e);t.broadcastQueries()}if(Pe(i)){throw new It({graphQLErrors:i.errors})}return i}))};if(this.transform(r).hasClientExports){var o=this.localState.addExportedVariables(r,i).then(a);return new yt((function(e){var t=null;o.then((function(r){return t=r.subscribe(e)}),e.error);return function(){return t&&t.unsubscribe()}}))}return a(i)};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.fetchQueryRejectFns.delete("query:"+e);this.fetchQueryRejectFns.delete("fetchRequest:"+e);this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()}));this.queries.delete(e)};e.prototype.getCurrentQueryResult=function(e,t){if(t===void 0){t=true}var r=e.options,n=r.variables,i=r.query,a=r.fetchPolicy,o=r.returnPartialData;var s=e.getLastResult();var u=this.getQuery(e.queryId).newData;if(u&&u.complete){return{data:u.result,partial:false}}if(a==="no-cache"||a==="network-only"){return{data:undefined,partial:false}}var c=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:undefined,returnPartialData:true,optimistic:t}),l=c.result,f=c.complete;return{data:f||o?l:void 0,partial:!f}};e.prototype.getQueryWithPreviousResult=function(e){var t;if(typeof e==="string"){var r=this.getQuery(e).observableQuery;b(r,17);t=r}else{t=e}var n=t.options,i=n.variables,a=n.query;return{previousResult:this.getCurrentQueryResult(t,false).data,variables:i,document:a}};e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast();this.queries.forEach((function(t,r){if(t.invalidated){t.listeners.forEach((function(n){if(n){n(e.queryStore.get(r),t.newData)}}))}}))};e.prototype.getLocalState=function(){return this.localState};e.prototype.getObservableFromLink=function(e,t,r,n){var i=this;if(n===void 0){n=this.queryDeduplication}var o;var s=this.transform(e).serverQuery;if(s){var u=this,c=u.inFlightLinkObservables,l=u.link;var f={query:s,variables:r,operationName:se(s)||void 0,context:this.prepareContext(a(a({},t),{forceFetch:!n}))};t=f.context;if(n){var d=c.get(s)||new Map;c.set(s,d);var p=JSON.stringify(r);o=d.get(p);if(!o){d.set(p,o=Rt(lt(l,f)));var h=function(){d.delete(p);if(!d.size)c.delete(s);v.unsubscribe()};var v=o.subscribe({next:h,error:h,complete:h})}}else{o=Rt(lt(l,f))}}else{o=yt.of({data:{}});t=this.prepareContext(t)}var y=this.transform(e).clientQuery;if(y){o=Ct(o,(function(e){return i.localState.runResolvers({document:y,remoteResult:e,context:t,variables:r})}))}return o};e.prototype.fetchRequest=function(e){var t=this;var r=e.requestId,n=e.queryId,i=e.document,a=e.options,o=e.fetchMoreForQueryId;var s=a.variables,u=a.errorPolicy,c=u===void 0?"none":u,l=a.fetchPolicy;var f;var d;return new Promise((function(e,u){var p=t.getObservableFromLink(i,a.context,s);var h="fetchRequest:"+n;t.fetchQueryRejectFns.set(h,u);var v=function(){t.fetchQueryRejectFns.delete(h);t.setQuery(n,(function(e){var t=e.subscriptions;t.delete(y)}))};var y=p.map((function(e){if(r>=t.getQuery(n).lastRequestId){t.markQueryResult(n,e,a,o);t.queryStore.markQueryResult(n,e,o);t.invalidate(n);t.invalidate(o);t.broadcastQueries()}if(c==="none"&&mt(e.errors)){return u(new It({graphQLErrors:e.errors}))}if(c==="all"){d=e.errors}if(o||l==="no-cache"){f=e.data}else{var p=t.dataStore.getCache().diff({variables:s,query:i,optimistic:false,returnPartialData:true}),h=p.result,v=p.complete;if(v||a.returnPartialData){f=h}}})).subscribe({error:function(e){v();u(e)},complete:function(){v();e({data:f,errors:d,loading:false,networkStatus:ht.ready,stale:false})}});t.setQuery(n,(function(e){var t=e.subscriptions;t.add(y)}))}))};e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:false,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}};e.prototype.setQuery=function(e,t){var r=this.getQuery(e);var n=a(a({},r),t(r));this.queries.set(e,n)};e.prototype.invalidate=function(e,t){if(t===void 0){t=true}if(e){this.setQuery(e,(function(){return{invalidated:t}}))}};e.prototype.prepareContext=function(e){if(e===void 0){e={}}var t=this.localState.prepareContext(e);return a(a({},t),{clientAwareness:this.clientAwareness})};e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==ht.ready&&t.networkStatus!==ht.error};e.prototype.startPollingQuery=function(e,t,r){var n=this;var i=e.pollInterval;b(i,18);if(!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);if(!o){this.pollingInfoByQueryId.set(t,o={})}o.interval=i;o.options=a(a({},e),{fetchPolicy:"network-only"});var s=function(){var e=n.pollingInfoByQueryId.get(t);if(e){if(n.checkInFlight(t)){u()}else{n.fetchQuery(t,e.options,kt.poll).then(u,u)}}};var u=function(){var e=n.pollingInfoByQueryId.get(t);if(e){clearTimeout(e.timeout);e.timeout=setTimeout(s,e.interval)}};if(r){this.addQueryListener(t,r)}u()}return t};e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)};return e}();var qt=function(){function e(e){this.cache=e}e.prototype.getCache=function(){return this.cache};e.prototype.markQueryResult=function(e,t,r,n,i){if(i===void 0){i=false}var a=!Pe(e);if(i&&Pe(e)&&e.data){a=true}if(!n&&a){this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})}};e.prototype.markSubscriptionResult=function(e,t,r){if(!Pe(e)){this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})}};e.prototype.markMutationInit=function(e){var t=this;if(e.optimisticResponse){var r;if(typeof e.optimisticResponse==="function"){r=e.optimisticResponse(e.variables)}else{r=e.optimisticResponse}this.cache.recordOptimisticTransaction((function(n){var i=t.cache;t.cache=n;try{t.markMutationResult({mutationId:e.mutationId,result:{data:r},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{t.cache=i}}),e.mutationId)}};e.prototype.markMutationResult=function(e){var t=this;if(!Pe(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}];var n=e.updateQueries;if(n){Object.keys(n).forEach((function(i){var a=n[i],o=a.query,s=a.updater;var u=t.cache.diff({query:o.document,variables:o.variables,returnPartialData:true,optimistic:false}),c=u.result,l=u.complete;if(l){var f=Le((function(){return s(c,{mutationResult:e.result,queryName:se(o.document)||undefined,queryVariables:o.variables})}));if(f){r.push({result:f,dataId:"ROOT_QUERY",query:o.document,variables:o.variables})}}}))}this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;if(n){Le((function(){return n(t,e.result)}))}}))}};e.prototype.markMutationComplete=function(e){var t=e.mutationId,r=e.optimisticResponse;if(r){this.cache.removeOptimistic(t)}};e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})};e.prototype.reset=function(){return this.cache.reset()};return e}();var Ft="2.6.10";var Lt=function(){function e(e){var t=this;this.defaultOptions={};this.resetStoreCallbacks=[];this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=n===void 0?false:n,a=e.ssrForceFetchDelay,o=a===void 0?0:a,s=e.connectToDevTools,u=e.queryDeduplication,c=u===void 0?true:u,l=e.defaultOptions,f=e.assumeImmutableResults,d=f===void 0?false:f,p=e.resolvers,h=e.typeDefs,v=e.fragmentMatcher,y=e.name,m=e.version;var b=e.link;if(!b&&p){b=ct.empty()}if(!b||!r){throw new g(4)}this.link=b;this.cache=r;this.store=new qt(r);this.disableNetworkFetches=i||o>0;this.queryDeduplication=c;this.defaultOptions=l||{};this.typeDefs=h;if(o){setTimeout((function(){return t.disableNetworkFetches=false}),o)}this.watchQuery=this.watchQuery.bind(this);this.query=this.query.bind(this);this.mutate=this.mutate.bind(this);this.resetStore=this.resetStore.bind(this);this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var I="production"!=="production";if(typeof s==="undefined"?I:s&&typeof window!=="undefined"){window.__APOLLO_CLIENT__=this}this.version=Ft;this.localState=new Nt({cache:r,client:this,resolvers:p,fragmentMatcher:v});this.queryManager=new Mt({link:this.link,store:this.store,queryDeduplication:c,ssrMode:i,clientAwareness:{name:y,version:m},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){if(t.devToolsHookCb){t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(true)})}}})}e.prototype.stop=function(){this.queryManager.stop()};e.prototype.watchQuery=function(e){if(this.defaultOptions.watchQuery){e=a(a({},this.defaultOptions.watchQuery),e)}if(this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")){e=a(a({},e),{fetchPolicy:"cache-first"})}return this.queryManager.watchQuery(e)};e.prototype.query=function(e){if(this.defaultOptions.query){e=a(a({},this.defaultOptions.query),e)}b(e.fetchPolicy!=="cache-and-network",5);if(this.disableNetworkFetches&&e.fetchPolicy==="network-only"){e=a(a({},e),{fetchPolicy:"cache-first"})}return this.queryManager.query(e)};e.prototype.mutate=function(e){if(this.defaultOptions.mutate){e=a(a({},this.defaultOptions.mutate),e)}return this.queryManager.mutate(e)};e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)};e.prototype.readQuery=function(e,t){if(t===void 0){t=false}return this.cache.readQuery(e,t)};e.prototype.readFragment=function(e,t){if(t===void 0){t=false}return this.cache.readFragment(e,t)};e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);this.queryManager.broadcastQueries();return t};e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);this.queryManager.broadcastQueries();return t};e.prototype.writeData=function(e){var t=this.cache.writeData(e);this.queryManager.broadcastQueries();return t};e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e};e.prototype.__requestRaw=function(e){return lt(this.link,e)};e.prototype.initQueryManager=function(){return this.queryManager};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;this.resetStoreCallbacks.push(e);return function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}};e.prototype.onClearStore=function(e){var t=this;this.clearStoreCallbacks.push(e);return 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)};return e}();var Pt=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=r;t.getBlockStringIndentation=n;t.printBlockString=o;function r(e){var t=e.split(/\r\n|[\n\r]/g);var r=n(t);if(r!==0){for(var i=1;i<t.length;i++){t[i]=t[i].slice(r)}}while(t.length>0&&a(t[0])){t.shift()}while(t.length>0&&a(t[t.length-1])){t.pop()}return t.join("\n")}function n(e){var t=null;for(var r=1;r<e.length;r++){var n=e[r];var a=i(n);if(a===n.length){continue}if(t===null||a<t){t=a;if(t===0){break}}}return t===null?0:t}function i(e){var t=0;while(t<e.length&&(e[t]===" "||e[t]==="\t")){t++}return t}function a(e){return i(e)===e.length}function o(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=!n||a||r;var s="";if(o&&!(n&&i)){s+="\n"+t}s+=t?e.replace(/\n/g,"\n"+t):e;if(o){s+="\n"}return'"""'+s.replace(/"""/g,'\\"""')+'"""'}}));r(Pt);var Qt=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=r;function r(e){return(0,d.visit)(e,{leave:n})}var n={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return a(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var r=t.operation;var n=t.name;var i=s("(",a(t.variableDefinitions,", "),")");var o=a(t.directives," ");var u=t.selectionSet;return!n&&!o&&!i&&r==="query"?u:a([r,a([n,i]),o,u]," ")},VariableDefinition:function e(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+s(" = ",i)+s(" ",a(o," "))},SelectionSet:function e(t){var r=t.selections;return o(r)},Field:function e(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,u=t.selectionSet;return a([s("",r,": ")+n+s("(",a(i,", "),")"),a(o," "),u]," ")},Argument:function e(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function e(t){var r=t.name,n=t.directives;return"..."+r+s(" ",a(n," "))},InlineFragment:function e(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return a(["...",s("on ",r),a(n," "),i]," ")},FragmentDefinition:function e(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,u=t.selectionSet;return"fragment ".concat(r).concat(s("(",a(i,", "),")")," ")+"on ".concat(n," ").concat(s("",a(o," ")," "))+u},IntValue:function e(t){var r=t.value;return r},FloatValue:function e(t){var r=t.value;return r},StringValue:function e(t,r){var n=t.value,i=t.block;return i?(0,Pt.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function e(t){var r=t.value;return r?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var r=t.value;return r},ListValue:function e(t){var r=t.values;return"["+a(r,", ")+"]"},ObjectValue:function e(t){var r=t.fields;return"{"+a(r,", ")+"}"},ObjectField:function e(t){var r=t.name,n=t.value;return r+": "+n},Directive:function e(t){var r=t.name,n=t.arguments;return"@"+r+s("(",a(n,", "),")")},NamedType:function e(t){var r=t.name;return r},ListType:function e(t){var r=t.type;return"["+r+"]"},NonNullType:function e(t){var r=t.type;return r+"!"},SchemaDefinition:function e(t){var r=t.directives,n=t.operationTypes;return a(["schema",a(r," "),o(n)]," ")},OperationTypeDefinition:function e(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:i((function(e){var t=e.name,r=e.directives;return a(["scalar",t,a(r," ")]," ")})),ObjectTypeDefinition:i((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return a(["type",t,s("implements ",a(r," & ")),a(n," "),o(i)]," ")})),FieldDefinition:i((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(l(r)?s("(\n",u(a(r,"\n")),"\n)"):s("(",a(r,", "),")"))+": "+n+s(" ",a(i," "))})),InputValueDefinition:i((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return a([t+": "+r,s("= ",n),a(i," ")]," ")})),InterfaceTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.fields;return a(["interface",t,a(r," "),o(n)]," ")})),UnionTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.types;return a(["union",t,a(r," "),n&&n.length!==0?"= "+a(n," | "):""]," ")})),EnumTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.values;return a(["enum",t,a(r," "),o(n)]," ")})),EnumValueDefinition:i((function(e){var t=e.name,r=e.directives;return a([t,a(r," ")]," ")})),InputObjectTypeDefinition:i((function(e){var t=e.name,r=e.directives,n=e.fields;return a(["input",t,a(r," "),o(n)]," ")})),DirectiveDefinition:i((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(l(r)?s("(\n",u(a(r,"\n")),"\n)"):s("(",a(r,", "),")"))+(n?" repeatable":"")+" on "+a(i," | ")})),SchemaExtension:function e(t){var r=t.directives,n=t.operationTypes;return a(["extend schema",a(r," "),o(n)]," ")},ScalarTypeExtension:function e(t){var r=t.name,n=t.directives;return a(["extend scalar",r,a(n," ")]," ")},ObjectTypeExtension:function e(t){var r=t.name,n=t.interfaces,i=t.directives,u=t.fields;return a(["extend type",r,s("implements ",a(n," & ")),a(i," "),o(u)]," ")},InterfaceTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.fields;return a(["extend interface",r,a(n," "),o(i)]," ")},UnionTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.types;return a(["extend union",r,a(n," "),i&&i.length!==0?"= "+a(i," | "):""]," ")},EnumTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.values;return a(["extend enum",r,a(n," "),o(i)]," ")},InputObjectTypeExtension:function e(t){var r=t.name,n=t.directives,i=t.fields;return a(["extend input",r,a(n," "),o(i)]," ")}};function i(e){return function(t){return a([t.description,e(t)],"\n")}}function a(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function o(e){return e&&e.length!==0?"{\n"+u(a(e,"\n"))+"\n}":""}function s(e,t,r){return t?e+t+(r||""):""}function u(e){return e&&" "+e.replace(/\n/g,"\n ")}function c(e){return e.indexOf("\n")!==-1}function l(e){return e&&e.some(c)}}));r(Qt);var $t=Qt.print;var Kt={includeQuery:true,includeExtensions:false};var Vt={accept:"*/*","content-type":"application/json"};var jt={method:"POST"};var Bt={http:Kt,headers:Vt,options:jt};var Ut=function(e,t,r){var n=new Error(r);n.name="ServerError";n.response=e;n.statusCode=e.status;n.result=t;throw n};var Gt=function(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(n){var r=n;r.name="ServerParseError";r.response=t;r.statusCode=t.status;r.bodyText=e;return Promise.reject(r)}})).then((function(r){if(t.status>=300){Ut(t,r,"Response not successful: Received status code "+t.status)}if(!Array.isArray(r)&&!r.hasOwnProperty("data")&&!r.hasOwnProperty("errors")){Ut(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'.")}return r}))}};var Yt=function(e){if(!e&&typeof fetch==="undefined"){throw new g(1)}};var Jt=function(){if(typeof AbortController==="undefined")return{controller:false,signal:false};var e=new AbortController;var t=e.signal;return{controller:e,signal:t}};var Wt=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var i=a({},t.options,{headers:t.headers,credentials:t.credentials});var o=t.http;r.forEach((function(e){i=a({},i,e.options,{headers:a({},i.headers,e.headers)});if(e.credentials)i.credentials=e.credentials;o=a({},o,e.http)}));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query;var f={operationName:s,variables:c};if(o.includeExtensions)f.extensions=u;if(o.includeQuery)f.query=$t(l);return{options:i,body:f}};var zt=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new g(2);n.parseError=e;throw n}return r};var Xt=function(e,t){var r=e.getContext();var n=r.uri;if(n){return n}else if(typeof t==="function"){return t(e)}else{return t||"/graphql"}};var Ht=function(e){if(e===void 0){e={}}var t=e.uri,r=t===void 0?"/graphql":t,n=e.fetch,i=e.includeExtensions,s=e.useGETForQueries,u=o(e,["uri","fetch","includeExtensions","useGETForQueries"]);Yt(n);if(!n){n=fetch}var c={http:{includeExtensions:i},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new ct((function(e){var t=Xt(e,r);var i=e.getContext();var o={};if(i.clientAwareness){var u=i.clientAwareness,l=u.name,f=u.version;if(l){o["apollographql-client-name"]=l}if(f){o["apollographql-client-version"]=f}}var d=a({},o,i.headers);var p={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d};var h=Wt(e,Bt,c,p),v=h.options,y=h.body;var m;if(!v.signal){var g=Jt(),b=g.controller,I=g.signal;m=b;if(m)v.signal=I}var k=function(e){return e.kind==="OperationDefinition"&&e.operation==="mutation"};if(s&&!e.query.definitions.some(k)){v.method="GET"}if(v.method==="GET"){var E=Zt(t,y),w=E.newURI,T=E.parseError;if(T){return Ze(T)}t=w}else{try{v.body=zt(y)}catch(T){return Ze(T)}}return new We((function(r){n(t,v).then((function(t){e.setContext({response:t});return t})).then(Gt(e)).then((function(e){r.next(e);r.complete();return e})).catch((function(e){if(e.name==="AbortError")return;if(e.result&&e.result.errors&&e.result.data){r.next(e.result)}r.error(e)}));return function(){if(m)m.abort()}}))}))};function Zt(e,t){var r=[];var n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t){n("query",t.query)}if(t.operationName){n("operationName",t.operationName)}if(t.variables){var i=void 0;try{i=zt(t.variables)}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=zt(t.extensions)}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e;var u=e.indexOf("#");if(u!==-1){o=e.substr(u);s=e.substr(0,u)}var c=s.indexOf("?")===-1?"?":"&";var l=s+c+r.join("&")+o;return{newURI:l}}var er=function(e){i(t,e);function t(t){return e.call(this,Ht(t).request)||this}return t}(ct);function tr(e){var t={kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:nr(e)};var r={kind:"Document",definitions:[t]};return r}function rr(e,t){var r={kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:nr(e)};var n={kind:"Document",definitions:[r]};return n}function nr(e){if(typeof e==="number"||typeof e==="boolean"||typeof e==="string"||typeof e==="undefined"||e===null){return null}if(Array.isArray(e)){return nr(e[0])}var t=[];Object.keys(e).forEach((function(r){var n=nr(e[r]);var i={kind:"Field",name:{kind:"Name",value:r},selectionSet:n||undefined};t.push(i)}));var r={kind:"SelectionSet",selections:t};return r}var ir={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]};var ar=function(){function e(){}e.prototype.transformDocument=function(e){return e};e.prototype.transformForLink=function(e){return e};e.prototype.readQuery=function(e,t){if(t===void 0){t=false}return this.read({query:e.query,variables:e.variables,optimistic:t})};e.prototype.readFragment=function(e,t){if(t===void 0){t=false}return this.read({query:ne(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})};e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})};e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:ne(e.fragment,e.fragmentName)})};e.prototype.writeData=function(e){var t=e.id,r=e.data;if(typeof t!=="undefined"){var n=null;try{n=this.read({rootId:t,optimistic:false,query:ir})}catch(e){}var i=n&&n.__typename||"__ClientData";var a=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:rr(a,i),data:a})}else{this.writeQuery({query:tr(r),data:r})}};return e}();var or=null;var sr={};var ur=1;var cr=function(){return function(){function e(){this.id=["slot",ur++,Date.now(),Math.random().toString(36).slice(2)].join(":")}e.prototype.hasValue=function(){for(var e=or;e;e=e.parent){if(this.id in e.slots){var t=e.slots[this.id];if(t===sr)break;if(e!==or){or.slots[this.id]=t}return true}}if(or){or.slots[this.id]=sr}return false};e.prototype.getValue=function(){if(this.hasValue()){return or.slots[this.id]}};e.prototype.withValue=function(e,t,r,n){var i;var a=(i={__proto__:null},i[this.id]=e,i);var o=or;or={parent:o,slots:a};try{return t.apply(n,r)}finally{or=o}};e.bind=function(e){var t=or;return function(){var r=or;try{or=t;return e.apply(this,arguments)}finally{or=r}}};e.noContext=function(e,t,r){if(or){var n=or;try{or=null;return e.apply(r,t)}finally{or=n}}else{return e.apply(r,t)}};return e}()};var lr="@wry/context:Slot";var fr=Array;var dr=fr[lr]||function(){var e=cr();try{Object.defineProperty(fr,lr,{value:fr[lr]=e,enumerable:false,writable:false,configurable:false})}finally{return e}}();function pr(){}var hr=function(){function e(e,t){if(e===void 0){e=Infinity}if(t===void 0){t=pr}this.max=e;this.dispose=t;this.map=new Map;this.newest=null;this.oldest=null}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;if(n){n.older=r}if(r){r.newer=n}t.older=this.newest;t.older.newer=t;t.newer=null;this.newest=t;if(t===this.oldest){this.oldest=n}}return t};e.prototype.set=function(e,t){var r=this.getEntry(e);if(r){return r.value=t}r={key:e,value:t,newer:null,older:this.newest};if(this.newest){this.newest.newer=r}this.newest=r;this.oldest=this.oldest||r;this.map.set(e,r);return r.value};e.prototype.clean=function(){while(this.oldest&&this.map.size>this.max){this.delete(this.oldest.key)}};e.prototype.delete=function(e){var t=this.map.get(e);if(t){if(t===this.newest){this.newest=t.older}if(t===this.oldest){this.oldest=t.newer}if(t.newer){t.newer.older=t.older}if(t.older){t.older.newer=t.newer}this.map.delete(e);this.dispose(t.value,e);return true}return false};return e}();var vr=new dr;var yr=[];var mr=[];var gr=100;function br(e,t){if(!e){throw new Error(t||"assertion failure")}}function Ir(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function kr(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function Er(e){return e.slice(0)}var wr=function(){function e(t,r){this.fn=t;this.args=r;this.parents=new Set;this.childValues=new Map;this.dirtyChildren=null;this.dirty=true;this.recomputing=false;this.value=[];++e.count}e.prototype.recompute=function(){br(!this.recomputing,"already recomputing");if(!Tr(this)&&Mr(this)){return void 0}return Or(this)?Sr(this):kr(this.value)};e.prototype.setDirty=function(){if(this.dirty)return;this.dirty=true;this.value.length=0;Dr(this);Pr(this)};e.prototype.dispose=function(){var e=this;qr(this).forEach(Mr);Pr(this);this.parents.forEach((function(t){t.setDirty();Fr(t,e)}))};e.count=0;return e}();function Tr(e){var t=vr.getValue();if(t){e.parents.add(t);if(!t.childValues.has(e)){t.childValues.set(e,[])}if(Or(e)){Rr(t,e)}else{Cr(t,e)}return t}}function Sr(e){var t=qr(e);vr.withValue(e,_r,[e]);if(Lr(e)){xr(e)}t.forEach(Mr);return kr(e.value)}function _r(e){e.recomputing=true;e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=false}function Or(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function xr(e){e.dirty=false;if(Or(e)){return}Nr(e)}function Dr(e){e.parents.forEach((function(t){return Rr(t,e)}))}function Nr(e){e.parents.forEach((function(t){return Cr(t,e)}))}function Rr(e,t){br(e.childValues.has(t));br(Or(t));if(!e.dirtyChildren){e.dirtyChildren=mr.pop()||new Set}else if(e.dirtyChildren.has(t)){return}e.dirtyChildren.add(t);Dr(e)}function Cr(e,t){br(e.childValues.has(t));br(!Or(t));var r=e.childValues.get(t);if(r.length===0){e.childValues.set(t,Er(t.value))}else if(!Ir(r,t.value)){e.setDirty()}Ar(e,t);if(Or(e)){return}Nr(e)}function Ar(e,t){var r=e.dirtyChildren;if(r){r.delete(t);if(r.size===0){if(mr.length<gr){mr.push(r)}e.dirtyChildren=null}}}function Mr(e){return e.parents.size===0&&typeof e.reportOrphan==="function"&&e.reportOrphan()===true}function qr(e){var t=yr;if(e.childValues.size>0){t=[];e.childValues.forEach((function(r,n){Fr(e,n);t.push(n)}))}br(e.dirtyChildren===null);return t}function Fr(e,t){t.parents.delete(e);e.childValues.delete(t);Ar(e,t)}function Lr(e){if(typeof e.subscribe==="function"){try{Pr(e);e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){e.setDirty();return false}}return true}function Pr(e){var t=e.unsubscribe;if(typeof t==="function"){e.unsubscribe=void 0;t()}}var Qr=function(){function e(e){this.weakness=e}e.prototype.lookup=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return this.lookupArray(e)};e.prototype.lookupArray=function(e){var t=this;e.forEach((function(e){return t=t.getChildTrie(e)}));return t.data||(t.data=Object.create(null))};e.prototype.getChildTrie=function(t){var r=this.weakness&&$r(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);var n=r.get(t);if(!n)r.set(t,n=new e(this.weakness));return n};return e}();function $r(e){switch(typeof e){case"object":if(e===null)break;case"function":return true}return false}var Kr=new Qr(typeof WeakMap==="function");function Vr(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Kr.lookupArray(e)}var jr=new Set;function Br(e,t){if(t===void 0){t=Object.create(null)}var r=new hr(t.max||Math.pow(2,16),(function(e){return e.dispose()}));var n=!!t.disposable;var i=t.makeCacheKey||Vr;function a(){if(n&&!vr.hasValue()){return void 0}var a=i.apply(null,arguments);if(a===void 0){return e.apply(null,arguments)}var o=Array.prototype.slice.call(arguments);var s=r.get(a);if(s){s.args=o}else{s=new wr(e,o);r.set(a,s);s.subscribe=t.subscribe;if(n){s.reportOrphan=function(){return r.delete(a)}}}var u=s.recompute();r.set(a,s);jr.add(r);if(!vr.hasValue()){jr.forEach((function(e){return e.clean()}));jr.clear()}return n?void 0:u}a.dirty=function(){var e=i.apply(null,arguments);var t=e!==void 0&&r.get(e);if(t){t.setDirty()}};return a}var Ur=function(){function e(){}e.prototype.ensureReady=function(){return Promise.resolve()};e.prototype.canBypassInit=function(){return true};e.prototype.match=function(e,t,r){var n=r.store.get(e.id);var i=e.id==="ROOT_QUERY";if(!n){return i}var a=n.__typename,o=a===void 0?i&&"Query":a;if(!o){return"heuristic"}if(o===t){return true}return"heuristic"};return e}();var Gr=Object.prototype.hasOwnProperty;var Yr=function(){function e(e){var t=this;if(e===void 0){e=Object.create(null)}this.data=e;this.depend=Br((function(e){return t.data[e]}),{disposable:true,makeCacheKey:function(e){return e}})}e.prototype.toObject=function(){return this.data};e.prototype.get=function(e){this.depend(e);return this.data[e]};e.prototype.set=function(e,t){var r=this.data[e];if(t!==r){this.data[e]=t;this.depend.dirty(e)}};e.prototype.delete=function(e){if(Gr.call(this.data,e)){delete this.data[e];this.depend.dirty(e)}};e.prototype.clear=function(){this.replace(null)};e.prototype.replace=function(e){var t=this;if(e){Object.keys(e).forEach((function(r){t.set(r,e[r])}));Object.keys(this.data).forEach((function(r){if(!Gr.call(e,r)){t.delete(r)}}))}else{Object.keys(this.data).forEach((function(e){t.delete(e)}))}};return e}();function Jr(e){return new Yr(e)}var Wr=function(){function e(e){var t=this;var r=e===void 0?{}:e,n=r.cacheKeyRoot,i=n===void 0?new Qr(De):n,a=r.freezeResults,o=a===void 0?false:a;var s=this,u=s.executeStoreQuery,c=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=o;this.executeStoreQuery=Br((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,a=e.variableValues,o=e.fragmentMatcher;if(n.store instanceof Yr){return i.lookup(n.store,t,o,JSON.stringify(a),r.id)}}});this.executeSelectionSet=Br((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof Yr){return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}});this.executeSubSelectedArray=Br((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof Yr){return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}}})}e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(a(a({},e),{returnPartialData:false})).result};e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,a=e.returnPartialData,o=a===void 0?true:a,s=e.rootId,u=s===void 0?"ROOT_QUERY":s,c=e.fragmentMatcherFunction,l=e.config;var f=ce(r);n=ie({},pe(f),n);var d={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}};var p=this.executeStoreQuery({query:r,rootValue:{type:"id",id:u,generated:true,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:c});var h=p.missing&&p.missing.length>0;if(h&&!o){p.missing.forEach((function(e){if(e.tolerable)return;throw new g(8)}))}if(i){if(O(i,p.result)){p.result=i}}return{result:p.result,complete:!h}};e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,a=e.fragmentMatcher,o=a===void 0?Xr:a;var s=fe(t);var u=ue(t);var c=de(u);var l={query:t,fragmentMap:c,contextValue:n,variableValues:i,fragmentMatcher:o};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:l})};e.prototype.executeSelectionSet=function(e){var t=this;var r=e.selectionSet,n=e.rootValue,i=e.execContext;var o=i.fragmentMap,s=i.contextValue,u=i.variableValues;var c={result:null};var l=[];var f=s.store.get(n.id);var d=f&&f.__typename||n.id==="ROOT_QUERY"&&"Query"||void 0;function p(e){var t;if(e.missing){c.missing=c.missing||[];(t=c.missing).push.apply(t,e.missing)}return e.result}r.selections.forEach((function(e){var r;if(!X(e,u)){return}if(U(e)){var c=p(t.executeField(f,d,e,i));if(typeof c!=="undefined"){l.push((r={},r[B(e)]=c,r))}}else{var h=void 0;if(G(e)){h=e}else{h=o[e.name.value];if(!h){throw new g(9)}}var v=h.typeCondition&&h.typeCondition.name.value;var y=!v||i.fragmentMatcher(n,v,s);if(y){var m=t.executeSelectionSet({selectionSet:h.selectionSet,rootValue:n,execContext:i});if(y==="heuristic"&&m.missing){m=a(a({},m),{missing:m.missing.map((function(e){return a(a({},e),{tolerable:true})}))})}l.push(p(m))}}}));c.result=je(l);if(this.freezeResults&&"production"!=="production"){Object.freeze(c.result)}return c};e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,a=n.contextValue;var o=r.name.value;var s=j(r,i);var u={resultKey:B(r),directives:z(r,i)};var c=Hr(e,t,o,s,a,u);if(Array.isArray(c.result)){return this.combineExecResults(c,this.executeSubSelectedArray({field:r,array:c.result,execContext:n}))}if(!r.selectionSet){zr(r,c.result);if(this.freezeResults&&"production"!=="production"){$e(c)}return c}if(c.result==null){return c}return this.combineExecResults(c,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:c.result,execContext:n}))};e.prototype.combineExecResults=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;e.forEach((function(e){if(e.missing){r=r||[];r.push.apply(r,e.missing)}}));return{result:e.pop().result,missing:r}};e.prototype.executeSubSelectedArray=function(e){var t=this;var r=e.field,n=e.array,i=e.execContext;var a;function o(e){if(e.missing){a=a||[];a.push.apply(a,e.missing)}return e.result}n=n.map((function(e){if(e===null){return null}if(Array.isArray(e)){return o(t.executeSubSelectedArray({field:r,array:e,execContext:i}))}if(r.selectionSet){return o(t.executeSelectionSet({selectionSet:r.selectionSet,rootValue:e,execContext:i}))}zr(r,e);return e}));if(this.freezeResults&&"production"!=="production"){Object.freeze(n)}return{result:n,missing:a}};return e}();function zr(e,t){if(!e.selectionSet&&Y(t)){throw new g(10)}}function Xr(){return true}function Hr(e,t,r,n,i,a){var o=a.directives;var s=r;if(n||o){s=V(s,n,o)}var u=void 0;if(e){u=e[s];if(typeof u==="undefined"&&i.cacheRedirects&&typeof t==="string"){var c=i.cacheRedirects[t];if(c){var l=c[r];if(l){u=l(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&J({id:t,typename:e.__typename})}})}}}}if(typeof u==="undefined"){return{result:u,missing:[{object:e,fieldName:s,tolerable:false}]}}if(W(u)){u=u.json}return{result:u}}var Zr=function(){function e(e){if(e===void 0){e=Object.create(null)}this.data=e}e.prototype.toObject=function(){return this.data};e.prototype.get=function(e){return this.data[e]};e.prototype.set=function(e,t){this.data[e]=t};e.prototype.delete=function(e){this.data[e]=void 0};e.prototype.clear=function(){this.data=Object.create(null)};e.prototype.replace=function(e){this.data=e||Object.create(null)};return e}();var en=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type="WriteError";return t}return t}(Error);function tn(e,t){var r=new en("Error writing result to store for query:\n "+JSON.stringify(t));r.message+="\n"+e.message;r.stack=e.stack;return r}var rn=function(){function e(){}e.prototype.writeQueryToStore=function(e){var t=e.query,r=e.result,n=e.store,i=n===void 0?Jr():n,a=e.variables,o=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:t,store:i,variables:a,dataIdFromObject:o,fragmentMatcherFunction:s})};e.prototype.writeResultToStore=function(e){var t=e.dataId,r=e.result,n=e.document,i=e.store,a=i===void 0?Jr():i,o=e.variables,s=e.dataIdFromObject,u=e.fragmentMatcherFunction;var c=oe(n);try{return this.writeSelectionSetToStore({result:r,dataId:t,selectionSet:c.selectionSet,context:{store:a,processedData:{},variables:ie({},pe(c),o),dataIdFromObject:s,fragmentMap:de(ue(n)),fragmentMatcherFunction:u}})}catch(e){throw tn(e,n)}};e.prototype.writeSelectionSetToStore=function(e){var t=this;var r=e.result,n=e.dataId,i=e.selectionSet,a=e.context;var o=a.variables,s=a.store,u=a.fragmentMap;i.selections.forEach((function(e){var i;if(!X(e,o)){return}if(U(e)){var s=B(e);var c=r[s];if(typeof c!=="undefined"){t.writeFieldToStore({dataId:n,value:c,field:e,context:a})}else{var l=false;var f=false;if(e.directives&&e.directives.length){l=e.directives.some((function(e){return e.name&&e.name.value==="defer"}));f=e.directives.some((function(e){return e.name&&e.name.value==="client"}))}}}else{var d=void 0;if(G(e)){d=e}else{d=(u||{})[e.name.value];b(d,3)}var p=true;if(a.fragmentMatcherFunction&&d.typeCondition){var h=n||"self";var v=J({id:h,typename:undefined});var y={store:new Zr((i={},i[h]=r,i)),cacheRedirects:{}};var m=a.fragmentMatcherFunction(v,d.typeCondition.name.value,y);p=!!m}if(p){t.writeSelectionSetToStore({result:r,selectionSet:d.selectionSet,dataId:n,context:a})}}}));return s};e.prototype.writeFieldToStore=function(e){var t;var r=e.field,n=e.value,i=e.dataId,o=e.context;var s=o.variables,u=o.dataIdFromObject,c=o.store;var l;var f;var d=$(r,s);if(!r.selectionSet||n===null){l=n!=null&&typeof n==="object"?{type:"json",json:n}:n}else if(Array.isArray(n)){var p=i+"."+d;l=this.processArrayValue(n,p,r.selectionSet,o)}else{var h=i+"."+d;var v=true;if(!nn(h)){h="$"+h}if(u){var y=u(n);b(!y||!nn(y),4);if(y||typeof y==="number"&&y===0){h=y;v=false}}if(!on(h,r,o.processedData)){this.writeSelectionSetToStore({dataId:h,result:n,selectionSet:r.selectionSet,context:o})}var m=n.__typename;l=J({id:h,typename:m},v);f=c.get(i);var g=f&&f[d];if(g!==l&&Y(g)){var I=g.typename!==undefined;var k=m!==undefined;var E=I&&k&&g.typename!==m;b(!v||g.generated||E,5);b(!I||k,6);if(g.generated){if(E){if(!v){c.delete(g.id)}}else{an(g.id,l.id,c)}}}}f=c.get(i);if(!f||!O(l,f[d])){c.set(i,a(a({},f),(t={},t[d]=l,t)))}};e.prototype.processArrayValue=function(e,t,r,n){var i=this;return e.map((function(e,a){if(e===null){return null}var o=t+"."+a;if(Array.isArray(e)){return i.processArrayValue(e,o,r,n)}var s=true;if(n.dataIdFromObject){var u=n.dataIdFromObject(e);if(u){o=u;s=false}}if(!on(o,r,n.processedData)){i.writeSelectionSetToStore({dataId:o,result:e,selectionSet:r,context:n})}return J({id:o,typename:e.__typename},s)}))};return e}();function nn(e){return e[0]==="$"}function an(e,t,r){if(e===t){return false}var n=r.get(e);var i=r.get(t);var o=false;Object.keys(n).forEach((function(e){var t=n[e];var a=i[e];if(Y(t)&&nn(t.id)&&Y(a)&&!O(t,a)&&an(t.id,a.id,r)){o=true}}));r.delete(e);var s=a(a({},n),i);if(O(s,i)){return o}r.set(t,s);return true}function on(e,t,r){if(!r){return false}if(r[e]){if(r[e].indexOf(t)>=0){return true}else{r[e].push(t)}}else{r[e]=[t]}return false}var sn={fragmentMatcher:new Ur,dataIdFromObject:un,addTypename:true,resultCaching:true,freezeResults:false};function un(e){if(e.__typename){if(e.id!==undefined){return e.__typename+":"+e.id}if(e._id!==undefined){return e.__typename+":"+e._id}}return null}var cn=Object.prototype.hasOwnProperty;var ln=function(e){i(t,e);function t(t,r,n){var i=e.call(this,Object.create(null))||this;i.optimisticId=t;i.parent=r;i.transaction=n;return i}t.prototype.toObject=function(){return a(a({},this.parent.toObject()),this.data)};t.prototype.get=function(e){return cn.call(this.data,e)?this.data[e]:this.parent.get(e)};return t}(Zr);var fn=function(e){i(t,e);function t(t){if(t===void 0){t={}}var r=e.call(this)||this;r.watches=new Set;r.typenameDocumentCache=new Map;r.cacheKeyRoot=new Qr(De);r.silenceBroadcast=false;r.config=a(a({},sn),t);if(r.config.customResolvers){r.config.cacheRedirects=r.config.customResolvers}if(r.config.cacheResolvers){r.config.cacheRedirects=r.config.cacheResolvers}r.addTypename=!!r.config.addTypename;r.data=r.config.resultCaching?new Yr:new Zr;r.optimisticData=r.data;r.storeWriter=new rn;r.storeReader=new Wr({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r;var i=n.maybeBroadcastWatch;r.maybeBroadcastWatch=Br((function(e){return i.call(r,e)}),{makeCacheKey:function(e){if(e.optimistic){return}if(e.previousResult){return}if(n.data instanceof Yr){return n.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables))}}});return r}t.prototype.restore=function(e){if(e)this.data.replace(e);return this};t.prototype.extract=function(e){if(e===void 0){e=false}return(e?this.optimisticData:this.data).toObject()};t.prototype.read=function(e){if(typeof e.rootId==="string"&&typeof this.data.get(e.rootId)==="undefined"){return null}var t=this.config.fragmentMatcher;var r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null};t.prototype.write=function(e){var t=this.config.fragmentMatcher;var r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r});this.broadcastWatches()};t.prototype.diff=function(e){var t=this.config.fragmentMatcher;var r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})};t.prototype.watch=function(e){var t=this;this.watches.add(e);return function(){t.watches.delete(e)}};t.prototype.evict=function(e){throw new g(7)};t.prototype.reset=function(){this.data.clear();this.broadcastWatches();return Promise.resolve()};t.prototype.removeOptimistic=function(e){var t=[];var r=0;var n=this.optimisticData;while(n instanceof ln){if(n.optimisticId===e){++r}else{t.push(n)}n=n.parent}if(r>0){this.optimisticData=n;while(t.length>0){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}};t.prototype.performTransaction=function(e,t){var r=this,n=r.data,i=r.silenceBroadcast;this.silenceBroadcast=true;if(typeof t==="string"){this.data=this.optimisticData=new ln(t,this.optimisticData,e)}try{e(this)}finally{this.silenceBroadcast=i;this.data=n}this.broadcastWatches()};t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)};t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);if(!t){t=Ie(e);this.typenameDocumentCache.set(e,t);this.typenameDocumentCache.set(t,t)}return t}return e};t.prototype.broadcastWatches=function(){var e=this;if(!this.silenceBroadcast){this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))}};t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))};return t}(ar);var dn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=r;function r(e,t){var r=Boolean(e);if(!r){throw new Error(t)}}}));r(dn);var pn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=i;var r=n(l);function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:e.prototype.toString;e.prototype.toJSON=t;e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));r(pn);var hn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function r(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){r=function e(t){return typeof t}}else{r=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return r(e)}function n(e){return r(e)=="object"&&e!==null}}));r(hn);var vn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.getLocation=r;function r(e,t){var r=/\r\n|[\n\r]/g;var n=1;var i=t+1;var a;while((a=r.exec(e.body))&&a.index<t){n+=1;i=t+1-(a.index+a[0].length)}return{line:n,column:i}}}));r(vn);var yn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.printLocation=r;t.printSourceLocation=n;function r(e){return n(e.source,(0,vn.getLocation)(e.source,e.start))}function n(e,t){var r=e.locationOffset.column-1;var n=a(r)+e.body;var o=t.line-1;var s=e.locationOffset.line-1;var u=t.line+s;var c=t.line===1?r:0;var l=t.column+c;var f="".concat(e.name,":").concat(u,":").concat(l,"\n");var d=n.split(/\r\n|[\n\r]/g);var p=d[o];if(p.length>120){var h=Math.floor(l/80);var v=l%80;var y=[];for(var m=0;m<p.length;m+=80){y.push(p.slice(m,m+80))}return f+i([["".concat(u),y[0]]].concat(y.slice(1,h+1).map((function(e){return["",e]})),[[" ",a(v-1)+"^"],["",y[h+1]]]))}return f+i([["".concat(u-1),d[o-1]],["".concat(u),p],["",a(l-1)+"^"],["".concat(u+1),d[o+1]]])}function i(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var r=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],n=e[1];return o(r,t)+(n?" | "+n:" |")})).join("\n")}function a(e){return Array(e+1).join(" ")}function o(e,t){return a(e-t.length)+t}}));r(yn);var mn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.GraphQLError=i;t.printError=a;var r=n(hn);function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n,a,o,s,u){var c=Array.isArray(t)?t.length!==0?t:undefined:t?[t]:undefined;var l=n;if(!l&&c){var f=c[0];l=f&&f.loc&&f.loc.source}var d=a;if(!d&&c){d=c.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(d&&d.length===0){d=undefined}var p;if(a&&n){p=a.map((function(e){return(0,vn.getLocation)(n,e)}))}else if(c){p=c.reduce((function(e,t){if(t.loc){e.push((0,vn.getLocation)(t.loc.source,t.loc.start))}return e}),[])}var h=u;if(h==null&&s!=null){var v=s.extensions;if((0,r.default)(v)){h=v}}Object.defineProperties(this,{message:{value:e,enumerable:true,writable:true},locations:{value:p||undefined,enumerable:Boolean(p)},path:{value:o||undefined,enumerable:Boolean(o)},nodes:{value:c||undefined},source:{value:l||undefined},positions:{value:d||undefined},originalError:{value:s},extensions:{value:h||undefined,enumerable:Boolean(h)}});if(s&&s.stack){Object.defineProperty(this,"stack",{value:s.stack,writable:true,configurable:true})}else if(Error.captureStackTrace){Error.captureStackTrace(this,i)}else{Object.defineProperty(this,"stack",{value:Error().stack,writable:true,configurable:true})}}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"},toString:{value:function e(){return a(this)}}});function a(e){var t=e.message;if(e.nodes){for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];if(i.loc){t+="\n\n"+(0,yn.printLocation)(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+(0,yn.printSourceLocation)(e.source,s)}}return t}}));r(mn);var gn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.syntaxError=r;function r(e,t,r){return new mn.GraphQLError("Syntax Error: ".concat(r),undefined,e,[t])}}));r(gn);var bn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Kind=void 0;var r=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"});t.Kind=r}));r(bn);var In=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=r;function r(e){if(typeof Symbol==="function"&&Symbol.toStringTag){Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function e(){return this.constructor.name}})}}}));r(In);var kn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.Source=void 0;var r=i(dn);var n=i(In);function i(e){return e&&e.__esModule?e:{default:e}}var a=function e(t,n,i){this.body=t;this.name=n||"GraphQL request";this.locationOffset=i||{line:1,column:1};this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive");this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=a;(0,n.default)(a)}));r(kn);var En=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.TokenKind=void 0;var r=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"});t.TokenKind=r}));r(En);var wn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.createLexer=i;t.isPunctuatorToken=s;var r=n(pn);function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=new u(En.TokenKind.SOF,0,0,0,0,null);var n={source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:a,lookahead:o};return n}function a(){this.lastToken=this.token;var e=this.token=this.lookahead();return e}function o(){var e=this.token;if(e.kind!==En.TokenKind.EOF){do{e=e.next||(e.next=l(this,e))}while(e.kind===En.TokenKind.COMMENT)}return e}function s(e){var t=e.kind;return t===En.TokenKind.BANG||t===En.TokenKind.DOLLAR||t===En.TokenKind.AMP||t===En.TokenKind.PAREN_L||t===En.TokenKind.PAREN_R||t===En.TokenKind.SPREAD||t===En.TokenKind.COLON||t===En.TokenKind.EQUALS||t===En.TokenKind.AT||t===En.TokenKind.BRACKET_L||t===En.TokenKind.BRACKET_R||t===En.TokenKind.BRACE_L||t===En.TokenKind.PIPE||t===En.TokenKind.BRACE_R}function u(e,t,r,n,i,a,o){this.kind=e;this.start=t;this.end=r;this.line=n;this.column=i;this.value=o;this.prev=a;this.next=null}(0,r.default)(u,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));function c(e){return isNaN(e)?En.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function l(e,t){var r=e.source;var n=r.body;var i=n.length;var a=d(n,t.end,e);var o=e.line;var s=1+a-e.lineStart;if(a>=i){return new u(En.TokenKind.EOF,i,i,o,s,t)}var c=n.charCodeAt(a);switch(c){case 33:return new u(En.TokenKind.BANG,a,a+1,o,s,t);case 35:return p(r,a,o,s,t);case 36:return new u(En.TokenKind.DOLLAR,a,a+1,o,s,t);case 38:return new u(En.TokenKind.AMP,a,a+1,o,s,t);case 40:return new u(En.TokenKind.PAREN_L,a,a+1,o,s,t);case 41:return new u(En.TokenKind.PAREN_R,a,a+1,o,s,t);case 46:if(n.charCodeAt(a+1)===46&&n.charCodeAt(a+2)===46){return new u(En.TokenKind.SPREAD,a,a+3,o,s,t)}break;case 58:return new u(En.TokenKind.COLON,a,a+1,o,s,t);case 61:return new u(En.TokenKind.EQUALS,a,a+1,o,s,t);case 64:return new u(En.TokenKind.AT,a,a+1,o,s,t);case 91:return new u(En.TokenKind.BRACKET_L,a,a+1,o,s,t);case 93:return new u(En.TokenKind.BRACKET_R,a,a+1,o,s,t);case 123:return new u(En.TokenKind.BRACE_L,a,a+1,o,s,t);case 124:return new u(En.TokenKind.PIPE,a,a+1,o,s,t);case 125:return new u(En.TokenKind.BRACE_R,a,a+1,o,s,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 I(r,a,o,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h(r,a,c,o,s,t);case 34:if(n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){return m(r,a,o,s,t,e)}return y(r,a,o,s,t)}throw(0,gn.syntaxError)(r,a,f(c))}function f(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(c(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(c(e),".")}function d(e,t,r){var n=e.length;var i=t;while(i<n){var a=e.charCodeAt(i);if(a===9||a===32||a===44||a===65279){++i}else if(a===10){++i;++r.line;r.lineStart=i}else if(a===13){if(e.charCodeAt(i+1)===10){i+=2}else{++i}++r.line;r.lineStart=i}else{break}}return i}function p(e,t,r,n,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new u(En.TokenKind.COMMENT,t,s,r,n,i,a.slice(t+1,s))}function h(e,t,r,n,i,a){var o=e.body;var s=r;var l=t;var f=false;if(s===45){s=o.charCodeAt(++l)}if(s===48){s=o.charCodeAt(++l);if(s>=48&&s<=57){throw(0,gn.syntaxError)(e,l,"Invalid number, unexpected digit after 0: ".concat(c(s),"."))}}else{l=v(e,l,s);s=o.charCodeAt(l)}if(s===46){f=true;s=o.charCodeAt(++l);l=v(e,l,s);s=o.charCodeAt(l)}if(s===69||s===101){f=true;s=o.charCodeAt(++l);if(s===43||s===45){s=o.charCodeAt(++l)}l=v(e,l,s);s=o.charCodeAt(l)}if(s===46||s===69||s===101){throw(0,gn.syntaxError)(e,l,"Invalid number, expected digit but got: ".concat(c(s),"."))}return new u(f?En.TokenKind.FLOAT:En.TokenKind.INT,t,l,n,i,a,o.slice(t,l))}function v(e,t,r){var n=e.body;var i=t;var a=r;if(a>=48&&a<=57){do{a=n.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw(0,gn.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(c(a),"."))}function y(e,t,r,n,i){var a=e.body;var o=t+1;var s=o;var l=0;var f="";while(o<a.length&&!isNaN(l=a.charCodeAt(o))&&l!==10&&l!==13){if(l===34){f+=a.slice(s,o);return new u(En.TokenKind.STRING,t,o+1,r,n,i,f)}if(l<32&&l!==9){throw(0,gn.syntaxError)(e,o,"Invalid character within String: ".concat(c(l),"."))}++o;if(l===92){f+=a.slice(s,o-1);l=a.charCodeAt(o);switch(l){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:{var d=g(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(d<0){var p=a.slice(o+1,o+5);throw(0,gn.syntaxError)(e,o,"Invalid character escape sequence: \\u".concat(p,"."))}f+=String.fromCharCode(d);o+=4;break}default:throw(0,gn.syntaxError)(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}++o;s=o}}throw(0,gn.syntaxError)(e,o,"Unterminated string.")}function m(e,t,r,n,i,a){var o=e.body;var s=t+3;var l=s;var f=0;var d="";while(s<o.length&&!isNaN(f=o.charCodeAt(s))){if(f===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){d+=o.slice(l,s);return new u(En.TokenKind.BLOCK_STRING,t,s+3,r,n,i,(0,Pt.dedentBlockStringValue)(d))}if(f<32&&f!==9&&f!==10&&f!==13){throw(0,gn.syntaxError)(e,s,"Invalid character within String: ".concat(c(f),"."))}if(f===10){++s;++a.line;a.lineStart=s}else if(f===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(f===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){d+=o.slice(l,s)+'"""';s+=4;l=s}else{++s}}throw(0,gn.syntaxError)(e,s,"Unterminated string.")}function g(e,t,r,n){return b(e)<<12|b(t)<<8|b(r)<<4|b(n)}function b(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function I(e,t,r,n,i){var a=e.body;var o=a.length;var s=t+1;var c=0;while(s!==o&&!isNaN(c=a.charCodeAt(s))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122)){++s}return new u(En.TokenKind.NAME,t,s,r,n,i,a.slice(t,s))}}));r(wn);var Tn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.DirectiveLocation=void 0;var r=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"});t.DirectiveLocation=r}));r(Tn);var Sn=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.parse=o;t.parseValue=s;t.parseType=u;var r=a(f);var n=a(dn);var i=a(pn);function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=new c(e,t);return r.parseDocument()}function s(e,t){var r=new c(e,t);r.expectToken(En.TokenKind.SOF);var n=r.parseValueLiteral(false);r.expectToken(En.TokenKind.EOF);return n}function u(e,t){var r=new c(e,t);r.expectToken(En.TokenKind.SOF);var n=r.parseTypeReference();r.expectToken(En.TokenKind.EOF);return n}var c=function(){function e(e,t){var i=typeof e==="string"?new kn.Source(e):e;i instanceof kn.Source||(0,n.default)(0,"Must provide Source. Received: ".concat((0,r.default)(i)));this._lexer=(0,wn.createLexer)(i);this._options=t||{}}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(En.TokenKind.NAME);return{kind:bn.Kind.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:bn.Kind.DOCUMENT,definitions:this.many(En.TokenKind.SOF,this.parseDefinition,En.TokenKind.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(En.TokenKind.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(En.TokenKind.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(En.TokenKind.BRACE_L)){return{kind:bn.Kind.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var r=this.parseOperationType();var n;if(this.peek(En.TokenKind.NAME)){n=this.parseName()}return{kind:bn.Kind.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(En.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(En.TokenKind.PAREN_L,this.parseVariableDefinition,En.TokenKind.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:bn.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(En.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(En.TokenKind.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(En.TokenKind.DOLLAR);return{kind:bn.Kind.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:bn.Kind.SELECTION_SET,selections:this.many(En.TokenKind.BRACE_L,this.parseSelection,En.TokenKind.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(En.TokenKind.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var r=this.parseName();var n;var i;if(this.expectOptionalToken(En.TokenKind.COLON)){n=r;i=this.parseName()}else{i=r}return{kind:bn.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(En.TokenKind.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(En.TokenKind.PAREN_L,r,En.TokenKind.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var r=this.parseName();this.expectToken(En.TokenKind.COLON);return{kind:bn.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:bn.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(En.TokenKind.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(En.TokenKind.SPREAD);var r=this.expectOptionalKeyword("on");if(!r&&this.peek(En.TokenKind.NAME)){return{kind:bn.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:bn.Kind.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t=this._lexer.token;this.expectKeyword("fragment");if(this._options.experimentalFragmentVariables){return{kind:bn.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}return{kind:bn.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var r=this._lexer.token;switch(r.kind){case En.TokenKind.BRACKET_L:return this.parseList(t);case En.TokenKind.BRACE_L:return this.parseObject(t);case En.TokenKind.INT:this._lexer.advance();return{kind:bn.Kind.INT,value:r.value,loc:this.loc(r)};case En.TokenKind.FLOAT:this._lexer.advance();return{kind:bn.Kind.FLOAT,value:r.value,loc:this.loc(r)};case En.TokenKind.STRING:case En.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case En.TokenKind.NAME:if(r.value==="true"||r.value==="false"){this._lexer.advance();return{kind:bn.Kind.BOOLEAN,value:r.value==="true",loc:this.loc(r)}}else if(r.value==="null"){this._lexer.advance();return{kind:bn.Kind.NULL,loc:this.loc(r)}}this._lexer.advance();return{kind:bn.Kind.ENUM,value:r.value,loc:this.loc(r)};case En.TokenKind.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:bn.Kind.STRING,value:t.value,block:t.kind===En.TokenKind.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var r=this;var n=this._lexer.token;var i=function e(){return r.parseValueLiteral(t)};return{kind:bn.Kind.LIST,values:this.any(En.TokenKind.BRACKET_L,i,En.TokenKind.BRACKET_R),loc:this.loc(n)}};t.parseObject=function e(t){var r=this;var n=this._lexer.token;var i=function e(){return r.parseObjectField(t)};return{kind:bn.Kind.OBJECT,fields:this.any(En.TokenKind.BRACE_L,i,En.TokenKind.BRACE_R),loc:this.loc(n)}};t.parseObjectField=function e(t){var r=this._lexer.token;var n=this.parseName();this.expectToken(En.TokenKind.COLON);return{kind:bn.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t),loc:this.loc(r)}};t.parseDirectives=function e(t){var r=[];while(this.peek(En.TokenKind.AT)){r.push(this.parseDirective(t))}return r};t.parseDirective=function e(t){var r=this._lexer.token;this.expectToken(En.TokenKind.AT);return{kind:bn.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(r)}};t.parseTypeReference=function e(){var t=this._lexer.token;var r;if(this.expectOptionalToken(En.TokenKind.BRACKET_L)){r=this.parseTypeReference();this.expectToken(En.TokenKind.BRACKET_R);r={kind:bn.Kind.LIST_TYPE,type:r,loc:this.loc(t)}}else{r=this.parseNamedType()}if(this.expectOptionalToken(En.TokenKind.BANG)){return{kind:bn.Kind.NON_NULL_TYPE,type:r,loc:this.loc(t)}}return r};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:bn.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===En.TokenKind.NAME){switch(t.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(t)};t.peekDescription=function e(){return this.peek(En.TokenKind.STRING)||this.peek(En.TokenKind.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;this.expectKeyword("schema");var r=this.parseDirectives(true);var n=this.many(En.TokenKind.BRACE_L,this.parseOperationTypeDefinition,En.TokenKind.BRACE_R);return{kind:bn.Kind.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseOperationType();this.expectToken(En.TokenKind.COLON);var n=this.parseNamedType();return{kind:bn.Kind.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName();var i=this.parseDirectives(true);return{kind:bn.Kind.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("type");var n=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:bn.Kind.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(En.TokenKind.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(En.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(En.TokenKind.NAME))}return t};t.parseFieldsDefinition=function e(){if(this._options.allowLegacySDLEmptyFields&&this.peek(En.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===En.TokenKind.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(En.TokenKind.BRACE_L,this.parseFieldDefinition,En.TokenKind.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();var i=this.parseArgumentDefs();this.expectToken(En.TokenKind.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:bn.Kind.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(En.TokenKind.PAREN_L,this.parseInputValueDef,En.TokenKind.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();this.expectToken(En.TokenKind.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(En.TokenKind.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:bn.Kind.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("interface");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();return{kind:bn.Kind.INTERFACE_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("union");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:bn.Kind.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){var t=[];if(this.expectOptionalToken(En.TokenKind.EQUALS)){this.expectOptionalToken(En.TokenKind.PIPE);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(En.TokenKind.PIPE))}return t};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("enum");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:bn.Kind.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(En.TokenKind.BRACE_L,this.parseEnumValueDefinition,En.TokenKind.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();var n=this.parseName();var i=this.parseDirectives(true);return{kind:bn.Kind.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("input");var n=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:bn.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(En.TokenKind.BRACE_L,this.parseInputValueDef,En.TokenKind.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===En.TokenKind.NAME){switch(t.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(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var r=this.parseDirectives(true);var n=this.optionalMany(En.TokenKind.BRACE_L,this.parseOperationTypeDefinition,En.TokenKind.BRACE_R);if(r.length===0&&n.length===0){throw this.unexpected()}return{kind:bn.Kind.SCHEMA_EXTENSION,directives:r,operationTypes:n,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var r=this.parseName();var n=this.parseDirectives(true);if(n.length===0){throw this.unexpected()}return{kind:bn.Kind.SCALAR_TYPE_EXTENSION,name:r,directives:n,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var r=this.parseName();var n=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:bn.Kind.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseFieldsDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.INTERFACE_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.UNION_TYPE_EXTENSION,name:r,directives:n,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var r=this.parseName();var n=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0){throw this.unexpected()}return{kind:bn.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var r=this.parseDescription();this.expectKeyword("directive");this.expectToken(En.TokenKind.AT);var n=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:bn.Kind.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){this.expectOptionalToken(En.TokenKind.PIPE);var t=[];do{t.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(En.TokenKind.PIPE));return t};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var r=this.parseName();if(Tn.DirectiveLocation[r.value]!==undefined){return r}throw this.unexpected(t)};t.loc=function e(t){if(!this._options.noLocation){return new l(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var r=this._lexer.token;if(r.kind===t){this._lexer.advance();return r}throw(0,gn.syntaxError)(this._lexer.source,r.start,"Expected ".concat(t,", found ").concat(d(r)))};t.expectOptionalToken=function e(t){var r=this._lexer.token;if(r.kind===t){this._lexer.advance();return r}return undefined};t.expectKeyword=function e(t){var r=this._lexer.token;if(r.kind===En.TokenKind.NAME&&r.value===t){this._lexer.advance()}else{throw(0,gn.syntaxError)(this._lexer.source,r.start,'Expected "'.concat(t,'", found ').concat(d(r)))}};t.expectOptionalKeyword=function e(t){var r=this._lexer.token;if(r.kind===En.TokenKind.NAME&&r.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var r=t||this._lexer.token;return(0,gn.syntaxError)(this._lexer.source,r.start,"Unexpected ".concat(d(r)))};t.any=function e(t,r,n){this.expectToken(t);var i=[];while(!this.expectOptionalToken(n)){i.push(r.call(this))}return i};t.optionalMany=function e(t,r,n){if(this.expectOptionalToken(t)){var i=[];do{i.push(r.call(this))}while(!this.expectOptionalToken(n));return i}return[]};t.many=function e(t,r,n){this.expectToken(t);var i=[];do{i.push(r.call(this))}while(!this.expectOptionalToken(n));return i};return e}();function l(e,t,r){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=r}(0,i.default)(l,(function(){return{start:this.start,end:this.end}}));function d(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}}));r(Sn);var _n=Sn.parse;function On(e){return e.replace(/[\s,]+/g," ").trim()}var xn={};var Dn={};function Nn(e){return On(e.source.body.substring(e.start,e.end))}function Rn(){xn={};Dn={}}var Cn=true;function An(e){var t={};var r=[];for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.kind==="FragmentDefinition"){var a=i.name.value;var o=Nn(i.loc);if(Dn.hasOwnProperty(a)&&!Dn[a][o]){if(Cn){console.warn("Warning: fragment with name "+a+" already exists.\n"+"graphql-tag enforces all fragment names across your application to be unique; read more about\n"+"this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names")}Dn[a][o]=true}else if(!Dn.hasOwnProperty(a)){Dn[a]={};Dn[a][o]=true}if(!t[o]){t[o]=true;r.push(i)}}else{r.push(i)}}e.definitions=r;return e}function Mn(){Cn=false}function qn(e,t){var r=Object.prototype.toString.call(e);if(r==="[object Array]"){return e.map((function(e){return qn(e,t)}))}if(r!=="[object Object]"){throw new Error("Unexpected input.")}if(t&&e.loc){delete e.loc}if(e.loc){delete e.loc.startToken;delete e.loc.endToken}var n=Object.keys(e);var i;var a;var o;for(i in n){if(n.hasOwnProperty(i)){a=e[n[i]];o=Object.prototype.toString.call(a);if(o==="[object Object]"||o==="[object Array]"){e[n[i]]=qn(a,true)}}}return e}var Fn=false;function Ln(e){var t=On(e);if(xn[t]){return xn[t]}var r=_n(e,{experimentalFragmentVariables:Fn});if(!r||r.kind!=="Document"){throw new Error("Not a valid GraphQL document.")}r=An(r);r=qn(r,false);xn[t]=r;return r}function Pn(){Fn=true}function Qn(){Fn=false}function $n(){var e=Array.prototype.slice.call(arguments);var t=e[0];var r=typeof t==="string"?t:t[0];for(var n=1;n<e.length;n++){if(e[n]&&e[n].kind&&e[n].kind==="Document"){r+=e[n].loc.source.body}else{r+=e[n]}r+=t[n]}return Ln(r)}$n.default=$n;$n.resetCaches=Rn;$n.disableFragmentWarnings=Mn;$n.enableExperimentalFragmentVariables=Pn;$n.disableExperimentalFragmentVariables=Qn;var Kn=$n;if(!window["widgetIdent"]){window["widgetIdent"]={env:"demo"}}function Vn(){return window.widgetIdent}var jn=new Date;var Bn={shareLink:"http://ssqt.co",fueltankCode:"12AS3F",referralcode:"RIDDIKULUS",locale:"en_US",messageLink:{EMAIL:"http://short.staging.referralsaasquatch.com/mJjFXu",FACEBOOK:"http://short.staging.referralsaasquatch.com/mwjFXu",TWITTER:"http://short.staging.referralsaasquatch.com/mwjFXu",SMS:"http://short.staging.referralsaasquatch.com/mwjFXu",WHATSAPP:"http://short.staging.referralsaasquatch.com/mwjFXu",LINKEDIN:"http://short.staging.referralsaasquatch.com/mwjFXu",PINTEREST:"http://short.staging.referralsaasquatch.com/mwjFXu",FBMESSENGER:"http://short.staging.referralsaasquatch.com/mwjFXu"},referrals:{totalCount:9,data:[{dateReferralStarted:jn.setDate(jn.getDate()-2),referredUser:{firstName:"Remus",lastName:"Lupin"},rewards:[{prettyValue:"$20.00",dateExpires:jn.setDate(jn.getDate()+4),statuses:["EXPIRED"],meta:{message:"Applied to Invoice #1234"}},{prettyValue:"$10.00",statuses:["AVAILABLE"]},{prettyValue:"$5.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:jn.setDate(jn.getDate()-1),referredUser:{firstName:"Gellert",lastName:"Grindelwald"},rewards:[]},{dateReferralStarted:jn.setDate(jn.getDate()-1),referredUser:{firstName:"",lastName:""},rewards:[{prettyValue:"$20.00",dateExpires:jn.setDate(jn.getDate()-2),statuses:["EXPIRED"]}]},{dateReferralStarted:jn.setDate(jn.getDate()-5),referredUser:{firstName:"Lavender",lastName:"Brown"},rewards:[{prettyValue:"$20.00",statuses:["CANCELLED"]}]},{dateReferralStarted:jn.setDate(jn.getDate()-4),referredUser:{firstName:"Blaise",lastName:"Zabini"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]},{prettyValue:"$10.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:jn.setDate(jn.getDate()-10),referredUser:{firstName:"Argus",lastName:"Filch"},rewards:[]},{dateReferralStarted:jn.setDate(jn.getDate()-15),referredUser:{firstName:"Ron",lastName:"Weasley"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]}]},{dateReferralStarted:jn.setDate(jn.getDate()-2),referredUser:{firstName:"Hermione",lastName:"Granger"},rewards:[{prettyValue:"$20.00",statuses:["AVAILABLE"]},{prettyValue:"$10.00",statuses:["AVAILABLE"]},{prettyValue:"$5.00",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]},{prettyValue:"5%",statuses:["AVAILABLE"]}]},{dateConverted:1606943971468,dateReferralStarted:1606943971468,referredUser:{imageUrl:"",firstName:"Seamus",lastName:"Finnigan"},rewards:[]}]},referredByReferral:{dateReferralStarted:jn.setDate(jn.getDate()-2),referrerUser:{firstName:"Rubeus",lastName:"Hagrid",referralCode:"RUBEUSHAGRID12"},rewards:[{fuelTankCode:"CODE1234",prettyValue:"$10.00",statuses:["AVAILABLE"]}]},referralsMonth:{totalCount:6},referralsWeek:{totalCount:3},rewardsCount:{totalCount:14},rewardsMonth:{totalCount:7},rewardsWeek:{totalCount:4},rewardBalancesGlobal:[{type:"CREDIT",unit:"CENTS",value:17e3,prettyValue:"$170.00",totalAssignedCredit:"17000",totalRedeemedCredit:"1500",prettyAssignedCredit:"$1000.00",prettyRedeemedCredit:"$15.00"},{type:"PCT_DISCOUNT",unit:"%",value:15,prettyValue:"15%"},{type:"CREDIT",unit:"CASH/CAD",count:3,totalPendingCredit:2e4,totalAssignedCredit:3e4,totalRedeemedCredit:1e4,totalExpiredCredit:0,totalCancelledCredit:0,prettyPendingCredit:"$200.00",prettyAssignedCredit:"$300.00",prettyRedeemedCredit:"$100.00",value:3e4,prettyValue:"$300.00"},{type:"CREDIT",unit:"CASH/USD",count:6,totalPendingCredit:25e3,totalAssignedCredit:4e4,totalRedeemedCredit:1e4,totalExpiredCredit:15e3,totalCancelledCredit:1e4,prettyPendingCredit:"USD250.00",prettyAssignedCredit:"USD400.00",prettyRedeemedCredit:"USD150.00",value:4e4,prettyValue:"USD400.00"}],rewardBalances:[{type:"CREDIT",unit:"CENTS",value:17e3,prettyValue:"$170.00",totalAssignedCredit:"17000",totalRedeemedCredit:"1500",prettyAssignedCredit:"$170.00",prettyRedeemedCredit:"$15.00"},{type:"PCT_DISCOUNT",unit:"%",value:15,prettyValue:"15%"},{type:"CREDIT",unit:"CASH/CAD",count:3,totalPendingCredit:2e4,totalAssignedCredit:3e4,totalRedeemedCredit:1e4,totalExpiredCredit:0,totalCancelledCredit:0,prettyPendingCredit:"$200.00",prettyAssignedCredit:"$300.00",prettyRedeemedCredit:"$100.00",value:3e4,prettyValue:"$300.00"},{type:"CREDIT",unit:"CASH/USD",count:6,totalPendingCredit:25e3,totalAssignedCredit:4e4,totalRedeemedCredit:1e4,totalExpiredCredit:15e3,totalCancelledCredit:1e4,prettyPendingCredit:"USD250.00",prettyAssignedCredit:"USD400.00",prettyRedeemedCredit:"USD150.00",value:4e4,prettyValue:"USD400.00"}],rewardBalanceDetails:[{prettyAvailableValue:"$5.00"},{prettyAvailableValue:"18%"}]};var Un=window.frameElement?window.frameElement.squatchJsApi:{};var Gn=function(){var e=Vn(),t=e.tenantAlias,r=e.appDomain,n=e.token;var i=r+"/api/v1/"+t+"/graphql";var a={Authorization:"Bearer "+n};var o=new Lt({link:new er({uri:i,headers:a}),cache:new fn});return o};var Yn=e("A",{version:"Welcome to widget-host",analytics:{shareEvent:function(e){var t=Vn();if(t["env"]==="demo"||!t)return Promise.resolve({});var r=t.userId,n=t.accountId,i=t.programId,a=i===void 0?"classic":i,o=t.engagementMedium;var s={eventMeta:{id:r,accountId:n,programId:a,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:o,shareMedium:e}}};return Gn().mutate({mutation:Kn(__makeTemplateObject(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "],["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n "])),variables:s}).then((function(e){return e.data.createUserAnalyticsEvent}))},loadEvent:function(){return Promise.resolve({event:"loadEvent"})}},graphql:{getClient:function(){return Gn()},getUserFragment:function(e,t){var r=Kn(__makeTemplateObject(["\n fragment UserFragment on User {\n ","\n }"],["\n fragment UserFragment on User {\n ","\n }"]),e);var n=Vn(),i=n.userId,a=n.accountId;var o=Object.assign(Object.assign({},t),{userId:i,accountId:a});return this.getClient().query({query:Kn(__makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ","\n "],["\n query ($userId: String!, $accountId: String!, $offset: Int) {\n user(id: $userId, accountId: $accountId) {\n ...UserFragment\n }\n }\n ","\n "]),r),variables:o})},getShareLink:function(){var e=Vn();if(e["env"]==="demo"||!e)return Promise.resolve(Bn.shareLink);var t=e.userId,r=e.accountId,n=e.programId,i=n===void 0?null:n,a=e.engagementMedium;var o={userId:t,accountId:r,programId:i,engagementMedium:a};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $engagementMedium: UserEngagementMedium!\n ) {\n user(id: $userId, accountId: $accountId) {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n useCleanLink: true\n )\n }\n }\n "])),variables:o}).then((function(e){return e.data.user.shareLink}))},getReferrals:function(e,t,r){if(t===void 0){t=0}if(r===void 0){r=3}var n=Vn();if(n["env"]==="demo"||!n){var i=Bn.referrals,a=Bn.referredByReferral,o=Bn.locale;var s={totalCount:i.totalCount,data:i.data.slice(t,t+r)};var u={referrals:s,referredByReferral:a,locale:o};return Promise.resolve(u)}var c=n.userId,l=n.accountId,f=n.programId,d=f===void 0?null:f;var p={limit:r,offset:t,userId:c,accountId:l,programId:d,programId_exists:d?true:false};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ","\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $offset: Int!\n $limit: Int!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n locale\n referrals(\n limit: $limit\n offset: $offset\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n data {\n dateConverted\n dateReferralStarted\n referredUser {\n firstName\n lastName\n }\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n dateExpires\n statuses\n meta {\n message\n }\n }\n }\n }\n ","\n }\n }\n "]),e?"referredByReferral(programId: $programId) {\n referrerUser {\n firstName\n lastName\n }\n dateReferralStarted\n rewards(\n filter: { userId_eq: $userId, accountId_eq: $accountId }\n ) {\n prettyValue\n statuses\n }\n }":""),variables:p}).then((function(e){return e.data.user}))},getStats:function(){var e=Vn();if(e["env"]==="demo"||!e){var t=Bn.referrals,r=Bn.referralsMonth,n=Bn.referralsWeek,i=Bn.rewardsCount,a=Bn.rewardsMonth,o=Bn.rewardsWeek,s=Bn.rewardBalances,u=Bn.rewardBalancesGlobal;var c={referralsCount:t,referralsMonth:r,referralsWeek:n,rewardsCount:i,rewardsMonth:a,rewardsWeek:o,rewardBalances:s,rewardBalancesGlobal:u};return Promise.resolve(c)}var l=e.userId,f=e.accountId,d=e.programId,p=d===void 0?null:d;var h={userId:l,accountId:f,programId:p,programId_exists:p?true:false};return this.getClient().query({query:Kn(__makeTemplateObject(['\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n '],['\n query (\n $userId: String!\n $accountId: String!\n $programId: ID\n $programId_exists: Boolean!\n ) {\n user(id: $userId, accountId: $accountId) {\n referralsCount: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n referralsMonth: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n referralsWeek: referrals(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateReferralStarted_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardsCount: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n }\n ) {\n totalCount\n }\n rewardsMonth: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n rewardsWeek: rewards(\n filter: {\n programId_eq: $programId\n programId_exists: $programId_exists\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n rewardBalances(programId: $programId)\n rewardBalancesGlobal: rewardBalances\n }\n }\n '])),variables:h}).then((function(e){return e.data.user}))},getBalanceDetails:function(){var e=Vn();if(e["env"]==="demo"||!e){var t=Bn.rewardBalanceDetails;var r={rewardBalanceDetails:t};return Promise.resolve(r)}var n=e.userId,i=e.accountId,a=e.programId,o=a===void 0?null:a,s=e.locale;var u={userId:n,accountId:i,programId:o,locale:s};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query(\n $userId: String!,\n $accountId: String!,\n $programId: ID,\n $locale: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n rewardBalanceDetails(programId: $programId) {\n prettyAvailableValue\n unit\n ... on CreditRewardBalance {\n prettyAssignedCredit\n prettyRedeemedCredit\n rewardUnit {\n currency {\n displayName(locale: $locale)\n symbol(locale: $locale)\n currencyCode\n }\n }\n }\n }\n }\n }\n "],["\n query(\n $userId: String!,\n $accountId: String!,\n $programId: ID,\n $locale: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n rewardBalanceDetails(programId: $programId) {\n prettyAvailableValue\n unit\n ... on CreditRewardBalance {\n prettyAssignedCredit\n prettyRedeemedCredit\n rewardUnit {\n currency {\n displayName(locale: $locale)\n symbol(locale: $locale)\n currencyCode\n }\n }\n }\n }\n }\n }\n "])),variables:u}).then((function(e){return e.data.user}))},getRewardExpiries:function(){var e=Vn();if(e["env"]==="demo"||!e){var t=Bn.rewardBalanceDetails;var r={rewardBalanceDetails:t};return Promise.resolve(r)}var n=e.userId,i=e.accountId,a=e.programId,o=a===void 0?null:a,s=e.locale;var u={userId:n,accountId:i,programId:o,locale:s};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query(\n $userId: String!,\n $accountId: String!,\n $programId: ID,\n $locale: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n rewards(programId_eq: $programId) {\n data {\n dateCreated\n dateScheduledFor\n dateExpires\n prettyValue\n unit\n }\n }\n }\n }\n "],["\n query(\n $userId: String!,\n $accountId: String!,\n $programId: ID,\n $locale: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n rewards(programId_eq: $programId) {\n data {\n dateCreated\n dateScheduledFor\n dateExpires\n prettyValue\n unit\n }\n }\n }\n }\n "])),variables:u}).then((function(e){return e.data.user}))},getReferralCode:function(){return s(this,void 0,void 0,(function(){var e,t,r,n,i;return u(this,(function(a){e=Vn();if(e["env"]==="demo"||!e)return[2,Bn.referralcode];t=e.userId,r=e.accountId,n=e.programId;i={userId:t,accountId:r,programId:n};return[2,this.getClient().query({query:Kn(__makeTemplateObject(["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "],["\n query ($userId: String!, $accountId: String!, $programId: ID!) {\n user(id: $userId, accountId: $accountId) {\n referralCode(programId: $programId)\n }\n }\n "])),variables:i}).then((function(e){return e.data.user.referralCode}))]}))}))},getFueltankCode:function(e){return s(this,void 0,void 0,(function(){var t,r,n,i,a;return u(this,(function(o){t=Vn();if(t["env"]==="demo"||!t){return[2,{referredByReferral:Bn.referredByReferral,rewards:{data:Bn.referredByReferral.rewards}}]}r=t.userId,n=t.accountId,i=t.programId;a={userId:r,accountId:n,programId:i,rewardKey:e};return[2,this.getClient().query({query:Kn(__makeTemplateObject(["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "],["\n query (\n $userId: String!\n $accountId: String!\n $programId: ID!\n $rewardKey: String!\n ) {\n user(id: $userId, accountId: $accountId) {\n referredByReferral(programId: $programId) {\n referrerUser {\n referralCode(programId: $programId)\n }\n }\n rewards(\n filter: {\n programId_eq: $programId\n programRewardKey_eq: $rewardKey\n }\n ) {\n count\n totalCount\n data {\n fuelTankCode\n }\n }\n }\n }\n "])),variables:a}).then((function(e){return e.data.user}))]}))}))},getMessageLinks:function(e){var t=Vn();if(t["env"]==="demo"||!t)return Promise.resolve(Bn.messageLink);var r=t.userId,n=t.accountId,i=t.programId,a=i===void 0?null:i,o=t.engagementMedium;var s={userId:r,accountId:n,programId:a,engagementMedium:o};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {\n user(id: $userId, accountId: $accountId) {\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n }\n }\n "],["\n query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {\n user(id: $userId, accountId: $accountId) {\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n ",":messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ",")\n }\n }\n "]),e[0],e[0],e[1],e[1],e[2],e[2],e[3],e[3],e[4],e[4],e[5],e[5],e[6],e[6],e[7],e[7],e[8],e[8]),variables:s}).then((function(e){return e.data.user}))},getUserProgress:function(){var e=Vn();if(e["env"]==="demo"||!e){var t={customFields:{demo_totalValue:16},rewardBalanceDetails:[{prettyAvailableValue:"$10.00"}],rewards:{count:1}};return Promise.resolve(t)}var r=e.userId,n=e.accountId,i=e.programId;var a={userId:r,accountId:n,programId:i};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query($userId: String!, $accountId: String!, $programId: ID) {\n user(id: $userId, accountId: $accountId){\n customFields\n locale\n rewardBalanceDetails(programId: $programId) {\n prettyAvailableValue(formatType:UNIT_FORMATTED)\n }\n rewards(limit:1000,offset:0, filter:{programId_eq: $programId}){\n count\n }\n }\n }\n "],["\n query($userId: String!, $accountId: String!, $programId: ID) {\n user(id: $userId, accountId: $accountId){\n customFields\n locale\n rewardBalanceDetails(programId: $programId) {\n prettyAvailableValue(formatType:UNIT_FORMATTED)\n }\n rewards(limit:1000,offset:0, filter:{programId_eq: $programId}){\n count\n }\n }\n }\n "])),variables:a}).then((function(e){return e.data.user}))},getProgramRules:function(){var e=Vn();if(e["env"]==="demo"||!e){var t={id:"demo",name:"Demo Program",rules:{programWindow:"",rewardRules:{rewardRulesType:1,rewardGoal:24,isRecurring:1,defaultCurrency:"CAD"}}};return Promise.resolve(t)}var r=e.programId;var n={programId:r};return this.getClient().query({query:Kn(__makeTemplateObject(["\n query($programId: ID!) {\n program(id:$programId){\n id\n name\n rules\n }\n }\n "],["\n query($programId: ID!) {\n program(id:$programId){\n id\n name\n rules\n }\n }\n "])),variables:n}).then((function(e){return e.data.program}))}},ui:Un})}}}));