PageSourceSearch

https://blog.careem.com/_next/static/chunks/pages/_app-e7808ac0c47de447.js

js careem.com collected 2026-09-24 08:30:01 UTC 213,793 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{1916:e=>{"use strict";e.exports={mapHttpRequest:function(e){return{req:n(e)}},reqSerializer:n};let t=Symbol("pino-raw-req-ref"),r=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function n(e){let t=e.info||e.socket,n=Object.create(r);return n.id="function"==typeof e.id?e.id():e.id||(e.info?e.info.id:void 0),n.method=e.method,e.originalUrl?(n.url=e.originalUrl,n.query=e.query,n.params=e.params):n.url=e.path||(e.url?e.url.path||e.url:void 0),n.headers=e.headers,n.remoteAddress=t&&t.remoteAddress,n.remotePort=t&&t.remotePort,n.raw=e.raw||e,n}Object.defineProperty(r,t,{writable:!0,value:{}})},3303:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global===o||o.window===o||o.self;var a,s=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,h=String.fromCharCode;function p(e){throw RangeError(l[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+d((e=e.replace(c,".")).split("."),t).join(".")}function y(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?(64512&(r=e.charCodeAt(i++)))==56320?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function m(e){return d(e,function(e){var t="";return e>65535&&(e-=65536,t+=h(e>>>10&1023|55296),e=56320|1023&e),t+=h(e)}).join("")}function g(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function b(e,t,r){var n=0;for(e=r?f(e/700):e>>1,e+=f(e/t);e>455;n+=36)e=f(e/35);return f(n+36*e/(e+38))}function _(e){var t,r,n,i,o,a,s,u,c,l,h,d=[],v=e.length,y=0,g=128,_=72;for((n=e.lastIndexOf("-"))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&p("not-basic"),d.push(e.charCodeAt(i));for(o=n>0?n+1:0;o<v;){for(a=y,s=1,u=36;o>=v&&p("invalid-input"),((c=(t=e.charCodeAt(o++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||c>f((0x7fffffff-y)/s))&&p("overflow"),y+=c*s,!(c<(l=u<=_?1:u>=_+26?26:u-_));u+=36){;s>f(0x7fffffff/(h=36-l))&&p("overflow"),s*=h}_=b(y-a,r=d.length+1,0==a),f(y/r)>0x7fffffff-g&&p("overflow"),g+=f(y/r),y%=r,d.splice(y++,0,g)}return m(d)}function w(e){var t,r,n,i,o,a,s,u,c,l,d,v,m,_,w,E=[];for(a=0,v=(e=y(e)).length,t=128,r=0,o=72;a<v;++a)(d=e[a])<128&&E.push(h(d));for(n=i=E.length,i&&E.push("-");n<v;){for(s=0x7fffffff,a=0;a<v;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>f((0x7fffffff-r)/(m=n+1))&&p("overflow"),r+=(s-t)*m,t=s,a=0;a<v;++a)if((d=e[a])<t&&++r>0x7fffffff&&p("overflow"),d==t){for(u=r,c=36;!(u<(l=c<=o?1:c>=o+26?26:c-o));c+=36)w=u-l,_=36-l,E.push(h(g(l+w%_,0))),u=f(w/_);E.push(h(g(u,0))),o=b(r,m,n==i),r=0,++n}++r,++t}return E.join("")}a={version:"1.4.1",ucs2:{decode:y,encode:m},decode:_,encode:w,toASCII:function(e){return v(e,function(e){return u.test(e)?"xn--"+w(e):e})},toUnicode:function(e){return v(e,function(e){return s.test(e)?_(e.slice(4).toLowerCase()):e})}},void 0!==(n=(function(){return a}).call(t,r,t,e))&&(e.exports=n)}(0)},4902:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>A,__assign:()=>o,__asyncDelegator:()=>T,__asyncGenerator:()=>S,__asyncValues:()=>k,__await:()=>O,__awaiter:()=>d,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>P,__classPrivateFieldSet:()=>N,__createBinding:()=>y,__decorate:()=>s,__disposeResources:()=>q,__esDecorate:()=>c,__exportStar:()=>m,__extends:()=>i,__generator:()=>v,__importDefault:()=>C,__importStar:()=>
1j,__makeTemplateObject:()=>I,__metadata:()=>p,__param:()=>u,__propKey:()=>f,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>M,__runInitializers:()=>l,__setFunctionName:()=>h,__spread:()=>_,__spreadArray:()=>E,__spreadArrays:()=>w,__values:()=>g,default:()=>L});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h=!1,p=r.length-1;p>=0;p--){var d={};for(var v in n)d[v]="access"===v?{}:n[v];for(var v in n.access)d.access[v]=n.access[v];d.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var y=(0,r[p])("accessor"===u?{get:f.get,set:f.set}:f[c],d);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(s=a(y.get))&&(f.get=s),(s=a(y.set))&&(f.set=s),(s=a(y.init))&&i.unshift(s)}else(s=a(y))&&("field"===u?i.unshift(s):f[c]=s)}l&&Object.defineProperty(l,n.name,f),h=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function v(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){var c=[s,u];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
1function O(e){return this instanceof O?(this.v=e,this):new O(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof O?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function T(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},D=function(e){return(D=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function j(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=D(e),n=0;n<r.length;n++)"default"!==r[n]&&y(t,e,r[n]);return x(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function R(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function N(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function A(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function q(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function M(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,o){return r?t?".jsx":".js":!n||i&&o?n+i+"."+o.toLowerCase()+"js":e}):e}let L={__extends:i,__assign:o,__rest:a,__decorate:s,__param:u,__esDecorate:c,__runInitializer
1s:l,__propKey:f,__setFunctionName:h,__metadata:p,__awaiter:d,__generator:v,__createBinding:y,__exportStar:m,__values:g,__read:b,__spread:_,__spreadArrays:w,__spreadArray:E,__await:O,__asyncGenerator:S,__asyncDelegator:T,__asyncValues:k,__makeTemplateObject:I,__importStar:j,__importDefault:C,__classPrivateFieldGet:R,__classPrivateFieldSet:N,__classPrivateFieldIn:P,__addDisposableResource:A,__disposeResources:q,__rewriteRelativeImportExtension:M}},12815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){console.warn("[react-gtm]",e)}},15427:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(12815));e.exports={tags:function(e){var t=e.id,r=e.events,i=e.dataLayer,o=e.dataLayerName,a=e.preview,s="&gtm_auth="+e.auth,u="&gtm_preview="+a;t||(0,n.default)("GTM Id is required");var c="\n      (function(w,d,s,l,i){w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js', "+JSON.stringify(r).slice(1,-1)+"});\n        var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\n        j.async=true;
1j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl+'"+s+u+"&gtm_cookies_win=x';\n        f.parentNode.insertBefore(j,f);\n      })(window,document,'script','"+o+"','"+t+"');";return{iframe:'\n      <iframe src="https://www.googletagmanager.com/ns.html?id='+t+s+u+'&gtm_cookies_win=x"\n        height="0" width="0" style="display:none;visibility:hidden" id="tag-manager"></iframe>',script:c,dataLayerVar:this.dataLayer(i,o)}},dataLayer:function(e,t){return"\n      window."+t+" = window."+t+" || [];\n      window."+t+".push("+JSON.stringify(e)+")"}}},21160:(e,t,r)=>{"use strict";var n=r(39947),i=r(75536),o=r(44978),a=Symbol("startTime");e.exports=function(e,t){e&&e._writableState&&(t=e,e=null),(e=Object.assign({},e)).customAttributeKeys=e.customAttributeKeys||{};var r,s,u,c,l,f=e.customAttributeKeys.req||"req",h=e.customAttributeKeys.res||"res",p=e.customAttributeKeys.err||"err",d=e.customAttributeKeys.reqId||"reqId",v=e.customAttributeKeys.responseTime||"responseTime";delete e.customAttributeKeys;var y=e.customProps||e.reqCustomProps||{};if(e.wrapSerializers=!("wrapSerializers"in e)||e.wrapSerializers,e.wrapSerializers){e.serializers=Object.assign({},e.serializers);var m=e.serializers[f]||e.serializers.req||i.req,g=e.serializers[h]||e.serializers.res||i.res,b=e.serializers[p]||e.serializers.err||i.err;e.serializers[f]=i.wrapRequestSerializer(m),e.serializers[h]=i.wrapResponseSerializer(g),e.serializers[p]=i.wrapErrorSerializer(b)}if(delete e.wrapSerializers,e.useLevel&&e.customLogLevel)throw Error("You can't pass 'useLevel' and 'customLogLevel' together");var _=e.useLevel||"info",w=e.customLogLevel;delete e.useLevel,delete e.customLogLevel;var E=e.stream||t;delete e.stream;var O=!1!==e.autoLogging,S=e.autoLogging&&e.autoLogging.ignore?e.autoLogging.ignore:null,T=e.autoLogging&&e.autoLogging.ignorePaths?e.autoLogging.ignorePaths:[],k=e.autoLogging&&e.autoLogging.getPath?e.autoLogging.getPath:null;delete e.autoLogging;var I=e.customSuccessMessage||function(){return"request completed"},x=e.customErrorMessage||function(){return"request errored"};delete e.customSuccessfulMessage,delete e.customErroredMessage;var D=!!e.quietReqLogger,j=(r=e,s=E,u=r.logger,c=r.genReqId,l=null,u?(r.logger=void 0,r.genReqId=void 0,l=u.child({},r),r.logger=u,r.genReqId=c):l=n(r,s),l),C=function(e){if("function"==typeof e)return e;var t=0;return function(e){return e.id||(t=t+1&0x7fffffff)}}(e.genReqId);return N.logger=j,N;function R(e){this.removeListener("error",R),this.removeListener("finish",R);var t=this.log,r=Date.now()-this[a],n=w?w(this,e):_;if(e||this.err||this.statusCode>=500){var i=e||this.err||Error("failed with status code "+this.statusCode);t[n]({[h]:this,[p]:i,[v]:r},x(i,this));return}t[n]({[h]:this,[v]:r},I(this))}function N(e,t,r){var n,i=!0;e.id=C(e);var s=D?j.child({[d]:e.id}):j,u=s.child({[f]:e}),c="function"==typeof y?y(e,t):y;t.log=u=u.child(c),e.log=D?s:u,t[a]=t[a]||Date.now(),O&&(T.length&&(n=k?o.parse(k(e)):o.parse(e.url),i=!T.find(e=>e instanceof RegExp?e.test(n.pathname):e===n.pathname)),null!==S&&!0===i&&(i=!(null!==S&&S(e))),i&&t.on("finish",R),t.on("error",R)),r&&r()}},e.exports.stdSerializers={err:i.err,req:i.req,res:i.res},e.exports.startTime=a},21978:()=>{},39947:(e,t,r)=>{"use strict";let n=r(49499);e.exports=o;let i=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function o(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let l=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let f=e.serializers||{},v=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(f),y=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(y=!1),"function"==typeof l&&(l.error=l.fatal=l.warn=l.info=l.debug=l.trace=l),!1===e.enabled&&(e.level="silent");let m=e.level||"info",g=Object.create(l);g.log||(g.log=h),Object.defineProperty(g,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(g,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,a(b,g,"error","log"),a(b,g,"fatal","error"),a(b,g,"warn","error"),a(b,g,"info","log"),a(b,g,"debug","log"),a(b,g,"trace","log")}});let b={transmit:n,serialize:v,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?p:d};return g.levels=o.levels,g.level=m,g.setMaxListeners=g.getMaxListeners=g.emit=g.addListener=g.on=g.prependListener=g.once=g.prepe
1ndOnceListener=g.removeListener=g.removeAllListeners=g.listeners=g.listenerCount=g.eventNames=g.write=g.flush=h,g.serializers=f,g._serialize=v,g._stdErrSerialize=y,g.child=function(t,r){if(!t)throw Error("missing bindings for child Pino");r=r||{},v&&t.serializers&&(r.serializers=t.serializers);let i=r.serializers;if(v&&i){var o=Object.assign({},f,i),a=!0===e.browser.serialize?Object.keys(o):v;delete t.serializers,s([t],a,o,this._stdErrSerialize)}function l(e){this._childLevel=(0|e._childLevel)+1,this.error=u(e,t,"error"),this.fatal=u(e,t,"fatal"),this.warn=u(e,t,"warn"),this.info=u(e,t,"info"),this.debug=u(e,t,"debug"),this.trace=u(e,t,"trace"),o&&(this.serializers=o,this._serialize=a),n&&(this._logEvent=c([].concat(e._logEvent.bindings,t)))}return l.prototype=this,new l(this)},n&&(g._logEvent=c()),g}function a(e,t,r,a){let u=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?h:u[r]?u[r]:i[r]||i[a]||h,function(e,t,r){if(e.transmit||t[r]!==h){var a;t[r]=(a=t[r],function(){let u=e.timestamp(),l=Array(arguments.length),f=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h<l.length;h++)l[h]=arguments[h];if(e.serialize&&!e.asObject&&s(l,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?a.call(f,function(e,t,r,i){e._serialize&&s(r,e._serialize,e.serializers,e._stdErrSerialize);let a=r.slice(),u=a[0],c={};i&&(c.time=i),c.level=o.levels.values[t];let l=(0|e._childLevel)+1;if(l<1&&(l=1),null!==u&&"object"==typeof u){for(;l--&&"object"==typeof a[0];)Object.assign(c,a.shift());u=a.length?n(a.shift(),a):void 0}else"string"==typeof u&&(u=n(a.shift(),a));return void 0!==u&&(c.msg=u),c}(this,r,l,u)):a.apply(f,l),e.transmit){let n=e.transmit.level||t.level,i=o.levels.values[n],a=o.levels.values[r];if(a<i)return;(function(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,u=t.val,l=e._logEvent.bindings;s(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(e){return -1===l.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,u),e._logEvent=c(l)})(this,{ts:u,methodLevel:r,methodValue:a,transmitLevel:n,transmitValue:o.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},l)}})}}(e,t,r)}function s(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=o.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i]))for(let n in e[i])t&&t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function u(e,t,r){return function(){let n=Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function c(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function l(){return{}}function f(e){return e}function h(){}function p(){return!1}function d(){return Date.now()}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers={mapHttpRequest:l,mapHttpResponse:l,wrapRequestSerializer:f,wrapResponseSerializer:f,wrapErrorSerializer:f,req:l,res:l,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}},o.stdTimeFunctions=Object.assign({},{nullTime:p,epochTime:d,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},42263:(e,t,r)=>{"use strict";let n,i;r.r(t),r.d(t,{default:()=>id});var o,a,s,u,c,l=r(37876),f=r(14232),h=r(4902),p="Invariant Violation",d=Object.setPrototypeOf,v=void 0===d?function(e,t){return e.__proto__=t,e}:d,y=function(e){function t(r){void 0===r&&(r=p);var n=e.call(this,"number"==typeof r?p+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=p,v(n,t.prototype),n}return(0,h.__extends)(t,e),t}(Error);function m(e,t){if(!e)throw new y(t)}var g=["debug","log","warn","error","silent"],b=g.indexOf("log");function _(e){return function(){if(g.indexOf(e)>=b)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=_("debug"),e.log=_("log"),e.warn=_("warn"),e.error=_("error")}(m||(m={}));var w="3.12.5";function E(e){try{return e()}catch(e){}}let O=E(function(){return globalThis})||E(function(){return window}
1)||E(function(){return self})||E(function(){return global})||E(function(){return E.constructor("return this")()});var S=new Map;function T(e){var t=S.get(e)||1;return S.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function k(e,t){void 0===t&&(t=0);var r=T("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}function I(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=R(i))||(t=N(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var x=Object.assign(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||m(e,R(t,r)||N(t,r))},{debug:I(m.debug),log:I(m.log),warn:I(m.warn),error:I(m.error)});function D(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new y(R(e,t)||N(e,t))}var j=Symbol.for("ApolloErrorMessageHandler_"+w);function C(e){if("string"==typeof e)return e;try{return k(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function R(e,t){if(void 0===t&&(t=[]),e)return O[j]&&O[j](e,t.map(C))}function N(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:w,message:e,args:t.map(C)})))}globalThis.__DEV__;var P=r(60427),A=r.t(P,2),F="ReactNative"==E(function(){return navigator.product}),q="function"==typeof WeakMap&&!(F&&!global.HermesInternal),M="function"==typeof WeakSet,L="function"==typeof Symbol&&"function"==typeof Symbol.for,V=L&&Symbol.asyncIterator,Q=(E(function(){return window.document.createElement}),E(function(){return navigator.userAgent.indexOf("jsdom")>=0}),L?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__"),z=function(e){var t,r=e.client,n=e.children,i=(x("createContext"in A,54),(t=P.createContext[Q])||(Object.defineProperty(P.createContext,Q,{value:t=P.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t),o=P.useContext(i),a=P.useMemo(function(){return(0,h.__assign)((0,h.__assign)({},o),{client:r||o.client})},[o,r]);return x(a.client,55),P.createElement(i.Provider,{value:a},n)},B=r(85410);let U=(0,f.createContext)(),W=e=>{let{children:t}=e;return(0,l.jsx)(U.Provider,{value:{posts:[]},children:t})};var H=r(77328),K=r.n(H),G=r(42723),$=r.n(G),J=r(48641);function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function X(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Z(e,t,r){return t&&X(e.prototype,t),r&&X(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r(66689),r(21978);var ee=function(){return"function"==typeof Symbol},et=function(e){return ee()&&!!Symbol[e]},er=function(e){return et(e)?Symbol[e]:"@@"+e};ee()&&!et("observable")&&(Symbol.observable=Symbol("observable"));var en=er("iterator"),ei=er("observable"),eo=er("species");function ea(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function es(e){var t=e.constructor;return void 0!==t&&null===(t=t[eo])&&(t=void 0),void 0!==t?t:ey}function eu(e){eu.log?eu.log(e):setTimeout(function(){throw e})}function ec(e){Promise.resolve().then(function(){try{e()}catch(e){eu(e)}})}function el(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=ea(t,"unsubscribe");r&&r.call(t)}}catch(e){eu(e)}}function ef(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function eh(e,t,r){e._state="running";var n=e._observer;try{var i=ea(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(ef(e),i)i.call(n,r);else throw r;break;case"complete":ef(e),i&&i.call(n)}}catch(e){eu(e)}"closed"===e._state?el(e):"running"===e._state&&(e._state="ready")}function ep(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],ec(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(eh(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}eh(e,t,r)}}var ed=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new ev(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(ef(this),el(this))},Z(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ev=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ep(this._subscription,"next",e)},t.error=function(e){ep(this._subscription,"error",e)},t.complete=function(){ep(this._subscription,"complete")},Z(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ey=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw 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 ed(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(es(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(es(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=es(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=es(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 TypeError(e+" is not a function");var r=es(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[ei]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=ea(t,ei);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof ey&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(et("iterator")&&(n=ea(t,en)))return new r(function(e){ec(function(){if(!e.closed){for(var r,i=function(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){if("string"==typeof e)return Y(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){ec(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){ec(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},Z(e,null,[{key:eo,get:function(){return this}}]),e}();function em(e){return null!==e&&"object"==typeof e}ee()&&Object.defineProperty(ey,Symbol("extensions"),{value:{symbol:ei,hostReportError:eu},configurable:!0});Symbol.toStringTag,Symbol.toStringTag;let eg={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eb=new Set(Object.keys(eg));function e_(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&eb.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(o||(o={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
1ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(a||(a={}));let ew=Object.freeze({});function eE(e,t,r=eg){let n,i,o,s=new Map;for(let e of Object.values(a))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let u=Array.isArray(e),c=[e],l=-1,f=[],h=e,p=[],d=[];do{var v,y,m;let e,a=++l===c.length,g=a&&0!==f.length;if(a){if(i=0===d.length?void 0:p[p.length-1],h=o,o=d.pop(),g)if(u){h=h.slice();let e=0;for(let[t,r]of f){let n=t-e;null===r?(h.splice(n,1),e++):h[n]=r}}else for(let[e,t]of(h=Object.defineProperties({},Object.getOwnPropertyDescriptors(h)),f))h[e]=t;l=n.index,c=n.keys,f=n.edits,u=n.inArray,n=n.prev}else if(o){if(null==(h=o[i=u?l:c[l]]))continue;p.push(i)}if(!Array.isArray(h)){e_(h)||function(e,t){if(!e)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var i=t,o=n;if(0===i.length)return"[]";if(o.length>2)return"[Array]";let r=Math.min(10,i.length),a=i.length-r,s=[];for(let t=0;t<r;++t)s.push(e(i[t],o));return 1===a?s.push("... 1 more item"):a>1&&s.push(`... ${a} more items`),"["+s.join(", ")+"]"}var a=t,s=n;let u=Object.entries(a);return 0===u.length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(a)+"]":"{ "+u.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(h,[])}.`);let r=a?null===(v=s.get(h.kind))||void 0===v?void 0:v.leave:null===(y=s.get(h.kind))||void 0===y?void 0:y.enter;if((e=null==r?void 0:r.call(t,h,i,o,p,d))===ew)break;if(!1===e){if(!a){p.pop();continue}}else if(void 0!==e&&(f.push([i,e]),!a))if(e_(e))h=e;else{p.pop();continue}}void 0===e&&g&&f.push([i,h]),a?p.pop():(n={inArray:u,index:l,keys:c,edits:f,prev:n},c=(u=Array.isArray(h))?h:null!==(m=r[h.kind])&&void 0!==m?m:[],l=-1,f=[],o&&d.push(o),o=h)}while(void 0!==n);return 0!==f.length?f[f.length-1][1]:e}function eO(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw D(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(x(1===n.length,86,n.length),r=n[0].name.value),(0,h.__assign)((0,h.__assign)({},e),{definitions:(0,h.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function eS(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function eT(e,t){switch(e.kind){case"InlineFragment":return e;
1case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return x(n,87,r),n||null;default:return null}}function ek(){}let eI="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},ex="undefined"!=typeof WeakMap?WeakMap:Map,eD="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:ek,unregister:ek}};class ej{constructor(e=1/0,t=ek){this.max=e,this.dispose=t,this.map=new ex,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new eI(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new eD(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function eC(){}class eR{constructor(e=1/0,t=eC){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var eN=new WeakSet;function eP(e){e.size<=(e.max||-1)||eN.has(e)||(eN.add(e),setTimeout(function(){e.clean(),eN.delete(e)},100))}var eA=function(e,t){var r=new ej(e,t);return r.set=function(e,t){var r=ej.prototype.set.call(this,e,t);return eP(this),r},r},eF=function(e,t){var r=new eR(e,t);return r.set=function(e,t){var r=eR.prototype.set.call(this,e,t);return eP(this),r},r},eq=Symbol.for("apollo.cacheSize"),eM=(0,h.__assign)({},O[eq]),eL={},eV=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,eM[t]||r]})),sizes:(0,h.__assign)({print:null===(e=eL.print)||void 0===e?void 0:e.call(eL),parser:null===(t=eL.parser)||void 0===t?void 0:t.call(eL),canonicalStringify:null===(r=eL.canonicalStringify)||void 0===r?void 0:r.call(eL),links:function e(t){var r;return t?(0,h.__spreadArray)((0,h.__spreadArray)([null===(r=null==t?void 0:t.getMemoryInternals)||void 0===r?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(eW):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:eH(this.queryManager.documentTransform)}},null===(i=(n=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(n))}}:void 0,eQ=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,h.__assign)((0,h.__assign)({},eB.apply(this)),{addTypenameDocumentTransform:eH(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:eU(this.storeReader.executeSelectionSet),executeSubSelectedArray:eU(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:eU(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:eU(null==e?void 0:e.findFragmentSpreads),lookup:eU(null==e?void 0:e.lookup),transform:eU(null==e?void 0:e.transform)}})}:void 0,ez=!1!==globalThis.__DEV__?eB:void 0;function eB(){return{cache:{fragmentQueryDocuments:eU(this.getFragmentDoc)}}}function eU(e){return e&&"dirtyKey"in e?e.size:void 0}function eW(e){return null!=e}function eH(e){return(function e(t){return t?(0,h.__spreadArray)((0,h.__spreadArray)([eU(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(eW):[]})(e).map(function(e){return{cache:e}})}var eK=Object.assign(function(e){return JSON.stringify(e,eG)},{reset:function(){s=new eF(eM.canonicalStringify||1e3)}});function eG(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(e$))return t;var i=JSON.stringify(n),o=s.get(i);if(!o){n.sort();var a=JSON.stringify(n);o=s.get(a)||n,s.set(i,o),s.set(a,o)}var u=Object.create(r);return o.forEach(function(e){u[e]=t[e]}),u}}return t}function e$(e,t,r){return 0===t||r[t-1]<=e}function eJ(e){return{__ref:String(e)}}function eY(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function eX(e,t,r,n){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var i={};r.fields.map(function(e){return eX(i,e.name,e.value,n)}),e[t.value]=i}
1else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return eX(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw D(96,t.value,r.kind)}!1!==globalThis.__DEV__&&(eL.canonicalStringify=function(){return s.size}),eK.reset();var eZ=["connection","include","skip","client","rest","export","nonreactive"],e0=eK,e1=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{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(e0(i),")")}var o=e;if(t){var a=e0(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===eZ.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(e0(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=e0;return e0=e,t}});function e2(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return eX(r,e.name,e.value,t)}),r}return null}function e3(e){return e.alias?e.alias.value:e.name.value}function e5(e,t,r){for(var n,i=0,o=t.selections;i<o.length;i++){var a=o[i];if(e4(a)){if("__typename"===a.name.value)return e[e3(a)]}else n?n.push(a):n=[a]}if("string"==typeof e.__typename)return e.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var a=u[s],c=e5(e,eT(a,r).selectionSet,r);if("string"==typeof c)return c}}function e4(e){return"Field"===e.kind}function e8(e){x(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw D(89,e.kind);return e});return x(t.length<=1,90,t.length),e}function e7(e){return e8(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function e6(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function e9(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function te(e){var t=e7(e);return x(t&&"query"===t.operation,91),t}function tt(e){x("Document"===e.kind,92),x(e.definitions.length<=1,93);var t=e.definitions[0];return x("FragmentDefinition"===t.kind,94),t}function tr(e){e8(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw D(95)}function tn(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&eX(t,e.variable.name,e.defaultValue)}),t}function ti(e,t){return t?t(e):ey.of()}function to(e){return"function"==typeof e?new ts(e):e}function ta(e){return e.request.length<=1}var ts=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return ey.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(to).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i,o=to(r),a=to(n||new e(ti));return Object.assign(new e(ta(o)&&ta(a)?function(e){return t(e)?o.request(e)||ey.of():a.request(e)||ey.of()}:function(e,r){return t(e)?o.request(e,r)||ey.of():a.request(e,r)||ey.of()}),{left:o,right:a})},e.execute=function(e,t){var r,n,i,o;return e.request((i=t.context,(n={variables:(r=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(0>t.indexOf(i))throw D(46,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?e6(n.query)||void 0:""),o=(0,h.__assign)({},i),Object.defineProperty(n,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?(0,h.__assign)((0,h.__assign)({},o),e(o)):(0,h.__assign)((0,h.__assign)({},o),e)}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:function(){return(0,h.__assign)({},o)}}),n))||ey.of()},e.concat=function(t,r){var n,i=to(t);if(ta(i))return!1!==globalThis.__DEV__&&x.warn(38,i),i;var o=to(r);return Object.assign(new e(ta(o)?function(e){return i.request(e,function(e){return o.request(e)||ey.of()})||ey.of()}:function(e,t){return i.request(e,function(e){return o.request(e,t)||ey.of()})||ey.of()}),{left:i,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ti)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw 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}(),tu=ts.execute;function tc(e,t){var r,n,i=e.directives;return!i||!i.length||(n=[],(r=i)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,i=e.name.value;x(r&&1===r.length,79,i);var o=r[0];x(o.name&&"if"===o.name.value,80,i);var a=o.value;x(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,i),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?x(void 0!==(i=t&&t[n.value.name.value]),78,r.name.value):i=n.value.value,"skip"===r.name.value?!i:i})}function tl(e,t,r){var n=new Set(e),i=n.size;return eE(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return ew}}),r?!n.size:n.size<i}var tf=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=D(42,t,e.message);throw n.parseError=e,n}return r},th=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};function tp(e){var t={next:function(){return e.read()}};return V&&(t[Symbol.asyncIterator]=function(){return this}),t}var td=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},tv=Symbol();function ty(e){return e.hasOwnProperty("graphQLErrors")}var tm=function(e){var t=(0,h.__spreadArray)((0,h.__spreadArray)((0,h.__spreadArray)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return em(e)&&e.message||"Error message not found."}).join("\n")},tg=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,u=r.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=a||null,c.message=s||tm(c),c.extraInfo=u,c.cause=(0,h.__spreadArray)((0,h.__spreadArray)((0,h.__spreadArray)([a],n||[],!0),i||[],!0),o||[],!0).find(function(e){return!!e})||null,c.__proto__=t.prototype,c}return(0,h.__extends)(t,e),t}(Error),tb=Array.isArray;function t_(e){return Array.isArray(e)&&e.length>0}var tw=Object.prototype.hasOwnProperty;function tE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tO(e)}function tO(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new tT,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
1var tS=function(e,t,r){return this.merge(e[r],t[r])},tT=function(){function e(e){void 0===e&&(e=tS),this.reconciler=e,this.isObject=em,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return em(t)&&em(e)?(Object.keys(t).forEach(function(i){if(tw.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,(0,h.__spreadArray)([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return em(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,h.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function tk(e){return"incremental"in e}function tI(e,t){var r=e,n=new tT;return tk(t)&&t_(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 tx=Object.prototype.hasOwnProperty;function tD(e,t){e.status>=300&&td(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(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var tj=function(e){if(!e&&"undefined"==typeof fetch)throw D(40)};function tC(e){return 9===e||32===e}let tR=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tN(e){return tP[e.charCodeAt(0)]}let tP=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],tA={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>tF(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=tM("(",tF(e.variableDefinitions,", "),")"),r=tF([e.operation,tF([e.name,t]),tF(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+tM(" = ",r)+tM(" ",tF(n," "))},SelectionSet:{leave:({selections:e})=>tq(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=tM("",e,": ")+t,a=o+tM("(",tF(r,", "),")");return a.length>80&&(a=o+tM("(\n",tL(tF(r,"\n")),"\n)")),tF([a,tF(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+tM(" ",tF(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>tF(["...",tM("on ",e),tF(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${tM("(",tF(r,", "),")")} on ${t} ${tM("",tF(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every(e=>0===e.length||tC(e.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!i||e.length>70||c||o||a,f="",h=i&&tC(e.charCodeAt(0));return(l&&!h||o)&&(f+="\n"),f+=r,(l||c)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(tR,tN)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+tF(e,", ")+"]"}
1,ObjectValue:{leave:({fields:e})=>"{"+tF(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+tM("(",tF(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>tM("",e,"\n")+tF(["schema",tF(t," "),tq(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>tM("",e,"\n")+tF(["scalar",t,tF(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>tM("",e,"\n")+tF(["type",t,tM("implements ",tF(r," & ")),tF(n," "),tq(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>tM("",e,"\n")+t+(tV(r)?tM("(\n",tL(tF(r,"\n")),"\n)"):tM("(",tF(r,", "),")"))+": "+n+tM(" ",tF(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>tM("",e,"\n")+tF([t+": "+r,tM("= ",n),tF(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>tM("",e,"\n")+tF(["interface",t,tM("implements ",tF(r," & ")),tF(n," "),tq(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>tM("",e,"\n")+tF(["union",t,tF(r," "),tM("= ",tF(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>tM("",e,"\n")+tF(["enum",t,tF(r," "),tq(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>tM("",e,"\n")+tF([t,tF(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>tM("",e,"\n")+tF(["input",t,tF(r," "),tq(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>tM("",e,"\n")+"directive @"+t+(tV(r)?tM("(\n",tL(tF(r,"\n")),"\n)"):tM("(",tF(r,", "),")"))+(n?" repeatable":"")+" on "+tF(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>tF(["extend schema",tF(e," "),tq(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>tF(["extend scalar",e,tF(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tF(["extend type",e,tM("implements ",tF(t," & ")),tF(r," "),tq(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tF(["extend interface",e,tM("implements ",tF(t," & ")),tF(r," "),tq(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>tF(["extend union",e,tF(t," "),tM("= ",tF(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>tF(["extend enum",e,tF(t," "),tq(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>tF(["extend input",e,tF(t," "),tq(r)]," ")}};function tF(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function tq(e){return tM("{\n",tL(tF(e,"\n")),"\n}")}function tM(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function tL(e){return tM("  ",e.replace(/\n/g,"\n  "))}function tV(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var tQ=Object.assign(function(e){var t=u.get(e);return!t&&(t=eE(e,tA),u.set(e,t)),t},{reset:function(){u=new eA(eM.print||2e3)}});tQ.reset(),!1!==globalThis.__DEV__&&(eL.print=function(){return u?u.size:0});var tz={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},tB=function(e,t){return t(e)};function tU(e){return new ey(function(t){t.error(e)})}var tW={kind:a.FIELD,name:{kind:a.NAME,value:"__typename"}};function tH(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 tK(e,t){e8(t);for(var r,n,i,o,s=tH(""),u=tH(""),c=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!tb(r)){if(r.kind===a.OPERATION_DEFINITION)return s(r.name&&r.name.value);if(r.kind===a.FRAGMENT_DEFINITION)return u(r.name.value)}return!1!==globalThis.__DEV__&&x.error(97),null},l=0,f=t.definitions.length-1;f>=0;--f)t.definitions[f].kind===a.OPERATION_DEFINITION&&++l;var p=(r=e,n=new Map,i=new Map,r.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&i.set(e.test,e))}),function(e){var t=n.get(e.name.value);
1return!t&&i.size&&i.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return t_(e)&&e.map(p).some(function(e){return e&&e.remove})},v=new Map,y=!1,m={enter:function(e){if(d(e.directives))return y=!0,null}},g=eE(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(d(e.directives))return y=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){v.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===v.get(JSON.stringify(n))?e:l>0&&e.selectionSet.selections.every(function(e){return e.kind===a.FIELD&&"__typename"===e.name.value})?(u(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return y=!0,null}}});if(!y)return t;var b=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(u(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;g.definitions.forEach(function(e){e.kind===a.OPERATION_DEFINITION?b(s(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==a.FRAGMENT_DEFINITION||0!==l||u(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){b(u(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||u(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===a.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}(e7(o=eE(g,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(s(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,h.__assign)((0,h.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||tt(o),eS(e9(o)))?o:null}var tG=Object.assign(function(e){return eE(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==a.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return e4(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(e4(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,h.__assign)((0,h.__assign)({},e),{selections:(0,h.__spreadArray)((0,h.__spreadArray)([],n,!0),[tW],!1)})}}}})},{added:function(e){return e===tW}});function t$(e){return e8(e),tK([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var tJ=E(function(){return fetch}),tY=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?tB:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,f=(0,h.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&tj(n||tJ);var p={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new ts(function(e){var t,i,a,s,c,f,d=th(e,r),v=e.getContext(),y={};if(v.clientAwareness){var m=v.clientAwareness,g=m.name,b=m.version;g&&(y["apollographql-client-name"]=g),b&&(y["apollographql-client-version"]=b)}var _=(0,h.__assign)((0,h.__assign)({},y),v.headers),w={http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:_};if(tl(["client"],e.query)){var O=t$(e.query);if(!O)return tU(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=O}var S=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,h.__assign)((0,h.__assign)((0,h.__assign)({},i),e.options),{headers:(0,h.__assign)((0,h.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,h.__assign)((0,h.__assign)({},o),e.http)}),i.headers&&(i.headers=function(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}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(c,tQ)),{options:i,body:l}}(e,o,tz,p,w),T=S.options,k=S.body;k.variables&&!l&&(t=k.variables,i=e.query,a=(0,h.__assign)({},t),s=new Set(Object.keys(t)),eE(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&s.delete(e.name.value)}}),s.forEach(function(e){delete a[e]}),k.variables=a),T.signal||"undefined"==typeof AbortController||(T.signal=(f=new AbortController).signal);var I="OperationDefinition"===(c=tr(e.query)).kind&&"subscription"===c.operation,D=tl(["defer"],e.query);if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(T.method="GET"),D||I){T.headers=T.headers||{};var j="multipart/mixed;";I&&D&&!1!==globalThis.__DEV__&&x.warn(41),I?j+="boundary=graphql;subscriptionSpec=1.0,application/json":D&&(j+="deferSpec=20220824,application/json"),T.headers.accept=j}if("GET"===T.method){var C=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=tf(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=tf(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(d,k),R=C.newURI,N=C.parseError;if(N)return tU(N);d=R}else try{T.body=tf(k,"Payload")}catch(e){return tU(e)}return new ey(function(t){var r=n||E(function(){return fetch})||tJ,i=t.next.bind(t);return r(d,T).then(function(t){e.setContext({response:t});var r,n,o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");if(null!==o&&/^multipart\/mixed/i.test(o))return function(e,t){return(0,h.__awaiter)(this,void 0,void 0,function(){var r,n,i,o,a,s,u,c,l,f,p,d,v,y,m,g,b,_,w,E,O,S,T;return(0,h.__generator)(this,function(k){switch(k.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(T=e.headers)||void 0===T?void 0:T.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(o),s="",u=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,V&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return tp(s.getReader());if(s.stream)return tp(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},V&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(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)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){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",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={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 V&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,k.label=1;case 1:if(!c)return[3,3];return[4,u.next()];
1case 2:for(f=(l=k.sent()).value,p=l.done,d="string"==typeof f?f:r.decode(f),v=s.length-a.length+1,c=!p,s+=d,y=s.indexOf(a,v);y>-1;){if(m=void 0,m=(O=[s.slice(0,y),s.slice(y+a.length)])[0],s=O[1],g=m.indexOf("\r\n\r\n"),(b=function(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}(m.slice(0,g))["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(_=m.slice(g)){if(Object.keys(w=tD(e,_)).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)if(em(w)&&"payload"in w){if(E={},"payload"in w){if(1===Object.keys(w).length&&null===w.payload)return[2];E=(0,h.__assign)({},w.payload)}"errors"in w&&(E=(0,h.__assign)((0,h.__assign)({},E),{extensions:(0,h.__assign)((0,h.__assign)({},"extensions"in E?E.extensions:null),((S={})[tv]=w.errors,S))})),t(E)}else t(w);else if(1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext)return[2]}y=s.indexOf(a)}return[3,1];case 3:return[2]}})})}(t,i);return(r=t).text().then(function(e){return tD(r,e)}).then(function(t){return Array.isArray(t)||tx.call(t,"data")||tx.call(t,"errors")||td(r,t,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),t}).then(i)}).then(function(){f=void 0,t.complete()}).catch(function(e){f=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){f&&f.abort()}})})},tX=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,tY(t).request)||this;return r.options=t,r}return(0,h.__extends)(t,e),t}(ts);let{toString:tZ,hasOwnProperty:t0}=Object.prototype,t1=Function.prototype.toString,t2=new Map;function t3(e,t){try{return function e(t,r){if(t===r)return!0;let n=tZ.call(t);if(n!==tZ.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(t7(t,r))return!0;let n=t5(t),i=t5(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!t0.call(r,n[e]))return!1;for(let i=0;i<o;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(t7(t,r))return!0;let i=t.entries(),o="[object Map]"===n;for(;;){let t=i.next();if(t.done)break;let[n,a]=t.value;if(!r.has(n)||o&&!e(a,r.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=t1.call(t);if(e!==t1.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,t8)}}return!1}(e,t)}finally{t2.clear()}}function t5(e){return Object.keys(e).filter(t4,e)}function t4(e){return void 0!==this[e]}let t8="{ [native code] }";function t7(e,t){let r=t2.get(e);if(r){if(r.has(t))return!0}else t2.set(e,r=new Set);return r.add(t),!1}let t6=()=>Object.create(null),{forEach:t9,slice:re}=Array.prototype,{hasOwnProperty:rt}=Object.prototype;class rr{constructor(e=!0,t=t6){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return t9.call(e,e=>t=t.getChildTrie(e)),rt.call(t,"data")?t.data:t.data=this.makeData(re.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let 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){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);!i||(t=i.removeArray(re.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){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new rr(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)}}let rn=null,ri={},ro=1;function ra(e){try{return e()}catch(e){}}let rs="@wry/context:Slot",ru=ra(()=>globalThis)||ra(()=>global)||Object.create(null),rc=ru[rs]||Array[rs]||function(e){try{Object.defineProperty(ru,rs,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",ro++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=rn;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===ri)break;return e!==rn&&(rn.slots[this.id]=t),!0}return rn&&(rn.slots[this.id]=ri),!1}getValue(){if(this.hasValue())return rn.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=rn;rn={parent:o,slots:i};try{return t.apply(n,r)}finally{rn=o}}static bind(e){let t=rn;return function(){let r=rn;try{return rn=t,e.apply(this,arguments)}finally{rn=r}}}static noContext(e,t,r){if(!rn)return e.apply(r,t);{let n=rn;try{return rn=null,e.apply(r,t)}finally{rn=n}}}}),{bind:rl,noContext:rf}=rc,rh=new rc,{hasOwnProperty:rp}=Object.prototype,rd=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function rv(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let ry=[];function rm(e,t){if(!e)throw Error(t||"assertion failure")}function rg(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function rb(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class r_{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,++r_.count}peek(){if(1===this.value.length&&!rO(this))return rw(this),this.value[0]}recompute(e){var t,r,n;return rm(!this.recomputing,"already recomputing"),rw(this),rO(this)?(t=this,r=e,rx(t),rh.withValue(t,rE,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{rv(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,rO(n)||function(e){rS(e,rk)}(n)),rb(t.value)):rb(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,rS(e,rT),rv(this))}dispose(){this.setDirty(),rx(this),rS(this,(e,t)=>{e.setDirty(),rD(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ry.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(rd(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ry.push(this.deps),this.deps=null)}}function rw(e){let t=rh.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),rO(e)?rT(t,e):rk(t,e),t}function rE(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!rg(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function rO(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}r_.count=0;function rS(e,t){let r=e.parents.size;if(r){let n=rd(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function rT(e,t){rm(e.childValues.has(t)),rm(rO(t));let r=!rO(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ry.pop()||new Set;e.dirtyChildren.add(t),r&&rS(e,rT)}function rk(e,t){rm(e.childValues.has(t)),rm(!rO(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):rg(r,t.value)||e.setDirty(),rI(e,t),!rO(e)&&rS(e,rk)}function rI(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(ry.length<100&&ry.push(r),e.dirtyChildren=null))}function rx(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{rD(e,r)}),e.forgetDeps(),rm(null===e.dirtyChildren)}function rD(e,t){t.parents.delete(e),e.childValues.delete(t),rI(e,t)}let rj={setDirty:!0,dispose:!0,forget:!0};function rC(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=rh.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(rv(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&rp.call(rj,r)?r:"setDirty";
1rd(n).forEach(e=>e[i]()),t.delete(e),rv(n)}},n}function rR(...e){return(n||(n=new rr("function"==typeof WeakMap))).lookupArray(e)}let rN=new Set;function rP(e,{max:t=65536,keyArgs:r,makeCacheKey:n=rR,normalizeResult:i,subscribe:o,cache:a=eR}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let 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 r_(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),rN.add(s),rh.hasValue()||(rN.forEach(e=>e.clean()),rN.clear()),u};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function l(e){let t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}function rA(e){return e}var rF=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=M?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(rA,{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 rr(q);this.performWork=rP(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return x(Array.isArray(n),77),r.lookupArray(n)},max:eM["documentTransform.cache"],cache:ej})}},e.prototype.performWork=function(e){return e8(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))},{cache:!1}),{left:this,right:t})},e}();function rq(e,t,r){return new ey(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 rM(e){var t=t_(e.errors)?e.errors.slice(0):[];return tk(e)&&t_(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function rL(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function rV(e){function t(t){Object.defineProperty(e,t,{value:ey})}return L&&Symbol.species&&t(Symbol.species),t("@@species"),e}function rQ(e){return e&&"function"==typeof e.then}var rz=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),rL(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),rL(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?rQ(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),rL(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 ey(t)]),rQ(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,h.__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))})},t}(ey);function rB(e){return!!e&&e<7}function rU(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}rV(rz),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(c||(c={}));var rW=Object.prototype.toString;function rH(e,t){switch(rW.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]=rH(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]=rH(e[r],t)}),n;default:return e}}function rK(e,t,r,n){var i=t.data,o=(0,h.__rest)(t,["data"]),a=r.data;return t3(o,(0,h.__rest)(r,["data"]))&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!tc(t,i.variables)||rG(t)))return!0;
1if(e4(t)){var a=e3(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return t3(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var p=0;p<h;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var d=eT(t,i.fragmentMap);if(d)return!!rG(d)||e(d.selectionSet,r,n,i)})}(tr(e).selectionSet,i,a,{fragmentMap:eS(e9(e)),variables:n})}function rG(e){return!!e.directives&&e.directives.some(r$)}function r$(e){return"nonreactive"===e.name.value}var rJ=Object.assign,rY=Object.hasOwnProperty,rX=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=r0)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(o.maskResult(n.result)),r&&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=r2(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,u=void 0===s?"cache-first":s,c=i.fetchPolicy,l=void 0===c?u:c,f=i.initialFetchPolicy,p=void 0===f?"standby"===l?u:l:f;o.options=(0,h.__assign)((0,h.__assign)({},i),{initialFetchPolicy:p,fetchPolicy:l}),o.queryId=n.queryId||r.generateQueryId();var d=e7(o.query);return o.queryName=d&&d.name&&d.name.value,o}return(0,h.__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||c.ready,n=(0,h.__assign)((0,h.__assign)({},t),{loading:rB(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(r2(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),t3(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,a.complete&&n.networkStatus===c.loading&&("cache-first"===o||"cac
1he-only"===o)&&(n.networkStatus=c.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||r1(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?!rK(i,this.last.result,e,this.variables):!t3(this.last.result,e))||t&&!t3(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||t3(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("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&rY.call(e,"variables")){var i=te(this.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||x.warn(21,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!t3(this.options.variables,e)&&(r.variables=this.options.variables=(0,h.__assign)((0,h.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,c.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,h.__assign)((0,h.__assign)({},e.query?e:(0,h.__assign)((0,h.__assign)((0,h.__assign)((0,h.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,h.__assign)((0,h.__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=c.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set,s=null==e?void 0:e.updateQuery,u="no-cache"!==this.options.fetchPolicy;return u||x(s,22),this.queryManager.fetchQuery(n,r,c.fetchMore).then(function(l){if(t.queryManager.removeQuery(n),i.networkStatus===c.fetchMore&&(i.networkStatus=o),u)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:l.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:l.data})},onWatchUpdated:function(e){a.add(e.query)}});else{var f=t.getLast("result"),p=s(f.data,{fetchMoreResult:l.data,variables:r.variables});t.reportResult((0,h.__assign)((0,h.__assign)({},f),{data:p}),t.variables)}return t.maskResult(l)}).finally(function(){u&&!a.has(t.query)&&rZ(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){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&x.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=rU(this.options,e||{});rJ(this.options,t)},t.prototype.setVariables=function(e){return t3(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},c.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}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=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()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){x(r,24),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(rB(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"},c.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!t3(t,this.last.variables)&&(r=void 0),this.last=(0,h.__assign)({result:this.queryManager.assumeImmutableResults?e:rH(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===c.refetch||t===c.fetchMore||t===c.poll,i=this.options.variables,o=this.options.fetchPolicy,a=rU(this.options,e||{}),s=n?a:rJ(this.options,a),u=this.transformDocument(s.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!t3(e.variables,i)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===o||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=c.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=r2(s.fetchPolicy));var l=function(){r.concast===d&&(r.waitForOwnResult=!1)},f=s.variables&&(0,h.__assign)({},s.variables),p=this.fetch(s,t,u),d=p.concast,v=p.fromLink,y={next:function(e){t3(r.variables,f)&&(l(),r.reportResult(e,f))},error:function(e){t3(r.variables,f)&&(ty(e)||(e=new tg({networkError:e})),l(),r.reportError(e,f))}};return n||!v&&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){var r;return(r=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),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)&&rL(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=(0,h.__assign)((0,h.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:c.error,loading:!1});this.updateLastResult(r,t),rL(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?(0,h.__assign)((0,h.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(ey);function rZ(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 r0(e){!1!==globalThis.__DEV__&&x.error(25,e.message,e.stack)}function r1(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&x.debug(26,e)}function r2(e){return"network-only"===e||"no-cache"===e||"standby"===e}rV(rX);var r3=new(q?WeakMap:Map);function r5(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return r3.set(e,(r3.get(e)+1)%1e15),r.apply(this,arguments)})}function r4(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var r8=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;r3.has(r)||(r3.set(r,0),r5(r,"evict"),r5(r,"modify"),r5(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||c.loading;return this.variables&&this.networkStatus!==c.loading&&!t3(this.variables,e.variables)&&(t=c.setVariables),t3(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(){r4(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&t3(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||t3(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():rZ(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1r4(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(rB(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=(0,h.__assign)((0,h.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&t3(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===r3.get(this.cache)&&t3(t,r.variables)&&t3(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new tT,a=t_(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&t_(e.incremental)){var s=tI(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(r7(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:r3.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&t3(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=c.ready},e.prototype.markError=function(e){return this.networkStatus=c.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function r7(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!t_(rM(e));return!n&&r&&e.data&&(n=!0),n}function r6(e){if(!1!==globalThis.__DEV__){var t;(t=new Set([e])).forEach(function(e){em(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){em(e[r])&&t.add(e[r])})})}return e}var r9=q?WeakMap:Map,ne=M?WeakSet:Set,nt=new rc,nr=!1;function nn(){nr||(nr=!0,!1!==globalThis.__DEV__&&x.warn(52))}function ni(e,t,r){return nt.withValue(!0,function(){var n=function e(t,r,n,i,o){var s,u=n.knownChanged,c=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}(t,n.mutableTargets);if(Array.isArray(t)){for(var l=0,f=Array.from(t.entries());l<f.length;l++){var h=f[l],p=h[0],d=h[1];if(null===d){c[p]=null;continue}var v=e(d,r,n,i,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(p,"]"):void 0);u.has(v)&&u.add(c),c[p]=v}return u.has(c)?c:t}for(var y=0,m=r.selections;y<m.length;y++){var g=m[y],b=void 0;if(i&&u.add(c),g.kind===a.FIELD){var _=e3(g),w=g.selectionSet;if(void 0===(b=c[_]||t[_]))continue;if(w&&null!==b){var v=e(t[_],w,n,i,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(_):void 0);u.has(v)&&(b=v)}!1===globalThis.__DEV__&&(c[_]=b),!1!==globalThis.__DEV__&&(!i||"__typename"===_||(null===(s=Object.getOwnPropertyDescriptor(c,_))||void 0===s?void 0:s.value)?(delete c[_],c[_]=b):Object.defineProperty(c,_,function(e,t,r,n,i){var o=function(){return nt.getValue()||(!1!==globalThis.__DEV__&&x.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}}(_,b,o||"",n.operationName,n.operationType)))}if(g.kind===a.INLINE_FRAGMENT&&(!g.typeCondition||n.cache.fragmentMatches(g,t.__typename))&&(b=e(t,g.selectionSet,n,i,o)),g.kind===a.FRAGMENT_SPREAD){var E=g.name.value,O=n.fragmentMap[E]||(n.fragmentMap[E]=n.cache.lookupFragment(E));x(O,47,E);var S=function(e){var t,r,n=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!n)return"mask";var i=null===(r=n.arguments)||void 0===r?void 0:r.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&i&&(i.value.kind===a.VARIABLE?!1!==globalThis.__DEV__&&x.warn(82):i.value.kind!==a.STRING?!1!==globalThis.__DEV__&&x.warn(83):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&x.warn(84,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value)?"migrate":"unmask"}(g);"mask"!==S&&(b=e(t,O.selectionSet,n,"migrate"===S,o))}u.has(b)&&u.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&u.add(c),u.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&r6(n),n})}function no(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&nn(),e;var i=t.definitions.filter(function(e){return e.kind===a.FRAGMENT_DEFINITION});void 0===n&&(x(1===i.length,49,i.length),n=i[0].name.value);var o=i.find(function(e){return e.name.value===n});return(x(!!o,50,n),null==e||t3(e,{}))?e:ni(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:eS(e9(t)),cache:r,mutableTargets:new r9,knownChanged:new ne})}var na=Object.prototype.hasOwnProperty,ns=Object.create(null),nu=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new eA(eM["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new rr(!1),this.noCacheWarningsByQueryId=new Set;var r=new rF(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;
1this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(D(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,h.__awaiter)(this,arguments,void 0,function(e){var t,r,n,i,o,a,s,u=e.mutation,c=e.variables,l=e.optimisticResponse,f=e.updateQueries,p=e.refetchQueries,d=void 0===p?[]:p,v=e.awaitRefetchQueries,y=void 0!==v&&v,m=e.update,g=e.onQueryUpdated,b=e.fetchPolicy,_=void 0===b?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":b,w=e.errorPolicy,E=void 0===w?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":w,O=e.keepRootFields,S=e.context;return(0,h.__generator)(this,function(e){switch(e.label){case 0:if(x(u,28),x("network-only"===_||"no-cache"===_,29),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,S)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:u,variables:c,fetchPolicy:_,errorPolicy:E,context:S,updateQueries:f,update:m,keepRootFields:O}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return rq(o.getObservableFromLink(u,(0,h.__assign)((0,h.__assign)({},S),{optimisticResponse:i?l:void 0}),c,{},!1),function(e){if(t_(rM(e))&&"none"===E)throw new tg({graphQLErrors:rM(e)});n&&(n.loading=!1,n.error=null);var r=(0,h.__assign)({},e);return"function"==typeof d&&(d=d(r)),"ignore"===E&&t_(rM(r))&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:_,errorPolicy:E,context:S,update:m,updateQueries:f,awaitRefetchQueries:y,refetchQueries:d,removeOptimistic:i?t:void 0,onQueryUpdated:g,keepRootFields:O})}).subscribe({next:function(r){o.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,h.__assign)((0,h.__assign)({},r),{data:o.maskOperation({document:u,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 tg?e:new tg({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&&r7(n,e.errorPolicy)){if(tk(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),tk(n)&&t_(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=tI(a.result,n)),void 0!==s&&(n.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&na.call(u,s)){var c=u[s],l=r.queries.get(o),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=c(d,{mutationResult:n,queryName:f&&e6(f)||void 0,queryVariables:h});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(tk(a=n)||"hasNext"in a&&"data"in a)||tk(n)&&!n.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=(0,h.__assign)((0,h.__assign)({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&s(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||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}
1).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).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:ns}):e;return n!==ns&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,h.__assign)((0,h.__assign)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&x.error(e)}},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:e&&tl(["client","export"],e,!0),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:tl(["nonreactive"],e),nonReactiveQuery:(e8(e),eE(e,{FragmentSpread:function(e){var t;if(null===(t=e.directives)||void 0===t||!t.some(function(e){return"unmask"===e.name.value}))return(0,h.__assign)((0,h.__assign)({},e),{directives:(0,h.__spreadArray)((0,h.__spreadArray)([],e.directives||[],!0),[{kind:a.DIRECTIVE,name:{kind:a.NAME,value:"nonreactive"}}
1],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:tK([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:tn(e7(e)),asQuery:(0,h.__assign)((0,h.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,h.__assign)((0,h.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,h.__assign)((0,h.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,h.__assign)((0,h.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new r8(this),n=new rX({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()),x(e.query,30),x("Document"===e.query.kind,31),x(!e.returnPartialData,32),x(!e.pollInterval,33);var n=this.transform(e.query);return this.fetchQuery(t,(0,h.__assign)((0,h.__assign)({},e),{query:n})).then(function(i){return i&&(0,h.__assign)((0,h.__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(D(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=c.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(em(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){var r=tQ(t.transform(e));n.set(r,e6(e)),i.set(r,!1)}else em(e)&&e.query&&o.add(e)}),this.queries.forEach(function(t,n){var o=t.observableQuery,a=t.document;if(o){if("all"===e){r.set(n,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&i.has(s)||a&&i.has(tQ(a)))&&(r.set(n,o),s&&i.set(s,!0),a&&i.set(tQ(a),!0))}}),o.size&&o.forEach(function(e){var n=T("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new rX({queryManager:t,queryInfo:i,options:(0,h.__assign)((0,h.__assign)({},e),{fetchPolicy:"network-only"})});x(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__&&x.warn(35,r):!1!==globalThis.__DEV__&&x.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,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(r7(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=t_(rM(n)),s=!!n.extensions&&Array.isArray(n.extensions[tv]);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[tv]),"none"===a||s)throw new tg(u)}return"ignore"===a&&delete n.errors,n})};
1if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new ey(function(e){var t=null;return h.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.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.getDocumentInfo(e),c=u.serverQuery,l=u.clientQuery;if(c){var f=this.inFlightLinkObservables,p=this.link,d={query:c,variables:r,operationName:e6(c)||void 0,context:this.prepareContext((0,h.__assign)((0,h.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=d.context,i){var v=tQ(c),y=eK(r),m=f.lookup(v,y);if(!(a=m.observable)){var g=new rz([tu(p,d)]);a=m.observable=g,g.beforeNext(function(){f.remove(v,y)})}}else a=new rz([tu(p,d)])}else a=new rz([ey.of({data:{}})]),t=this.prepareContext(t);return l&&(a=rq(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 rq(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=rM(o),s=a.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new tg({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:c.ready};return s&&"none"===u&&(l.data=void 0),s&&"ignore"!==u&&(l.errors=a,l.networkStatus=c.error),l},function(t){var r=ty(t)?t:new tg({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=c.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.getQuery(e),l=this.defaultOptions.watchQuery,f=t.fetchPolicy,h=void 0===f?l&&l.fetchPolicy||"cache-first":f,p=t.errorPolicy,d=void 0===p?l&&l.errorPolicy||"none":p,v=t.returnPartialData,y=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:h,errorPolicy:d,returnPartialData:void 0!==v&&v,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===m?{}:m}),b=function(e){g.variables=e;var n=a.fetchQueryByPolicy(u,g,r);return"standby"!==g.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},_=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){_(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new rz(this.localState.addExportedVariables(g.query,g.variables,g.context).then(b).then(function(e){return e.sources})),o=!0;else{var w=b(g.variables);o=w.fromLink,i=new rz(w.sources)}return i.promise.then(_,_),{concast:i,fromLink:o}},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?T("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.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 r8&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!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,s=e.fetchPolicy,u=e.id,c=null===(t=e7(i))||void 0===t?void 0:t.operation,l=(null!==(r=null==c?void 0:c[0])&&void 0!==r?r:"o")+u;this.dataMasking&&"no-cache"===s&&(a=!0,eE(i,{FragmentSpread:function(e){if(!(a=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return ew}}),!a)&&!this.noCacheWarningsByQueryId.has(l)&&(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&x.warn(37,null!==(n=e6(i))&&void 0!==n?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&nn(),e;var n,i=e7(t);return(x(i,51),null==e)?e:ni(e,i.selectionSet,{operationType:i.operation,operationName:null===(n=i.name)||void 0===n?void 0:n.value,fragmentMap:eS(e9(t)),cache:r,mutableTargets:new r9,knownChanged:new ne})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?no(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,u=t.errorPolicy,l=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var v=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||c.loading);var a=t.result;!1===globalThis.__DEV__||l||t3(a,{})||r1(t.missing);var s=function(e){return ey.of((0,h.__assign)({data:e,loading:rB(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&r===c.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:r===c.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,m,{query:i,variables:o,context:f,fetchPolicy:a,errorPolicy:u})},b=p&&"number"==typeof d&&d!==r&&rB(r);switch(a){default:case"cache-first":var _=v();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(l||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=v();if(_.complete||l||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};
1case"network-only":if(b)return{fromLink:!0,sources:[y(v()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new r8(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,h.__assign)((0,h.__assign)((0,h.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function nc(e){return e.kind===a.FIELD||e.kind===a.FRAGMENT_SPREAD||e.kind===a.INLINE_FRAGMENT}function nl(e){return(e.kind===Kind.VARIABLE||e.kind===Kind.INT||e.kind===Kind.FLOAT||e.kind===Kind.STRING||e.kind===Kind.BOOLEAN||e.kind===Kind.NULL||e.kind===Kind.ENUM||e.kind===Kind.LIST||e.kind===Kind.OBJECT)&&(e.kind===Kind.LIST?e.values.some(nl):e.kind===Kind.OBJECT?e.fields.some(e=>nl(e.value)):e.kind!==Kind.VARIABLE)}var nf=new rc,nh=new WeakMap;function np(e){var t=nh.get(e);return t||nh.set(e,t={vars:new Set,dep:rC()}),t}function nd(e){np(e).vars.forEach(function(t){return t.forgetCache(e)})}function nv(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;np(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=nf.getValue();s&&(i(s),np(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),np(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var ny=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=tE(t.resolvers,e)}):this.resolvers=tE(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(0,h.__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(0,h.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,h.__assign)((0,h.__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 tl(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return t$(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,h.__assign)((0,h.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,h.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,h.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,h.__assign)((0,h.__assign)({},t),e.exportedVariables)})]:[2,(0,h.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return eE(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 ew}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===tr(e).operation?e:eE(e,{OperationDefinition:{enter:function(e){return(0,h.__assign)((0,h.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,h.__awaiter)(this,arguments,void 0,function(e,t,r,n,i,o){var a,s,u,c,l,f,p,d,v;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,h.__generator)(this,function(y){return a=tr(e),s=eS(e9(e)),u=this.collectSelectionsToResolve(a,s),l=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,p=f.cache,d=f.client,v={fragmentMap:s,context:(0,h.__assign)((0,h.__assign)({},r),{cache:p,client:d}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,h.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return(0,h.__generator)(this,function(l){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],u=function(e){return(0,h.__awaiter)(c,void 0,void 0,function(){var u,c;return(0,h.__generator)(this,function(l){return(t||n.selectionsToResolve.has(e))&&tc(e,a)?e4(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[e3(e)]=t,r))})]:("InlineFragment"===e.kind?u=e:x(u=i[e.name.value],19,e.name.value),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return tO(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,h.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,p,d=this;return(0,h.__generator)(this,function(h){return r?(i=n.variables,s=(o=e.name.value)!==(a=e3(e)),c=Promise.resolve(u=r[a
1]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[s?o:a])&&(c=Promise.resolve(nf.withValue(this.cache,p,[r,e2(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,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)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.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),eE(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&nc(e)&&o.add(e)})},FragmentSpread:function(n,i,a,s,u){var c=t[n.name.value];x(c,20,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&nc(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}();function nm(e,t){return rU(e,t,t.variables&&{variables:rU((0,h.__assign)((0,h.__assign)({},e&&e.variables),t.variables))})}var ng=!1,nb=function(){function e(e){var t,r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw D(16);var n=e.uri,i=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,u=e.ssrMode,c=void 0!==u&&u,l=e.ssrForceFetchDelay,f=void 0===l?0:l,p=e.connectToDevTools,d=e.queryDeduplication,v=void 0===d||d,y=e.defaultOptions,m=e.defaultContext,g=e.assumeImmutableResults,b=void 0===g?a.assumeImmutableResults:g,_=e.resolvers,E=e.typeDefs,O=e.fragmentMatcher,S=e.name,T=e.version,k=e.devtools,I=e.dataMasking,x=e.link;x||(x=n?new tX({uri:n,credentials:i,headers:o}):ts.empty()),this.link=x,this.cache=a,this.disableNetworkFetches=c||f>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,h.__assign)((0,h.__assign)({},k),{enabled:null!==(t=null==k?void 0:k.enabled)&&void 0!==t?t:p}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),f&&setTimeout(function(){return r.disableNetworkFetches=!1},f),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=w,this.localState=new ny({cache:a,client:this,resolvers:_,fragmentMatcher:O}),this.queryManager=new nu({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:s,queryDeduplication:v,ssrMode:c,dataMasking:!!I,clientAwareness:{name:S,version:T},localState:this.localState,assumeImmutableResults:b,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,!ng&&!1!==globalThis.__DEV__&&(ng=!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__&&x.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=nm(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,h.__assign)((0,h.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=nm(this.defaultOptions.query,e)),x("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,h.__assign)((0,h.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=nm(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(0,h.__assign)((0,h.__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((0,h.__assign)((0,h.__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 tu(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__&&x.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}();!1!==globalThis.__DEV__&&(nb.prototype.getMemoryInternals=eV);var n_=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=rP(eO,{max:eM["cache.fragmentQueryDocuments"]||1e3,cache:ej})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
1ptimistic?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((0,h.__assign)((0,h.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=(0,h.__rest)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(n,i),c=void 0===o||"string"==typeof o?o:this.identify(o),l=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var f=i||tt(n).name.value;c||!1===globalThis.__DEV__||x.warn(1,f)}var p=(0,h.__assign)((0,h.__assign)({},s),{returnPartialData:!0,id:c,query:u,optimistic:void 0===a||a});return new ey(function(e){return r.watch((0,h.__assign)((0,h.__assign)({},p),{immediate:!0,callback:function(o){var a=l?no(o.result,n,r,i):o.result;if(!(t&&rK(u,{data:null==t?void 0:t.result},{data:a}))){var s={data:a,complete:!!o.complete};o.missing&&(s.missing=tO(o.missing.map(function(e){return e.missing}))),t=(0,h.__assign)((0,h.__assign)({},o),{result:a}),e.next(s)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,h.__assign)((0,h.__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=(0,h.__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=(0,h.__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 null==i?n:(r.writeQuery((0,h.__assign)((0,h.__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 null==i?n:(r.writeFragment((0,h.__assign)((0,h.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(n_.prototype.getMemoryInternals=ez);var nw=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 u=s.path.length-1;u>=0;--u)(a={})[s.path[u]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,h.__extends)(t,e),t}(Error),nE=Object.prototype.hasOwnProperty;function nO(e){return null==e}function nS(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=nO(n)?nO(i)?void 0:{_id:i}:{id:n}),nO(n)&&!nO(i)&&(n=i),!nO(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var nT={dataIdFromObject:nS,addTypename:!0,resultCaching:!0,canonizeResults:!1};function nk(e){var t=e.canonizeResults;return void 0===t?nT.canonizeResults:t}var nI=/^[_a-z][_0-9a-z]*/i;function nx(e){var t=e.match(nI);return t?t[0]:e}function nD(e){return em(e)&&!eY(e)&&!tb(e)}function nj(e,t){var r=eS(e9(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var nC=Object.create(null),nR=function(){return nC},nN=Object.create(null),nP=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 r6(eY(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return eY(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return eJ(e);if(eY(e))return e;var n=r.policies.identify(e)[0];if(n){var i=eJ(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,h.__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),nE.call(this.data,e)){var r=this.data[e];if(r&&nE.call(r,t))return r[t]}return"__typename"===t&&nE.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof nq?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),nE.call(this.data,e))?this.data[e]:this instanceof nq?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;eY(e)&&(e=e.__ref),eY(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){x("string"==typeof r,2);var a=new tT(nL).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=nx(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof nq||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:nC,INVALIDATE:nN,isReference:eY,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||eJ(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=nx(u),l=n[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var p=f===nR?nC:f(r6(l),(0,h.__assign)((0,h.__assign)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(p===nN)r.group.dirty(e,u);else if(p===nC&&(p=void 0),p!==l&&(i[u]=p,o=!0,l=p,!1!==globalThis.__DEV__)){var d=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&x.warn(3,e),!0};if(eY(p))d(p);else if(Array.isArray(p))for(var v=!1,y=void 0,m=0,g=p;m<g.length;m++){var b=g[m];if(eY(b)){if(v=!0,d(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(y=b);if(v&&void 0!==y){!1!==globalThis.__DEV__&&x.warn(4,y);break}}}}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof nq?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]=nR,n):nR)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(nE.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof nq&&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){nE.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&&nE.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,h.__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 nq?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){nE.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 nq;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!nE.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){eY(e)&&(t[e.__ref]=!0),em(e)&&Object.keys(e).forEach(function(t){var r=e[t];em(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),nA=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?rC():null,this.keyMaker=new rr(q)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=nx(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function nF(e,t){nV(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new nA(void 0===n||n))||this;return o.stump=new nM(o),o.storageTrie=new rr(q),i&&o.replace(i),o}return(0,h.__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}(nP||(nP={}));var nq=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(0,h.__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){t3(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(0,h.__assign)((0,h.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return nE.call(this.data,t)?(0,h.__assign)((0,h.__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}(nP),nM=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new nA(t.group.caching,t.group))||this}return(0,h.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(nq);function nL(e,t,r){var n=e[r],i=t[r];return t3(n,i)?n:i}function nV(e){return!!(e instanceof nP&&e.group.caching)}var nQ=function(){function e(){this.known=new(M?WeakSet:Set),this.pool=new rr(q),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return em(e)&&this.known.has(e)},e.prototype.pass=function(e){if(em(e)){var t=em(e)?tb(e)?e.slice(0):(0,h.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(em(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.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 nz(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var nB=function(){function e(e){var t=this;this.knownResults=new(q?WeakMap:Map),this.config=rU(e,{addTypename:!1!==e.addTypename,canonizeResults:nk(e)}),this.canon=e.canon||new nQ,this.executeSelectionSet=rP(function(e){var r,n=e.context.canonizeResults,i=nz(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,h.__assign)((0,h.__assign)({},o),{result:t.canon.admit(o.result)}):o:(nF(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||eM["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nz,makeCacheKey:function(e,t,r,n){if(nV(r.store))return r.store.makeCacheKey(e,eY(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=rP(function(e){return nF(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||eM["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(nV(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new nQ},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;o=(0,h.__assign)((0,h.__assign)({},tn(te(n))),o);var l=eJ(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:tr(n).selectionSet,objectOrReference:l,enclosingRef:l,context:(0,h.__assign)({store:r,query:n,policies:c,variables:o,varString:eK(o),canonizeResults:u},nj(n,this.config.fragments))});if(f.missing&&(t=[new nw(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(nV(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,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if(eY(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],h=new tT;function p(e,r){var n;return e.missing&&(t=h.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var d=new Set(n.selections);d.forEach(function(e){var n,v;
1if(tc(e,u))if(e4(e)){var y=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),m=e3(e);void 0===y?tG.added(e)||(t=h.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(eY(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):tb(y)?y.length>0&&(y=p(r.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:s}),m)):e.selectionSet?null!=y&&(y=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:eY(y)?y:o,context:s}),m)):s.canonizeResults&&(y=r.canon.pass(y)),void 0!==y&&f.push(((v={})[m]=y,v))}else{var g=eT(e,s.lookupFragment);if(!g&&e.kind===a.FRAGMENT_SPREAD)throw D(10,e.name.value);g&&c.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(d.add,d)}});var v={result:tO(f),missing:t},y=s.canonizeResults?this.canon.admit(v):r6(v);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new tT;function u(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:tb(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:eY(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){if(em(r))x(!eY(r),11,eY(r)?e.get(r.__ref,"__typename"):r&&r.__typename,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}(),nU=Object.create(null);function nW(e){var t=JSON.stringify(e);return nU[t]||(nU[t]=Object.create(null))}function nH(e){var t=nW(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=nG(e,function(e){var i=nJ(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&nE.call(t,e[0])&&(i=nJ(t,e,n$)),x(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function nK(e){var t=nW(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(nG(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&t_(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&e2(s,i);return u&&nJ(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&nE.call(i,c)){var l=e.slice(0);return l[0]=c,nJ(i,l)}return}if(t)return nJ(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function nG(e,t){var r=new tT;return(function e(t){var r=nW(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){tb(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),tb(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(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 n$(e,t){return e[t]}function nJ(e,t,r){return r=r||n$,function e(t){return em(t)?tb(t)?t.map(e):nG(Object.keys(t).sort(),function(e){return nJ(t,e)}):t}(t.reduce(function e(t,n){return tb(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function nY(e){return void 0!==e.args?e.args:e.field?e2(e.field,e.variables):null}var nX=function(){},nZ=function(e,t){return t.fieldName},n0=function(e,t,r){return(0,r.mergeObjects)(e,t)},n1=function(e,t){return t},n2=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=(0,h.__assign)({dataIdFromObject:nS},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,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a=t&&t.storeObject||e,s=(0,h.__assign)((0,h.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=n5(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;return nt.withValue(!0,function(){for(;c;){var t=c((0,h.__assign)((0,h.__assign)({},e),a),s);if(tb(t))c=nH(t);else{n=t;break}}}),n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},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=(0,h.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),nE.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?n0:!1===t?n1:e.merge}a(n,t.merge),n.keyFn=!1===i?nX:tb(i)?nH(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,u=i.read,c=i.merge;n.keyFn=!1===s?nZ:tb(s)?nK(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||nZ)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(x(!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(nI);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!nE.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;Object.assign(r,(0,h.__rest)(n,["fields"])),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],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&x.warn(7,t,o),a.add(o)),!0;h.forEach(u),c&&f===s.length-1&&function e(t,r,n){return!!em(r)&&(tb(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if(e4(t)&&tc(t,n)){var i=e3(t);return nE.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(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,n,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=nY(e);c;){var h=c(f,l);if(tb(h))c=nK(h);else{o=h||s;break}}return void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return eX(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return eX(i,t,n,r)})),e1(t.name.value,i,n)):e1(s,nY(e))),!1===o?s:s===nx(o)?o:s+":"+o},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=nx(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=n3(this,r,e,t,t.store.getStorage(eY(r)?r.__ref:r,i));return nf.withValue(this.cache,u,[a,c])}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===n0?n4(n.store)(e,t):s===n1?t:(n.overwrite&&(e=void 0),s(e,t,n3(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function n3(e,t,r,n,i){var o=e.getStoreFieldName(r),a=nx(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:nY(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:eY,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(n5(arguments,t,s),n)},mergeObjects:n4(n.store)}}function n5(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=(0,h.__assign)({},i),nE.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&x.warn(8,k(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function n4(e){return function(t,r){if(tb(t)||tb(r))throw D(9);if(em(t)&&em(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(eY(t)&&nD(r))return e.merge(t.__ref,r),t;if(nD(t)&&eY(r))return e.merge(t,r.__ref),r;if(nD(t)&&nD(r))return(0,h.__assign)((0,h.__assign)({},t),r)}return r}}function n8(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:(0,h.__assign)((0,h.__assign)({},e),{clientOnly:t,deferred:r})),i}var n7=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,u=e7(n),c=new tT;a=(0,h.__assign)((0,h.__assign)({},tn(u)),a);var l=(0,h.__assign)((0,h.__assign)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:eK(a)},nj(n,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!eY(f))throw D(12,i);
1return l.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=eJ(n);if(o&&o.map.size){var u=r.applyMerges(o,s,i,l);if(eY(u))return;i=u}if(!1!==globalThis.__DEV__&&!l.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var f=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0===c[nx(e)]&&!f(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){var a=i(t);if(!(!a||eY(o)||t3(o,a)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=nx(r),c="".concat(s,".").concat(u);if(!ir.has(c)){ir.add(c);var l=[];tb(o)||tb(a)||[o,a].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),!1!==globalThis.__DEV__&&x.warn(15,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,h.__assign)({},o),(0,h.__assign)({},a))}}}}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(f.__ref),f},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,u=Object.create(null),c=r&&s.rootTypenamesById[r]||e5(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=n5(arguments,u,o.variables);if(eY(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,h.__assign)((0,h.__assign)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},f=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[e3(r)];if(f.add(r),void 0!==o){var h=s.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),p=n9(a,h),d=t.processFieldValue(o,r,r.selectionSet?n8(e,!1,!1):e,p),v=void 0;r.selectionSet&&(eY(d)||nD(d))&&(v=l("__typename",d));var y=s.getMergeFunction(c,r.name.value,v);y?p.info={field:r,typename:c,merge:y}:it(a,h),u=e.merge(u,((i={})[h]=d,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||tG.added(r)||s.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||x.error(13,e3(r),n)});try{var p=s.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),d=p[0],v=p[1];r=r||d,v&&(u=o.merge(u,v))}catch(e){if(!r)throw e}if("string"==typeof r){var y=eJ(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(n,y,i,o)))return y;var g=o.incomingById.get(r);return g?(g.storeObject=o.merge(g.storeObject,u),g.mergeTree=function e(t,r){if(t===r||!r||ie(r))return t;if(!t||ie(t))return r;var n=t.info&&r.info?(0,h.__assign)((0,h.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(g.mergeTree,a),f.forEach(function(e){return g.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:ie(a)?void 0:a,fieldNodeSet:f}),y}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?tb(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,n9(n,o));return it(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?rH(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=e5(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new rr(!1);return function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(s){if(tc(s,r.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&t_(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=e2(e,r.variables);n&&!1===n.if||(l=!0)}}),e4(s)){var f=i.get(s);f&&(u=u&&f.clientOnly,l=l&&f.deferred),i.set(s,n8(r,u,l))}else{var h=eT(s,r.lookupFragment);if(!h&&s.kind===a.FRAGMENT_SPREAD)throw D(14,s.name.value);h&&o.fragmentMatches(h,n,t,r.variables)&&e(h.selectionSet,n8(r,u,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!eY(r)){var a,s,u=!tb(r)&&(eY(t)||nD(t))?t:void 0,c=r;u&&!i&&(i=[eY(u)?u.__ref:u]);var l=function(e,t){return tb(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=l(u,t),a=l(c,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,r,a,n,i);f!==a&&(s=s||new Map).set(t,f),i&&x(i.pop()===t)}}),s&&(r=tb(c)?c.slice(0):(0,h.__assign)({},c),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),n6=[];function n9(e,t){var r=e.map;return r.has(t)||r.set(t,n6.pop()||{map:new Map}),r.get(t)}function ie(e){return!e||!(e.info||e.map.size)}function it(e,t){var r=e.map,n=r.get(t);n&&ie(n)&&(n6.push(n),r.delete(t))}var ir=new Set,ii=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new rF(tG),r.assumeImmutableResults=!0,r.makeVar=nv,r.txCount=0,r.config=rU(nT,t),r.addTypename=!!r.config.addTypename,r.policies=new n2({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,h.__extends)(t,e),t.prototype.init=function(){var e=this.data=new nP.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 n7(this,this.storeReader=new nB({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:nk(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=rP(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||eM["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(nV(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,eK({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;try{return this.storeReader.diffQueryAgainstStore((0,h.__assign)((0,h.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof nw)return null;throw e}},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(nE.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((0,h.__assign)((0,h.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){np(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&nd(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){eK.reset(),tQ.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,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(eY(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&x.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(nE.call(e,"id"))return!1;e=(0,h.__assign)((0,h.__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(),eK.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),nd(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,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,h.__assign)((0,h.__assign)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches((0,h.__assign)((0,h.__assign)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.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&&t3(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(n_);!1!==globalThis.__DEV__&&(ii.prototype.getMemoryInternals=eQ),r(90818),i=window.location.hostname.toString().indexOf("engineering.careem.com")>-1||window.location.hostname.toString().indexOf("tech-blog-web.prod.careem-rh.com")>-1||window.location.hostname.toString().indexOf("tech-blog-web.core.gw.prod.careem-rh.com")>-1||window.location.hostname.toString().indexOf("blog.careem.com")>-1?"https://blog.sandbox.careemapis.com":"https://dev-rh-tech-blog-wp-be-qa.careem-internal.com";let io=new nb({cache:new ii,link:new tX({uri:"".concat(i,"/graphql")})});var ia=r(45105),is=r.n(ia),iu=r(21160),ic=r.n(iu),il=r(96809);let ih=ic()({logger:il.A,customLogLevel:(e,t)=>
1e.statusCode>=400&&e.statusCode<500?"warn":e.statusCode>=500||t?"error":"info"}),ip=e=>{let{Component:t,pageProps:r}=e,[n,i]=(0,f.useState)(),o={gtmId:B.tz.f9};return(0,f.useEffect)(()=>{setTimeout(()=>{B.tz.f9&&$().initialize(o)},5e3)},[]),(0,l.jsxs)(W,{children:[(0,l.jsxs)(K(),{children:[(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"true"}),(0,l.jsx)("link",{rel:"shortcut icon",href:"https://blog.careem.com/favicon.ico",type:"image/x-icon"}),(0,l.jsx)("style",{dangerouslySetInnerHTML:{__html:"".concat(n)}}),(0,l.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=5"})]}),(0,l.jsx)(is(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat("G-HLV7LTQB3W")}),(0,l.jsx)(is(),{id:"google-analytics",strategy:"afterInteractive",children:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments);}\n          gtag('js', new Date());\n          gtag('config', '".concat("G-HLV7LTQB3W","');\n          gtag('config', '").concat("G-G59JSNQ5LZ","');\n        ")}),(0,l.jsxs)(z,{client:io,children:[(0,l.jsx)(t,{...r}),(0,l.jsx)(J.N9,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light"})]})]})};ip.middleware=[ih];let id=ip},42723:(e,t,r)=>{"use strict";e.exports=function(e){return e&&e.__esModule?e:{default:e}}(r(73666)).default},44978:(e,t,r)=>{"use strict";function n(){this._protocol=null,this._href="",this._port=-1,this._query=null,this.auth=null,this.slashes=null,this.host=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null,this._prependSlash=!1}n.queryString=r(48041),n.prototype.parse=function(e,t,r,i){if("string"!=typeof e)throw TypeError("Parameter 'url' must be a string, not "+typeof e);for(var o=0,a=e.length-1;32>=e.charCodeAt(o);)o++;for(;32>=e.charCodeAt(a);)a--;if(o=this._parseProtocol(e,o,a),"javascript"!==this._protocol){o=this._parseHost(e,o,a,r);var s=this._protocol;!this.hostname&&(this.slashes||s&&!y[s])&&(this.hostname=this.host="")}if(o<=a){var u=e.charCodeAt(o);47===u||92===u?this._parsePath(e,o,a,i):63===u?this._parseQuery(e,o,a,i):35===u?this._parseHash(e,o,a,i):"javascript"!==this._protocol?this._parsePath(e,o,a,i):this.pathname=e.slice(o,a+1)}if(!this.pathname&&this.hostname&&this._slashProtocols[this._protocol]&&(this.pathname="/"),t){var c=this.search;null==c&&(c=this.search=""),63===c.charCodeAt(0)&&(c=c.slice(1)),this.query=n.queryString.parse(c)}},n.prototype.resolve=function(e){return this.resolveObject(n.parse(e,!1,!0)).format()},n.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":")+"@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",s=this.search||"",u="",c=this.hostname||"",l=this.port||"",f=!1,h="",p=this.query;p&&"object"==typeof p&&(u=n.queryString.stringify(p)),s||(s=u?"?"+u:""),t&&58!==t.charCodeAt(t.length-1)&&(t+=":"),this.host?f=e+this.host:c&&(c.indexOf(":")>-1&&(c="["+c+"]"),f=e+c+(l?":"+l:""));var d=this.slashes||(!t||y[t])&&!1!==f;return t?h=t+(d?"//":""):d&&(h="//"),d&&r&&47!==r.charCodeAt(0)&&(r="/"+r),s&&63!==s.charCodeAt(0)&&(s="?"+s),i&&35!==i.charCodeAt(0)&&(i="#"+i),h+(!1===f?"":f)+(r=o(r))+(s=a(s))+i},n.prototype.resolveObject=function(e){"string"==typeof e&&(e=n.parse(e,!1,!0));var t=this._clone();if(t.hash=e.hash,!e.href)return t._href="",t;if(e.slashes&&!e._protocol)return e._copyPropsTo(t,!0),y[t._protocol]&&t.hostname&&!t.pathname&&(t.pathname="/"),t._href="",t;if(e._protocol&&e._protocol!==t._protocol){if(!y[e._protocol])return e._copyPropsTo(t,!1),t._href="",t;if(t._protocol=e._protocol,e.host||"javascript"===e._protocol)t.pathname=e.pathname;else{for(var r=(e.pathname||"").split("/");r.length&&!(e.host=r.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==r[0]&&r.unshift(""),r.length<2&&r.unshift(""),t.pathname=r.join("/")}return t.search=e.search,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t._port=e._port,t.slashes=t.slashes||e.slashes,t._href="",t}var i=t.pathname&&47===t.pathname.charCodeAt(0),o=e.host||e.pathname&&47===e.pathname.charCodeAt(0),a=o||i||t.host&&e.pathname,s=a,u=t.pathname&&t.pathname.split("/")||[],r=e.pathname&&e.pathname.split("/")||[],c=t._protocol&&!y[t._protocol];if(c&&(t.hostname="",t._port=-1,t.host&&(""===u[0]?u[0]=t.host:u.unshift(t.host)),t.host="",e._protocol&&(e.hostname="",e._port=-1,e.host&&(""===r[0]?r[0]=e.host:r.unshift(e.host)),e.host=""),a=a&&(""===r[0]||""===u[0])),o)t.host=e.host?e.host:t.host,t.hostname=e.hostname?e.hostname:t.hostname,t.search=e.search,u=r;else if(r.length)u||(u=[]),u.pop(),u=u.concat(r),t.search=e.search;else if(e.search){if(c){t.hostname=t.host=u.shift();var l=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@");l&&(t.auth=l.shift(),t.host=t.hostname=l.shift())}return t.search=e.search,t._href="",t}if(!u.length)return t.pathname=null,t._href="",t;for(var f=u.slice(-1)[0],h=(t.host||e.host)&&("."===f||".."===f)||""===f,p=0,d=u.length;d>=0;d--)"."===(f=u[d])?u.splice(d,1):".."===f?(u.splice(d,1),p++):p&&(u.splice(d,1),p--);if(!a&&!s)for(;p--;)u.unshift("..");
1a&&""!==u[0]&&(!u[0]||47!==u[0].charCodeAt(0))&&u.unshift(""),h&&"/"!==u.join("/").substr(-1)&&u.push("");var v=""===u[0]||u[0]&&47===u[0].charCodeAt(0);if(c){t.hostname=t.host=v?"":u.length?u.shift():"";var l=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@");l&&(t.auth=l.shift(),t.host=t.hostname=l.shift())}return(a=a||t.host&&u.length)&&!v&&u.unshift(""),t.pathname=0===u.length?null:u.join("/"),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t._href="",t};var i=r(3303);n.prototype._hostIdna=function(e){return i.toASCII(e)};var o=n.prototype._escapePathName=function(e){return s(e,35,63)?e.replace(/[?#]/g,function(e){return encodeURIComponent(e)}):e},a=n.prototype._escapeSearch=function(e){return s(e,35,-1)?e.replace(/#/g,function(e){return encodeURIComponent(e)}):e};function s(e,t,r){for(var n=0,i=e.length;n<i;++n){var o=e.charCodeAt(n);if(o===t||o===r)return!0}return!1}function u(e){var t=new Uint8Array(128);return e.forEach(function(e){if("number"==typeof e)t[e]=1;else for(var r=e[0],n=e[1],i=r;i<=n;++i)t[i]=1}),t}n.prototype._parseProtocol=function(e,t,r){for(var n=!1,i=this._protocolCharacters,o=t;o<=r;++o){var a=e.charCodeAt(o);if(58===a){var s=e.slice(t,o);return n&&(s=s.toLowerCase()),this._protocol=s,o+1}if(1===i[a])a<97&&(n=!0);else break}return t},n.prototype._parseAuth=function(e,t,r,n){var i=e.slice(t,r+1);n&&(i=decodeURIComponent(i)),this.auth=i},n.prototype._parsePort=function(e,t,r){for(var n=0,i=!1,o=!0,a=t;a<=r;++a){var s=e.charCodeAt(a);if(48<=s&&s<=57)n=10*n+(s-48),i=!0;else{o=!1,(92===s||47===s)&&(o=!0);break}}return(0!==n||i)&&o?(this._port=n,a-t):(o||(this._port=-2),0)},n.prototype._parseHost=function(e,t,r,n){var i=this._hostEndingCharacters,o=e.charCodeAt(t),a=e.charCodeAt(t+1);if((47===o||92===o)&&(47===a||92===a)){if(this.slashes=!0,0===t){if(r<2)return t;if(!function(e,t,r,n){for(var i=e.length,o=2;o<i;++o){var a=e.charCodeAt(o);if(64===a)return!0;if(1===n[a])break}return!1}(e,64,2,i)&&!n)return this.slashes=null,t}t+=2}else if(!this._protocol||y[this._protocol])return t;for(var s=!1,u=!1,c=t,l=r,f=0,h=0,p=!1,d=-1,v=t;v<=r;++v){var m=e.charCodeAt(v);if(64===m)d=v;else if(37===m)p=!0;else if(1===i[m])break}if(d>-1&&(this._parseAuth(e,t,d-1,p),t=c=d+1),91===e.charCodeAt(t)){for(var v=t+1;v<=r;++v){var m=e.charCodeAt(v);if(93===m){58===e.charCodeAt(v+1)&&(f=this._parsePort(e,v+2,r)+1);var g=e.slice(t+1,v).toLowerCase();return this.hostname=g,this.host=this._port>0?"["+g+"]:"+this._port:"["+g+"]",this.pathname="/",v+f+1}}return t}for(var v=t;v<=r;++v){if(h>62)return this.hostname=this.host=e.slice(t,v),v;var m=e.charCodeAt(v);if(58===m){f=this._parsePort(e,v+1,r)+1,l=v-1;break}if(m<97){if(46===m)h=-1;else if(65<=m&&m<=90)s=!0;else if(!(45===m||95===m||43===m||48<=m&&m<=57)){0===i[m]&&0===this._noPrependSlashHostEnders[m]&&(this._prependSlash=!0),l=v-1;break}}else if(m>=123){if(m<=126){0===this._noPrependSlashHostEnders[m]&&(this._prependSlash=!0),l=v-1;break}u=!0}h++}if(l+1!==t&&l-c<=256){var g=e.slice(c,l+1);s&&(g=g.toLowerCase()),u&&(g=this._hostIdna(g)),this.hostname=g,this.host=this._port>0?g+":"+this._port:g}return l+1+f},n.prototype._copyPropsTo=function(e,t){t||(e._protocol=this._protocol),e._href=this._href,e._port=this._port,e._prependSlash=this._prependSlash,e.auth=this.auth,e.slashes=this.slashes,e.host=this.host,e.hostname=this.hostname,e.hash=this.hash,e.search=this.search,e.pathname=this.pathname},n.prototype._clone=function(){var e=new n;return e._protocol=this._protocol,e._href=this._href,e._port=this._port,e._prependSlash=this._prependSlash,e.auth=this.auth,e.slashes=this.slashes,e.host=this.host,e.hostname=this.hostname,e.hash=this.hash,e.search=this.search,e.pathname=this.pathname,e},n.prototype._getComponentEscaped=function(e,t,r,n){for(var i=t,o=t,a="",s=n?this._afterQueryAutoEscapeMap:this._autoEscapeMap;o<=r;++o){var u=s[e.charCodeAt(o)];""!==u&&void 0!==u&&(i<o&&(a+=e.slice(i,o)),a+=u,i=o+1)}return i<o+1&&(a+=e.slice(i,o)),a},n.prototype._parsePath=function(e,t,r,n){for(var i,o=r,a=!1,s=this._autoEscapeCharacters,u=-2===this._port?"/:":"",c=t;c<=r;++c){var l=e.charCodeAt(c);if(35===l){this._parseHash(e,c,r,n),o=c-1;break}if(63===l){this._parseQuery(e,c,r,n),o=c-1;break}n||a||1!==s[l]||(a=!0)}if(t>o){this.pathname=""===u?"/":u;return}i=a?this._getComponentEscaped(e,t,o,!1):e.slice(t,o+1),this.pathname=""===u?this._prependSlash?"/"+i:i:u+i},n.prototype._parseQuery=function(e,t,r,n){for(var i,o=r,a=!1,s=this._autoEscapeCharacters,u=t;u<=r;++u){var c=e.charCodeAt(u);if(35===c){this._parseHash(e,u,r,n),o=u-1;break}n||a||1!==s[c]||(a=!0)}if(t>o){this.search="";return}i=a?this._getComponentEscaped(e,t,o,!0):e.slice(t,o+1),this.search=i},n.prototype._parseHash=function(e,t,r,n){if(t>r){this.hash="";return}this.hash=n?e.slice(t,r+1):this._getComponentEscaped(e,t,r,!0)},Object.defineProperty(n.prototype,"port",{get:function(){return this._port>=0?""+this._port:null},set:function(e){null==e?this._port=-1:this._port=parseInt(e,10)}}),Object.defineProperty(n.prototype,"query",{get:function(){var e=this._query;if(null!=e)return e;var t=this.search;return t&&(63===t.charCodeAt(0)&&(t=t.slice(1)),""!==t&&(this._query=t)),t},set:function(e){this._query=e}}),Object.defineProperty(n.prototype,"path",{get:function(){var e=this.pathname||"",t=this.search||"";return e||t?e+t:null==e&&t?"/"+t:null},set:function(){}}),Object.defineProperty(n.prototype,"protocol",{get:function(){var e=this._protocol;return e?e+":":e},set:function(e){if("string"==typeof e){var t=e.length-1;58===e.charCodeAt(t)?this._protocol=e.slice(0,t):this._protocol=e}else null==e&&(this._protocol=null)}}),Object.defineProperty(n.prototype,"href",{get:function(){var e=this._href;return e||(e=this._href=this.format()),e},set:function(e){this._href=e}}),n.parse=function(e,t,r,i){if(e instanceof n)return e;var o=new n;return o.parse(e,!!t,!!r,!!i),o},n.format=function(e){return("string"==typeof e&&(e=n.parse(e)),e instanceof n)?e.format():n.prototype.format.call(e)},n.resolve=function(e,t){return n.parse(e,!1,!0).resolve(t)},n.resolveObject=function(e,t){return e?n.parse(e,!1,!0).resolveObject(t):t};for(var c=["<",">",'"',"`"," ","\r","\n","	","{","}","|","\\","^","`","'"],l=Array(128),f=0,h=l.length;f<h;++f)l[f]="";for(var f=0,h=c.length;f<h;++f){var p=c[f],d=encodeURIComponent(p);d===p&&(d=escape(p)),l[p.charCodeAt(0)]=d}var v=l.slice();l[92]="/";var y=n.prototype._slashProtocols={http:!0,https:!0,gopher:!0,file:!0,ftp:!0,"http:":!0,"https:":!0,"gopher:":!0,"file:":!0,"ftp:":!0};n.prototype._protocolCharacters=u([[97,122],[65,90],46,43,45]),n.prototype._hostEndingCharacters=u([35,63,47,92]),n.prototype._autoEscapeCharacters=u(c.map(function(e){return e.charCodeAt(0)})),n.prototype._noPrependSlashHostEnders=u(["<",">","'","`"," ","\r","\n","	","{","}","|","^","`",'"',"%",";"].map(function(e){return e.charCodeAt(0)})),n.prototype._autoEscapeMap=l,n.prototype._afterQueryAutoEscapeMap=v,e.exports=n,n.replace=function(){r.c.url={exports:n}}},45105:(e,t,r)=>{e.exports=r(87195)},48041:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var c=0;c<u;++c){var l,f,h,p,d=e[c].replace(a,"%20"),v=d.indexOf(n);(v>
1=0?(l=d.substr(0,v),f=d.substr(v+1)):(l=d,f=""),h=decodeURIComponent(l),p=decodeURIComponent(f),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i={};i.decode=i.parse=n(815),i.encode=i.stringify=n(577),e.exports=i}()},48641:(e,t,r)=>{"use strict";r.d(t,{N9:()=>E,oR:()=>j});var n=r(14232);let i=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(n&&(n+=" "),n+=t);return n},o=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,u=e=>a(e)||s(e)?e:null,c=e=>(0,n.isValidElement)(e)||a(e)||s(e)||o(e);function l(e){let{enter:t,exit:r,appendPosition:i=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:u,preventExitTransition:c,done:l,nodeRef:f,isIn:h}=e,p=i?`${t}--${u}`:t,d=i?`${r}--${u}`:r,v=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=f.current,t=p.split(" "),r=n=>{n.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===v.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=f.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,l,a):l()};h||(c?t():(v.current=1,e.className+=` ${d}`,e.addEventListener("animationend",t)))},[h]),n.createElement(n.Fragment,null,s)}}function f(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){let r=this.list.get(e).filter(e=>e!==t);return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){let t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{let r=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)})}}
1,p=e=>{let{theme:t,type:r,...i}=e;return n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...i})},d={info:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(p,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}};function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function m(e){let{closeToast:t,theme:r,ariaLabel:i="close"}=e;return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":i},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function g(e){let{delay:t,isRunning:r,closeToast:o,type:a="default",hide:u,className:c,style:l,controlledProgress:f,progress:h,rtl:p,isIn:d,theme:v}=e,y=u||f&&0===h,m={...l,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:+!y};f&&(m.transform=`scaleX(${h})`);let g=i("Toastify__progress-bar",f?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${v}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),b=s(c)?c({rtl:p,type:a,defaultClassName:g}):i(g,c);return n.createElement("div",{role:"progressbar","aria-hidden":y?"true":"false","aria-label":"notification timer",className:b,style:m,[f&&h>=1?"onTransitionEnd":"onAnimationEnd"]:f&&h<1?null:()=>{d&&o()}})}let b=e=>{let{isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:a}=function(e){let[t,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),u=(0,n.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,n.useRef)(e),{autoClose:l,pauseOnHover:f,closeToast:h,onClick:p,closeOnClick:d}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),document.addEventListener("touchmove",w),document.addEventListener("touchend",E);let r=a.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=r.getBoundingClientRect(),r.style.transition="",u.x=v(t.nativeEvent),u.y=y(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(u.boundingRect){let{top:r,bottom:n,left:i,right:o}=u.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&u.x>=i&&u.x<=o&&u.y>=r&&u.y<=n?_():b()}}function b(){r(!0)}function _(){r(!1)}function w(r){let n=a.current;u.canDrag&&n&&(u.didMove=!0,t&&_(),u.x=v(r),u.y=y(r),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${u.delta}px)`,n.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function E(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",E);let t=a.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,n.useEffect)(()=>{c.current=e}),(0,n.useEffect)(()=>(a.current&&a.current.addEventListener("d",b,{once:!0}),s(e.onOpen)&&e.onOpen((0,n.isValidElement)(e.children)&&e.children.props),()=>
1{let e=c.current;s(e.onClose)&&e.onClose((0,n.isValidElement)(e.children)&&e.children.props)}),[]),(0,n.useEffect)(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||_(),window.addEventListener("focus",b),window.addEventListener("blur",_)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",_))}),[e.pauseOnFocusLoss]);let O={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return l&&f&&(O.onMouseEnter=_,O.onMouseLeave=b),d&&(O.onClick=e=>{p&&p(e),u.canCloseOnClick&&h()}),{playToast:b,pauseToast:_,isRunning:t,preventExitTransition:i,toastRef:a,eventHandlers:O}}(e),{closeButton:u,children:c,autoClose:l,onClick:f,type:h,hideProgressBar:p,closeToast:d,transition:b,position:_,className:w,style:E,bodyClassName:O,bodyStyle:S,progressClassName:T,progressStyle:k,updateId:I,role:x,progress:D,rtl:j,toastId:C,deleteToast:R,isIn:N,isLoading:P,iconOut:A,closeOnClick:F,theme:q}=e,M=i("Toastify__toast",`Toastify__toast-theme--${q}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":j},{"Toastify__toast--close-on-click":F}),L=s(w)?w({rtl:j,position:_,type:h,defaultClassName:M}):i(M,w),V=!!D||!l,Q={closeToast:d,type:h,theme:q},z=null;return!1===u||(z=s(u)?u(Q):(0,n.isValidElement)(u)?(0,n.cloneElement)(u,Q):m(Q)),n.createElement(b,{isIn:N,done:R,position:_,preventExitTransition:r,nodeRef:o},n.createElement("div",{id:C,onClick:f,className:L,...a,style:E,ref:o},n.createElement("div",{...N&&{role:x},className:s(O)?O({type:h}):i("Toastify__toast-body",O),style:S},null!=A&&n.createElement("div",{className:i("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},A),n.createElement("div",null,c)),z,n.createElement(g,{...I&&!V?{key:`pb-${I}`}:{},rtl:j,theme:q,delay:l,isRunning:t,isIn:N,closeToast:d,hide:p,type:h,style:k,className:T,controlledProgress:V,progress:D||0})))}
1,_=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},w=l(_("bounce",!0)),E=(l(_("slide",!0)),l(_("zoom")),l(_("flip")),(0,n.forwardRef)((e,t)=>{let{getToastToRender:r,containerRef:l,isToastActive:p}=function(e){let[,t]=(0,n.useReducer)(e=>e+1,0),[r,i]=(0,n.useState)([]),l=(0,n.useRef)(null),p=(0,n.useRef)(new Map).current,v=e=>-1!==r.indexOf(e),y=(0,n.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:v,getToast:e=>p.get(e)}).current;function m(e){let{containerId:t}=e,{limit:r}=y.props;!r||t&&y.containerId!==t||(y.count-=y.queue.length,y.queue=[])}function g(e){i(t=>null==e?[]:t.filter(t=>t!==e))}function b(){let{toastContent:e,toastProps:t,staleId:r}=y.queue.shift();w(e,t,r)}function _(e,r){var i,v;let{delay:m,staleId:_,...E}=r;if(!c(e)||!l.current||y.props.enableMultiContainer&&E.containerId!==y.props.containerId||p.has(E.toastId)&&null==E.updateId)return;let{toastId:O,updateId:S,data:T}=E,{props:k}=y,I=()=>g(O),x=null==S;x&&y.count++;let D={...k,style:k.toastStyle,key:y.toastKey++,...Object.fromEntries(Object.entries(E).filter(e=>{let[t,r]=e;return null!=r})),toastId:O,updateId:S,data:T,closeToast:I,isIn:!1,className:u(E.className||k.toastClassName),bodyClassName:u(E.bodyClassName||k.bodyClassName),progressClassName:u(E.progressClassName||k.progressClassName),autoClose:!E.isLoading&&(i=E.autoClose,v=k.autoClose,!1===i||o(i)&&i>0?i:v),deleteToast(){let e=f(p.get(O),"removed");p.delete(O),h.emit(4,e);let r=y.queue.length;if(y.count=null==O?y.count-y.displayedToast:y.count-1,y.count<0&&(y.count=0),r>0){let e=null==O?y.props.limit:1;if(1===r||1===e)y.displayedToast++,b();else{let t=e>r?r:e;y.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};D.iconOut=function(e){let{theme:t,type:r,isLoading:i,icon:u}=e,c=null,l={theme:t,type:r};return!1===u||(s(u)?c=u(l):(0,n.isValidElement)(u)?c=(0,n.cloneElement)(u,l):a(u)||o(u)?c=u:i?c=d.spinner():r in d&&(c=d[r](l))),c}(D),s(E.onOpen)&&(D.onOpen=E.onOpen),s(E.onClose)&&(D.onClose=E.onClose),D.closeButton=k.closeButton,!1===E.closeButton||c(E.closeButton)?D.closeButton=E.closeButton:!0===E.closeButton&&(D.closeButton=!c(k.closeButton)||k.closeButton);let j=e;(0,n.isValidElement)(e)&&!a(e.type)?j=(0,n.cloneElement)(e,{closeToast:I,toastProps:D,data:T}):s(e)&&(j=e({closeToast:I,toastProps:D,data:T})),k.limit&&k.limit>0&&y.count>k.limit&&x?y.queue.push({toastContent:j,toastProps:D,staleId:_}):o(m)?setTimeout(()=>{w(j,D,_)},m):w(j,D,_)}function w(e,t,r){let{toastId:n}=t;r&&p.delete(r);let o={content:e,props:t};p.set(n,o),i(e=>[...e,n].filter(e=>e!==r)),h.emit(4,f(o,null==o.props.updateId?"added":"updated"))}return(0,n.useEffect)(()=>(y.containerId=e.containerId,h.cancelEmit(3).on(0,_).on(1,e=>l.current&&g(e)).on(5,m).emit(2,y),()=>{p.clear(),h.emit(3,y)}),[]),(0,n.useEffect)(()=>{y.props=e,y.isToastActive=v,y.displayedToast=r.length}),{getToastToRender:function(t){let r=new Map,n=Array.from(p.values());return e.newestOnTop&&n.reverse(),n.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},containerRef:l,isToastActive:v}}(e),{className:v,style:y,rtl:m,containerId:g}=e;return(0,n.useEffect)(()=>{t&&(t.current=l.current)},[]),n.createElement("div",{ref:l,className:"Toastify",id:g},r((e,t)=>{let r=t.length?{...y}:{...y,pointerEvents:"none"};return n.createElement("div",{className:function(e){let t=i("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":m});return s(v)?v({position:e,rtl:m,defaultClassName:t}):i(t,u(v))}(e),style:r,key:`container-${e}`},t.map((e,r)=>{let{content:i,props:o}=e;return n.createElement(b,{...o,isIn:p(o.toastId),style:{...o.style,"--nth":r+1,"--len":t.length},key:`toast-${o.key}`},i)}))}))}));E.displayName="ToastContainer",E.defaultProps={position:"top-right",transition:w,autoClose:5e3,closeButton:m,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let O,S=new Map,T=[],k=1;function I(e,t){return S.size>0?h.emit(0,e,t):T.push({content:e,options:t}),t.toastId}function x(e,t){return{...t,type:t&&t.type||e,toastId:t&&(a(t.toastId)||o(t.toastId))?t.toastId:""+k++}}function D(e){return(t,r)=>I(t,x(e,r))}function j(e,t){return I(e,x("default",t))}j.loading=(e,t)=>
1I(e,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),j.promise=function(e,t,r){let n,{pending:i,error:o,success:u}=t;i&&(n=a(i)?j.loading(i,r):j.loading(i.render,{...r,...i}));let c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void j.dismiss(n);let o={type:e,...c,...r,data:i},s=a(t)?{render:t}:t;return n?j.update(n,{...o,...s}):j(s.render,{...o,...s}),i},f=s(e)?e():e;return f.then(e=>l("success",u,e)).catch(e=>l("error",o,e)),f},j.success=D("success"),j.info=D("info"),j.error=D("error"),j.warning=D("warning"),j.warn=j.warning,j.dark=(e,t)=>I(e,x("default",{theme:"dark",...t})),j.dismiss=e=>{S.size>0?h.emit(1,e):T=T.filter(t=>null!=e&&t.options.toastId!==e)},j.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},j.isActive=e=>{let t=!1;return S.forEach(r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)}),t},j.update=function(e,t){void 0===t&&(t={}),setTimeout(()=>{let r=function(e,t){let{containerId:r}=t,n=S.get(r||O);return n&&n.getToast(e)}(e,t);if(r){let{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:""+k++};o.toastId!==e&&(o.staleId=e);let a=o.render||i;delete o.render,I(a,o)}},0)},j.done=e=>{j.update(e,{progress:1})},j.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),j.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},j.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,e=>{O=e.containerId||e,S.set(O,e),T.forEach(e=>{h.emit(0,e.content,e.options)}),T=[]}).on(3,e=>{S.delete(e.containerId||e),0===S.size&&h.off(0).off(1).off(5)})},49499:e=>{"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if("object"==typeof e&&null!==e){var o=r.length+1;if(1===o)return e;var a=Array(o);a[0]=i(e);for(var s=1;s<o;s++)a[s]=i(r[s]);return a.join(" ")}if("string"!=typeof e)return e;var u=r.length;if(0===u)return e;for(var c="",l=0,f=-1,h=e&&e.length||0,p=0;p<h;){if(37===e.charCodeAt(p)&&p+1<h){switch(f=f>-1?f:0,e.charCodeAt(p+1)){case 100:case 102:if(l>=u||null==r[l])break;f<p&&(c+=e.slice(f,p)),c+=Number(r[l]),f=p+2,p++;break;case 105:if(l>=u||null==r[l])break;f<p&&(c+=e.slice(f,p)),c+=Math.floor(Number(r[l])),f=p+2,p++;break;case 79:case 111:case 106:if(l>=u||void 0===r[l])break;f<p&&(c+=e.slice(f,p));var d=typeof r[l];if("string"===d){c+="'"+r[l]+"'",f=p+2,p++;break}if("function"===d){c+=r[l].name||"<anonymous>",f=p+2,p++;break}c+=i(r[l]),f=p+2,p++;break;case 115:if(l>=u)break;f<p&&(c+=e.slice(f,p)),c+=String(r[l]),f=p+2,p++;break;case 37:f<p&&(c+=e.slice(f,p)),c+="%",f=p+2,p++,l--}++l}++p}return -1===f?e:(f<h&&(c+=e.slice(f)),c)}},53982:e=>{"use strict";e.exports={mapHttpResponse:function(e){return{res:n(e)}},resSerializer:n};let t=Symbol("pino-raw-res-ref"),r=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[t]},set:function(e){this[t]=e}}});function n(e){let t=Object.create(r);return t.statusCode=e.statusCode,t.headers=e.getHeaders?e.getHeaders():e._headers,t.raw=e,t}Object.defineProperty(r,t,{writable:!0,value:{}})},60427:(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(14232))},66689:()=>{},73074:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(42263)}])},73666:(e,t,r)=>{"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(15427));e.exports={dataScript:function(e){var t=document.createElement("script");return t.innerHTML=e,t},gtm:function(e){var t=n.default.tags(e);return{noScript:function(){var e=document.createElement("noscript");return e.innerHTML=t.iframe,e},script:function(){var e=document.createElement("script");return e.innerHTML=t.script,e},dataScript:this.dataScript(t.dataLayerVar)}},initialize:function(e){var t=e.gtmId,r=e.events,n=e.dataLayer,i=e.dataLayerName,o=e.auth,a=e.preview,s=this.gtm({id:t,events:void 0===r?{}:r,dataLayer:n||void 0,dataLayerName:void 0===i?"dataLayer":i,auth:void 0===o?"":o,preview:void 0===a?"":a});n&&document.head.appendChild(s.dataScript),document.head.insertBefore(s.script(),document.head.childNodes[0]),document.body.insertBefore(s.noScript(),document.body.childNodes[0])},dataLayer:function(e){var t=e.dataLayer,r=e.dataLayerName,i=void 0===r?"dataLayer":r;if(window[i])return window[i].push(t);var o=n.default.dataLayer(t,i),a=this.dataScript(o);document.head.insertBefore(a,document.head.childNodes[0])}}},75536:(e,t,r)=>{"use strict";let n=r(76247),i=r(1916),o=r(53982);e.exports={err:n,mapHttpRequest:i.mapHttpRequest,mapHttpResponse:o.mapHttpResponse,req:i.reqSerializer,res:o.resSerializer,wrapErrorSerializer:function(e){return e===n?e:function(t){return e(n(t))}},wrapRequestSerializer:function(e){return e===i.reqSerializer?e:function(t){return e(i.reqSerializer(t))}},wrapResponseSerializer:function(e){return e===o.resSerializer?e:function(t){return e(o.resSerializer(t))}}}},76247:e=>{"use strict";e.exports=function e(n){if(!(n instanceof Error))return n;n[r]=void 0;let o=Object.create(i);for(let i in o.type="[object Function]"===t.call(n.constructor)?n.constructor.name:n.name,o.message=n.message,o.stack=n.stack,n)if(void 0===o[i]){let t=n[i];t instanceof Error?t.hasOwnProperty(r)||(o[i]=e(t)):o[i]=t}return delete n[r],o.raw=n,o};let{toString:t}=Object.prototype,r=Symbol("circular-ref-tag"),n=Symbol("pino-raw-err-ref"),i=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[n]},set:function(e){this[n]=e}}});Object.defineProperty(i,n,{writable:!0,value:{}})},77328:(e,t,r)=>{e.exports=r(89836)},85410:e=>{"use strict";e.exports=JSON.parse('{"_P":{"DD":"Careem Engineering","Ay":"/","Dm":"/favicon.ico","f4":"https://blog.careem.com/favicon.ico","E$":"/images/careem-logo-dark.png","LA":"110","SH":"25","wm":"/images/CareemEngineering-Logo_RGB-dark.png","hs":"210","I1":"25","ZW":"180","kz":"20","bT":"135","sZ":"15","Ep":""},"W0":{"X$":6,"Ig":"posts","Sh":"?auto=compress,format"},"tz":{"f9":"","iE":{"prod_url":"https://partners.careem.com/onboarding","qa_url":"https://partners.careem-internal.com/onboarding"},"Zg":{"prod_url":"https://partners.careem.com/onboarding","qa_url":"https://partners.careem-internal.com/onboarding"}},"yu":{"Cd":"/images/careem-logo.png","SP":"Careem","PB":"Careem Blog - Latest News, Updates and Promotions"},"Qs":{"wL":{"enable":true,"title":"Blog Categories","showPost":3},"vt":{"enable":true,"title":"Job Categories","jobs_url":"https://jobs.careem.com/?division=Engineering","showJob":5},"zD":{"enable":true,"title":"Job Categories","jobs_url":"https://jobs.careem.com/?division=Engineering","showJob":3}}}')},90818:(e,t,r)=>{"use strict";r.d(t,{l$:()=>i});var n=r(99742);function i(){var e;return void 0!==n.env.TARGET_ENV?"production"===n.env.TARGET_ENV:void 0!==(e=window)&&(e.location.hostname.toString().indexOf("engineering.careem.com")>-1||e.location.hostname.toString().indexOf("tech-blog-web.prod.careem-rh.com")>
1-1||e.location.hostname.toString().indexOf("tech-blog-web.core.gw.prod.careem-rh.com")>-1||e.location.hostname.toString().indexOf("blog.careem.com")>-1)}},96809:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(99742);let i=r(39947)({name:"tech-blog-web",level:n.env.LOG_LEVEL||"info",timestamp:()=>',"timestamp":"'.concat(new Date().toISOString(),'"'),formatters:{level:e=>({level:e}),bindings:e=>({service:e.name}),log:e=>(e.msg&&(e.message=e.msg,delete e.msg),e)}})}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(73074),t(48253))),_N_E=e.O()}]);

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.