1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[4],{"/jXB":function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=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"})},"1t6R":function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u}));let n=null;const i={};let o=1;function a(e){try{return e()}catch(t){}}const s="@wry/context:Slot",c=a((()=>globalThis))||a((()=>e))||Object.create(null),u=c[s]||Array[s]||function(e){try{Object.defineProperty(c,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}})}).call(this,r("ntbh"))},"2iZN":function(e,t,r){var n=r("T0f4"),i=r("qhzo"),o=r("YbRg"),a=r("q722");function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},"56Qq":function(e,t,r){"use strict";r.d(t,"h",(function(){return s})),r.d(t,"g",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"k",(function(){return l})),r.d(t,"j",(function(){return f})),r.d(t,"b",(function(){return h})),r.d(t,"a",(function(){return y})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return b})),r.d(t,"e",(function(){return m})),r.d(t,"f",(function(){return g}));var n=r("j2l1"),i=r("RiOv"),o=r("CuOm"),a=r("66KP");function s(e){return{__ref:String(e)}}function c(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function u(e){return Object(i.a)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return l(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(i||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return l(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw Object(n.d)(96,t.value,r.kind);e[t.value]=null}}function f(e,t){var r=null;e.directives&&(r={}
1,e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)}))),h(e.name.value,n,r)}var p=["connection","include","skip","client","rest","export","nonreactive"],d=a.a,h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(d(i),")")}return r.connection.key}var o=e;if(t){var a=d(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===p.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(d(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=d;return d=e,t}});function y(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)})),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function b(e,t,r){for(var n,i=0,a=t.selections;i<a.length;i++){if(m(u=a[i])){if("__typename"===u.name.value)return e[v(u)]}else n?n.push(u):n=[u]}if("string"===typeof e.__typename)return e.__typename;if(n)for(var s=0,c=n;s<c.length;s++){var u=c[s],l=b(e,Object(o.b)(u,r).selectionSet,r);if("string"===typeof l)return l}}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},"66KP":function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));
1var n,i=r("hB68"),o=r("h2vE"),a=r("9F4k"),s=Object.assign((function(e){return JSON.stringify(e,c)}),{reset:function(){n=new i.a(o.a.canonicalStringify||1e3)}});function c(e,t){if(t&&"object"===typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(u))return t;var o=JSON.stringify(i),a=n.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=n.get(s)||i,n.set(o,a),n.set(s,a)}var c=Object.create(r);return a.forEach((function(e){c[e]=t[e]})),c}}return t}function u(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&Object(a.d)("canonicalStringify",(function(){return n.size})),s.reset()},"8CQ5":function(e,t,r){"use strict";r.d(t,"f",(function(){return f})),r.d(t,"b",(function(){return d})),r.d(t,"h",(function(){return y})),r.d(t,"j",(function(){return v})),r.d(t,"e",(function(){return b})),r.d(t,"a",(function(){return m})),r.d(t,"d",(function(){return g})),r.d(t,"i",(function(){return O})),r.d(t,"k",(function(){return _})),r.d(t,"g",(function(){return j})),r.d(t,"c",(function(){return w}));var n=r("zKVw"),i=r("56Qq"),o=r("RiOv"),a=r("gclO"),s=r("QcCY"),c=r("mph4"),u=r("CuOm"),l=r("sHDe"),f=Object.prototype.hasOwnProperty;function p(e){return null===e||void 0===e}function d(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"===typeof r&&(t&&(t.keyObject=p(n)?p(i)?void 0:{_id:i}:{id:n}),p(n)&&!p(i)&&(n=i),!p(n)))return"".concat(r,":").concat("number"===typeof n||"string"===typeof n?n:JSON.stringify(n))}var h={dataIdFromObject:d,addTypename:!0,resultCaching:!0,canonizeResults:!1};function y(e){return Object(n.a)(h,e)}function v(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function b(e,t){return Object(i.g)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var m=/^[_a-z][_0-9a-z]*/i;function g(e){var t=e.match(m);return t?t[0]:e}function O(e,t,r){return!!Object(o.a)(t)&&(Object(a.a)(t)?t.every((function(t){return O(e,t,r)})):e.selections.every((function(e){if(Object(i.e)(e)&&Object(s.d)(e,r)){var n=Object(i.i)(e);return f.call(t,n)&&(!e.selectionSet||O(e.selectionSet,t[n],r))}return!0})))}function _(e){return Object(o.a)(e)&&!Object(i.g)(e)&&!Object(a.a)(e)}function j(){return new c.a}function w(e,t){var r=Object(u.a)(Object(l.d)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},"8etK":function(e){e.exports=JSON.parse('{"AreaConfiguration":["AreaTripEnd","AreaTripStart","AreaIllegalDocking","AreaSpeedLimit","AreaNoEntry"],"PaymentProvider":["PaymentProviderStripe","PaymentProviderPayex","PaymentProviderNevogate"],"AsyncProcessCompletion":["AsyncProcessCompleted","AsyncProcessCompletionPending","AsyncProcessFailed","AsyncProcessCompletionPostponed"],"PaymentIntentCharge":["ChargeCompleted","ChargePending","ChargeCompletedSubscription","ConfirmationSessionStripe","RequirePaymentMethodStripe","PaymentIntentError"],"PaymentCheckoutSession":["CheckoutSessionStripe","CheckoutSessionPayex","CheckoutSessionNevogate"],"PaymentSetupSession":["SetupSessionStripe","SetupSessionPayex","SetupSessionNevogate"],"RemovePaymentMethodResponse":["ObjectDeleted","PaymentMethodError"],"PaymentMethod":["Card","Blik","AcssDebit","Affirm","AfterpayClearpay","Alipay","AuBecsDebit","BacsDebit","Bancontact","Cashapp","CustomerBalance","Eps","Fpx","Giropay","Grabpay","Ideal","Klarna","Konbini","Link","Oxxo","P24","Paynow","Paypal","Pix","Promptpay","RevolutPay","SepaDebit","Sofort","Swish","UsBankAccount","WechatPay","Zip"],"PlaceSubscriptionOrderResponse":["Order","SubscriptionOrderError"],"PlaceValueCodeOrderResponse":["Order","ValueCodeOrderError"],"PlaceAnonymousValueCodeOrderResponse":["Order","AnonymousValueCodeOrderError"],"PlaceWalletDepositOrderResponse":["Order","WalletDepositOrderError"],"StartTripResponse":["Trip","TripSmartStationError","TripSystemAvailabilityError","TripStationAvailabilityError","TripVehicleAvailabilityError","TripMaxVehicleCountError","TripMaxPenaltiesError","TripSubscriptionError","TripTimingError","TripPaymentMethodError","TripUnknownError"],"EndTripResponse":["Trip","TripStationAvailabilityError","TripUnknownError"],"ReserveVehicleResponse":["VehicleReservation","TripSmartStationError","TripSystemAvailabilityError","TripStationAvailabilityError","TripVehicleAvailabilityError","TripMaxVehicleCountError","TripMaxPenaltiesError","TripSubscriptionError","TripTimingError","TripPaymentMethodError","TripUnknownError","ReservationTimingError","ReservationLimitError","TripReservationAlreadyExistsError","TripReservationDayLimitError"],"RequestTripAdditionalMinutes":["TripAdditionalMinutesError","TripAdditionalMinutes"],"UpdateProductRenewalResponse":["User","UpdateProductRenewalError"],"ProductRenewal":["ProductRenewalPending","ProductRenewalScheduled","ProductRenewalFailed"],"SanityPage":["SanityStartPage","BuyProductPage","BuyGiftCardPage","ArticlePage","SanityProfilePage","SanityRedeemCouponPage","SanityStationMapPage"],"SanityFeatureBlock":["SanityFeatureModule","SanityMultiFeatureModule","SanityFeatureModuleTripDuration","SanityFeatureImage","SanityFeatureVideo","SanityHowItWorksFeatureBlock","SanityStationMapFeatureBlock","SanityTripStatsFeatureBlock","SanityPageFeatureBlock","SanityInfoBlock","SanityCarousel"],"SanityFeatureModuleInterface":["SanityFeatureModule","SanityMultiFeatureModule","SanityFeatureModuleTripDuration","SanityFeatureVideo","SanityFeatureImage","SanityCarousel","SanityHowItWorksFeatureBlock","SanityStationMapFeatureBlock","SanityTripStatsFeatureBlock","SanityPageFeatureBlock","SanityInfoBlock"],"SanityFigureModule":["SanityFeatureFigureVideoGuide"],"CreatePhoneVerificationResponse":["PhoneVerification","PhoneVerificationRateLimit","PhoneVerificationError"],"VerifyPhoneCodeAndAuthenticateResponse":["SuccessfulAuthentication","PhoneVerificationError"],"VerifyCodeAndLogInResponse":["VerifyCodeAndLogInSuccess","PhoneVerificationError"],"VerifyCodeAndUpdatePhoneNumberResponse":["VerifyCodeAndUpdatePhoneNumberSuccess","PhoneVerificationError"],"PartnerAccount":["MilanATMCard"],"AttachPartnerAccountResponse":["MilanATMCard","AttachPartnerAccountError"],"DetachPartnerAccountResponse":["PartnerAccountDetached","DetachPartnerAccountError"],"PartnerDiscount":["Order","PartnerDiscountError"],"DiscountAmount":["RelativeDiscountAmount","AbsoluteDiscountAmount"],"DiscountCodeResponse":["Order","DiscountCodeError"],"Paginated":["PaginatedWalletTransactions","PaginatedOrders","PaginatedInvoices"],"Invoice":["InvoiceTrip","InvoiceFine"],"InvoiceItem":["InvoiceItemTrip","InvoiceItemAdjustment"],"PaymentDocument":["InvoiceTrip","InvoiceFine","Order"]}')},"9NtJ":function(e,t,r){"use strict";(function(e){var n=r("vJKn"),i=r("oI91"),o=r("qVT1");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?a(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:window,u=function(e){for(var t=new DataView(e),r="",n=0;n<t.byteLength;n+=4)r+=t.getUint32(n).toString(16).padStart(8,"0");return r},l=function(e){return function(){var t=o(n.mark((function t(r,i){var o;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"===typeof r&&(r=(new c.TextEncoder).encode(r)),i=s({outputFormat:"hex"},i),t.next=4,c.crypto.subtle.digest(e,r);case 4:return o=t.sent,t.abrupt("return","hex"===i.outputFormat?u(o):o);case 6:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()};t.sha1=l("SHA-1"),t.sha256=l("SHA-256"),t.sha384=l("SHA-384"),t.sha512=l("SHA-512")}).call(this,r("ntbh"))},CuOm:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return c})),r.d(t,"d",(function(){return u}));var n=r("mrSG"),i=r("j2l1"),o=r("L2ys");function a(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw Object(i.d)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),"undefined"===typeof r&&(Object(i.b)(1===o.length,86,o.length),r=o[0].name.value),Object(n.__assign)(Object(n.__assign)({},e),{definitions:Object(n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function c(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"===typeof t)return t(r);var n=t&&t[r];return Object(i.b)(n,87,r),n||null;default:return null}}function u(e){var t=!0;return Object(o.b)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some((function(e){return"unmask"===e.name.value}))))return o.a}}),t}},KZXg:function(e,t,r){"use strict";function n(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,"a",(function(){return E}));var s=function(){return"function"===typeof Symbol},c=function(e){return s()&&Boolean(Symbol[e])},u=function(e){return c(e)?Symbol[e]:"@@"+e};s()&&!c("observable")&&(Symbol.observable=Symbol("observable"));var l=u("iterator"),f=u("observable"),p=u("species");function d(e,t){var r=e[t];if(null!=r){if("function"!==typeof r)throw new TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[p])&&(t=void 0),void 0!==t?t:E}function y(e){return e instanceof E}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function b(e){Promise.resolve().then((function(){try{e()}catch(t){v(t)}}))}function m(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var r=d(t,"unsubscribe");r&&r.call(t)}}catch(n){v(n)}}function g(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function O(e,t,r){e._state="running";var n=e._observer;try{var i=d(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(o){v(o)}"closed"===e._state?m(e):"running"===e._state&&(e._state="ready")}function _(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void b((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(O(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void O(e,t,r);e._queue.push({type:t,value:r})}}var j=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new w(this);try{this._cleanup=t.call(void 0,r)}catch(n){r.error(n)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(g(this),m(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new j(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(h(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i((function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=h(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return n.error(s)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[f]=function(){return this},e.from=function(t){var r="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=d(t,f);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return y(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(c("iterator")&&(i=d(t,l)))return new r((function(e){b((function(){if(!e.closed){for(var r,o=n(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){b((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"===typeof this?this:e;return new i((function(e){b((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},a(e,null,[{key:p,get:function(){return this}}]),e}();s()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:f,hostReportError:v},configurable:!0})},L2ys:function(e,t,r){"use strict";r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return f}));var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return a(e,[])}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),i=function(e){var t=e[String(n)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:a(o,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o<r;++o)i.push(a(e[o],t));1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var r=e.constructor.name;if("string"===typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function s(e){var t=e.prototype.toJSON;"function"===typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,n&&(e.prototype[n]=t)}function c(e){return null!=e&&"string"===typeof e.kind}s(function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}()),s(function(){function e(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}());var u={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:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},l=Object.freeze({});function f(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=void 0,i=Array.isArray(e),a=[e],s=-1,f=[],d=void 0,h=void 0,y=void 0,v=[],b=[],m=e;do{var g=++s===a.length,O=g&&0!==f.length;if(g){if(h=0===b.length?void 0:v[v.length-1],d=y,y=b.pop(),O){if(i)d=d.slice();else{for(var _={},j=0,w=Object.keys(d);j<w.length;j++){var E=w[j];_[E]=d[E]}d=_}for(var S=0,k=0;k<f.length;k++){var T=f[k][0],x=f[k][1];i&&(T-=S),i&&null===x?(d.splice(T,1),S++):d[T]=x}}s=n.index,a=n.keys,f=n.edits,i=n.inArray,n=n.prev}else{if(h=y?i?s:a[s]:void 0,null===(d=y?y[h]:m)||void 0===d)continue;y&&v.push(h)}var D,P=void 0;if(!Array.isArray(d)){if(!c(d))throw new Error("Invalid AST Node: ".concat(o(d),"."));var I=p(t,d.kind,g);if(I){if((P=I.call(t,d,h,y,v,b))===l)break;if(!1===P){if(!g){v.pop();continue}}else if(void 0!==P&&(f.push([h,P]),!g)){if(!c(P)){v.pop();continue}d=P}}}if(void 0===P&&O&&f.push([h,d]),g)v.pop();else n={inArray:i,index:s,keys:a,edits:f,prev:n},a=(i=Array.isArray(d))?d:null!==(D=r[d.kind])&&void 0!==D?D:[],s=-1,f=[],y&&b.push(y),y=d}while(void 0!==n);return 0!==f.length&&(m=f[f.length-1][1]),m}function p(e,t,r){var n=e[t];if(n){if(!r&&"function"===typeof n)return n;var i=r?n.leave:n.enter;if("function"===typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"===typeof o)return o;var a=o[t];if("function"===typeof a)return a}}}},QcCY:function(e,t,r){"use strict";r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return u}));var n=r("j2l1"),i=r("L2ys"),o=r("/jXB");function a(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,i=e.name.value;Object(n.b)(r&&1===r.length,79,i);var o=r[0];Object(n.b)(o.name&&"if"===o.name.value,80,i);var a=o.value;Object(n.b)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,i),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],Object(n.b)(void 0!==o,78,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o}))}function s(e,t,r){var n=new Set(e),o=n.size;return Object(i.b)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.a}}),r?!n.size:n.size<o}function c(e){return e&&s(["client","export"],e,!0)}function u(e){var t,r,i=null===(t=e.directives)||void 0===t?void 0:t.find((function(e){return"unmask"===e.name.value}));if(!i)return"mask";var a=null===(r=i.arguments)||void 0===r?void 0:r.find((function(e){return"mode"===e.name.value}));return!1!==globalThis.__DEV__&&a&&(a.value.kind===o.a.VARIABLE?!1!==globalThis.__DEV__&&n.b.warn(82):a.value.kind!==o.a.STRING?!1!==globalThis.__DEV__&&n.b.warn(83):"migrate"!==a.value.value&&!1!==globalThis.__DEV__&&n.b.warn(84,a.value.value)),a&&"value"in a.value&&"migrate"===a.value.value?"migrate":"unmask"}},YbRg:function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},gw6v:function(e,t,r){(function(e){var n=r("/GRZ"),i=r("48fX"),o=r("tCBg"),a=r("T0f4"),s=r("2iZN"),c=r("zoAU"),u=r("mPvQ"),l=r("vJKn"),f=r("qVT1");function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=a(e);if(t){var i=a(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return o(this,r)}}(function(t){"use strict";function r(e){return this instanceof r?(this.v=e,this):new r(e)}function o(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(e,t||[]),a=[];return i=Object.create(("function"===typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,l)}})),i[Symbol.asyncIterator]=function(){return this},i;function s(e,t){o[e]&&(i[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))},t&&(i[e]=t(i[e])))}function c(e,t){try{(n=o[e](t)).value instanceof r?Promise.resolve(n.value.v).then(u,l):f(a[0][2],n)}catch(i){f(a[0][3],i)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function a(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function d(e){return"object"===a(e)}function h(e,t){return e.length<124?e:t}"function"===typeof SuppressedError&&SuppressedError;var y,v,b="graphql-transport-ws";function m(e){if(!d(e))throw new Error("Message is expected to be an object, but got ".concat(a(e)));if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!==typeof e.type)throw new Error("Message is expects the 'type' property to be a string, but got ".concat(a(e.type)));switch(e.type){case t.MessageType.ConnectionInit:case t.MessageType.ConnectionAck:case t.MessageType.Ping:case t.MessageType.Pong:if(null!=e.payload&&!d(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object or nullish or missing, but got \"").concat(e.payload,'"'));break;case t.MessageType.Subscribe:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(a(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!d(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat(a(e.payload)));
1if("string"!==typeof e.payload.query)throw new Error('"'.concat(e.type,"\" message payload expects the 'query' property to be a string, but got ").concat(a(e.payload.query)));if(null!=e.payload.variables&&!d(e.payload.variables))throw new Error('"'.concat(e.type,"\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ").concat(a(e.payload.variables)));if(null!=e.payload.operationName&&"string"!==a(e.payload.operationName))throw new Error('"'.concat(e.type,"\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ").concat(a(e.payload.operationName)));if(null!=e.payload.extensions&&!d(e.payload.extensions))throw new Error('"'.concat(e.type,"\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ").concat(a(e.payload.extensions)));break;case t.MessageType.Next:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(a(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!d(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat(a(e.payload)));break;case t.MessageType.Error:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(a(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(r=e.payload,!(Array.isArray(r)&&r.length>0&&r.every((function(e){return"message"in e}))))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an array of GraphQL errors, but got ").concat(JSON.stringify(e.payload)));break;case t.MessageType.Complete:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(a(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));break;default:throw new Error("Invalid message 'type' property \"".concat(e.type,'"'))}var r;return e}function g(e,t){return m("string"===typeof e?JSON.parse(e,t):e)}function O(e,t){return m(e),JSON.stringify(e,t)}t.CloseCode=void 0,(y=t.CloseCode||(t.CloseCode={}))[y.InternalServerError=4500]="InternalServerError",y[y.InternalClientError=4005]="InternalClientError",y[y.BadRequest=4400]="BadRequest",y[y.BadResponse=4004]="BadResponse",y[y.Unauthorized=4401]="Unauthorized",y[y.Forbidden=4403]="Forbidden",y[y.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",y[y.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",y[y.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",y[y.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",y[y.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t.MessageType=void 0,(v=t.MessageType||(t.MessageType={})).ConnectionInit="connection_init",v.ConnectionAck="connection_ack",v.Ping="ping",v.Pong="pong",v.Subscribe="subscribe",v.Next="next",v.Error="error",v.Complete="complete";var _=function(e){i(r,e);var t=p(r);function r(){var e;return n(this,r),(e=t.apply(this,arguments)).name="TerminatedCloseEvent",e.message="4499: Terminated",e.code=4499,e.reason="Terminated",e.wasClean=!1,e}return r}(s(Error));function j(e){return d(e)&&"code"in e&&"reason"in e}t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",t.GRAPHQL_TRANSPORT_WS_PROTOCOL=b,t.TerminatedCloseEvent=_,t.createClient=function(n){var i,a,s=n.url,p=n.connectionParams,d=n.lazy,y=void 0===d||d,v=n.onNonLazyError,m=void 0===v?console.error:v,w=n.lazyCloseTimeout,E=void 0===w?0:w,S=n.keepAlive,k=void 0===S?0:S,T=n.disablePong,x=n.connectionAckWaitTimeout,D=void 0===x?0:x,P=n.retryAttempts,I=void 0===P?5:P,C=n.retryWait,R=void 0===C?function(){var e=f(l.mark((function e(t){var r,n;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=1e3,n=0;n<t;n++)r*=2;return e.next=4,new Promise((function(e){return setTimeout(e,r+Math.floor(2700*Math.random()+300))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():C,F=n.shouldRetry,N=void 0===F?j:F,M=n.isFatalConnectionProblem,A=n.on,q=n.webSocketImpl,Q=n.generateID,V=void 0===Q?function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}:Q,L=n.jsonMessageReplacer,B=n.jsonMessageReviver;if(q){if(!("function"===typeof(a=q)&&"constructor"in a&&"CLOSED"in a&&"CLOSING"in a&&"CONNECTING"in a&&"OPEN"in a))throw new Error("Invalid WebSocket implementation provided");
1i=q}else i="undefined"!==typeof WebSocket?WebSocket:"undefined"!==typeof e?e.WebSocket||e.MozWebSocket:window.WebSocket||window.MozWebSocket;if(!i)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");var z=i,W=function(){var e=function(){var e={};return{on:function(t,r){return e[t]=r,function(){delete e[t]}},emit:function(t){var r;"id"in t&&(null===(r=e[t.id])||void 0===r||r.call(e,t))}}}(),t={connecting:(null===A||void 0===A?void 0:A.connecting)?[A.connecting]:[],opened:(null===A||void 0===A?void 0:A.opened)?[A.opened]:[],connected:(null===A||void 0===A?void 0:A.connected)?[A.connected]:[],ping:(null===A||void 0===A?void 0:A.ping)?[A.ping]:[],pong:(null===A||void 0===A?void 0:A.pong)?[A.pong]:[],message:(null===A||void 0===A?void 0:A.message)?[e.emit,A.message]:[e.emit],closed:(null===A||void 0===A?void 0:A.closed)?[A.closed]:[],error:(null===A||void 0===A?void 0:A.error)?[A.error]:[]};return{onMessage:e.on,on:function(e,r){var n=t[e];return n.push(r),function(){n.splice(n.indexOf(r),1)}},emit:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];for(var o=0,a=u(t[e]);o<a.length;o++){var s=a[o];s.apply(void 0,n)}}}}();function U(e){var t=[W.on("error",(function(r){t.forEach((function(e){return e()})),e(r)})),W.on("closed",(function(r){t.forEach((function(e){return e()})),e(r)}))]}var G,K,J=0,H=!1,Y=0,X=!1;function Z(){return $.apply(this,arguments)}function $(){return($=f(l.mark((function e(){var r,n,i,o,a,u;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(K),e.next=3,null!==G&&void 0!==G?G:G=new Promise((function(e,r){return f(l.mark((function n(){var i,o,a,c,u;return l.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=function(){isFinite(k)&&k>0&&(clearTimeout(a),a=setTimeout((function(){i.readyState===z.OPEN&&(i.send(O({type:t.MessageType.Ping})),W.emit("ping",!1,void 0))}),k))},!H){n.next=8;break}return n.next=4,R(Y);case 4:if(J){n.next=7;break}return G=void 0,n.abrupt("return",r({code:1e3,reason:"All Subscriptions Gone"}));case 7:Y++;case 8:if(W.emit("connecting",H),n.t0=z,"function"!==typeof s){n.next=16;break}return n.next=13,s();case 13:n.t1=n.sent,n.next=17;break;case 16:n.t1=s;case 17:n.t2=n.t1,n.t3=b,i=new n.t0(n.t2,n.t3),U((function(e){G=void 0,clearTimeout(o),clearTimeout(a),r(e),e instanceof _&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=function(e){return W.emit("error",e)},i.onclose=function(e){return W.emit("closed",e)},i.onopen=f(l.mark((function e(){var r;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,W.emit("opened",i),"function"!==typeof p){e.next=8;break}return e.next=5,p();case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=p;case 9:if(r=e.t0,i.readyState===z.OPEN){e.next=12;break}return e.abrupt("return");case 12:i.send(O(r?{type:t.MessageType.ConnectionInit,payload:r}:{type:t.MessageType.ConnectionInit},L)),isFinite(D)&&D>0&&(o=setTimeout((function(){i.close(t.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),D)),c(),e.next=21;break;case 17:e.prev=17,e.t1=e.catch(0),W.emit("error",e.t1),i.close(t.CloseCode.InternalClientError,h(e.t1 instanceof Error?e.t1.message:new Error(e.t1).message,"Internal client error"));case 21:case"end":return e.stop()}}),e,null,[[0,17]])}))),u=!1,i.onmessage=function(r){var n=r.data;try{var a=g(n,B);if(W.emit("message",a),"ping"===a.type||"pong"===a.type)return W.emit(a.type,!0,a.payload),void("pong"===a.type?c():T||(i.send(O(a.payload?{type:t.MessageType.Pong,payload:a.payload}:{type:t.MessageType.Pong})),W.emit("pong",!1,a.payload)));if(u)return;if(a.type!==t.MessageType.ConnectionAck)throw new Error("First message cannot be of type ".concat(a.type));clearTimeout(o),u=!0,W.emit("connected",i,a.payload,H),H=!1,Y=0,e([i,new Promise((function(e,t){return U(t)}))])}catch(s){i.onmessage=null,W.emit("error",s),i.close(t.CloseCode.BadResponse,h(s instanceof Error?s.message:new Error(s).message,"Bad response"))}};case 26:case"end":return n.stop()}}),n)})))()}));case 3:if(r=e.sent,n=c(r,2),i=n[0],o=n[1],i.readyState!==z.CLOSING){e.next=10;break}return e.next=10,o;case 10:return a=function(){},u=new Promise((function(e){return a=e})),e.abrupt("return",[i,a,Promise.race([u.then((function(){if(!J){var e=function(){return i.close(1e3,"Normal Closure")};isFinite(E)&&E>0?K=setTimeout((function(){i.readyState===z.OPEN&&e()}),E):e()}})),o])]);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(e){if(j(e)&&(r=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(r)&&r>=1e3&&r<=1999||[t.CloseCode.InternalServerError,t.CloseCode.InternalClientError,t.CloseCode.BadRequest,t.CloseCode.BadResponse,t.CloseCode.Unauthorized,t.CloseCode.SubprotocolNotAcceptable,t.CloseCode.SubscriberAlreadyExists,t.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var r;if(X)return!1;if(j(e)&&1e3===e.code)return J>0;if(!I||Y>=I)throw e;if(!N(e))throw e;if(null===M||void 0===M?void 0:M(e))throw e;return H=!0}function te(e,r){var n=V(e),i=!1,o=!1,a=function(){J--,i=!0};return f(l.mark((function s(){var u;return l.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:J++;case 1:return s.prev=1,s.delegateYield(l.mark((function s(){var u,f,p,d,h,y;return l.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Z();case 2:if(u=s.sent,f=c(u,3),p=f[0],d=f[1],h=f[2],!i){s.next=9;break}return s.abrupt("return",{v:d()});case 9:return y=W.onMessage(n,(function(e){switch(e.type){case t.MessageType.Next:return void r.next(e.payload);case t.MessageType.Error:return o=!0,i=!0,r.error(e.payload),void a();case t.MessageType.Complete:return i=!0,void a()}})),p.send(O({id:n,type:t.MessageType.Subscribe,payload:e},L)),a=function(){i||p.readyState!==z.OPEN||p.send(O({id:n,type:t.MessageType.Complete},L)),J--,i=!0,d()},s.next=14,h.finally(y);case 14:return s.abrupt("return",{v:void 0});case 15:case"end":return s.stop()}}),s)}))(),"t0",3);case 3:if("object"!==typeof(u=s.t0)){s.next=6;break}return s.abrupt("return",u.v);case 6:s.next=12;break;case 8:if(s.prev=8,s.t1=s.catch(1),ee(s.t1)){s.next=12;break}return s.abrupt("return");case 12:s.next=1;break;case 14:case"end":return s.stop()}}),s,null,[[1,8]])})))().then((function(){o||r.complete()}
1)).catch((function(e){r.error(e)})),function(){i||a()}}return y||f(l.mark((function e(){var t,r,n;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:J++;case 1:return e.prev=1,e.next=4,Z();case 4:return t=e.sent,r=c(t,3),n=r[2],e.next=9,n;case 9:e.next=21;break;case 11:if(e.prev=11,e.t0=e.catch(1),e.prev=13,ee(e.t0)){e.next=16;break}return e.abrupt("return");case 16:e.next=21;break;case 18:return e.prev=18,e.t1=e.catch(13),e.abrupt("return",null===m||void 0===m?void 0:m(e.t1));case 21:e.next=1;break;case 23:case"end":return e.stop()}}),e,null,[[1,11],[13,18]])})))(),{on:W.on,subscribe:te,iterate:function(e){var t=[],n={done:!1,error:null,resolve:function(){}},i=te(e,{next:function(e){t.push(e),n.resolve()},error:function(e){n.done=!0,n.error=e,n.resolve()},complete:function(){n.done=!0,n.resolve()}}),a=function(){return o(this,arguments,l.mark((function e(){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=3;break}return e.next=3,r(new Promise((function(e){return n.resolve=e})));case 3:if(!t.length){e.next=10;break}return e.next=6,r(t.shift());case 6:return e.next=8,e.sent;case 8:e.next=3;break;case 10:if(!n.error){e.next=12;break}throw n.error;case 12:if(!n.done){e.next=16;break}return e.next=15,r(void 0);case 15:return e.abrupt("return",e.sent);case 16:e.next=0;break;case 18:case"end":return e.stop()}}),e)})))}();return a.throw=function(){var e=f(l.mark((function e(t){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.done||(n.done=!0,n.error=t,n.resolve()),e.abrupt("return",{done:!0,value:void 0});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.return=f(l.mark((function e(){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(),e.abrupt("return",{done:!0,value:void 0});case 2:case"end":return e.stop()}}),e)}))),a},dispose:function(){return f(l.mark((function e(){var t;return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X=!0,!G){e.next=8;break}return e.next=4,G;case 4:t=e.sent,c(t,1)[0].close(1e3,"Normal Closure");case 8:case"end":return e.stop()}}),e)})))()},terminate:function(){G&&W.emit("closed",new _)}}},t.isMessage=function(e){try{return m(e),!0}catch(t){return!1}},t.parseMessage=g,t.stringifyMessage=O,t.validateMessage=m})(t)}).call(this,r("ntbh"))},mph4:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return u}));var n=r("mrSG"),i=r("RiOv"),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new u,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var c=function(e,t,r){return this.merge(e[r],t[r])},u=function(){function e(e){void 0===e&&(e=c),this.reconciler=e,this.isObject=i.a,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return Object(i.a)(t)&&Object(i.a)(e)?(Object.keys(t).forEach((function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var c=r.reconciler.apply(r,Object(n.__spreadArray)([e,t,i],a,!1));c!==s&&((e=r.shallowCopyForMerge(e))[i]=c)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return Object(i.a)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):Object(n.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},n8X0:function(e,t,r){"use strict";r.d(t,"a",(function(){return xn}));var n=r("vJKn"),i=r.n(n),o=r("rg98"),a=r("cpVT"),s=r("nKUr"),c=r("dhJC"),u=r("mOvS"),l=r.n(u),f=r("mrSG"),p=r("j2l1"),d=r("dcx0"),h=r("yppM"),y=function(e){var t=e.client,r=e.children,n=Object(h.a)(),i=d.useContext(n),o=d.useMemo((function(){return Object(f.__assign)(Object(f.__assign)({},i),{client:t||i.client})}),[i,t]);return Object(p.b)(o.client,55),d.createElement(n.Provider,{value:o},r)},v=r("s+gb"),b=r("YyUk"),m=r("hG6G");r("q1tI");const g=()=>Object.create(null),{forEach:O,slice:_}=Array.prototype,{hasOwnProperty:j}=Object.prototype;class w{constructor(e=!0,t=g){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return O.call(e,(e=>t=t.getChildTrie(e))),j.call(t,"data")?t.data:t.data=this.makeData(_.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(_.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new w(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}var E=r("+IvB"),S=r("1t6R");const{bind:k,noContext:T}=S.a;const x=new S.a;const{hasOwnProperty:D}=Object.prototype,P=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function I(e){const{unsubscribe:t}=e;"function"===typeof t&&(e.unsubscribe=void 0,t())}const C=[];function R(e,t){if(!e)throw new Error(t||"assertion failure")}function F(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function N(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function M(e){return e.slice(0)}class A{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++A.count}peek(){if(1===this.value.length&&!V(this))return q(this),this.value[0]}recompute(e){return R(!this.recomputing,"already recomputing"),q(this),V(this)?function(e,t){K(e),x.withValue(e,Q,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{I(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,V(e))return;B(e)}(e);return N(e.value)}(this,e):N(this.value)}setDirty(){this.dirty||(this.dirty=!0,L(this),I(this))}dispose(){this.setDirty(),K(this),z(this,((e,t)=>{e.setDirty(),J(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=C.pop()||new Set),this.deps.add(e)}
1forgetDeps(){this.deps&&(P(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),C.push(this.deps),this.deps=null)}}function q(e){const t=x.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),V(e)?W(t,e):U(t,e),t}function Q(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=M(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!F(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(i){}}catch(o){e.value[1]=o}e.recomputing=!1}function V(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function L(e){z(e,W)}function B(e){z(e,U)}function z(e,t){const r=e.parents.size;if(r){const n=P(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function W(e,t){R(e.childValues.has(t)),R(V(t));const r=!V(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=C.pop()||new Set;e.dirtyChildren.add(t),r&&L(e)}function U(e,t){R(e.childValues.has(t)),R(!V(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,M(t.value)):F(r,t.value)||e.setDirty(),G(e,t),V(e)||B(e)}function G(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(C.length<100&&C.push(r),e.dirtyChildren=null))}function K(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{J(e,r)})),e.forgetDeps(),R(null===e.dirtyChildren)}function J(e,t){t.parents.delete(e),e.childValues.delete(t),G(e,t)}A.count=0;const H={setDirty:!0,dispose:!0,forget:!0};function Y(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=x.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"===typeof r&&(I(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&D.call(H,r)?r:"setDirty";P(n).forEach((e=>e[i]())),t.delete(e),I(n)}},n}let X;function Z(...e){return(X||(X=new w("function"===typeof WeakMap))).lookupArray(e)}const $=new Set;function ee(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=Z,normalizeResult:i,subscribe:o,cache:a=E.a}=Object.create(null)){const s="function"===typeof a?new a(t,(e=>e.dispose())):a,c=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new A(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),$.add(s),x.hasValue()||($.forEach((e=>e.clean())),$.clear()),c};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function l(e){const t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=u,c.dirty=function(){u(n.apply(null,arguments))},c.peekKey=l,c.peek=function(){return l(n.apply(null,arguments))},c.forgetKey=f,c.forget=function(){return f(n.apply(null,arguments))},c.makeCacheKey=n,c.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(c)}var te=r("Ee3x"),re=r("CuOm"),ne=r("h2vE"),ie=r("sHDe"),oe=r("KZXg"),ae=r("mph4"),se=r("ao+J"),ce=r("9F4k"),ue=r("QcCY"),le=r("56Qq");function fe(e,t,r,n){var i=t.data,o=Object(f.__rest)(t,["data"]),a=r.data,s=Object(f.__rest)(r,["data"]);return Object(te.a)(o,s)&&pe(Object(ie.e)(e).selectionSet,i,a,{fragmentMap:Object(re.a)(Object(ie.d)(e)),variables:n})}function pe(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!Object(ue.d)(e,n.variables))return!0;if(de(e))return!0;if(Object(le.e)(e)){var o=Object(le.i)(e),a=t&&t[o],s=r&&r[o],c=e.selectionSet;if(!c)return Object(te.a)(a,s);var u=Array.isArray(a),l=Array.isArray(s);if(u!==l)return!1;if(u&&l){var f=a.length;if(s.length!==f)return!1;for(var p=0;p<f;++p)if(!pe(c,a[p],s[p],n))return!1;return!0}return pe(c,a,s,n)}var d=Object(re.b)(e,n.fragmentMap);return d?!!de(d)||pe(d.selectionSet,t,r,n):void 0}))}function de(e){return!!e.directives&&e.directives.some(he)}function he(e){return"nonreactive"===e.name.value}var ye=r("/jXB"),ve=r("zf2e"),be=ve.e?WeakMap:Map,me=ve.f?WeakSet:Set,ge=new S.a,Oe=!1;function _e(){Oe||(Oe=!0,!1!==globalThis.__DEV__&&p.b.warn(52))}var je=r("LEz1");function we(e,t,r){return ge.withValue(!0,(function(){var n=Ee(e,t,r,!1);return Object.isFrozen(e)&&Object(je.a)(n),n}))}function Ee(e,t,r,n,i){var o,a=r.knownChanged,s=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(e,r.mutableTargets);if(Array.isArray(e)){for(var c=0,u=Array.from(e.entries());c<u.length;c++){var l=u[c],f=l[0],d=l[1];if(null!==d){var h=Ee(d,t,r,n,!1!==globalThis.__DEV__?"".concat(i||"","[").concat(f,"]"):void 0);a.has(h)&&a.add(s),s[f]=h}else s[f]=null}return a.has(s)?s:e}for(var y=0,v=t.selections;y<v.length;y++){var b=v[y],m=void 0;if(n&&a.add(s),b.kind===ye.a.FIELD){var g=Object(le.i)(b),O=b.selectionSet;if(void 0===(m=s[g]||e[g]))continue;if(O&&null!==m){h=Ee(e[g],O,r,n,!1!==globalThis.__DEV__?"".concat(i||"",".").concat(g):void 0);a.has(h)&&(m=h)}!1===globalThis.__DEV__&&(s[g]=m),!1!==globalThis.__DEV__&&(n&&"__typename"!==g&&!(null===(o=Object.getOwnPropertyDescriptor(s,g))||void 0===o?void 0:o.value)?Object.defineProperty(s,g,Se(g,m,i||"",r.operationName,r.operationType)):(delete s[g],s[g]=m))}if(b.kind!==ye.a.INLINE_FRAGMENT||b.typeCondition&&!r.cache.fragmentMatches(b,e.__typename)||(m=Ee(e,b.selectionSet,r,n,i)
1),b.kind===ye.a.FRAGMENT_SPREAD){var _=b.name.value,j=r.fragmentMap[_]||(r.fragmentMap[_]=r.cache.lookupFragment(_));Object(p.b)(j,47,_);var w=Object(ue.a)(b);"mask"!==w&&(m=Ee(e,j.selectionSet,r,"migrate"===w,i))}a.has(m)&&a.add(s)}return"__typename"in e&&!("__typename"in s)&&(s.__typename=e.__typename),Object.keys(s).length!==Object.keys(e).length&&a.add(s),a.has(s)?s:e}function Se(e,t,r,n,i){var o=function(){return ge.getValue()||(!1!==globalThis.__DEV__&&p.b.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}function ke(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&_e(),e;var i=t.definitions.filter((function(e){return e.kind===ye.a.FRAGMENT_DEFINITION}));"undefined"===typeof n&&(Object(p.b)(1===i.length,49,i.length),n=i[0].name.value);var o=i.find((function(e){return e.name.value===n}));return Object(p.b)(!!o,50,n),null==e||Object(te.a)(e,{})?e:we(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:Object(re.a)(Object(ie.d)(t)),cache:r,mutableTargets:new be,knownChanged:new me})}var Te=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=ee(re.c,{max:ne.a["cache.fragmentQueryDocuments"]||1e3,cache:se.a})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"===typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(f.__assign)(Object(f.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t=this,r=e.fragment,n=e.fragmentName,i=e.from,o=e.optimistic,a=void 0===o||o,s=Object(f.__rest)(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(r,n),u="undefined"===typeof i||"string"===typeof i?i:this.identify(i),l=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var d=n||Object(ie.c)(r).name.value;u||!1!==globalThis.__DEV__&&p.b.warn(1,d)}var h,y=Object(f.__assign)(Object(f.__assign)({},s),{returnPartialData:!0,id:u,query:c,optimistic:a});return new oe.a((function(e){return t.watch(Object(f.__assign)(Object(f.__assign)({},y),{immediate:!0,callback:function(i){var o=l?ke(i.result,r,t,n):i.result;if(!h||!fe(c,{data:null===h||void 0===h?void 0:h.result},{data:o})){var a={data:o,complete:!!i.complete};i.missing&&(a.missing=Object(ae.c)(i.missing.map((function(e){return e.missing})))),h=Object(f.__assign)(Object(f.__assign)({},i),{result:o}),e.next(a)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(f.__assign)(Object(f.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=Object(f.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=Object(f.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return void 0===i||null===i?n:(r.writeQuery(Object(f.__assign)(Object(f.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return void 0===i||null===i?n:(r.writeFragment(Object(f.__assign)(Object(f.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(Te.prototype.getMemoryInternals=ce.a);var xe=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return Object(f.__extends)(t,e),t}(Error);function De(e){return e}var Pe=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=ve.f?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(De,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new w(ve.e);this.performWork=ee(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return Object(p.b)(Array.isArray(n),77),r.lookupArray(n)},max:ne.a["documentTransform.cache"],cache:se.a})}},e.prototype.performWork=function(e){return Object(ie.a)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e((function(e){return t.transformDocument(r.transformDocument(e))}
1),{cache:!1}),{left:this,right:t})},e}(),Ie=r("L2ys"),Ce=r("gclO"),Re={kind:ye.a.FIELD,name:{kind:ye.a.NAME,value:"__typename"}};function Fe(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===ye.a.FRAGMENT_SPREAD&&Fe(t[e.name.value],t)}))}function Ne(e){return Fe(Object(ie.f)(e)||Object(ie.c)(e),Object(re.a)(Object(ie.d)(e)))?null:e}function Me(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function Ae(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function qe(e,t){Object(ie.a)(t);for(var r=Ae(""),n=Ae(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Object(Ce.a)(i)){if(i.kind===ye.a.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===ye.a.FRAGMENT_DEFINITION)return n(i.name.value)}return!1!==globalThis.__DEV__&&p.b.error(97),null},o=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===ye.a.OPERATION_DEFINITION&&++o;var s=Me(e),c=function(e){return Object(Ce.b)(e)&&e.map(s).some((function(e){return e&&e.remove}))},u=new Map,l=!1,d={enter:function(e){if(c(e.directives))return l=!0,null}},h=Object(Ie.b)(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,o){if(c(e.directives))return l=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){u.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===u.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===ye.a.FIELD&&"__typename"===e.name.value}))?(n(e.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(e){if(s(e))return l=!0,null}}});if(!l)return t;var y=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){y(n(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},v=new Set;h.definitions.forEach((function(e){e.kind===ye.a.OPERATION_DEFINITION?y(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){v.add(e)})):e.kind!==ye.a.FRAGMENT_DEFINITION||0!==o||n(e.name.value).removed||v.add(e.name.value)})),v.forEach((function(e){y(n(e)).fragmentSpreads.forEach((function(e){v.add(e)}))}));var b={enter:function(e){if(t=e.name.value,!v.has(t)||n(t).removed)return null;var t}};return Ne(Object(Ie.b)(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return Object(f.__assign)(Object(f.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var Qe=Object.assign((function(e){return Object(Ie.b)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==ye.a.OPERATION_DEFINITION){var n=e.selections;if(n)if(!n.some((function(e){return Object(le.e)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(Object(le.e)(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return Object(f.__assign)(Object(f.__assign)({},e),{selections:Object(f.__spreadArray)(Object(f.__spreadArray)([],n,!0),[Re],!1)})}}}}})}),{added:function(e){return e===Re}});function Ve(e){return"query"===Object(ie.e)(e).operation?e:Object(Ie.b)(e,{OperationDefinition:{enter:function(e){return Object(f.__assign)(Object(f.__assign)({},e),{operation:"query"})}}})}function Le(e){return Object(ie.a)(e),qe([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function Be(e){return Object(ie.a)(e),Object(Ie.b)(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some((function(e){return"unmask"===e.name.value}))))return Object(f.__assign)(Object(f.__assign)({},e),{directives:Object(f.__spreadArray)(Object(f.__spreadArray)([],e.directives||[],!0),[{kind:ye.a.DIRECTIVE,name:{kind:ye.a.NAME,value:"nonreactive"}}
vendor: 1,503 bytes, line 1
1],!1)})}})}var ze=r("66KP");var We={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return Ge(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=Je("(",Ge(e.variableDefinitions,", "),")"),i=Ge(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?Ge([t,Ge([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+Je(" = ",n)+Je(" ",Ge(i," "))},SelectionSet:function(e){return Ke(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return Ge([Je("",t,": ")+r+Je("(",Ge(n,", "),")"),Ge(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Je(" ",Ge(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return Ge(["...",Je("on ",t),Ge(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(Je("(",Ge(n,", "),")")," ")+"on ".concat(r," ").concat(Je("",Ge(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"
1===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!n||o||a||r,c="";return!s||n&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,s&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+Ge(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Ge(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Je("(",Ge(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:Ue((function(e){var t=e.directives,r=e.operationTypes;return Ge(["schema",Ge(t," "),Ke(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:Ue((function(e){return Ge(["scalar",e.name,Ge(e.directives," ")]," ")})),ObjectTypeDefinition:Ue((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ge(["type",t,Je("implements ",Ge(r," & ")),Ge(n," "),Ke(i)]," ")})),FieldDefinition:Ue((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(Xe(r)?Je("(\n",He(Ge(r,"\n")),"\n)"):Je("(",Ge(r,", "),")"))+": "+n+Je(" ",Ge(i," "))})),InputValueDefinition:Ue((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return Ge([t+": "+r,Je("= ",n),Ge(i," ")]," ")})),InterfaceTypeDefinition:Ue((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ge(["interface",t,Je("implements ",Ge(r," & ")),Ge(n," "),Ke(i)]," ")})),UnionTypeDefinition:Ue((function(e){var t=e.name,r=e.directives,n=e.types;return Ge(["union",t,Ge(r," "),n&&0!==n.length?"= "+Ge(n," | "):""]," ")})),EnumTypeDefinition:Ue((function(e){var t=e.name,r=e.directives,n=e.values;return Ge(["enum",t,Ge(r," "),Ke(n)]," ")})),EnumValueDefinition:Ue((function(e){return Ge([e.name,Ge(e.directives," ")]," ")})),InputObjectTypeDefinition:Ue((function(e){var t=e.name,r=e.directives,n=e.fields;return Ge(["input",t,Ge(r," "),Ke(n)]," ")})),DirectiveDefinition:Ue((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(Xe(r)?Je("(\n",He(Ge(r,"\n")),"\n)"):Je("(",Ge(r,", "),")"))+(n?" repeatable":"")+" on "+Ge(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return Ge(["extend schema",Ge(t," "),Ke(r)]," ")},ScalarTypeExtension:function(e){return Ge(["extend scalar",e.name,Ge(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ge(["extend type",t,Je("implements ",Ge(r," & ")),Ge(n," "),Ke(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return Ge(["extend interface",t,Je("implements ",Ge(r," & ")),Ge(n," "),Ke(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return Ge(["extend union",t,Ge(r," "),n&&0!==n.length?"= "+Ge(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return Ge(["extend enum",t,Ge(r," "),Ke(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return Ge(["extend input",t,Ge(r," "),Ke(n)]," ")}};function Ue(e){return function(t){return Ge([t.description,e(t)],"\n")}}function Ge(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function Ke(e){return e&&0!==e.length?"{\n"+He(Ge(e,"\n"))+"\n}":""}function Je(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t?e+t+r:""}function He(e){return e&&" "+e.replace(/\n/g,"\n ")}function Ye(e){return-1!==e.indexOf("\n")}function Xe(e){return e&&e.some(Ye)}var Ze,$e=r("hB68"),et=Object.assign((function(e){var t=Ze.get(e);return t||(t=function(e){return Object(Ie.b)(e,{leave:We})}(e),Ze.set(e,t)),t}),{reset:function(){Ze=new $e.b(ne.a.print||2e3)}});et.reset(),!1!==globalThis.__DEV__&&Object(ce.d)("print",(function(){return Ze?Ze.size:0}));var tt=r("zKVw"),rt=r("RiOv"),nt=r("8CQ5"),it=Object.create(null),ot=function(){return it},at=Object.create(null),st=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(je.a)(Object(le.g)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(le.g)(e)?r.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return Object(le.h)(e);if(Object(le.g)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Object(le.h)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return Object(f.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),nt.f.call(this.data,e)){var r=this.data[e];if(r&&nt.f.call(r,t))return r[t]}return"__typename"===t&&nt.f.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ft?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),nt.f.call(this.data,e)?this.data[e]:this instanceof ft?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;Object(le.g)(e)&&(e=e.__ref),Object(le.g)(t)&&(t=t.__ref);
1var i="string"===typeof e?this.lookup(r=e):e,o="string"===typeof t?this.lookup(r=t):t;if(o){Object(p.b)("string"===typeof r,2);var a=new ae.a(dt).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Object(nt.d)(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof ft||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:it,INVALIDATE:at,isReference:le.g,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"===typeof t?{fieldName:t,from:n||Object(le.h)(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(c){var u=Object(nt.d)(c),l=n[c];if(void 0!==l){var d="function"===typeof t?t:t[c]||t[u];if(d){var h=d===ot?it:d(Object(je.a)(l),Object(f.__assign)(Object(f.__assign)({},s),{fieldName:u,storeFieldName:c,storage:r.getStorage(e,c)}));if(h===at)r.group.dirty(e,c);else if(h===it&&(h=void 0),h!==l&&(i[c]=h,o=!0,l=h,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&p.b.warn(3,e),!0};if(Object(le.g)(h))y(h);else if(Array.isArray(h))for(var v=!1,b=void 0,m=0,g=h;m<g.length;m++){var O=g[m];
1if(Object(le.g)(O)){if(v=!0,y(O))break}else if("object"===typeof O&&O)r.policies.identify(O)[0]&&(b=O);if(v&&void 0!==b){!1!==globalThis.__DEV__&&p.b.warn(4,b);break}}}}void 0!==l&&(a=!1)}})),o)return this.merge(e,i),a&&(this instanceof ft?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=ot,n):ot)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(nt.f.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ft&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){nt.f.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&nt.f.call(e,r)||t.delete(r)})),e){var r=e.__META,n=Object(f.__rest)(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ft?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){nt.f.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof ft;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!nt.f.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){Object(le.g)(e)&&(t[e.__ref]=!0),Object(rt.a)(e)&&Object.keys(e).forEach((function(t){var r=e[t];Object(rt.a)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),ct=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Y():null,this.keyMaker=new w(ve.e)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(ut(e,t));var r=Object(nt.d)(t);r!==t&&this.d(ut(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ut(e,t),"__exists"===t?"forget":"setDirty")},e}();function ut(e,t){return t+"#"+e}function lt(e,t){ht(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new ct(i))||this;return a.stump=new pt(a),a.storageTrie=new w(ve.e),o&&a.replace(o),a}return Object(f.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(st||(st={}));var ft=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return Object(f.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){Object(te.b)(n[r],i[r])||t.group.dirty(e,r)}
1)):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(f.__assign)(Object(f.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return nt.f.call(this.data,t)?Object(f.__assign)(Object(f.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(st),pt=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new ct(t.group.caching,t.group))||this}return Object(f.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(ft);function dt(e,t,r){var n=e[r],i=t[r];return Object(te.b)(n,i)?n:i}function ht(e){return!!(e instanceof st&&e.group.caching)}var yt=function(){function e(){this.known=new(ve.f?WeakSet:Set),this.pool=new w(ve.e),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Object(rt.a)(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Object(rt.a)(e)){var t=function(e){return Object(rt.a)(e)?Object(Ce.a)(e)?e.slice(0):Object(f.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Object(rt.a)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function vt(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var bt=function(){function e(e){var t=this;this.knownResults=new(ve.e?WeakMap:Map),this.config=Object(tt.a)(e,{addTypename:!1!==e.addTypename,canonizeResults:Object(nt.j)(e)}),this.canon=e.canon||new yt,this.executeSelectionSet=ee((function(e){var r,n=e.context.canonizeResults,i=vt(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?Object(f.__assign)(Object(f.__assign)({},o),{result:t.canon.admit(o.result)}):o:(lt(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||ne.a["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:vt,makeCacheKey:function(e,t,r,n){if(ht(r.store))return r.store.makeCacheKey(e,Object(le.g)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=ee((function(e){return lt(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||ne.a["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(ht(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new yt},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,o=e.variables,a=e.returnPartialData,s=void 0===a||a,c=e.canonizeResults,u=void 0===c?this.config.canonizeResults:c,l=this.config.cache.policies;o=Object(f.__assign)(Object(f.__assign)({},Object(ie.b)(Object(ie.h)(r))),o);var p,d=Object(le.h)(i),h=this.executeSelectionSet({selectionSet:Object(ie.e)(r).selectionSet,objectOrReference:d,enclosingRef:d,context:Object(f.__assign)({store:t,query:r,policies:l,variables:o,varString:Object(ze.a)(o),canonizeResults:u},Object(nt.c)(r,this.config.fragments))});if(h.missing&&(p=[new xe(mt(h.missing),h.missing,r,o)],!s))throw p[0];return{result:h.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,r,n){if(ht(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,o=e.context;if(Object(le.g)(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,s=o.variables,c=o.policies,u=o.store.getFieldValue(n,"__typename"),l=[],f=new ae.a;function d(e,t){var r;return e.missing&&(a=f.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"===typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var h=new Set(r.selections);h.forEach((function(e){var r,y;if(Object(ue.d)(e,s))if(Object(le.e)(e)){var v=c.readField({fieldName:e.n
1ame.value,field:e,variables:o.variables,from:n},o),b=Object(le.i)(e);void 0===v?Qe.added(e)||(a=f.merge(a,((r={})[b]="Can't find field '".concat(e.name.value,"' on ").concat(Object(le.g)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):Object(Ce.a)(v)?v.length>0&&(v=d(t.executeSubSelectedArray({field:e,array:v,enclosingRef:i,context:o}),b)):e.selectionSet?null!=v&&(v=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:Object(le.g)(v)?v:i,context:o}),b)):o.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&l.push(((y={})[b]=v,y))}else{var m=Object(re.b)(e,o.lookupFragment);if(!m&&e.kind===ye.a.FRAGMENT_SPREAD)throw Object(p.d)(10,e.name.value);m&&c.fragmentMatches(m,u)&&m.selectionSet.selections.forEach(h.add,h)}}));var y={result:Object(ae.c)(l),missing:a},v=o.canonizeResults?this.canon.admit(y):Object(je.a)(y);return v.result&&this.knownResults.set(v.result,r),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new ae.a;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Object(Ce.a)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:Object(le.g)(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){Object(rt.a)(r)&&(Object(p.b)(!Object(le.g)(r),11,Object(nt.e)(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function mt(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var gt=Object.prototype.toString;function Ot(e){return _t(e)}function _t(e,t){switch(gt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=_t(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach((function(r){n[r]=_t(e[r],t)})),n;default:return e}}
1var jt=r("+EZA"),wt=new S.a,Et=new WeakMap;function St(e){var t=Et.get(e);return t||Et.set(e,t={vars:new Set,dep:Y()}),t}function kt(e){St(e).vars.forEach((function(t){return t.forgetCache(e)}))}function Tt(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){St(e).dep.dirty(n),xt(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=wt.getValue();s&&(i(s),St(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),St(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}function xt(e){e.broadcastWatches&&e.broadcastWatches()}var Dt=Object.create(null);function Pt(e){var t=JSON.stringify(e);return Dt[t]||(Dt[t]=Object.create(null))}function It(e){var t=Pt(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=Rt(e,(function(e){var i=Mt(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&nt.f.call(t,e[0])&&(i=Mt(t,e,Nt)),Object(p.b)(void 0!==i,5,e.join("."),t),i}));return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Ct(e){var t=Pt(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=Rt(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return Mt(t,e)}else{var a=r.slice(1);if(i&&nt.f.call(i,a)){var s=e.slice(0);return s[0]=a,Mt(i,s)}}else if(n&&Object(Ce.b)(n.directives)){var c=r.slice(1),u=n.directives.find((function(e){return e.name.value===c})),l=u&&Object(le.a)(u,i);return l&&Mt(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function Rt(e,t){var r=new ae.a;return Ft(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function Ft(e){var t=Pt(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){Object(Ce.a)(t)?(Ft(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),Object(Ce.a)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function Nt(e,t){return e[t]}function Mt(e,t,r){return r=r||Nt,At(t.reduce((function e(t,n){return Object(Ce.a)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function At(e){return Object(rt.a)(e)?Object(Ce.a)(e)?e.map(At):Rt(Object.keys(e).sort(),(function(t){return Mt(e,t)})):e}function qt(e){return void 0!==e.args?e.args:e.field?Object(le.a)(e.field,e.variables):null}var Qt=function(){},Vt=function(e,t){return t.fieldName},Lt=function(e,t,r){return(0,r.mergeObjects)(e,t)},Bt=function(e,t){return t},zt=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(f.__assign)({dataIdFromObject:nt.b},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o,a=t&&t.storeObject||e,s=Object(f.__assign)(Object(f.__assign)({},t),{typename:i,storeObject:a,readField:t&&t.readField||function(){var e=Ut(arguments,a);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),u=c&&c.keyFn||this.config.dataIdFromObject;return ge.withValue(!0,(function(){for(;u;){var t=u(Object(f.__assign)(Object(f.__assign)({},e),a),s);if(!Object(Ce.a)(t)){o=t;break}u=It(t)}})),o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=Object(f.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),nt.f.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?Lt:!1===t?Bt:e.merge}a(n,t.merge),n.keyFn=!1===i?Qt:Object(Ce.a)(i)?It(i):"function"===typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?Vt:Object(Ce.a)(s)?Ct(s):"function"===typeof s?s:n.keyFn,"function"===typeof c&&(n.read=c),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||Vt)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(Object(p.b)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(nt.a);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!nt.f.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return n.add(e)}))}}))),n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),i=n.fields,o=Object(f.__rest)(n,["fields"]);Object.assign(r,o),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var d=s[f];if(d.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&p.b.warn(7,t,o),a.add(o)),!0;d.forEach(c),u&&f===s.length-1&&Object(nt.i)(e.selectionSet,r,n)&&(u=!1,l=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=qt(e);o;){var c=o(s,a);if(!Object(Ce.a)(c)){t=c||n;break}o=Ct(c)}return void 0===t&&(t=e.field?Object(le.j)(e.field,e.variables):Object(le.b)(n,qt(e))),!1===t?n:n===Object(nt.d)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Object(nt.d)(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var u=Wt(this,r,e,t,t.store.getStorage(Object(le.g)(r)?r.__ref:r,i));return wt.withValue(this.cache,c,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===Lt?Gt(n.store)(e,t):s===Bt?t:(n.overwrite&&(e=void 0),s(e,t,Wt(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function Wt(e,t,r,n,i){var o=e.getStoreFieldName(r),a=Object(nt.d)(o),s=r.variables||n.variables,c=n.store,u=c.toReference,l=c.canRead;return{args:qt(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:le.g,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(Ut(arguments,t,s),n)},mergeObjects:Gt(n.store)}}function Ut(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"===typeof i?n={fieldName:i,from:a>1?o:t}:(n=Object(f.__assign)({},i),nt.f.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&p.b.warn(8,Object(jt.a)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function Gt(e){return function(t,r){if(Object(Ce.a)(t)||Object(Ce.a)(r))throw Object(p.d)(9);if(Object(rt.a)(t)&&Object(rt.a)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(Object(le.g)(t)&&Object(nt.k)(r))return e.merge(t.__ref,r),t;if(Object(nt.k)(t)&&Object(le.g)(r))return e.merge(t,r.__ref),r;if(Object(nt.k)(t)&&Object(nt.k)(r))return Object(f.__assign)(Object(f.__assign)({},t),r)}return r}}function Kt(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:Object(f.__assign)(Object(f.__assign)({},e),{clientOnly:t,deferred:r})),i}var Jt=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=Object(ie.f)(n),u=Object(nt.g)();a=Object(f.__assign)(Object(f.__assign)({},Object(ie.b)(c)),a);var l=Object(f.__assign)(Object(f.__assign)({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:a,varString:Object(ze.a)(a)},Object(nt.c)(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!Object(le.g)(d))throw Object(p.d)(12,i);
1return l.incomingById.forEach((function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=Object(le.h)(n);if(o&&o.map.size){var c=r.applyMerges(o,s,i,l);if(Object(le.g)(c))return;i=c}if(!1!==globalThis.__DEV__&&!l.overwrite){var u=Object.create(null);a.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===u[Object(nt.d)(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"===typeof t&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(Object(le.g)(o))return;if(Object(te.b)(o,a))return;if(Object.keys(o).every((function(e){return void 0!==n.getFieldValue(a,e)})))return;var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=Object(nt.d)(r),u="".concat(s,".").concat(c);if(er.has(u))return;er.add(u);var l=[];Object(Ce.a)(o)||Object(Ce.a)(a)||[o,a].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!==typeof t||l.includes(t)||l.push(t)}));!1!==globalThis.__DEV__&&p.b.warn(15,c,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,Object(f.__assign)({},o),Object(f.__assign)({},a))}(s,i,e,l.store)}))}e.merge(n,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),u=r&&s.rootTypenamesById[r]||Object(le.c)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"===typeof u&&(c.__typename=u);var l=function(){var e=Ut(arguments,c,o.variables);if(Object(le.g)(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField(Object(f.__assign)(Object(f.__assign)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},d=new Set;this.flattenFields(i,n,o,u).forEach((function(e,r){var i,o=Object(le.i)(r),f=n[o];if(d.add(r),void 0!==f){var h=s.getStoreFieldName({typename:u,fieldName:r.name.value,field:r,variables:e.variables}),y=Yt(a,h),v=t.processFieldValue(f,r,r.selectionSet?Kt(e,!1,!1):e,y),b=void 0;r.selectionSet&&(Object(le.g)(v)||Object(nt.k)(v))&&(b=l("__typename",v));var m=s.getMergeFunction(u,r.name.value,b);m?y.info={field:r,typename:u,merge:m}:$t(a,h),c=e.merge(c,((i={})[h]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Qe.added(r)||s.getReadFunction(u,r.name.value)||!1!==globalThis.__DEV__&&p.b.error(13,Object(le.i)(r),n)}));try{var h=s.identify(n,{typename:u,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:l}),y=h[0],v=h[1];r=r||y,v&&(c=o.merge(c,v))}catch(O){if(!r)throw O}if("string"===typeof r){var b=Object(le.h)(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(i)>=0)return b;if(m.push(i),this.reader&&this.reader.isFresh(n,b,i,o))return b;var g=o.incomingById.get(r);return g?(g.storeObject=o.merge(g.storeObject,c),g.mergeTree=Xt(g.mergeTree,a),d.forEach((function(e){return g.fieldNodeSet.add(e)}))):o.incomingById.set(r,{storeObject:c,mergeTree:Zt(a)?void 0:a,fieldNodeSet:d}),b}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Object(Ce.a)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,Yt(n,o));return $t(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?Ot(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=Object(le.c)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new w(!1);return function e(s,c){var u=a.lookup(s,c.clientOnly,c.deferred);u.visited||(u.visited=!0,s.selections.forEach((function(a){if(Object(ue.d)(a,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!Object(Ce.b)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=Object(le.a)(e,r.variables);n&&!1===n.if||(u=!0)}})),Object(le.e)(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(a,Kt(r,s,u))}else{var f=Object(re.b)(a,r.lookupFragment);if(!f&&a.kind===ye.a.FRAGMENT_SPREAD)throw Object(p.d)(14,a.name.value);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,Kt(r,s,u))}}})))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o,a=this;if(e.map.size&&!Object(le.g)(r)){var s,c=Object(Ce.a)(r)||!Object(le.g)(t)&&!Object(nt.k)(t)?void 0:t,u=r;c&&!i&&(i=[Object(le.g)(c)?c.__ref:c]);var l=function(e,t){return Object(Ce.a)(e)?"number"===typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach((function(e,t){var r=l(c,t),o=l(u,t);if(void 0!==o){i&&i.push(t);var f=a.applyMerges(e,r,o,n,i);f!==o&&(s=s||new Map).set(t,f),i&&Object(p.b)(i.pop()===t)}})),s&&(r=Object(Ce.a)(u)?u.slice(0):Object(f.__assign)({},u),s.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(o=n.store).getStorage.apply(o,i)):r},e}(),Ht=[];function Yt(e,t){var r=e.map;return r.has(t)||r.set(t,Ht.pop()||{map:new Map}),r.get(t)}function Xt(e,t){if(e===t||!t||Zt(t))return e;if(!e||Zt(e))return t;var r=e.info&&t.info?Object(f.__assign)(Object(f.__assign)({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var o=new Set(t.map.keys());e.map.forEach((function(e,r){i.map.set(r,Xt(e,t.map.get(r))),o.delete(r)})),o.forEach((function(r){i.map.set(r,Xt(t.map.get(r),e.map.get(r)))}))}return i}function Zt(e){return!e||!(e.info||e.map.size)}function $t(e,t){var r=e.map,n=r.get(t);n&&Zt(n)&&(Ht.push(n),r.delete(t))}var er=new Set;var tr=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Pe(Qe),r.assumeImmutableResults=!0,r.makeVar=Tt,r.txCount=0,r.config=Object(nt.h)(t),r.addTypename=!!r.config.addTypename,r.policies=new zt({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Object(f.__extends)(t,e),t.prototype.init=function(){var e=this.data=new st.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Jt(this,this.storeReader=new bt({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Object(nt.j)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=ee((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||ne.a["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(ht(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,Object(ze.a)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Object(f.__assign)(Object(f.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(n){if(n instanceof xe)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(nt.f.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Object(f.__assign)(Object(f.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||St(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&kt(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;ze.a.reset(),et.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Object(le.g)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&p.b.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(nt.f.call(e,"id"))return!1;e=Object(f.__assign)(Object(f.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),ze.a.reset(),e&&e.discardWatches?(this.watches.forEac
1h((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),kt(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var i=r,o=i.data,a=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},u=new Set;return s&&!this.txCount&&this.broadcastWatches(Object(f.__assign)(Object(f.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"===typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"===typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&u.size?(this.broadcastWatches(Object(f.__assign)(Object(f.__assign)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&u.delete(e),r}})),u.size&&u.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Object(te.b)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Te);function rr(e,t){return t?t(e):oe.a.of()}function nr(e){return"function"===typeof e?new or(e):e}function ir(e){return e.request.length<=1}!1!==globalThis.__DEV__&&(tr.prototype.getMemoryInternals=ce.c);var or=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return oe.a.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(nr).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i,o=nr(r),a=nr(n||new e(rr));return i=ir(o)&&ir(a)?new e((function(e){return t(e)?o.request(e)||oe.a.of():a.request(e)||oe.a.of()})):new e((function(e,r){return t(e)?o.request(e,r)||oe.a.of():a.request(e,r)||oe.a.of()})),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var r=Object(f.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"===typeof e?Object(f.__assign)(Object(f.__assign)({},r),e(r)):Object(f.__assign)(Object(f.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(f.__assign)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?Object(ie.g)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw Object(p.d)(46,i)}return e}(t))))||oe.a.of()},e.concat=function(t,r){var n=nr(t);if(ir(n))return!1!==globalThis.__DEV__&&p.b.warn(38,n),n;var i,o=nr(r);return i=ir(o)?new e((function(e){return n.request(e,(function(e){return o.request(e)||oe.a.of()}))||oe.a.of()})):new e((function(e,t){return n.request(e,(function(e){return o.request(e,t)||oe.a.of()}))||oe.a.of()})),Object.assign(i,{left:n,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(rr)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw Object(p.d)(39)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),ar=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=Object(p.d)(42,t,i.message);throw n.parseError=i,n}return r};function sr(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}
1function s(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return ve.a&&(u[Symbol.asyncIterator]=function(){return this}),u}function cr(e){var t={next:function(){return e.read()}};return ve.a&&(t[Symbol.asyncIterator]=function(){return this}),t}function ur(e){var t=e;if(e.body&&(t=e.body),function(e){return!(!ve.a||!e[Symbol.asyncIterator])}(t))return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return cr(t.getReader());if(function(e){return!!e.stream}(t))return cr(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return ve.a&&(r[Symbol.asyncIterator]=function(){return this}),r}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return sr(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var lr=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},fr=r("PKC9");function pr(e){return"incremental"in e}function dr(e){return Object(rt.a)(e)&&"payload"in e}function hr(e,t){var r=e,n=new ae.a;return pr(t)&&Object(Ce.b)(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)})),r}var yr=Object.prototype.hasOwnProperty;function vr(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function br(e,t){if(e.status>=300){lr(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var mr={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},gr=function(e,t){return t(e)};function Or(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach((function(e){i=Object(f.__assign)(Object(f.__assign)(Object(f.__assign)({},i),e.options),{headers:Object(f.__assign)(Object(f.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=Object(f.__assign)(Object(f.__assign)({},o),e.http)})),i.headers&&(i.headers=_r(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,c=e.variables,u=e.query,l={operationName:a,variables:c};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(u,et)),{options:i,body:l}}function _r(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n={};Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i={};return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}function jr(e){return new oe.a((function(t){t.error(e)}))}var wr=Object(p.c)((function(){return fetch})),Er=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?gr:i,a=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,d=Object(f.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"===typeof fetch)throw Object(p.d)(40)}(n||wr);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new or((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),a={};if(i.clientAwareness){var s=i.clientAwareness,u=s.name,d=s.version;u&&(a["apollographql-client-name"]=u),d&&(a["apollographql-client-version"]=d)}var y=Object(f.__assign)(Object(f.__assign)({},a),i.headers),v={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:y};if(Object(ue.c)(["client"],e.query)){var b=Le(e.query);if(!b)return jr(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=b}var m,g=Or(e,o,mr,h,v),O=g.options,_=g.body;_.variables&&!l&&(_.variables=function(e,t){var r=Object(f.__assign)({},e),n=new Set(Object.keys(e));return Object(Ie.b)(t,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach((function(e){delete r[e]})),r}(_.variables,e.query)),O.signal||"undefined"===typeof AbortController||(m=new AbortController,O.signal=m.signal);var j,w="OperationDefinition"===(j=Object(ie.e)(e.query)).kind&&"subscription"===j.operation,E=Object(ue.c)(["defer"],e.query);if(c&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(O.method="GET"),E||w){O.headers=O.headers||{};var S="multipart/mixed;";w&&E&&!1!==globalThis.__DEV__&&p.b.warn(41),w?S+="boundary=graphql;subscriptionSpec=1.0,application/json":E&&(S+="deferSpec=20220824,application/json"),O.headers.accept=S}if("GET"===O.method){var k=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=ar(t.variables,"Variables map")}catch(x){return{parseError:x}}n("variables",i)}if(t.extensions){var o=void 0;try{o=ar(t.extensions,"Extensions map")}catch(x){return{parseError:x}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}(t,_),T=k.newURI,x=k.parseError;if(x)return jr(x);t=T}else try{O.body=ar(_,"Payload")}catch(x){return jr(x)}return new oe.a((function(r){var i=n||Object(p.c)((function(){return fetch}))||wr,o=r.next.bind(r);return i(t,O).then((function(t){var r;e.setContext({response:t});var n,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var r,n,i,o,a,s,c,u,l,p,d,h,y,v,b,m,g,O,_,j,w,E,S,k;return Object(f.__generator)(this,(function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(k=e.headers)||void 0===k?void 0:k.get("content-type"),i="boundary=",o=(null===n||void 0===n?void 0:n.includes(i))?null===n||void 0===n?void 0:n.substring((null===n||void 0===n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",c=ur(e),u=!0,T.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(l=T.sent(),p=l.value,d=l.done,h="string"===typeof p?p:r.decode(p),y=s.length-a.length+1,u=!d,v=(s+=h).indexOf(a,y);v>-1;){if(b=void 0,E=[s.slice(0,v),s.slice(v+a.length)],s=E[1],m=(b=E[0]).indexOf("\r\n\r\n"),g=vr(b.slice(0,m)),(O=g["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
1if(_=b.slice(m))if(j=br(e,_),Object.keys(j).length>1||"data"in j||"incremental"in j||"errors"in j||"payload"in j)if(dr(j)){if(w={},"payload"in j){if(1===Object.keys(j).length&&null===j.payload)return[2];w=Object(f.__assign)({},j.payload)}"errors"in j&&(w=Object(f.__assign)(Object(f.__assign)({},w),{extensions:Object(f.__assign)(Object(f.__assign)({},"extensions"in w?w.extensions:null),(S={},S[fr.b]=j.errors,S))})),t(w)}else t(j);else if(1===Object.keys(j).length&&"hasNext"in j&&!j.hasNext)return[2];v=s.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):(n=e,function(e){return e.text().then((function(t){return br(e,t)})).then((function(t){return Array.isArray(t)||yr.call(t,"data")||yr.call(t,"errors")||lr(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName,"'.")),t}))})(t).then(o)})).then((function(){m=void 0,r.complete()})).catch((function(e){m=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){m&&m.abort()}}))}))},Sr=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Er(t).request)||this;return r.options=t,r}return Object(f.__extends)(t,e),t}(or),kr=or.execute,Tr=r("Dn9b");function xr(e,t,r){return new oe.a((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function Dr(e){var t=Pr(e);return Object(Ce.b)(t)}function Pr(e){var t=Object(Ce.b)(e.errors)?e.errors.slice(0):[];return pr(e)&&Object(Ce.b)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var Ir=r("6l/j");function Cr(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function Rr(e){function t(t){Object.defineProperty(e,t,{value:oe.a})}return ve.d&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Fr(e){return e&&"function"===typeof e.then}var Nr=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),Cr(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),Cr(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Fr(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)}),r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Cr(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch((function(e){})),"function"===typeof t&&(t=[new oe.a(t)]),Fr(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return Object(f.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}
1))},t}(oe.a);Rr(Nr);var Mr=r("bb5K");var Ar=Object.assign,qr=Object.hasOwnProperty,Qr=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var r=e._subscription._observer;r&&!r.error&&(r.error=Lr)}catch(t){}var n=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(o.maskResult(i.result)),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=zr(i.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var a=r.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,c=void 0===s?"cache-first":s,u=i.fetchPolicy,l=void 0===u?c:u,p=i.initialFetchPolicy,d=void 0===p?"standby"===l?c:l:p;o.options=Object(f.__assign)(Object(f.__assign)({},i),{initialFetchPolicy:d,fetchPolicy:l}),o.queryId=n.queryId||r.generateQueryId();var h=Object(ie.f)(o.query);return o.queryName=h&&h.name&&h.name.value,o}return Object(f.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||Mr.a.ready,n=Object(f.__assign)(Object(f.__assign)({},t),{loading:Object(Mr.b)(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(zr(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),Object(te.b)(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,!a.complete||n.networkStatus!==Mr.a.loading||"cache-first"!==o&&"cache-only"!==o||(n.networkStatus=Mr.a.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||Br(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),n=this.queryManager.dataMasking,i=n?r.nonReactiveQuery:this.query;return(n||r.hasNonreactiveDirective?!fe(i,this.last.result,e,this.variables):!Object(te.b)(this.last.result,e))||t&&!Object(te.b)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Object(te.b)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&qr.call(e,"variables")){var i=Object(ie.h)(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&p.b.warn(21,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!Object(te.b)(this.options.variables,e)&&(r.variables=this.options.variables=Object(f.__assign)(Object(f.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,Mr.a.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Object(f.__assign)(Object(f.__assign)({},e.query?e:Object(f.__assign)(Object(f.__assign)(Object(f.__assign)(Object(f.__assign)({},this.options),{query:this.options.query}),e),{variables:Object(f.__assign)(Object(f.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=Mr.a.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null===e||void 0===e?void 0:e.updateQuery,c="no-cache"!==this.options.fetchPolicy;return c||Object(p.b)(s,22),this.queryManager.fetchQuery(n,r,Mr.a.fetchMore).then((function(u){if(t.queryManager.removeQuery(n),i.networkStatus===Mr.a.fetchMore&&(i.networkStatus=o),c)t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:u.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:u.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var l=t.getLast("result"),p=s(l.data,{fetchMoreResult:u.data,variables:r.variables});t.reportResult(Object(f.__assign)(Object(f.__assign)({},l),{data:p}),t.variables)}return t.maskResult(u)})).finally((function(){c&&!a.has(t.query)&&Vr(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&p.b.error(23,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=Object(tt.a)(this.options,e||{});Ar(this.options,t)},t.prototype.setVariables=function(e){return Object(te.b)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Mr.a.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r&&this.hasObservers()){if(!t||t.interval!==r){Object(p.b)(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(Object(Mr.b)(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Mr.a.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Object(te.b)(t,this.last.variables)&&(r=void 0),this.last=Object(f.__assign)({result:this.queryManager.assumeImmutableResults?e:Ot(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===Mr.a.refetch||t===Mr.a.fetchMore||t===Mr.a.poll,i=this.options.variables,o=this.options.fetchPolicy,a=Object(tt.a)(this.options,e||{}),s=n?a:Ar(this.options,a),c=this.transformDocument(s.query);this.lastQuery=c,n||(this.updatePolling(),!e||!e.variables||Object(te.b)(e.variables,i)||"standby"===s.fetchPolicy||s.fetchPolicy!==o&&"function"!==typeof s.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=Mr.a.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=zr(s.fetchPolicy));var u=function(){r.concast===d&&(r.waitForOwnResult=!1)},l=s.variables&&Object(f.__assign)({},s.variables),p=this.fetch(s,t,c),d=p.concast,h=p.fromLink,y={next:function(e){Object(te.b)(r.variables,l)&&(u(),r.reportResult(e,l))},error:function(e){Object(te.b)(r.variables,l)&&(Object(fr.d)(e)||(e=new fr.a({networkError:e})),u(),r.reportError(e,l))}};return n||!h&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=y),d.addObserver(y),d},t.prototype.reobserve=function(e,t){return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch((function(){})),r;var r},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&Cr(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=Object(f.__assign)(Object(f.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Mr.a.error,loading:!1});this.updateLastResult(r,t),Cr(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?Object(f.__assign)(Object(f.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(oe.a);function Vr(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function Lr(e){!1!==globalThis.__DEV__&&p.b.error(25,e.message,e.stack)}function Br(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&p.b.debug(26,e)}function zr(e){return"network-only"===e||"no-cache"===e||"standby"===e}Rr(Qr);var Wr=new(ve.e?WeakMap:Map);function Ur(e,t){var r=e[t];"function"===typeof r&&(e[t]=function(){return Wr.set(e,(Wr.get(e)+1)%1e15),r.apply(this,arguments)})}function Gr(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Kr=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;Wr.has(r)||(Wr.set(r,0),Ur(r,"evict"),Ur(r,"modify"),Ur(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Mr.a.loading;return this.variables&&this.networkStatus!==Mr.a.loading&&!Object(te.b)(this.variables,e.variables)&&(t=Mr.a.setVariables),Object(te.b)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Gr(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Object(te.b)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||Object(te.b)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return r.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Vr(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1Gr(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(Mr.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=Object(f.__assign)(Object(f.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Object(te.b)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===Wr.get(this.cache)&&Object(te.b)(t,r.variables)&&Object(te.b)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new ae.a,a=Object(Ce.b)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Object(Ce.b)(e.incremental)){var s=hr(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Jr(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:Wr.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&Object(te.b)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Mr.a.ready},e.prototype.markError=function(e){return this.networkStatus=Mr.a.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Jr(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!Dr(e);return!n&&r&&e.data&&(n=!0),n}var Hr=Object.prototype.hasOwnProperty,Yr=Object.create(null),Xr=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new $e.b(ne.a["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new w(!1),this.noCacheWarningsByQueryId=new Set;var r=new Pe((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(Object(p.d)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return Object(f.__awaiter)(this,arguments,void 0,(function(e){var t,r,n,i,o,a,s,c=e.mutation,u=e.variables,l=e.optimisticResponse,d=e.updateQueries,h=e.refetchQueries,y=void 0===h?[]:h,v=e.awaitRefetchQueries,b=void 0!==v&&v,m=e.update,g=e.onQueryUpdated,O=e.fetchPolicy,_=void 0===O?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":O,j=e.errorPolicy,w=void 0===j?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":j,E=e.keepRootFields,S=e.context;return Object(f.__generator)(this,(function(e){switch(e.label){case 0:return Object(p.b)(c,28),Object(p.b)("network-only"===_||"no-cache"===_,29),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,u=this.getVariables(c,u),r?[4,this.localState.addExportedVariables(c,u,S)]:[3,2];case 1:u=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:u,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:c,variables:u,fetchPolicy:_,errorPolicy:w,context:S,updateQueries:d,update:m,keepRootFields:E}),this.broadcastQueries(),o=this,[2,new Promise((function(e,r){return xr(o.getObservableFromLink(c,Object(f.__assign)(Object(f.__assign)({},S),{optimisticResponse:i?l:void 0}),u,{},!1),(function(e){if(Dr(e)&&"none"===w)throw new fr.a({graphQLErrors:Pr(e)});n&&(n.loading=!1,n.error=null);var r=Object(f.__assign)({},e);return"function"===typeof y&&(y=y(r)),"ignore"===w&&Dr(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:c,variables:u,fetchPolicy:_,errorPolicy:w,context:S,update:m,updateQueries:d,awaitRefetchQueries:b,refetchQueries:y,removeOptimistic:i?t:void 0,onQueryUpdated:g,keepRootFields:E})})).subscribe({next:function(r){o.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e(Object(f.__assign)(Object(f.__assign)({},r),{data:o.maskOperation({document:c,data:r.data,fetchPolicy:_,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof fr.a?e:new fr.a({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&Jr(n,e.errorPolicy)){if(pr(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),pr(n)&&Object(Ce.b)(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),s=void 0;a.result&&(s=hr(a.result,n)),"undefined"!==typeof s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&Hr.call(c,s)){var u=c[s],l=r.queries.get(o),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var y=u(h,{mutationResult:n,queryName:f&&Object(ie.g)(f)||void 0,queryVariables:p});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var a,s=e.update,c=!(pr(a=n)||function(e){return"hasNext"in e&&"data"in e}(a))||pr(n)&&!n.hasNext;if(s){if(!o){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=Object(f.__assign)(Object(f.__assign)({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return u.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then((function(){return n}))}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"===typeof e?e(t.variables,{IGNORE:Yr}):e;return n!==Yr&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(Object(f.__assign)(Object(f.__assign)({},t),{result:{data:n}}),e)}catch(i){!1!==globalThis.__DEV__&&p.b.error(i)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:Object(ue.b)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Object(ue.c)(["nonreactive"],e),nonReactiveQuery:Be(e),clientQuery:this.localState.clientQuery(e),serverQuery:qe([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:Object(ie.b)(Object(ie.f)(e)),asQuery:Object(f.__assign)(Object(f.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Object(f.__assign)(Object(f.__assign)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(f.__assign)(Object(f.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);"undefined"===typeof(e=Object(f.__assign)(Object(f.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Kr(this),n=new Qr({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),Object(p.b)(e.query,30),Object(p.b)("Document"===e.query.kind,31),Object(p.b)(!e.returnPartialData,32),Object(p.b)(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,Object(f.__assign)(Object(f.__assign)({},e),{query:n})).then((function(i){return i&&Object(f.__assign)(Object(f.__assign)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(Object(p.d)(34)),this.queries.forEac
1h((function(e){e.observableQuery?e.networkStatus=Mr.a.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach((function(e){if("string"===typeof e)n.set(e,e),i.set(e,!1);else if(Object(le.d)(e)){var r=et(t.transform(e));n.set(r,Object(ie.g)(e)),i.set(r,!1)}else Object(rt.a)(e)&&e.query&&o.add(e)})),this.queries.forEach((function(t,n){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(n,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(et(a)))&&(r.set(n,o),s&&i.set(s,!0),a&&i.set(et(a),!0))}})),o.size&&o.forEach((function(e){var n=Object(Ir.a)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new Qr({queryManager:t,queryInfo:i,options:Object(f.__assign)(Object(f.__assign)({},e),{fetchPolicy:"network-only"})});Object(p.b)(o.queryId===n),i.setObservableQuery(o),r.set(n,o)})),!1!==globalThis.__DEV__&&i.size&&i.forEach((function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&p.b.warn(35,r):!1!==globalThis.__DEV__&&p.b.warn(36)}})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,c,e,l).map((function(n){"no-cache"!==i&&(Jr(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=Dr(n),s=Object(fr.c)(n);if(o||s){var c={};if(o&&(c.graphQLErrors=n.errors),s&&(c.protocolErrors=n.extensions[fr.b]),"none"===a||s)throw new fr.a(c)}return"ignore"===a&&delete n.errors,n}))};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,c).then(f);return new oe.a((function(e){var t=null;return p.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,a,s=this;void 0===i&&(i=null!==(o=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),u=c.serverQuery,l=c.clientQuery;if(u){var p=this.inFlightLinkObservables,d=this.link,h={query:u,variables:r,operationName:Object(ie.g)(u)||void 0,context:this.prepareContext(Object(f.__assign)(Object(f.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=h.context,i){var y=et(u),v=Object(ze.a)(r),b=p.lookup(y,v);if(!(a=b.observable)){var m=new Nr([kr(d,h)]);a=b.observable=m,m.beforeNext((function(){p.remove(y,v)}))}}else a=new Nr([kr(d,h)])}else a=new Nr([oe.a.of({data:{}})]),t=this.prepareContext(t);return l&&(a=xr(a,(function(e){return s.localState.runResolvers({document:l,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return xr(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=Pr(o),s=a.length>0,c=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===c)throw e.markError(new fr.a({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:Mr.a.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=a,u.networkStatus=Mr.a.error),u}),(function(t){var r=Object(fr.d)(t)?t:new fr.a({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=Mr.a.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,d=void 0===p?u&&u.errorPolicy||"none":p,h=t.returnPartialData,y=void 0!==h&&h,v=t.notifyOnNetworkStatusChange,b=void 0!==v&&v,m=t.context,g=void 0===m?{}:m,O=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:d,returnPartialData:y,notifyOnNetworkStatusChange:b,context:g}),_=function(e){O.variables=e;var n=i.fetchQueryByPolicy(c,O,r);return"standby"!==O.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},j=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){j(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(O.query).hasClientExports)o=new Nr(this.localState.addExportedVariables(O.query,O.variables,O.context).then(_).then((function(e){return e.sources}))),a=!0;else{var w=_(O.variables);a=w.fromLink,o=new Nr(w.sources)}return o.promise.then(j,j),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?Object(Ir.a)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Kr&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,s=e.id,c=null===(t=Object(ie.f)(i))||void 0===t?void 0:t.operation,u=(null!==(r=null===c||void 0===c?void 0:c[0])&&void 0!==r?r:"o")+s;!this.dataMasking||"no-cache"!==a||Object(re.d)(i)||this.noCacheWarningsByQueryId.has(u)||(this.noCacheWarningsByQueryId.add(u),!1!==globalThis.__DEV__&&p.b.warn(37,null!==(n=Object(ie.g)(i))&&void 0!==n?n:"Unnamed ".concat(null!==c&&void 0!==c?c:"operation")))}return this.dataMasking?function(e,t,r){var n;if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&_e(),e;var i=Object(ie.f)(t);return Object(p.b)(i,51),null==e?e:we(e,i.selectionSet,{operationType:i.operation,operationName:null===(n=i.name)||void 0===n?void 0:n.value,fragmentMap:Object(re.a)(Object(ie.d)(t)),cache:r,mutableTargets:new be,knownChanged:new me})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?ke(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var h=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||Mr.a.loading);var a=t.result;!1===globalThis.__DEV__||u||Object(te.b)(a,{})||Br(t.missing);var s=function(e){return oe.a.of(Object(f.__assign)({data:e,loading:Object(Mr.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):"none"===c&&r===Mr.a.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},v="no-cache"===a?0:r===Mr.a.refetch&&"merge"!==s?1:2,b=function(){return n.getResultsFromLink(e,v,{query:i,variables:o,context:l,fetchPolicy:a,errorPolicy:c})},m=p&&"number"===typeof d&&d!==r&&Object(Mr.b)(r);switch(a){default:case"cache-first":return(g=h()).complete?{fromLink:!1,sources:[y(g,e.markReady())]}:u||m?{fromLink:!0,sources:[y(g),b()]}:{fromLink:!0,sources:[b()]};case"cache-and-network":var g;return(g=h()).complete||u||m?{fromLink:!0,sources:[y(g),b()]}:{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(h(),e.markReady())]};case"network-only":return m?{fromLink:!0,sources:[y(h()),b()]}:{fromLink:!0,sources:[b()]};case"no-cache":return m?{fromLink:!0,sources:[y(e.getDiff()),b()]}:{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Kr(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(f.__assign)(Object(f.__assign)(Object(f.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function Zr(e){return e.kind===ye.a.FIELD||e.kind===ye.a.FRAGMENT_SPREAD||e.kind===ye.a.INLINE_FRAGMENT}var $r=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(ae.b)(t.resolvers,e)})):this.resolvers=Object(ae.b)(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){return Object(f.__awaiter)(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(f.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then((function(e){return Object(f.__assign)(Object(f.__assign)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(ue.c)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Le(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(f.__assign)(Object(f.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return Object(f.__awaiter)(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(f.__generator)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(f.__assign)(Object(f.__assign)({},t),e.exportedVariables)}))]:[2,Object(f.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Ie.b)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Ie.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ve(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return Object(f.__awaiter)(this,arguments,void 0,(function(e,t,r,n,i,o){var a,s,c,u,l,p,d,h,y,v;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(f.__generator)(this,(function(b){return a=Object(ie.e)(e),s=Object(ie.d)(e),c=Object(re.a)(s),u=this.collectSelectionsToResolve(a,c),l=a.operation,p=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(d=this).cache,y=d.client,v={fragmentMap:c,context:Object(f.__assign)(Object(f.__assign)({},r),{cache:h,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,c,u=this;return Object(f.__generator)(this,(function(l){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],c=function(e){return Object(f.__awaiter)(u,void 0,void 0,(function(){var c,u;return Object(f.__generator)(this,(function(l){return(t||n.selectionsToResolve.has(e))&&Object(ue.d)(e,a)?Object(le.e)(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;"undefined"!==typeof t&&s.push(((r={})[Object(le.i)(e)]=t,r))}))]:(Object(le.f)(e)?c=e:(c=i[e.name.value],Object(p.b)(c,19,e.name.value)),c&&c.typeCondition&&(u=c.typeCondition.name.value,n.fragmentMatcher(r,u,o))?[2,this.resolveSelectionSet(c.selectionSet,t,r,n).then((function(e){s.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return Object(ae.c)(s)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,p,d,h=this;return Object(f.__generator)(this,(function(f){return r?(i=n.variables,o=e.name.value,a=Object(le.i)(e),s=o!==a,c=r[a]||r[o],u=Promise.resolve(c),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=r.__typename||n.defaultOperationType,(p=this.resolvers&&this.resolvers[l])&&(d=p[s?o:a])&&(u=Promise.resolve(wt.withValue(this.cache,d,[r,Object(le.a)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,u.then((function(r){var i,o;
1if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),Object(Ie.b)(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach((function(e){r(e)&&Zr(e)&&o.add(e)}))},FragmentSpread:function(n,i,a,s,c){var u=t[n.name.value];Object(p.b)(u,20,n.name.value);var l=e(u);l.size>0&&(c.forEach((function(e){r(e)&&Zr(e)&&o.add(e)})),o.add(n),l.forEach((function(e){o.add(e)})))}})}return n.get(i)}(e)},e}(),en=r("g0nf"),tn=!1,rn=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw Object(p.d)(16);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,c=e.ssrMode,u=void 0!==c&&c,l=e.ssrForceFetchDelay,d=void 0===l?0:l,h=e.connectToDevTools,y=e.queryDeduplication,v=void 0===y||y,b=e.defaultOptions,m=e.defaultContext,g=e.assumeImmutableResults,O=void 0===g?a.assumeImmutableResults:g,_=e.resolvers,j=e.typeDefs,w=e.fragmentMatcher,E=e.name,S=e.version,k=e.devtools,T=e.dataMasking,x=e.link;x||(x=n?new Sr({uri:n,credentials:i,headers:o}):or.empty()),this.link=x,this.cache=a,this.disableNetworkFetches=u||d>0,this.queryDeduplication=v,this.defaultOptions=b||Object.create(null),this.typeDefs=j,this.devtoolsConfig=Object(f.__assign)(Object(f.__assign)({},k),{enabled:null!==(t=null===k||void 0===k?void 0:k.enabled)&&void 0!==t?t:h}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),d&&setTimeout((function(){return r.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Tr.a,this.localState=new $r({cache:a,client:this,resolvers:_,fragmentMatcher:w}),this.queryManager=new Xr({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:s,queryDeduplication:v,ssrMode:u,dataMasking:!!T,clientAwareness:{name:E,version:S},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,tn||!1===globalThis.__DEV__||(tn=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"===typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&p.b.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(en.a)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(f.__assign)(Object(f.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(en.a)(this.defaultOptions.query,e)),Object(p.b)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(f.__assign)(Object(f.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(en.a)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map((function(n){return Object(f.__assign)(Object(f.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})}))},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(Object(f.__assign)(Object(f.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return kr(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).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({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var i=Promise.all(n);return i.queries=r,i.results=n,i.catch((function(e){!1!==globalThis.__DEV__&&p.b.debug(18,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();function nn(e){return new or((function(t,r){return new oe.a((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(s){e({networkError:s,operation:t,forward:r}),n.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!1!==globalThis.__DEV__&&(rn.prototype.getMemoryInternals=ce.b);!function(e){function t(t){var r=e.call(this)||this;return r.link=nn(t),r}Object(f.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(or);var on=r("8etK");function an(e){var t=Object.create(null),r=Object.create(null);return Object(Ce.b)(e)&&e.forEach((function(e){var n;t[e.message]=e,"string"==typeof(null===(n=e.extensions)||void 0===n?void 0:n.code)&&(r[e.extensions.code]=e)})),{persistedQueryNotSupported:!(!t.PersistedQueryNotSupported&&!r.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!(!t.PersistedQueryNotFound&&!r.PERSISTED_QUERY_NOT_FOUND)}}var sn={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};var cn=function(e){var t;function r(){t=void 0}Object(p.b)(e&&("function"===typeof e.sha256||"function"===typeof e.generateHash),43);var n=Object(tt.a)(sn,e),i=n.sha256,o=n.generateHash,a=void 0===o?function(e){return Promise.resolve(i(et(e)))}:o,s=n.disable,c=n.retry,u=n.useGETForHashedQueries,l=!0,d=function(e){return new Promise((function(t){return t(a(e))}))};return Object.assign(new or((function(e,n){Object(p.b)(n,44);var i=e.query;return new oe.a((function(o){var a,p,h=!1,y=!1,v=function(t,i){var o=t.response,u=t.networkError;if(!h&&(o&&o.errors||u)){h=!0;var f=[],d=o&&o.errors;Object(Ce.b)(d)&&f.push.apply(f,d);var v=void 0;"string"!==typeof(null===u||void 0===u?void 0:u.result)&&(v=u&&u.result&&u.result.errors),Object(Ce.b)(v)&&f.push.apply(f,v);var m={response:o,networkError:u,operation:e,graphQLErrors:Object(Ce.b)(f)?f:void 0,meta:an(f)};if((l=!s(m))||r(),c(m))return a&&a.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:l},fetchOptions:{method:"POST"}}),y&&e.setContext({fetchOptions:p}),void(a=n(e).subscribe(b))}i()},b={next:function(e){v({response:e},(function(){return o.next(e)}))},error:function(e){v({networkError:e},(function(){return o.error(e)}))},complete:o.complete.bind(o)};return e.setContext({http:{includeQuery:!l,includeExtensions:l}}),u&&l&&!function(e){return e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))}(e)&&(e.setContext((function(e){var t=e.fetchOptions,r=void 0===t?{}:t;return p=r,{fetchOptions:Object(f.__assign)(Object(f.__assign)({},r),{method:"GET"})}})),y=!0),l?function(e){if(!e||"object"!==typeof e)return d(e);t||(t=new $e.b(ne.a["PersistedQueryLink.persistedQueryHashes"]||2e3));var r=t.get(e);return r||t.set(e,r=d(e)),r}(i).then((function(t){e.extensions.persistedQuery={version:1,sha256Hash:t},a=n(e).subscribe(b)}
1)).catch(o.error.bind(o)):a=n(e).subscribe(b),function(){a&&a.unsubscribe()}}))})),{resetHashCache:r},!1!==globalThis.__DEV__?{getMemoryInternals:function(){var e;return{PersistedQueryLink:{persistedQueryHashes:null!==(e=null===t||void 0===t?void 0:t.size)&&void 0!==e?e:0}}}}:{})},un=r("9NtJ"),ln=r("DPir"),fn=r("g0fa");var pn,dn=function(e){function t(t){var r=e.call(this)||this;return r.client=t,r}return Object(f.__extends)(t,e),t.prototype.request=function(e){var t=this;return new oe.a((function(r){return t.client.subscribe(Object(f.__assign)(Object(f.__assign)({},e),{query:et(e.query)}),{next:r.next.bind(r),complete:r.complete.bind(r),error:function(e){if(e instanceof Error)return r.error(e);var t,n=(t=e,Object(rt.a)(t)&&"code"in t&&"reason"in t);return n||function(e){var t;return Object(rt.a)(e)&&(null===(t=e.target)||void 0===t?void 0:t.readyState)===WebSocket.CLOSED}(e)?r.error(new Error("Socket closed".concat(n?" with event ".concat(e.code):"").concat(n?" ".concat(e.reason):""))):r.error(new fr.a({graphQLErrors:Array.isArray(e)?e:[e]}))}})}))},t}(or),hn=r("gw6v");function yn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bn(e){var t=e.getVariables,r=e.coreEndpoint,n=e.userAgent,i="".concat(r,"/public/api/v1/graphql"),o=new or((function(e,r){return e.setContext((function(e){var r=e.headers,n=void 0===r?{}:r,i=t(),o=i.locale,a=i.token;return{headers:vn({systemId:i.systemId,locale:o,authorization:a?"Bearer ".concat(a):null},n)}})),r(e)})),a={};n&&(a["user-agent"]=n);var s=or.from([new Sr({uri:i,headers:a})]),c=s,u=t(),l=u.locale,f=u.token,p=u.systemId,d=new dn(Object(hn.createClient)({url:"".concat(i.replace("http","ws"),"/subscriptions"),connectionParams:{systemId:p,locale:l,authToken:f}}));return c=or.split((function(e){var t=e.query,r=Object(ie.e)(t);return"OperationDefinition"===r.kind&&"subscription"===r.operation}),d,s),new rn({name:"public-web",ssrMode:!1,link:or.from([cn({sha256:un.sha256,useGETForHashedQueries:!0}),o,nn((function(e){var t=e.graphQLErrors,r=e.networkError,n=e.operation,i=e.response;(t&&t.find((function(e){return"ERR_INVALID_AUTH_TOKEN"===e.code}))||r&&"statusCode"in r&&(401===r.statusCode||403===r.statusCode)||"currentUserQuery"===n.operationName&&i&&i.data&&null===i.data.currentUser)&&v.a.clear(null,b.a)})),nn((function(e){var t=e.graphQLErrors,r=e.networkError,n=e.operation;if(t||r){var i=ln.p?"true":"false";if(t)t.map((function(e){var t=e.code,n=e.message,o="[GraphQL error]: ".concat(t,": ").concat(n);fn.a.withScope((function(e){e.setFingerprint(["Type: GraphQLError","Code: ".concat(t),"Message: ".concat(n)]),r&&e.setExtra("networkError",r),e.setTag("ssr",i),fn.a.captureException(new Error(o))}))}));else if(r){var o="[Network error]: ".concat(r);n&&n.operationName&&(o+=", operationName: ".concat(n.operationName)),fn.a.withScope((function(e){e.setFingerprint(["Type: GraphQLNetworkError"]),e.setTag("ssr",i),fn.a.captureException(new Error(o))}))}}})),c]),cache:new tr({possibleTypes:on,typePolicies:{Query:{fields:{analytics:{merge:function(e,t){return vn(vn({},e),t)}},checkOrderCompletion:{merge:function(e,t){return t}},sanitySettings:{merge:function(e,t){return t}}}},User:{fields:{unpaidOrders:{merge:function(e,t){return t}},productRenewals:{merge:function(e,t){return t}}}}}}),defaultOptions:{watchQuery:{errorPolicy:"all"},query:{errorPolicy:"all"},mutate:{errorPolicy:"all"}}})}function mn(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,n=null!==(e=pn)&&void 0!==e?e:bn(r);if(t){var i=n.extract();n.cache.restore(vn(vn({},t),i))}return pn||(pn=n),n}function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?gn(Object(r),!0).forEach((function(t){Object(a.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _n=l()(),jn=_n.publicRuntimeConfig.CORE_ENDPOINT,wn=_n.serverRuntimeConfig.CORE_ENDPOINT_SERVER,En=jn,Sn=!1;function kn(e,t){var r=v.a.parse(),n=(e||window.__NEXT_DATA__.props).locale;return{systemId:t,token:r[b.a],locale:n}}function Tn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ssr,n=void 0===r||r,a=function(t){var r=t.apolloClient,n=t.apolloState,i=Object(c.a)(t,["apolloClient","apolloState"]),o=r||mn(n||{},{connectToDevTools:Sn,coreEndpoint:En,getVariables:function(){return kn(null,i.systemConfig.id)}});return Object(s.jsx)(y,{client:o,children:Object(s.jsx)(e,On({},i))})};return(n||e.getInitialProps)&&(a.getInitialProps=function(){var t=Object(o.a)(i.a.mark((function t(r){var o,a,s,c,u,l;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=(r.req||window.__NEXT_DATA__.props).systemConfig,r.apolloClient=mn({},{connectToDevTools:Sn,coreEndpoint:En,getVariables:function(){return kn(r.req||null,o.id)},userAgent:r.req?r.req.headers["user-agent"]:void 0}),!e.getInitialProps){t.next=9;break}return t.next=6,e.getInitialProps(r);case 6:t.t0=t.sent,t.next=10;break;case 9:t.t0={};case 10:a=t.t0,t.next=32;break;case 14:if(!n){t.next=32;break}return t.prev=15,t.next=18,r.apolloClient.query({query:m.a});case 18:if(s=t.sent,c=s.data){t.next=22;break}throw new Error("Could not load settings data");case 22:if(c.system){t.next=27;break}throw r.res&&(r.res.statusCode=404),(u=new Error("Could not find system")).code="ENOENT",u;case 27:t.next=32;break;
1case 29:t.prev=29,t.t1=t.catch(15),"ENOENT"!==t.t1.code&&console.error("Error while running `getDataFromTree`",t.t1);case 32:return l=r.apolloClient.cache.extract(),t.abrupt("return",On(On({},a),{},{apolloState:l}));case 34:case"end":return t.stop()}}),t,null,[[15,29]])})));return function(e){return t.apply(this,arguments)}}()),a}function xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ssr,n=void 0===r||r;return Tn(e,{ssr:n})}wn&&(En=wn)},sHDe:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"f",(function(){return a})),r.d(t,"g",(function(){return s})),r.d(t,"d",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"c",(function(){return l})),r.d(t,"e",(function(){return f})),r.d(t,"b",(function(){return p}));var n=r("j2l1"),i=r("56Qq");function o(e){Object(n.b)(e&&"Document"===e.kind,88);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw Object(n.d)(89,e.kind);return e}));return Object(n.b)(t.length<=1,90,t.length),e}function a(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function s(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function c(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function u(e){var t=a(e);return Object(n.b)(t&&"query"===t.operation,91),t}function l(e){Object(n.b)("Document"===e.kind,92),Object(n.b)(e.definitions.length<=1,93);var t=e.definitions[0];return Object(n.b)("FragmentDefinition"===t.kind,94),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw Object(n.d)(95)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&Object(i.k)(t,e.variable.name,e.defaultValue)})),t}}}]); 2//# sourceMappingURL=9d68b398956f4c7287d7a9dfcd637ed082c1c14f.594b2897ee506cf3c7b6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.