1/*! For license information please see e04183d7db3690a40dff9e6d7c03f6016dd31cfb-93d05bfc827119141635.js.LICENSE.txt */ 2"use strict";(self.webpackChunkgu_health=self.webpackChunkgu_health||[]).push([[4233,5990],{458:function(e,t,n){n.d(t,{C:function(){return Wl}});var r=n(64619),i=n(85608),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,c=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return(0,i.C6)(t,e),t}(Error);function l(e,t){if(!e)throw new c(t)}var u=["debug","log","warn","error","silent"],d=u.indexOf("log");function h(e){return function(){if(u.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=h("debug"),e.log=h("log"),e.warn=h("warn"),e.error=h("error")}(l||(l={}));var p="3.14.0";function f(e){try{return e()}catch(a){}}var y=f(function(){return globalThis})||f(function(){return window})||f(function(){return self})||f(function(){return global})||f(function(){return f.constructor("return this")()}),v=new Map;function m(e){var t=v.get(e)||1;return v.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function g(e,t){void 0===t&&(t=0);var n=m("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}function b(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=I(i))||(t=w(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var E=Object.assign(function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||l(e,I(t,n)||w(t,n))},{debug:b(l.debug),log:b(l.log),warn:b(l.warn),error:b(l.error)});function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new c(I(e,t)||w(e,t))}var T=Symbol.for("ApolloErrorMessageHandler_"+p);function O(e){if("string"==typeof e)return e;try{return g(e,2).slice(0,1e3)}catch(a){return"<non-serializable>"}}function I(e,t){if(void 0===t&&(t=[]),e)return y[T]&&y[T](e,t.map(O))}function w(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:p,message:e,args:t.map(O)})))}globalThis.__DEV__;function S(e){return null!==e&&"object"==typeof e}var C=Symbol();function k(e){return e.hasOwnProperty("graphQLErrors")}var A=function(e){function t(n){var r,o,a=n.graphQLErrors,s=n.protocolErrors,c=n.clientErrors,l=n.networkError,u=n.errorMessage,d=n.extraInfo,h=e.call(this,u)||this;return h.name="ApolloError",h.graphQLErrors=a||[],h.protocolErrors=s||[],h.clientErrors=c||[],h.networkError=l||null,h.message=u||(r=h,o=(0,i.fX)((0,i.fX)((0,i.fX)([],r.graphQLErrors,!0),r.clientErrors,!0),r.protocolErrors,!0),r.networkError&&o.push(r.networkError),o.map(function(e){return S(e)&&e.message||"Error message not found."}).join("\n")),h.extraInfo=d,h.cause=(0,i.fX)((0,i.fX)((0,i.fX)([l],a||[],!0),s||[],!0),c||[],!0).find(function(e){return!!e})||null,h.__proto__=t.prototype,h}return(0,i.C6)(t,e),t}(Error),N=n(23146),D=n.t(N,2),x="ReactNative"==f(function(){return navigator.product}),R="function"==typeof WeakMap&&!(x&&!global.HermesInternal),P="function"==typeof WeakSet,L="function"==typeof Symbol&&"function"==typeof Symbol.for,F=L&&Symbol.asyncIterator,M="function"==typeof f(function(){return window.document.createElement}),j=f(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,B=(M||x)&&!j,V=!1,U=D.useSyncExternalStore||function(e,t,n){var r=t();!1===globalThis.__DEV__||V||r===t()||(V=!0,!1!==globalThis.__DEV__&&E.error(92));var i=N.useState({inst:{value:r,getSnapshot:t}}),o=i[0].inst,a=i[1];return B?N.useLayoutEffect(function(){Object.assign(o,{value:r,getSnapshot:t}),$(o)&&a({inst:o})},[e,r,t]):Object.assign(o,{value:r,getSnapshot:t}),N.useEffect(function(){return $(o)&&a({inst:o}),e(function(){$(o)&&a({inst:o})})},[e]),r};function $(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(r){return!0}}const{toString:q,hasOwnProperty:K}=Object.prototype,Q=Function.prototype.toString,z=new Map;function Y(e,t){try{return H(e,t)}finally{z.clear()}}var G=Y;function H(e,t){if(e===t)return!0;const n=q.call(e);
2if(n!==q.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Z(e,t))return!0;const n=W(e),r=W(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!K.call(t,n[e]))return!1;for(let o=0;o<i;++o){const r=n[o];if(!H(e[r],t[r]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Z(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n))return!1;if(i&&!H(o,t.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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Q.call(e);return n===Q.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,X)}}return!1}function W(e){return Object.keys(e).filter(J,e)}function J(e){return void 0!==this[e]}const X="{ [native code] }";function Z(e,t){let n=z.get(e);if(n){if(n.has(t))return!0}else z.set(e,n=new Set);return n.add(t),!1}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}function te(e,t){return ee(e,t,t.variables&&{variables:ee((0,i.Cl)((0,i.Cl)({},e&&e.variables),t.variables))})}var ne=L?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function re(){E("createContext"in D,69);var e=N.createContext[ne];return e||(Object.defineProperty(N.createContext,ne,{value:e=N.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var ie;function oe(e){return!!e&&e<7}!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"}(ie||(ie={}));var ae=n(93217),se=n(35198),ce=n(59762),le=n(42455);const ue=Object.freeze({});function de(e,t,n=ce.aD){const r=new Map;for(const m of Object.values(le.b))r.set(m,he(t,m));let i,o,a,s=Array.isArray(e),c=[e],l=-1,u=[],d=e;const h=[],p=[];do{l++;const e=l===c.length,m=e&&0!==u.length;if(e){if(o=0===p.length?void 0:h[h.length-1],d=a,a=p.pop(),m)if(s){d=d.slice();let e=0;for(const[t,n]of u){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of u)d[e]=t}l=i.index,c=i.keys,u=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?l:c[l],d=a[o],null==d)continue;h.push(o)}let g;if(!Array.isArray(d)){var f,y;(0,ce.Ll)(d)||(0,ae.U)(!1,`Invalid AST Node: ${(0,se.N)(d)}.`);const n=e?null===(f=r.get(d.kind))||void 0===f?void 0:f.leave:null===(y=r.get(d.kind))||void 0===y?void 0:y.enter;if(g=null==n?void 0:n.call(t,d,o,a,h,p),g===ue)break;if(!1===g){if(!e){h.pop();continue}}else if(void 0!==g&&(u.push([o,g]),!e)){if(!(0,ce.Ll)(g)){h.pop();continue}d=g}}var v;if(void 0===g&&m&&u.push([o,d]),e)h.pop();else i={inArray:s,index:l,keys:c,edits:u,prev:i},s=Array.isArray(d),c=s?d:null!==(v=n[d.kind])&&void 0!==v?v:[],l=-1,u=[],a&&p.push(a),a=d}while(void 0!==i);return 0!==u.length?u[u.length-1][1]:e}function he(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function pe(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw _(113,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(E(1===r.length,114,r.length),n=r[0].name.value),(0,i.Cl)((0,i.Cl)({},e),{definitions:(0,i.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function fe(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function ye(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return E(r,115,n),r||null;default:return null}}function ve(){}const me=ve,ge="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
2,be="undefined"!=typeof WeakMap?WeakMap:Map,Ee="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:ve,unregister:ve}};class _e{constructor(e=1/0,t=me){this.max=e,this.dispose=t,this.map=new be,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new ge(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Ee(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.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--;const 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){const 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 Te(){}class Oe{constructor(e=1/0,t=Te){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){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const 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 Ie=new WeakSet;function we(e){e.size<=(e.max||-1)||Ie.has(e)||(Ie.add(e),setTimeout(function(){e.clean(),Ie.delete(e)},100))}var Se=function(e,t){var n=new _e(e,t);return n.set=function(e,t){var n=_e.prototype.set.call(this,e,t);return we(this),n},n},Ce=function(e,t){var n=new Oe(e,t);return n.set=function(e,t){var n=Oe.prototype.set.call(this,e,t);return we(this),n},n},ke=Symbol.for("apollo.cacheSize"),Ae=(0,i.Cl)({},y[ke]),Ne={};function De(e,t){Ne[e]=t}var xe=!1!==globalThis.__DEV__?function(){var e,t,n,r,o;if(!1===globalThis.__DEV__)throw new 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],n=e[1];return[t,Ae[t]||n]})),sizes:(0,i.Cl)({print:null===(e=Ne.print)||void 0===e?void 0:e.call(Ne),parser:null===(t=Ne.parser)||void 0===t?void 0:t.call(Ne),canonicalStringify:null===(n=Ne.canonicalStringify)||void 0===n?void 0:n.call(Ne),links:Ve(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:je(this.queryManager.documentTransform)}},null===(o=(r=this.cache).getMemoryInternals)||void 0===o?void 0:o.call(r))}}:void 0,Re=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,i.Cl)((0,i.Cl)({},Le.apply(this)),{addTypenameDocumentTransform:je(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Fe(this.storeReader.executeSelectionSet),executeSubSelectedArray:Fe(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Fe(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Fe(null==e?void 0:e.findFragmentSpreads),lookup:Fe(null==e?void 0:e.lookup),transform:Fe(null==e?void 0:e.transform)}})}:void 0,Pe=!1!==globalThis.__DEV__?Le:void 0;function Le(){return{cache:{fragmentQueryDocuments:Fe(this.getFragmentDoc)}}}function Fe(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function Me(e){return null!=e}function je(e){return Be(e).map(function(e){return{cache:e}})}function Be(e){return e?(0,i.fX)((0,i.fX)([Fe(null==e?void 0:e.performWork)],Be(null==e?void 0:e.left),
2!0),Be(null==e?void 0:e.right),!0).filter(Me):[]}function Ve(e){var t;return e?(0,i.fX)((0,i.fX)([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],Ve(null==e?void 0:e.left),!0),Ve(null==e?void 0:e.right),!0).filter(Me):[]}var Ue,$e=Object.assign(function(e){return JSON.stringify(e,qe)},{reset:function(){Ue=new Ce(Ae.canonicalStringify||1e3)}});function qe(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var r=Object.keys(t);if(r.every(Ke))return t;var i=JSON.stringify(r),o=Ue.get(i);if(!o){r.sort();var a=JSON.stringify(r);o=Ue.get(a)||r,Ue.set(i,o),Ue.set(a,o)}var s=Object.create(n);return o.forEach(function(e){s[e]=t[e]}),s}}return t}function Ke(e,t,n){return 0===t||n[t-1]<=e}function Qe(e){return{__ref:String(e)}}function ze(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Ye(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return Ye(i,e.name,e.value,r)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return Ye(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw _(124,t.value,n.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&De("canonicalStringify",function(){return Ue.size}),$e.reset();var Ge=["connection","include","skip","client","rest","export","nonreactive"],He=$e,We=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(He(i),")")}return n.connection.key}var o=e;if(t){var a=He(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===Ge.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(He(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=He;return He=e,t}});function Je(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return Ye(n,r,i,t)}),n}return null}function Xe(e){return e.alias?e.alias.value:e.name.value}function Ze(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++){if(et(c=o[i])){if("__typename"===c.name.value)return e[Xe(c)]}else r?r.push(c):r=[c]}if("string"==typeof e.__typename)return e.__typename;if(r)for(var a=0,s=r;a<s.length;a++){var c,l=Ze(e,ye(c=s[a],n).selectionSet,n);if("string"==typeof l)return l}}function et(e){return"Field"===e.kind}function tt(e){E(e&&"Document"===e.kind,116);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw _(117,e.kind);return e});return E(t.length<=1,118,t.length),e}function nt(e){return tt(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function rt(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function it(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function ot(e){var t=nt(e);return E(t&&"query"===t.operation,119),t}function at(e){E("Document"===e.kind,120),E(e.definitions.length<=1,121);var t=e.definitions[0];return E("FragmentDefinition"===t.kind,122),t}function st(e){var t;tt(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];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 _(123)}function ct(e){var t=Object.create(null),n=e&&e.variableDefinitions;
2return n&&n.length&&n.forEach(function(e){e.defaultValue&&Ye(t,e.variable.name,e.defaultValue)}),t}var lt=Object.prototype.toString;function ut(e){return dt(e)}function dt(e,t){switch(lt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=dt(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=dt(e[n],t)}),r;default:return e}}function ht(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function pt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ft(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t,n){return t&&yt(e.prototype,t),n&&yt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var mt=function(){return"function"==typeof Symbol},gt=function(e){return mt()&&Boolean(Symbol[e])},bt=function(e){return gt(e)?Symbol[e]:"@@"+e};mt()&&!gt("observable")&&(Symbol.observable=Symbol("observable"));var Et=bt("iterator"),_t=bt("observable"),Tt=bt("species");function Ot(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function It(e){var t=e.constructor;return void 0!==t&&null===(t=t[Tt])&&(t=void 0),void 0!==t?t:Pt}function wt(e){return e instanceof Pt}function St(e){St.log?St.log(e):setTimeout(function(){throw e})}function Ct(e){Promise.resolve().then(function(){try{e()}catch(Rr){St(Rr)}})}function kt(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Ot(t,"unsubscribe");n&&n.call(t)}}catch(Rr){St(Rr)}}function At(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function Nt(e,t,n){e._state="running";var r=e._observer;try{var i=Ot(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(At(e),!i)throw n;i.call(r,n);break;case"complete":At(e),i&&i.call(r)}}catch(Rr){St(Rr)}"closed"===e._state?kt(e):"running"===e._state&&(e._state="ready")}function Dt(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void Ct(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(Nt(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void Nt(e,t,n);e._queue.push({type:t,value:n})}}var xt=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new Rt(this);try{this._cleanup=t.call(void 0,n)}catch(Rr){n.error(Rr)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(At(this),kt(this))},vt(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Rt=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Dt(this._subscription,"next",e)},t.error=function(e){Dt(this._subscription,"error",e)},t.complete=function(){Dt(this._subscription,"complete")},vt(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Pt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new xt(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(Rr){r(Rr),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(It(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(Rr){return n.error(Rr)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(It(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(Rr){return n.error(Rr)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=It(this),r=arguments.length>1,i=!1,o=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(Rr){return n.error(Rr)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=It(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=It(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(Rr){return r.error(Rr)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}
2return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[_t]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Ot(t,_t);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return wt(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(gt("iterator")&&(r=Ot(t,Et)))return new n(function(e){Ct(function(){if(!e.closed){for(var n,i=pt(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){Ct(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){Ct(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},vt(e,null,[{key:Tt,get:function(){return this}}]),e}();function Lt(e){function t(t){Object.defineProperty(e,t,{value:Pt})}return L&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Ft(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;E(n&&1===n.length,107,r);var i=n[0];E(i.name&&"if"===i.name.value,108,r);var o=i.value;E(o&&("Variable"===o.kind||"BooleanValue"===o.kind),109,r),t.push({directive:e,ifArgument:i})}});return t}(n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],E(void 0!==i,106,n.name.value)):i=r.value.value,"skip"===n.name.value?!i:i})}mt()&&Object.defineProperty(Pt,Symbol("extensions"),{value:{symbol:_t,hostReportError:St},configurable:!0});function Mt(e,t,n){var r=new Set(e),i=r.size;return de(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return ue}}),n?!r.size:r.size<i}function jt(e){return e&&Mt(["client","export"],e,!0)}function Bt(e){var t,n,r=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!r)return"mask";var i=null===(n=r.arguments)||void 0===n?void 0:n.find(function(e){return"mode"===e.name.value});return!1!==globalThis.__DEV__&&i&&(i.value.kind===le.b.VARIABLE?!1!==globalThis.__DEV__&&E.warn(110):i.value.kind!==le.b.STRING?!1!==globalThis.__DEV__&&E.warn(111):"migrate"!==i.value.value&&!1!==globalThis.__DEV__&&E.warn(112,i.value.value)),i&&"value"in i.value&&"migrate"===i.value.value?"migrate":"unmask"}function Vt(e,t,n,r){var o=t.data,a=(0,i.Tt)(t,["data"]),s=n.data,c=(0,i.Tt)(n,["data"]);return G(a,c)&&Ut(st(e).selectionSet,o,s,{fragmentMap:fe(it(e)),variables:r})}function Ut(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(e){if(i.has(e))return!0;if(i.add(e),!Ft(e,r.variables))return!0;if($t(e))return!0;if(et(e)){var o=Xe(e),a=t&&t[o],s=n&&n[o],c=e.selectionSet;if(!c)return G(a,s);var l=Array.isArray(a),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=a.length;if(s.length!==d)return!1;for(var h=0;h<d;++h)if(!Ut(c,a[h],s[h],r))return!1;return!0}return Ut(c,a,s,r)}var p=ye(e,r.fragmentMap);return p?!!$t(p)||Ut(p.selectionSet,t,n,r):void 0})}function $t(e){return!!e.directives&&e.directives.some(qt)}function qt(e){return"nonreactive"===e.name.value}const Kt=()=>Object.create(null),{forEach:Qt,slice:zt}=Array.prototype,{hasOwnProperty:Yt}=Object.prototype;class Gt{constructor(e=!0,t=Kt){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Qt.call(e,e=>t=t.getChildTrie(e)),Yt.call(t,"data")?t.data:t.data=this.makeData(zt.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(zt.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new Gt(this.weakness,this.makeData)),n}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 Ht=null;const Wt={};let Jt=1;function Xt(e){try{return e()}catch(t){}}const Zt="@wry/context:Slot",en=Xt(()=>globalThis)||Xt(()=>global)||Object.create(null),tn=en[Zt]||Array[Zt]||function(e){try{Object.defineProperty(en,Zt,{value:e,enumerable:!1,writable:!1,
2configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Jt++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Ht;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Wt)break;return e!==Ht&&(Ht.slots[this.id]=t),!0}return Ht&&(Ht.slots[this.id]=Wt),!1}getValue(){if(this.hasValue())return Ht.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Ht;Ht={parent:o,slots:i};try{return t.apply(r,n)}finally{Ht=o}}static bind(e){const t=Ht;return function(){const n=Ht;try{return Ht=t,e.apply(this,arguments)}finally{Ht=n}}}static noContext(e,t,n){if(!Ht)return e.apply(n,t);{const r=Ht;try{return Ht=null,e.apply(n,t)}finally{Ht=r}}}}),{bind:nn,noContext:rn}=tn;const on=new tn;const{hasOwnProperty:an}=Object.prototype,sn=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function cn(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const ln=[];function un(e,t){if(!e)throw new Error(t||"assertion failure")}function dn(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function hn(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function pn(e){return e.slice(0)}class fn{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,++fn.count}peek(){if(1===this.value.length&&!mn(this))return yn(this),this.value[0]}recompute(e){return un(!this.recomputing,"already recomputing"),yn(this),mn(this)?function(e,t){In(e),on.withValue(e,vn,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{cn(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(Rr){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,mn(e))return;bn(e)}(e);return hn(e.value)}(this,e):hn(this.value)}setDirty(){this.dirty||(this.dirty=!0,gn(this),cn(this))}dispose(){this.setDirty(),In(this),En(this,(e,t)=>{e.setDirty(),wn(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ln.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(sn(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ln.push(this.deps),this.deps=null)}}function yn(e){const t=on.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mn(e)?_n(t,e):Tn(t,e),t}function vn(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=pn(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!dn(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(a){}}catch(Rr){e.value[1]=Rr}e.recomputing=!1}function mn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function gn(e){En(e,_n)}function bn(e){En(e,Tn)}function En(e,t){const n=e.parents.size;if(n){const r=sn(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function _n(e,t){un(e.childValues.has(t)),un(mn(t));const n=!mn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ln.pop()||new Set;e.dirtyChildren.add(t),n&&gn(e)}function Tn(e,t){un(e.childValues.has(t)),un(!mn(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,pn(t.value)):dn(n,t.value)||e.setDirty(),On(e,t),mn(e)||bn(e)}function On(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ln.length<100&&ln.push(n),e.dirtyChildren=null))}function In(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{wn(e,n)}),e.forgetDeps(),un(null===e.dirtyChildren)}function wn(e,t){t.parents.delete(e),e.childValues.delete(t),On(e,t)}fn.count=0;const Sn={setDirty:!0,dispose:!0,forget:!0};function Cn(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=on.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(cn(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&an.call(Sn,n)?n:"setDirty";sn(r).forEach(e=>e[i]()),t.delete(e),cn(r)}},r}let kn;function An(...e){return(kn||(kn=new Gt("function"==typeof WeakMap))).lookupArray(e)}const Nn=new Set;function Dn(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=An,normalizeResult:i,subscribe:o,cache:a=Oe}=Object.create(null)){const s="function"==typeof a?new a(t,e=>e.dispose()):a,c=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new fn(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const c=a.recompute(Array.prototype.slice.call(arguments));
2return s.set(t,a),Nn.add(s),on.hasValue()||(Nn.forEach(e=>e.clean()),Nn.clear()),c};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function u(e){const t=e&&s.get(e);if(t)return t.peek()}function d(e){return!!e&&s.delete(e)}return Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))},c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))},c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}var xn=Symbol.for("apollo.deprecations"),Rn=y,Pn=new tn;function Ln(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Pn.withValue.apply(Pn,(0,i.fX)([Array.isArray(e)?e:[e]],t,!1))}function Fn(e,t,n,r){void 0===r&&(r="Please remove this option."),Mn(t,function(){t in e&&!1!==globalThis.__DEV__&&E.warn(104,n,t,r)})}function Mn(e,t){(function(e){return Rn[xn]||(Pn.getValue()||[]).includes(e)})(e)||t()}var jn,Bn,Vn=Object.assign,Un=Object.hasOwnProperty,$n=function(e){function t(n){var r=n.queryManager,o=n.queryInfo,a=n.options,s=this,c=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=qn)}catch(n){}var r=!s.observers.size;s.observers.add(e);var i=s.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(s.maskResult(i.result)),r&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return c&&(r.queries.set(s.queryId,o),c=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=o,s.queryManager=r,s.waitForOwnResult=Qn(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var l=r.defaultOptions.watchQuery,u=(void 0===l?{}:l).fetchPolicy,d=void 0===u?"cache-first":u,h=a.fetchPolicy,p=void 0===h?d:h,f=a.initialFetchPolicy,y=void 0===f?"standby"===p?d:p:f;s.options=(0,i.Cl)((0,i.Cl)({},a),{initialFetchPolicy:y,fetchPolicy:p}),s.queryId=o.queryId||r.generateQueryId();var v=nt(s.query);return s.queryName=v&&v.name&&v.name.value,s}return(0,i.C6)(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!1!==globalThis.__DEV__&&Mn("observableQuery.result",function(){!1!==globalThis.__DEV__&&E.warn(23)}),new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;void 0===e&&(e=!0);var n=Ln("getLastResult",function(){return t.getLastResult(!0)}),r=this.queryInfo.networkStatus||n&&n.networkStatus||ie.ready,o=(0,i.Cl)((0,i.Cl)({},n),{loading:oe(r),networkStatus:r}),a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if(Qn(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),Y(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,!c.complete||o.networkStatus!==ie.loading||"cache-first"!==s&&"cache-only"!==s||(o.networkStatus=ie.ready,o.loading=!1)):o.partial=!0,o.networkStatus===ie.ready&&(o.error||o.errors)&&(o.networkStatus=ie.error),!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||o.loading||o.data||o.error||Kn(c.missing)}return e&&this.updateLastResult(o),o},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 n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!Vt(i,this.last.result,e,this.variables):!Y(this.last.result,e))||t&&!Y(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Y(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&Mn("getLastResult",function(){!1!==globalThis.__DEV__&&E.warn(24)}),this.getLast("result",e)},t.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&Mn("getLastError",function(){!1!==globalThis.__DEV__&&E.warn(25)}),this.getLast("error",e)},t.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&Mn("resetLastResults",function(){!1!==globalThis.__DEV__&&E.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&E.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if(n.fetchPolicy="no-cache"===r?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Un.call(e,"variables")){var o=ot(this.query),a=o.variableDefinitions;a&&a.some(function(e){return"variables"===e.variable.name.value})||!1!==globalThis.__DEV__&&E.warn(28,e,(null===(t=o.name)||void 0===t?void 0:t.value)||o)}return e&&!Y(this.options.variables,e)&&(n.variables=this.options.variables=(0,i.Cl)((0,i.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,ie.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,i.Cl)((0,i.Cl)({},e.query?e:(0,i.Cl)((0,i.Cl)((0,i.Cl)((0,i.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,i.Cl)((0,i.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var o=this.queryInfo,a=o.networkStatus;
2o.networkStatus=ie.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set,c=null==e?void 0:e.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||E(c,29),this.queryManager.fetchQuery(r,n,ie.fetchMore).then(function(u){if(t.queryManager.removeQuery(r),o.networkStatus===ie.fetchMore&&(o.networkStatus=a),l)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:u.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:u.data})},onWatchUpdated:function(e){s.add(e.query)}});else{var d=t.getLast("result"),h=c(d.data,{fetchMoreResult:u.data,variables:n.variables});t.reportResult((0,i.Cl)((0,i.Cl)({},d),{networkStatus:a,loading:oe(a),data:h}),t.variables)}return t.maskResult(u)}).finally(function(){l&&!s.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,(0,i.Cl)({subscriptionData:n},t))})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&E.error(30,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&(Fn(e,"canonizeResults","setOptions"),Mn("setOptions",function(){!1!==globalThis.__DEV__&&E.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=ee(this.options,e||{});Vn(this.options,t)},t.prototype.setVariables=function(e){var t=this;return Y(this.variables,e)?this.observers.size?Ln("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},ie.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,o=e(r,{variables:this.variables,complete:!!i,previousData:r});o&&(t.cache.writeQuery({query:this.options.query,data:o,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 n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n&&this.hasObservers()){if(!t||t.interval!==n){E(n,32),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&(oe(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},ie.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){var n=this;void 0===t&&(t=this.variables);var r=Ln("getLastError",function(){return n.getLastError()});return r&&this.last&&!Y(t,this.last.variables)&&(r=void 0),this.last=(0,i.Cl)({result:this.queryManager.assumeImmutableResults?e:ut(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;
2var r=t===ie.refetch||t===ie.fetchMore||t===ie.poll,o=this.options.variables,a=this.options.fetchPolicy,s=ee(this.options,e||{}),c=r?s:Vn(this.options,s),l=this.transformDocument(c.query);this.lastQuery=l,r||(this.updatePolling(),!e||!e.variables||Y(e.variables,o)||"standby"===c.fetchPolicy||c.fetchPolicy!==a&&"function"!=typeof c.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Qn(c.fetchPolicy));var u=function(){n.concast===p&&(n.waitForOwnResult=!1)},d=c.variables&&(0,i.Cl)({},c.variables),h=this.fetch(c,t,l),p=h.concast,f=h.fromLink,y={next:function(e){Y(n.variables,d)&&(u(),n.reportResult(e,d))},error:function(e){Y(n.variables,d)&&(k(e)||(e=new A({networkError:e})),u(),n.reportError(e,d))}};return r||!f&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=y),p.addObserver(y),p},t.prototype.reobserve=function(e,t){return(n=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch(function(){}),n;var n},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;Ln("resetLastResults",function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=r,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=Ln("getLastError",function(){return n.getLastError()}),i=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||i)&&ht(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,r=(0,i.Cl)((0,i.Cl)({},Ln("getLastResult",function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:ie.error,loading:!1});this.updateLastResult(r,t),ht(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,i.Cl)((0,i.Cl)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){(this.cancelNotifyTimeout(),this.dirty)&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&oe(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()));this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new tn,t}(Pt);function qn(e){!1!==globalThis.__DEV__&&E.error(33,e.message,e.stack)}function Kn(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&E.debug(34,e)}function Qn(e){return"network-only"===e||"no-cache"===e||"standby"===e}function zn(e){var t;switch(e){case jn.Query:t="Query";break;case jn.Mutation:t="Mutation";break;case jn.Subscription:t="Subscription"}return t}function Yn(e){Mn("parser",function(){!1!==globalThis.__DEV__&&E.warn(94)}),Bn||(Bn=new Se(Ae.parser||1e3));var t,n,r=Bn.get(e);if(r)return r;E(!!e&&!!e.kind,95,e);for(var i=[],o=[],a=[],s=[],c=0,l=e.definitions;c<l.length;c++){var u=l[c];if("FragmentDefinition"!==u.kind){if("OperationDefinition"===u.kind)switch(u.operation){case"query":o.push(u);break;case"mutation":a.push(u);break;case"subscription":s.push(u)}}else i.push(u)}E(!i.length||o.length||a.length||s.length,96),E(o.length+a.length+s.length<=1,97,e,o.length,s.length,a.length),n=o.length?jn.Query:jn.Mutation,o.length||a.length||(n=jn.Subscription);var d=o.length?o:a.length?a:s;E(1===d.length,98,e,d.length);var h=d[0];t=h.variableDefinitions||[];var p={name:h.name&&"Name"===h.name.kind?h.name.value:"data",type:n,variables:t};return Bn.set(e,p),p}function Gn(e){var t=N.useContext(re()),n=e||t.client;return E(!!n,79),n}Lt($n),function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(jn||(jn={})),Yn.resetCache=function(){Bn=void 0},!1!==globalThis.__DEV__&&De("parser",function(){return Bn?Bn.size:0});var Hn=Array.isArray;function Wn(e){return Array.isArray(e)&&e.length>0}function Jn(e){var t=new Set([e]);
2return t.forEach(function(e){S(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(Rr){if(Rr instanceof TypeError)return null;throw Rr}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){S(e[n])&&t.add(e[n])})}),e}function Xn(e){return!1!==globalThis.__DEV__&&Jn(e),e}var Zn=Symbol.for("apollo.hook.wrappers");function er(e,t,n,r){void 0===r&&(r="Please remove this option.");var i=N.useRef(!1);t in e&&!i.current&&(!1!==globalThis.__DEV__&&E.warn(78,n,t,r),i.current=!0)}var tr=Object.prototype.hasOwnProperty;function nr(){}var rr=Symbol();function ir(e,t){return void 0===t&&(t=Object.create(null)),(n="useQuery",r=or,i=Gn(t&&t.client),o=i.queryManager,a=o&&o[Zn],(s=a&&a[n])?s(r):r)(e,t);var n,r,i,o,a,s}function or(e,t){!1!==globalThis.__DEV__&&(er(t,"canonizeResults","useQuery"),er(t,"partialRefetch","useQuery"),er(t,"defaultOptions","useQuery","Pass the options directly to the hook instead."),er(t,"onCompleted","useQuery","If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),er(t,"onError","useQuery","If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var n=function(e,t){var n=Gn(t.client),r=N.useContext(re()).renderPromises,o=!!r,a=n.disableNetworkFetches,s=!1!==t.ssr&&!t.skip,c=t.partialRefetch,l=function(e,t,n,r){void 0===n&&(n={});var o=n.skip,a=(n.ssr,n.onCompleted,n.onError,n.defaultOptions),s=(0,i.Tt)(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(n){var i=Object.assign(s,{query:t});return!r||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy||(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),o?(i.initialFetchPolicy=i.initialFetchPolicy||i.fetchPolicy||lr(a,e.defaultOptions),i.fetchPolicy="standby"):i.fetchPolicy||(i.fetchPolicy=(null==n?void 0:n.options.initialFetchPolicy)||lr(a,e.defaultOptions)),i}}(n,e,t,o),u=function(e,t,n,r,o){function a(i){var a;return function(e,t){var n=Ln("parser",Yn,[e]),r=zn(t),i=zn(n.type);E(n.type===t,99,r,r,i)}(t,jn.Query),{client:e,query:t,observable:r&&r.getSSRObservable(o())||$n.inactiveOnCreation.withValue(!r,function(){return Ln("canonizeResults",function(){return e.watchQuery(ar(void 0,e,n,o()))})}),resultData:{previousData:null===(a=null==i?void 0:i.resultData.current)||void 0===a?void 0:a.data}}}var s=N.useState(a),c=s[0],l=s[1];function u(e){var t,n;Object.assign(c.observable,((t={})[rr]=e,t));var r=c.resultData;l((0,i.Cl)((0,i.Cl)({},c),{query:e.query,resultData:Object.assign(r,{previousData:(null===(n=r.current)||void 0===n?void 0:n.data)||r.previousData,current:void 0})}))}if(e!==c.client||t!==c.query){var d=a(c);return l(d),[d,u]}return[c,u]}(n,e,t,r,l),d=u[0],h=d.observable,p=d.resultData,f=u[1],y=l(h);!function(e,t,n,r,i){var o;t[rr]&&!Y(t[rr],i)&&(t.reobserve(ar(t,n,r,i)),e.previousData=(null===(o=e.current)||void 0===o?void 0:o.data)||e.previousData,e.current=void 0);t[rr]=i}(p,h,n,t,y);var v=N.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&E.warn(84),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(h)},[h]);!function(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(h,r,s);var m=function(e,t,n,r,i,o,a,s,c){var l=N.useRef(c);N.useEffect(function(){l.current=c});var u=!s&&!o||!1!==r.ssr||r.skip?r.skip||"standby"===i.fetchPolicy?hr:void 0:dr,d=e.previousData,h=N.useMemo(function(){return u&&ur(u,d,t,n)},[n,t,u,d]);return U(N.useCallback(function(r){if(s)return function(){};var i=function(){var i=e.current,o=t.getCurrentResult();i&&i.loading===o.loading&&i.networkStatus===o.networkStatus&&Y(i.data,o.data)||sr(o,e,t,n,a,r,l.current)},o=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,o),!tr.call(s,"graphQLErrors"))throw s;var u=e.current;(!u||u&&u.loading||!Y(s,u.error))&&sr({data:u&&u.data,error:s,loading:!1,networkStatus:ie.error},e,t,n,a,r,l.current)},c={current:t.subscribe(i,o)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[o,s,t,e,a,n]),function(){return h||cr(e,t,l.current,a,n)},function(){return h||cr(e,t,l.current,a,n)})}
2(p,h,n,t,y,a,c,o,{onCompleted:t.onCompleted||nr,onError:t.onError||nr});return{result:m,obsQueryFields:v,observable:h,resultData:p,client:n,onQueryExecuted:f}}(e,t),r=n.result,o=n.obsQueryFields;return N.useMemo(function(){return(0,i.Cl)((0,i.Cl)({},r),o)},[r,o])}function ar(e,t,n,r){var i=[],o=t.defaultOptions.watchQuery;return o&&i.push(o),n.defaultOptions&&i.push(n.defaultOptions),i.push(ee(e&&e.options,r)),i.reduce(te)}function sr(e,t,n,r,o,a,s){var c=t.current;c&&c.data&&(t.previousData=c.data),!e.error&&Wn(e.errors)&&(e.error=new A({graphQLErrors:e.errors})),t.current=ur(function(e,t,n){if(e.partial&&n&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==t.options.fetchPolicy)return t.refetch(),(0,i.Cl)((0,i.Cl)({},e),{loading:!0,networkStatus:ie.refetch});return e}(e,n,o),t.previousData,n,r),a(),function(e,t,n){if(!e.loading){var r=function(e){return Wn(e.errors)?new A({graphQLErrors:e.errors}):e.error}(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===ie.ready&&n.onCompleted(e.data)}).catch(function(e){!1!==globalThis.__DEV__&&E.warn(e)})}}(e,null==c?void 0:c.networkStatus,s)}function cr(e,t,n,r,i){return e.current||sr(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function lr(e,t){var n;return(null==e?void 0:e.fetchPolicy)||(null===(n=null==t?void 0:t.watchQuery)||void 0===n?void 0:n.fetchPolicy)||"cache-first"}function ur(e,t,n,r){var o=e.data,a=(e.partial,(0,i.Tt)(e,["data","partial"]));return(0,i.Cl)((0,i.Cl)({data:o},a),{client:r,observable:n,variables:n.variables,called:e!==dr&&e!==hr,previousData:t})}var dr=Xn({loading:!0,data:void 0,error:void 0,networkStatus:ie.loading}),hr=Xn({loading:!1,data:void 0,error:void 0,networkStatus:ie.ready});var pr=n(14041),fr=Object.defineProperty,yr=(e,t,n)=>(((e,t,n)=>{t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const vr="2.17.4";let mr=!1;function gr(e){mr=e}const br=e=>(...t)=>{mr&&console[e](...t)},Er={error:br("error"),warn:br("warn"),log:br("log")},_r=new Set(["Symbol","Text","Integer","Number","Boolean","Date","Location","Object"]);function Tr({dataFromPreviewApp:e,updateFromEntryEditor:t,name:n}){var r;e[n]=(null==(r=t.fields)?void 0:r[n])??null}function Or(e){var t;return!!(_r.has(e.type)||"Array"===e.type&&"Symbol"===(null==(t=e.items)?void 0:t.type))}function Ir(e,t,n){const r={...t,method:e,from:"live-preview",source:"live-preview-sdk",location:window.location.href,version:vr};Er.log("Send message",r),n.forEach(e=>{var t;null==(t=window.top)||t.postMessage(r,e)})}class wr{constructor(e,t){yr(this,"storageKey"),yr(this,"value"),this.storageKey=e,this.value=this.restoreSessionData()||t}getKey(e,t){return`${e}-${t}`}restoreSessionData(){try{const e=window.sessionStorage.getItem(this.storageKey),t=e?JSON.parse(e):null;return Array.isArray(t)?new Map(t):null}catch{return null}}get(e,t){return this.value.get(this.getKey(e,t))}set(e,t,n){this.value.set(this.getKey(e,t),n);try{window.sessionStorage.setItem(this.storageKey,JSON.stringify(Array.from(this.value.entries())))}catch{Er.warn(`StorageMap: Failed to set data for key "${e}" in sessionStorage`)}}clear(){this.value.clear();try{window.sessionStorage.removeItem(this.storageKey)}catch{Er.warn("StorageMap: Failed to clear data from sessionStorage")}}}function Sr(e){if(!e)return e;try{const t=new URL(e,"https://images.ctfassets.net");return t.protocol="https:",t.href}catch(t){return Er.error(`Recevied invalid asset url "${e}"`,t),e}}function Cr(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return Er.warn("Failed to clone data, updates are done on the original one",e,t),e}}function kr(e,t){if(!t.length)return e;try{const[n,...r]=t;return kr(e[n],r)}catch{return}}function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Nr{get entities(){return[...this.entryMap.values(),...this.assetMap.values()]}updateEntity(e){this.addEntity(e)}getValue(e,t){e.sys.type;const n=this.getEntity(e.sys.linkType,e.sys.id);if(n)return kr(n,t);console.warn(`Unresolved entity reference: ${e}`)}getEntitiesFromMap(e,t){const n=[],r=[];for(const i of t){const t=this.getEntity(e,i);t?n.push(t):r.push(i)}return{resolved:n,missing:r}}addEntity(e){this.isAsset(e)?this.assetMap.set(e.sys.id,e):this.entryMap.set(e.sys.id,e)}async fetchAsset(e){const{resolved:t,missing:n}=this.getEntitiesFromMap("Asset",[e]);if(!n.length)return t[0];console.warn(`Asset "${e}" is not in the store`)}async fetchAssets(e){const{resolved:t,missing:n}=this.getEntitiesFromMap("Asset",e);if(n.length)throw new Error(`Missing assets in the store (${n.join(",")})`);return t}async fetchEntry(e){const{resolved:t,missing:n}=this.getEntitiesFromMap("Entry",[e]);if(!n.length)return t[0];console.warn(`Entry "${e}" is not in the store`)}async fetchEntries(e){const{resolved:t,missing:n}=this.getEntitiesFromMap("Entry",e);if(n.length)throw new Error(`Missing assets in the store (${n.join(",")})`);return t}isAsset(e){return"Asset"===e.sys.type}getEntity(e,t){return"Asset"===e?this.assetMap.get(t):this.entryMap.get(t)}constructor({entities:e,locale:t}){Ar(this,"locale",void 0),Ar(this,"entryMap",new Map),Ar(this,"assetMap",new Map),this.locale=t;for(const n of e)this.addEntity(n)}}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xr,Rr;(Rr=xr||(xr={})).REQUEST_ENTITIES="REQUEST_ENTITIES",Rr.REQUESTED_ENTITIES="REQUESTED_ENTITIES";class Pr extends Nr{cleanupPromise(e){setTimeout(()=>{this.requestCache.delete(e)},300)}getCacheId(e){return 1===e.length?e[0]:e.join(this.cacheIdSeperator)}async fetchEntity(e,t){const{missing:n,resolved:r}=this.getEntitiesFromMap(e,t);if(0===n.length)return r;const i=this.getCacheId(n),o=this.requestCache.get(i);if(o)return o;const a=new Promise((r,o)=>{const a=this.subscribe("REQUESTED_ENTITIES",e=>{n.every(t=>e.entities.find(e=>e.sys.id===t))&&(clearTimeout(s),r(e.entities),this.cleanupPromise(i),t.forEach(e
2=>this.cleanupPromise(e)),a())}),s=setTimeout(()=>{o(new Error("Request for entities timed out")),a()},this.timeoutDuration);this.sendMessage("REQUEST_ENTITIES",{entityIds:n,entityType:e,locale:this.locale})});return this.requestCache.set(i,a),t.forEach(e=>{this.requestCache.set(e,a)}),(await a).forEach(e=>{this.addEntity(e)}),this.getEntitiesFromMap(e,t).resolved}async fetchAsset(e){try{return(await this.fetchAssets([e]))[0]}catch{return void console.warn(`Failed to request asset ${e}`)}}fetchAssets(e){return this.fetchEntity("Asset",e)}async fetchEntry(e){try{return(await this.fetchEntries([e]))[0]}catch(t){return void console.warn(`Failed to request entry ${e}`,t)}}fetchEntries(e){return this.fetchEntity("Entry",e)}constructor({entities:e,locale:t,sendMessage:n,subscribe:r,timeoutDuration:i=3e3}){super({entities:e,locale:t}),Dr(this,"requestCache",new Map),Dr(this,"sendMessage",void 0),Dr(this,"subscribe",void 0),Dr(this,"timeoutDuration",void 0),Dr(this,"cacheIdSeperator",","),this.sendMessage=n,this.subscribe=r,this.timeoutDuration=i}}const Lr="Collection";function Fr(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Mr(e){return`${e}${Lr}`}const jr="Asset";function Br(e){return!!(e&&"object"==typeof e&&"sys"in e&&e.sys.id)}const Vr={};function Ur(e,t){return Vr[e]||(Vr[e]=new Pr({entities:[],sendMessage:t,subscribe:(e,t)=>{const n=n=>{"object"!=typeof n.data||!n.data||"live-preview"===n.data.from&&n.data.method===e&&t(n.data)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)},locale:e})),Vr[e]}async function $r({entityReferenceMap:e,referenceId:t,isAsset:n,locale:r,sendMessage:i}){var o,a,s;const c=e.get(t);if(c)return{reference:c,typeName:"contentType"in c.sys&&null!=(s=null==(a=null==(o=c.sys)?void 0:o.contentType)?void 0:a.sys)&&s.id?Fr(c.sys.contentType.sys.id):jr};if(n){const e=await Ur(r,i).fetchAsset(t);if(!e)throw new Error(`Unknown reference ${t}`);return{reference:e,typeName:jr}}const l=await Ur(r,i).fetchEntry(t);if(!l)throw new Error(`Unknown reference ${t}`);return{reference:l,typeName:Fr(l.sys.contentType.sys.id)}}var qr=(e=>(e.FIELD_ID="data-contentful-field-id",e.ENTRY_ID="data-contentful-entry-id",e.ASSET_ID="data-contentful-asset-id",e.LOCALE="data-contentful-locale",e))(qr||{}),Kr=(e=>(e.MOUSE_MOVE="MOUSE_MOVE",e.SCROLL_START="SCROLL_START",e.SCROLL_END="SCROLL_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.TAGGED_ELEMENTS="TAGGED_ELEMENTS",e.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",e))(Kr||{}),Qr={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},zr={0:8203,1:8204,2:8205,3:65279},Yr=new Array(4).fill(String.fromCodePoint(zr[0])).join(""),Gr="\0",Hr=Object.fromEntries(Object.entries(zr).map(e=>e.reverse())),Wr=Object.fromEntries(Object.entries(Qr).map(e=>e.reverse())),Jr=`${Object.values(Qr).map(e=>`\\u{${e.toString(16)}}`).join("")}`,Xr=new RegExp(`[${Jr}]{4,}`,"gu");function Zr(e){let t=e.match(Xr);if(t)return function(e,t=!1){let n=Array.from(e);if(n.length%2!=0)throw new Error("Encoded data has invalid length");if(n.length%4||!e.startsWith(Yr))return function(e,t){var n;let r=[];for(let c=.5*e.length;c--;){let t=`${Wr[e[2*c].codePointAt(0)]}${Wr[e[2*c+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(t,16)))}let i=[],o=[r.join("")],a=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)return i}catch(s){if(!a--)throw s;let t=+(null==(n=s.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!t)throw s;o.unshift(e.substring(0,t),e.substring(t))}}return i}(n,t);let r=[];for(let i=.25*n.length;i--;){let e=n.slice(4*i,4*i+4).map(e=>Hr[e.codePointAt(0)]).join("");r.unshift(String.fromCharCode(parseInt(e,4)))}if(t){r.shift();let e=r.indexOf(Gr);return-1===e&&(e=r.length),[JSON.parse(r.slice(0,e).join(""))]}return r.join("").split(Gr).filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]}function ei(e){return Zr(e)}const ti=e=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!(!t.hasAttribute(qr.FIELD_ID)||!t.hasAttribute(qr.ENTRY_ID)&&!t.hasAttribute(qr.ASSET_ID))};function ni(e=window.document,t){const n=document.createTreeWalker(e,NodeFilter.SHOW_ALL,e=>{if(e.nodeType===Node.TEXT_NODE){const n=ei(e.textContent??"");return"contentful.com"!==(null==n?void 0:n.origin)?NodeFilter.FILTER_SKIP:ti(e.parentElement)?t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}return t?NodeFilter.FILTER_SKIP:ti(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),r=[];for(;n.nextNode();){const e=n.currentNode;if(e.nodeType===Node.ELEMENT_NODE){r.push(n.currentNode);continue}if(!e.textContent)continue;const t=ei(e.textContent);if(null==t||!t.contentful)continue;const{contentful:i}=t,o=e.parentElement;o&&("Entry"===i.entityType?o.setAttribute(qr.ENTRY_ID,i.entity):o.setAttribute(qr.ASSET_ID,i.entity),o.setAttribute(qr.LOCALE,i.locale),o.setAttribute(qr.FIELD_ID,i.field),r.push(o))}return r}function ri(){return[...new Set(ni().map(e=>
2e.getAttribute(qr.ENTRY_ID)).filter(Boolean))]}class ii{constructor(e){yr(this,"isScrolling",!1),yr(this,"scrollTimeout"),yr(this,"isResizing",!1),yr(this,"resizeTimeout"),yr(this,"hoveredElement"),yr(this,"taggedElements",[]),yr(this,"taggedElementMutationObserver"),yr(this,"receiveMessage",e=>{if(e.method===Kr.INSPECTOR_MODE_CHANGED){const{isInspectorActive:t}=e;t&&this.sendAllElements()}}),yr(this,"addHoverListener",()=>{const e=e=>{const t=e.composedPath();for(const n of t){const e=n;if("BODY"===e.nodeName)break;if("function"==typeof(null==e?void 0:e.getAttribute)&&this.handleTaggedElement(e))return}this.hoveredElement&&(this.hoveredElement=void 0,Ir(Kr.MOUSE_MOVE,{element:null},this.options.targetOrigin))};return window.addEventListener("mouseover",e),()=>window.removeEventListener("mouseover",e)}),yr(this,"addScrollListener",()=>{const{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,Ir(Kr.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,Ir(Kr.SCROLL_END,{},e),this.sendAllElements(),this.hoveredElement&&this.handleTaggedElement(this.hoveredElement)},150)};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}),yr(this,"addMutationListener",()=>{const e=new MutationObserver(()=>{var e;const t=ni();(null==(e=this.taggedElements)?void 0:e.length)!==t.length&&this.sendAllElements()});return e.observe(document.body,{attributes:!0,attributeFilter:[qr.ENTRY_ID,qr.FIELD_ID,qr.LOCALE],childList:!0,subtree:!0}),()=>e.disconnect()}),yr(this,"addResizeListener",()=>{const{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,Ir(Kr.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,Ir(Kr.RESIZE_END,{},e),this.sendAllElements(),this.hoveredElement&&this.handleTaggedElement(this.hoveredElement)},150)});return t.observe(document.body),()=>t.disconnect()}),yr(this,"handleTaggedElement",e=>{const{targetOrigin:t,locale:n}=this.options,r=function(e,t){if(!ti(e))return null;const n=e.getAttribute(qr.FIELD_ID),r=e.getAttribute(qr.LOCALE)??t,i=e.getAttribute(qr.ENTRY_ID),o=e.getAttribute(qr.ASSET_ID);return i?{entryId:i,fieldId:n,locale:r}:o?{assetId:o,fieldId:n,locale:r}:null}(e,n);return!!r&&(this.hoveredElement=e,Ir(Kr.MOUSE_MOVE,{element:{attributes:r,coordinates:e.getBoundingClientRect()}},t),!0)}),yr(this,"sendAllElements",()=>{const{targetOrigin:e}=this.options,t=ni();this.taggedElements=t,this.taggedElementMutationObserver&&this.taggedElementMutationObserver.disconnect();const n=()=>{Ir(Kr.TAGGED_ELEMENTS,{elements:t.map(e=>({coordinates:e.getBoundingClientRect()}))},e)};this.taggedElementMutationObserver=new MutationObserver(n),this.taggedElements.forEach(e=>{var t;null==(t=this.taggedElementMutationObserver)||t.observe(e,{attributes:!0,attributeFilter:[qr.ENTRY_ID,qr.FIELD_ID,qr.LOCALE],childList:!0,subtree:!0,characterData:!0})}),n()}),this.options=e,this.addHoverListener(),this.addScrollListener(),this.addMutationListener(),this.addResizeListener()}}var oi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var ai,si={},ci={};Object.defineProperty(ci,"__esModule",{value:!0}),ci.BLOCKS=void 0,function(e){e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell"}(ai||(ci.BLOCKS=ai={}));var li,ui={};Object.defineProperty(ui,"__esModule",{value:!0}),ui.INLINES=void 0,function(e){e.HYPERLINK="hyperlink",e.ENTRY_HYPERLINK="entry-hyperlink",e.ASSET_HYPERLINK="asset-hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline"}(li||(ui.INLINES=li={}));var di,hi={};Object.defineProperty(hi,"__esModule",{value:!0}),hi.MARKS=void 0,function(e){e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript"}(di||(hi.MARKS=di={}));var pi={};!function(e){var t,n=oi&&oi.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};
2Object.defineProperty(e,"__esModule",{value:!0}),e.V1_MARKS=e.V1_NODE_TYPES=e.TEXT_CONTAINERS=e.HEADINGS=e.CONTAINERS=e.VOID_BLOCKS=e.TABLE_BLOCKS=e.LIST_ITEM_BLOCKS=e.TOP_LEVEL_BLOCKS=void 0;var r=ci,i=ui,o=hi;e.TOP_LEVEL_BLOCKS=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE,r.BLOCKS.TABLE],e.LIST_ITEM_BLOCKS=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],e.TABLE_BLOCKS=[r.BLOCKS.TABLE,r.BLOCKS.TABLE_ROW,r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL],e.VOID_BLOCKS=[r.BLOCKS.HR,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],e.CONTAINERS=((t={})[r.BLOCKS.OL_LIST]=[r.BLOCKS.LIST_ITEM],t[r.BLOCKS.UL_LIST]=[r.BLOCKS.LIST_ITEM],t[r.BLOCKS.LIST_ITEM]=e.LIST_ITEM_BLOCKS,t[r.BLOCKS.QUOTE]=[r.BLOCKS.PARAGRAPH],t[r.BLOCKS.TABLE]=[r.BLOCKS.TABLE_ROW],t[r.BLOCKS.TABLE_ROW]=[r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL],t[r.BLOCKS.TABLE_CELL]=[r.BLOCKS.PARAGRAPH],t[r.BLOCKS.TABLE_HEADER_CELL]=[r.BLOCKS.PARAGRAPH],t),e.HEADINGS=[r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6],e.TEXT_CONTAINERS=n([r.BLOCKS.PARAGRAPH],e.HEADINGS,!0),e.V1_NODE_TYPES=[r.BLOCKS.DOCUMENT,r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.LIST_ITEM,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,i.INLINES.HYPERLINK,i.INLINES.ENTRY_HYPERLINK,i.INLINES.ASSET_HYPERLINK,i.INLINES.EMBEDDED_ENTRY,"text"],e.V1_MARKS=[o.MARKS.BOLD,o.MARKS.CODE,o.MARKS.ITALIC,o.MARKS.UNDERLINE]}(pi);var fi={};Object.defineProperty(fi,"__esModule",{value:!0});var yi={};Object.defineProperty(yi,"__esModule",{value:!0});var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.EMPTY_DOCUMENT=void 0;var mi=ci;vi.EMPTY_DOCUMENT={nodeType:mi.BLOCKS.DOCUMENT,data:{},content:[{nodeType:mi.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};var gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.isText=gi.isBlock=gi.isInline=void 0;var bi=ci,Ei=ui;function _i(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++){if(t===e[r[n]])return!0}return!1}function Ti(e){return!(!e||"object"!=typeof e||!("sys"in e))&&"ResourceLink"!==e.sys.type}function Oi(e){return!(!e||"object"!=typeof e||!("sys"in e))&&"ResourceLink"===e.sys.type}function Ii(e){if(!e||"object"!=typeof e)return!1;const t=e;return t.content&&t.nodeType===si.BLOCKS.DOCUMENT}gi.isInline=function(e){return _i(Ei.INLINES,e.nodeType)},gi.isBlock=function(e){return _i(bi.BLOCKS,e.nodeType)},gi.isText=function(e){return"text"===e.nodeType},function(e){var t=oi&&oi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=oi&&oi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=oi&&oi.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)},i=oi&&oi.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.helpers=e.EMPTY_DOCUMENT=e.MARKS=e.INLINES=e.BLOCKS=void 0;var o=ci;Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return o.BLOCKS}});var a=ui;Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return a.INLINES}});var s=hi;Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return s.MARKS}}),r(pi,e),r(fi,e),r(yi,e);var c=vi;Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return c.EMPTY_DOCUMENT}});var l=i(gi);e.helpers=l}(si);const wi=[si.BLOCKS.EMBEDDED_ENTRY,si.BLOCKS.EMBEDDED_ASSET,si.INLINES.EMBEDDED_ENTRY,si.INLINES.ENTRY_HYPERLINK,si.INLINES.ASSET_HYPERLINK];function Si(e){return e.sys&&"linkType"in e.sys&&e.sys.linkType===jr}function Ci(e,t){return"items"===e.name.value&&function(e){if(e.endsWith(Lr))return Fr(e.replace(Lr,""))}(t)||e.name.value}function ki(e,t){var n,r;const i=[];for(const o of e)"Field"===o.kind&&(i.push({name:o.name.value,alias:null==(n=o.alias)?void 0:n.value,__typename:t}),null!=(r=o.selectionSet)&&r.selections&&i.push(...ki(o.selectionSet.selections,Ci(o,t))));return i}function Ai(e){var t;const n=[];for(const i of e.definitions)if("OperationDefinition"===i.kind||"FragmentDefinition"===i.kind){const e="typeCondition"in i?i.typeCondition.name.value:null==(t=i.name)?void 0:t.value;if(!e){Er.warn("Could not generate __typename for query definition",i);continue}for(const t of i.selectionSet.selections)"Field"===t.kind&&n.push(...ki(i.selectionSet.selections,e))}const r=new Map;for(const{__typename:i,alias:o,name:a}of n){const e=r.get(i)||{alias:new Map,fields:new Set};e.fields.add(a),o&&e.alias.set(a,o),r.set(i,e)}return r}function Ni(e,t,n){if(!n)return!0;const r=n.get(t);return!!r&&(r.fields.has(e)||r.fields.has(Mr(e)))}function Di(e,t,n){var r;const i=null==(r=null==n?void 0:n.get(t))?void 0:r.alias;if(!i)return e;for(const o in e){const t=null==i?void 0:i.get(o);t!==o&&(e[t]=e[o])}return e}function xi(e,t,n){var r,i;try{const o=t.fields.file,a=null==o?void 0:o.details;
2return Di({...e,title:t.fields.title,description:t.fields.description,contentType:null==o?void 0:o.contentType,url:Sr(null==o?void 0:o.url),width:null==(r=null==a?void 0:a.image)?void 0:r.width,height:null==(i=null==a?void 0:a.image)?void 0:i.height},jr,n)}catch(o){return Er.warn("Failed update asset",{dataFromPreviewApp:e,updateFromEntryEditor:t},o),e}}async function Ri({contentType:e,dataFromPreviewApp:t,updateFromEntryEditor:n,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}){var s;if(t.sys.id!==n.sys.id)return t;const c=Cr(t),l=Fr(e.sys.id);for(const u of e.fields){const e=u.apiName??u.name;Ni(e,l,o)&&(Or(u)?Tr({dataFromPreviewApp:c,updateFromEntryEditor:n,name:e}):"RichText"===u.type?await Mi({dataFromPreviewApp:c,updateFromEntryEditor:n,entityReferenceMap:i,name:e,locale:r,gqlParams:o,sendMessage:a}):"Link"===u.type?await Ui({dataFromPreviewApp:c,updateFromEntryEditor:n,name:e,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}):"Array"===u.type&&"Link"===(null==(s=u.items)?void 0:s.type)&&await $i({dataFromPreviewApp:c,updateFromEntryEditor:n,name:e,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}))}return Di(c,l,o)}function Pi(e){return Object.values(e).every(e=>0===e.length)}async function Li(e,t,n,r,i,o,a){if(wi.includes(e.nodeType)){if(e.data&&e.data.target&&e.data.target.sys){const s={sys:{...e.data.target.sys,type:"Link",linkType:e.data.target.sys.type}};let c;if("Entry"===e.data.target.sys.linkType?c=await Bi({referenceFromPreviewApp:null,updatedReference:s,entityReferenceMap:r,locale:i,gqlParams:a,sendMessage:o}):"Asset"===e.data.target.sys.linkType&&(c=await ji({referenceFromPreviewApp:null,updatedReference:s,entityReferenceMap:r,locale:i,gqlParams:a,sendMessage:o})),c)switch(e.nodeType){case si.BLOCKS.EMBEDDED_ENTRY:t.block.push(c);break;case si.BLOCKS.EMBEDDED_ASSET:n.block.push(c);break;case si.INLINES.EMBEDDED_ENTRY:t.inline.push(c);break;case si.INLINES.ENTRY_HYPERLINK:t.hyperlink.push(c);break;case si.INLINES.ASSET_HYPERLINK:n.hyperlink.push(c);break;default:Er.warn("Unhandled nodeType in embedded entries in rich text",{nodeType:e.nodeType,ref:c})}}}else if(e.content)for(const s of e.content)await Li(s,t,n,r,i,o,a)}async function Fi(e,t,n,r,i){const o={block:[],inline:[],hyperlink:[]},a={block:[],inline:[],hyperlink:[]};if(e)for(const s of e.content)await Li(s,o,a,t,n,r,i);return{entries:Pi(o)?{block:[],inline:[],hyperlink:[]}:o,assets:Pi(a)?{block:[],inline:[],hyperlink:[]}:a}}async function Mi({dataFromPreviewApp:e,updateFromEntryEditor:t,name:n,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}){var s;e[n]||(e[n]={}),e[n].json=(null==(s=null==t?void 0:t.fields)?void 0:s[n])||null,e[n].links=await Fi(e[n].json,i,r,a,o)}async function ji({referenceFromPreviewApp:e,updatedReference:t,entityReferenceMap:n,locale:r,gqlParams:i,sendMessage:o}){const{reference:a}=await $r({entityReferenceMap:n,referenceId:t.sys.id,isAsset:!0,locale:r,sendMessage:o});return xi({...e,...t,__typename:jr},a,i)}async function Bi({referenceFromPreviewApp:e,updatedReference:t,entityReferenceMap:n,locale:r,gqlParams:i,sendMessage:o}){var a;const{reference:s,typeName:c}=await $r({entityReferenceMap:n,referenceId:t.sys.id,locale:r,sendMessage:o}),l={...e,...t,__typename:c};for(const u in s.fields){if(!Ni(u,c,i))continue;const e=s.fields[u];if(e&&"object"==typeof e)Ii(e)&&(l[u]={json:e},l[u].links=await Fi(e,n,r,o,i)),"sys"in e&&(l[u]=e,await Ui({dataFromPreviewApp:l,updateFromEntryEditor:s,locale:r,entityReferenceMap:n,name:u,gqlParams:i,sendMessage:o}));else if(Array.isArray(e)&&null!=(a=e[0])&&a.sys){l[Mr(u)]={items:e},await $i({dataFromPreviewApp:l,updateFromEntryEditor:s,locale:r,entityReferenceMap:n,name:u,gqlParams:i,sendMessage:o})}else l[u]=e}return Di(l,c,i)}async function Vi({referenceFromPreviewApp:e,updatedReference:t,entityReferenceMap:n,locale:r,gqlParams:i,sendMessage:o}){return t?e&&e.__typename?e:t.__typename?t:Si(t)?ji({referenceFromPreviewApp:e,updatedReference:t,entityReferenceMap:n,locale:r,gqlParams:i,sendMessage:o}):Bi({referenceFromPreviewApp:e,updatedReference:t,entityReferenceMap:n,locale:r,gqlParams:i,sendMessage:o}):null}async function Ui({dataFromPreviewApp:e,updateFromEntryEditor:t,name:n,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}){var s;const c=null==(s=null==t?void 0:t.fields)?void 0:s[n];e[n]=await Vi({referenceFromPreviewApp:e[n],updatedReference:c,entityReferenceMap:i,locale:r,gqlParams:o,sendMessage:a})}async function $i({dataFromPreviewApp:e,updateFromEntryEditor:t,name:n,locale:r,entityReferenceMap:i,gqlParams:o,sendMessage:a}){var s;const c=Mr(n),l=(null==(s=null==t?void 0:t.fields)?void 0:s[n])||[],u=await Promise.all(l.map(async t=>{var n,s;const l=null==(s=null==(n=e[c])?void 0:n.items)?void 0:s.find(e=>e.sys.id===t.sys.id);return await Vi({referenceFromPreviewApp:l,updatedReference:t,entityReferenceMap:i,locale:r,gqlParams:o,sendMessage:a})}));e[c]||(e[c]={items:[]}),e[c].items=u.filter(Boolean)}var qi=function(){return qi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qi.apply(this,arguments)};function Ki(e,t){if(!e)throw new Error(t)}function Qi(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const zi=/\r\n|[\n\r]/g;function Yi(e,t){let n=0,r=1;for(const i of e.body.matchAll(zi)){if("number"==typeof i.index||Qi(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Gi(e){return Hi(e.source,Yi(e.source,e.start))}function Hi(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let r=0;r<d.length;r+=80)n.push(d.slice(r,r+80));return l+Wi([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+Wi([[a-1+" |",u[i-1]],[`${a} |`,d],["|","^".padStart(c)],[`${a+1} |`,u[i+1]]])}function Wi(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}
2class Ji extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:c,originalError:l,extensions:u}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=c??void 0,this.originalError=l??void 0,this.nodes=Xi(Array.isArray(o)?o:o?[o]:void 0);const d=Xi(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=a??(null==d||null===(r=d[0])||void 0===r?void 0:r.source),this.positions=s??(null==d?void 0:d.map(e=>e.start)),this.locations=s&&a?s.map(e=>Yi(a,e)):null==d?void 0:d.map(e=>Yi(e.source,e.start));const h=function(e){return"object"==typeof e&&null!==e}(null==l?void 0:l.extensions)?null==l?void 0:l.extensions:void 0;this.extensions=null!==(i=u??h)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ji):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Gi(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Hi(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Xi(e){return void 0===e||0===e.length?void 0:e}function Zi(e,t,n){return new Ji(`Syntax Error: ${n}`,{source:e,positions:[t]})}class eo{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class to{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}var no,ro,io,oo;function ao(e){return 9===e||32===e}function so(e){return e>=48&&e<=57}function co(e){return e>=97&&e<=122||e>=65&&e<=90}function lo(e){return co(e)||95===e}function uo(e){return co(e)||so(e)||95===e}function ho(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a<e.length;++a){var o;const t=e[a],s=po(t);s!==t.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function po(e){let t=0;for(;t<e.length&&ao(e.charCodeAt(t));)++t;return t}new Set(Object.keys({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"]})),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(no||(no={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ro||(ro={})),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
2ingValue",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"}(io||(io={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(oo||(oo={}));class fo{constructor(e){const t=new to(oo.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==oo.EOF)do{if(e.next)e=e.next;else{const t=_o(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===oo.COMMENT);return e}}function yo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function vo(e,t){return mo(e.charCodeAt(t))&&go(e.charCodeAt(t+1))}function mo(e){return e>=55296&&e<=56319}function go(e){return e>=56320&&e<=57343}function bo(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return oo.EOF;
vendor: 22,505 bytes, line 2
2if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Eo(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new to(t,n,r,o,a,i)}function _o(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return To(e,i);case 33:return Eo(e,oo.BANG,i,i+1);case 36:return Eo(e,oo.DOLLAR,i,i+1);case 38:return Eo(e,oo.AMP,i,i+1);case 40:return Eo(e,oo.PAREN_L,i,i+1);case 41:return Eo(e,oo.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return Eo(e,oo.SPREAD,i,i+3);break;case 58:return Eo(e,oo.COLON,i,i+1);case 61:return Eo(e,oo.EQUALS,i,i+1);case 64:return Eo(e,oo.AT,i,i+1);case 91:return Eo(e,oo.BRACKET_L,i,i+1);case 93:return Eo(e,oo.BRACKET_R,i,i+1);case 123:return Eo(e,oo.BRACE_L,i,i+1);case 124:return Eo(e,oo.PIPE,i,i+1);case 125:return Eo(e,oo.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?Do(e,i):wo(e,i)}if(so(t)||45===t)return Oo(e,i,t);if(lo(t))return xo(e,i);throw Zi(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":yo(t)||vo(n,i)?`Unexpected character: ${bo(e,i)}.`:`Invalid character: ${bo(e,i)}.`)}return Eo(e,oo.EOF,r,r)}function To(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(yo(e))++i;else{if(!vo(n,i))break;i+=2}}return Eo(e,oo.COMMENT,t,i,n.slice(t+1,i))}function Oo(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),so(o))throw Zi(e.source,i,`Invalid number, unexpected digit after 0: ${bo(e,i)}.`)}else i=Io(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=Io(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(a=!0,o=r.charCodeAt(++i),(43===o||45===o)&&(o=r.charCodeAt(++i)),i=Io(e,i,o),o=r.charCodeAt(i)),46===o||lo(o))throw Zi(e.source,i,`Invalid number, expected digit but got: ${bo(e,i)}.`);return Eo(e,a?oo.FLOAT:oo.INT,t,i,r.slice(t,i))}function Io(e,t,n){if(!so(n))throw Zi(e.source,t,`Invalid number, expected digit but got: ${bo(e,t)}.`);const r=e.source.body;let i=t+1;for(;so(r.charCodeAt(i));)++i;return i}function wo(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),Eo(e,oo.STRING,t,i+1,a);if(92===r){a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?So(e,i):Co(e,i):No(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;if(yo(r))++i;else{if(!vo(n,i))throw Zi(e.source,i,`Invalid character within String: ${bo(e,i)}.`);i+=2}}throw Zi(e.source,i,"Unterminated string.")}function So(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!yo(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Ao(e),r<0)break}throw Zi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Co(e,t){const n=e.source.body,r=ko(n,t+2);if(yo(r))return{value:String.fromCodePoint(r),size:6};if(mo(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=ko(n,t+8);if(go(e))return{value:String.fromCodePoint(r,e),size:12}}throw Zi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function ko(e,t){return Ao(e.charCodeAt(t))<<12|Ao(e.charCodeAt(t+1))<<8|Ao(e.charCodeAt(t+2))<<4|Ao(e.charCodeAt(t+3))}function Ao(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function No(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Zi(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Do(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),c.push(s);const r=Eo(e,oo.BLOCK_STRING,t,o+3,ho(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(yo(r))++o;else{if(!vo(n,o))throw Zi(e.source,o,`Invalid character within String: ${bo(e,o)}.`);o+=2}else s+=n.slice(a,o),c.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=n.slice(a,o),a=o+1,o+=4}throw Zi(e.source,o,"Unterminated string.")}function xo(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){if(!uo(n.charCodeAt(i)))break;++i}return Eo(e,oo.NAME,t,i,n.slice(t,i))}function Ro(e){return Po(e,[])}function Po(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:Po(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(Po(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>2?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+Po(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const Lo=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Ro(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class Fo{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Ki(!1,`Body must be a string. Received: ${Ro(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ki(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ki(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Mo{constructor(e,t={}){const n=function(e){return Lo(e,Fo)}(e)?e:new Fo(e);this._lexer=new fo(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(oo.NAME);return this.node(e,{kind:io.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:io.DOCUMENT,definitions:this.many(oo.SOF,this.parseDefinition,oo.EOF)})}parseDefinition(){if(this.peek(oo.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===oo.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Zi(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(oo.BRACE_L))return this.node(e,{kind:io.OPERATION_DEFINITION,operation:no.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(oo.NAME)&&(n=this.parseName()),this.node(e,{kind:io.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(oo.NAME);switch(e.value){case"query":return no.QUERY;case"mutation":return no.MUTATION;case"subscription":return no.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(oo.PAREN_L,this.parseVariableDefinition,oo.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:io.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(oo.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(oo.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(oo.DOLLAR),this.node(e,{kind:io.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:io.SELECTION_SET,selections:this.many(oo.BRACE_L,this.parseSelection,oo.BRACE_R)})}parseSelection(){return this.peek(oo.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(oo.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:io.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(oo.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(oo.PAREN_L,t,oo.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(oo.COLON),this.node(t,{kind:io.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(oo.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(oo.NAME)?this.node(e,{kind:io.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:io.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:io.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:io.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case oo.BRACKET_L:return this.parseList(e);case oo.BRACE_L:return this.parseObject(e);case oo.INT:return this.advanceLexer(),this.node(t,{kind:io.INT,value:t.value});case oo.FLOAT:return this.advanceLexer(),this.node(t,{kind:io.FLOAT,value:t.value});case oo.STRING:case oo.BLOCK_STRING:return this.parseStringLiteral();case oo.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:io.BOOLEAN,value:!0});case"false":return this.node(t,{kind:io.BOOLEAN,value:!1});case"null":return this.node(t,{kind:io.NULL});default:return this.node(t,{kind:io.ENUM,value:t.value})}case oo.DOLLAR:if(e){if(this.expectToken(oo.DOLLAR),this._lexer.token.kind===oo.NAME){const e=this._lexer.token.value;throw Zi(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:io.STRING,value:e.value,block:e.kind===oo.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:io.LIST,values:this.any(oo.BRACKET_L,()=>this.parseValueLiteral(e),oo.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:io.OBJECT,fields:this.any(oo.BRACE_L,()=>this.parseObjectField(e),oo.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(oo.COLON),this.node(t,{kind:io.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(oo.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(oo.AT),this.node(t,{kind:io.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(oo.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(oo.BRACKET_R),t=this.node(e,{kind:io.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(oo.BANG)?this.node(e,{kind:io.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:io.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(oo.STRING)||this.peek(oo.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(oo.BRACE_L,this.parseOperationTypeDefinition,oo.BRACE_R);return this.node(e,{kind:io.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(oo.COLON);const n=this.parseNamedType();return this.node(e,{kind:io.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:io.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:io.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(oo.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(oo.BRACE_L,this.parseFieldDefinition,oo.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(oo.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:io.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(oo.PAREN_L,this.parseInputValueDef,oo.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(oo.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(oo.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:io.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:io.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:io.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(oo.EQUALS)?this.delimitedMany(oo.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:io.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(oo.BRACE_L,this.parseEnumValueDefinition,oo.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:io.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Zi(this._lexer.source,this._lexer.token.start,`${jo(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:io.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(oo.BRACE_L,this.parseInputValueDef,oo.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===oo.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(oo.BRACE_L,this.parseOperationTypeDefinition,oo.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:io.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:io.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:io.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:io.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:io.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:io.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:io.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(oo.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:io.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(oo.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ro,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new eo(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Zi(this._lexer.source,t.start,`Expected ${Bo(e)}, found ${jo(t)}.`)}expectOptionalToken(e){return
2this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==oo.NAME||t.value!==e)throw Zi(this._lexer.source,t.start,`Expected "${e}", found ${jo(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===oo.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return Zi(this._lexer.source,t.start,`Unexpected ${jo(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==oo.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Zi(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function jo(e){const t=e.value;return Bo(e.kind)+(null!=t?` "${t}"`:"")}function Bo(e){return function(e){return e===oo.BANG||e===oo.DOLLAR||e===oo.AMP||e===oo.PAREN_L||e===oo.PAREN_R||e===oo.SPREAD||e===oo.COLON||e===oo.EQUALS||e===oo.AT||e===oo.BRACKET_L||e===oo.BRACKET_R||e===oo.BRACE_L||e===oo.PIPE||e===oo.BRACE_R}(e)?`"${e}"`:e}var Vo=new Map,Uo=new Map,$o=!0,qo=!1;function Ko(e){return e.replace(/[\s,]+/g," ").trim()}function Qo(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function(e){return Ko(e.source.body.substring(e.start,e.end))}(e.loc),o=Uo.get(r);o&&!o.has(i)?$o&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Uo.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),qi(qi({},e),{definitions:n})}function zo(e){var t=Ko(e);if(!Vo.has(t)){var n=function(e,t){return new Mo(e,t).parseDocument()}(e,{experimentalFragmentVariables:qo,allowLegacyFragmentVariables:qo});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Vo.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Qo(n)))}return Vo.get(t)}function Yo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),zo(r)}var Go=Yo,Ho=function(){Vo.clear(),Uo.clear()},Wo=function(){$o=!1},Jo=function(){qo=!0},Xo=function(){qo=!1};!function(e){e.gql=Go,e.resetCaches=Ho,e.disableFragmentWarnings=Wo,e.enableExperimentalFragmentVariables=Jo,e.disableExperimentalFragmentVariables=Xo}(Yo||(Yo={})),Yo.default=Yo;const Zo=Yo;function ea(e,t){if(0===t)return Er.error("Max depth for validation of subscription data is reached, please provide your data in the correct format."),{isGQL:!1,sysId:null,isREST:!1};if(Array.isArray(e)){for(const n of e){const e=ea(n,t-1);if(Object.values(e).includes(!0))return e}return{isGQL:!1,sysId:null,isREST:!1}}{const n=Object.hasOwn(e,"__typename"),r=Object.hasOwn(e,"sys")?e.sys.id:null,i=Object.hasOwn(e,"fields");return n||r||i?{isGQL:n,sysId:r,isREST:i}:ea(Object.values(e),t-1)}}function ta(e){const{isGQL:t,isREST:n,sysId:r}=ea(e.data,10),i=function(e,t){const n={...e};if(n.query){if("string"==typeof n.query)try{n.query=Zo(n.query)}catch{Er.error("The provided GraphQL query is invalid, please provide it in the correct format.",e),n.query=void 0}t&&(Er.warn("The query param is ignored as it can only be used together with GraphQL.",e),n.query=void 0)}return n}(e,n);return r?t||n?{isGQL:t,isREST:n,sysId:r,isValid:!0,config:i}:(Er.error('For live updates as a basic requirement the provided data must include the "fields" property for REST or "__typename" for Graphql, otherwise the data will be treated as invali
2d and live updates are not applied.',i.data),{isValid:!1,sysId:r,isGQL:t,isREST:n,config:i}):(Er.error('Live Updates requires the "sys.id" to be present on the provided data',i.data),{isValid:!1,sysId:r,isGQL:t,isREST:n,config:i})}var na=(e=>(e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.ERROR="ERROR",e.IFRAME_CONNECTED="IFRAME_CONNECTED",e.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",e.URL_CHANGED="URL_CHANGED",e.SUBSCRIBED="SUBSCRIBED",e.ENTRY_UPDATED="ENTRY_UPDATED",e.ENTRY_SAVED="ENTRY_SAVED",e.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",e.ENTITY_NOT_KNOWN="ENTITY_NOT_KNOWN",e.UNKNOWN_REFERENCE_LOADED="UNKNOWN_REFERENCE_LOADED",e))(na||{});function ra(e,t){return"Asset"===e.name?t.id:t.apiName||t.name}async function ia(e,t,n,r,i,o,a){let s;const c="urn"in t.sys?t.sys.urn:t.sys.id;if(o.has(c))Er.warn("Detected a circular reference, stopping recursion"),s=o.get(c);else{const{reference:e}=await $r({entityReferenceMap:r,referenceId:t.sys.id,...Si(t)?{isAsset:!0}:void 0,locale:n,sendMessage:a});s=e,o.set(c,e)}if(!s)return e;const l=Cr(s);for(const u in s.fields){const e=s.fields[u];if(Ti(e)&&i<10)await aa(l,s,n,u,r,i+1,o,a);else if(Array.isArray(e)&&Ti(e[0])&&i<10)await oa(l,s,n,u,r,i+1,o,a);else if(Ii(e))await ca(l,s,u,n,r,i+1,o,a);else{if(Oi(e)||Array.isArray(e)&&Oi(e[0]))return Er.warn("Detected a resource link, support is still under development."),l;Tr({dataFromPreviewApp:l.fields,updateFromEntryEditor:s,name:u})}}return l}async function oa(e,t,n,r,i,o,a,s){var c;if(null!=(c=t.fields)&&c[r])return e.fields[r]=await Promise.all(t.fields[r].map((t,c)=>{var l;return ia(null==(l=e.fields[r])?void 0:l[c],t,n,i,o+1,a,s)})).then(e=>e.filter(Boolean)),e;delete e.fields[r]}async function aa(e,t,n,r,i,o,a,s){var c;const l=null==(c=null==t?void 0:t.fields)?void 0:c[r];if(l)return e.fields[r]=await ia(e.fields[r],l,n,i,o+1,a,s),e;delete e.fields[r]}async function sa(e,t,n,r,i,o){var a;if(wi.includes(e.nodeType)&&e.data&&e.data.target&&e.data.target.sys&&("Entry"===e.data.target.sys.linkType||"Asset"===e.data.target.sys.linkType)){const s={sys:{id:(null==(a=e.data.target)?void 0:a.sys.id)||"",type:"Link",linkType:e.data.target.sys.linkType}};e.data.target=await ia(void 0,s,n,t,r+1,i,o)}if(e.content)for(const s of e.content)await sa(s,t,n,r+1,i,o)}async function ca(e,t,n,r,i,o,a,s){var c;const l=null==(c=t.fields)?void 0:c[n];if(t.fields[n]){if(Ii(l)){e.fields[n]=l;for(const e of l.content)await sa(e,i,r,o,a,s)}}else delete e.fields[n]}async function la(e,t,n,r,i,o,a,s){var c;if(t.sys.id!==n.sys.id)return t;for(const l of e.fields){const u=ra(e,l);if(Or(l)||"File"===l.type)Tr({dataFromPreviewApp:t.fields,updateFromEntryEditor:n,name:u});else if("Link"===l.type&&o<10)await aa(t,n,r,u,i,o+1,a,s);else if("Array"===l.type&&"Link"===(null==(c=l.items)?void 0:c.type)&&o<10)await oa(t,n,r,u,i,o+1,a,s);else if("RichText"===l.type)await ca(t,n,u,r,i,o,a,s);else if("ResourceLink"===l.type)return Er.warn("Detected a resource link, support is still under development."),t}return t}class ua{constructor({locale:e,targetOrigin:t}){yr(this,"subscriptions",new Map),yr(this,"storage"),yr(this,"defaultLocale"),yr(this,"sendMessage"),this.defaultLocale=e,this.sendMessage=(e,n)=>Ir(e,n,t),this.storage=new wr("live-updates",new Map),window.addEventListener("beforeunload",()=>this.clearStorage())}async mergeEntity({contentType:e,dataFromPreviewApp:t,entityReferenceMap:n,locale:r,updateFromEntryEditor:i,gqlParams:o}){return"__typename"in t?{data:await("Asset"===t.__typename?xi(t,i,o):Ri({contentType:e,dataFromPreviewApp:t,updateFromEntryEditor:i,locale:r,entityReferenceMap:n,gqlParams:o,sendMessage:this.sendMessage})),updated:!0}:this.isCfEntity(t)?{data:await la(e,t,i,r,n,0,new Map,this.sendMessage),updated:!0}:{updated:!1,data:t}}async mergeNestedReference({dataFromPreviewApp:e,...t},n){const r=Br(e)&&e.sys.id,i=n&&r;let o=!1,a=(i?this.storage.get(r,t.locale):void 0)||e;if(Br(a)&&r===t.updateFromEntryEditor.sys.id){const e=await this.mergeEntity({...t,dataFromPreviewApp:a});a=e.data,o=e.updated}else for(const s in a)if(a[s]&&"object"==typeof a[s]){const e=await this.merge
2({...t,dataFromPreviewApp:a[s]},!1);a[s]=e.data,o=o||e.updated}return i&&this.storage.set(r,t.locale,a),{data:a,updated:o}}async merge({dataFromPreviewApp:e,...t},n=!0){if(Array.isArray(e)){const r=[];let i=!1;for(const o of e){const e=await this.mergeNestedReference({...t,dataFromPreviewApp:o},n);r.push(e.data),i=i||e.updated}return{data:r,updated:i}}return this.mergeNestedReference({...t,dataFromPreviewApp:e},n)}isCfEntity(e){return Br(e)&&"fields"in e}async receiveMessage(e){if("action"in e&&"ENTRY_UPDATED"===e.action||e.method===na.ENTRY_UPDATED){const{entity:t,contentType:n,entityReferenceMap:r}=e;await Promise.all([...this.subscriptions].map(async([,e])=>{try{const{updated:i,data:o}=await this.merge({dataFromPreviewApp:Cr(e.data),locale:e.locale||this.defaultLocale,updateFromEntryEditor:t,contentType:n,entityReferenceMap:r,gqlParams:e.gqlParams});i&&e.callback(o)}catch(i){this.sendErrorMessage({message:i.message,payload:{data:e.data,update:t},type:"SUBSCRIPTION_UPDATE_FAILED"}),Er.error("Failed to apply live update",{error:i,subscribedData:e.data,updateFromEditor:t})}}))}}async restore(e,t,n){if(!e)return;const r=e=>{if(Br(e)){const n=this.storage.get(e.sys.id,t);if(n)return n}return e};let i;if(Array.isArray(e))i=e.map(r);else{const t=r(e);t!==e&&(i=t)}const o=this.subscriptions.get(n);o&&i&&o.callback(i)}clearStorage(){this.storage.clear()}sendErrorMessage(e){this.sendMessage(na.ERROR,e)}subscribe(e){const{isGQL:t,isValid:n,sysId:r,isREST:i,config:o}=ta(e);if(!n)return this.sendErrorMessage({message:"Failed to subscribe",payload:{isGQL:t,isValid:n,sysId:r,isREST:i},type:"SUBSCRIPTION_SETUP_FAILED"}),()=>{};const a=`${performance.now()}-${Math.random().toString(36).slice(2)}`,s=o.locale||this.defaultLocale;return this.subscriptions.set(a,{...o,sysId:r,gqlParams:o.query?Ai(o.query):void 0}),setTimeout(()=>{this.restore(o.data,s,a)},0),this.sendMessage(na.SUBSCRIBED,{action:na.SUBSCRIBED,type:t?"GQL":"REST",locale:s,entryId:r,event:"edit"}),()=>{this.subscriptions.delete(a)}}}class da{constructor({locale:e}){yr(this,"locale"),yr(this,"subscription"),this.locale=e}subscribe(e){return this.subscription&&Er.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===na.ENTRY_SAVED&&this.subscription){const{entity:t}=e;ri().includes(t.sys.id)&&this.subscription(t)}}}const ha=["https://app.contentful.com","https://app.eu.contentful.com"],pa=class e{static init(t){var n;if("object"!=typeof t||null==t||!t.locale)throw new Error("Init function have to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");const{debugMode:r,enableInspectorMode:i,enableLiveUpdates:o,locale:a,targetOrigin:s=ha}=t;if(typeof window<"u"){if(!function(){var e;try{return(null==(e=window.top)?void 0:e.location.href)!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(r&&gr(r),"boolean"==typeof i&&(this.inspectorModeEnabled=i),"boolean"==typeof o&&(this.liveUpdatesEnabled=o),this.locale=a,this.targetOrigin=Array.isArray(s)?s:[s],this.initialized)return Er.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new ii({locale:a,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:null==(n=t.experimental)?void 0:n.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new ua({locale:a,targetOrigin:this.targetOrigin}),this.saveEvent=new da({locale:a})),window.addEventListener("message",e=>{var t,n,r;if(function(e){return!("object"!=typeof e.data||!e.data)&&("from"in e.data&&"live-preview"===e.data.from||"source"in e.data&&"live-preview-editor"===e.data.source)}(e)){if(Er.log("Received message",e.data),"action"in e.data&&"DEBUG_MODE_ENABLED"===e.data.action||e.data.method===na.DEBUG_MODE_ENABLED)return void gr(!0);this.inspectorModeEnabled&&(null==(t=this.inspectorMode)||t.receiveMessage(e.data)),this.liveUpdatesEnabled&&(null==(n=this.liveUpdates)||n.receiveMessage(e.data),null==(r=this.saveEvent)||r.receiveMessage(e.data))}}),function(e,t=500){let n=window.location.href;const r=setInterval(()=>{const t=window.location.href;
2t!==n&&(n=t,e(t))},t)}(()=>{Ir(na.URL_CHANGED,{action:na.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${qr.ENTRY_ID}]`).length},this.targetOrigin)});const c=document.querySelectorAll(`[${qr.ENTRY_ID}]`).length;return Ir(na.CONNECTED,{action:na.CONNECTED,connected:!0,tags:c,taggedElementCount:c,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};const n="object"==typeof e?e:t;if("save"===("string"==typeof e?e:"edit")){if(!this.saveEvent)throw new Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(n.callback)}if(!this.liveUpdates)throw new Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(n)}static getProps(e){const{fieldId:t,locale:n}=e;return this.inspectorModeEnabled?void 0!==e.assetId&&t?{[qr.FIELD_ID]:t,[qr.ASSET_ID]:e.assetId,[qr.LOCALE]:n}:void 0!==e.entryId&&t?{[qr.FIELD_ID]:t,[qr.ENTRY_ID]:e.entryId,[qr.LOCALE]:n}:(Er.warn("Missing property for inspector mode",{...e}),null):null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){void 0!==e.assetId&&e.fieldId?function(e,t,n,r){Ir("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",fieldId:e,assetId:t,locale:n},r)}(e.fieldId,e.assetId,e.locale||this.locale,this.targetOrigin):void 0!==e.entryId&&e.fieldId?function(e,t,n,r){Ir("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",fieldId:e,entryId:t,locale:n},r)}(e.fieldId,e.entryId,e.locale||this.locale,this.targetOrigin):Er.error("Please provide field id and entry id to openEntryInEditor.")}static getEntryList(){return ri()}};yr(pa,"initialized",!1),yr(pa,"inspectorMode",null),yr(pa,"liveUpdates",null),yr(pa,"saveEvent",null),yr(pa,"inspectorModeEnabled",!0),yr(pa,"liveUpdatesEnabled",!0),yr(pa,"locale"),yr(pa,"sendMessage"),yr(pa,"targetOrigin");let fa=pa;var ya,va={exports:{}},ma={};va.exports=function(){if(ya)return ma;ya=1;var e=pr,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,c={},l=null,u=null;for(s in void 0!==a&&(l=""+a),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(c[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===c[s]&&(c[s]=n[s]);return{$$typeof:t,type:e,key:l,ref:u,props:c,_owner:i.current}}return ma.Fragment=n,ma.jsx=a,ma.jsxs=a,ma}();var ga=va.exports,ba={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",y="[object Set]",v="[object String]",m="[object Symbol]",g="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",_=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[i]=O[o]=O[b]=O[a]=O[E]=O[s]=O[c]=O[l]=O[u]=O[d]=O[h]=O[f]=O[y]=O[v]=O[g]=!1;var I="object"==typeof oi&&oi&&oi.Object===Object&&oi,w="object"==typeof self&&self&&self.Object===Object&&self,S=I||w||Function("return this")(),C=t&&!t.nodeType&&t,k=C&&e&&!e.nodeType&&e,A=k&&k.exports===C,N=A&&I.process,D=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),x=D&&D.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function P(e,t){return e.has(t)}function L(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function F(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var M=Array.prototype,j=Function.prototype,B=Object.prototype,V=S["__core-js_shared__"],U=j.toString,$=B.hasOwnProperty,q=function(){var e=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");
2return e?"Symbol(src)_1."+e:""}(),K=B.toString,Q=RegExp("^"+U.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=A?S.Buffer:void 0,Y=S.Symbol,G=S.Uint8Array,H=B.propertyIsEnumerable,W=M.splice,J=Y?Y.toStringTag:void 0,X=Object.getOwnPropertySymbols,Z=z?z.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Ae(S,"DataView"),ne=Ae(S,"Map"),re=Ae(S,"Promise"),ie=Ae(S,"Set"),oe=Ae(S,"WeakMap"),ae=Ae(Object,"create"),se=Re(te),ce=Re(ne),le=Re(re),ue=Re(ie),de=Re(oe),he=Y?Y.prototype:void 0,pe=he?he.valueOf:void 0;function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function ge(e){var t=this.__data__=new ye(e);this.size=t.size}function be(e,t){var n=Fe(e),r=!n&&Le(e),i=!n&&!r&&Me(e),o=!n&&!r&&!i&&$e(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)(t||$.call(e,l))&&(!a||!("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xe(l,c)))&&s.push(l);return s}function Ee(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function _e(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?function(e){var t=$.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch{}var i=K.call(e);return r&&(t?e[J]=n:delete e[J]),i}(e):function(e){return K.call(e)}(e)}function Te(e){return Ue(e)&&_e(e)==i}function Oe(e,t,n,r,l){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var g=Fe(e),_=Fe(t),T=g?o:De(e),O=_?o:De(t);T=T==i?h:T,O=O==i?h:O;var I=T==h,w=O==h,S=T==O;if(S&&Me(e)){if(!Me(t))return!1;g=!0,I=!1}if(S&&!I)return p||(p=new ge),g||$e(e)?Se(e,t,n,r,l,p):function(e,t,n,r,i,o,l){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new G(e),new G(t)));case a:case s:case d:return Pe(+e,+t);case c:return e.name==t.name&&e.message==t.message;case f:case v:return e==t+"";case u:var h=L;case y:var p=1&r;if(h||(h=F),e.size!=t.size&&!p)return!1;var g=l.get(e);if(g)return g==t;r|=2,l.set(e,t);var _=Se(h(e),h(t),r,i,o,l);return l.delete(e),_;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,T,n,r,l,p);if(!(1&n)){var C=I&&$.call(e,"__wrapped__"),k=w&&$.call(t,"__wrapped__");
vendor: 5,401 bytes, line 2
2if(C||k){var A=C?e.value():e,N=k?t.value():t;return p||(p=new ge),l(A,N,n,r,p)}}return!!S&&(p||(p=new ge),function(e,t,n,r,i,o){var a=1&n,s=Ce(e),c=s.length,l=Ce(t),u=l.length;if(c!=u&&!a)return!1;for(var d=c;d--;){var h=s[d];if(!(a?h in t:$.call(t,h)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);for(var y=a;++d<c;){var v=e[h=s[d]],m=t[h];if(r)var g=a?r(m,v,h,t,e,o):r(v,m,h,e,t,o);if(!(void 0===g?v===m||i(v,m,n,r,o):g)){f=!1;break}y||(y="constructor"==h)}if(f&&!y){var b=e.constructor,E=t.constructor;b!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,l,p))}(e,t,n,r,Oe,l))}function Ie(e){return!(!Ve(e)||function(e){return!!q&&q in e}(e))&&(je(e)?Q:_).test(Re(e))}function we(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||B;return e===n}(e))return ee(e);var t=[];for(var n in Object(e))$.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Se(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,h=2&n?new me:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var p=e[u],f=t[u];if(r)var y=a?r(f,p,u,t,e,o):r(p,f,u,e,t,o);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!R(t,function(e,t){if(!P(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)})){d=!1;break}}else if(p!==f&&!i(p,f,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ce(e){return function(e,t,n){var r=t(e);return Fe(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,qe,Ne)}function ke(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}fe.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},fe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fe.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},fe.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:$.call(t,e)},fe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return Ee(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new fe,map:new(ne||ye),string:new fe}},ve.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return ke(this,e).get(e)},ve.prototype.has=function(e){return ke(this,e).has(e)},ve.prototype.set=function(e,t){var n=ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,n),this},me.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.clear=function(){this.__data__=new ye,this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ge.prototype.get=function(e){return this.__data__.get(e)},ge.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Ne=X?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(X(e),function(t){return H.call(e,t)}))}:function(){return[]},De=_e;function xe(e,t){return!!(t=t??r)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){if(null!=e){try{return U.call(e)}catch{}try{return e+""}catch{}}return""}function Pe(e,t){return e===t||e!=e&&t!=t}(te&&De(new te(new ArrayBuffer(1)))!=E||ne&&De(new ne)!=u||re&&De(re.resolve())!=p||ie&&De(new ie)!=y||oe&&De(new oe)!=g)&&(De=function(e){var t=_e(e),n=t==h?e.constructor:void 0,r=n?Re(n):"";if(r)switch(r){case se:return E;case ce:return u;case le:return p;case ue:return y;case de:return g}return t});var Le=Te(function(){return arguments}())?Te:function(e){return Ue(e)&&$.call(e,"callee")&&!H.call(e,"callee")},Fe=Array.isArray;var Me=Z||function(){return!1};function je(e){if(!Ve(e))return!1;var t=_e(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ve(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var $e=x?function(e){return function(t){return e(t)}}(x):function(e){return Ue(e)&&Be(e.length)&&!!O[_e(e)]};function qe(e){return function(e){return null!=e&&Be(e.length)&&!je(e)}(e)?be(e):we(e)}e.exports=function(e,t){return Oe(e,t)}}
2(ba,ba.exports);const Ea=(0,pr.createContext)(null);function _a({children:e,locale:t,debugMode:n=!1,enableInspectorMode:r=!0,enableLiveUpdates:i=!0,targetOrigin:o,experimental:a}){if(!t)throw new Error('ContentfulLivePreviewProvider have to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');fa.init({locale:t,debugMode:n,enableInspectorMode:r,enableLiveUpdates:i,targetOrigin:o,experimental:a});const s=(0,pr.useMemo)(()=>({locale:t,debugMode:n,enableInspectorMode:r,enableLiveUpdates:i,targetOrigin:o}),[t,n,r,i,o]);return ga.jsx(Ea.Provider,{value:s,children:e})}var Ta=n(44859),Oa=n(18525);var Ia={id:"nib"},wa=n(25081),Sa=n(89362),Ca=n(72470),ka=n(64301),Aa=n(6717);const Na=/[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*/u;const Da=99,xa="; ",Ra=", or ",Pa="Validation error",La=": ";class Fa extends Error{details;name;constructor(e,t=[]){super(e),this.details=t,this.name="ZodValidationError"}toString(){return this.message}}function Ma(e){const{issue:t,issueSeparator:n,unionSeparator:r,includePath:i}=e;if("invalid_union"===t.code)return t.unionErrors.reduce((e,t)=>{const o=t.issues.map(e=>Ma({issue:e,issueSeparator:n,unionSeparator:r,includePath:i})).join(n);return e.includes(o)||e.push(o),e},[]).join(r);if(i&&0!==t.path.length){if(1===t.path.length){const e=t.path[0];if("number"==typeof e)return`${t.message} at index ${e}`}return`${t.message} at "${o=t.path,1===o.length?o[0].toString():o.reduce((e,t)=>"number"==typeof t?e+"["+t.toString()+"]":t.includes('"')?e+'["'+t.replace(/"/g,'\\"')+'"]':Na.test(t)?e+(0===e.length?"":".")+t:e+'["'+t+'"]',"")}"`}var o;return t.message}function ja(e,t,n){return null!==t?e.length>0?[t,e].join(n):t:e.length>0?e:Pa}function Ba(e,t={}){const{maxIssuesInMessage:n=Da,issueSeparator:r=xa,unionSeparator:i=Ra,prefixSeparator:o=La,prefix:a=Pa,includePath:s=!0}=t,c=ja(e.errors.slice(0,n).map(e=>Ma({issue:e,issueSeparator:r,unionSeparator:i,includePath:s})).join(r),a,o);return new Fa(c,e.errors)}var Va=n(29195),Ua=n(55301);const $a=()=>{const e=(0,Ua.K)(["contentConnector"]);return Va.J1` 3 ${e} 4 5 query ($channel: String!, $preview: Boolean = true, $skip: Int = 0, $limit: Int = 100) { 6 contentConnectors(channel: $channel, preview: $preview, skip: $skip, limit: $limit, noOfChildLevelsToInclude: 2) { 7 total 8 limit 9 skip 10 edges { 11 ...ContentConnector 12 } 13 } 14 } 15 `};var qa=n(42580),Ka=n(31085);const Qa=e=>e||0===e;var za=n(26597),Ya=n(74118),Ga=n(90007);const Ha=({space:e,inset:t,listType:n,position:r,indent:i,gridColumn:o})=>ka.css` 16 margin: 0; 17 padding: 0; 18 list-style-type: ${n}; 19 list-style-position: ${r}; 20 ${e&&(e=>ka.css` 21 ${(0,za.Tj)(e,e=>Qa(e)&&ka.css` 22 > li:not(:first-child) { 23 ${(0,wa.mt)(e)}; 24 } 25 `)} 26`)(e)}; 27 ${t&&((e,t)=>ka.css` 28 ${(0,za.Tj)(e,e=>Qa(e)&&ka.css` 29 ${"inside"===t?ka.css` 30 > li::before { 31 content: ''; 32 ${(0,Ya.pl)(e)}; 33 } 34 `:ka.css` 35 > li { 36 ${(0,Ya.pl)(e)}; 37 } 38 `} 39 `)} 40`)(t,r)}; 41 ${i&&(e=>ka.css` 42 ${(0,za.Tj)(e,e=>Qa(e)&&ka.css` 43 ${(0,Ya.pl)(e)}; 44 `)} 45`)(i)}; 46 ${o&&(e=>ka.css` 47 ${(0,za.Tj)(e,t=>e?ka.css` 48 grid-column: ${t}; 49 `:"")} 50`)(o)}; 51`,Wa=(ka.default.ol` 52 ${({space:e,inset:t,listType:n,position:r,indent:i,gridColumn:o})=>ka.css` 53 ${Ha({space:e,inset:t,listType:n,position:r,indent:i,gridColumn:o})}; 54 `} 55`,ka.default.ul` 56 ${({space:e,inset:t,listType:n,position:r,indent:i,gridColumn:o})=>ka.css` 57 ${Ha({space:e,inset:t,listType:n,position:r,indent:i,gridColumn:o})}; 58 `} 59`),Ja={xs:4,md:6},Xa={xs:2,md:3},Za=2,es=e=>{const{listType:t="disc",space:n=Za,indent:r=Ja,inset:i=Xa,position:o="outside",gridColumn:a,children:s,...c}=e;return(0,Ka.jsx)(Wa,{"data-mesh-component":"UNORDERED-LIST",indent:r,listType:t,position:o,inset:i,space:n,gridColumn:a,...c,children:s})};es.displayName="UnorderedList";const ts=(0,ka.default)(Ga.Ay).attrs({component:"li"})``;ts.displayName="ListItem";var ns=n(26129),rs=n(27207),is=n(91484),os=n(83957),as=n(98391),ss=n(36336),cs=n(80158),ls=n(96691);const us=ka.default.span.withConfig({displayName:"Component__Muted",componentId:"sc-1cazl02-0"})(["display:inline-block;opacity:0.7;font-size:0.9em;"]),ds=ka.default.div.withConfig({displayName:"Component__StyledPreviewHeader",componentId:"sc-1cazl02-1"})(["padding:15px;border-bottom:1px gray solid;color:white;background-color:",";display:flex;flex-direction:row;justify-content:space-between;"],(0,Ta.A)("theme.color.fg.brand")),hs=(0,ka.default)(ns.Ay).withConfig({displayName:"Component__StyledFormControl",componentId:"sc-1cazl02-2"})(["color:",";> fieldset > div{margin-top:0;}"],(0,Ta.A)("theme.color.fg.brand")),ps=ka.default.div.withConfig({displayName:"Component__StyledErrorBoxes",componentId:"sc-1cazl02-3"})(["margin-left:40px;"]);function fs(e){var t,n;let{pageContent:r,generalOptions:i,previewError:o,render:a,id:s,env:c,isXrayEnabled:l,setIsXrayEnabled:u}=e;return(0,Ka.jsx)(Oa.Ay,{theme:Ia,children:r?(0,Ka.jsxs)(Ka.Fragment,{children:[(0,Ka.jsxs)(ds,{children:[(0,Ka.jsxs)(es,{listType:"none",children:[(0,Ka.jsxs)(ts,{children:[(0,Ka.jsx)(us,{children:"Previewing Page:"})," ",r.label]}),(0,Ka.jsxs)(ts,{children:[(0,Ka.jsx)(us,{children:"Path:"})," ",(0,ls.Fe)(null!==(t=null==r?void 0:r.slug)&&void 0!==t?t:"")]})]}),(0,Ka.jsx)(ss.a,{color:"darkest",children:(0,Ka.jsx)(hs,{children:(0,Ka.jsx)(qa.A,{checked:l,onChange:()=>u(!l),label:"X-ray"})})})]}),a(r,i)]}):(0,Ka.jsx)(as.Ay,{title:null!=o&&o.isValidationError?"Validation Error":"Preview Error",icon:is.A,children:(0,Ka.jsxs)(cs.B,{space:2,children:[(0,Ka.jsxs)(ss.a,{children:["Entry:"," ",(0,Ka.jsx)(rs.Ay,{href:c?`https://app.contentful.com/spaces/hkmafl6harxv/environments/${c}/entries/${s}`:`https://app.contentful.com/spaces/hkmafl6harxv/entries/${s}`,target:"_blank",rel:"noreferrer noopener",iconPlacement:"right",icon:os.h,children:s})]}),null!=o&&null!==(n=o.info)&&void 0!==n&&n.length?(0,Ka.jsx)(Ka.Fragment,{children:o.info.map(e=>{let{message:t,path:n}=e;return null!=o&&o.isValidationError?(0,Ka.jsx)(cs.B,{space:2,children:(0,Ka.jsxs)(ps,{children:["Issue in Entry:"," ",(0,Ka.jsx)(rs.Ay,{href:c?`https://app.contentful.com/spaces/hkmafl6harxv/environments/${c}/entries/${n[0]||s}`:`https://app.contentful.com/spaces/hkmafl6harxv/entries/${n[0]||s}`,target:"_blank",rel:"noreferrer noopener",iconPlacement:"right",icon:os.h,children:n[0]||s}),(0,Ka.jsx)("br",{}),t]})},t):(0,Ka.jsxs)(pr.Fragment,{children:[(0,Ka.jsxs)(ss.a,{children:["Path: ",n.join(" > ")]}),(0,Ka.jsxs)(ss.a,{children:["Reason: ",t]})]},t)})}):(0,Ka.jsxs)(ss.a,{children:['Unable to find page with ID: "',s,'". Please check that this ID exists.']})]})})})}function ys(e,t){return t?t(e):Pt.of()}function vs(e){return"function"==typeof e?new gs(e):e}function ms(e){return e.request.length<=1}var gs=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return Pt.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(vs).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,o=vs(n),a=vs(r||new e(ys));return i=ms(o)&&ms(a)?new e(function(e){return t(e)?o.request(e)||Pt.of():a.request(e)||Pt.of()}):new e(function(e,n){return t(e)?o.request(e,n)||Pt.of():a.request(e,n)||Pt.of()}),Object.assign(i,{left:o,right:a})},e.execute=function(e,t){return e.request(function(e,t){var n=(0,i.Cl)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,i.Cl)((0,i.Cl)({},n),e(n)):(0,i.Cl)((0,i.Cl)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,i.Cl)({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?rt(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw _(58,i)}return e}(t))))||Pt.of()},e.concat=function(t,n){var r=vs(t);if(ms(r))return!1!==globalThis.__DEV__&&E.warn(47,r),r;var i,o=vs(n);return i=ms(o)?new e(function(e){return r.request(e,function(e){return o.request(e)||Pt.of()})||Pt.of()}):new e(function(e,t){return r.request(e,function(e){return o.request(e,t)||Pt.of()})||Pt.of()}),Object.assign(i,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(ys))
59)},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw _(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&Mn("onError",function(){!1!==globalThis.__DEV__&&E.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&E.warn(50),this.onError=e,this},e}(),bs=gs.execute,Es=function(e,t){var n;try{n=JSON.stringify(e)}catch(Rr){var r=_(54,t,Rr.message);throw r.parseError=Rr,r}return n};function _s(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){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){n=e,o.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return F&&(l[Symbol.asyncIterator]=function(){return this}),l}function Ts(e){var t={next:function(){return e.read()}};return F&&(t[Symbol.asyncIterator]=function(){return this}),t}function Os(e){var t,n,r,i=e;if(e.body&&(i=e.body),function(e){return!(!F||!e[Symbol.asyncIterator])}(i))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(i);if(function(e){return!!e.getReader}(i))return Ts(i.getReader());if(function(e){return!!e.stream}(i))return Ts(i.stream().getReader());if(function(e){return!!e.arrayBuffer}(i))return t=i.arrayBuffer(),n=!1,r={next:function(){return n?Promise.resolve({value:void 0,done:!0}):(n=!0,new Promise(function(e,n){t.then(function(t){e({value:t,done:!1})}).catch(n)}))}},F&&(r[Symbol.asyncIterator]=function(){return this}),r;if(function(e){return!!e.pipe}(i))return _s(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Is=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ws=Object.prototype.hasOwnProperty;function Ss(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cs(e)}function Cs(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new As,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var ks=function(e,t,n){return this.merge(e[n],t[n])},As=function(){function e(e){void 0===e&&(e=ks),this.reconciler=e,this.isObject=S,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return S(t)&&S(e)?(Object.keys(t).forEach(function(o){if(ws.call(e,o)){var a=e[o];if(t[o]!==a){var s=n.reconciler.apply(n,(0,i.fX)([e,t,o],r,!1));s!==a&&((e=n.shallowCopyForMerge(e))[o]=s)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return S(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,i.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function Ns(e){return"incremental"in e}function Ds(e){return S(e)&&"payload"in e}function xs(e,t){var n=e,r=new As;return Ns(t)&&Wn(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}n=r.merge(n,t)}),n}var Rs=Object.prototype.hasOwnProperty;function Ps(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function Ls(e,t){if(e.status>=300){Is(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){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var Fs=n(67714);const Ms=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function js(e){return Bs[e.charCodeAt(0)]}const Bs=["\\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"];const Vs={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Us(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=qs("(",Us(e.variableDefinitions,", "),")"),n=Us([e.operation,Us([e.name,t]),Us(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+qs(" = ",n)+qs(" ",Us(r," "))},SelectionSet:{leave:({selections:e})=>$s(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=qs("",e,": ")+t;let a=o+qs("(",Us(n,", "),")");return a.length>80&&(a=o+qs("(\n",Ks(Us(n,"\n")),"\n)")),Us([a,Us(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+qs(" ",Us(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Us(["...",qs("on ",e),Us(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${qs("(",Us(n,", "),")")} on ${t} ${qs("",Us(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
59,StringValue:{leave:({value:e,block:t})=>t?(0,Fs.yo)(e):`"${e.replace(Ms,js)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Us(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Us(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+qs("(",Us(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>qs("",e,"\n")+Us(["schema",Us(t," "),$s(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>qs("",e,"\n")+Us(["scalar",t,Us(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>qs("",e,"\n")+Us(["type",t,qs("implements ",Us(n," & ")),Us(r," "),$s(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>qs("",e,"\n")+t+(Qs(n)?qs("(\n",Ks(Us(n,"\n")),"\n)"):qs("(",Us(n,", "),")"))+": "+r+qs(" ",Us(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>qs("",e,"\n")+Us([t+": "+n,qs("= ",r),Us(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>qs("",e,"\n")+Us(["interface",t,qs("implements ",Us(n," & ")),Us(r," "),$s(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>qs("",e,"\n")+Us(["union",t,Us(n," "),qs("= ",Us(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>qs("",e,"\n")+Us(["enum",t,Us(n," "),$s(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>qs("",e,"\n")+Us([t,Us(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>qs("",e,"\n")+Us(["input",t,Us(n," "),$s(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>qs("",e,"\n")+"directive @"+t+(Qs(n)?qs("(\n",Ks(Us(n,"\n")),"\n)"):qs("(",Us(n,", "),")"))+(r?" repeatable":"")+" on "+Us(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Us(["extend schema",Us(e," "),$s(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Us(["extend scalar",e,Us(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Us(["extend type",e,qs("implements ",Us(t," & ")),Us(n," "),$s(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Us(["extend interface",e,qs("implements ",Us(t," & ")),Us(n," "),$s(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Us(["extend union",e,Us(t," "),qs("= ",Us(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Us(["extend enum",e,Us(t," "),$s(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Us(["extend input",e,Us(t," "),$s(n)]," ")}};function Us(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function $s(e){return qs("{\n",Ks(Us(e,"\n")),"\n}")}function qs(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Ks(e){return qs(" ",e.replace(/\n/g,"\n "))}function Qs(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var zs,Ys=Object.assign(function(e){var t=zs.get(e);return t||(t=function(e){return de(e,Vs)}(e),zs.set(e,t)),t},{reset:function(){zs=new Se(Ae.print||2e3)}});Ys.reset(),!1!==globalThis.__DEV__&&De("print",function(){return zs?zs.size:0});var Gs={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Hs=function(e,t){return t(e)};function Ws(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},a={};n.forEach(function(e){o=(0,i.Cl)((0,i.Cl)((0,i.Cl)({},o),e.options),{headers:(0,i.Cl)((0,i.Cl)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,i.Cl)((0,i.Cl)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var n={};
59return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,c=e.extensions,l=e.variables,u=e.query,d={operationName:s,variables:l};return a.includeExtensions&&(d.extensions=c),a.includeQuery&&(d.query=t(u,Ys)),{options:o,body:d}}function Js(e){return new Pt(function(t){t.error(e)})}var Xs={kind:le.b.FIELD,name:{kind:le.b.NAME,value:"__typename"}};function Zs(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===le.b.FRAGMENT_SPREAD&&Zs(t[e.name.value],t)})}function ec(e){return Zs(nt(e)||at(e),fe(it(e)))?null:e}function tc(e){var t=new Map,n=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach(function(t,n){n(e)&&(r=t)}),r}}function nc(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function rc(e,t){tt(t);for(var n=nc(""),r=nc(""),o=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Hn(i)){if(i.kind===le.b.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===le.b.FRAGMENT_DEFINITION)return r(i.name.value)}return!1!==globalThis.__DEV__&&E.error(125),null},a=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===le.b.OPERATION_DEFINITION&&++a;var c=tc(e),l=function(e){return Wn(e)&&e.map(c).some(function(e){return e&&e.remove})},u=new Map,d=!1,h={enter:function(e){if(l(e.directives))return d=!0,null}},p=de(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(l(e.directives))return d=!0,null;var a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){u.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===u.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every(function(e){return e.kind===le.b.FIELD&&"__typename"===e.name.value})?(r(e.name.value).removed=!0,d=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return d=!0,null}}});if(!d)return t;var f=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){f(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},y=new Set;p.definitions.forEach(function(e){e.kind===le.b.OPERATION_DEFINITION?f(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){y.add(e)}):e.kind!==le.b.FRAGMENT_DEFINITION||0!==a||r(e.name.value).removed||y.add(e.name.value)}),y.forEach(function(e){f(r(e)).fragmentSpreads.forEach(function(e){y.add(e)})});var v={enter:function(e){if(t=e.name.value,!y.has(t)||r(t).removed)return null;var t}};return ec(de(p,{FragmentSpread:v,FragmentDefinition:v,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=f(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,i.Cl)((0,i.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var ic=Object.assign(function(e){return de(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==le.b.OPERATION_DEFINITION){var r=e.selections;if(r)if(!r.some(function(e){return et(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var o=n;if(!(et(o)&&o.directives&&o.directives.some(function(e){return"export"===e.name.value})))return(0,i.Cl)((0,i.Cl)({},e),{selections:(0,i.fX)((0,i.fX)([],r,!0),[Xs],!1)})}}}}})},{added:function(e){return e===Xs}});function oc(e){return"query"===st(e).operation?e:de(e,{OperationDefinition:{enter:function(e){return(0,i.Cl)((0,i.Cl)({},e),{operation:"query"})}}})}function ac(e){return tt(e),rc([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function sc(e){return tt(e),de(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some(function(e){return"unmask"===e.name.value})))return(0,i.Cl)((0,i.Cl)({},e),{directives:(0,i.fX)((0,i.fX)([],e.directives||[],!0),[{kind:le.b.DIRECTIVE,name:{kind:le.b.NAME,value:"nonreactive"}}
59],!1)})}})}var cc=f(function(){return fetch}),lc=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,o=e.print,a=void 0===o?Hs:o,s=e.includeExtensions,c=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,d=void 0!==u&&u,h=(0,i.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw _(51)}(r||cc);var p={http:{includeExtensions:s,preserveHeaderCase:c},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new gs(function(e){var t=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}(e,n),o=e.getContext(),s={};if(o.clientAwareness){var c=o.clientAwareness,u=c.name,h=c.version;u&&(s["apollographql-client-name"]=u),h&&(s["apollographql-client-version"]=h)}var y=(0,i.Cl)((0,i.Cl)({},s),o.headers),v={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:y};if(Mt(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&E.warn(52);var m=ac(e.query);if(!m)return Js(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=m}var g,b,_,T,O,I=Ws(e,a,Gs,p,v),w=I.options,S=I.body;S.variables&&!d&&(S.variables=(g=S.variables,b=e.query,_=(0,i.Cl)({},g),T=new Set(Object.keys(g)),de(b,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&T.delete(e.name.value)}}),T.forEach(function(e){delete _[e]}),_)),w.signal||"undefined"==typeof AbortController||(O=new AbortController,w.signal=O.signal);var k,A="OperationDefinition"===(k=st(e.query)).kind&&"subscription"===k.operation,N=Mt(["defer"],e.query);if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),N||A){w.headers=w.headers||{};var D="multipart/mixed;";A&&N&&!1!==globalThis.__DEV__&&E.warn(53),A?D+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(D+="deferSpec=20220824,application/json"),w.headers.accept=D}if("GET"===w.method){var x=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Es(t.variables,"Variables map")}catch(P){return{parseError:P}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Es(t.extensions,"Extensions map")}catch(P){return{parseError:P}}r("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+a}}(t,S),R=x.newURI,P=x.parseError;if(P)return Js(P);t=R}else try{w.body=Es(S,"Payload")}catch(P){return Js(P)}return new Pt(function(n){var o=r||f(function(){return fetch})||cc,a=n.next.bind(n);return o(t,w).then(function(t){var n;e.setContext({response:t});var r,o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,i.sH)(this,void 0,void 0,function(){var n,r,o,a,s,c,l,u,d,h,p,f,y,v,m,g,b,E,_,T,O,I,w,S;return(0,i.YH)(this,function(k){switch(k.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=null===(S=e.headers)||void 0===S?void 0:S.get("content-type"),o="boundary=",a=(null==r?void 0:r.includes(o))?null==r?void 0:r.substring((null==r?void 0:r.indexOf(o))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),c="",l=Os(e),u=!0,k.label=1;case 1:return u?[4,l.next()]:[3,3];case 2:for(d=k.sent(),h=d.value,p=d.done,f="string"==typeof h?h:n.decode(h),y=c.length-s.length+1,u=!p,v=(c+=f).indexOf(s,y);v>-1;){if(m=void 0,I=[c.slice(0,v),c.slice(v+s.length)],c=I[1],g=(m=I[0]).indexOf("\r\n\r\n"),b=Ps(m.slice(0,g)),(E=b["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");
59if(_=m.slice(g))if(T=Ls(e,_),Object.keys(T).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T)if(Ds(T)){if(O={},"payload"in T){if(1===Object.keys(T).length&&null===T.payload)return[2];O=(0,i.Cl)({},T.payload)}"errors"in T&&(O=(0,i.Cl)((0,i.Cl)({},O),{extensions:(0,i.Cl)((0,i.Cl)({},"extensions"in O?O.extensions:null),(w={},w[C]=T.errors,w))})),t(O)}else t(T);else if(1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext)return[2];v=c.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,a):(r=e,function(e){return e.text().then(function(t){return Ls(e,t)}).then(function(t){return Array.isArray(t)||Rs.call(t,"data")||Rs.call(t,"errors")||Is(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(e){return e.operationName}):r.operationName,"'.")),t})})(t).then(a)}).then(function(){O=void 0,n.complete()}).catch(function(e){O=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)}),function(){O&&O.abort()}})})},uc=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,lc(t).request)||this;return n.options=t,n}return(0,i.C6)(t,e),t}(gs);function dc(e){return e}var hc=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=P?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(dc,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Gt(R);this.performWork=Dn(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return E(Array.isArray(r),105),n.lookupArray(r)},max:Ae["documentTransform.cache"],cache:_e})}},e.prototype.performWork=function(e){return tt(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 n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();function pc(e,t,n){return new Pt(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function fc(e){return Wn(yc(e))}function yc(e){var t=Wn(e.errors)?e.errors.slice(0):[];return Ns(e)&&Wn(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function vc(e){return e&&"function"==typeof e.then}var mc=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),ht(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),ht(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?vc(i)?i.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),ht(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new Pt(t)]),vc(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,i.C6)(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],n=e[t];n&&n.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 n=this.nextResultListeners;
59n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(Pt);Lt(mc);var gc=new(R?WeakMap:Map);function bc(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return gc.set(e,(gc.get(e)+1)%1e15),n.apply(this,arguments)})}var Ec=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;gc.has(n)||(gc.set(n,0),bc(n,"evict"),bc(n,"modify"),bc(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ie.loading;return this.variables&&this.networkStatus!==ie.loading&&!Y(this.variables,e.variables)&&(t=ie.setVariables),Y(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),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.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&Y(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=Ln("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),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,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&Ln("getLastError",function(){var e;return null===(e=n.observableQuery)||void 0===e?void 0:e.getLastError()})||(this.updateLastDiff(e),Y(r&&r.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=(0,i.Cl)((0,i.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Y(r,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===gc.get(this.cache)&&Y(t,n.variables)&&Y(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i,o=this,a=new As,s=Wn(e.errors)?e.errors.slice(0):[];if(null===(i=this.observableQuery)||void 0===i||i.resetNotifications(),"incremental"in e&&Wn(e.incremental)){var c=xs(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=a.merge(l.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(_c(e,n.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),o.lastWrite={result:e,variables:n.variables,dmCount:gc.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete)return void(e.data=o.lastDiff.diff.result);var a=o.getDiffOptions(n.variables),s=Ln("canonizeResults",function(){return i.diff(a)});!o.stopped&&Y(o.variables,n.variables)&&o.updateWatch(n.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ie.ready},e.prototype.markError=function(e){var t;return this.networkStatus=ie.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function _c(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!fc(e);return!r&&n&&e.data&&(r=!0),r}var Tc=R?WeakMap:Map,Oc=P?WeakSet:Set,Ic=new tn,wc=!1;function Sc(){wc||(wc=!0,!1!==globalThis.__DEV__&&E.warn(64))}function Cc(e,t,n){return Ic.withValue(!0,function(){var r=kc(e,t,n,!1);return Object.isFrozen(e)&&Xn(r),r})}function kc(e,t,n,r,i){var o,a=n.knownChanged,s=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(var c=0,l=Array.from(e.entries());c<l.length;c++){var u=l[c],d=u[0],h=u[1];if(null!==h){var p=kc(h,t,n,r,!1!==globalThis.__DEV__?"".concat(i||"","[").concat(d,"]"):void 0);a.has(p)&&a.add(s),s[d]=p}else s[d]=null}return a.has(s)?s:e}for(var f=0,y=t.selections;f<y.length;f++){var v=y[f],m=void 0;if(r&&a.add(s),v.kind===le.b.FIELD){var g=Xe(v),b=v.selectionSet;if(void 0===(m=s[g]||e[g]))continue;if(b&&null!==m){p=kc(e[g],b,n,r,!1!==globalThis.__DEV__?"".concat(i||"",".").concat(g):void 0);a.has(p)&&(m=p)}!1===globalThis.__DEV__&&(s[g]=m),!1!==globalThis.__DEV__&&(r&&"__typename"!==g&&!(null===(o=Object.getOwnPropertyDescriptor(s,g))||void 0===o?void 0:o.value)?Object.defineProperty(s,g,Ac(g,m,i||"",n.operationName,n.operationType)):(delete s[g],s[g]=m))}if(v.kind!==le.b.INLINE_FRAGMENT||v.typeCondition&&!n.cache.fragmentMatches(v,e.__typename)||(m=kc(e,v.selectionSet,n,r,i)),v.kind===le.b.FRAGMENT_SPREAD){var _=v.name.value,T=n.fragmentMap[_]||(n.fragmentMap[_]=n.cache.lookupFragment(_));E(T,59,_);var O=Bt(v);"mask"!==O&&(m=kc(e,T.selectionSet,n,"migrate"===O,i))}a.has(m)&&a.add(s)}return"__typename"in e&&!("__typename"in s)&&(s.__typename=e.__typename),Object.keys(s).length!==Object.keys(e).length&&a.add(s),a.has(s)?s:e}function Ac(e,t,n,r,i){var o=function(){return Ic.getValue()||(!1!==globalThis.__DEV__&&E.warn(60,r?"".concat(i," '").concat(r,"'"):"anonymous ".concat(i),"".concat(n,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}function Nc(e,t,n,r){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&Sc(),e;var i=t.definitions.filter(function(e){return e.kind===le.b.FRAGMENT_DEFINITION});void 0===r&&(E(1===i.length,61,i.length),r=i[0].name.value);var o=i.find(function(e){return e.name.value===r});return E(!!o,62,r),null==e||G(e,{})?e:Cc(e,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:fe(it(t)),cache:n,mutableTargets:new Tc,knownChanged:new Oc})}var Dc=Object.prototype.hasOwnProperty,xc=Object.create(null),Rc=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Se(Ae["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Gt(!1),this.noCacheWarningsByQueryId=new Set;var n=new hc(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 r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
59this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(_(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,i.sH)(this,arguments,void 0,function(e){var t,n,r,o,a,s,c,l=e.mutation,u=e.variables,d=e.optimisticResponse,h=e.updateQueries,p=e.refetchQueries,f=void 0===p?[]:p,y=e.awaitRefetchQueries,v=void 0!==y&&y,m=e.update,g=e.onQueryUpdated,b=e.fetchPolicy,_=void 0===b?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":b,T=e.errorPolicy,O=void 0===T?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":T,I=e.keepRootFields,w=e.context;return(0,i.YH)(this,function(e){switch(e.label){case 0:return E(l,36),E("network-only"===_||"no-cache"===_,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,u=this.getVariables(l,u),n?[4,this.localState.addExportedVariables(l,u,w)]:[3,2];case 1:u=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:u,loading:!0,error:null}),o=d&&this.markMutationOptimistic(d,{mutationId:t,document:l,variables:u,fetchPolicy:_,errorPolicy:O,context:w,updateQueries:h,update:m,keepRootFields:I}),this.broadcastQueries(),a=this,[2,new Promise(function(e,n){return pc(a.getObservableFromLink(l,(0,i.Cl)((0,i.Cl)({},w),{optimisticResponse:o?d:void 0}),u,{},!1),function(e){if(fc(e)&&"none"===O)throw new A({graphQLErrors:yc(e)});r&&(r.loading=!1,r.error=null);var n=(0,i.Cl)({},e);return"function"==typeof f&&(f=f(n)),"ignore"===O&&fc(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:l,variables:u,fetchPolicy:_,errorPolicy:O,context:w,update:m,updateQueries:h,awaitRefetchQueries:v,refetchQueries:f,removeOptimistic:o?t:void 0,onQueryUpdated:g,keepRootFields:I})}).subscribe({next:function(n){a.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e((0,i.Cl)((0,i.Cl)({},n),{data:a.maskOperation({document:l,data:n.data,fetchPolicy:_,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),o&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof A?e:new A({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&_c(r,e.errorPolicy)){if(Ns(r)||o.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Ns(r)&&Wn(r.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=xs(s.result,r)),void 0!==c&&(r.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,i){var a=e.observableQuery,s=a&&a.queryName;if(s&&Dc.call(l,s)){var c=l[s],u=n.queries.get(i),d=u.document,h=u.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var y=c(f,{mutationResult:r,queryName:d&&rt(d)||void 0,queryVariables:h});y&&o.push({result:y,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s,c=e.update,l=!(Ns(s=r)||function(e){return"hasNext"in e&&"data"in e}(s))||Ns(r)&&!r.hasNext;if(c){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(r=(0,i.Cl)((0,i.Cl)({},r),{data:u.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}l&&c(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
59).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables,{IGNORE:xc}):e;return r!==xc&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,i.Cl)((0,i.Cl)({},t),{result:{data:r}}),e)}catch(o){!1!==globalThis.__DEV__&&E.error(o)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={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 n={hasClientExports:jt(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Mt(["nonreactive"],e),nonReactiveQuery:sc(e),clientQuery:this.localState.clientQuery(e),serverQuery:rc([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:ct(nt(e)),asQuery:(0,i.Cl)((0,i.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,i.Cl)((0,i.Cl)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,i.Cl)((0,i.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,i.Cl)((0,i.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new Ec(this),r=new $n({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,$n.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),E(e.query,38),E("Document"===e.query.kind,39),E(!e.returnPartialData,40),E(!e.pollInterval,41);var r=this.transform(e.query);return this.fetchQuery(t,(0,i.Cl)((0,i.Cl)({},e),{query:r})).then(function(o){return o&&(0,i.Cl)((0,i.Cl)({},o),{data:n.maskOperation({document:r,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.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(_(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=ie.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 n=new Map,r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)r.set(e,e),o.set(e,!1);else if(S(i=e)&&"Document"===i.kind&&Array.isArray(i.definitions)){var n=Ys(t.transform(e));r.set(n,rt(e)),o.set(n,!1)}else S(e)&&e.query&&a.add(e);var i}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(Ys(a)))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(Ys(a),!0))}}),a.size&&a.forEach(function(e){var r=m("legacyOneTimeQuery"),o=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),a=new $n({queryManager:t,queryInfo:o,options:(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"network-only"})});E(a.queryId===r),o.setObservableQuery(a),n.set(r,a)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var n=r.get(t);n?!1!==globalThis.__DEV__&&E.warn(43,n):!1!==globalThis.__DEV__&&E.warn(44)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;Ln("resetLastResults",function(){return r.resetLastResults()}
59),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,c=void 0===s?{}:s,l=e.extensions,u=void 0===l?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map(function(r){"no-cache"!==i&&(_c(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=fc(r),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[C])}(r);if(o||s){var c={};if(o&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[C]),"none"===a||s)throw new A(c)}return"ignore"===a&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var h=this.localState.addExportedVariables(n,r,c).then(d);return new Pt(function(e){var t=null;return h.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},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){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,o){var a,s,c=this;void 0===o&&(o=null!==(a=null==t?void 0:t.queryDeduplication)&&void 0!==a?a:this.queryDeduplication);var l=this.getDocumentInfo(e),u=l.serverQuery,d=l.clientQuery;if(u){var h=this.inFlightLinkObservables,p=this.link,f={query:u,variables:n,operationName:rt(u)||void 0,context:this.prepareContext((0,i.Cl)((0,i.Cl)({},t),{forceFetch:!o})),extensions:r};if(t=f.context,o){var y=Ys(u),v=$e(n),m=h.lookup(y,v);if(!(s=m.observable)){var g=new mc([bs(p,f)]);s=m.observable=g,g.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?g.beforeNext(e):h.remove(y,v)})}}else s=new mc([bs(p,f)])}else s=new mc([Pt.of({data:{}})]),t=this.prepareContext(t);return d&&(s=pc(s,function(e){return c.localState.runResolvers({document:d,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return pc(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=yc(o),s=a.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new A({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:ie.ready};return s&&"none"===c&&(l.data=void 0),s&&"ignore"!==c&&(l.errors=a,l.networkStatus=ie.error),l},function(t){var n=k(t)?t:new A({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=ie.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,u=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,h=void 0===d?c&&c.errorPolicy||"none":d,p=t.returnPartialData,f=void 0!==p&&p,y=t.notifyOnNetworkStatusChange,v=void 0!==y&&y,m=t.context,g=void 0===m?{}:m,b=Object.assign({},t,{query:r,variables:s,fetchPolicy:u,errorPolicy:h,returnPartialData:f,notifyOnNetworkStatusChange:v,context:g}),E=function(r){b.variables=r;var o=i.fetchQueryByPolicy(e,b,n);return"standby"!==b.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),o},_=function(){return i.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){_(),setTimeout(function(){return o.cancel(e)})}),this.getDocumentInfo(b.query).hasClientExports)o=new mc(this.localState.addExportedVariables(b.query,b.variables,b.context).then(E).then(function(e){return e.sources})),a=!0;else{var T=E(b.variables);a=T.fromLink,o=new mc(T.sources)}return o.promise.then(_,_),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?m("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Ec&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;c&&(a||(a=Ln("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),r=c(i,a,o)),c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t,n,r,i=e.document,o=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,s=e.id,c=null===(t=nt(i))||void 0===t?void 0:t.operation,l=(null!==(n=null==c?void 0:c[0])&&void 0!==n?n:"o")+s;!this.dataMasking||"no-cache"!==a||function(e){var t=!0;return de(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return ue}}),t}(i)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&E.warn(45,null!==(r=rt(i))&&void 0!==r?r:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,n){var r;if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&Sc(),e;var i=nt(t);return E(i,63),null==e?e:Cc(e,i.selectionSet,{operationType:i.operation,operationName:null===(r=i.name)||void 0===r?void 0:r.value,fragmentMap:fe(it(t)),cache:n,mutableTargets:new Tc,knownChanged:new Oc})}(o,i,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?Nc(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,o=t.query,a=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,d=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var f=function(){return e.getDiff()},y=function(t,n){void 0===n&&(n=e.networkStatus||ie.loading);var s=t.result;!1===globalThis.__DEV__||u||Y(s,{})||Kn(t.missing);var c=function(e){return Pt.of((0,i.Cl)({data:e,loading:oe(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&r.getDocumentInfo(o).hasForcedResolvers?r.localState.runResolvers({document:o,remoteResult:{data:s},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===l&&n===ie.refetch&&Array.isArray(t.missing)?c(void 0):c(s)},v="no-cache"===s?0:n===ie.refetch&&"merge"!==c?1:2,m=function(){return r.getResultsFromLink(e,v,{query:o,variables:a,context:d,fetchPolicy:s,errorPolicy:l})},g=h&&"number"==typeof p&&p!==n&&oe(n);switch(s){default:case"cache-first":return(b=f()).complete?{fromLink:!1,sources:[y(b,e.markReady())]}:u||g?{fromLink:!0,sources:[y(b),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var b;return(b=f()).complete||u||g?{fromLink:!0,sources:[y(b),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[y(f(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[y(f()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return g?{fromLink:!0,sources:[y(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ec(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,i.Cl)((0,i.Cl)((0,i.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function Pc(e){return e.kind===le.b.FIELD||e.kind===le.b.FRAGMENT_SPREAD||e.kind===le.b.INLINE_FRAGMENT}var Lc=new tn,Fc=new WeakMap;function Mc(e){var t=Fc.get(e);return t||Fc.set(e,t={vars:new Set,dep:Cn()}),t}
59function jc(e){Mc(e).vars.forEach(function(t){return t.forgetCache(e)})}function Bc(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){Mc(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=Lc.getValue();s&&(i(s),Mc(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Mc(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var Vc=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),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=Ss(t.resolvers,e)}):this.resolvers=Ss(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,i.sH)(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,i.YH)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,o,this.fragmentMatcher,s).then(function(e){return(0,i.Cl)((0,i.Cl)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Mt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return ac(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,i.Cl)((0,i.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,i.sH)(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,i.YH)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,i.Cl)((0,i.Cl)({},t),e.exportedVariables)})]:[2,(0,i.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return de(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 ue}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:oc(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,i.sH)(this,arguments,void 0,function(e,t,n,r,o,a){var s,c,l,u,d,h,p,f,y,v;return void 0===n&&(n={}),void 0===r&&(r={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,i.YH)(this,function(m){return s=st(e),c=it(e),l=fe(c),u=this.collectSelectionsToResolve(s,l),d=s.operation,h=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",f=(p=this).cache,y=p.client,v={fragmentMap:l,context:(0,i.Cl)((0,i.Cl)({},n),{cache:f,client:y}),variables:r,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return(0,i.sH)(this,void 0,void 0,function(){var o,a,s,c,l,u=this;return(0,i.YH)(this,function(d){return o=r.fragmentMap,a=r.context,s=r.variables,c=[n],l=function(e){return(0,i.sH)(u,void 0,void 0,function(){var l,u;return(0,i.YH)(this,function(i){return(t||r.selectionsToResolve.has(e))&&Ft(e,s)?et(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&c.push(((n={})[Xe(e)]=t,n))})]:(!function(e){return"InlineFragment"===e.kind}(e)?(l=o[e.name.value],E(l,21,e.name.value)):l=e,l&&l.typeCondition&&(u=l.typeCondition.name.value,r.fragmentMatcher(n,u,a))?[2,this.resolveSelectionSet(l.selectionSet,t,n,r).then(function(e){c.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return Cs(c)})]})})},e.prototype.resolveField=function(e,t,n,r){return(0,i.sH)(this,void 0,void 0,function(){var o,a,s,c,l,u,d,h,p,f=this;return(0,i.YH)(this,function(i){return n?(o=r.variables,a=e.name.value,s=Xe(e),c=a!==s,l=n[s]||n[a],u=Promise.resolve(l),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=n.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[d])&&(p=h[c?a:s])&&(u=Promise.resolve(Lc.withValue(this.cache,p,[n,Je(e,o),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then(function(n){var i,o;
59if(void 0===n&&(n=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?f.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?f.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),de(i,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&Pc(e)&&o.add(e)})},FragmentSpread:function(r,i,a,s,c){var l=t[r.name.value];E(l,22,r.name.value);var u=e(l);u.size>0&&(c.forEach(function(e){n(e)&&Pc(e)&&o.add(e)}),o.add(r),u.forEach(function(e){o.add(e)}))}})}return r.get(i)}(e)},e}(),Uc=!1,$c=function(){function e(e){var t,n,r,o=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw _(16);var a=e.uri,s=e.credentials,c=e.headers,l=e.cache,u=e.documentTransform,d=e.ssrMode,h=void 0!==d&&d,f=e.ssrForceFetchDelay,y=void 0===f?0:f,v=e.connectToDevTools,m=e.queryDeduplication,g=void 0===m||m,b=e.defaultOptions,T=e.defaultContext,O=e.assumeImmutableResults,I=void 0===O?l.assumeImmutableResults:O,w=e.resolvers,S=e.typeDefs,C=e.fragmentMatcher,k=e.clientAwareness,A=e.name,N=e.version,D=e.devtools,x=e.dataMasking;!1!==globalThis.__DEV__&&(Fn(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),Fn(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),Fn(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),Fn(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),Fn(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),Fn(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),Fn(e,"typeDefs","ApolloClient"),e.link||!1!==globalThis.__DEV__&&E.warn(17));var R=e.link;R||(R=a?new uc({uri:a,credentials:s,headers:c}):gs.empty()),this.link=R,this.cache=l,this.disableNetworkFetches=h||y>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=S,this.devtoolsConfig=(0,i.Cl)((0,i.Cl)({},D),{enabled:null!==(t=null==D?void 0:D.enabled)&&void 0!==t?t:v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return o.disableNetworkFetches=!1},y),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=p,this.localState=new Vc({cache:l,client:this,resolvers:w,fragmentMatcher:C}),this.queryManager=new Rc({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:T,documentTransform:u,queryDeduplication:g,ssrMode:h,dataMasking:!!x,clientAwareness:{name:null!==(n=null==k?void 0:k.name)&&void 0!==n?n:A,version:null!==(r=null==k?void 0:k.version)&&void 0!==r?r:N},localState:this.localState,assumeImmutableResults:I,onBroadcast:this.devtoolsConfig.enabled?function(){o.devToolsHookCb&&o.devToolsHookCb({action:{},state:{queries:o.queryManager.getQueryStore(),mutations:o.queryManager.mutationStore||{}},dataWithOptimisticResults:o.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
59,enumerable:!1,configurable:!0}),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,Uc||!1===globalThis.__DEV__||(Uc=!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,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&E.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=te(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(Fn(e,"canonizeResults","client.watchQuery"),Fn(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=te(this.defaultOptions.query,e)),E("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.Cl)((0,i.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&(Fn(e,"canonizeResults","client.query"),Fn(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&E.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=te(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return(0,i.Cl)((0,i.Cl)({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},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,i.Cl)((0,i.Cl)({},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 bs(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),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){!1!==globalThis.__DEV__&&E.debug(20,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}
59,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&($c.prototype.getMemoryInternals=xe);var qc=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Dn(pe,{max:Ae["cache.fragmentQueryDocuments"]||1e3,cache:_e})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),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){var n=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.readQuery"),Ln("canonizeResults",function(){return n.read((0,i.Cl)((0,i.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,o=e.from,a=e.optimistic,s=void 0===a||a,c=(0,i.Tt)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,r),u=void 0===o||"string"==typeof o?o:this.identify(o),d=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var h=r||at(n).name.value;u||!1!==globalThis.__DEV__&&E.warn(1,h)}var p,f=(0,i.Cl)((0,i.Cl)({},c),{returnPartialData:!0,id:u,query:l,optimistic:s});return new Pt(function(o){return t.watch((0,i.Cl)((0,i.Cl)({},f),{immediate:!0,callback:function(a){var s=d?Nc(a.result,n,t,r):a.result;if(!p||!Vt(l,{data:p.result},{data:s},e.variables)){var c={data:s,complete:!!a.complete};a.missing&&(c.missing=Cs(a.missing.map(function(e){return e.missing}))),p=(0,i.Cl)((0,i.Cl)({},a),{result:s}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.readFragment"),Ln("canonizeResults",function(){return n.read((0,i.Cl)((0,i.Cl)({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,i.Tt)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,o=e.fragmentName,a=(0,i.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(n){var r=Ln("canonizeResults",function(){return n.readQuery(e)}),o=t(r);return null==o?r:(n.writeQuery((0,i.Cl)((0,i.Cl)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(n){var r=Ln("canonizeResults",function(){return n.readFragment(e)}),o=t(r);return null==o?r:(n.writeFragment((0,i.Cl)((0,i.Cl)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(qc.prototype.getMemoryInternals=Pe);var Kc=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,i.C6)(t,e),t}(Error),Qc=Object.prototype.hasOwnProperty;function zc(e){return null==e}function Yc(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=zc(r)?zc(i)?void 0:{_id:i}:{id:r}),zc(r)&&!zc(i)&&(r=i),!zc(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Gc={dataIdFromObject:Yc,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Hc(e){var t=e.canonizeResults;return void 0===t?Gc.canonizeResults:t}var Wc=/^[_a-z][_0-9a-z]*/i;function Jc(e){var t=e.match(Wc);return t?t[0]:e}function Xc(e,t,n){return!!S(t)&&(Hn(t)?t.every(function(t){return Xc(e,t,n)}):e.selections.every(function(e){if(et(e)&&Ft(e,n)){var r=Xe(e);return Qc.call(t,r)&&(!e.selectionSet||Xc(e.selectionSet,t[r],n))}return!0}))}function Zc(e){return S(e)&&!ze(e)&&!Hn(e)}function el(e,t){var n=fe(it(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var tl=Object.create(null),nl=function(){return tl},rl=Object.create(null),il=function(){function e(e,t){var n=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 Xn(ze(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ze(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Qe(e);if(ze(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Qe(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,i.Cl)({},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),Qc.call(this.data,e)){var n=this.data[e];if(n&&Qc.call(n,t))return n[t]}return"__typename"===t&&Qc.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof cl?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Qc.call(this.data,e)?this.data[e]:this instanceof cl?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ze(e)&&(e=e.__ref),ze(t)&&(t=t.__ref);
59var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){E("string"==typeof n,2);var a=new As(ul).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],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=Jc(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof cl||delete a[e]}}),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==a.__typename||delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var o=Object.create(null),a=!1,s=!0,c={DELETE:tl,INVALIDATE:rl,isReference:ze,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||Qe(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(l){var u=Jc(l),d=r[l];if(void 0!==d){var h="function"==typeof t?t:t[l]||t[u];if(h){var p=h===nl?tl:h(Xn(d),(0,i.Cl)((0,i.Cl)({},c),{fieldName:u,storeFieldName:l,storage:n.getStorage(e,l)}));if(p===rl)n.group.dirty(e,l);else if(p===tl&&(p=void 0),p!==d&&(o[l]=p,a=!0,d=p,!1!==globalThis.__DEV__)){var f=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&E.warn(3,e),!0};if(ze(p))f(p);else if(Array.isArray(p))for(var y=!1,v=void 0,m=0,g=p;m<g.length;m++){var b=g[m];if(ze(b)){if(y=!0,f(b))break}else if("object"==typeof b&&b)n.policies.identify(b)[0]&&(v=b);if(y&&void 0!==v){!1!==globalThis.__DEV__&&E.warn(4,v);break}}}}void 0!==d&&(s=!1)}}),a)return this.merge(e,o),s&&(this instanceof cl?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=nl,r):nl)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Qc.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof cl&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){Qc.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&Qc.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,i.Tt)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.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 cl?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){Qc.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof cl;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!Qc.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){ze(e)&&(t[e.__ref]=!0),S(e)&&Object.keys(e).forEach(function(t){var n=e[t];S(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),ol=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?Cn():null,this.keyMaker=new Gt(R)}
59,e.prototype.depend=function(e,t){if(this.d){this.d(al(e,t));var n=Jc(t);n!==t&&this.d(al(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(al(e,t),"__exists"===t?"forget":"setDirty")},e}();function al(e,t){return t+"#"+e}function sl(e,t){dl(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new ol(i))||this;return a.stump=new ll(a),a.storageTrie=new Gt(R),o&&a.replace(o),a}return(0,i.C6)(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}(il||(il={}));var cl=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,i.C6)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){Y(r[n],i[n])||t.group.dirty(e,n)}
59):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,i.Cl)((0,i.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Qc.call(this.data,t)?(0,i.Cl)((0,i.Cl)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(il),ll=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new ol(t.group.caching,t.group))||this}return(0,i.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(cl);function ul(e,t,n){var r=e[n],i=t[n];return Y(r,i)?r:i}function dl(e){return!!(e instanceof il&&e.group.caching)}var hl=function(){function e(){this.known=new(P?WeakSet:Set),this.pool=new Gt(R),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return S(e)&&this.known.has(e)},e.prototype.pass=function(e){if(S(e)){var t=function(e){return S(e)?Hn(e)?e.slice(0):(0,i.Cl)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(S(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach(function(n){o.push(t.admit(e[n]))}),!(s=this.pool.lookupArray(o)).object){var l=s.object=Object.create(i);this.known.add(l),a.sorted.forEach(function(e,t){l[e]=o[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function pl(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var fl=function(){function e(e){var t=this;this.knownResults=new(R?WeakMap:Map),this.config=ee(e,{addTypename:!1!==e.addTypename,canonizeResults:Hc(e)}),this.canon=e.canon||new hl,this.executeSelectionSet=Dn(function(e){var n,r=e.context.canonizeResults,o=pl(e);o[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?r?(0,i.Cl)((0,i.Cl)({},a),{result:t.canon.admit(a.result)}):a:(sl(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Ae["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:pl,makeCacheKey:function(e,t,n,r){if(dl(n.store))return n.store.makeCacheKey(e,ze(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Dn(function(e){return sl(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Ae["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(dl(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new hl},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,o=void 0===r?"ROOT_QUERY":r,a=e.variables,s=e.returnPartialData,c=void 0===s||s,l=e.canonizeResults,u=void 0===l?this.config.canonizeResults:l,d=this.config.cache.policies;a=(0,i.Cl)((0,i.Cl)({},ct(ot(n))),a);var h,p=Qe(o),f=this.executeSelectionSet({selectionSet:st(n).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,i.Cl)({store:t,query:n,policies:d,variables:a,varString:$e(a),canonizeResults:u},el(n,this.config.fragments))});if(f.missing&&(h=[new Kc(yl(f.missing),f.missing,n,a)],!c))throw h[0];return{result:f.result,complete:!h,missing:h}},e.prototype.isFresh=function(e,t,n,r){if(dl(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(ze(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var a,s=o.variables,c=o.policies,l=o.store.getFieldValue(r,"__typename"),u=[],d=new As;function h(e,t){var n;return e.missing&&(a=d.merge(a,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var p=new Set(n.selections);p.forEach(function(e){var n,f;
59if(Ft(e,s))if(et(e)){var y=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),v=Xe(e);void 0===y?ic.added(e)||(a=d.merge(a,((n={})[v]="Can't find field '".concat(e.name.value,"' on ").concat(ze(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Hn(y)?y.length>0&&(y=h(t.executeSubSelectedArray({field:e,array:y,enclosingRef:i,context:o}),v)):e.selectionSet?null!=y&&(y=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:ze(y)?y:i,context:o}),v)):o.canonizeResults&&(y=t.canon.pass(y)),void 0!==y&&u.push(((f={})[v]=y,f))}else{var m=ye(e,o.lookupFragment);if(!m&&e.kind===le.b.FRAGMENT_SPREAD)throw _(10,e.name.value);m&&c.fragmentMatches(m,l)&&m.selectionSet.selections.forEach(p.add,p)}});var f={result:Cs(u),missing:a},y=o.canonizeResults?this.canon.admit(f):Xn(f);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new As;function c(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:Hn(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ze(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){S(n)&&(E(!ze(n),11,function(e,t){return ze(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function yl(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(t){return t}}var vl=Object.create(null);function ml(e){var t=JSON.stringify(e);return vl[t]||(vl[t]=Object.create(null))}function gl(e){var t=ml(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=El(e,function(e){var i=Ol(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Qc.call(t,e[0])&&(i=Ol(t,e,Tl)),E(void 0!==i,5,e.join("."),t),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function bl(e){var t=ml(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=El(e,function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return Ol(t,e)}else{var a=n.slice(1);if(i&&Qc.call(i,a)){var s=e.slice(0);return s[0]=a,Ol(i,s)}}else if(r&&Wn(r.directives)){var c=n.slice(1),l=r.directives.find(function(e){return e.name.value===c}),u=l&&Je(l,i);return u&&Ol(u,e.slice(1))}}),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function El(e,t){var n=new As;return _l(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function _l(e){var t=ml(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){Hn(t)?(_l(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),Hn(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Tl(e,t){return e[t]}function Ol(e,t,n){return n=n||Tl,Il(t.reduce(function e(t,r){return Hn(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function Il(e){return S(e)?Hn(e)?e.map(Il):El(Object.keys(e).sort(),function(t){return Ol(e,t)}):e}function wl(e){return void 0!==e.args?e.args:e.field?Je(e.field,e.variables):null}var Sl=function(){},Cl=function(e,t){return t.fieldName},kl=function(e,t,n){return(0,n.mergeObjects)(e,t)},Al=function(e,t){return t},Nl=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,i.Cl)({dataIdFromObject:Yc},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 n,r=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a,s=t&&t.storeObject||e,c=(0,i.Cl)((0,i.Cl)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=xl(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=o&&this.getTypePolicy(o),u=l&&l.keyFn||this.config.dataIdFromObject;return Ic.withValue(!0,function(){for(;u;){var t=u((0,i.Cl)((0,i.Cl)({},e),s),c);if(!Hn(t)){a=t;break}u=gl(t)}}),a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],o=r.queryType,a=r.mutationType,s=r.subscriptionType,c=(0,i.Tt)(r,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),Qc.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?kl:!1===t?Al:e.merge}a(r,t.merge),r.keyFn=!1===i?Sl:Hn(i)?gl(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEac
59h(function(t){var r=n[t];r&&(null==r?void 0:r.typename)===e||(r=n[t]={typename:e});var i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=!1===s?Cl:Hn(s)?bl(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Cl)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(E(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Wc);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!Qc.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),o=r.fields,a=(0,i.Tt)(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!(!n||!this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var h=s[d];if(h.has(o))return a.has(o)||(u&&!1!==globalThis.__DEV__&&E.warn(7,t,o),a.add(o)),!0;h.forEach(c),l&&d===s.length-1&&Xc(e.selectionSet,n,r)&&(l=!1,u=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r),o=i&&i.keyFn;if(o&&n)for(var a={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=wl(e);o;){var c=o(s,a);if(!Hn(c)){t=c||r;break}o=bl(c)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return Ye(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return Ye(r,n,i,t)})),We(e.name.value,r,n)}(e.field,e.variables):We(r,wl(e))),!1===t?r:r===Jc(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Jc(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o),c=s&&s.read;if(c){var l=Dl(this,n,e,t,t.store.getStorage(ze(n)?n.__ref:n,i));return Lc.withValue(this.cache,c,[a,l])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===kl?Rl(r.store)(e,t):s===Al?t:(r.overwrite&&(e=void 0),s(e,t,Dl(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function Dl(e,t,n,r,i){var o=e.getStoreFieldName(n),a=Jc(o),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:wl(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ze,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(xl(arguments,t,s),r)},mergeObjects:Rl(r.store)}}function xl(e,t,n){var r,o=e[0],a=e[1],s=e.length;return"string"==typeof o?r={fieldName:o,from:s>1?a:t}:(r=(0,i.Cl)({},o),Qc.call(r,"from")||(r.from=t)),!1!==globalThis.__DEV__&&void 0===r.from&&!1!==globalThis.__DEV__&&E.warn(8,g(Array.from(e))),void 0===r.variables&&(r.variables=n),r}function Rl(e){return function(t,n){if(Hn(t)||Hn(n))throw _(9);if(S(t)&&S(n)){var r=e.getFieldValue(t,"__typename"),o=e.getFieldValue(n,"__typename");if(r&&o&&r!==o)return n;if(ze(t)&&Zc(n))return e.merge(t.__ref,n),t;if(Zc(t)&&ze(n))return e.merge(t,n.__ref),n;if(Zc(t)&&Zc(n))return(0,i.Cl)((0,i.Cl)({},t),n)}return n}}function Pl(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:(0,i.Cl)((0,i.Cl)({},e),{clientOnly:t,deferred:n})),o}var Ll=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,o=t.result,a=t.dataId,s=t.variables,c=t.overwrite,l=nt(r),u=new As;s=(0,i.Cl)((0,i.Cl)({},ct(l)),s);var d=(0,i.Cl)((0,i.Cl)({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:s,varString:$e(s)},el(r,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d});if(!ze(h))throw _(12,o);
59return d.incomingById.forEach(function(t,r){var o=t.storeObject,a=t.mergeTree,s=t.fieldNodeSet,c=Qe(r);if(a&&a.map.size){var l=n.applyMerges(a,c,o,d);if(ze(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var u=Object.create(null);s.forEach(function(e){e.selectionSet&&(u[e.name.value]=!0)});Object.keys(o).forEach(function(e){(function(e){return!0===u[Jc(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=o(e);if(!a)return;var s=o(t);if(!s)return;if(ze(a))return;if(Y(a,s))return;if(Object.keys(a).every(function(e){return void 0!==r.getFieldValue(s,e)}))return;var c=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Jc(n),u="".concat(c,".").concat(l);if(Ul.has(u))return;Ul.add(u);var d=[];Hn(a)||Hn(s)||[a,s].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)});!1!==globalThis.__DEV__&&E.warn(15,l,c,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",u,(0,i.Cl)({},a),(0,i.Cl)({},s))}(c,o,e,d.store)})}e.merge(r,o)}),e.retain(h.__ref),h},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,c=this.cache.policies,l=Object.create(null),u=n&&c.rootTypenamesById[n]||Ze(r,o,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof u&&(l.__typename=u);var d=function(){var e=xl(arguments,l,a.variables);if(ze(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,i.Cl)((0,i.Cl)({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return c.readField(e,a)},h=new Set;this.flattenFields(o,r,a,u).forEach(function(e,n){var i,o=Xe(n),a=r[o];if(h.add(n),void 0!==a){var p=c.getStoreFieldName({typename:u,fieldName:n.name.value,field:n,variables:e.variables}),f=Ml(s,p),y=t.processFieldValue(a,n,n.selectionSet?Pl(e,!1,!1):e,f),v=void 0;n.selectionSet&&(ze(y)||Zc(y))&&(v=d("__typename",y));var m=c.getMergeFunction(u,n.name.value,v);m?f.info={field:n,typename:u,merge:m}:Vl(s,p),l=e.merge(l,((i={})[p]=y,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||ic.added(n)||c.getReadFunction(u,n.name.value)||!1!==globalThis.__DEV__&&E.error(13,Xe(n),r)});try{var p=c.identify(r,{typename:u,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:l,readField:d}),f=p[0],y=p[1];n=n||f,y&&(l=a.merge(l,y))}catch(Rr){if(!n)throw Rr}if("string"==typeof n){var v=Qe(n),m=a.written[n]||(a.written[n]=[]);if(m.indexOf(o)>=0)return v;if(m.push(o),this.reader&&this.reader.isFresh(r,v,o,a))return v;var g=a.incomingById.get(n);return g?(g.storeObject=a.merge(g.storeObject,l),g.mergeTree=jl(g.mergeTree,s),h.forEach(function(e){return g.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:l,mergeTree:Bl(s)?void 0:s,fieldNodeSet:h}),v}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Hn(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,Ml(r,o));return Vl(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?ut(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=Ze(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new Gt(!1);return function e(s,c){var l=a.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(a){if(Ft(a,n.variables)){var s=c.clientOnly,l=c.deferred;if(s&&l||!Wn(a.directives)||a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=Je(e,n.variables);r&&!1===r.if||(l=!0)}}),et(a)){var u=i.get(a);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(a,Pl(n,s,l))}else{var d=ye(a,n.lookupFragment);if(!d&&a.kind===le.b.FRAGMENT_SPREAD)throw _(14,a.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,Pl(n,s,l))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,o){var a,s=this;if(e.map.size&&!ze(n)){var c,l=Hn(n)||!ze(t)&&!Zc(t)?void 0:t,u=n;l&&!o&&(o=[ze(l)?l.__ref:l]);var d=function(e,t){return Hn(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};
59e.map.forEach(function(e,t){var n=d(l,t),i=d(u,t);if(void 0!==i){o&&o.push(t);var a=s.applyMerges(e,n,i,r,o);a!==i&&(c=c||new Map).set(t,a),o&&E(o.pop()===t)}}),c&&(n=Hn(u)?u.slice(0):(0,i.Cl)({},u),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,o&&(a=r.store).getStorage.apply(a,o)):n},e}(),Fl=[];function Ml(e,t){var n=e.map;return n.has(t)||n.set(t,Fl.pop()||{map:new Map}),n.get(t)}function jl(e,t){if(e===t||!t||Bl(t))return e;if(!e||Bl(e))return t;var n=e.info&&t.info?(0,i.Cl)((0,i.Cl)({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach(function(e,n){o.map.set(n,jl(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,jl(t.map.get(n),e.map.get(n)))})}return o}function Bl(e){return!e||!(e.info||e.map.size)}function Vl(e,t){var n=e.map,r=n.get(t);r&&Bl(r)&&(Fl.push(r),n.delete(t))}var Ul=new Set;var $l=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new hc(ic),n.assumeImmutableResults=!0,n.makeVar=Bc,n.txCount=0,!1!==globalThis.__DEV__&&(Fn(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),Fn(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=function(e){return ee(Gc,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new Nl({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,i.C6)(t,e),t.prototype.init=function(){var e=this.data=new il.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),null==r||r.resetCaches(),this.storeWriter=new Ll(this,this.storeReader=new fl({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Hc(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=Dn(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||Ae["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(dl(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,$e({optimistic:r,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){!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.read");var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,i.Cl)((0,i.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(Rr){if(Rr instanceof Kc)return null;throw Rr}},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(Qc.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!1!==globalThis.__DEV__&&Fn(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,i.Cl)((0,i.Cl)({},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){Mc(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&&jc(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&Fn(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),$e.reset(),Ys.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},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(ze(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(Rr){!1!==globalThis.__DEV__&&E.warn(Rr)}},t.prototype.evict=function(e){if(!e.id){if(Qc.call(e,"id"))return!1;e=(0,i.Cl)((0,i.Cl)({},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(),$e.reset(),e&&e.discardWatches?(this.watches.forEac
59h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),jc(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,n=this,r=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,l=function(e){var i=n,o=i.data,a=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},u=new Set;return c&&!this.txCount&&this.broadcastWatches((0,i.Cl)((0,i.Cl)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&u.size?(this.broadcastWatches((0,i.Cl)((0,i.Cl)({},e),{onWatchUpdated:function(e,t){var n=c.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach(function(e){return n.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(n){return t.maybeBroadcastWatch(n,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 n=this,r=e.lastDiff,i=Ln("canonizeResults",function(){return n.diff(e)});t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,r))||r&&Y(r.result,i.result)||e.callback(e.lastDiff=i,r)},t}(qc);!1!==globalThis.__DEV__&&($l.prototype.getMemoryInternals=Re);const ql=e=>{let{uri:t,env:n}=e;const r=new URL(t);return r.searchParams.set("env",null!=n?n:"master"),new $c({connectToDevTools:!0,uri:r.toString(),cache:new $l({possibleTypes:{ArticleHero:["HeroVillain","PicturePanel"],Panels:["AccordionPanel","AuthorPanel","AvPanel","Banner","BannerStack","CallToAction","CardPanel","ContactPanel","ContentMediaPanel","RichTextPanel","PicturePanel","SalesforceFormPanel","SectionPanel","ServerSidePanel","SimpleTable","RelatedArticlesPanel","UtilityPanel"]}})})},Kl=e=>{const t=null==e?void 0:e.searchParams.get("id"),n=null==e?void 0:e.searchParams.get("env");return{id:null!=t?t:null,env:null!=n?n:"master",xray:"true"===(null==e?void 0:e.searchParams.get("xray")),fetchContentConnectors:"true"===(null==e?void 0:e.searchParams.get("fetchContentConnectors"))}},Ql=(e,t)=>{if(e instanceof Aa.G){const n=";",r=", or",i='at "',o=".supportingData",a=".data",s="Validation error: ",c="Invalid literal value, expected";return{info:(l=>Ba(e,{unionSeparator:r,issueSeparator:n}).toString().split(l).flatMap(e=>{const n=e.replace(s,"");if(n.startsWith(c))return[];if(n.includes(o)||n.includes(a)){var r,l,u;const s=n.includes(o)?o:a,c=null===(r=e.split(i))||void 0===r||null===(l=r[1])||void 0===l?void 0:l.split(s)[0],d=null===(u=c.replaceAll("[","."))||void 0===u?void 0:u.replaceAll("]","").split("."),h=zl(d,t);return{message:n.replace(c||"",""),path:[h]}}return{message:n,path:[]}}))(r),isValidationError:!0}}if(e instanceof Error&&k(e)){const{graphQLErrors:t,networkError:n}=e;let i=!1;const o=new Array;return t&&o.push.apply(o,(0,r.A)(t.map(e=>{let{message:t,path:n,extensions:r}=e;return i=!(!r||"BAD_USER_INPUT"!==r.code)||i,{message:t,path:null!=n?n:[]}}))),n&&o.push({message:n.message,path:[]}),{info:o,isValidationError:i}}return{info:[{message:"An unknown error has occurred",path:[]}],isValidationError:!1}},zl=(e,t)=>
59{const n=(0,Ca.Ae)(e,t);if(void 0===n){let t="";t=Array.isArray(e)?e.join("."):e,t||(t="undefined"),console.error(`Could not map required properties (${t}).`)}return null==n?void 0:n.id},Yl=ka.default.div.withConfig({displayName:"Container__LoadingDiv",componentId:"sc-k0eldm-0"})(["padding:15px;border-bottom:1px gray solid;background-color:",";color:",";"],(0,Ta.A)("theme.color.bg"),(0,Ta.A)("theme.color.fg")),Gl=ka.default.span.withConfig({displayName:"Container__WarningChildrenWrapper",componentId:"sc-k0eldm-1"})(["",";"],(0,wa.ml)(2)),Hl=()=>(0,Ka.jsx)(Oa.Ay,{theme:Ia,children:(0,Ka.jsxs)(Yl,{children:[(0,Ka.jsx)(Sa.A,{size:"xs"}),(0,Ka.jsx)(Gl,{children:"Loading page preview..."})]})});function Wl(e){let{channel:t,graphqlEndpoint:n,validator:r,buildDecorator:i,generalOptions:o,query:a,render:s,generalOptionsValidator:c,generalOptionsDecorator:l,generalOptionsQuery:u,dataMapperForQueryResponse:d}=e;const h="undefined"!=typeof window?new URL(window.location.href):void 0,{0:p,1:f}=(0,pr.useState)(null),{0:y,1:v}=(0,pr.useState)(null),{0:m,1:g}=(0,pr.useState)(o),{0:b,1:E}=(0,pr.useState)(Kl(h)),{0:_,1:T}=(0,pr.useState)(null),{0:O,1:I}=(0,pr.useState)(!1),w=(0,pr.useMemo)(()=>ql({uri:n,env:b.env}),[n,b.env]);(0,pr.useEffect)(()=>{!async function(){const e=l(o);try{var n,r,i,a;const s=await w.query({query:u,variables:{channels:["*",t]},errorPolicy:"all"}),l=await c(null===(n=s.data)||void 0===n?void 0:n.generalOptions);let d=null!==(r=null==l?void 0:l.allContentConnectors)&&void 0!==r?r:[];if(b.fetchContentConnectors){const{data:e}=await w.query({query:$a(),errorPolicy:"all",variables:{channel:t}});d=e.contentConnectors.edges}const h=await e({...l,allContentConnectors:d}),p=null===(i=l.supportingData)||void 0===i||null===(a=i[t])||void 0===a?void 0:a.siteWideBanner;g({...o,...h,siteWideBanner:p,isPreviewXRayEnabled:b.xray,allContentConnectors:d})}catch(s){T(Ql(s)),I(!0)}}()},[w]);return(0,pr.useEffect)(()=>{!async function(){if(p)try{const e=i(m),t=await e(p,m);v(t)}catch(e){T(Ql(e))}finally{I(!0)}}()},[p,m]),(0,pr.useEffect)(()=>{g(e=>({...e,isPreviewXRayEnabled:b.xray}))},[b.xray]),ir(a,{client:w,variables:{id:b.id},errorPolicy:"all",onCompleted:async e=>{const t=d?d(e):e.contentPage||e.article||e.portfolioPage;try{if(!t)return void I(!0);const e=await r(t);f(e)}catch(Rr){T(Ql(Rr,t)),I(!0)}},onError:e=>{T(Ql(e)),I(!0)}}),O?(0,Ka.jsx)(_a,{locale:"en-AU",children:(0,Ka.jsx)(fs,{pageContent:y,generalOptions:m,previewError:_,render:s,id:b.id,env:b.env,isXrayEnabled:b.xray,setIsXrayEnabled:e=>{return t="xray",n=e.toString(),h&&(h.searchParams.set(t,n.toString()),history.pushState({},"",h)),void E({...b,[t]:n});var t,n}})}):(0,Ka.jsx)(Hl,{})}},1490:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(94983),i=n(90281),o=n(28780),a=n(6138);const s=["youtube","youtu.be","vimeo","soundcloud"],c=new r.SyncBailHook;c.tap("platform-av-panel-schema",()=>(()=>{const e=(0,o.r)();return(0,a.A)("avPanel",{title:i.Yj().nullish(),caption:i.Yj().nullish(),description:e.nullish(),url:i.Yj().url().refine(e=>s.some(t=>e.includes(t)))})})());const l=()=>c.call()},1542:function(e,t){t.deprecate=(e,t)=>{let n=!0;return function(){return n&&(console.warn("DeprecationWarning: "+t),n=!1),e.apply(this,arguments)}}},6138:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(90281);const i=(e,t)=>r.Ik({id:r.Yj(),sysUpdatedAt:r.Yj().datetime(),contentType:r.eu(e),label:r.Yj(),...t})},7438:function(e,t,n){n.d(t,{i:function(){return s}});var r=n(94983),i=n(90281),o=n(6138);const a=new r.SyncBailHook;a.tap("platform-server-side-panel-schema",()=>(0,o.A)("serverSidePanel",{name:i.Yj()}));const s=()=>a.call()},7458:function(e,t,n){n.d(t,{A:function(){return r}});const r=e=>async t=>({...t&&t.supportingData&&t.supportingData[e.channel]})},8799:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r,rethrowIfPossible:i}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)};\n} else {\n${r()}}\n`,resultReturns:n,onDone:r,rethrowIfPossible:i})}},a=()=>{throw new Error("tapAsync is not supported on a SyncBailHook")},s=()=>{throw new Error("tapPromise is not supported on a SyncBailHook")},c=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=a,n.tapPromise=s,n.compile=c,n}l.prototype=null,e.exports=l},12244:function(e,t,n){n.d(t,{P:function(){return k}});var r=n(94983),i=n(90281),o=n(90332),a=n(60334),s=n(1490),c=n(74280),l=n(57309),u=n(90089),d=n(48539),h=n(41516),p=n(
5953523),f=n(53744),y=n(80581),v=n(91334),m=n(28780),g=n(92969),b=n(27115),E=n(7438),_=n(78325),T=n(65282),O=n(6138),I=n(76975);const w=["white","nearwhite","warm-white","sunset-pink","sage-green","true-green","light","lighter","lightest"],S=()=>{const e=(()=>{const e=(0,g.x)(),t=(0,m.r)(),n=(0,T.h)(),r=(0,f.b)();return(0,O.A)("sectionPanel",{title:i.Yj().nullish(),description:t.nullish(),channels:i.YO(i.Yj()).min(1),supportingData:i.g1(i.Ik({variant:i.gM("value",[i.Ik({value:i.eu("horizontal-slider"),children:i.Ik({"show-selector-number":i.Ik({value:i.zM()})})}),i.Ik({value:i.eu("horizontal-tab"),children:i.Ik({size:i.Ik({value:i.k5(["fill","condensed"])}).default({value:"fill"}),tabsAlignment:i.Ik({value:i.k5(["left","center"])}),whiteBackgroundTabContent:i.Ik({value:i.zM()})})}),i.Ik({value:i.eu("vertical-slider"),children:i.Ik({action:n.nullish(),disclaimer:e.nullish()}).nullish()}),i.Ik({value:i.k5(["columns","default","vertical-stack"])}),i.Ik({value:i.eu("icon-two-columns"),children:i.Ik({icon:r})})]),style:i.Ik({value:i.k5(w)}).default({value:"white"}),auxiliaryText:e.nullish(),"source-of-cross-channel-content":i.Ik({value:i.Yj()}).nullish()}))})})(),t=[(0,o.oh)(),(0,a.V)(),(0,s.Z)(),(0,c.k)(),(0,l.C)(),(0,d.S)(),(0,u.B)(),(0,h.g)(),(0,p.B)(),(0,y.c)(),(0,v.c)(),(0,g.x)(),(0,b.l)(),(0,E.i)(),(0,_.S)(),(0,I.Q)()];return e.extend({panels:i.YO(i.KC([].concat(t,[e.extend({panels:i.YO(i.KC([].concat(t,[e.extend({panels:i.YO(i.KC(t))})])))})])))})},C=new r.SyncBailHook;C.tap("platform-section-panel-schema",()=>S());const k=()=>C.call()},14176:function(e,t,n){const r=n(1542).deprecate(()=>{},"Hook.context is deprecated and will be removed"),i=function(...e){return this.call=this._createCall("sync"),this.call(...e)},o=function(...e){return this.callAsync=this._createCall("async"),this.callAsync(...e)},a=function(...e){return this.promise=this._createCall("promise"),this.promise(...e)};class s{constructor(e=[],t=void 0){this._args=e,this.name=t,this.taps=[],this.interceptors=[],this._call=i,this.call=i,this._callAsync=o,this.callAsync=o,this._promise=a,this.promise=a,this._x=void 0,this.compile=this.compile,this.tap=this.tap,this.tapAsync=this.tapAsync,this.tapPromise=this.tapPromise}compile(e){throw new Error("Abstract: should be overridden")}_createCall(e){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:e})}_tap(e,t,n){if("string"==typeof t)t={name:t.trim()};else if("object"!=typeof t||null===t)throw new Error("Invalid tap options");if("string"!=typeof t.name||""===t.name)throw new Error("Missing name for tap");void 0!==t.context&&r(),t=Object.assign({type:e,fn:n},t),t=this._runRegisterInterceptors(t),this._insert(t)}tap(e,t){this._tap("sync",e,t)}tapAsync(e,t){this._tap("async",e,t)}tapPromise(e,t){this._tap("promise",e,t)}_runRegisterInterceptors(e){for(const t of this.interceptors)if(t.register){const n=t.register(e);void 0!==n&&(e=n)}return e}withOptions(e){const t=t=>Object.assign({},e,"string"==typeof t?{name:t}:t);return{name:this.name,tap:(e,n)=>this.tap(t(e),n),tapAsync:(e,n)=>this.tapAsync(t(e),n),tapPromise:(e,n)=>this.tapPromise(t(e),n),intercept:e=>this.intercept(e),isUsed:()=>this.isUsed(),withOptions:e=>this.withOptions(t(e))}}isUsed(){return this.taps.length>0||this.interceptors.length>0}intercept(e){if(this._resetCompilation(),this.interceptors.push(Object.assign({},e)),e.register)for(let t=0;t<this.taps.length;t++)this.taps[t]=e.register(this.taps[t])}_resetCompilation(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise}_insert(e){let t;this._resetCompilation(),"string"==typeof e.before?t=new Set([e.before]):Array.isArray(e.before)&&(t=new Set(e.before));let n=0;"number"==typeof e.stage&&(n=e.stage);let r=this.taps.length;for(;r>0;){r--;const e=this.taps[r];this.taps[r+1]=e;const i=e.stage||0;if(t){if(t.has(e.name)){t.delete(e.name);continue}if(t.size>0)continue}if(!(i>n)){r++;break}}this.taps[r]=e}}Object.setPrototypeOf(s.prototype,null),e.exports=s},21413:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onDone:t}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){const n=new r(e,t);
59return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},22790:function(e,t,n){n.d(t,{G:function(){return s}});var r=n(94983),i=n(80148);const o="https://app.contentful.com/spaces/hkmafl6harxv/environments/master/entries",a=new r.SyncBailHook;a.tap("platform-hero-schema",()=>(()=>{let e=i.D8.HERO_VARIANT_REQUIRED;return(0,i.Fy)().refine(t=>{let{image:n,supportingData:r,id:a}=t;return r?Object.values(r).every(t=>!(0,i.Mc)(t.variant.value)||(n?Object.keys(null!=n?n:{}).length>0:(e=`${i.D8.ASSET_REQUIRED} ${o}/${a}`,!1))):(e=`${e} ${o}/${a}`,!1)},e)})());const s=()=>a.call()},23146:function(e,t,n){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,n(14041))},25881:function(e,t,n){function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{i0:function(){return r},un:function(){return a},xr:function(){return s},yp:function(){return i}})},26632:function(e,t,n){n.d(t,{A:function(){return c}});var r=n(31085),i=n(88015),o=n(72387);const a=["optional","required"],s=e=>{const{label:t,formControlType:n}=e;return(0,r.jsxs)(o.c,{space:3,children:[(0,r.jsx)("span",{children:t}),n&&a.includes(n)&&(0,r.jsx)(i.Ay,{size:"small",variation:"optional"===n?"info":"warning",children:n.charAt(0).toUpperCase()+n.slice(1)})]})};s.displayName="LabelWithTag";var c=s},27115:function(e,t,n){n.d(t,{l:function(){return s}});var r=n(94983),i=n(90281),o=n(6138);const a=new r.SyncBailHook;a.tap("platform-salesforce-form-panel-schema",()=>(0,o.A)("salesforceFormPanel",{formFlowName:i.Yj(),formAppName:i.Yj(),formComponentName:i.Yj(),formScriptUrl:i.Yj()}));const s=()=>a.call()},27770:function(e,t,n){n.d(t,{DG:function(){return i},or:function(){return c},s$:function(){return r},t3:function(){return o}});const r="gu-health",i="",o=(s="http://localhost:3000/v1/graphql?env=master",!(a="https://api-gateway.nib.com.au/content-platform-api/v1/graphql?env=master")||a.startsWith("$")?s:a);var a,s;const c="/health-hub"},28780:function(e,t,n){n.d(t,{r:function(){return N}});var r=n(90281),i=n(90332),o=n(60334),a=n(1490),s=n(90089),c=n(58152),l=n(48539),u=n(53523),d=n(53744),h=n(94983),p=n(6138);const f=new h.SyncBailHook;f.tap("platform-document-link-schema",()=>(0,p.A)("documentLink",{title:r.Yj().nullish(),text:r.Yj(),url:r.Yj(),trackingTagType:r.k5(["In-Link","Out-Link","Email","Phone","Bread Crumb"]),trackingTag:r.Yj(),showIcon:r.zM(),openInNewTab:r.zM().optional(),fileType:r.Yj().nullish(),fileSize:r.ai().nullish(),publishedDate:r.Yj(),channels:r.YO(r.Yj()).min(1)}));const y=()=>f.call();var v=n(29963);const m=new h.SyncBailHook;m.tap("platform-jump-link-target-schema",()=>(0,p.A)("jumpLinkTarget",{slug:r.Yj()}));const g=()=>m.call();var b=n(80581),E=n(91334),_=n(92969),T=n(27115),O=n(12244),I=n(7438),w=n(78325),S=n(65282),C=n(76975);const k=["blockquote","embedded-asset-block","embedded-entry-block","embedded-resource-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","list-item","ordered-list","paragraph","unordered-list","table","table-row","table-cell","table-header-cell"],A=["asset-hyperlink","embedded-entry-inline","entry-hyperlink","hyperlink"],N=()=>(()=>{r.RZ(()=>r.KC([(0,E.c)(),(0,i.oh)(),(0,s.B)(),(0,l.S)(),(0,c.S)(),(0,b.c)(),(0,_.x)(),(0,u.B)(),(0,w.S)(),(0,T.l)(),(0,I.i)(),(0,a.Z)(),(0,o.V)(),(0,O.P)()])),r.RZ(()=>r.KC([(0,d.b)(),y(),(0,v.Wp)(),g(),(0,_.x)(),(0,S.h)()])),r.RZ(()=>r.KC([(0,E.c)(),(0,i.oh)(),(0,s.B)(),(0,l.S)(),(0,c.S)(),(0,d.b)(),y(),(0,v.Wp)(),g(),(0,b.c)(),(0,_.x)(),(0,S.h)(),(0,O.P)(),(0,C.Q)(),(0,o.V)(),(0,a.Z)(),(0,I.i)(),(0,T.l)(),(0,w.S)(),(0,u.B)()]));const e=r.Ik({type:r.Yj()}),t=r.Ik({nodeType:r.eu("text"),value:r.Yj(),marks:r.YO(e).optional(),data:r.g1(r.bz())}),n=r.RZ(()=>r.Ik({nodeType:r.k5(A),content:r.YO(r.KC([t,n])),data:r.g1(r.bz())})),h=r.RZ(()=>r.Ik({nodeType:r.k5(["document"].concat(k)),content:r.YO(r.KC([t,n,h])),data:r.g1(r.bz())})),p=r.Ik({nodeType:r.k5(k),content:r.YO(r.KC([t,n,h])),data:r.g1(r.bz())});return r.Ik({nodeType:r.eu("document"),content:r.YO(p),data:r.g1(r.L5())})})()},29195:function(e,t,n){n.d(t,{J1:function(){return X}});var r=n(85608);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const o=/\r\n|[\n\r]/g;function a(e,t){let n=0,r=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||i(!1),a.index>=t)break;n=a.index+a[0].length,r+=1}return{line:r,column:t+1-n}}function s(e){return c(e.source,a(e.source,e.start))}function c(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,u=`${e.name}:${a}:${c}\n`,d=r.split(/\r\n|[\n\r]/g),h=d[i];if(h.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let r=0;r<h.length;r+=80)n.push(h.slice(r,r+80));return u+l([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+l([[a-1+" |",d[i-1]],[`${a} |`,h],["|","^".padStart(c)],[`${a+1} |`,d[i+1]]])}function l(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}
59class u extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:c,path:l,originalError:h,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=h?h:void 0,this.nodes=d(Array.isArray(o)?o:o?[o]:void 0);const f=d(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==f?void 0:f.map(e=>e.start),this.locations=c&&s?c.map(e=>a(s,e)):null==f?void 0:f.map(e=>a(e.source,e.start));const y="object"==typeof(v=null==h?void 0:h.extensions)&&null!==v?null==h?void 0:h.extensions:void 0;var v;this.extensions=null!==(i=null!=p?p:y)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,u):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+s(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+c(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function d(e){return void 0===e||0===e.length?void 0:e}function h(e,t,n){return new u(`Syntax Error: ${n}`,{source:e,positions:[t]})}var p,f=n(59762);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(p||(p={}));var y,v=n(42455),m=n(67714),g=n(25881);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(y||(y={}));class b{constructor(e){const t=new f.ou(y.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==y.EOF)do{if(e.next)e=e.next;else{const t=S(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===y.COMMENT);return e}}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function _(e,t){return T(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function I(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return y.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function w(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new f.ou(t,n,r,o,a,i)}function S(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return C(e,i);case 33:return w(e,y.BANG,i,i+1);case 36:return w(e,y.DOLLAR,i,i+1);case 38:return w(e,y.AMP,i,i+1);case 40:return w(e,y.PAREN_L,i,i+1);case 41:return w(e,y.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return w(e,y.SPREAD,i,i+3);break;case 58:return w(e,y.COLON,i,i+1);case 61:return w(e,y.EQUALS,i,i+1);case 64:return w(e,y.AT,i,i+1);case 91:return w(e,y.BRACKET_L,i,i+1);case 93:return w(e,y.BRACKET_R,i,i+1);case 123:return w(e,y.BRACE_L,i,i+1);case 124:return w(e,y.PIPE,i,i+1);case 125:return w(e,y.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?F(e,i):N(e,i)}if((0,g.yp)(t)||45===t)return k(e,i,t);if((0,g.un)(t))return M(e,i);throw h(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(t)||_(n,i)?`Unexpected character: ${I(e,i)}.`:`Invalid character: ${I(e,i)}.`)}return w(e,y.EOF,r,r)}function C(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(E(e))++i;else{if(!_(n,i))break;i+=2}}return w(e,y.COMMENT,t,i,n.slice(t+1,i))}
vendor: 16,384 bytes, line 59
59function k(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),(0,g.yp)(o))throw h(e.source,i,`Invalid number, unexpected digit after 0: ${I(e,i)}.`)}else i=A(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=A(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=A(e,i,o),o=r.charCodeAt(i)),46===o||(0,g.un)(o))throw h(e.source,i,`Invalid number, expected digit but got: ${I(e,i)}.`);return w(e,a?y.FLOAT:y.INT,t,i,r.slice(t,i))}function A(e,t,n){if(!(0,g.yp)(n))throw h(e.source,t,`Invalid number, expected digit but got: ${I(e,t)}.`);const r=e.source.body;let i=t+1;for(;(0,g.yp)(r.charCodeAt(i));)++i;return i}function N(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),w(e,y.STRING,t,i+1,a);if(92===r){a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?D(e,i):x(e,i):L(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;if(E(r))++i;else{if(!_(n,i))throw h(e.source,i,`Invalid character within String: ${I(e,i)}.`);i+=2}}throw h(e.source,i,"Unterminated string.")}function D(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!E(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|P(e),r<0)break}throw h(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function x(e,t){const n=e.source.body,r=R(n,t+2);if(E(r))return{value:String.fromCodePoint(r),size:6};if(T(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=R(n,t+8);if(O(e))return{value:String.fromCodePoint(r,e),size:12}}throw h(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function R(e,t){return P(e.charCodeAt(t))<<12|P(e.charCodeAt(t+1))<<8|P(e.charCodeAt(t+2))<<4|P(e.charCodeAt(t+3))}function P(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function L(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw h(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function F(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),c.push(s);const r=w(e,y.BLOCK_STRING,t,o+3,(0,m.OC)(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(E(r))++o;else{if(!_(n,o))throw h(e.source,o,`Invalid character within String: ${I(e,o)}.`);o+=2}else s+=n.slice(a,o),c.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=n.slice(a,o),a=o+1,o+=4}throw h(e.source,o,"Unterminated string.")}function M(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!(0,g.xr)(e))break;++i}return w(e,y.NAME,t,i,n.slice(t,i))}var j=n(93217),B=n(35198);const V=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,B.N)(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class U{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,j.U)(!1,`Body must be a string. Received: ${(0,B.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,j.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,j.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class ${constructor(e,t={}){const n=function(e){return V(e,U)}(e)?e:new U(e);this._lexer=new b(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(y.NAME);return this.node(e,{kind:v.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:v.b.DOCUMENT,definitions:this.many(y.SOF,this.parseDefinition,y.EOF)})}parseDefinition(){if(this.peek(y.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===y.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw h(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(y.BRACE_L))return this.node(e,{kind:v.b.OPERATION_DEFINITION,operation:f.cE.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(y.NAME)&&(n=this.parseName()),this.node(e,{kind:v.b.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(y.NAME);switch(e.value){case"query":return f.cE.QUERY;case"mutation":return f.cE.MUTATION;case"subscription":return f.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(y.PAREN_L,this.parseVariableDefinition,y.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:v.b.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(y.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(y.DOLLAR),this.node(e,{kind:v.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:v.b.SELECTION_SET,selections:this.many(y.BRACE_L,this.parseSelection,y.BRACE_R)})}parseSelection(){return this.peek(y.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(y.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:v.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(y.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(y.PAREN_L,t,y.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(y.COLON),this.node(t,{kind:v.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(y.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(y.NAME)?this.node(e,{kind:v.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:v.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:v.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:v.b.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case y.BRACKET_L:return this.parseList(e);case y.BRACE_L:return this.parseObject(e);case y.INT:return this.advanceLexer(),this.node(t,{kind:v.b.INT,value:t.value});case y.FLOAT:return this.advanceLexer(),this.node(t,{kind:v.b.FLOAT,value:t.value});case y.STRING:case y.BLOCK_STRING:return this.parseStringLiteral();case y.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:v.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:v.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:v.b.NULL});default:return this.node(t,{kind:v.b.ENUM,value:t.value})}case y.DOLLAR:if(e){if(this.expectToken(y.DOLLAR),this._lexer.token.kind===y.NAME){const e=this._lexer.token.value;throw h(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:v.b.STRING,value:e.value,block:e.kind===y.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:v.b.LIST,values:this.any(y.BRACKET_L,()=>this.parseValueLiteral(e),y.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:v.b.OBJECT,fields:this.any(y.BRACE_L,()=>this.parseObjectField(e),y.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(y.COLON),this.node(t,{kind:v.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(y.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(y.AT),this.node(t,{kind:v.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(y.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(y.BRACKET_R),t=this.node(e,{kind:v.b.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(y.BANG)?this.node(e,{kind:v.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:v.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(y.STRING)||this.peek(y.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);return this.node(e,{kind:v.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(y.COLON);const n=this.parseNamedType();return this.node(e,{kind:v.b.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:v.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(y.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseFieldDefinition,y.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(y.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:v.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(y.PAREN_L,this.parseInputValueDef,y.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(y.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(y.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:v.b.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:v.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:v.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(y.EQUALS)?this.delimitedMany(y.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:v.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(y.BRACE_L,this.parseEnumValueDefinition,y.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:v.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw h(this._lexer.source,this._lexer.token.start,`${q(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:v.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseInputValueDef,y.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension()
59{const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:v.b.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:v.b.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:v.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:v.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(y.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:v.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(y.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(p,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new f.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw h(this._lexer.source,t.start,`Expected ${K(e)}, found ${q(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==y.NAME||t.value!==e)throw h(this._lexer.source,t.start,`Expected "${e}", found ${q(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===y.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return h(this._lexer.source,t.start,`Unexpected ${q(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==y.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw h(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function q(e){const t=e.value;return K(e.kind)+(null!=t?` "${t}"`:"")}function K(e){return function(e){return e===y.BANG||e===y.DOLLAR||e===y.AMP||e===y.PAREN_L||e===y.PAREN_R||e===y.SPREAD||e===y.COLON||e===y.EQUALS||e===y.AT||e===y.BRACKET_L||e===y.BRACKET_R||e===y.BRACE_L||e===y.PIPE||e===y.BRACE_R}(e)?`"${e}"`:e}var Q=new Map,z=new Map,Y=!0,G=!1;function H(e){return e.replace(/[\s,]+/g," ").trim()}function W(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=H((a=e.loc).source.body.substring(a.start,a.end)),o=z.get(r);o&&!o.has(i)?Y&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||z.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a}),(0,r.Cl)((0,r.Cl)({},e),{definitions:n})}function J(e){var t=H(e);if(!Q.has(t)){var n=function(e,t){const n=new $(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}(e,{experimentalFragmentVariables:G,allowLegacyFragmentVariables:G});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Q.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(W(n)))}return Q.get(t)}function X(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),J(r)}var Z,ee=X,te=function(){Q.clear(),z.clear()},ne=function(){Y=!1},re=function(){G=!0},ie=function(){G=!1};(Z=X||(X={})).gql=ee,Z.resetCaches=te,Z.disableFragmentWarnings=ne,Z.enableExperimentalFragmentVariables=re,Z.disableExperimentalFragmentVariables=ie,X.default=X},29963:function(e,t,n){n.d(t,{Wp:function(){return l}});var r=n(94983),i=n(90281),o=n(56285),a=n(6138);const s=/^(\d+)x(\d+)$/,c=new r.SyncBailHook;c.tap("platform-image-icon-schema",()=>(0,a.A)("imageIcon",{label:i.Yj(),altText:i.Yj(),imageIcon:i.Ik({fields:o.w}),channels:i.YO(i.Yj()).min(1),supportingData:i.g1(i.Ik({size:i.Ik({value:i.Yj().regex(s).nullish()})}))}));const l=()=>c.call()},34497:function(e,t,n){n.d(t,{D:function(){return s}});var r=n(20838),i=n(40359),o=n(28692),a=n(62539);const s=e=>async t=>{const n=e.channel;if(!t)return;const s=t.supportingData,c=t.socialLinks,l=(0,i.F)(e),u=await l(t),d=(0,o.t)(s,n,"variant"),h=null==d?void 0:d.value;if("tcu-category"===h){var p;const t=e.allContentConnectors,n=null==d||null===(p=d.children)||void 0===p?void 0:p.contentConnector,i=n&&await(0,r.W)(e)(n);let o,s;const c=(()=>null==t?void 0:t.find(e=>{var t;return null===(t=e.childConnectors)||void 0===t?void 0:t.find(e=>e.id===n.id)}))(),l=c&&await(0,r.W)(e)(c);return c?(s={...i,childPages:[]},o={...l,childPages:[]}):o={...i,childPages:[]},{...u,variant:h,category:o,subcategory:s,homeLinkprops:a.A}}return"author"===h?{...u,variant:h,socialLinks:c,homeLinkprops:a.A}:{...u}}},35198:function(e,t,n){n.d(t,{N:function(){return o}});const r=10,i=2;function o(e){return a(e,[])}function a(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:a(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>i)return"[Array]";const n=Math.min(r,e.length),o=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));1===o?s.push("... 1 more item"):o>1&&s.push(`... ${o} more items`);return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>i)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+a(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},41019:function(e,t){t.A={className:"",disabled:!1,error:"",help:"",id:"",name:"",valid:!1,validated:!1,isEmptyAndOptional:!1,isCompact:!1,fullstory:"mask"}},41335:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onResult:t,onDone:n}){let r="";return r+=`var _results = new Array(${this.options.taps.length});
59\n`,r+="var _checkDone = function() {\n",r+="for(var i = 0; i < _results.length; i++) {\n",r+="var item = _results[i];\n",r+="if(item === undefined) return false;\n",r+="if(item.result !== undefined) {\n",r+=t("item.result"),r+="return true;\n",r+="}\n",r+="if(item.error) {\n",r+=e("item.error"),r+="return true;\n",r+="}\n",r+="}\n",r+="return false;\n",r+="}\n",r+=this.callTapsParallel({onError:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && ((_results.length = ${e+1}), (_results[${e}] = { error: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onResult:(e,t,n,r)=>{let i="";return i+=`if(${e} < _results.length && (${t} !== undefined && (_results.length = ${e+1}), (_results[${e}] = { result: ${t} }), _checkDone())) {\n`,i+=r(!0),i+="} else {\n",i+=n(),i+="}\n",i},onTap:(e,t,n,r)=>{let i="";return e>0&&(i+=`if(${e} >= _results.length) {\n`,i+=n(),i+="} else {\n"),i+=t(),e>0&&(i+="}\n"),i},onDone:n}),r}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){const n=new r(e,t);return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},41516:function(e,t,n){n.d(t,{g:function(){return h}});var r=n(94983),i=n(90281),o=n(53744),a=n(28780),s=n(65282),c=n(6138);const l=new r.SyncBailHook;l.tap("platform-contact-item-schema",()=>(()=>{const e=(0,o.b)(),t=(0,a.r)(),n=(0,s.h)();return(0,c.A)("contactItem",{title:i.Yj(),subtext:t.nullish(),contactLink:n.nullish(),contactIcon:e,supportingData:i.g1(i.Ik({variant:i.Ik({value:i.k5(["default","address","disclaimer"])})}))}).refine(e=>{let{contactLink:t,supportingData:n={}}=e;return!!t||Object.values(n).every(e=>{let{variant:t}=e;return"address"===t.value})})})());const u=()=>{const e=l.call(),t=(0,a.r)();return(0,c.A)("contactPanel",{title:i.Yj().nullish(),description:t.nullish(),leftColumnTitle:i.Yj().nullish(),rightColumnTitle:i.Yj().nullish(),leftContactItems:i.YO(e).min(1).max(5),rightContactItems:i.YO(e).max(5).nullish()})},d=new r.SyncBailHook;d.tap("platform-contact-panel-schema",()=>u());const h=()=>d.call()},42455:function(e,t,n){var r;n.d(t,{b:function(){return r}}),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="StringValue",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"}(r||(r={}))},42580:function(e,t,n){var r=n(31085),i=n(78800);const o=({checked:e=!1,formControlType:t,formType:n,...o})=>{const a=void 0!==t||void 0!==n,s="required"===t||"required"===n&&!t;return(0,r.jsx)(i.A,{"data-mesh-component":"CHECKBOX",...o,...a?{"aria-required":s}:{},selected:e,type:"checkbox"})};o.displayName="Checkbox",t.A=o},44276:function(e,t,n){n.d(t,{A:function(){return a}});var r=n(4731),i=n(18139),o=n(34497);const a=e=>async t=>{const{articlesPanel:n,seo:a,hero:s}=t,{slug:c}=t,l=`${e.baseurl}${c}`,u=(0,i.s)(r.yw.SEO,{...e,selfCanonical:l}),d=(0,o.D)({...e,tagContext:"content-page",variant:"hero",heroVillainSizes:e.heroVillainSizes,channel:e.channel}),h=await u(a),p=await d(s),f=(0,i.s)(r.yw.ARTICLES_PANEL,e),y=await f(n),v=(0,i.s)(r.yw.ARTICLE,e);for(const e of n.relatedArticles){var m;const t=await v(e),n=null===(m=y.cards)||void 0===m?void 0:m.find(e=>e.id===t.id);var g,b;if(n)n.tag=(null===(g=t.channelSpecificData)||void 0===g||null===(b=g.subCategory)||void 0===b?void 0:b.title)||void 0}return{...t,seo:h,hero:p,articles:y,slug:c}}},46223:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsSeries({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},a=()=>{throw new Error("tapAsync is not supported on a SyncHook")},s=()=>{throw new Error("tapPromise is not supported on a SyncHook")},c=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=a,n.tapPromise=s,n.compile=c,n}l.prototype=null,e.exports=l},47812:function(e,t,n){var r=n(31085),i=n(64301),o=n(25081),a=n(26597),s=n(84186),c=n(59067),l=n(62421);const u=(0,i.default)(({isCompact:e,isFieldset:t,outside:n,...i})=>(0,r.jsx)("span",{...i}))` 60 position: absolute; 61 font-size: 0; 62 top: 50%; 63 transform: translateY(-50%); 64 inset-inline-end: 0.5rem; 65 66 ${(0,a.C9)("mini")` 67 inset-inline-end: ${({isCompact:e})=>e?"0.5rem":"1rem"}; 68 `} 69 70 ${({isFieldset:e})=>e&&i.css` 71 display: inline-block; 72 ${(0,o.mt)(2)}; 73 ${(0,o.mr)(2)}; 74 position: static; 75 align-self: center; 76 transform: none; 77 `} 78 79 ${({outside:e})=>e&&i.css` 80 &&& { 81 ${(0,o.ml)(2)}; 82 inset-inline-end: auto; 83 } 84 `} 85 86 ${({disabled:e})=>e&&i.css` 87 opacity: ${l.q}; 88 `}; 89`,d=(0,i.default)(c.A)` 90 color: var(--themeColorFgSuccess); 91`,h=(0,i.default)(s.A)` 92 color: var(--themeColorFgError); 93`;t.A=({valid:e,outside:t,isFieldset:n,isCompact:i,disabled:o,...a})=>(0,r.jsx)(u,{outside:t,isFieldset:n,isCompact:i,disabled:o,...a,"data-mesh-component":"FORM-CONTROL--VALIDATION-ICON",children:e?(0,r.jsx)(d,{"data-testid":"tick-icon",size:i?20:"sm",fill:"
93currentColor"}):(0,r.jsx)(h,{"data-testid":"error-icon",size:i?20:"sm",fill:"currentColor"})})},48539:function(e,t,n){n.d(t,{S:function(){return h}});var r=n(94983),i=n(90281),o=n(58152),a=n(28780),s=n(92969),c=n(6138);const l=["checkup","feature-plain","flash","partner","horizontal","mesh"],u=["default","feature","article"],d=new r.SyncBailHook;d.tap("platform-card-panel-schema",()=>(()=>{const e=(0,o.S)(),t=(0,s.x)(),n=(0,a.r)();return(0,c.A)("cardPanel",{title:i.Yj().nullish(),description:n.nullish(),cards:i.YO(e).min(1),supportingData:i.g1(i.Ik({alignment:i.Ik({value:i.k5(["left","right","centre"]).default("centre")}),arrangement:i.Ik({value:i.k5(u)}).default({value:"default"}),enforceVariant:i.Ik({value:i.k5([].concat(l)).nullish()}).default({value:"horizontal"}),postamble:t.nullish(),hasSliderOnSmallScreen:i.Ik({value:i.zM()}).nullish()}))})})());const h=()=>d.call()},48681:function(e,t,n){var r=n(31085),i=n(64301),o=n(25081),a=n(26597);const s={1:"5.41em",2:"6.42em",3:"7.23em",4:"8.19em",5:"9.10em",6:"10.07em",7:"10.98em",8:"11.89em",9:"12.85em",10:"13.81em",11:"14.99em",12:"16.06em",13:"16.60em",14:"17.45em",15:"18.74em",20:"23.02em",30:"32.29em"},c=(0,i.default)(({width:e,shrink:t,isSelectInput:n,isCompact:i,inline:o,isFullWidthSelect:a,...s})=>(0,r.jsx)("div",{"data-mesh-component":"FORM-CONTROL--INPUT-WRAPPER",...s}))` 94 position: relative; 95 ${(0,o.mt)(2)}; 96 97 ${({isSelectInput:e,isFullWidthSelect:t})=>e&&i.css` 98 display: inline-block; 99 max-width: ${t?"100%":"calc(100% - 0.5rem)"}; 100 101 ${(0,a.C9)("mini")` 102 max-width: ${t?"100%":"calc(100% - 2.5rem)"}; 103 `} 104 `}; 105 106 ${({shrink:e})=>!e&&i.css` 107 width: 100%; 108 109 ${(0,a.C9)("sm")` 110 max-width: ${({width:e})=>s[e]||e}; 111 `} 112 `}; 113`;c.displayName="InputWrapper",t.A=c},48728:function(e,t,n){var r=n(31085),i=n(64301),o=n(62421);const a=(0,i.default)(({isCompact:e,...t})=>(0,r.jsx)("label",{"data-mesh-component":"FORM-CONTROL--LABEL",...t}))` 114 display: block; 115 color: var(--themeColorFgLabel); 116 font-family: var(--formControlTypographyLabelFontFamily); 117 font-size: var(--formControlTypographyLabelFontSize); 118 font-weight: var(--formControlTypographyLabelFontWeight); 119 line-height: var(--formControlTypographyLabelLineHeight); 120 letter-spacing: var(--formControlTypographyLabelLetterSpacing); 121 text-transform: var(--formControlTextTransformLabel); 122 width: 100%; 123 124 ${({isCompact:e})=>e&&i.css` 125 font-size: var(--themeTypographyCopySmallFontSize); 126 `}; 127 128 ${({disabled:e})=>e&&i.css` 129 opacity: ${o.q}; 130 `}; 131`;a.displayName="Label",t.A=a},49677:function(e,t,n){n.d(t,{P:function(){return c}});var r=n(94983),i=n(90281),o=n(56285),a=n(6138);const s=new r.SyncBailHook;s.tap("platform-seo-schema",()=>(0,a.A)("seo",{title:i.Yj().max(130),description:i.Yj().trim().max(500),canonical:i.Yj().url().nullish(),sharingImage:i.Ik({fields:o.w}).nullish(),noIndex:i.zM().nullish(),jsonLD:i.g1(i.L5()).nullish()}));const c=()=>s.call()},53523:function(e,t,n){n.d(t,{B:function(){return d}});var r=n(94983),i=n(90281),o=n(58152),a=n(53744),s=n(80581),c=n(92969),l=n(6138);const u=new r.SyncBailHook;u.tap("platform-content-media-panel-schema",()=>(()=>{const e=(0,o.S)(),t=(0,a.b)(),n=(0,s.c)(),r=(0,c.x)();return(0,l.A)("contentMediaPanel",{title:i.Yj().nullish(),contentPanel:r,media:i.KC([e,n]),icon:t.nullish(),channels:i.YO(i.Yj()).min(1),smallDeviceLayout:i.k5(["media-top","media-bottom","no-media"]).default("media-top"),largeDeviceLayout:i.k5(["media-left","media-right","no-media"]).default("media-right"),overlayCard:e.nullish(),supportingData:i.g1(i.L5()).nullable()})})());const d=()=>u.call()},53744:function(e,t,n){n.d(t,{b:function(){return c}});var r=n(94983),i=n(7065),o=n(90281),a=n(6138);const s=new r.SyncBailHook;s.tap("platform-design-icon-schema",()=>(0,a.A)("designIcon",{label:o.Yj(),designIcon:o.Yj().refine(e=>i.iconKeys.includes(e))}));const c=()=>s.call()},54589:function(e,t,n){n.d(t,{$:function(){return o},E:function(){return i}});var r=n(90281);const i=r.k5(["center","faces","face","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"]),o=r.k5(["crop","fill"])},55301:function(e,t,n){n.d(t,{K:function(){return Be}});var r={};n.r(r),n.d(r,{default:function(){return j}});var i={};n.r(i),n.d(i,{default:function(){return V},dependents:function(){return B}});var o={};n.r(o),n.d(o,{default:function(){return $},dependents:function(){return U}});var a={};n.r(a),n.d(a,{default:function(){return q}});var s={};n.r(s),n.d(s,{default:function(){return Q},dependents:function(){return K}});var c={};n.r(c),n.d(c,{default:function(){return Y},dependents:function(){return z}});var l={};n.r(l),n.d(l,{default:function(){return H},dependents:function(){return G}});var u={};n.r(u),n.d(u,{default:function(){return J},dependents:function(){return W}});var d={};n.r(d),n.d(d,{default:function(){return Z},dependents:function(){return X}});var h={};n.r(h),n.d(h,{default:function(){return te},dependents:function(){return ee}});var p={};n.r(p),n.d(p,{default:function(){return re},dependents:function(){return ne}});var f={};n.r(f),n.d(f,{default:function(){return oe},dependents:function(){return ie}});var y={};n.r(y),n.d(y,{default:function(){return se},dependents:function(){return ae}});var v={};n.r(v),n.d(v,{default:function(){return le},dependents:function(){return ce}});var m={};n.r(m),n.d(m,{default:function(){return ue}});var g={};n.r(g),n.d(g,{default:function(){return de}});var b={};n.r(b),n.d(b,{default:function(){return he}});var E={};n.r(E),n.d(E,{default:function(){return pe}});var _={};n.r(_),n.d(_,{default:function(){return fe}});var T={};n.r(T),n.d(T,{default:function(){return ye}});var O={};n.r(O),n.d(O,{default:function(){return ve}});var I={};n.r(I),n.d(I,{default:function(){return ge},dependents:function(){return me}});var w={};n.r(w),n.d(w,{default:function(){return Ee},dependents:function(){return be}});var S={};n.r(S),n.d(S,{default:function(){return Te},dependents:function(){return _e}});var C={};n.r(C),n.d(C,{default:function(){return Oe}});var k={};n.r(k),n.d(k,{default:function(){return Ie}});var A={};n.r(A),n.d(A,{default:function(){return Se},dependents:function(){return we}});var N={};n.r(N),n.d(N,{default:function(){return Ce}});var D={};n.r(D),n.d(D,{default:function(){return ke}});var x={};n.r(x),n.d(x,{default:function(){return Ae}});var R={};n.r(R),n.d(R,{default:function(){return De},dependents:function(){return Ne}});var P={};n.r(P),n.d(P,{default:function(){return Re},dependents:function(){return xe}});var L={};n.r(L),n.d(L,{default:function(){return Le},dependents:function(){return Pe}});var F=n(64619),M=n(4731);function j(e){return`\n fragment AccordionPanel on ${e?e+"_":""}AccordionPanel {\n id\n contentType\n sysUpdatedAt\n description\n items {\n content\n contentType\n id\n label\n subtitle\n sysUpdatedAt\n title\n }\n label\n supportingData\n title\n }\n `}const B=[M.yw.AUTHOR_PANEL,M.yw.HEROVILLAIN,M.yw.PICTURE_PANEL,M.yw.SEO,M.yw.RICH_TEXT_PANEL];function V(e){return`\n fragment Article on ${e?e+"_":""}Article {\n id\n contentType\n sysUpdatedAt\n label\n slug\n title\n seo {\n ...SEO\n }\n hero {\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n ... on ${e?e+"_":""}HeroVillain {\n ...HeroVillain\n }\n }\n content\n author {\n ...AuthorPanel\n }\n shortDescription {\n ...RichTextPanel\n }\n showHeaderPhoneNumber\n showSmallFooterPhoneNumber\n qualtricsSurvey\n channels\n supportingData\n }\n `}const U=[M.yw.PICTURE_PANEL,M.yw.TEXTLINK];function $(e){return`\n fragment AuthorPanel on ${e?e+"_":""}AuthorPanel {\n id\n contentType\n sysUpdatedAt\n label\n authorTitle\n authorName\n authorBiography\n authorImage{\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n }\n authorSocialLinks{\n ... on ${e?e+"_":""}TextLink {\n ...TextLink\n }\n }\n channels\n supportingData\n }\n `}function q(e){return`\n fragment AvPanel on ${e?e+"_":""}AvPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n url\n caption\n }\n `}const K=[M.yw.BANNER];function Q(e){return`\n fragment BannerStack on ${e?e+"_":""}BannerStack {\n id\n contentType\n sysUpdatedAt\n label\n title\n banners {\n ...Banner\n }\n channels\n supportingData\n }\n `}const z=[M.yw.DESIGN_ICON,M.yw.IMAGE_ICON];function Y(e){return`\n fragment Banner on ${e?e+"_":""}Banner {\n id\n contentType\n sysUpdatedAt\n label\n title\n content\n icons {\n ... on ${e?e+"_":""}DesignIcon {\n ...DesignIcon\n }\n ... on ${e?e+"_":""}ImageIcon {\n ...ImageIcon\n }\n }\n channels\n supportingData\n }\n `}const G=[M.yw.DESIGN_ICON,M.yw.PICTURE_PANEL,M.yw.RICH_TEXT_PANEL,M.yw.TEXTLINK];function H(e){return`\n fragment CallToAction on ${e?e+"_":""}CallToAction {\n id\n contentType\n sysUpdatedAt\n channels\n label\n richText\n supportingData\n title\n ctaMedia {\n ... on ${e?e+"_":""}DesignIcon {\n ...DesignIcon\n }\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n }\n action {\n ...TextLink\n }\n secondaryAction {\n ...TextLink\n }\n }\n `}const W=[M.yw.CARD];function J(e){return`\n fragment CardPanel on ${e?e+"_":""}CardPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n cards{\n ...Card\n }\n channels\n supportingData\n }\n `}const X=[M.yw.DESIGN_ICON,M.yw.PICTURE_PANEL,M.yw.TEXTLINK];function Z(e){return`\n fragment Card on ${e?e+"_":""}Card {\n id\n contentType\n sysUpdatedAt\n label\n title\n richText\n graphic {\n ...on ${e?e+"_":""}PicturePanel{\n ...PicturePanel\n }\n ...on ${e?e+"_":""}DesignIcon{\n ...DesignIcon\n }\n }\n actions{\n ...TextLink\n }\n channels\n supportingData\n }\n `}const ee=[M.yw.DESIGN_ICON,M.yw.TEXTLINK];function te(e){return`\n fragment ContactItem on ${e?e+"_":""}ContactItem {\n id\n contentType\n sysUpdatedAt\n title\n label\n contactLink {\n ...TextLink\n } \n contactIcon {\n ...DesignIcon\n }\n subtext\n channels\n supportingData\n }\n `}const ne=[M.yw.CONTACT_ITEM];function re(e){return`\n fragment ContactPanel on ${e?e+"_":""}ContactPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n leftColumnTitle\n rightColumnTitle\n leftContactItems {\n ...ContactItem\n }\n rightContactItems {\n ...ContactItem\n }\n channels\n supportingData\n }\n `}const ie=[M.yw.ARTICLE,M.yw.SEO,M.yw.RICH_TEXT_PANEL];function oe(e){return`\n fragment ContentPageWithoutPanel on ${e?e+"_":""}ContentPage {\n id\n contentType\n sysUpdatedAt\n label\n title\n slug\n }\n\n fragment PortfolioPageWithoutPanel on ${e?e+"_":""}PortfolioPage {\n id\n contentType\n sysUpdatedAt\n label\n title\n slug\n content\n seo {\n ...SEO\n }\n shortDescription {\n ...RichTextPanel\n }\n channels\n supportingData\n }\n\n fragment ContentConnector on ${e?e+"_":""}ContentConnector {\n id\n contentType\n sysUpdatedAt\n label\n title\n icon\n relatedPage {\n ... on ${e?e+"_":""}
131Article {\n ...Article\n }\n \n ... on ${e?e+"_":""}ContentPage {\n ...ContentPageWithoutPanel\n }\n ... on ${e?e+"_":""}PortfolioPage {\n ...PortfolioPageWithoutPanel\n }\n }\n childPages {\n ... on ${e?e+"_":""}Article {\n ...Article\n }\n ... on ${e?e+"_":""}PortfolioPage {\n ...PortfolioPageWithoutPanel\n }\n }\n childConnectors {\n id\n contentType\n label\n sysUpdatedAt\n channels\n icon\n childConnectors {\n id\n contentType\n label\n sysUpdatedAt\n channels\n icon\n }\n }\n slug\n channels\n supportingData\n }\n `}const ae=[M.yw.AV_PANEL,M.yw.CARD,M.yw.DESIGN_ICON,M.yw.PICTURE_PANEL,M.yw.RICH_TEXT_PANEL];function se(e){return`\n fragment ContentMediaPanel on ${e?e+"_":""}ContentMediaPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n channels\n supportingData\n smallDeviceLayout\n largeDeviceLayout\n overlayCard {\n ...Card\n }\n icon {\n ...DesignIcon\n }\n contentPanel {\n ...RichTextPanel\n }\n media {\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n ... on ${e?e+"_":""}AvPanel {\n ...AvPanel\n }\n }\n }\n `}const ce=[M.yw.DESIGN_ICON,M.yw.HEROVILLAIN,M.yw.SEO,"panels"];function le(e){return`\n fragment ContentPage on ${e?e+"_":""}ContentPage {\n id\n contentType\n sysUpdatedAt\n label\n title\n slug\n seo {\n ...SEO\n }\n hero {\n ...HeroVillain\n }\n villain {\n ...HeroVillain\n }\n panels {\n ...Panels\n }\n showHeaderPhoneNumber\n showSmallFooterPhoneNumber\n qualtricsSurvey\n channels\n supportingData\n }`}function ue(e){return`\n fragment DesignIcon on ${e?e+"_":""}DesignIcon {\n id\n contentType\n sysUpdatedAt\n label\n designIcon\n }\n `}function de(e){return`\n fragment DocumentLink on ${e?e+"_":""}DocumentLink {\n id\n contentType\n sysUpdatedAt\n label\n text\n url\n fileType\n fileSize\n publishedDate\n trackingTagType\n trackingTag\n target\n showIcon\n supportingData\n }\n `}function he(e){return`\n fragment GeneralOptions on ${e?e+"_":""}GeneralOptions {\n id\n contentType\n sysUpdatedAt\n label\n supportingData\n supportingDataConfiguration\n }\n `}function pe(e){return`\n fragment HeroVillain on ${e?e+"_":""}HeroVillain {\n id\n contentType\n sysUpdatedAt\n channels\n label\n supportingData\n title\n content\n image\n focus\n fit \n quality\n imageCaption\n }\n `}function fe(e){return`\n fragment ImageIcon on ${e?e+"_":""}ImageIcon {\n id\n contentType\n sysUpdatedAt\n altText\n label\n imageIcon\n supportingData\n channels\n }\n `}function ye(e){return`\n fragment JumpLinkTarget on ${e?e+"_":""}JumpLinkTarget {\n id\n contentType\n sysUpdatedAt\n label\n slug\n channels\n supportingData\n }\n `}function ve(e){return`\n fragment PageBanner on ${e?e+"_":""}PageBanner {\n id\n contentType\n sysUpdatedAt\n label\n title\n content\n channels\n supportingData\n }\n `}const me=[M.yw.TEXTLINK];function ge(e){return`\n fragment PicturePanel on ${e?e+"_":""}PicturePanel {\n id\n contentType\n sysUpdatedAt\n altText\n caption\n channels\n image\n description\n label\n source {\n ...TextLink\n }\n supportingData\n title\n focus\n fit \n quality\n }\n `}const be=[M.yw.CARD_PANEL,M.yw.HEROVILLAIN,M.yw.SEO,M.yw.RICH_TEXT_PANEL,"panels"];function Ee(e){return`\n fragment PortfolioPage on ${e?e+"_":""}PortfolioPage {\n id\n contentType\n sysUpdatedAt\n label\n title\n slug\n content\n seo {\n ...SEO\n }\n hero {\n ...HeroVillain\n }\n infoCards {\n ...CardPanel\n }\n postamble {\n ...Panels\n }\n shortDescription {\n ...RichTextPanel\n }\n showHeaderPhoneNumber\n showSmallFooterPhoneNumber\n channels\n supportingData\n }\n `}const _e=[M.yw.CONTENT_CONNECTOR,M.yw.ARTICLE];function Te(e){return`\n fragment RelatedArticlesPanel on ${e?e+"_":""}RelatedArticlesPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n relatedArticles{\n ... on ${e?e+"_":""}
131Article {\n ...Article\n }\n ... on ${e?e+"_":""}ContentConnector {\n \t...ContentConnector\n }\n }\n action {\n ...TextLink\n }\n channels\n supportingData\n }\n `}function Oe(e){return`\n fragment RichTextPanel on ${e?e+"_":""}RichTextPanel {\n id\n contentType\n sysUpdatedAt\n content\n label\n title\n supportingData\n }\n `}function Ie(e){return`\n fragment SalesforceFormPanel on ${e?e+"_":""}SalesforceFormPanel {\n id\n contentType\n sysUpdatedAt\n label\n formFlowName\n formAppName\n formComponentName\n formScriptUrl\n channels\n }\n `}const we=["panels"];function Se(e){return`\n fragment SectionPanel on ${e?e+"_":""}SectionPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n panels {\n ...SectionPanelPanels\n ... on ${e?e+"_":""}SectionPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n panels {\n ...SectionPanelPanels\n ... on ${e?e+"_":""}SectionPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n panels {\n ...SectionPanelPanels\n }\n channels\n supportingData\n }\n }\n channels\n supportingData\n }\n }\n channels\n supportingData\n }\n `}function Ce(e){return`\n fragment SEO on ${e?e+"_":""}SeoEntry {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n canonical\n sharingImage\n noIndex\n jsonLD\n }\n `}function ke(e){return`\n fragment ServerSidePanel on ${e?e+"_":""}ServerSidePanel {\n id\n contentType\n sysUpdatedAt\n label\n name\n }\n `}function Ae(e){return`\n fragment SimpleTable on ${e?e+"_":""}SimpleTable {\n id\n contentType\n sysUpdatedAt\n label\n title\n tableContent\n tableCaption\n table\n columnDisplay\n alternateRows\n tableDisplayPreference\n channels\n supportingData\n }\n `}const Ne=[M.yw.DESIGN_ICON];function De(e){return`\n fragment TextLink on ${e?e+"_":""}TextLink {\n id\n contentType\n sysUpdatedAt\n label\n title\n text\n icon {\n ...DesignIcon\n }\n url\n trackingTagType\n trackingTag\n target\n isRouterLink\n channels\n supportingData\n }\n `}const xe=[M.yw.TEXTLINK];function Re(e){return`\n fragment UtilityPanel on ${e?e+"_":""}UtilityPanel {\n id\n contentType\n sysUpdatedAt\n label\n title\n description\n actions {\n ...TextLink\n }\n channels\n supportingData\n }\n `}const Pe=[M.yw.ACCORDION_PANEL,M.yw.ARTICLES_PANEL,M.yw.AUTHOR_PANEL,M.yw.AV_PANEL,M.yw.BANNER,M.yw.BANNER_STACK,M.yw.CALL_TO_ACTION,M.yw.CARD_PANEL,M.yw.CONTACT_PANEL,M.yw.CONTENT_MEDIA_PANEL,M.yw.PICTURE_PANEL,M.yw.RICH_TEXT_PANEL,M.yw.SALESFORCE_FORM_PANEL,M.yw.SECTION_PANEL,M.yw.SERVER_SIDE_PANEL,M.yw.SIMPLE_TABLE,M.yw.UTILITY_PANEL];function Le(e){return`\n fragment Panels on ${e?e+"_":""}Panels {\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n ... on ${e?e+"_":""}AccordionPanel {\n ...AccordionPanel\n }\n ... on ${e?e+"_":""}RichTextPanel {\n ...RichTextPanel\n }\n ... on ${e?e+"_":""}SectionPanel {\n ...SectionPanel\n }\n ... on ${e?e+"_":""}CardPanel {\n ...CardPanel\n }\n ... on ${e?e+"_":""}AvPanel {\n ...AvPanel\n }\n ... on ${e?e+"_":""}CallToAction {\n ...CallToAction\n }\n ... on ${e?e+"_":""}ContentMediaPanel {\n ...ContentMediaPanel\n }\n ... on ${e?e+"_":""}SalesforceFormPanel {\n ...SalesforceFormPanel\n }\n ... on ${e?e+"_":""}SimpleTable {\n ...SimpleTable\n }\n ... on ${e?e+"_":""}ServerSidePanel {\n ...ServerSidePanel\n }\n ... on ${e?e+"_":""}ContactPanel {\n ...ContactPanel\n }\n ... on ${e?e+"_":""}UtilityPanel {\n ...UtilityPanel\n }\n ... on ${e?e+"_":""}RelatedArticlesPanel {\n ...RelatedArticlesPanel\n }\n ... on ${e?e+"_":""}AuthorPanel {\n ...AuthorPanel\n }\n ... on ${e?e+"_":""}Banner {\n ...Banner\n }\n ... on ${e?e+"_":""}BannerStack {\n ...BannerStack\n }\n }\n\n fragment SectionPanelPanels on ${e?e+"_":""}Panels {\n ... on ${e?e+"_":""}PicturePanel {\n ...PicturePanel\n }\n ... on ${e?e+"_":""}AccordionPanel {\n ...AccordionPanel\n }\n ... on ${e?e+"_":""}RichTextPanel {\n ...RichTextPanel\n }\n ... on ${e?e+"_":""}CardPanel {\n ...CardPanel\n }\n ... on ${e?e+"_":""}AvPanel {\n ...AvPanel\n }\n ... on ${e?e+"_":""}CallToAction {\n ...CallToAction\n }\n ... on ${e?e+"_":""}ContentMediaPanel {\n ...ContentMediaPanel\n }\n ... on ${e?e+"_":""}SalesforceFormPanel {\n ...SalesforceFormPanel\n }\n ... on ${e?e+"_":""}SimpleTable {\n ...SimpleTable\n }\n ... on ${e?e+"_":""}ServerSidePanel {\n ...ServerSidePanel\n }\n ... on ${e?e+"_":""}ContactPanel {\n ...ContactPanel\n }\n ... on ${e?e+"_":""}UtilityPanel {\n ...UtilityPanel\n }\n ... on ${e?e+"_":""}RelatedArticlesPanel {\n ...RelatedArticlesPanel\n }\n ... on ${e?e+"_":""}AuthorPanel {\n ...AuthorPanel\n }\n ... on ${e?e+"_":""}Banner {\n ...Banner\n }\n ... on ${e?e+"_":""}BannerStack {\n ...BannerStack\n }\n }\n `}const Fe={[M.yw.ACCORDION_PANEL]:r,[M.yw.ARTICLE]:i,[M.yw.AUTHOR_PANEL]:o,[M.yw.AV_PANEL]:a,[M.yw.BANNER_STACK]:s,[M.yw.BANNER]:c,[M.yw.CALL_TO_ACTION]:l,[M.yw.CARD_PANEL]:u,[M.yw.CARD]:d,[M.yw.CONTACT_ITEM]:h,[M.yw.CONTACT_PANEL]:p,[M.yw.CONTENT_CONNECTOR]:f,[M.yw.CONTENT_MEDIA_PANEL]:y,[M.yw.CONTENT_PAGE]:v,[M.yw.DESIGN_ICON]:m,[M.yw.DOCUMENT_LINK]:g,[M.yw.GENERAL_OPTIONS]:b,[M.yw.HEROVILLAIN]:E,[M.yw.IMAGE_ICON]:_,[M.yw.JUMP_LINK_TARGET]:T,[M.yw.PAGE_BANNER]:O,[M.yw.PICTURE_PANEL]:I,[M.yw.PORTFOLIO_PAGE]:w,[M.yw.ARTICLES_PANEL]:S,[M.yw.RICH_TEXT_PANEL]:C,[M.yw.SALESFORCE_FORM_PANEL]:k,[M.yw.SECTION_PANEL]:A,[M.yw.SEO]:N,[M.yw.SERVER_SIDE_PANEL]:D,[M.yw.SIMPLE_TABLE]:x,[M.yw.TEXTLINK]:R,[M.yw.UTILITY_PANEL]:P,panels:L},Me=e=>{const t=Fe[e];if("object"!=typeof(n=t)||null===n||!("default"in n))throw new TypeError(`Received unexpected format when loading GraphQL fragment ${e}.`);var n;return t},je=e=>{const t=e.flatMap(e=>{const{dependents:t=[]}=Me(e);return[].concat((0,F.A)(t),[e])}),n=Array.from(new Set(t));return n.length>e.length?je(n):n},Be=(e,t)=>je(e).map(e=>Me(e)).map(e=>e.default(t)).join("\n")},56285:function(e,t,n){n.d(t,{w:function(){return i}});var r=n(90281);const i=r.Ik({title:r.Yj().nullish(),description:r.Yj().nullish(),file:r.Ik({contentType:r.Yj(),fileName:r.Yj(),url:r.Yj(),details:r.Ik({size:r.ai(),image:r.Ik({width:r.ai(),height:r.ai()}).optional()})})})},57309:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(94983),i=n(90281),o=n(74280),a=n(6138);const s=["16x16","24x24","32x32","48x48","64x64","96x96","128x128","176x176"],c=new r.SyncBailHook;c.tap("platform-banner-stack-schema",()=>(()=>{const e=(0,o.k)();return(0,a.A)("bannerStack",{title:i.Yj().nullish(),banners:i.YO(e),supportingData:i.g1(i.Ik({iconSize:i.Ik({value:i.k5(s).default("48x48")})}))})})());const l=()=>c.call()},57785:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onResult:t,resultReturns:n,onDone:r}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,n,r)=>`if(${n} !== undefined) {\n${t(n)}\n} else {\n${r()}}\n`,resultReturns:n,onDone:r})}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){const n=new r(e,t);
131return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},58152:function(e,t,n){n.d(t,{S:function(){return d}});var r=n(94983),i=n(90281),o=n(53744),a=n(80581),s=n(28780),c=n(65282),l=n(6138);const u=new r.SyncBailHook;u.tap("platform-card-schema",()=>(()=>{const e=(0,o.b)(),t=(0,a.c)(),n=(0,s.r)(),r=(0,c.h)();return(0,l.A)("card",{title:i.Yj().nullish(),richText:n.nullish(),actions:i.YO(r).nullish(),graphic:i.KC([e,t]).nullish(),supportingData:i.g1(i.Ik({tag:i.Yj().optional(),variant:i.gM("value",[i.Ik({value:i.eu("checkup"),children:i.Ik({"read-time":i.Ik({value:i.ai()})}).default({"read-time":{value:0}})}),i.Ik({value:i.eu("feature"),children:i.Ik({"content-alignment":i.Ik({value:i.k5(["left","right","center"])}).optional()}).default({"content-alignment":{value:"right"}}).optional()}),i.Ik({value:i.eu("horizontal"),children:i.Ik({"image-alignment":i.Ik({value:i.k5(["left","right"])}).default({value:"right"})}).default({"image-alignment":{value:"right"}})}),i.Ik({value:i.k5(["flash","partner","product","mesh"])})])}).default({variant:{value:"horizontal",children:{"image-alignment":{value:"right"}}}}))})})());const d=()=>u.call()},58507:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onResult:t,resultReturns:n,rethrowIfPossible:r}){return this.callTapsSeries({onError:(t,n)=>e(n),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0]),doneReturns:n,rethrowIfPossible:r})}},a=()=>{throw new Error("tapAsync is not supported on a SyncWaterfallHook")},s=()=>{throw new Error("tapPromise is not supported on a SyncWaterfallHook")},c=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=l,n.tapAsync=a,n.tapPromise=s,n.compile=c,n}l.prototype=null,e.exports=l},59762:function(e,t,n){n.d(t,{Ll:function(){return s},aD:function(){return o},aZ:function(){return r},cE:function(){return c},ou:function(){return i}});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},60334:function(e,t,n){n.d(t,{V:function(){return u}});var r=n(94983),i=n(90281),o=n(80581),a=n(28780),s=n(65282),c=n(6138);const l=new r.SyncBailHook;l.tap("platform-author-panel-schema",()=>(()=>{const e=(0,o.c)(),t=(0,a.r)(),n=(0,s.h)();return(0,c.A)("authorPanel",{authorTitle:i.Yj().nullish(),authorName:i.Yj(),authorBiography:t,authorImage:e.nullish(),authorSocialLinks:i.YO(n).default([])})})());const u=()=>l.call()},61581:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onDone:t,rethrowIfPossible:n}){return this.callTapsLooping({onError:(t,n)=>e(n),onDone:t,rethrowIfPossible:n})}},a=()=>{throw new Error("tapAsync is not supported on a SyncLoopHook")},s=()=>{throw new Error("tapPromise is not supported on a SyncLoopHook")},c=function(e){return o.setup(this,e),o.create(e)};function l(e=[],t=void 0){const n=new r(e,t);return n.constructor=l,n.tapAsync=a,n.tapPromise=s,n.compile=c,n}l.prototype=null,e.exports=l},62421:function(e,t,n){n.d(t,{q:function(){return r}});const r=.5},62539:function(e,t,n){n.d(t,{A:function(){return r}});const r={icon:{icon:"HouseGraphicIcon",contentType:"designIcon",variant:"design",size:"md"},trackingTag:"the-health-hub-homepage",url:"/health-hub",ariaLabel:"The Health-Hub homepage",isRouterLink:!0}
131},65188:function(e,t,n){n.d(t,{Kw:function(){return u},ch:function(){return d}});var r=n(31085),i=n(64301),o=n(25081),a=n(62421);var s=({className:e,level:t="mask",inline:n=!1,children:i,...o})=>{const a=[`fs-${t}`];return e&&a.push(e),n?(0,r.jsx)("span",{className:a.join(" "),...o,"data-mesh-component":"FORM-CONTROL--FULL-STORY-MASK",children:i}):(0,r.jsx)("div",{className:a.join(" "),...o,children:i})};const c=(0,i.default)(({shouldDisplay:e,...t})=>(0,r.jsx)("div",{...t}))` 132 ${(0,o.mt)(2)}; 133 134 max-height: 0; 135 overflow: hidden; 136 transition: max-height 0.5s; 137 138 @media (prefers-reduced-motion: reduce) { 139 .animation { 140 transition: none; 141 } 142 } 143 144 ${({shouldDisplay:e})=>e&&"\n max-height: 80px;\n "}; 145`;c.displayName="Message";const l=(0,i.default)(({type:e,...t})=>(0,r.jsx)("div",{...t}))` 146 color: ${({type:e})=>"error"===e?"var(--themeColorFgError)":"info"===e?"var(--themeColorFgInfo)":"inherit"}; 147 font-size: 0.875rem; 148 line-height: 1.5; 149 font-weight: 700; 150 font-family: var(--themeTypographyCopyFontFamily); 151 152 ${({disabled:e})=>e&&i.css` 153 opacity: ${a.q}; 154 `}; 155`;l.displayName="MessageText";const u=e=>{const{error:t="",valid:n=!1,id:i,disabled:o,...a}=e;return(0,r.jsx)(c,{shouldDisplay:!n,disabled:o,...a,"data-mesh-component":"FORM-CONTROL--ERROR-MESSAGE",children:(0,r.jsx)(l,{type:"error",id:`error-${i}`,"aria-live":"polite",disabled:o,children:t})})};u.displayName="ErrorMessage";const d=e=>{const{info:t="",valid:n,id:i,disabled:o,fullstory:a,...u}=e;return(0,r.jsx)(c,{shouldDisplay:n&&t&&t.length,disabled:o,...u,"data-mesh-component":"FORM-CONTROL--INFO-MESSAGE",children:(0,r.jsx)(l,{type:"info",id:`info-${i}`,"aria-live":"polite",disabled:o,children:(0,r.jsx)(s,{level:a,children:t})})})};d.displayName="InfoMessage"},65282:function(e,t,n){n.d(t,{h:function(){return l}});var r=n(94983),i=n(90281),o=n(53744),a=n(92969),s=n(6138);const c=new r.SyncBailHook;c.tap("platform-text-link-schema",()=>(()=>{const e=(0,o.b)(),t=(0,a.x)();return(0,s.A)("textLink",{text:i.Yj(),title:i.Yj().nullish(),url:i.Yj().nullish(),target:i.k5(["_blank","_self"]).default("_self"),trackingTag:i.Yj().nullish(),trackingTagType:i.k5(["In-Link","Out-Link","Email","Phone","Bread Crumb"]).nullish(),icon:e.nullable(),channels:i.YO(i.Yj()),supportingData:i.g1(i.Ik({color:i.Ik({value:i.k5(["loud","dark","light","destructive"])}).nullish().default({value:"loud"}),variant:i.gM("value",[i.Ik({value:i.eu("app-button"),children:i.Ik({"app-button-type":i.Ik({value:i.k5(["apple-app-store","google-play-store"])})})}),i.Ik({value:i.k5(["button-primary","button-secondary"]),children:i.Ik({buttonColor:i.Ik({value:i.k5(["dark","light"])}).default({value:"dark"}),"script-invocation":i.Ik({value:i.k5(["nibby","nibby-inline","none"])}).default({value:"none"})}).optional()}),i.Ik({value:i.eu("modal"),children:i.Ik({"modal-content":t.nullish()})}),i.Ik({value:i.k5(["text","utility"]).default("text"),children:i.Ik({"script-invocation":i.Ik({value:i.k5(["nibby","nibby-inline","none"])}).default({value:"none"})}).optional()})]),disableWhenReferred:i.Ik({value:i.zM()}).nullish()}))}).refine(e=>{let{url:t,supportingData:n}=e;return Object.values(n).every(e=>{let{variant:n}=e,r="modal"===(null==n?void 0:n.value);var i;return null!=n&&n.children&&"script-invocation"in n.children&&(r=["nibby","nibby-inline"].includes(null===(i=n.children["script-invocation"])||void 0===i?void 0:i.value)),r||"string"==typeof t})})})());const l=()=>c.call()},65587:function(e,t,n){n.d(t,{i:function(){return u}});var r=n(64619),i=n(94983),o=n(90281),a=n(6138);const s="child content connector cannot be the same as parent",c=e=>{if(!Array.isArray(e.childConnectors))return[e.id];const t=e.childConnectors.flatMap(c);return[e.id].concat((0,r.A)(t))},l=new i.SyncBailHook;l.tap("platform-content-connector-schema",()=>(()=>{const e=o.RZ(()=>(0,a.A)("contentConnector",{title:o.Yj().nullish(),slug:o.Yj().nullish(),relatedPage:o.L5(),icon:o.Yj().nullish(),childPages:o.YO(o.L5()).nullish(),childConnectors:o.YO(e).nullish(),channels:o.YO(o.Yj()).min(1),supportingData:o.g1(o.Ik({variant:o.Ik({value:o.k5(["default","series"])})})).optional()}));return e.refine(e=>!c(e).includes(e.id),s),e})());const u=()=>l.call()},67714:function(e,t,n){n.d(t,{OC:function(){return i},yo:function(){return a}});var r=n(25881);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var a;const t=e[s],c=o(t);c!==t.length&&(r=null!==(a=r)&&void 0!==a?a:s,i=s,0!==s&&c<n&&(n=c))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function o(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}function a(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.i0)(e.charCodeAt(0))),s=n.endsWith('\\"""'),c=e.endsWith('"')&&!s,l=e.endsWith("\\"),u=c||l,d=!(null!=t&&t.minimize)&&(!o||e.length>70||u||a||s);let h="";const p=o&&(0,r.i0)(e.charCodeAt(0));return(d&&!p||a)&&(h+="\n"),h+=n,(d||u)&&(h+="\n"),'"""'+h+'"""'}},68639:function(e,t,n){n.d(t,{u:function(){return m}});var r=n(69011),i=n.n(r),o=n(29966),a=n(4731),s=n(18139),c=n(20958),l=n(94392),u=n(27770);let d;const h=(e,t,n)=>{if(e&&e[t]&&e[t][n])return e[t][n]},p=(e,t)=>{var n;const r=null===(n=(e=>null==e?void 0:e.filter(e=>{var t;return"series"===(null===(t=e.supportingData["gu-health"])||void 0===t?void 0:t.variant.value)}))(e))||void 0===n?void 0:n.find(e=>{var n;return null===(n=e.childPages)||void 0===n?void 0:n.some(e=>e.slug===t)});return r},f=(e,t)=>{const n=p(e,t);return d=n&&n.title,d},y=(e,t)=>{const n=p(e,t),r=n&&n.childPages;return r&&r.map(e=>null==e?void 0:e.slug)},v=i()(async(e,t)=>{var n;let{slug:r}=t;r.startsWith(`${u.or}/`)||(r=(0,l.L)(u.or,r));const i=e.channel,c=h(t.supportingData,i,"published-date"),d=parseInt(h(t.supportingData,i,"read-time")||"0"),p=h(t.supportingData,i,"author-prefix"),v=h(t.supportingData,i,"is-featured"),m=!(!t.supportingData||!v)&&!!v.value,g=await(0,o.u)(e)(t),b=e.allContentConnectors;let E,_;const T=null==b?void 0:b.filter(e=>{var t;return"series"!==(null===(t=e.supportingData[i])||void 0===t?void 0:t.variant.value)}),O=(0,s.s)(a.yw.CONTENT_CONNECTOR,e);for(const o of null!=T?T:[])for(const e of null!==(I=o.childPages)&&void 0!==I?I:[]){var I;if(e.id===t.id){E=await O({...o,childPages:[]});break}}for(const o of null!=T?T:[])for(const e of null!==(w=o.childConnectors)&&void 0!==w?w:[]){var w;if(E&&e.id===E.id){_=await O({...o,childPages:[]});break}}return{...g,channelSpecificData:{publishedDate:c,readTime:d,authorPrefix:p,isFeatured:m,category:{..._||E,childPages:[]},subCategory:{..._?E:void 0,childPages:[]},seriesArticlesSlugs:null===(n=y(e.allContentConnectors,t.slug))||void 0===n?void 0:n.map(t=>(0,l.L)(e.pathPrefix,t)),seriesTitle:f(e.allContentConnectors,t.slug),ignoreTaggingVariants:["article-list"]}}},(e,t)=>e.isPreview&&t.content.content?Math.random().toString():t.id+(t.content&&t.content.content&&t.content.content.length?"with-content":"without-content")+(0,c.Z)(e)+(0,c.Z)(t)),m=e=>async t=>await v(e,t)},69345:function(e,t,n){var r=n(31085),i=n(14041),o=n(64301),a=n(95568),s=n(71809),c=n(80157),l=n(48728),u=n(26632),d=n(47812),h=n(65188),p=n(48681),f=n(41019);const y=(0,o.default)(a.V)` 156 font-size: 0; 157`;t.A=({children:e,className:t=f.A.className,disabled:n=f.A.disabled,error:o=f.A.error,info:v,help:m=f.A.help,id:g=f.A.id,label:b,name:E=f.A.name,valid:_=f.A.valid,val
157idated:T=f.A.validated,isCompact:O=f.A.isCompact,formControlType:I,formType:w,width:S,isEmptyAndOptional:C=f.A.isEmptyAndOptional,isFullWidthSelect:k=!1,fullstory:A=f.A.fullstory,blur:N,change:D,filter:x,focus:R,initialise:P,validate:L,active:F,filtered:M,filtering:j,initialised:B,validating:V,lastValidValue:U,...$})=>{const q=e&&"Select"===e.type.displayName,K=e&&"FileUploadComponent"===e.type.displayName,Q=[`fs-${A}`];return e&&e.props.className&&Q.push(e.props.className),(0,r.jsxs)("div",{className:t,"data-mesh-component":"FORM-CONTROL",children:[(0,r.jsx)(l.A,{htmlFor:g,isCompact:O,disabled:n,children:I?(0,r.jsx)(u.A,{label:b,formControlType:I}):b}),m?(0,i.isValidElement)(m)?(0,r.jsx)("div",{id:`help-${g}`,children:m}):(0,r.jsx)(c.A,{id:`help-${g}`,disabled:n,children:m}):null,(0,r.jsxs)(p.A,{isSelectInput:q,width:S,isCompact:O,isFullWidthSelect:k,children:[e&&(0,i.cloneElement)(e,{...$,className:Q.join(" "),name:E,disabled:n,valid:_,validated:T,id:g,"aria-describedby":`help-${g} error-${g}`,"aria-invalid":T&&!_,"aria-required":"required"===I||"required"===w&&!I,isCompact:e.props.isCompact||O}),!K&&(T&&!_||T&&!C)&&(0,r.jsx)(d.A,{valid:_,outside:q,isCompact:O,disabled:n})]}),K&&T&&o&&(0,r.jsxs)(s.e,{verticalAlign:"center",children:[(0,r.jsx)(y,{width:"content",children:T&&!_&&(0,r.jsx)(d.A,{valid:_,disabled:n,outside:!0,isFieldset:!0,isCompact:O})}),(0,r.jsx)(a.V,{children:T&&o&&(0,r.jsx)(h.Kw,{valid:_,disabled:n,id:`${g}`,error:o})})]}),!K&&T&&o&&(0,r.jsx)(h.Kw,{valid:_,id:`${g}`,error:o,disabled:n}),T&&v&&(0,r.jsx)(h.ch,{valid:_,id:`${g}`,info:v,disabled:n,fullstory:A})]})}},71373:function(e,t,n){n.d(t,{IT:function(){return c},UG:function(){return p}});var r=n(77029),i=n(18139),o=n(4731),a=n(35224),s=n(34497);const c=e=>async t=>{const n=(0,r.q)(e.baseurl,t.slug),c=(0,i.s)(o.yw.SEO,{...e,selfCanonical:n}),l=await c(t.seo),u=await(0,a.I)(e)(t),d=(0,s.D)({...e,tagContext:"content-page",variant:"hero",heroVillainSizes:e.heroVillainSizes,channel:e.channel,firstPanel:t.panels[0]}),h=(0,s.D)({...e,tagContext:"content-page",variant:"villain",heroVillainSizes:e.heroVillainSizes,channel:e.channel});return{...u,seo:l,hero:await d(t.hero),villain:await h(t.villain)}};var l=n(27770),u=n(68639),d=n(8404);const h={channel:l.s$,heroVillainSizes:o.XR,containerSizes:o.Dt,pathPrefix:l.DG,allContentConnectors:[],metaTitleSuffix:"GU Health Insurance"},p=e=>{return{...h,...e,overrideMap:{article:(0,u.u)({...h,...e}),heroVillain:(0,s.D)({...h,...e}),textLink:(t={...h,...e},async e=>{const n=(0,d.n)(t);return{...await n(e),url:e.url}})}};var t};n(44276)},73385:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onResult:t,onDone:n}){return this.callTapsSeries({onError:(t,n,r,i)=>e(n)+i(!0),onResult:(e,t,n)=>{let r="";return r+=`if(${t} !== undefined) {\n`,r+=`${this._args[0]} = ${t};\n`,r+="}\n",r+=n(),r},onDone:()=>t(this._args[0])})}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){if(e.length<1)throw new Error("Waterfall hooks must have at least one argument");const n=new r(e,t);return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},74280:function(e,t,n){n.d(t,{k:function(){return d}});var r=n(94983),i=n(90281),o=n(53744),a=n(29963),s=n(28780),c=n(6138);const l=["16x16","24x24","32x32","48x48","64x64","96x96","128x128","176x176"],u=new r.SyncBailHook;u.tap("platform-banner-schema",()=>(()=>{const e=(0,o.b)(),t=(0,a.Wp)(),n=(0,s.r)();return(0,c.A)("banner",{title:i.Yj().nullish(),content:n,icons:i.YO(i.gM("contentType",[e,t])).max(2),supportingData:i.g1(i.Ik({iconSize:i.Ik({value:i.Yj().refine(e=>l.includes(e)).default("48x48")})}))})})());const d=()=>u.call()},76975:function(e,t,n){n.d(t,{Q:function(){return l}});var r=n(94983),i=n(90281),o=n(28780),a=n(65282),s=n(6138);const c=new r.SyncBailHook;c.tap("platform-utility-panel-schema",()=>(()=>{const e=(0,o.r)(),t=(0,a.h)();return(0,s.A)("utilityPanel",{title:i.Yj().nullish(),description:e.nullish(),actions:i.YO(t).min(1).refine(e=>e.every(e=>Object.values(e.supportingData).every(e=>{let{variant:t}=e;return"utility"===t.value}))),supportingData:i.g1(i.Ik({alignment:i.Ik({value:i.k5(["horizontal","vertical"])}).default({value:"horizontal"})}))})})());const l=()=>c.call()},78325:function(e,t,n){n.d(t,{S:function(){return u}});var r=n(94983),i=n(90281),o=n(28780),a=n(6138);const s=i.Ik({title:i.Yj()}),c=i.Ik({columns:i.YO(s),data:i.YO(i.g1(i.L5())).min(1)}),l=new r.SyncBailHook;l.tap("platform-simple-table-schema",()=>(()=>{const e=(0,o.r)();return(0,a.A)("simpleTable",{title:i.Yj().nullish(),tableContent:e.nullish(),table:c,tableCaption:e.nullish(),columnDisplay:i.k5(["Even","Uneven"]).nullish(),alternateRows:i.zM().nullish(),tableDisplayPreferences:i.YO(i.k5(["FixedHeader","FixedColumn"])).nullish()})})());const u=()=>l.call()},78800:function(e,t,n){var r=n(31085),i=n(64301),o=n(25081),a=n(74118),s=n(26597),c=n(70121);const l=(0,i.default)(({isCompact:e,inline:t,...n})=>(0,r.jsx)("div",{...n}))` 158 position: relative; 159`;l.displayName="ToggleInputWrapper";const u=(0,i.default)(({type:e,hideInput:t,isCompact:n,boldLabel:i,formMode:o,...a}
159)=>(0,r.jsx)("label",{...a}))` 160 ${(0,a.p)({xs:2,mini:4})}; 161 display: flex; 162 flex-wrap: wrap; 163 gap: ${e=>e.isCompact?"var(--commonDimensionSpacing2, 0.5rem)":"var(--commonDimensionSpacing3, 0.75rem)"}; 164 align-items: center; 165 position: relative; 166 text-align: start; 167 ${(0,s.C9)("mini")` 168 flex-wrap: nowrap; 169 `} 170 ${(0,s.C9)("sm")` 171 display: inline-flex; 172 `} 173 background-color: var(--inputColorBg); 174 font-family: var(--themeTypographyCopyFontFamily); 175 font-weight: ${({boldLabel:e})=>e?700:400}; 176 line-height: 1.5; 177 word-break: break-word; 178 hyphens: auto; 179 color: var(--themeColorFg); 180 box-shadow: inset 0 0 0 2px var(--themeColorBorderGentle); 181 cursor: pointer; 182 transition: background-color 0.2s; 183 184 ${(0,s.C9)("mini")` 185 hyphens: none; 186 `} 187 188 ${({disabled:e})=>e&&i.css` 189 opacity: ${.5}; 190 cursor: ${"not-allowed"}; 191 `}; 192 193 ${({isCompact:e})=>e&&i.css` 194 &&& { 195 ${(0,a.p)(2)}; 196 font-size: 0.875rem; 197 } 198 `}; 199 200 ${({selected:e})=>e&&i.css` 201 box-shadow: inset 0 0 0 2px var(--themeColorBorderSelected); 202 `}; 203 204 ${({selected:e,hideInput:t})=>e&&t&&i.css` 205 color: var(--themeColorFgSelected); 206 background-color: var(--inputColorBg); 207 `}; 208 209 ${({disabled:e})=>!e&&i.css` 210 &:hover { 211 background-color: var(--themeColorBgHover); 212 } 213 `}; 214`;u.displayName="ToggleInputLabel";const d=(0,i.default)(({valid:e,validated:t,isCompact:n,isEmptyAndOptional:i,...o})=>(0,r.jsx)("input",{...o}))` 215 ${(0,o.m)(0)}; 216 position: absolute; 217 inset-block-start: 0; 218 inset-inline-start: 0; 219 cursor: pointer; 220 221 /* a11y hidden input */ 222 height: 1px; 223 width: 1px; 224 overflow: hidden; 225 clip: rect(1px 1px 1px 1px); 226 clip: rect(1px, 1px, 1px, 1px); 227 white-space: nowrap; 228 229 &:focus-visible + ${u} { 230 ${c._}; 231 position: relative; 232 z-index: 1; 233 } 234`;d.displayName="ToggleInputInput";const h=i.default.span` 235 display: block; 236 font-weight: 400; 237`,p=(0,i.default)(({isCompact:e,type:t,selected:n,...i})=>(0,r.jsx)("div",{...i}))` 238 flex-shrink: 0; 239 display: grid; 240 place-content: center; 241 242 > * { 243 grid-area: 1 / 1; 244 } 245 246 --indicator-size: 2rem; 247 --indicator-radius: 2px; 248 --indicator-color: var(--inputColorBorder); 249 250 ${({isCompact:e})=>e&&"\n --indicator-size: 1.5rem;\n "}; 251 width: var(--indicator-size); 252 height: var(--indicator-size); 253 box-shadow: inset 0 0 0 2px var(--indicator-color); 254 255 ${({selected:e})=>e&&"--indicator-color: var(--themeColorBorderSelected);"}; 256 /* Type prop based */ 257 ${({type:e})=>"radio"===e&&"--indicator-radius: 50%;\n "}; 258 border-radius: var(--indicator-radius); 259`,f=(0,i.default)(({isCompact:e,...t})=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"18",fill:"none",viewBox:"0 0 24 18",...t,"data-testid":"tick-icon",children:(0,r.jsx)("path",{d:"M22.32.313a.955.955 0 0 1 1.375-.04c.39.38.408 1.012.04 1.413l-14.704 16A.962.962 0 0 1 8.34 18a.96.96 0 0 1-.702-.29l-7.35-7.5a1.02 1.02 0 0 1-.006-1.414.955.955 0 0 1 1.376-.006l6.644 6.777L22.32.313Z"})}))` 260 box-sizing: border-box; 261 background-color: transparent; 262 color: var(--themeColorFgSelected); 263 width: ${({isCompact:e})=>e?"1.125rem":"1.5rem"}; 264 265 path { 266 fill: currentColor; 267 } 268`,y=(0,i.default)(({isCompact:e,type:t,...n})=>(0,r.jsx)("div",{...n}))` 269 --dot-size: 1rem; 270 background-color: var(--themeColorFgSelected); 271 ${({isCompact:e})=>e&&"\n --dot-size: 0.75rem;\n "}; 272 border-radius: 50%; 273 width: var(--dot-size); 274 height: var(--dot-size); 275`,v=(0,i.default)(({isCompact:e,type:t,...n})=>(0,r.jsx)("div",{...n}))` 276 background-color: var(--themeColorFgSelected); 277 border-radius: var(--themeDimensionBorderRadiusSmall, 2px); 278 width: 1rem; 279 height: 0.125rem; 280`,m=e=>{const{type:t,id:n,label:i,subtitle:o,selected:a,indeterminate:s,disabled:c,className:m,formMode:g,inline:b=!0,isCompact:E,hideInput:_=!1,boldLabel:T,formType:O,fullstory:I,formfieldtype:w,...S}=e;return(0,r.jsxs)(l,{inline:b,isCompact:E,"data-mesh-component":"TOGGLE-INPUT",children:[(0,r.jsx)(d,{onChange:()=>{},...S,id:n,type:t,checked:a,disabled:c,isCompact:E}),(0,r.jsxs)(u,{htmlFor:n,disabled:c,selected:a,type:t,className:m,formMode:g,isCompact:E,hideInput:_,boldLabel:T||!!o,children:[!_&&(0,r.jsxs)(p,{isCompact:E,type:t,selected:a,children:["checkbox"===t&&a&&(0,r.jsx)(f,{isCompact:E}
280),"checkbox"===t&&s&&!a&&(0,r.jsx)(v,{isCompact:E,"data-testid":"indeterminate"}),"radio"===t&&a&&(0,r.jsx)(y,{isCompact:E})]}),(0,r.jsxs)("div",{children:[i,o&&(0,r.jsx)(h,{children:o})]})]})]})};m.displayName="ToggleInput",m.Input=d,m.Label=u,m.Wrapper=l,t.A=m},79011:function(e){e.exports=class{constructor(e){this.config=e,this.options=void 0,this._args=void 0}create(e){let t;switch(this.init(e),this.options.type){case"sync":t=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`throw ${e};\n`,onResult:e=>`return ${e};\n`,resultReturns:!0,onDone:()=>"",rethrowIfPossible:!0}));break;case"async":t=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:e=>`_callback(${e});\n`,onResult:e=>`_callback(null, ${e});\n`,onDone:()=>"_callback();\n"}));break;case"promise":let e=!1;const n=this.contentWithInterceptors({onError:t=>(e=!0,`_error(${t});\n`),onResult:e=>`_resolve(${e});\n`,onDone:()=>"_resolve();\n"});let r="";r+='"use strict";\n',r+=this.header(),r+="return new Promise((function(_resolve, _reject) {\n",e&&(r+="var _sync = true;\n",r+="function _error(_err) {\n",r+="if(_sync)\n",r+="_resolve(Promise.resolve().then((function() { throw _err; })));\n",r+="else\n",r+="_reject(_err);\n",r+="};\n"),r+=n,e&&(r+="_sync = false;\n"),r+="}));\n",t=new Function(this.args(),r)}return this.deinit(),t}setup(e,t){e._x=t.taps.map(e=>e.fn)}init(e){this.options=e,this._args=e.args.slice()}deinit(){this.options=void 0,this._args=void 0}contentWithInterceptors(e){if(this.options.interceptors.length>0){const t=e.onError,n=e.onResult,r=e.onDone;let i="";for(let e=0;e<this.options.interceptors.length;e++){const t=this.options.interceptors[e];t.call&&(i+=`${this.getInterceptor(e)}.call(${this.args({before:t.context?"_context":void 0})});\n`)}return i+=this.content(Object.assign(e,{onError:t&&(e=>{let n="";for(let t=0;t<this.options.interceptors.length;t++){this.options.interceptors[t].error&&(n+=`${this.getInterceptor(t)}.error(${e});\n`)}return n+=t(e),n}),onResult:n&&(e=>{let t="";for(let n=0;n<this.options.interceptors.length;n++){this.options.interceptors[n].result&&(t+=`${this.getInterceptor(n)}.result(${e});\n`)}return t+=n(e),t}),onDone:r&&(()=>{let e="";for(let t=0;t<this.options.interceptors.length;t++){this.options.interceptors[t].done&&(e+=`${this.getInterceptor(t)}.done();\n`)}return e+=r(),e})})),i}return this.content(e)}header(){let e="";return this.needContext()?e+="var _context = {};\n":e+="var _context;\n",e+="var _x = this._x;\n",this.options.interceptors.length>0&&(e+="var _taps = this.taps;\n",e+="var _interceptors = this.interceptors;\n"),e}needContext(){for(const e of this.options.taps)if(e.context)return!0;return!1}callTap(e,{onError:t,onResult:n,onDone:r,rethrowIfPossible:i}){let o="",a=!1;for(let c=0;c<this.options.interceptors.length;c++){const t=this.options.interceptors[c];t.tap&&(a||(o+=`var _tap${e} = ${this.getTap(e)};\n`,a=!0),o+=`${this.getInterceptor(c)}.tap(${t.context?"_context, ":""}_tap${e});\n`)}o+=`var _fn${e} = ${this.getTapFn(e)};\n`;const s=this.options.taps[e];switch(s.type){case"sync":i||(o+=`var _hasError${e} = false;\n`,o+="try {\n"),o+=n?`var _result${e} = _fn${e}(${this.args({before:s.context?"_context":void 0})});\n`:`_fn${e}(${this.args({before:s.context?"_context":void 0})});\n`,i||(o+="} catch(_err) {\n",o+=`_hasError${e} = true;\n`,o+=t("_err"),o+="}\n",o+=`if(!_hasError${e}) {\n`),n&&(o+=n(`_result${e}`)),r&&(o+=r()),i||(o+="}\n");break;case"async":let a="";a+=n?`(function(_err${e}, _result${e}) {\n`:`(function(_err${e}) {\n`,a+=`if(_err${e}) {\n`,a+=t(`_err${e}`),a+="} else {\n",n&&(a+=n(`_result${e}`)),r&&(a+=r()),a+="}\n",a+="})",o+=`_fn${e}(${this.args({before:s.context?"_context":void 0,after:a})});\n`;break;case"promise":o+=`var _hasResult${e} = false;\n`,o+=`var _promise${e} = _fn${e}(${this.args({before:s.context?"_context":void 0})});\n`,o+=`if (!_promise${e} || !_promise${e}.then)\n`,o+=` throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise${e} + ')');\n`,o+=`_promise${e}.then((function(_result${e}) {\n`,o+=`_hasResult${e} = true;\n`,n&&(o+=n(`_result${e}`)),r&&(o+=r()),o+=`}), function(_err${e}) {\n`,o+=`if(_hasResult${e}) throw _err${e};\n`,o+=t(`_err${e}`),o+="});\n"}return o}callTapsSeries({onError:e,onResult:t,resultReturns:n,onDone:r,doneReturns:i,rethrowIfPossible:o}){if(0===this.options.taps.length)return r();const a=this.options.taps.findIndex(e=>"sync"!==e.type),s=n||i;let c="",l=r,u=0;for(let d=this.options.taps.length-1;d>=0;d--){const n=d;l!==r&&("sync"!==this.options.taps[n].type||u++>
28020)&&(u=0,c+=`function _next${n}() {\n`,c+=l(),c+="}\n",l=()=>`${s?"return ":""}_next${n}();\n`);const i=l,h=e=>e?"":r(),p=this.callTap(n,{onError:t=>e(n,t,i,h),onResult:t&&(e=>t(n,e,i,h)),onDone:!t&&i,rethrowIfPossible:o&&(a<0||n<a)});l=()=>p}return c+=l(),c}callTapsLooping({onError:e,onDone:t,rethrowIfPossible:n}){if(0===this.options.taps.length)return t();const r=this.options.taps.every(e=>"sync"===e.type);let i="";r||(i+="var _looper = (function() {\n",i+="var _loopAsync = false;\n"),i+="var _loop;\n",i+="do {\n",i+="_loop = false;\n";for(let o=0;o<this.options.interceptors.length;o++){const e=this.options.interceptors[o];e.loop&&(i+=`${this.getInterceptor(o)}.loop(${this.args({before:e.context?"_context":void 0})});\n`)}return i+=this.callTapsSeries({onError:e,onResult:(e,t,n,i)=>{let o="";return o+=`if(${t} !== undefined) {\n`,o+="_loop = true;\n",r||(o+="if(_loopAsync) _looper();\n"),o+=i(!0),o+="} else {\n",o+=n(),o+="}\n",o},onDone:t&&(()=>{let e="";return e+="if(!_loop) {\n",e+=t(),e+="}\n",e}),rethrowIfPossible:n&&r}),i+="} while(_loop);\n",r||(i+="_loopAsync = true;\n",i+="});\n",i+="_looper();\n"),i}callTapsParallel({onError:e,onResult:t,onDone:n,rethrowIfPossible:r,onTap:i=(e,t)=>t()}){if(this.options.taps.length<=1)return this.callTapsSeries({onError:e,onResult:t,onDone:n,rethrowIfPossible:r});let o="";o+="do {\n",o+=`var _counter = ${this.options.taps.length};\n`,n&&(o+="var _done = (function() {\n",o+=n(),o+="});\n");for(let a=0;a<this.options.taps.length;a++){const s=()=>n?"if(--_counter === 0) _done();\n":"--_counter;",c=e=>e||!n?"_counter = 0;\n":"_counter = 0;\n_done();\n";o+="if(_counter <= 0) break;\n",o+=i(a,()=>this.callTap(a,{onError:t=>{let n="";return n+="if(_counter > 0) {\n",n+=e(a,t,s,c),n+="}\n",n},onResult:t&&(e=>{let n="";return n+="if(_counter > 0) {\n",n+=t(a,e,s,c),n+="}\n",n}),onDone:!t&&(()=>s()),rethrowIfPossible:r}),s,c)}return o+="} while(false);\n",o}args({before:e,after:t}={}){let n=this._args;return e&&(n=[e].concat(n)),t&&(n=n.concat(t)),0===n.length?"":n.join(", ")}getTapFn(e){return`_x[${e}]`}getTap(e){return`_taps[${e}]`}getInterceptor(e){return`_interceptors[${e}]`}}},79061:function(e,t,n){n.d(t,{nt:function(){return o}});var r=n(29195),i=n(55301);const o=()=>{const e=(0,i.K)(["generalOptions"]);return r.J1` 281 ${e} 282 query ($channels: [String!], $preview: Boolean = true) { 283 generalOptions(channels: $channels, preview: $preview) { 284 ...GeneralOptions 285 } 286 } 287 `}},79916:function(e,t,n){n.d(t,{J:function(){return c}});var r=n(94983),i=n(90281),o=n(28780),a=n(6138);const s=new r.SyncBailHook;s.tap("platform-page-banner-schema",()=>(()=>{const e=(0,o.r)();return(0,a.A)("pageBanner",{content:e,supportingData:i.g1(i.Ik({type:i.Ik({value:i.k5(["warning","info"])}),variation:i.Ik({value:i.k5(["loud","soft"])})}))})})());const c=()=>s.call()},80148:function(e,t,n){n.d(t,{D8:function(){return f},Fy:function(){return v},Mc:function(){return p}});var r=n(94983),i=n(90281),o=n(65587),a=n(53744),s=n(29963),c=n(28780),l=n(56285),u=n(6138),d=n(54589);const h=["condensed","combination","full"],p=e=>h.includes(e),f={ASSET_REQUIRED:"Image asset is required for selected variant for entry: ",HERO_VARIANT_REQUIRED:"A Variant value inside supportingData is required for entry:"},y=new r.SyncBailHook;y.tap("platform-hero-villain-schema",()=>(()=>{const e=(0,o.i)(),t=(0,a.b)(),n=(0,s.Wp)(),r=(0,c.r)();return(0,u.A)("heroVillain",{title:i.Yj().nullish(),content:r.nullish(),image:i.Ik({fields:l.w}).nullish(),focus:d.E.nullable().default("center"),fit:d.$.nullable().default("fill"),quality:i.ai().nullable().default(80),imageCaption:i.Yj().max(500).nullish(),supportingData:i.g1(i.Ik({altText:i.Yj().nullish(),icon:i.gM("contentType",[t,n]).nullish(),variant:i.gM("value",[i.Ik({value:i.eu("stacked"),children:i.Ik({contentAlignment:i.Ik({value:i.k5(["left","center"]).default("left")})}).default({contentAlignment:{value:"left"}})}),i.Ik({value:i.eu("tcu-category"),children:i.Ik({contentConnector:e}).nullish()}),i.Ik({value:i.k5([].concat(h,["text","author"]))})]).catch({value:"full"})})).nullish()})})());const v=()=>y.call()},80157:function(e,t,n){var r=n(64301),i=n(25081),o=n(20492),a=n(62421);const s=(0,r.default)(o.Ay).attrs({component:"div","data-mesh-component":"FORM-CONTROL--HELP"})` 288 ${(0,i.mt)(1)}; 289 color: var(--themeColorFgMuted); 290 font-family: var(--themeTypographyCopyFontFamily); 291 font-size: var(--themeTypographyCopyFontSize); 292 font-weight: var(--themeTypographyCopyFontWeight); 293 line-height: var(--themeTypographyCopyLineHeight); 294 letter-spacing: var(--themeTypographyCopyLetterSpacing); 295 296 ${({disabled:e})=>e&&r.css` 297 opacity: ${a.q}; 298 `}; 299`;s.displayName="Help",t.A=s},80581:function(e,t,n){n.d(t,{c:function(){return d}});var r=n(94983),i=n(90281),o=n(28780),a=n(65282),s=n(56285),c=n(6138),l=n(54589);const u=new r.SyncBailHook;u.tap("platform-picture-panel-schema",()=>(()=>{const e=(0,o.r)(),t=(0,a.h)();return(0,c.A)("picturePanel",{title:i.Yj().nullish(),description:e.nullish(),caption:i.Yj().nullish(),source:t.nullish(),altText:i.Yj(),focus:l.E.nullable().default("
299center"),fit:l.$.nullable().default("fill"),quality:i.ai().nullable().default(80),image:i.Ik({fields:s.w})})})());const d=()=>u.call()},83742:function(e,t,n){n.d(t,{A:function(){return v}});var r=n(94983),i=n(90281),o=n(60334),a=n(90089),s=n(53744),c=n(22790),l=n(79916),u=n(80581),d=n(28780),h=n(92969),p=n(49677),f=n(6138);const y=new r.SyncBailHook;y.tap("platform-article-schema",()=>(()=>{const e=(0,o.V)(),t=(0,a.B)(),n=(0,s.b)(),r=(0,c.G)(),y=(0,u.c)(),v=(0,h.x)(),m=(0,d.r)(),g=(0,p.P)(),b=(0,l.J)(),E=i.Ik({tag:i.Yj().nullish(),note:i.Yj().nullish(),label:i.Ik({value:i.k5(["None","Insight"])}).nullish(),"sidebar-cta":t.nullish(),"hero-icon":n.nullish(),"nibby-chatbot-launcher-status":i.gM("value",[i.Ik({value:i.eu("disable")}),i.Ik({value:i.eu("enable"),children:i.Ik({"visa-status":i.Ik({value:i.k5(["student","worker","resident","none"])}),"member-status":i.Ik({value:i.k5(["current","former","potential","none"])})})})]).catch({value:"disable"}).nullish()}),_=i.Ik({"author-prefix":i.Yj().nullish(),"is-featured":i.Ik({value:i.zM().nullish()}).nullish(),"published-date":i.Yj().regex(/\d\d\d\d-\d\d-\d\d.*/).nullish(),"read-time":i.ai().nullish(),"page-banner":i.gM("value",[i.Ik({value:i.k5(["use-general-options","use-none"])}),i.Ik({value:i.eu("override"),children:b})]).catch({value:"use-general-options"})});return(0,f.A)("article",{title:i.Yj().nullish(),slug:i.Yj(),seo:g,hero:i.KC([r,y]).nullish(),content:m,author:e.nullish(),shortDescription:v.nullish(),showHeaderPhoneNumber:i.zM().default(!1).nullish(),showSmallFooterPhoneNumber:i.zM().default(!0).nullish(),qualtricsSurvey:i.k5(["none","embedded","feedback-tab"]).nullish().default("none"),channels:i.YO(i.Yj()).min(1),supportingData:i.KC([i.g1(_),i.g1(E)])})})());const v=()=>y.call()},85608:function(e,t,n){n.d(t,{C6:function(){return i},Cl:function(){return o},Tt:function(){return a},YH:function(){return c},fX:function(){return l},sH:function(){return s}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function s(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,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(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(c){s=[6,c],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},87041:function(e,t,n){n(14176);
299class r{constructor(e,t=void 0){this.hooks=e,this.name=t}tap(e,t){for(const n of this.hooks)n.tap(e,t)}tapAsync(e,t){for(const n of this.hooks)n.tapAsync(e,t)}tapPromise(e,t){for(const n of this.hooks)n.tapPromise(e,t)}isUsed(){for(const e of this.hooks)if(e.isUsed())return!0;return!1}intercept(e){for(const t of this.hooks)t.intercept(e)}withOptions(e){return new r(this.hooks.map(t=>t.withOptions(e)),this.name)}}e.exports=r},87239:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onDone:t}){return this.callTapsParallel({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){const n=new r(e,t);return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},87419:function(e,t,n){const r=n(14176),i=n(79011);const o=new class extends i{content({onError:e,onDone:t}){return this.callTapsLooping({onError:(t,n,r,i)=>e(n)+i(!0),onDone:t})}},a=function(e){return o.setup(this,e),o.create(e)};function s(e=[],t=void 0){const n=new r(e,t);return n.constructor=s,n.compile=a,n._call=void 0,n.call=void 0,n}s.prototype=null,e.exports=s},90089:function(e,t,n){n.d(t,{B:function(){return d}});var r=n(94983),i=n(90281),o=n(53744),a=n(80581),s=n(28780),c=n(65282),l=n(6138);const u=new r.SyncBailHook;u.tap("platform-call-to-action-schema",()=>(()=>{const e=(0,o.b)(),t=(0,a.c)(),n=(0,s.r)(),r=(0,c.h)();return(0,l.A)("callToAction",{title:i.Yj().nullish(),description:n.nullish(),action:r.nullish(),secondaryAction:r.nullish(),richText:n.nullish(),ctaMedia:i.KC([e,t]).nullish(),supportingData:i.g1(i.Ik({variant:i.Ik({value:i.k5(["article","banner","basic","offers","sidebar","basic-center"]).default("basic"),children:i.Ik({tag:i.Yj().nullish(),disclaimer:n.nullish()}).optional()}),disableWhenReferred:i.Ik({value:i.zM()}).optional()}))})})());const d=()=>u.call()},90332:function(e,t,n){n.d(t,{oh:function(){return u}});var r=n(94983),i=n(90281),o=n(28780),a=n(6138);const s=new r.SyncBailHook;s.tap("platform-accordion-item-schema",()=>(()=>{const e=(0,o.r)();return(0,a.A)("accordionItem",{title:i.Yj(),subtitle:i.Yj().nullish(),content:e})})());const c=()=>{const e=s.call(),t=(0,o.r)();return(0,a.A)("accordionPanel",{title:i.Yj().nullish(),description:t.nullish(),items:i.YO(e).min(1)})},l=new r.SyncBailHook;l.tap("platform-accordion-panel-schema",()=>c());const u=()=>l.call()},91334:function(e,t,n){n.d(t,{c:function(){return b}});var r=n(94983),i=n(90281),o=n(83742),a=n(65587),s=n(53744),c=n(65282),l=n(6138);const u=["blockquote","embedded-asset-block","embedded-entry-block","heading-1","heading-2","heading-3","heading-4","heading-5","heading-6","hr","list-item","ordered-list","paragraph","unordered-list"],d=i.Ik({type:i.Yj()}),h=i.Ik({nodeType:i.eu("text"),value:i.Yj(),marks:i.YO(d),data:i.g1(i.bz())}),p=i.RZ(()=>i.Ik({nodeType:i.k5(["asset-hyperlink","embedded-entry-inline","entry-hyperlink","hyperlink"]),content:i.YO(i.KC([p,h])),data:i.g1(i.bz())})),f=i.RZ(()=>i.Ik({nodeType:i.k5(["document"].concat(u)),content:i.YO(i.KC([f,p,h])),data:i.g1(i.L5())})),y=i.RZ(()=>i.Ik({nodeType:i.k5(u),content:i.YO(i.KC([f,p,h])),data:i.g1(i.L5())})),v=i.Ik({nodeType:i.eu("document"),content:i.YO(y),data:i.g1(i.L5())}),m=["sort-by-published-date","sort-by-published-date-and-feature-priority"],g=new r.SyncBailHook;g.tap("platform-related-article-panel-schema",()=>(()=>{const e=(0,o.A)(),t=(0,a.i)(),n=(0,s.b)(),r=(0,c.h)();return(0,l.A)("relatedArticlesPanel",{title:i.Yj().nullish(),description:v.nullish(),action:r.nullish(),relatedArticles:i.YO(i.KC([e,t])),channels:i.YO(i.Yj()).min(1),supportingData:i.g1(i.Ik({variant:i.gM("value",[i.Ik({value:i.eu("series")}),i.Ik({value:i.eu("home-category-list"),children:i.Ik({icon:n.nullish(),algorithm:i.Ik({value:i.k5(m)})})}),i.Ik({value:i.k5(["recommended-articles","inline","slider","article-list"]),children:i.Ik({algorithm:i.Ik({value:i.k5(m)})})})]),"source-of-cross-channel-content":i.Ik({value:i.Yj()}).nullish()}))})})());const b=()=>g.call()},92969:function(e,t,n){n.d(t,{x:function(){return l}});var r=n(94983),i=n(90281),o=n(28780),a=n(6138);const s=["Default","ChevronRightSystemIcon"],c=new r.SyncBailHook;c.tap("platform-rich-text-panel-schema",()=>(()=>{const e=(0,o.r)();return(0,a.A)("richTextPanel",{content:e.nullish(),title:i.Yj().nullish(),supportingData:i.g1(i.Ik({variant:i.gM("value",[i.Ik({value:i.k5(["default","centered","disclaimer","superscript"]),children:i.Ik({bulletStyling:i.Ik({value:i.k5(s)}).nullish()}).optional()}),i.Ik({value:i.eu("api"),children:i.Ik({apiReference:i.Yj(),bulletStyling:i.Ik({value:i.k5(s)}).nullish()}).optional()})]).catch({value:"default"})}).nullish()).nullish()})})());const l=()=>c.call()},93217:function(e,t,n){function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,{U:function(){return r}})},93223:function(e,t,n){n.d(t,{e:function(){return c}});var r=n(94983),i=n(90281),o=n(79916),a=n(6138);const s=new r.SyncBailHook;s.tap("platform-general-options-schema",()=>(()=>{const e=(0,o.J)();return(0,a.A)("generalOptions",{supportingData:i.g1(i.Ik({baseurl:i.Yj(),siteWideBanner:e.nullish()}).nullish())})})());const c=()=>s.call()},94983:function(e,t,n){n(46223),t.SyncBailHook=n(8799),n(58507),n(61581),n(87239),n(41335),n(21413),n(57785),n(87419),n(73385),n(98176),n(87041)},98176:function(e,t,n){const r=n(1542),i=(e,t)=>t;class o{constructor(e,t=void 0){this._map=new Map,this.name=t,this._factory=e,this._interceptors=[]}get(e){return this._map.get(e)}for(e){const t=this.get(e);if(void 0!==t)return t;let n=this._factory(e);const r=this._interceptors;for(let i=0;i<r.length;i++)n=r[i].factory(e,n);return this._map.set(e,n),n}intercept(e){this._interceptors.push(Object.assign({factory:i},e))}}o.prototype.tap=r.deprecate(function(e,t,n){return this.for(e).tap(t,n)}
299,"HookMap#tap(key,â¦) is deprecated. Use HookMap#for(key).tap(â¦) instead."),o.prototype.tapAsync=r.deprecate(function(e,t,n){return this.for(e).tapAsync(t,n)},"HookMap#tapAsync(key,â¦) is deprecated. Use HookMap#for(key).tapAsync(â¦) instead."),o.prototype.tapPromise=r.deprecate(function(e,t,n){return this.for(e).tapPromise(t,n)},"HookMap#tapPromise(key,â¦) is deprecated. Use HookMap#for(key).tapPromise(â¦) instead."),e.exports=o}}]); 300//# sourceMappingURL=e04183d7db3690a40dff9e6d7c03f6016dd31cfb-93d05bfc827119141635.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.