altair-static
Version:
Static package for altair graphql client
5 lines (4 loc) • 242 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d2759024-c41e-5594-9d72-a463872e9e45")}catch(e){}}();
import{a as Af,b as kf,c as If}from"./chunk-FWMULOCB.js";import{a as _a}from"./chunk-ANLTCLUB.js";import{Ia as Cf,Ja as rt,d as Jr}from"./chunk-K6UUAPPR.js";import{q as ga,r as Se,v as ba,w as Nf,x as Rf}from"./chunk-ZYOLZTH5.js";import{c as va,m as ma,n as mi,o as ya}from"./chunk-472WPQLO.js";import{e as I,f as L,g as yt,h as zr,i as ye}from"./chunk-B7YGBANW.js";var bi={};yt(bi,{__assign:()=>w,__asyncDelegator:()=>jf,__asyncGenerator:()=>Uf,__asyncValues:()=>Bf,__await:()=>cr,__awaiter:()=>Pe,__classPrivateFieldGet:()=>Gf,__classPrivateFieldSet:()=>Wf,__createBinding:()=>Pf,__decorate:()=>Df,__exportStar:()=>qf,__extends:()=>le,__generator:()=>qe,__importDefault:()=>Kf,__importStar:()=>Qf,__makeTemplateObject:()=>Vf,__metadata:()=>Mf,__param:()=>Ff,__read:()=>wa,__rest:()=>be,__spread:()=>Lf,__spreadArrays:()=>Le,__values:()=>gi});function le(r,t){yi(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function be(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function Df(r,t,e,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,t,e,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(o=(i<3?a(o):i>3?a(t,e,o):a(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o}function Ff(r,t){return function(e,n){t(e,n,r)}}function Mf(r,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,t)}function Pe(r,t,e,n){function i(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(f){try{u(n.next(f))}catch(l){a(l)}}function c(f){try{u(n.throw(f))}catch(l){a(l)}}function u(f){f.done?o(f.value):i(f.value).then(s,c)}u((n=n.apply(r,t||[])).next())})}function qe(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return c([u,f])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1],o=u;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(u);break}o[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(f){u=[6,f],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Pf(r,t,e,n){n===void 0&&(n=e),r[n]=t[e]}function qf(r,t){for(var e in r)e!=="default"&&!t.hasOwnProperty(e)&&(t[e]=r[e])}function gi(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function wa(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o}function Lf(){for(var r=[],t=0;t<arguments.length;t++)r=r.concat(wa(arguments[t]));return r}function Le(){for(var r=0,t=0,e=arguments.length;t<e;t++)r+=arguments[t].length;for(var n=Array(r),i=0,t=0;t<e;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function cr(r){return this instanceof cr?(this.v=r,this):new cr(r)}function Uf(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(h){n[h]&&(i[h]=function(v){return new Promise(function(g,m){o.push([h,v,g,m])>1||s(h,v)})})}function s(h,v){try{c(n[h](v))}catch(g){l(o[0][3],g)}}function c(h){h.value instanceof cr?Promise.resolve(h.value.v).then(u,f):l(o[0][2],h)}function u(h){s("next",h)}function f(h){s("throw",h)}function l(h,v){h(v),o.shift(),o.length&&s(o[0][0],o[0][1])}}function jf(r){var t,e;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=r[i]?function(a){return(e=!e)?{value:cr(r[i](a)),done:i==="return"}:o?o(a):a}:o}}function Bf(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof gi=="function"?gi(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=r[o]&&function(a){return new Promise(function(s,c){a=r[o](a),i(s,c,a.done,a.value)})}}function i(o,a,s,c){Promise.resolve(c).then(function(u){o({value:u,done:s})},a)}}function Vf(r,t){return Object.defineProperty?Object.defineProperty(r,"raw",{value:t}):r.raw=t,r}function Qf(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var e in r)Object.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t.default=r,t}function Kf(r){return r&&r.__esModule?r:{default:r}}function Gf(r,t){if(!t.has(r))throw new TypeError("attempted to get private field on non-instance");return t.get(r)}function Wf(r,t,e){if(!t.has(r))throw new TypeError("attempted to set private field on non-instance");return t.set(r,e),e}var yi,w,Z=I(()=>{"use strict";yi=function(r,t){return yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])},yi(r,t)};w=function(){return w=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},w.apply(this,arguments)}});function j(r,t){if(!r)throw new Y(t)}function wi(r){return function(){if(Zr.indexOf(r)>=Ei)return console[r].apply(console,arguments)}}function Si(r){var t=Zr[Ei];return Ei=Math.max(0,Zr.indexOf(r)),t}var _i,Ea,Yf,Y,Zr,Ei,Wv,ne=I(()=>{"use strict";ya();_i="Invariant Violation",Ea=Object.setPrototypeOf,Yf=Ea===void 0?function(r,t){return r.__proto__=t,r}:Ea,Y=(function(r){ma(t,r);function t(e){e===void 0&&(e=_i);var n=r.call(this,typeof e=="number"?_i+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return n.framesToPop=1,n.name=_i,Yf(n,t.prototype),n}return t})(Error);Zr=["log","warn","error","silent"],Ei=Zr.indexOf("log");(function(r){r.log=wi("log"),r.warn=wi("warn"),r.error=wi("error")})(j||(j={}));Wv=typeof process=="object"&&typeof process.env=="object"?process:{env:{}}});function Ue(r,t){var e=r.directives;return!e||!e.length?!0:Oi(e).every(function(n){var i=n.directive,o=n.ifArgument,a=!1;return o.value.kind==="Variable"?(a=t&&t[o.value.name.value],j(a!==void 0,38)):a=o.value.value,i.name.value==="skip"?!a:a})}function xi(r){var t=[];return Se(r,{Directive:function(e){t.push(e.name.value)}}),t}function nt(r,t){return xi(t).some(function(e){return r.indexOf(e)>-1})}function $r(r){return r&&nt(["client"],r)&&nt(["export"],r)}function Hf(r){var t=r.name.value;return t==="skip"||t==="include"}function Oi(r){var t=[];return r&&r.length&&r.forEach(function(e){if(Hf(e)){var n=e.arguments,i=e.name.value;j(n&&n.length===1,39);var o=n[0];j(o.name&&o.name.value==="if",40);var a=o.value;j(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),41),t.push({directive:e,ifArgument:o})}}),t}var Sa=I(()=>{"use strict";rt();ne()});function Xr(r,t){var e=t,n=[];r.definitions.forEach(function(o){if(o.kind==="OperationDefinition")throw new Y(42);o.kind==="FragmentDefinition"&&n.push(o)}),typeof e>"u"&&(j(n.length===1,43),e=n[0].name.value);var i=w(w({},r),{definitions:Le([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],r.definitions)});return i}function je(r){r===void 0&&(r=[]);var t={};return r.forEach(function(e){t[e.name.value]=e}),t}function Be(r,t){switch(r.kind){case"InlineFragment":return r;case"FragmentSpread":{var e=t&&t[r.name.value];return j(e,44),e}default:return null}}var en=I(()=>{"use strict";Z();ne()});var Oa=L((em,xa)=>{"use strict";xa.exports=function(r,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var e=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(o){return function(a){return function(s,c){var u={key:s,value:a[s]},f={key:c,value:a[c]};return o(u,f)}}})(t.cmp),i=[];return(function o(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var s,c;if(Array.isArray(a)){for(c="[",s=0;s<a.length;s++)s&&(c+=","),c+=o(a[s])||"null";return c+"]"}if(a===null)return"null";if(i.indexOf(a)!==-1){if(e)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(a)-1,f=Object.keys(a).sort(n&&n(a));for(c="",s=0;s<f.length;s++){var l=f[s],h=o(a[l]);h&&(c&&(c+=","),c+=JSON.stringify(l)+":"+h)}return i.splice(u,1),"{"+c+"}"}})(r)}});function xe(r){return{__ref:String(r)}}function $(r){return!!(r&&typeof r=="object"&&typeof r.__ref=="string")}function zf(r){return r.kind==="StringValue"}function Jf(r){return r.kind==="BooleanValue"}function Zf(r){return r.kind==="IntValue"}function $f(r){return r.kind==="FloatValue"}function Xf(r){return r.kind==="Variable"}function el(r){return r.kind==="ObjectValue"}function tl(r){return r.kind==="ListValue"}function rl(r){return r.kind==="EnumValue"}function nl(r){return r.kind==="NullValue"}function Ze(r,t,e,n){if(Zf(e)||$f(e))r[t.value]=Number(e.value);else if(Jf(e)||zf(e))r[t.value]=e.value;else if(el(e)){var i={};e.fields.map(function(a){return Ze(i,a.name,a.value,n)}),r[t.value]=i}else if(Xf(e)){var o=(n||{})[e.name.value];r[t.value]=o}else if(tl(e))r[t.value]=e.values.map(function(a){var s={};return Ze(s,t,a,n),s[t.value]});else if(rl(e))r[t.value]=e.value;else if(nl(e))r[t.value]=null;else throw new Y(53)}function tn(r,t){var e=null;r.directives&&(e={},r.directives.forEach(function(i){e[i.name.value]={},i.arguments&&i.arguments.forEach(function(o){var a=o.name,s=o.value;return Ze(e[i.name.value],a,s,t)})}));var n=null;return r.arguments&&r.arguments.length&&(n={},r.arguments.forEach(function(i){var o=i.name,a=i.value;return Ze(n,o,a,t)})),fr(r.name.value,n,e)}function fr(r,t,e){if(t&&e&&e.connection&&e.connection.key)if(e.connection.filter&&e.connection.filter.length>0){var n=e.connection.filter?e.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=t[s]}),e.connection.key+"("+JSON.stringify(i)+")"}else return e.connection.key;var o=r;if(t){var a=(0,Ta.default)(t);o+="("+a+")"}return e&&Object.keys(e).forEach(function(s){il.indexOf(s)===-1&&(e[s]&&Object.keys(e[s]).length?o+="@"+s+"("+JSON.stringify(e[s])+")":o+="@"+s)}),o}function Mt(r,t){if(r.arguments&&r.arguments.length){var e={};return r.arguments.forEach(function(n){var i=n.name,o=n.value;return Ze(e,i,o,t)}),e}return null}function Te(r){return r.alias?r.alias.value:r.name.value}function gt(r,t,e){if(typeof r.__typename=="string")return r.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(ae(o)){if(o.name.value==="__typename")return r[Te(o)]}else{var a=gt(r,Be(o,e).selectionSet,e);if(typeof a=="string")return a}}}function ae(r){return r.kind==="Field"}function Pt(r){return r.kind==="InlineFragment"}var Ta,il,rn=I(()=>{"use strict";Ta=zr(Oa());ne();en();il=["connection","include","skip","client","rest","export"]});function it(r){j(r&&r.kind==="Document",45);var t=r.definitions.filter(function(e){return e.kind!=="FragmentDefinition"}).map(function(e){if(e.kind!=="OperationDefinition")throw new Y(46);return e});return j(t.length<=1,47),r}function Ce(r){return it(r),r.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function bt(r){return r.definitions.filter(function(t){return t.kind==="OperationDefinition"&&t.name}).map(function(t){return t.name.value})[0]||null}function Ve(r){return r.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function nn(r){var t=Ce(r);return j(t&&t.operation==="query",48),t}function on(r){j(r.kind==="Document",49),j(r.definitions.length<=1,50);var t=r.definitions[0];return j(t.kind==="FragmentDefinition",51),t}function ot(r){it(r);for(var t,e=0,n=r.definitions;e<n.length;e++){var i=n[e];if(i.kind==="OperationDefinition"){var o=i.operation;if(o==="query"||o==="mutation"||o==="subscription")return i}i.kind==="FragmentDefinition"&&!t&&(t=i)}if(t)return t;throw new Y(52)}function at(r){var t=Object.create(null),e=r&&r.variableDefinitions;return e&&e.length&&e.forEach(function(n){n.defaultValue&&Ze(t,n.variable.name,n.defaultValue)}),t}var Ti=I(()=>{"use strict";ne();rn()});function Ai(r,t,e){var n=0;return r.forEach(function(i,o){t.call(this,i,o,r)&&(r[n++]=i)},e),r.length=n,r}var Aa=I(()=>{"use strict"});function Na(r,t){return r.selectionSet.selections.every(function(e){return e.kind==="FragmentSpread"&&Na(t[e.name.value],t)})}function ki(r){return Na(Ce(r)||on(r),je(Ve(r)))?null:r}function ka(r){return function(e){return r.some(function(n){return n.name&&n.name===e.name.value||n.test&&n.test(e)})}}function an(r,t){var e=Object.create(null),n=[],i=Object.create(null),o=[],a=ki(Se(t,{Variable:{enter:function(s,c,u){u.kind!=="VariableDefinition"&&(e[s.name.value]=!0)}},Field:{enter:function(s){if(r&&s.directives){var c=r.some(function(u){return u.remove});if(c&&s.directives&&s.directives.some(ka(r)))return s.arguments&&s.arguments.forEach(function(u){u.value.kind==="Variable"&&n.push({name:u.value.name.value})}),s.selectionSet&&Ra(s.selectionSet).forEach(function(u){o.push({name:u.name.value})}),null}}},FragmentSpread:{enter:function(s){i[s.name.value]=!0}},Directive:{enter:function(s){if(ka(r)(s))return null}}}));return a&&Ai(n,function(s){return!!s.name&&!e[s.name]}).length&&(a=Ii(n,a)),a&&Ai(o,function(s){return!!s.name&&!i[s.name]}).length&&(a=Ni(o,a)),a}function _t(r){return Se(it(r),{SelectionSet:{enter:function(t,e,n){if(!(n&&n.kind==="OperationDefinition")){var i=t.selections;if(i){var o=i.some(function(s){return ae(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!o){var a=n;if(!(ae(a)&&a.directives&&a.directives.some(function(s){return s.name.value==="export"})))return w(w({},t),{selections:Le(i,[Ia])})}}}}}})}function sn(r){return an([ol],it(r))}function al(r){return function(e){return r.some(function(n){return e.value&&e.value.kind==="Variable"&&e.value.name&&(n.name===e.value.name.value||n.test&&n.test(e))})}}function Ii(r,t){var e=al(r);return ki(Se(t,{OperationDefinition:{enter:function(n){return w(w({},n),{variableDefinitions:n.variableDefinitions?n.variableDefinitions.filter(function(i){return!r.some(function(o){return o.name===i.variable.name.value})}):[]})}},Field:{enter:function(n){var i=r.some(function(a){return a.remove});if(i){var o=0;if(n.arguments&&n.arguments.forEach(function(a){e(a)&&(o+=1)}),o===1)return null}}},Argument:{enter:function(n){if(e(n))return null}}}))}function Ni(r,t){function e(n){if(r.some(function(i){return i.name===n.name.value}))return null}return ki(Se(t,{FragmentSpread:{enter:e},FragmentDefinition:{enter:e}}))}function Ra(r){var t=[];return r.selections.forEach(function(e){(ae(e)||Pt(e))&&e.selectionSet?Ra(e.selectionSet).forEach(function(n){return t.push(n)}):e.kind==="FragmentSpread"&&t.push(e)}),t}function un(r){var t=ot(r),e=t.operation;if(e==="query")return r;var n=Se(r,{OperationDefinition:{enter:function(i){return w(w({},i),{operation:"query"})}}});return n}function cn(r){it(r);var t=an([{test:function(e){return e.name.value==="client"},remove:!0}],r);return t&&(t=Se(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet){var n=e.selectionSet.selections.every(function(i){return ae(i)&&i.name.value==="__typename"});if(n)return null}}}})),t}var Ia,ol,Ca=I(()=>{"use strict";Z();rt();ne();Ti();Aa();rn();en();Ia={kind:"Field",name:{kind:"Name",value:"__typename"}};_t.added=function(r){return r===Ia};ol={test:function(r){var t=r.name.value==="connection";return t&&(!r.arguments||r.arguments.some(function(e){return e.name.value==="key"})),t}}});function wt(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return qt(r)}function qt(r){var t=r[0]||{},e=r.length;if(e>1)for(var n=new Lt,i=1;i<e;++i)t=n.merge(t,r[i]);return t}function fn(r){return r!==null&&typeof r=="object"}var sl,ul,Lt,Ri=I(()=>{"use strict";Z();sl=Object.prototype.hasOwnProperty;ul=function(r,t,e){return this.merge(r[e],t[e])},Lt=(function(){function r(t){t===void 0&&(t=ul),this.reconciler=t,this.isObject=fn,this.pastCopies=new Set}return r.prototype.merge=function(t,e){for(var n=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return fn(e)&&fn(t)?(Object.keys(e).forEach(function(a){if(sl.call(t,a)){var s=t[a];if(e[a]!==s){var c=n.reconciler.apply(n,Le([t,e,a],i));c!==s&&(t=n.shallowCopyForMerge(t),t[a]=c)}}else t=n.shallowCopyForMerge(t),t[a]=e[a]}),t):e},r.prototype.shallowCopyForMerge=function(t){return fn(t)&&!this.pastCopies.has(t)&&(Array.isArray(t)?t=t.slice(0):t=w({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t)),t},r})()});function Da(r){return r===void 0&&(r=!1),{keyArgs:r,merge:function(t,e){return t?Le(t,e):e}}}function Fa(r){return r===void 0&&(r=!1),{keyArgs:r,merge:function(t,e,n){var i=n.args,o=t?t.slice(0):[];if(i)for(var a=i.offset,s=a===void 0?0:a,c=0;c<e.length;++c)o[s+c]=e[c];else o.push.apply(o,e);return o}}}function Ma(r){return r===void 0&&(r=!1),{keyArgs:r,read:function(t,e){var n=e.canRead,i=e.readField;if(t){var o=[],a="",s="";return t.edges.forEach(function(c){n(i("node",c))&&(o.push(c),c.cursor&&(a=a||c.cursor,s=c.cursor))}),w(w({},Ci(t)),{edges:o,pageInfo:w(w({},t.pageInfo),{startCursor:a,endCursor:s})})}},merge:function(t,e,n){t===void 0&&(t=fl());var i=n.args,o=n.isReference,a=n.readField,s=e.edges?e.edges.map(function(E){return o(E=w({},E))&&(E.cursor=a("cursor",E)),E}):[];if(e.pageInfo){var c=e.pageInfo,u=c.startCursor,f=c.endCursor,l=s[0],h=s[s.length-1];l&&u&&(l.cursor=u),h&&f&&(h.cursor=f);var v=l&&l.cursor;v&&!u&&(e=wt(e,{pageInfo:{startCursor:v}}));var g=h&&h.cursor;g&&!f&&(e=wt(e,{pageInfo:{endCursor:g}}))}var m=t.edges,_=[];if(i&&i.after){var k=m.findIndex(function(E){return E.cursor===i.after});k>=0&&(m=m.slice(0,k+1))}else if(i&&i.before){var k=m.findIndex(function(U){return U.cursor===i.before});_=k<0?m:m.slice(k),m=[]}else e.edges&&(m=[]);var T=Le(m,s,_),N=w(w({},e.pageInfo),t.pageInfo);if(e.pageInfo){var R=e.pageInfo,C=R.hasPreviousPage,M=R.hasNextPage,u=R.startCursor,f=R.endCursor,F=be(R,["hasPreviousPage","hasNextPage","startCursor","endCursor"]);Object.assign(N,F),m.length||(C!==void 0&&(N.hasPreviousPage=C),u!==void 0&&(N.startCursor=u)),_.length||(M!==void 0&&(N.hasNextPage=M),f!==void 0&&(N.endCursor=f))}return w(w(w({},Ci(t)),Ci(e)),{edges:T,pageInfo:N})}}}function fl(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}}var Ci,cl,Pa=I(()=>{"use strict";Z();Z();Ri();Ci=function(r){return be(r,cl)},cl=["edges","pageInfo"]});var Ba=L(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.Observable=void 0;function Pi(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function qi(r,t,e){return t&&qa(r.prototype,t),e&&qa(r,e),r}var Li=function(){return typeof Symbol=="function"},Ui=function(r){return Li()&&!!Symbol[r]},ji=function(r){return Ui(r)?Symbol[r]:"@@"+r};Li()&&!Ui("observable")&&(Symbol.observable=Symbol("observable"));var ll=ji("iterator"),Fi=ji("observable"),La=ji("species");function hn(r,t){var e=r[t];if(e!=null){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}}function lr(r){var t=r.constructor;return t!==void 0&&(t=t[La],t===null&&(t=void 0)),t!==void 0?t:pn}function hl(r){return r instanceof pn}function Ut(r){Ut.log?Ut.log(r):setTimeout(function(){throw r})}function ln(r){Promise.resolve().then(function(){try{r()}catch(t){Ut(t)}})}function Ua(r){var t=r._cleanup;if(t!==void 0&&(r._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var e=hn(t,"unsubscribe");e&&e.call(t)}}catch(n){Ut(n)}}function Mi(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function pl(r){var t=r._queue;if(t){r._queue=void 0,r._state="ready";for(var e=0;e<t.length&&(ja(r,t[e].type,t[e].value),r._state!=="closed");++e);}}function ja(r,t,e){r._state="running";var n=r._observer;try{var i=hn(n,t);switch(t){case"next":i&&i.call(n,e);break;case"error":if(Mi(r),i)i.call(n,e);else throw e;break;case"complete":Mi(r),i&&i.call(n);break}}catch(o){Ut(o)}r._state==="closed"?Ua(r):r._state==="running"&&(r._state="ready")}function Di(r,t,e){if(r._state!=="closed"){if(r._state==="buffering"){r._queue.push({type:t,value:e});return}if(r._state!=="ready"){r._state="buffering",r._queue=[{type:t,value:e}],ln(function(){return pl(r)});return}ja(r,t,e)}}var dl=(function(){function r(t,e){Pi(this,r),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var n=new vl(this);try{this._cleanup=e.call(void 0,n)}catch(i){n.error(i)}this._state==="initializing"&&(this._state="ready")}return qi(r,[{key:"unsubscribe",value:function(){this._state!=="closed"&&(Mi(this),Ua(this))}},{key:"closed",get:function(){return this._state==="closed"}}]),r})(),vl=(function(){function r(t){Pi(this,r),this._subscription=t}return qi(r,[{key:"next",value:function(e){Di(this._subscription,"next",e)}},{key:"error",value:function(e){Di(this._subscription,"error",e)}},{key:"complete",value:function(){Di(this._subscription,"complete")}},{key:"closed",get:function(){return this._subscription._state==="closed"}}]),r})(),pn=(function(){function r(t){if(Pi(this,r),!(this instanceof r))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}return qi(r,[{key:"subscribe",value:function(e){return(typeof e!="object"||e===null)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new dl(e,this._subscriber)}},{key:"forEach",value:function(e){var n=this;return new Promise(function(i,o){if(typeof e!="function"){o(new TypeError(e+" is not a function"));return}function a(){s.unsubscribe(),i()}var s=n.subscribe({next:function(c){try{e(c,a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i})})}},{key:"map",value:function(e){var n=this;if(typeof e!="function")throw new TypeError(e+" is not a function");var i=lr(this);return new i(function(o){return n.subscribe({next:function(a){try{a=e(a)}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})}},{key:"filter",value:function(e){var n=this;if(typeof e!="function")throw new TypeError(e+" is not a function");var i=lr(this);return new i(function(o){return n.subscribe({next:function(a){try{if(!e(a))return}catch(s){return o.error(s)}o.next(a)},error:function(a){o.error(a)},complete:function(){o.complete()}})})}},{key:"reduce",value:function(e){var n=this;if(typeof e!="function")throw new TypeError(e+" is not a function");var i=lr(this),o=arguments.length>1,a=!1,s=arguments[1],c=s;return new i(function(u){return n.subscribe({next:function(f){var l=!a;if(a=!0,!l||o)try{c=e(c,f)}catch(h){return u.error(h)}else c=f},error:function(f){u.error(f)},complete:function(){if(!a&&!o)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(c),u.complete()}})})}},{key:"concat",value:function(){for(var e=this,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=lr(this);return new a(function(s){var c,u=0;function f(l){c=l.subscribe({next:function(h){s.next(h)},error:function(h){s.error(h)},complete:function(){u===i.length?(c=void 0,s.complete()):f(a.from(i[u++]))}})}return f(e),function(){c&&(c.unsubscribe(),c=void 0)}})}},{key:"flatMap",value:function(e){var n=this;if(typeof e!="function")throw new TypeError(e+" is not a function");var i=lr(this);return new i(function(o){var a=[],s=n.subscribe({next:function(u){if(e)try{u=e(u)}catch(l){return o.error(l)}var f=i.from(u).subscribe({next:function(l){o.next(l)},error:function(l){o.error(l)},complete:function(){var l=a.indexOf(f);l>=0&&a.splice(l,1),c()}});a.push(f)},error:function(u){o.error(u)},complete:function(){c()}});function c(){s.closed&&a.length===0&&o.complete()}return function(){a.forEach(function(u){return u.unsubscribe()}),s.unsubscribe()}})}},{key:Fi,value:function(){return this}}],[{key:"from",value:function(e){var n=typeof this=="function"?this:r;if(e==null)throw new TypeError(e+" is not an object");var i=hn(e,Fi);if(i){var o=i.call(e);if(Object(o)!==o)throw new TypeError(o+" is not an object");return hl(o)&&o.constructor===n?o:new n(function(a){return o.subscribe(a)})}if(Ui("iterator")&&(i=hn(e,ll),i))return new n(function(a){ln(function(){if(!a.closed){var s=!0,c=!1,u=void 0;try{for(var f=i.call(e)[Symbol.iterator](),l;!(s=(l=f.next()).done);s=!0){var h=l.value;if(a.next(h),a.closed)return}}catch(v){c=!0,u=v}finally{try{!s&&f.return!=null&&f.return()}finally{if(c)throw u}}a.complete()}})});if(Array.isArray(e))return new n(function(a){ln(function(){if(!a.closed){for(var s=0;s<e.length;++s)if(a.next(e[s]),a.closed)return;a.complete()}})});throw new TypeError(e+" is not observable")}},{key:"of",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=typeof this=="function"?this:r;return new o(function(a){ln(function(){if(!a.closed){for(var s=0;s<n.length;++s)if(a.next(n[s]),a.closed)return;a.complete()}})})}},{key:La,get:function(){return this}}]),r})();dn.Observable=pn;Li()&&Object.defineProperty(pn,Symbol("extensions"),{value:{symbol:Fi,hostReportError:Ut},configurable:!0})});var Qa=L((xm,Va)=>{"use strict";Va.exports=Ba().Observable});function Bi(r){var t,e=r.Symbol;if(typeof e=="function")if(e.observable)t=e.observable;else{typeof e.for=="function"?t=e.for("https://github.com/benlesh/symbol-observable"):t=e("https://github.com/benlesh/symbol-observable");try{e.observable=t}catch{}}else t="@@observable";return t}var Ka=I(()=>{"use strict"});var jt,Am,Ga=I(()=>{"use strict";Ka();typeof self<"u"?jt=self:typeof window<"u"?jt=window:typeof global<"u"?jt=global:typeof module<"u"?jt=module:jt=Function("return this")();Am=Bi(jt)});var B,Wa,Ya,hr=I(()=>{"use strict";B=zr(Qa());Ga();Wa=B.default.prototype,Ya="@@observable";Wa[Ya]||(Wa[Ya]=function(){return this})});function Qi(r){return Vi(r)}function Vi(r,t){switch(ml.call(r)){case"[object Array]":{if(t=t||new Map,t.has(r))return t.get(r);var e=r.slice(0);return t.set(r,e),e.forEach(function(i,o){e[o]=Vi(i,t)}),e}case"[object Object]":{if(t=t||new Map,t.has(r))return t.get(r);var n=Object.create(Object.getPrototypeOf(r));return t.set(r,n),Object.keys(r).forEach(function(i){n[i]=Vi(r[i],t)}),n}default:return r}}var ml,Ha=I(()=>{"use strict";ml=Object.prototype.toString});function za(r){return r}var Ja=I(()=>{"use strict"});function st(r,t,e){var n=[];r.forEach(function(i){return i[t]&&n.push(i)}),n.forEach(function(i){return i[t](e)})}var Ki=I(()=>{"use strict"});function vn(r,t,e){return new B.default(function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1,u={then:function(v){return new Promise(function(g){return g(v())})}};function f(v,g){return v?function(m){++s;var _=function(){return v(m)};u=u.then(_,_).then(function(k){--s,i&&i.call(n,k),c&&l.complete()},function(k){throw--s,k}).catch(function(k){o&&o.call(n,k)})}:function(m){return g&&g.call(n,m)}}var l={next:f(t,i),error:f(e,o),complete:function(){c=!0,s||a&&a.call(n)}},h=r.subscribe(l);return function(){return h.unsubscribe()}})}var Za=I(()=>{"use strict";hr()});function pr(r){function t(e){Object.defineProperty(r,e,{value:B.default})}return typeof Symbol=="function"&&Symbol.species&&t(Symbol.species),t("@@species"),r}var Gi=I(()=>{"use strict";hr()});function $a(r){return r&&typeof r.then=="function"}var Et,Xa=I(()=>{"use strict";Z();hr();Ki();Gi();Et=(function(r){le(t,r);function t(e){var n=r.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise(function(i,o){n.resolve=i,n.reject=o}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],st(n.observers,"next",i))},error:function(i){var o=n.sub;o!==null&&(o&&Promise.resolve().then(function(){return o.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),st(n.observers,"error",i))},complete:function(){if(n.sub!==null){var i=n.sources.shift();i?$a(i)?i.then(function(o){return n.sub=o.subscribe(n.handlers)}):n.sub=i.subscribe(n.handlers):(n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),st(n.observers,"complete"))}}},n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.complete()},n.promise.catch(function(i){}),typeof e=="function"&&(e=[new B.default(e)]),$a(e)?e.then(function(i){return n.start(i)},n.handlers.error):n.start(e),n}return t.prototype.start=function(e){this.sub===void 0&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var n=this.latest[0],i=e[n];i&&i.call(e,this.latest[1]),this.sub===null&&n==="next"&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,n){this.observers.delete(e)&&--this.addCount<1&&!n&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var n=this,i=!1,o=function(){i||(i=!0,n.observers.delete(a),e())},a={next:o,error:o,complete:o},s=this.addCount;this.addObserver(a),this.addCount=s},t})(B.default);pr(Et)});function Qe(r){return Array.isArray(r)&&r.length>0}var es=I(()=>{"use strict"});function St(r){return r.errors&&r.errors.length>0||!1}var ts=I(()=>{"use strict"});var Ke,rs=I(()=>{"use strict";Ke=typeof WeakMap=="function"&&!(typeof navigator=="object"&&navigator.product==="ReactNative")});function dr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=Object.create(null);return r.forEach(function(n){n&&Object.keys(n).forEach(function(i){var o=n[i];o!==void 0&&(e[i]=o)})}),e}var ns=I(()=>{"use strict"});var Wi={};yt(Wi,{Concast:()=>Et,DeepMerger:()=>Lt,Observable:()=>B.default,addTypenameToDocument:()=>_t,argumentsObjectFromField:()=>Mt,asyncMap:()=>vn,buildQueryFromSelectionSet:()=>un,canUseWeakMap:()=>Ke,checkDocument:()=>it,cloneDeep:()=>Qi,compact:()=>dr,concatPagination:()=>Da,createFragmentMap:()=>je,fixObservableSubclass:()=>pr,getDefaultValues:()=>at,getDirectiveNames:()=>xi,getFragmentDefinition:()=>on,getFragmentDefinitions:()=>Ve,getFragmentFromSelection:()=>Be,getFragmentQueryDocument:()=>Xr,getInclusionDirectives:()=>Oi,getMainDefinition:()=>ot,getOperationDefinition:()=>Ce,getOperationName:()=>bt,getQueryDefinition:()=>nn,getStoreKeyName:()=>fr,getTypenameFromResult:()=>gt,graphQLResultHasError:()=>St,hasClientExports:()=>$r,hasDirectives:()=>nt,isField:()=>ae,isInlineFragment:()=>Pt,isNonEmptyArray:()=>Qe,isReference:()=>$,iterateObserversSafely:()=>st,makeReference:()=>xe,maybeDeepFreeze:()=>za,mergeDeep:()=>wt,mergeDeepArray:()=>qt,offsetLimitPagination:()=>Fa,relayStylePagination:()=>Ma,removeArgumentsFromDocument:()=>Ii,removeClientSetsFromDocument:()=>cn,removeConnectionDirectiveFromDocument:()=>sn,removeDirectivesFromDocument:()=>an,removeFragmentSpreadFromDocument:()=>Ni,resultKeyNameFromField:()=>Te,shouldInclude:()=>Ue,storeKeyNameFromField:()=>tn,valueToObjectRepresentation:()=>Ze});var ee=I(()=>{"use strict";Sa();en();Ti();rn();Ca();Pa();hr();Ri();Ha();Ja();Ki();Za();Xa();Gi();es();ts();rs();ns()});function Bt(r){return new B.default(function(t){t.error(r)})}var is=I(()=>{"use strict";ee()});function Yi(r){var t=!1;return new Promise(function(e,n){r.subscribe({next:function(i){t||(t=!0,e(i))},error:n})})}var os=I(()=>{"use strict";ne()});function Hi(r){return new B.default(function(t){r.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var as=I(()=>{"use strict";ee()});var Vt,ss=I(()=>{"use strict";Vt=function(r,t,e){var n=new Error(e);throw n.name="ServerError",n.response=r,n.statusCode=r.status,n.result=t,n}});function zi(r){for(var t=["query","operationName","variables","extensions","context"],e=0,n=Object.keys(r);e<n.length;e++){var i=n[e];if(t.indexOf(i)<0)throw new Y(26)}return r}var us=I(()=>{"use strict";ne()});function Ji(r,t){var e=w({},r),n=function(o){typeof o=="function"?e=w(w({},e),o(e)):e=w(w({},e),o)},i=function(){return w({},e)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:n}),Object.defineProperty(t,"getContext",{enumerable:!1,value:i}),t}var cs=I(()=>{"use strict";Z()});function Zi(r){var t={variables:r.variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query};return t.operationName||(t.operationName=typeof t.query!="string"?bt(t.query)||void 0:""),t}var fs=I(()=>{"use strict";ee()});var vr=I(()=>{"use strict";is();os();as();ss();us();cs();fs()});function ls(r,t){return t?t(r):B.default.of()}function mr(r){return typeof r=="function"?new te(r):r}function mn(r){return r.request.length<=1}var Ly,te,xt=I(()=>{"use strict";Z();ne();ee();vr();Ly=(function(r){le(t,r);function t(e,n){var i=r.call(this,e)||this;return i.link=n,i}return t})(Error),te=(function(){function r(t){t&&(this.request=t)}return r.empty=function(){return new r(function(){return B.default.of()})},r.from=function(t){return t.length===0?r.empty():t.map(mr).reduce(function(e,n){return e.concat(n)})},r.split=function(t,e,n){var i=mr(e),o=mr(n||new r(ls));return mn(i)&&mn(o)?new r(function(a){return t(a)?i.request(a)||B.default.of():o.request(a)||B.default.of()}):new r(function(a,s){return t(a)?i.request(a,s)||B.default.of():o.request(a,s)||B.default.of()})},r.execute=function(t,e){return t.request(Ji(e.context,Zi(zi(e))))||B.default.of()},r.concat=function(t,e){var n=mr(t);if(mn(n))return n;var i=mr(e);return mn(i)?new r(function(o){return n.request(o,function(a){return i.request(a)||B.default.of()})||B.default.of()}):new r(function(o,a){return n.request(o,function(s){return i.request(s,a)||B.default.of()})||B.default.of()})},r.prototype.split=function(t,e,n){return this.concat(r.split(t,e,n||new r(ls)))},r.prototype.concat=function(t){return r.concat(this,t)},r.prototype.request=function(t,e){throw new Y(21)},r.prototype.onError=function(t,e){if(e&&e.error)return e.error(t),!1;throw t},r.prototype.setOnError=function(t){return this.onError=t,this},r})()});var hs,ps=I(()=>{"use strict";xt();hs=te.empty});var ds,vs=I(()=>{"use strict";xt();ds=te.from});var ms,ys=I(()=>{"use strict";xt();ms=te.split});var gs,bs=I(()=>{"use strict";xt();gs=te.concat});var Ot,_s=I(()=>{"use strict";xt();Ot=te.execute});var ws=I(()=>{"use strict"});var Tt=I(()=>{"use strict";ps();vs();ys();bs();_s();xt();ws()});var Es,Ss=I(()=>{"use strict";Es="3.3.20"});function yr(r){return function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}).then(function(e){return t.status>=300&&Vt(t,e,"Response not successful: Received status code "+t.status),!Array.isArray(e)&&!xs.call(e,"data")&&!xs.call(e,"errors")&&Vt(t,e,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(n){return n.operationName}):r.operationName)+"'."),e})}}var xs,$i=I(()=>{"use strict";vr();xs=Object.prototype.hasOwnProperty});var ut,yn=I(()=>{"use strict";ne();ut=function(r,t){var e;try{e=JSON.stringify(r)}catch(i){var n=new Y(23);throw n.parseError=i,n}return e}});var yl,gl,bl,gr,br,Xi=I(()=>{"use strict";Z();rt();yl={includeQuery:!0,includeExtensions:!1},gl={accept:"*/*","content-type":"application/json"},bl={method:"POST"},gr={http:yl,headers:gl,options:bl},br=function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=w(w({},t.options),{headers:t.headers,credentials:t.credentials}),o=t.http||{};e.forEach(function(l){i=w(w(w({},i),l.options),{headers:w(w({},i.headers),l.headers)}),l.credentials&&(i.credentials=l.credentials),o=w(w({},o),l.http)});var a=r.operationName,s=r.extensions,c=r.variables,u=r.query,f={operationName:a,variables:c};return o.includeExtensions&&(f.extensions=s),o.includeQuery&&(f.query=ba(u)),{options:i,body:f}}});var _r,eo=I(()=>{"use strict";ne();_r=function(r){if(!r&&typeof fetch>"u")throw new Y(22)}});var wr,to=I(()=>{"use strict";wr=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var r=new AbortController,t=r.signal;return{controller:r,signal:t}}});var Er,ro=I(()=>{"use strict";Er=function(r,t){var e=r.getContext(),n=e.uri;return n||(typeof t=="function"?t(r):t||"/graphql")}});function Sr(r,t){var e=[],n=function(l,h){e.push(l+"="+encodeURIComponent(h))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=ut(t.variables,"Variables map")}catch(l){return{parseError:l}}n("variables",i)}if(t.extensions){var o=void 0;try{o=ut(t.extensions,"Extensions map")}catch(l){return{parseError:l}}n("extensions",o)}var a="",s=r,c=r.indexOf("#");c!==-1&&(a=r.substr(c),s=r.substr(0,c));var u=s.indexOf("?")===-1?"?":"&",f=s+u+e.join("&")+a;return{newURI:f}}var no=I(()=>{"use strict";yn()});var xr,io=I(()=>{"use strict";Z();rt();Tt();ee();yn();ro();$i();eo();Xi();to();no();vr();xr=function(r){r===void 0&&(r={});var t=r.uri,e=t===void 0?"/graphql":t,n=r.fetch,i=r.includeExtensions,o=r.useGETForQueries,a=r.includeUnusedVariables,s=a===void 0?!1:a,c=be(r,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);_r(n),n||(n=fetch);var u={http:{includeExtensions:i},options:c.fetchOptions,credentials:c.credentials,headers:c.headers};return new te(function(f){var l=Er(f,e),h=f.getContext(),v={};if(h.clientAwareness){var g=h.clientAwareness,m=g.name,_=g.version;m&&(v["apollographql-client-name"]=m),_&&(v["apollographql-client-version"]=_)}var k=w(w({},v),h.headers),T={http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:k},N=br(f,gr,u,T),R=N.options,C=N.body;if(C.variables&&!s){var M=new Set(Object.keys(C.variables));Se(f.query,{Variable:function(A,x,D){D&&D.kind!=="VariableDefinition"&&M.delete(A.name.value)}}),M.size&&(C.variables=w({},C.variables),M.forEach(function(A){delete C.variables[A]}))}var F;if(!R.signal){var E=wr(),U=E.controller,G=E.signal;F=U,F&&(R.signal=G)}var p=function(A){return A.kind==="OperationDefinition"&&A.operation==="mutation"};if(o&&!f.query.definitions.some(p)&&(R.method="GET"),R.method==="GET"){var d=Sr(l,C),y=d.newURI,O=d.parseError;if(O)return Bt(O);l=y}else try{R.body=ut(C,"Payload")}catch(A){return Bt(A)}return new B.default(function(A){return n(l,R).then(function(x){return f.setContext({response:x}),x}).then(yr(f)).then(function(x){return A.next(x),A.complete(),x}).catch(function(x){x.name!=="AbortError"&&(x.result&&x.result.errors&&x.result.data&&A.next(x.result),A.error(x))}),function(){F&&F.abort()}})})}});var Or,Os=I(()=>{"use strict";Z();Tt();io();Or=(function(r){le(t,r);function t(e){e===void 0&&(e={});var n=r.call(this,xr(e).request)||this;return n.options=e,n}return t})(te)});var Ts={};yt(Ts,{HttpLink:()=>Or,checkFetcher:()=>_r,createHttpLink:()=>xr,createSignalIfSupported:()=>wr,fallbackHttpConfig:()=>gr,parseAndCheckHttpResponse:()=>yr,rewriteURIForGET:()=>Sr,selectHttpOptionsAndBody:()=>br,selectURI:()=>Er,serializeFetchParameter:()=>ut});var gn=I(()=>{"use strict";$i();yn();Xi();eo();to();ro();io();Os();no()});function _e(r,t){try{return ao(r,t)}finally{oo.clear()}}function ao(r,t){if(r===t)return!0;var e=As.call(r),n=As.call(t);if(e!==n)return!1;switch(e){case"[object Array]":if(r.length!==t.length)return!1;case"[object Object]":{if(Ns(r,t))return!0;var i=Is(r),o=Is(t),a=i.length;if(a!==o.length)return!1;for(var s=0;s<a;++s)if(!_l.call(t,i[s]))return!1;for(var s=0;s<a;++s){var c=i[s];if(!ao(r[c],t[c]))return!1}return!0}case"[object Error]":return r.name===t.name&&r.message===t.message;case"[object Number]":if(r!==r)return t!==t;case"[object Boolean]":case"[object Date]":return+r==+t;case"[object RegExp]":case"[object String]":return r==""+t;case"[object Map]":case"[object Set]":{if(r.size!==t.size)return!1;if(Ns(r,t))return!0;for(var u=r.entries(),f=e==="[object Map]";;){var l=u.next();if(l.done)break;var h=l.value,v=h[0],g=h[1];if(!t.has(v)||f&&!ao(g,t.get(v)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":r=new Uint8Array(r),t=new Uint8Array(t);case"[object DataView]":{var m=r.byteLength;if(m===t.byteLength)for(;m--&&r[m]===t[m];);return m===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var _=ks.call(r);return _!==ks.call(t)?!1:!Sl(_,El)}}return!1}function Is(r){return Object.keys(r).filter(wl,r)}function wl(r){return this[r]!==void 0}function Sl(r,t){var e=r.length-t.length;return e>=0&&r.indexOf(t,e)===e}function Ns(r,t){var e=oo.get(r);if(e){if(e.has(t))return!0}else oo.set(r,e=new Set);return e.add(t),!1}var Rs,As,_l,ks,oo,El,Qt=I(()=>{"use strict";Rs=Object.prototype,As=Rs.toString,_l=Rs.hasOwnProperty,ks=Function.prototype.toString,oo=new Map;El="{ [native code] }"});function bn(r){return r.hasOwnProperty("graphQLErrors")}var xl,$e,so=I(()=>{"use strict";Z();ee();xl=function(r){var t="";return Qe(r.graphQLErrors)&&r.graphQLErrors.forEach(function(e){var n=e?e.message:"Error message not found.";t+=n+`
`}),r.networkError&&(t+=r.networkError.message+`
`),t=t.replace(/\n$/,""),t},$e=(function(r){le(t,r);function t(e){var n=e.graphQLErrors,i=e.networkError,o=e.errorMessage,a=e.extraInfo,s=r.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||xl(s),s.extraInfo=a,s.__proto__=t.prototype,s}return t})(Error)});function ct(r){return r?r<7:!1}var X,Kt=I(()=>{"use strict";X=(function(r){return r[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r})(X||{})});var Cs,Ds=I(()=>{"use strict";Kt();ee();ne();Cs=(function(){function r(t,e,n,i){this.observer=t,this.options=e,this.fetch=n,this.shouldFetch=i}return r.prototype.reobserve=function(t,e){t?this.updateOptions(t):this.updatePolling();var n=this.fetch(this.options,e);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},r.prototype.updateOptions=function(t){return Object.assign(this.options,dr(t)),this.updatePolling(),this},r.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},r.prototype.updatePolling=function(){var t=this,e=this,n=e.pollingInfo,i=e.options.pollInterval;if(!i){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!(n&&n.interval===i)&&(j(i,20),this.shouldFetch!==!1)){var o=n||(this.pollingInfo={});o.interval=i;var a=function(){t.pollingInfo&&(t.shouldFetch&&t.shouldFetch()?t.reobserve({fetchPolicy:"network-only",nextFetchPolicy:t.options.fetchPolicy||"cache-first"},X.poll).then(s,s):s())},s=function(){var c=t.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(a,c.interval))};s()}},r})()});function Ol(r){}var Tr,uo=I(()=>{"use strict";Z();ne();Qt();Kt();ee();Ds();Tr=(function(r){le(t,r);function t(e){var n=e.queryManager,i=e.queryInfo,o=e.options,a=r.call(this,function(c){return a.onSubscribe(c)})||this;a.observers=new Set,a.subscriptions=new Set,a.observer={next:function(c){(a.lastError||a.isDifferentFromLastResult(c))&&(a.updateLastResult(c),st(a.observers,"next",c))},error:function(c){a.updateLastResult(w(w({},a.lastResult),{error:c,errors:c.graphQLErrors,networkStatus:X.error,loading:!1})),st(a.observers,"error",a.lastError=c)}},a.isTornDown=!1,a.options=o,a.queryId=n.generateQueryId();var s=Ce(o.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a.queryInfo=i,a}return Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(n,i){var o={next:function(s){n(s),e.observers.delete(o),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=e.subscribe(o)})},t.prototype.getCurrentResult=function(e){e===void 0&&(e=!0);var n=this.lastResult,i=this.queryInfo.networkStatus||n&&n.networkStatus||X.ready,o=w(w({},n),{loading:ct(i),networkStatus:i});if(this.isTornDown)return o;var a=this.options.fetchPolicy,s=a===void 0?"cache-first":a;if(s==="no-cache"||s==="network-only")delete o.partial;else if(!o.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var c=this.queryInfo.getDiff();o.data=c.complete||this.options.returnPartialData?c.result:void 0,c.complete?(o.networkStatus===X.loading&&(s==="cache-first"||s==="cache-only")&&(o.networkStatus=X.ready,o.loading=!1),delete o.partial):o.partial=!0}return e&&this.updateLastResult(o),o},t.prototype.isDifferentFromLastResult=function(e){return!_e(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var n={pollInterval:0},i=this.options.fetchPolicy;return i!=="no-cache"&&i!=="cache-and-network"&&(n.fetchPolicy="network-only",n.nextFetchPolicy=i||"cache-first"),e&&!_e(this.options.variables,e)&&(n.variables=this.options.variables=w(w({},this.options.variables),e)),this.newReobserver(!1).reobserve(n,X.refetch)},t.prototype.fetchMore=function(e){var n=this,i=w(w({},e.query?e:w(w(w({},this.options),e),{variables:w(w({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),o=this.queryManager.generateQueryId();return i.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=X.fetchMore,this.observe()),this.queryManager.fetchQuery(o,i,X.fetchMore).then(function(a){var s=a.data,c=e.updateQuery;return c?n.updateQuery(function(u){return c(u,{fetchMoreResult:s,variables:i.variables})}):n.queryManager.cache.writeQuery({query:i.query,variables:i.variables,data:s}),a}).finally(function(){n.queryManager.stopQuery(o),n.reobserve()})},t.prototype.subscribeToMore=function(e){var n=this,i=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(o){var a=e.updateQuery;a&&n.updateQuery(function(s,c){var u=c.variables;return a(s,{subscriptionData:o,variables:u})})},error:function(o){if(e.onError){e.onError(o);return}}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if(_e(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var n=this.options.fetchPolicy,i=n===void 0?"cache-first":n,o={fetchPolicy:i,variables:e};return i!=="cache-first"&&i!=="no-cache"&&i!=="network-only"&&(o.fetchPolicy="cache-and-network",o.nextFetchPolicy=i),this.reobserve(o,X.setVariables)},t.prototype.updateQuery=function(e){var n,i=this.queryManager,o=i.cache.diff({query:this.options.query,variables:this.variables,previousResult:(n=this.lastResult)===null||n===void 0?void 0:n.data,returnPartialData:!0,optimistic:!1}).result,a=e(o,{variables:this.variables});a&&(i.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),i.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var n=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Qi(e),Qe(e.errors)||delete this.lastError,n},t.prototype.onSubscribe=function(e){var n=this;if(e===this.observer)return function(){};try{var i=e._subscription._observer;i&&!i.error&&(i.error=Ol)}catch{}var o=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),o&&this.reobserve().catch(function(a){}),function(){n.observers.delete(e)&&!n.observ