1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{22:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var i=r(5729),n=r(6308);function s(e,t,r){let s=(0,n.Y)(t);(0,i.useEffect)(()=>{function t(e){s.current(e)}return window.addEventListener(e,t,r),()=>window.removeEventListener(e,t,r)},[e,r])}},158:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var i=r(5729),n=r(3029);function s(){let[e]=(0,i.useState)(n.e);return(0,i.useEffect)(()=>()=>e.dispose(),[e]),e}},188:(e,t,r)=>{"use strict";function i(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>i})},212:(e,t,r)=>{"use strict";function i(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=e(t[r]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}(e))&&(i&&(i+=" "),i+=t);return i}r.d(t,{$:()=>i,A:()=>n});let n=i},270:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Y});var i,n,s,o,a,l,c,d,u,p=function(){return(p=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;let h=/\r\n|[\n\r]/g;function g(e,t){let r=0,i=1;for(let n of e.body.matchAll(h)){if("number"==typeof n.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),n.index>=t)break;r=n.index+n[0].length,i+=1}return{line:i,column:t+1-r}}function m(e,t){let r=e.locationOffset.column-1,i="".padStart(r)+e.body,n=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?r:0,l=t.column+a,c=`${e.name}:${o}:${l} 2`,d=i.split(/\r\n|[\n\r]/g),u=d[n];if(u.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<u.length;e+=80)t.push(u.slice(e,e+80));return c+f([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+f([[`${o-1} |`,d[n-1]],[`${o} |`,u],["|","^".padStart(l)],[`${o+1} |`,d[n+1]]])}function f(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class x extends Error{constructor(e,...t){var r,i,n;const{nodes:s,source:o,positions:a,path:l,originalError:c,extensions:d}=function(e){let 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!=c?c:void 0,this.nodes=y(Array.isArray(s)?s:s?[s]:void 0);const u=y(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==u||null==(i=u[0])?void 0:i.source,this.positions=null!=a?a:null==u?void 0:u.map(e=>e.start),this.locations=a&&o?a.map(e=>g(o,e)):null==u?void 0:u.map(e=>g(e.source,e.start));const p=!function(e){return"object"==typeof e&&null!==e}(null==c?void 0:c.extensions)||null==c?void 0:c.extensions;this.extensions=null!=(n=null!=d?d:p)?n: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!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,x):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(let r of this.nodes){var t;r.loc&&(e+="\n\n"+m((t=r.loc).source,g(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+m(this.source,t);return e}toJSON(){let 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 y(e){return void 0===e||0===e.length?void 0:e}function b(e,t,r){return new x(`Syntax Error: ${r}`,{source:e,positions:[t]})}class v{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class w{constructor(e,t,r,i,n,s){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=s,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}}}function _(e){return e>=48&&e<=57}function j(e){return e>=97&&e<=122||e>=65&&e<=90}function k(e){return j(e)||95===e}(i=l||(l={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription",(n=c||(c={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION",(s=d||(d={})).NAME="Name",s.DOCUMENT="Document",s.OPERATION_DEFINITION="OperationDefinition",s.VARIABLE_DEFINITION="VariableDefinition",s.SELECTION_SET="SelectionSet",s.FIELD="Field",
2s.ARGUMENT="Argument",s.FRAGMENT_SPREAD="FragmentSpread",s.INLINE_FRAGMENT="InlineFragment",s.FRAGMENT_DEFINITION="FragmentDefinition",s.VARIABLE="Variable",s.INT="IntValue",s.FLOAT="FloatValue",s.STRING="StringValue",s.BOOLEAN="BooleanValue",s.NULL="NullValue",s.ENUM="EnumValue",s.LIST="ListValue",s.OBJECT="ObjectValue",s.OBJECT_FIELD="ObjectField",s.DIRECTIVE="Directive",s.NAMED_TYPE="NamedType",s.LIST_TYPE="ListType",s.NON_NULL_TYPE="NonNullType",s.SCHEMA_DEFINITION="SchemaDefinition",s.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",s.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",s.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",s.FIELD_DEFINITION="FieldDefinition",s.INPUT_VALUE_DEFINITION="InputValueDefinition",s.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",s.UNION_TYPE_DEFINITION="UnionTypeDefinition",s.ENUM_TYPE_DEFINITION="EnumTypeDefinition",s.ENUM_VALUE_DEFINITION="EnumValueDefinition",s.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",s.DIRECTIVE_DEFINITION="DirectiveDefinition",s.SCHEMA_EXTENSION="SchemaExtension",s.DIRECTIVE_EXTENSION="DirectiveExtension",s.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",s.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",s.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",s.UNION_TYPE_EXTENSION="UnionTypeExtension",s.ENUM_TYPE_EXTENSION="EnumTypeExtension",s.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",s.TYPE_COORDINATE="TypeCoordinate",s.MEMBER_COORDINATE="MemberCoordinate",s.ARGUMENT_COORDINATE="ArgumentCoordinate",s.DIRECTIVE_COORDINATE="DirectiveCoordinate",s.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(o=u||(u={})).SOF="<SOF>",o.EOF="<EOF>",o.BANG="!",o.DOLLAR="$",o.AMP="&",o.PAREN_L="(",o.PAREN_R=")",o.DOT=".",o.SPREAD="...",o.COLON=":",o.EQUALS="=",o.AT="@",o.BRACKET_L="[",o.BRACKET_R="]",o.BRACE_L="{",o.PIPE="|",o.BRACE_R="}",o.NAME="Name",o.INT="Int",o.FLOAT="Float",o.STRING="String",o.BLOCK_STRING="BlockString",o.COMMENT="Comment";class N{constructor(e){const t=new w(u.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!==u.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,i=r.length,n=t;for(;n<i;){let t=r.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===r.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){let e=r.charCodeAt(n);if(10===e||13===e)break;if(E(e))++n;else if(q(r,n))n+=2;else break}return C(e,u.COMMENT,t,n,r.slice(t+1,n))}(e,n);case 33:return C(e,u.BANG,n,n+1);case 36:return C(e,u.DOLLAR,n,n+1);case 38:return C(e,u.AMP,n,n+1);case 40:return C(e,u.PAREN_L,n,n+1);case 41:return C(e,u.PAREN_R,n,n+1);case 46:if(46===r.charCodeAt(n+1)&&46===r.charCodeAt(n+2))return C(e,u.SPREAD,n,n+3);break;case 58:return C(e,u.COLON,n,n+1);case 61:return C(e,u.EQUALS,n,n+1);case 64:return C(e,u.AT,n,n+1);case 91:return C(e,u.BRACKET_L,n,n+1);case 93:return C(e,u.BRACKET_R,n,n+1);case 123:return C(e,u.BRACE_L,n,n+1);case 124:return C(e,u.PIPE,n,n+1);case 125:return C(e,u.BRACE_R,n,n+1);case 34:if(34===r.charCodeAt(n+1)&&34===r.charCodeAt(n+2))return function(e,t){let r=e.source.body,i=r.length,n=e.lineStart,s=t+3,o=s,a="",l=[];for(;s<i;){let i=r.charCodeAt(s);if(34===i&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){a+=r.slice(o,s),l.push(a);let i=C(e,u.BLOCK_STRING,t,s+3,(function(e){var t,r;let i=Number.MAX_SAFE_INTEGER,n=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){var t;let r=0;for(;r<e.length&&(9===(t=e.charCodeAt(r))||32===t);)++r;return r}(o);a!==o.length&&(n=null!=(r=n)?r:t,s=t,0!==t&&a<i&&(i=a))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=n)?t:0,s+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=n,i}if(92===i&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)&&34===r.charCodeAt(s+3)){a+=r.slice(o,s),o=s+1,s+=4;continue}if(10===i||13===i){a+=r.slice(o,s),l.push(a),13===i&&10===r.charCodeAt(s+1)?s+=2:++s,a="",o=s,n=s;continue}if(E(i))++s;else if(q(r,s))s+=2;else throw b(e.source,s,`Invalid character within String: ${F(e,s)}.`)}throw b(e.source,s,"Unterminated string.")}(e,n);return function(e,t){let r=e.source.body,i=r.length,n=t+1,s=n,o="";for(;n<i;){let i=r.charCodeAt(n);if(34===i)return o+=r.slice(s,n),C(e,u.STRING,t,n+1,o);if(92===i){o+=r.slice(s,n);let t=117===r.charCodeAt(n+1)?123===r.charCodeAt(n+2)?function(e,t){let r=e.source.body,i=0,n=3;for(;n<12;){let e=r.charCodeAt(t+n++);if(125===e){if(n<5||!E(i))break;return{value:String.fromCodePoint(i),size:n}}if((i=i<<4|L(e))<0)break}throw b(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+n)}".`)}(e,n):function(e,t){let r=e.source.body,i=S(r,t+2);if(E(i))return{value:String.fromCodePoint(i),size:6};if(T(i)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=S(r,t+8);
2if(A(e))return{value:String.fromCodePoint(i,e),size:12}}throw b(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,n):function(e,t){let r=e.source.body;switch(r.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:" ",size:2}}throw b(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,n);o+=t.value,n+=t.size,s=n;continue}if(10===i||13===i)break;if(E(i))++n;else if(q(r,n))n+=2;else throw b(e.source,n,`Invalid character within String: ${F(e,n)}.`)}throw b(e.source,n,"Unterminated string.")}(e,n)}if(_(t)||45===t)return function(e,t,r){let i=e.source.body,n=t,s=r,o=!1;if(45===s&&(s=i.charCodeAt(++n)),48===s){if(_(s=i.charCodeAt(++n)))throw b(e.source,n,`Invalid number, unexpected digit after 0: ${F(e,n)}.`)}else n=P(e,n,s),s=i.charCodeAt(n);if(46===s&&(o=!0,s=i.charCodeAt(++n),n=P(e,n,s),s=i.charCodeAt(n)),(69===s||101===s)&&(o=!0,(43===(s=i.charCodeAt(++n))||45===s)&&(s=i.charCodeAt(++n)),n=P(e,n,s),s=i.charCodeAt(n)),46===s||k(s))throw b(e.source,n,`Invalid number, expected digit but got: ${F(e,n)}.`);return C(e,o?u.FLOAT:u.INT,t,n,i.slice(t,n))}(e,n,t);if(k(t))return function(e,t){let r=e.source.body,i=r.length,n=t+1;for(;n<i;){var s;if(j(s=r.charCodeAt(n))||_(s)||95===s)++n;else break}return C(e,u.NAME,t,n,r.slice(t,n))}(e,n);throw b(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(t)||q(r,n)?`Unexpected character: ${F(e,n)}.`:`Invalid character: ${F(e,n)}.`)}return C(e,u.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===u.COMMENT);return e}}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function q(e,t){return T(e.charCodeAt(t))&&A(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function A(e){return e>=56320&&e<=57343}function F(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return u.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function C(e,t,r,i,n){let s=e.line,o=1+r-e.lineStart;return new w(t,r,i,s,o,n)}function P(e,t,r){if(!_(r))throw b(e.source,t,`Invalid number, expected digit but got: ${F(e,t)}.`);let i=e.source.body,n=t+1;for(;_(i.charCodeAt(n));)++n;return n}function S(e,t){return L(e.charCodeAt(t))<<12|L(e.charCodeAt(t+1))<<8|L(e.charCodeAt(t+2))<<4|L(e.charCodeAt(t+3))}function L(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function O(e,t){if(!e)throw Error(t)}function I(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){let r;if(null===e)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:I(t,i)}else if(Array.isArray(e)){var n,s,o=e,a=i;if(0===o.length)return"[]";if(a.length>2)return"[Array]";let t=Math.min(10,o.length),r=o.length-t,l=[];for(let e=0;e<t;++e)l.push(I(o[e],a));return 1===r?l.push("... 1 more item"):r>1&&l.push(`... ${r} more items`),"["+l.join(", ")+"]"}return n=e,s=i,0===(r=Object.entries(n)).length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(n)+"]":"{ "+r.map(([e,t])=>e+": "+I(t,s)).join(", ")+" }"}(e,t);default:return String(e)}}let R=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=I(e,[]);throw Error(`Cannot use ${i} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class D{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||O(!1,`Body must be a string. Received: ${function(e){return I(e,[])}(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||O(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||O(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class M{constructor(e,t={}){const{lexer:r,...i}=t;if(r)this._lexer=r;else{const t=!function(e){return R(e,D)}(e)?new D(e):e;this._lexer=new N(t)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(u.NAME);return this.node(e,{kind:d.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:d.DOCUMENT,definitions:this.many(u.SOF,this.parseDefinition,u.EOF)})}parseDefinition(){if(this.peek(u.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===u.BRACE_L)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===u.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw b(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
13ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(u.BRACE_L))return this.node(t,{kind:d.OPERATION_DEFINITION,operation:l.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),i=this.parseOperationType();return this.peek(u.NAME)&&(e=this.parseName()),this.node(t,{kind:d.OPERATION_DEFINITION,operation:i,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(u.NAME);switch(e.value){case"query":return l.QUERY;case"mutation":return l.MUTATION;case"subscription":return l.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.PAREN_L,this.parseVariableDefinition,u.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:d.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(u.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(u.DOLLAR),this.node(e,{kind:d.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:d.SELECTION_SET,selections:this.many(u.BRACE_L,this.parseSelection,u.BRACE_R)})}parseSelection(){return this.peek(u.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,i=this.parseName();return this.expectOptionalToken(u.COLON)?(e=i,t=this.parseName()):t=i,this.node(r,{kind:d.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.PAREN_L,t,u.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(u.COLON),this.node(t,{kind:d.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(u.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(u.NAME)?this.node(e,{kind:d.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:d.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:d.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:d.FRAGMENT_DEFINITION,description:t,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){let t=this._lexer.token;switch(t.kind){case u.BRACKET_L:return this.parseList(e);case u.BRACE_L:return this.parseObject(e);case u.INT:return this.advanceLexer(),this.node(t,{kind:d.INT,value:t.value});case u.FLOAT:return this.advanceLexer(),this.node(t,{kind:d.FLOAT,value:t.value});case u.STRING:case u.BLOCK_STRING:return this.parseStringLiteral();case u.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:d.BOOLEAN,value:!0});case"false":return this.node(t,{kind:d.BOOLEAN,value:!1});case"null":return this.node(t,{kind:d.NULL});default:return this.node(t,{kind:d.ENUM,value:t.value})}case u.DOLLAR:if(e){if(this.expectToken(u.DOLLAR),this._lexer.token.kind===u.NAME){let e=this._lexer.token.value;throw b(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(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:d.STRING,value:e.value,block:e.kind===u.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:d.LIST,values:this.any(u.BRACKET_L,t,u.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:d.OBJECT,fields:this.any(u.BRACE_L,t,u.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(u.COLON),this.node(t,{kind:d.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(u.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(u.AT),this.node(t,{kind:d.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(u.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(u.BRACKET_R),e=this.node(t,{kind:d.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(u.BANG)?this.node(t,{kind:d.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:d.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.STRING)||this.peek(u.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);return this.node(e,{kind:d.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.COLON);let r=this.parseNamedType();return this.node(e,{kind:d.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:d.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:d.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.BRACE_L,this.parseFieldDefinition,u.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(u.COLON);let n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:d.FIELD_DEFINITION,description:t,name:r,arguments:i,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(u.PAREN_L,this.parseInputValueDef,u.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),i=this.parseName();this.expectToken(u.COLON);let n=this.parseTypeReference();this.expectOptionalToken(u.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:d.INPUT_VALUE_DEFINITION,description:r,name:i,type:n,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:d.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:i,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:d.UNION_TYPE_DEFINITION,description:t,name:r,directives:i,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(u.EQUALS)?this.delimitedMany(u.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:d.ENUM_TYPE_DEFINITION,description:t,name:r,directives:i,values:n})}parseEnumValuesDefinition(){return this.optionalMany(u.BRACE_L,this.parseEnumValueDefinition,u.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:d.ENUM_VALUE_DEFINITION,description:t,name:r,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw b(this._lexer.source,this._lexer.token.start,`${U(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:d.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:i,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(u.BRACE_L,this.parseInputValueDef,u.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===u.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:d.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===r.length&&0===i.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:i,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.UNION_TYPE_EXTENSION,name:t,directives:r,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.ENUM_TYPE_EXTENSION,name:t,directives:r,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:i})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(u.AT);let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:d.DIRECTIVE_EXTENSION,name:t,directives:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.AT);let r=this.parseName(),i=this.parseArgumentDefs(),n=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:d.DIRECTIVE_DEFINITION,description:t,name:r,arguments:i,directives:n,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,i=this.expectOptionalToken(u.AT),n=this.parseName();return(!i&&this.expectOptionalToken(u.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(u.PAREN_L)&&(t=this.parseName(),this.expectToken(u.COLON),this.expectToken(u.PAREN_R)),i)?t?this.node(r,{kind:d.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:t}):this.node(r,{kind:d.DIRECTIVE_COORDINATE,name:n}):e?t?this.node(r,{kind:d.ARGUMENT_COORDINATE,name:n,fieldName:e,argumentName:t}):this.node(r,{kind:d.MEMBER_COORDINATE,name:n,memberName:e}):this.node(r,{kind:d.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new v(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw b(this._lexer.source,t.start,`Expected ${W(e)}, found ${U(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===u.NAME&&t.value===e)this.advanceLexer();else throw b(this._lexer.source,t.start,`Expected "${e}", found ${U(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===u.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return b(this._lexer.source,t.start,`Unexpected ${U(t)}.`)}any(e,t,r){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(r);)i.push(t.call(this));return i}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==u.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw b(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function U(e){let t=e.value;return W(e.kind)+(null!=t?` "${t}"`:"")}function W(e){return e===u.BANG||e===u.DOLLAR||e===u.AMP||e===u.PAREN_L||e===u.PAREN_R||e===u.DOT||e===u.SPREAD||e===u.COLON||e===u.EQUALS||e===u.AT||e===u.BRACKET_L||e===u.BRACKET_R||e===u.BRACE_L||e===u.
13PIPE||e===u.BRACE_R?`"${e}"`:e}var z=new Map,B=new Map,G=!0,$=!1;function Q(e){return e.replace(/[\s,]+/g," ").trim()}function K(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[r+1]}),function(e){var t=Q(e);if(!z.has(t)){let l,c;var r,i,n,s,o,a=(Object.defineProperty(c=(l=new M(e,{experimentalFragmentVariables:$,allowLegacyFragmentVariables:$,experimentalFragmentArguments:$})).parseDocument(),"tokenCount",{enumerable:!1,value:l.tokenCount}),c);if(!a||"Document"!==a.kind)throw Error("Not a valid GraphQL document.");z.set(t,((s=new Set((r=new Set,i=[],a.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,s=Q((t=e.loc).source.body.substring(t.start,t.end)),o=B.get(n);o&&!o.has(s)?G&&console.warn("Warning: fragment with name "+n+" 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||B.set(n,o=new Set),o.add(s),r.has(s)||(r.add(s),i.push(e))}else i.push(e)}),n=p(p({},a),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&s.add(r)})}),(o=n.loc)&&(delete o.startToken,delete o.endToken),n))}return z.get(t)}(i)}var V=K;(a=K||(K={})).gql=V,a.resetCaches=function(){z.clear(),B.clear()},a.disableFragmentWarnings=function(){G=!1},a.enableExperimentalFragmentVariables=function(){$=!0},a.disableExperimentalFragmentVariables=function(){$=!1},K.default=K;let Y=K},483:(e,t,r)=>{"use strict";r.d(t,{s:()=>s});var i=r(5729),n=r(5369);let s=(e,t)=>{n._.isServer?(0,i.useEffect)(e,t):(0,i.useLayoutEffect)(e,t)}},595:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});var i=r(6029);function n({size:e=32,variant:t="default",showGlow:r=!1,className:s,style:o}){let a="reversed"===t,l=a?"rgba(255,255,255,0.4)":"#435678",c=a?"rgba(255,255,255,0.5)":"#96A8C8",d=a?"rgba(0,0,0,0.12)":"#1A2540";return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL for ACF",className:s,style:{...r?{filter:"drop-shadow(0 0 24px rgba(16,185,129,0.4)) drop-shadow(0 0 6px rgba(16,185,129,0.25))"}:{},...o},children:[(0,i.jsx)("rect",{width:"160",height:"160",rx:"36",fill:a?"#10B981":"#0C1220"}),(0,i.jsx)("rect",{x:"14",y:"14",width:"132",height:"14",rx:"3.5",fill:a?"rgba(0,0,0,0.28)":"#10B981",opacity:"0.9"}),(0,i.jsx)("rect",{x:"18",y:"17.5",width:"14",height:"7",rx:"1.5",fill:a?"rgba(255,255,255,0.35)":"rgba(255,255,255,0.25)"}),(0,i.jsx)("rect",{x:"14",y:"34",width:"132",height:"10",fill:a?"rgba(0,0,0,0.18)":"#131B30"}),(0,i.jsx)("rect",{x:"19",y:"37",width:"18",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,i.jsx)("rect",{x:"52",y:"37",width:"28",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,i.jsx)("rect",{x:"94",y:"37",width:"20",height:"3",rx:"1.5",fill:l,opacity:"0.8"}),(0,i.jsx)("rect",{x:"14",y:"44.75",width:"132",height:"16",fill:a?"rgba(0,0,0,0.1)":"rgba(16,185,129,0.08)"}),(0,i.jsx)("rect",{x:"14",y:"44.75",width:"3",height:"16",fill:a?"rgba(0,0,0,0.5)":"#10B981"}),(0,i.jsx)("rect",{x:"19",y:"50.5",width:"22",height:"3",rx:"1.5",fill:a?"rgba(255,255,255,0.85)":"#34D399",opacity:"0.9"}),(0,i.jsx)("rect",{x:"52",y:"50.5",width:"34",height:"3",rx:"1.5",fill:c,opacity:"0.65"}),(0,i.jsx)("rect",{x:"94",y:"50.5",width:"24",height:"3",rx:"1.5",fill:c,opacity:"0.5"}),(0,i.jsx)("rect",{x:"14",y:"60.75",width:"132",height:"0.75",fill:d}),(0,i.jsx)("rect",{x:"19",y:"66.5",width:"18",height:"3",rx:"1.5",fill:c,opacity:"0.55"}),(0,i.jsx)("rect",{x:"52",y:"66.5",width:"28",height:"3",rx:"1.5",fill:c,opacity:"0.45"}),(0,i.jsx)("rect",{x:"94",y:"66.5",width:"20",height:"3",rx:"1.5",fill:c,opacity:"0.4"}),(0,i.jsx)("rect",{x:"14",y:"76.75",width:"132",height:"0.75",fill:d}),(0,i.jsx)("rect",{x:"19",y:"82.5",width:"20",height:"3",rx:"1.5",fill:c,opacity:"0.45"}),(0,i.jsx)("rect",{x:"52",y:"82.5",width:"32",height:"3",rx:"1.5",fill:c,op
13acity:"0.35"}),(0,i.jsx)("rect",{x:"14",y:"92.75",width:"132",height:"0.75",fill:d}),(0,i.jsx)("rect",{x:"19",y:"98.5",width:"16",height:"3",rx:"1.5",fill:c,opacity:"0.35"}),(0,i.jsx)("rect",{x:"52",y:"98.5",width:"24",height:"3",rx:"1.5",fill:c,opacity:"0.28"}),(0,i.jsx)("rect",{x:"14",y:"130",width:"60",height:"16",rx:"4",fill:a?"rgba(0,0,0,0.15)":"rgba(16,185,129,0.15)",stroke:a?"rgba(0,0,0,0.25)":"rgba(16,185,129,0.3)",strokeWidth:"1"}),(0,i.jsx)("rect",{x:"90",y:"132",width:"56",height:"12",rx:"3",fill:a?"rgba(0,0,0,0.28)":"#10B981",opacity:"0.75"}),(0,i.jsx)("rect",{x:"95",y:"135.5",width:"40",height:"2.5",rx:"1.25",fill:"rgba(255,255,255,0.6)"})]})}},685:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var i=r(6029),n=r(2203),s=r.n(n),o=r(5729);let a=o.forwardRef(function({title:e,titleId:t,...r},i){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))});function l({title:e,excerpt:t,href:r,cta:n="View",external:o=!1}){let c="before:absolute before:inset-0 before:content-[''] before:rounded-xl focus-visible:outline-none focus-visible:before:ring-2 focus-visible:before:ring-ring",d=o?(0,i.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:c,children:e}):(0,i.jsx)(s(),{href:r,className:c,children:e});return(0,i.jsxs)("article",{className:"group relative rounded-xl border border-border bg-card p-6 transition-all duration-200 hover:-translate-y-0.5 hover:border-primary/40 hover:shadow-glow-sm",children:[(0,i.jsx)("h2",{className:"text-2xl font-bold tracking-tight text-foreground transition-colors group-hover:text-primary",children:d}),t?(0,i.jsx)("div",{className:"prose mt-3",dangerouslySetInnerHTML:{__html:t}}):null,(0,i.jsxs)("div",{className:"mt-5 inline-flex items-center gap-1.5 font-mono text-xs font-medium uppercase tracking-widest text-primary",children:[(0,i.jsx)("span",{children:n}),o?(0,i.jsx)(a,{className:"h-3.5 w-3.5 transition-transform group-hover:-translate-y-px group-hover:translate-x-px"}):(0,i.jsx)("span",{className:"transition-transform group-hover:translate-x-1","aria-hidden":"true",children:"â"})]})]})}},735:(e,t,r)=>{"use strict";var i=r(6509),n=r(4053),s=r(6185);(0,i.jK)({templates:n.A,Layout:s.P})},907:(e,t,r)=>{"use strict";r.d(t,{k5:()=>l});var i=r(5729),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=i.createContext&&i.createContext(n),o=function(){return(o=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},a=function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r};function l(e){return function(t){return i.createElement(c,o({attr:o({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return i.createElement(t.tag,o({key:r},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var r,n=e.attr,s=e.size,l=e.title,c=a(e,["attr","size","title"]),d=s||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),i.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,c,{className:r,style:o(o({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&i.createElement("title",null,l),e.children)};return void 0!==s?i.createElement(s.Consumer,null,function(e){return t(e)}):t(n)}},1024:(e,t,r)=>{e.exports=r(7195)},1201:(e,t,r)=>{"use strict";r.d(t,{B:()=>l});var i,n=r(5729),s=r(5369),o=r(483),a=r(2925);let l=null!=(i=n.useId)?i:function(){let e=(0,a.g)(),[t,r]=n.useState(e?()=>s._.nextId():null);return(0,o.s)(()=>{null===t&&r(s._.nextId())},[t]),null!=t?""+t:void 0}},1278:(e,t,r)=>{e.exports=r(445)},1321:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,a:()=>o});var i=r(5729),n=r(4149);let s=Symbol();function o(e,t=!0){return Object.assign(e,{[s]:t})}function a(...e){let t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]);let r=(0,n._)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[s]))?void 0:r}},1453:(e,t,r)=>{"use strict";let i;r.d(t,{El:()=>l,O_:()=>a,Uw:()=>o});var n=r(5729);let s=(0,n.createContext)(null);s.displayName="OpenClosedContext";var o=((i=o||{})[i.Open=1]="Open",i[i.Closed=2]="Closed",i[i.Closing=4]="Closing",i[i.Opening=8]="Opening",i
13);function a(){return(0,n.useContext)(s)}function l({value:e,children:t}){return n.createElement(s.Provider,{value:e},t)}},1673:(e,t,r)=>{"use strict";r.d(t,{T:()=>n});var i=r(5369);function n(e){return i._.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},1805:(e,t,r)=>{"use strict";r.d(t,{YZ:()=>n,lG:()=>o,w:()=>s});var i=r(6029);function n({children:e,icon:t,align:r="center"}){return(0,i.jsxs)("div",{className:`flex items-center gap-3 ${"center"===r?"justify-center":"justify-start"}`,children:["center"===r&&(0,i.jsx)("span",{className:"hidden h-px w-10 bg-gradient-to-r from-transparent to-primary/40 sm:block","aria-hidden":"true"}),(0,i.jsxs)("span",{className:"inline-flex items-center gap-2 font-mono text-xs font-medium uppercase tracking-widest text-primary",children:[t&&(0,i.jsx)(t,{className:"size-3.5","aria-hidden":"true"}),e]}),(0,i.jsx)("span",{className:`${"center"===r?"hidden sm:block ":""}h-px ${"center"===r?"w-10 bg-gradient-to-l from-transparent to-primary/40":"w-16 bg-gradient-to-r from-primary/40 to-transparent"}`,"aria-hidden":"true"})]})}function s({eyebrow:e,icon:t,lead:r,accent:o,intro:a,align:l="center"}){return(0,i.jsxs)("div",{className:"center"===l?"mx-auto max-w-3xl text-center":"",children:[(0,i.jsx)(n,{icon:t,align:l,children:e}),(0,i.jsxs)("h2",{className:"mt-4 text-display-sm font-extrabold tracking-tight text-foreground sm:text-display-md",children:[r,(0,i.jsx)("br",{}),(0,i.jsx)("span",{className:"text-primary",children:o})]}),a&&(0,i.jsx)("p",{className:`mt-4 text-base text-muted-foreground sm:text-lg ${"center"===l?"":"max-w-xl"}`,children:a})]})}function o({children:e,className:t=""}){return(0,i.jsx)("div",{className:`ide-bg ide-border ide-text mt-6 rounded-lg border p-4 font-mono text-xs leading-relaxed ${t}`,children:e})}},2203:(e,t,r)=>{e.exports=r(6916)},2357:(e,t,r)=>{"use strict";function i(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(r))&&i}r.d(t,{l:()=>i})},2461:(e,t,r)=>{"use strict";r.d(t,{A:()=>m});var i=r(6029),n=r(6654),s=r(5729);let o=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"}))}),a=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25"}))}),l=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 013 19.875v-6.75zM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V8.625zM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 01-1.125-1.125V4.125z"}))}),c=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"}))}),d=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"}))}),u=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32
130 0112 3z"}))}),p=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 01-.657.643 48.39 48.39 0 01-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 01-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 00-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 01-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 00.657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 01-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 005.427-.63 48.05 48.05 0 00.582-4.717.532.532 0 00-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 00.658-.663 48.422 48.422 0 00-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 01-.61-.58v0z"}))}),h=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"}))}),g={Bars:n.A,Bars3Icon:n.A,BoltIcon:o,BookOpenIcon:a,ChartBarIcon:l,CodeBracketIcon:c,CommandLineIcon:d,FunnelIcon:u,PuzzlePieceIcon:p,ShieldCheckIcon:h};function m({icon:e,...t}){if(!e)return null;let r=g[e];return r?(0,i.jsx)(r,{className:"h-6 w-6","aria-hidden":"true",...t}):null}},2562:(e,t,r)=>{"use strict";let i,n;r.d(t,{FX:()=>m,O5:()=>l,XX:()=>d,cq:()=>p,mK:()=>c,oE:()=>f});var s=r(5729),o=r(2599),a=r(5219),l=((i=l||{})[i.None=0]="None",i[i.RenderStrategy=1]="RenderStrategy",i[i.Static=2]="Static",i),c=((n=c||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function d({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:n,visible:s=!0,name:o,mergeRefs:l}){l=null!=l?l:h;let c=g(t,e);if(s)return u(c,r,i,o,l);let p=null!=n?n:0;if(2&p){let{static:e=!1,...t}=c;if(e)return u(t,r,i,o,l)}if(1&p){let{unmount:e=!0,...t}=c;return(0,a.Y)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},r,i,o,l)})}return u(c,r,i,o,l)}function u(e,t={},r,i,n){let{as:a=r,children:l,refName:c="ref",...d}=x(e,["unmount","static"]),p=void 0!==e.ref?{[c]:e.ref}:{},h="function"==typeof l?l(t):l;"className"in d&&d.className&&"function"==typeof d.className&&(d.className=d.className(t));let m={};if(t){let e=!1,r=[];for(let[i,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&r.push(i);e&&(m["data-headlessui-state"]=r.join(" "))}if(a===s.Fragment&&Object.keys(f(d)).length>0){if(!(0,s.isValidElement)(h)||Array.isArray(h)&&h.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(d).map(e=>` - ${e}`).join(` 14`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 15`)].join(` 16`));let e=h.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,o.x)(null==e?void 0:e.className(...t),d.className):(0,o.x)(null==e?void 0:e.className,d.className);return(0,s.cloneElement)(h,Object.assign({},g(h.props,f(x(d,["ref"]))),m,p,{ref:n(h.ref,p.ref)},t?{className:t}:{}))}return(0,s.createElement)(a,Object.assign({},x(d,["ref"]),a!==s.Fragment&&p,a!==s.Fragment&&m),h)}function p(){let e=(0,s.useRef)([]),t=(0,s.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}function h(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function g(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let i of e)for(let e in i)e.startsWith("on")&&"function"==typeof i[e]?(null!=r[e]||(r[e]=[]),r[e].push(i[e])):t[e]=i[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...i){for(let n of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...i)}}});return t}function m(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function f(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function x(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},2599:(e,t,r)=>{"use strict";function i(...e){return Array.from(new Set(e.flatMap(e=>
16"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>i})},2601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return d},getImageProps:function(){return c}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(4761),o=r(4851),a=r(5815),l=s._(r(2645));function c(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=a.Image},2645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=r(8471),n=r(7637);function s({config:e,src:t,width:r,quality:o}){let a=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())a=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),i=r.get("dpl");if(i){a=i,r.delete("dpl");let n=r.toString();t=t.slice(0,e)+(n?"?"+n:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 17Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,i.findClosestQuality)(o,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},2774:(e,t,r)=>{"use strict";let i,n,s,o,a;r.d(t,{BD:()=>u,Bm:()=>f,CU:()=>b,MZ:()=>m,Me:()=>p,iq:()=>g,wl:()=>y});var l=r(5219),c=r(1673);let d=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var u=((i=u||{})[i.First=1]="First",i[i.Previous=2]="Previous",i[i.Next=4]="Next",i[i.Last=8]="Last",i[i.WrapAround=16]="WrapAround",i[i.NoScroll=32]="NoScroll",i),p=((n=p||{})[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n),h=((s=h||{})[s.Previous=-1]="Previous",s[s.Next=1]="Next",s);function g(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((o=m||{})[o.Strict=0]="Strict",o[o.Loose=1]="Loose",o);function f(e,t=0){var r;return e!==(null==(r=(0,c.T)(e))?void 0:r.body)&&(0,l.Y)(t,{0:()=>e.matches(d),1(){let t=e;for(;null!==t;){if(t.matches(d))return!0;t=t.parentElement}return!1}})}var x=((a=x||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function y(e,t=e=>e){return e.slice().sort((e,r)=>{let i=t(e),n=t(r);if(null===i||null===n)return 0;let s=i.compareDocumentPosition(n);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t,{sorted:r=!0,relativeTo:i=null,skipElements:n=[]}={}){var s,o,a;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?r?y(e):e:g(e);n.length>0&&c.length>1&&(c=c.filter(e=>!n.includes(e))),i=null!=i?i:l.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},h=0,m=c.length,f;do{if(h>=m||h+m<=0)return 0;let e=u+h;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(f=c[e])||f.focus(p),h+=d}while(f!==l.activeElement);return 6&t&&null!=(a=null==(o=null==(s=f)?void 0:s.matches)?void 0:o.call(s,"textarea,input"))&&a&&f.select(),2}"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},2909:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(6029),n=r(5088);function s({width:e,height:t,size:r,markOnly:o,variant:a="default",subLabel:l,className:c}){let d=r??e??t??40;return o?(0,i.jsx)(n.p,{size:d,variant:a,className:c}):(0,i.jsx)(n.Q,{size:d,variant:a,subLabel:l,className:c})}},2925:(e,t,r)=>{"use strict";r.d(t,{g:()=>o});var i,n=r(5729),s=r(5369);function o(){let e,t=(e="u"<typeof document,(0,(i||(i=r.t(n,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[o,a]=n.useState(s._.isHandoffComplete);return o&&!1===s._.isHandoffComplete&&a(!1),n.useEffect(()=>{!0!==o&&a(!0)},[o]),n.useEffect(()=>s._.handoff(),[]),!t&&o}},2940:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var i=r(5729),n=r(2774),s=r(6308);function o(e,t,r){let n=(0,s.Y)(t);(0,i.useEffect)(()=>{function t(e){n.current(e)}return document.addEventListener(e,t,r),()=>document.removeEventListener(e,t,r)},[e,r])}var a=r(22);function l(e,t,r=!0){let s=(0,i.useRef)(!1);function c(r,i){if(!s.current||r.defaultPrevented)return;let o=i(r);if(null!==o&&o.getRootNode().contains(o)&&o.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(o)||r.composed&&r.composedPath().includes(e))return}return(0,n.Bm)(o,n.MZ.Loose)||-1===o.tabIndex||r.preventDefault(),t(r,o)}}(0,i.useEffect)(()=>{requestAnimationFrame(()=>{s.current=r})},[r]);let d=(0,i.useRef)(null);o("pointerdown",e=>{var t,r;s.current&&(d.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("mousedown",e=>{var t,r;s.current&&(d.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),o("click",e=>{/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)||d.current&&(c(e,()=>d.current),d.current=null)},!0),o("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,a.M)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},3029:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,i,n)=>(e.addEventListener(t,i,n),r.add(()=>e.removeEventListener(t,i,n))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,i._)(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,r){let i=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:i})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var i=r(188)},3055:(e,t,r)=>{"use strict";r.d(t,{v:()=>q,Y:()=>k});var i=r(6029),n=r(6760),s=r(5729),o=r(1278),a=r(5669),l=r.n(a),c=r(1024),d=r.n(c),u=r(212),p=r(2203),h=r.n(p);let g=["Ctrl ","Control"],m=["â","Command"];var f=r(6170);let x=d()(()=>Promise.all([r.e(864),r.e(44),r.e(752)]).then(r.bind(r,8970)).then(e=>e.DocSearchModal),{loadableGenerated:{webpack:()=>[8970]},ssr:!1}),y="HB50HVJDY8",b=/^\/(docs|actions|filters|functions|recipes|developer-reference)(\/|$)/,v=/^\/(blog(\/|$)|\d{4}\/)/,w="blog";function _(e){let t=e.split(/[?#]/)[0],r=t.match(/^\/docs\/([^/]+)/);return r&&(0,f.QQ)().some(e=>e.key!==f.s&&e.key===r[1])?r[1]:b.test(t)?f.s:v.test(t)?w:null}let j=(0,s.createContext)();function k({children:e}
17){let t=(0,o.useRouter)(),[r,a]=(0,s.useState)(!1),[c,d]=(0,s.useState)(null),[u,p]=(0,s.useState)(null),h=(0,s.useCallback)(()=>{p(_(t.asPath)),a(!0)},[a,t.asPath]),g=(0,s.useCallback)(()=>{a(!1)},[a]),m=(0,s.useCallback)(e=>{p(_(t.asPath)),a(!0),d(e.key)},[a,d,t.asPath]),f=(0,s.useCallback)(e=>{d(document.querySelector(".DocSearch-Input")?.value??""),p(e)},[d,p]);return function({isOpen:e,onOpen:t,onClose:r}){(0,s.useEffect)(()=>{function i(i){let n,s;(27===i.keyCode&&e||"k"===i.key&&(i.metaKey||i.ctrlKey)||(s=(n=i.target).tagName,!n.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s&&"/"===i.key&&!e))&&(i.preventDefault(),e?r():!document.body.classList.contains("DocSearch--active")&&(document.body.classList.contains("DocSearch--active")||t()))}return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}},[e,t,r])}({isOpen:r,onOpen:h,onClose:g}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{children:(0,i.jsx)("link",{rel:"preconnect",href:`https://${y}-dsn.algolia.net`,crossOrigin:"true"})}),(0,i.jsx)(j.Provider,{value:{isOpen:r,onOpen:h,onClose:g,onInput:m},children:e}),r&&(0,n.createPortal)((0,i.jsx)(x,{initialQuery:c,initialScrollY:window.scrollY,indices:[{name:"wpgraphql",searchParameters:{distinct:1,attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url","anchor","product","tags"],...u?{facetFilters:[u===w?"tags:blog":`product:${u}`]}:{}}}],onClose:g,apiKey:"0c11d662dad18e8a18d20c969b25c65f",appId:y,placeholder:"Search...",navigator:{navigate({itemUrl:e}){a(!1),t.push(e)}},hitComponent:E},u??"all"),document.body),r&&(0,i.jsx)(N,{value:u,onChange:f},`chips-${u??"all"}`)]})}function N({value:e,onChange:t}){let[r]=(0,s.useState)(()=>{let e=document.createElement("div");return e.className="DocSearch-ProductFilter",e});(0,s.useEffect)(()=>{let e=document.querySelector(".DocSearch-Modal .DocSearch-SearchBar");if(e)return e.insertAdjacentElement("afterend",r),()=>{r.remove()}},[r]);let o=[{key:null,shortLabel:"All",themeClass:null},...(0,f.QQ)().map(({key:e,shortLabel:t,themeClass:r})=>({key:e,shortLabel:t,themeClass:r})),{key:w,shortLabel:"Blog",themeClass:null}];return(0,n.createPortal)((0,i.jsx)("div",{role:"group","aria-label":"Filter results by product",className:"DocSearch-ProductFilter-Chips",children:o.map(r=>(0,i.jsx)("button",{type:"button","aria-pressed":e===r.key,className:(0,u.A)("DocSearch-ProductFilter-Chip",r.themeClass,{"DocSearch-ProductFilter-Chip--active":e===r.key}),onClick:()=>{e!==r.key&&t(r.key)},children:r.shortLabel},r.key??"all"))}),r)}function E({hit:e,children:t}){let r=function(e){let t="string"==typeof e.product?e.product:null;
17if(t&&f.$e[t]){let{shortLabel:e,themeClass:r}=f.$e[t];return{label:e,themeClass:r}}return Array.isArray(e.tags)&&e.tags.includes("blog")?{label:"Blog",themeClass:null}:null}(e),n=!!r&&!e.__is_child?.();return(0,i.jsx)(h(),{href:e.url,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:(0,u.A)({"DocSearch-Hit--Result":e.__is_result?.(),"DocSearch-Hit--Parent":e.__is_parent?.(),"DocSearch-Hit--FirstChild":e.__is_first?.(),"DocSearch-Hit--LastChild":e.__is_last?.(),"DocSearch-Hit--Child":e.__is_child?.()},n&&"DocSearch-Hit--withBadge"),children:[t,n&&(0,i.jsx)("span",{"aria-hidden":"true",className:(0,u.A)("DocSearch-Hit-ProductBadge",r.themeClass),children:r.label})]})})}function q({children:e,...t}){let r=(0,s.useRef)(),n=function(){let[e,t]=(0,s.useState)();return(0,s.useEffect)(()=>{"u">typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?t(m):t(g))},[]),e}(),{onOpen:o,onInput:a}=(0,s.useContext)(j);return(0,s.useEffect)(()=>{function e(e){r&&r.current===document.activeElement&&a&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&a(e)}return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[a,r]),(0,i.jsx)("button",{type:"button",ref:r,onClick:o,...t,children:"function"==typeof e?e({actionKey:n}):e})}},3155:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(6892)}])},3429:(e,t,r)=>{"use strict";r.d(t,{o:()=>c});var i=r(5088),n=r(9667),s=r(595),o=r(4353),a=r(6170);let l={"wp-graphql":{description:"The GraphQL API for WordPress: schema, queries, mutations.",Mark:i.p,theme:""},acf:{description:"Query Advanced Custom Fields field groups with GraphQL.",Mark:s.d,theme:"theme-acf"},"smart-cache":{description:"Caching, invalidation, and persisted queries.",Mark:o.K,theme:"theme-smart-cache"},ide:{description:"Extend and embed the GraphQL IDE in wp-admin.",Mark:n.D,theme:"theme-ide"}};function c(){return(0,a.QQ)().map(e=>({...e,...l[e.key]??{}}))}},3538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=r(4761)._(r(5729)).default.createContext(null)},3860:(e,t,r)=>{"use strict";let i;r.d(t,{e:()=>P});var n=r(5729),s=r(158),o=r(4149),a=r(483);function l(){let e=(0,n.useRef)(!1);return(0,a.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var c=r(6308),d=r(2925),u=r(1321),p=r(3029),h=r(5219);function g(e,...t){e&&t.length>0&&e.classList.add(...t)}function m(e,...t){e&&t.length>0&&e.classList.remove(...t)}var f=r(1453),x=r(2599),y=r(2562);function b(e=""){return e.split(/\s+/).filter(e=>e.length>1)}let v=(0,n.createContext)(null);v.displayName="TransitionContext";var w=((i=w||{}).Visible="visible",i.Hidden="hidden",i);let _=(0,n.createContext)(null);function j(e){return"children"in e?j(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function k(e,t){let r=(0,c.Y)(e),i=(0,n.useRef)([]),a=l(),d=(0,s.L)(),u=(0,o._)((e,t=y.mK.Hidden)=>{let n=i.current.findIndex(({el:t})=>t===e);-1!==n&&((0,h.Y)(t,{[y.mK.Unmount](){i.current.splice(n,1)},[y.mK.Hidden](){i.current[n].state="hidden"}}),d.microTask(()=>{var e;!j(i)&&a.current&&(null==(e=r.current)||e.call(r))}))}),p=(0,o._)(e=>{let t=i.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):i.current.push({el:e,state:"visible"}),()=>u(e,y.mK.Unmount)}),g=(0,n.useRef)([]),m=(0,n.useRef)(Promise.resolve()),f=(0,n.useRef)({enter:[],leave:[],idle:[]}),x=(0,o._)((e,r,i)=>{g.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{g.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(f.current[r].map(([e,t])=>t)).then(()=>e())}
17)]),"enter"===r?m.current=m.current.then(()=>null==t?void 0:t.wait.current).then(()=>i(r)):i(r)}),b=(0,o._)((e,t,r)=>{Promise.all(f.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=g.current.shift())||e()}).then(()=>r(t))});return(0,n.useMemo)(()=>({children:i,register:p,unregister:u,onStart:x,onStop:b,wait:m,chains:f}),[p,u,i,x,b,f,m])}function N(){}_.displayName="NestingContext";let E=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function q(e){var t;let r={};for(let i of E)r[i]=null!=(t=e[i])?t:N;return r}let T=y.O5.RenderStrategy,A=(0,y.FX)(function(e,t){let{show:r,appear:i=!1,unmount:s=!0,...l}=e,c=(0,n.useRef)(null),p=(0,u.P)(c,t);(0,d.g)();let h=(0,f.O_)();if(void 0===r&&null!==h&&(r=(h&f.Uw.Open)===f.Uw.Open),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[g,m]=(0,n.useState)(r?"visible":"hidden"),x=k(()=>{m("hidden")}),[b,w]=(0,n.useState)(!0),N=(0,n.useRef)([r]);(0,a.s)(()=>{!1!==b&&N.current[N.current.length-1]!==r&&(N.current.push(r),w(!1))},[N,r]);let E=(0,n.useMemo)(()=>({show:r,appear:i,initial:b}),[r,i,b]);(0,n.useEffect)(()=>{if(r)m("visible");
17else if(j(x)){let e=c.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,x]);let q={unmount:s},A=(0,o._)(()=>{var t;b&&w(!1),null==(t=e.beforeEnter)||t.call(e)}),C=(0,o._)(()=>{var t;b&&w(!1),null==(t=e.beforeLeave)||t.call(e)});return n.createElement(_.Provider,{value:x},n.createElement(v.Provider,{value:E},(0,y.XX)({ourProps:{...q,as:n.Fragment,children:n.createElement(F,{ref:p,...q,...l,beforeEnter:A,beforeLeave:C})},theirProps:{},defaultTag:n.Fragment,features:T,visible:"visible"===g,name:"Transition"})))}),F=(0,y.FX)(function(e,t){var r,i,w;let N,{beforeEnter:E,afterEnter:A,beforeLeave:F,afterLeave:C,enter:P,enterFrom:S,enterTo:L,entered:O,leave:I,leaveFrom:R,leaveTo:D,...M}=e,U=(0,n.useRef)(null),W=(0,u.P)(U,t),z=null==(r=M.unmount)||r?y.mK.Unmount:y.mK.Hidden,{show:B,appear:G,initial:$}=function(){let e=(0,n.useContext)(v);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[Q,K]=(0,n.useState)(B?"visible":"hidden"),V=function(){let e=(0,n.useContext)(_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:Y,unregister:H}=V;(0,n.useEffect)(()=>Y(U),[Y,U]),(0,n.useEffect)(()=>{if(z===y.mK.Hidden&&U.current)return B&&"visible"!==Q?void K("visible"):(0,h.Y)(Q,{hidden:()=>H(U),visible:()=>Y(U)})},[Q,U,Y,H,B,z]);let X=(0,c.Y)({base:b(M.className),enter:b(P),enterFrom:b(S),enterTo:b(L),entered:b(O),leave:b(I),leaveFrom:b(R),leaveTo:b(D)}),J=(w={beforeEnter:E,afterEnter:A,beforeLeave:F,afterLeave:C},N=(0,n.useRef)(q(w)),(0,n.useEffect)(()=>{N.current=q(w)},[w]),N),Z=(0,d.g)();(0,n.useEffect)(()=>{if(Z&&"visible"===Q&&null===U.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[U,Q,Z]);let ee=G&&B&&$,et=Z&&(!$||G)?B?"enter":"leave":"idle",er=function(e=0){let[t,r]=(0,n.useState)(e),i=l(),s=(0,n.useCallback)(e=>{i.current&&r(t=>t|e)},[t,i]),o=(0,n.useCallback)(e=>!!(t&e),[t]);return{flags:t,addFlag:s,hasFlag:o,removeFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t&~e)},[r,i]),toggleFlag:(0,n.useCallback)(e=>{i.current&&r(t=>t^e)},[r])}}(0),ei=(0,o._)(e=>(0,h.Y)(e,{enter:()=>{er.addFlag(f.Uw.Opening),J.current.beforeEnter()},leave:()=>{er.addFlag(f.Uw.Closing),J.current.beforeLeave()},idle:()=>{}})),en=(0,o._)(e=>(0,h.Y)(e,{enter:()=>{er.removeFlag(f.Uw.Opening),J.current.afterEnter()},leave:()=>{er.removeFlag(f.Uw.Closing),J.current.afterLeave()},idle:()=>{}})),es=k(()=>{K("hidden"),H(U)},V),eo=(0,n.useRef)(!1);!function({immediate:e,container:t,direction:r,classes:i,onStart:n,onStop:o}){let d=l(),u=(0,s.L)(),f=(0,c.Y)(r);(0,a.s)(()=>{e&&(f.current="enter")},[e]),(0,a.s)(()=>{let e=(0,p.e)();u.add(e.dispose);let r=t.current;if(r&&"idle"!==f.current&&d.current){var s,a,l;let t,c,d,u,x,y,b;return e.dispose(),n.current(f.current),e.add((s=i.current,a="enter"===f.current,l=()=>{e.dispose(),o.current(f.current)},c=a?"enter":"leave",d=(0,p.e)(),u=void 0!==l?(t={called:!1},(...e)=>{if(!t.called)return t.called=!0,l(...e)}):()=>{},"enter"===c&&(r.removeAttribute("hidden"),r.style.display=""),x=(0,h.Y)(c,{enter:()=>s.enter,leave:()=>s.leave}),y=(0,h.Y)(c,{enter:()=>s.enterTo,leave:()=>s.leaveTo}),b=(0,h.Y)(c,{enter:()=>s.enterFrom,leave:()=>s.leaveFrom}),m(r,...s.base,...s.enter,...s.enterTo,...s.enterFrom,...s.leave,...s.leaveFrom,...s.leaveTo,...s.entered),g(r,...s.base,...x,...b),d.nextFrame(()=>{m(r,...s.base,...x,...b),g(r,...s.base,...x,...y),function(e,t){let r=(0,p.e)();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:n}=getComputedStyle(e),[s,o]=[i,n].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t}),a=s+o;if(0!==a){r.group(r=>{r.setTimeout(()=>{t(),r.dispose()},a),r.addEventListener(e,"transitionrun",e=>{e.target===e.currentTarget&&r.dispose()})});let i=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),i())})}else t();r.add(()=>t()),r.dispose}(r,()=>(m(r,...s.base,...x),g(r,...s.base,...s.entered),u()))}),d.dispose)),e.dispose}},[r])}({immediate:ee,container:U,classes:X,direction:et,onStart:(0,c.Y)(e=>{eo.current=!0,es.onStart(U,e,ei)}),onStop:(0,c.Y)(e=>{eo.current=!1,es.onStop(U,e,en),"leave"!==e||j(es)||(K("hidden"),H(U))})});let ea=M;return ee?ea={...ea,className:(0,x.x)(M.className,...X.current.enter,...X.current.enterFrom)}:eo.current&&(ea.className=(0,x.x)(M.className,null==(i=U.current)?void 0:i.className),""===ea.className&&delete ea.className),n.createElement(_.Provider,{value:es},n.createElement(f.El,{value:(0,h.Y)(Q,{visible:f.Uw.Open,hidden:f.Uw.Closed})|er.flags},(0,y.XX)({ourProps:{ref:W},theirProps:ea,defaultTag:"div",features:T,visible:"visible"===Q,name:"Transition.Child"})))}),C=(0,y.FX)(function(e,t){let r=null!==(0,n.useContext)(v),i=null!==(0,f.O_)();return n.createElement(n.Fragment,null,!r&&i?n.createElement(A,{ref:t,...e}):n.createElement(F,{ref:t,...e}))}),P=Object.assign(A,{Child:C,Root:A})},4053:(e,t,r)=>{"use strict";r.d(t,{A:()=>ey});var i=r(6029),n=r(270),s=r(2203),o=r.n(s);let a=(0,n.Ay)` 18 fragment PostPreview on Post { 19 id 20 title 21 uri 22 date 23 author { 24 node { 25 id 26 name 27 uri 28 avatar { 29 url 30 } 31 } 32 } 33 } 34`;function l({post:e,isLatest:t}){if(!e)return null;let r=e?.date?new Date(e.date).toLocaleDateString("en-us",{year:"numeric",month:"long",day:"numeric"}):null;return(0,i.jsxs)("article",{className:`flex w-full flex-col justify-between rounded-xl border border-border bg-card p-6 transition-all hover:border-primary/40 hover:shadow-glow-sm ${t?"xl:col-span-2 xl:row-span-2":""}`,children:[(0,i.jsxs)("div",{className:"mb-4 flex items-center",children:[(0,i.jsx)("img",{className:"mr-4 h-10 w-10 rounded-full border border-border",src:e.author.node.avatar.url,alt:e.author.node.name}),(0,i.jsxs)("div",{className:"text-sm",children:[(0,i.jsx)("p",{className:"leading-none text-foreground",children:e.author.node.name}),(0,i.jsx)("time",{className:"font-mono text-xs text-muted-foreground",dateTime:e.date,children:r})]})]}),(0,i.jsx)("div",{children:(0,i.jsx)("h2",{className:"mb-2 text-2xl font-bold leading-8 tracking-tight",children:(0,i.jsx)(o(),{href:e.uri,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"text-foreground hover:text-primary transition-colors",children:e.title})})})})]})}var c=r(7478),d=r(6185);function u({data:e}){if(!e||!e.category)return null;let{category:t}=e;return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{node:t}),(0,i.jsxs)("main",{className:"content px-6 max-w-lg mx-auto md:max-w-5xl mb-10",children:[(0,i.jsxs)("div",{className:"space-y-2 pt-6 pb-8 md:space-y-5",children:[(0,i.jsxs)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:["Category: ",t?.name??null]}),(0,i.jsx)("p",{className:"text-lg leading-7 text-muted-foreground",children:t?.description??null})]}),(0,i.jsx)("ul",{className:"grid gap-8 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:t?.posts?.nodes?.map((e,t)=>(0,i.jsx)("li",{className:`flex w-full ${0===t?"xl:col-span-2":""}`,children:(0,i.jsx)(l,{post:e,isLatest:0===t})},e.id))})]})]})}u.queries={category:{query:(0,n.Ay)` 35 query Category_Node($id: ID!) { 36 category(id: $id, idType: URI) { 37 ...SeoCategory 38 name 39 description 40 posts { 41 nodes { 42 ...PostPreview 43 } 44 } 45 } 46 } 47 ${a} 48 ${c.at} 49 `,variables:({seed:e})=>({id:e?.uri})}};var p=r(8588),h=r.n(p);function g({data:e}){let{user:t}=e;return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{node:t}),(0,i.jsx)("div",{className:"overflow-hidden",children:(0,i.jsx)("div",{className:"mx-auto px-4 pb-28 sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,i.jsxs)("main",{className:"content space-y-6 divide-y divide-border",children:[(0,i.jsxs)("div",{className:"pt-10 max-w-3xl mx-auto
49space-y-6 pb-16 ",children:[(0,i.jsx)("div",{className:"flex justify-center mb-8",children:(0,i.jsx)("dl",{children:(0,i.jsxs)("div",{className:"sm:flex sm:flex-wrap justify-center xl:block",children:[(0,i.jsx)("dt",{className:"sr-only",children:"Author"}),(0,i.jsx)("dd",{className:"flex justify-center font-medium m-6 sm:mx-3 xl:mx-0",children:(0,i.jsx)(h(),{src:e?.user?.avatar?.url,alt:e?.user?.name,width:50,height:50,className:"mr-3 h-10 w-10 rounded-full border border-border bg-muted"})}),(0,i.jsx)("dd",{className:"text-center items-center",children:(0,i.jsx)("h1",{className:"col-span-full break-words text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:e?.user?.name})})]})})}),(0,i.jsx)("div",{className:"prose mx-auto max-w-3xl text-center text-lg leading-7",dangerouslySetInnerHTML:{__html:e?.user?.description??""}})]}),(0,i.jsx)("div",{className:"max-w-3xl mx-auto space-y-6",children:(0,i.jsx)("ul",{className:"divide-y divide-border",children:e?.user?.posts&&e?.user?.posts.nodes.map(e=>(0,i.jsx)("li",{className:"py-12",children:(0,i.jsx)(l,{post:e})},e.id))})})]})})})]})}g.queries={user:{query:(0,n.Ay)` 50 query Author_User($id: ID!) { 51 user(id: $id, idType: URI) { 52 ...SeoUser 53 id 54 name 55 description 56 avatar { 57 url 58 } 59 posts { 60 nodes { 61 ...PostPreview 62 } 63 } 64 } 65 } 66 ${a} 67 ${c.jd} 68 `,variables:({seed:e})=>({id:e?.uri})}};var m=r(685),f=r(4611),x=r(8233),y=r(6196),b=r(6470);let v=(0,n.Ay)` 69 fragment ExtensionPreview on ExtensionPlugin { 70 id 71 title 72 uri 73 content 74 extensionFields { 75 pluginHost 76 pluginLink 77 pluginReadmeLink 78 } 79 } 80`;function w({extension:e}){return(0,i.jsx)(m.A,{title:e.title,excerpt:e?.content,href:e.extensionFields?.pluginLink,cta:"View Extension",external:!0})}let _=(0,n.Ay)` 81 fragment RecipePreview on CodeSnippet { 82 id 83 title 84 content 85 uri 86 } 87`;function j({recipe:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,i.jsx)(m.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Recipe"})}let k=(0,n.Ay)` 88 fragment FilterPreview on Filter { 89 id 90 title 91 content 92 uri 93 } 94`;function N({filter:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,i.jsx)(m.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Filter"})}let E=(0,n.Ay)` 95 fragment FunctionPreview on Function { 96 id 97 title 98 content 99 uri 100 } 101`;function q({node:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,i.jsx)(m.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Function"})}let T=(0,n.Ay)` 102 fragment ActionPreview on Action { 103 id 104 title 105 content 106 uri 107 } 108`;function A({node:e}){let t=e?.content?e.content.split("</p>"):null,r=t?t[0]+"</p>":null;return(0,i.jsx)(m.A,{title:e.title,excerpt:r,href:e.uri,cta:"View Action"})}var F=r(5729);let C=F.forwardRef(function({title:e,titleId:t,...r},i){return F.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?F.createElement("title",{id:t},e):null,F.createElement("path",{fillRule:"evenodd",d:"M4.25 2A2.25 2.25 0 002 4.25v2.5A2.25 2.25 0 004.25 9h2.5A2.25 2.25 0 009 6.75v-2.5A2.25 2.25 0 006.75 2h-2.5zm0 9A2.25 2.25 0 002 13.25v2.5A2.25 2.25 0 004.25 18h2.5A2.25 2.25 0 009 15.75v-2.5A2.25 2.25 0 006.75 11h-2.5zm9-9A2.25 2.25 0 0011 4.25v2.5A2.25 2.25 0 0013.25 9h2.5A2.25 2.25 0 0018 6.75v-2.5A2.25 2.25 0 0015.75 2h-2.5zm0 9A2.25 2.25 0 0011 13.25v2.5A2.25 2.25 0 0013.25 18h2.5A2.25 2.25 0 0018 15.75v-2.5A2.25 2.25 0 0015.75 11h-2.5z",clipRule:"evenodd"}))});var P=r(1805),S=r(9133),L=r(5973);function O({nodes:e=[]}){let t=e.filter(e=>!(0,L.y)(e?.title));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("section",{className:"relative overflow-hidden border-b border-border",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(ellipse 900px 500px at 50% 0%, hsl(var(--primary) / 0.10) 0%, transparent 70%)"}}),(0,i.jsxs)("div",{className:"mx-auto max-w-7xl px-6 py-20 lg:py-24",children:[(0,i.jsx)(P.w,{icon:C,eyebrow:"Featured Extensions",lead:"Built by the makers",accent:"of WPGraphQL.",intro:"First-party extensions from the WPGraphQL team â deeply integrated, actively maintained, and held to the same standard as core."}),(0,i.jsx)("div",{className:"mt-14 grid gap-6 md:grid-cols-3",children:L.b.map(({name:e,href:t,description:r,theme:n,Mark:s},a)=>(0,i.jsx)(o(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:`${n} group relative flex flex-col overflow-hidden rounded-2xl border border-border bg-card p-8 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-md`,children:[(0,i.jsx)(S.A,{variant:a}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-4 -top-4 h-40 w-40 rounded-full bg-primary/20 blur-2xl transition-opacity group-hover:bg-primary/30"}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-card/30 to-card"}),(0,i.jsxs)("div",{className:"relative flex flex-1 flex-col",children:[(0,i.jsx)(s,{size:64,className:"h-16 w-16 rounded-xl"}),(0,i.jsx)("h3",{className:"mt-6 text-headline font-bold tracking-tight text-foreground",children:e}),(0,i.jsx)("p",{className:"mt-2 flex-1 text-base text-muted-foreground",children:r}),(0,i.jsxs)("span",{className:"mt-6 inline-flex items-center gap-1 text-sm font-semibold text-primary",children:["Explore ",e,(0,i.jsx)("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-0.5",children:"â"})]})]})]})},t))})]})]}),t.length>0&&(0,i.jsx)("section",{className:"bg-card/40",children:(0,i.jsxs)("div",{className:"mx-auto max-w-7xl px-6 py-20",children:[(0,i.jsx)(P.w,{icon:C,eyebrow:"Community Extensions",lead:"Built by the",accent:"wider community.",intro:"Plugins that extend WPGraphQL, maintained by the wider community."}),(0,i.jsx)("div",{className:"mx-auto mt-14 grid max-w-5xl gap-5",children:t.map(e=>(0,i.jsx)(w,{extension:e},e.id))})]})})]})}var I=r(9053),R=r.n(I);function D(e){return R()(String(e??"").replace(/<[^>]*>/g," ")).replace(/\u00a0/g," ").replace(/\s+/g," ").trim()}function M({data:e,uri:t}){let{archive:r}=e,n=r?.contentNodes?.nodes??[],s=`${r?.label||r?.name||"Archive"} - WPGraphQL`,o=r?.description?D(r.description):null,a=(0,i.jsx)(c.Ay,{title:s,description:o,uri:t||r?.uri});if(r?.uri?.startsWith("/recipes")||r?.__typename==="CodeSnippetTag"&&n.length>0&&n.every(e=>"CodeSnippet"===e.__typename)){let e=(0,y.A)(),t=n.filter(e=>"CodeSnippet"===e.__typename),s=b?.relations?.byUri??{},o=t.reduce((e,t,r)=>{let i=s[String(t.uri??"").replace(/\/+$/,"").toLowerCase()]||null,n=i?.group||"Uncategorized";return e[n]||(e[n]=[]),e[n].push({...t,title:i?.title||t.title||`Recipe ${r+1}`,summary:i?.summary||""}),e},{}),l=Object.keys(o).sort((e,t)=>
108"Uncategorized"===e?1:"Uncategorized"===t?-1:e.localeCompare(t)),c={},d=l.map(e=>{let t=function(e){let t,r=String(e??"").toLowerCase().trim();do t=r,r=r.replace(/<[^>]*>/g,"");while(r!==t);return r.replace(/&[a-z0-9#]+;/gi,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}(e)||"group",r=c[t]??0;return c[t]=r+1,{id:0===r?t:`${t}-${r}`,title:e,tagName:"h2"}}),u=[{id:"recipes",title:"Recipes",tagName:"h2"},...d];return(0,i.jsxs)(f.A,{docsNavData:e,toc:u,children:[a,(0,i.jsx)(x.A,{items:[{label:"Developer Reference",href:"/developer-reference"},{label:"Recipes"}]}),(0,i.jsxs)("div",{id:"content-wrapper",className:"relative z-20 mt-8 max-w-none prose dark:prose-dark prose-code:before:content-none prose-code:after:content-none",children:[(0,i.jsx)("h1",{children:r?.label?r.label:r?.name??"Recipes"}),r?.description?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:r.description}}):(0,i.jsx)("p",{children:"WPGraphQL recipes are practical snippets that show how to customize WPGraphQL with actions, filters, and functions."}),(0,i.jsx)("div",{id:"recipes",children:l.map((e,t)=>{let r=o[e]||[],n=d[t];return(0,i.jsxs)("section",{children:[(0,i.jsx)("h2",{id:n?.id,children:e}),(0,i.jsx)("div",{className:"not-prose grid gap-5",children:r.map(e=>(0,i.jsx)(m.A,{title:e.title,excerpt:e.summary||(e?.content?function(e,t=180){let r=D(e);return r.length<=t?r:`${r.slice(0,t).trim()}...`}(e.content):""),href:e.uri,cta:"View recipe"},e.id||e.uri))})]},e)})})]})]})}return n.some(e=>"ExtensionPlugin"===e.__typename)?(0,i.jsxs)(d.A,{children:[a,(0,i.jsx)(O,{nodes:n})]}):(0,i.jsxs)(d.A,{children:[a,(0,i.jsxs)("div",{className:"mx-auto max-w-5xl px-6 pb-24 pt-16 sm:pt-20",children:[(0,i.jsxs)("header",{className:"mx-auto max-w-3xl text-center",children:[(0,i.jsx)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:r?.label?r.label:r?.name??"Archive"}),r?.description&&(0,i.jsx)("div",{className:"prose mx-auto mt-5 text-base leading-relaxed sm:text-lg",dangerouslySetInnerHTML:{__html:r.description}})]}),(0,i.jsx)("main",{className:"mt-12 grid gap-5 sm:mt-16",children:r?.contentNodes?.nodes?.map(e=>{switch(e.__typename){case"ExtensionPlugin":return(0,i.jsx)(w,{extension:e},e.id);case"CodeSnippet":return(0,i.jsx)(j,{recipe:e},e.id);case"Filter":return(0,i.jsx)(N,{filter:e},e.id);case"Function":return(0,i.jsx)(q,{node:e},e.id);case"Action":return(0,i.jsx)(A,{node:e},e.id);default:return(0,i.jsx)("pre",{className:"overflow-auto rounded-xl border border-border bg-card p-6 text-xs",children:JSON.stringify(e,null,2)},e.id)}})})]})]})}function U({data:e}){return(0,i.jsx)(d.A,{children:(0,i.jsxs)("main",{className:"content",children:[(0,i.jsx)("h2",{children:"INDEX..."}),(0,i.jsx)("pre",{children:JSON.stringify(e,null,2)})]})})}function W(e){return R()(String(e??"").replace(/<[^>]*>/g," ")).replace(/\u00a0/g," ").replace(/\s+/g," ").trim()}function z({data:e}){var t;let r,n,{node:s}=e;if(!s)return null;let{content:a,toc:l}=(t=s.content,r={},n=[],{content:String(t??"").replace(/<h([23])([^>]*)>([\s\S]*?)<\/h\1>/gi,(e,t,i,s)=>{let o=i.match(/\sid=(["'])(.*?)\1/i),a=W(s),l=function(e){let t,r=String(e??"").toLowerCase().trim();do t=r,r=r.replace(/<[^>]*>/g,"");while(r!==t);return r.replace(/&[a-z0-9#]+;/gi,"").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")}(o?.[2]||a)||"section",c=r[l]??0;r[l]=c+1;let d=0===c?l:`${l}-${c}`,u=2===Number(t)?"h2":"h3";n.push({id:d,title:a||"Section",tagName:u});let p=i.replace(/\sid=(["']).*?\1/i,"");return`<h${t}${p} id="${d}">${s}</h${t}>`}),toc:n}),d=(0,y.A)(),u=function(e,t=200){let r=W(e);return r.length<=t?r:`${r.slice(0,t).trim()}...`}(s.content),p=b?.relations?.byUri?.[String(s.uri??"").replace(/\/+$/,"").toLowerCase()]||null,h=Array.isArray(p?.relatedActions)?p.relatedActions:[],g=Array.isArray(p?.relatedFilters)?p.relatedFilters:[],m=Array.isArray(p?.relatedFunctions)?p.relatedFunctions:[],v=h.length>0||g.length>0||m.length>0,w=[{id:"overview",title:"Overview",tagName:"h2"},...v?[{id:"related-apis",title:"Related APIs",tagName:"h2"}]:[],...l];return(0,i.jsxs)(f.A,{docsNavData:d,toc:w,children:[(0,i.jsx)(c.Ay,{node:s}),(0,i.jsx)(x.A,{items:[{label:"Developer Reference",href:"/developer-reference"},{label:"Recipes",href:"/recipes"},...s.title?[{label:s.title}]:[]]}),(0,i.jsx)("div",{id:"content-wrapper",className:"relative z-20 mt-8 max-w-none prose dark:prose-dark prose-code:before:content-none prose-code:after:content-none",children:(0,i.jsxs)("article",{children:[(0,i.jsxs)("header",{children:[s.title?(0,i.jsx)("h1",{children:s.title}):null,u?(0,i.jsx)("p",{children:u}):null,s?.recipeTags?.nodes?.length?(0,i.jsx)("ul",{className:"not-prose m-0 mb-6 flex list-none flex-wrap gap-2 p-0",children:s.recipeTags.nodes.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(o(),{href:e.uri,className:"inline-flex items-center rounded-md border border-slate-300 px-2.5 py-1 text-xs font-semibold uppercase tracking-wide text-slate-700 hover:border-sky-500 hover:text-sky-500 dark:border-slate-600 dar
108k:text-slate-300 dark:hover:border-sky-300 dark:hover:text-sky-300",children:e.name})},e.id))}):null]}),(0,i.jsx)("div",{id:"overview",children:s.content?(0,i.jsx)("div",{id:"content",dangerouslySetInnerHTML:{__html:a}}):null}),v?(0,i.jsxs)("section",{id:"related-apis",children:[(0,i.jsx)("h2",{children:"Related APIs"}),h.length>0?(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{children:"Actions"}),(0,i.jsx)("ul",{children:h.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(o(),{href:`/actions/${e}`,children:e})},`action-${e}`))})]}):null,g.length>0?(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{children:"Filters"}),(0,i.jsx)("ul",{children:g.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(o(),{href:`/filters/${e}`,children:e})},`filter-${e}`))})]}):null,m.length>0?(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{children:"Functions"}),(0,i.jsx)("ul",{children:m.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(o(),{href:`/functions/${e}`,children:e})},`function-${e}`))})]}):null]}):null]})})]})}function B({data:e}){let{post:t}=e;if(!t)return null;let r=t?.date?new Date(t.date).toLocaleDateString("en-us",{weekday:"long",year:"numeric",month:"long",day:"numeric"}):null;return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{node:t}),(0,i.jsx)("div",{className:"overflow-hidden",children:(0,i.jsx)("div",{className:"mx-auto mt-10 px-4 pb-6 sm:mt-16 sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,i.jsx)("main",{className:"content",children:(0,i.jsxs)("article",{className:"relative pt-10 max-w-3xl mx-auto",children:[(0,i.jsxs)("header",{children:[(0,i.jsxs)("dl",{children:[(0,i.jsx)("dt",{className:"sr-only",children:"Date"}),(0,i.jsx)("dd",{className:"absolute inset-x-0 top-0 text-center text-sm font-mono text-muted-foreground",children:(0,i.jsx)("time",{dateTime:t?.date,children:r})})]}),(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsx)("h1",{className:"col-span-full break-words text-center text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:t.title}),(0,i.jsx)("div",{className:"flex flex-wrap justify-center gap-3",children:t?.categories?.nodes?.map((e,t)=>(0,i.jsx)(o(),{href:e.uri,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary hover:text-orange-wpg-200",children:e.name})},t))})]}),(0,i.jsx)("div",{className:"flex justify-center my-8",children:(0,i.jsx)("dl",{children:(0,i.jsxs)("div",{className:"justify-center",children:[(0,i.jsx)("dt",{className:"sr-only",children:"Author"}),(0,i.jsx)("dd",{className:"flex justify-center font-medium mt-6 mx-3",children:(0,i.jsx)(h(),{src:t?.author?.node?.avatar?.url,alt:t?.author?.node?.name,width:50,height:50,className:"mr-3 h-10 w-10 rounded-full border border-border bg-muted"})}),(0,i.jsx)("dd",{className:"text-center items-center",children:(0,i.jsx)(o(),{href:t?.author?.node?.uri,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"text-primary hover:text-orange-wpg-200 transition-colors pt-5 text-center",children:t?.author?.node?.name})})})]})})})]}),(0,i.jsx)("div",{className:"mx-auto py-12 px-4 max-w-7xl sm:px-6 lg:px-8 lg:py-12",children:(0,i.jsx)("div",{id:"content",className:"prose",dangerouslySetInnerHTML:{__html:t.content}})})]})})})})]})}function G({data:e,uri:t}){let r=e?.posts?.nodes;return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{title:"Blog - WPGraphQL",description:"Read the latest posts from the WPGraphQL team",uri:t}),(0,i.jsxs)("main",{className:"content px-6 max-w-lg mx-auto md:max-w-5xl mb-10",children:[(0,i.jsxs)("div",{className:"space-y-2 pt-6 pb-8 md:space-y-5",children:[(0,i.jsx)("h1",{className:"text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:"Blog"}),(0,i.jsx)("p",{className:"text-lg leading-7 text-muted-foreground",children:"Read the latest posts from the WPGraphQL team"})]}),(0,i.jsx)("ul",{className:"grid gap-8 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:r.map((e,t)=>(0,i.jsx)("li",{className:`flex w-full ${0===t?"xl:col-span-2":""}`,children:(0,i.jsx)(l,{post:e,isLatest:0===t})},e.id))})]})]})}M.queries={archive:{query:(0,n.Ay)` 109 query Archive_Node($uri: String!) { 110 archive: nodeByUri(uri: $uri) { 111 __typename 112 id 113 uri 114 ... on ContentType { 115 name 116 description 117 label 118 contentNodes(first: 100) { 119 nodes { 120 __typename 121 ...ExtensionPreview 122 ...RecipePreview 123 ...FilterPreview 124 ...FunctionPreview 125 ...ActionPreview 126 } 127 } 128 } 129 ... on TermNode { 130 name 131 description 132 ... on CodeSnippetTag { 133 contentNodes(first: 100) { 134 nodes { 135 __typename 136 ...ExtensionPreview 137 ...RecipePreview 138 ...FilterPreview 139 ...FunctionPreview 140 ...ActionPreview 141 } 142 } 143 } 144 } 145 } 146 } 147 ${v} 148 ${_} 149 ${k} 150 ${E} 151 ${T} 152 `,variables:({seed:e})=>({uri:e?.uri})}},U.queries={posts:{query:(0,n.Ay)` 153 query Index_Posts { 154 INDEX: __typename 155 posts { 156 nodes { 157 id 158 title 159 author { 160 node { 161 name 162 uri 163 } 164 } 165 } 166 } 167 } 168 `,variables:()=>({})}},z.queries={node:{query:(0,n.Ay)` 169 query SingleCodeSnippet_Node($uri: ID!) { 170 node: contentNode(id: $uri, idType: URI) { 171 ...Seo 172 id
173 ... on NodeWithTitle { 174 title 175 } 176 uri 177 ... on NodeWithContentEditor { 178 content 179 } 180 ... on CodeSnippet { 181 recipeTags: codeSnippetTags { 182 nodes { 183 id 184 name 185 uri 186 } 187 } 188 } 189 } 190 } 191 ${c.Sv} 192 `,variables:({seed:e})=>({uri:e?.uri})}},B.queries={post:{query:(0,n.Ay)` 193 query Singular_Post($uri: ID!) { 194 post(id: $uri, idType: URI) { 195 ...Seo 196 id 197 title 198 uri 199 date 200 content 201 author { 202 node { 203 name 204 uri 205 avatar { 206 url 207 } 208 } 209 } 210 categories { 211 nodes { 212 id 213 name 214 uri 215 } 216 } 217 } 218 } 219 ${c.Sv} 220 `,variables:({uri:e})=>({uri:e})}},G.queries={posts:{query:(0,n.Ay)` 221 query ArchivePost_Posts($first: Int) { 222 posts(first: $first) { 223 nodes { 224 ...PostPreview 225 } 226 } 227 } 228 ${a} 229 `,variables:()=>({first:100})}};var $=r(6947);function Q(){return(0,i.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,i.jsxs)("div",{className:"relative mx-auto max-w-4xl overflow-hidden rounded-2xl border border-border bg-card px-8 py-16 text-center shadow-elev-lg sm:px-16",children:[(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute left-1/2 -bottom-1/4 -z-10 h-[60%] w-[60%] -translate-x-1/2 rounded-full bg-primary/20 blur-3xl"}),(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Get Started"}),(0,i.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Boost your productivity with"," ",(0,i.jsx)("span",{className:"text-primary",children:"WPGraphQL"})]}),(0,i.jsx)("p",{className:"mx-auto mt-4 max-w-xl text-base text-muted-foreground sm:text-lg",children:"Free, open-source, and trusted by teams shipping WordPress at scale."}),(0,i.jsxs)("div",{className:"mt-10 flex flex-wrap justify-center gap-4",children:[(0,i.jsx)($.$,{asChild:!0,size:"lg",children:(0,i.jsx)("a",{href:"https://wordpress.org/plugins/wp-graphql",target:"_blank",rel:"noreferrer",children:"Download the Plugin"})}),(0,i.jsx)($.$,{asChild:!0,variant:"secondary",size:"lg",children:(0,i.jsx)(o(),{href:"/docs/introduction",children:"Read the Docs"})})]})]})})}function K(){return(0,i.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,i.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,i.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Extensions"}),(0,i.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Take your graph ",(0,i.jsx)("span",{className:"text-primary",children:"further"})]}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"Build queries faster, bring every custom field into your schema, and serve responses at the edge â first-party extensions from the team behind WPGraphQL, held to the same standard as core."})]}),(0,i.jsx)("div",{className:"mt-14 grid gap-6 md:grid-cols-3",children:L.b.map(({name:e,href:t,description:r,theme:n,Mark:s},a)=>(0,i.jsx)(o(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:`${n} group relative flex flex-col overflow-hidden rounded-2xl border border-border bg-card p-8 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-md`,children:[(0,i.jsx)(S.A,{variant:a}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-4 -top-4 h-40 w-40 rounded-full bg-primary/20 blur-2xl transition-opacity group-hover:bg-primary/30"}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-b from-transparent via-card/30 to-card"}),(0,i.jsxs)("div",{className:"relative flex flex-1 flex-col",children:[(0,i.jsx)(s,{size:64,className:"h-16 w-16 rounded-xl"}),(0,i.jsx)("h3",{className:"mt-6 text-headline font-bold tracking-tight text-foreground",children:e}),(0,i.jsx)("p",{className:"mt-2 flex-1 text-base text-muted-foreground",children:r}),(0,i.jsxs)("span",{className:"mt-6 inline-flex items-center gap-1 text-sm font-semibold text-primary",children:["Explore ",e,(0,i.jsx)("span",{"aria-hidden":"true",className:"transition-transform group-hover:translate-x-0.5",children:"â"})]})]})]})},t))}),(0,i.jsx)("div",{className:"mt-12 flex justify-center",children:(0,i.jsx)($.$,{asChild:!0,variant:"outline",size:"lg",children:(0,i.jsx)(o(),{href:"/extensions",children:"Browse all extensions"})})})]})})}
229let V={key:"ide-tok-key",str:"ide-tok-str",num:"ide-tok-num",kw:"ide-tok-kw",punc:"ide-tok-punc",cmt:"ide-tok-cmt"};function Y({kind:e="key",children:t}){return(0,i.jsx)("span",{className:V[e]||V.key,children:t})}function H({children:e}){return(0,i.jsx)("div",{className:"ide-pane-bg ide-muted border-b ide-border px-4 py-2 text-left font-mono text-[0.6rem] font-medium uppercase tracking-widest",children:e})}function X({query:e,response:t,label:r="GraphiQL",className:n=""}){return(0,i.jsxs)("div",{className:`ide-bg ide-text overflow-hidden rounded-xl border ide-border text-left shadow-elev-lg ${n}`,role:"img","aria-label":"Mock GraphQL IDE showing a query and its response",children:[(0,i.jsxs)("div",{className:"ide-header-bg flex items-center justify-between border-b ide-border px-4 py-2.5",children:[(0,i.jsxs)("div",{className:"flex gap-1.5",children:[(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#FF5F57]"}),(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#FEBC2E]"}),(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#28C840]"})]}),(0,i.jsx)("span",{className:"ide-muted font-mono text-[0.65rem] font-medium uppercase tracking-widest",children:r})]}),(0,i.jsxs)("div",{className:"ide-divide grid grid-cols-1 sm:grid-cols-2 [&>*+*]:border-t sm:[&>*+*]:border-t-0 sm:[&>*+*]:border-l",children:[(0,i.jsxs)("section",{children:[(0,i.jsx)(H,{children:"Query"}),(0,i.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.8rem] leading-relaxed",children:e})]}),(0,i.jsxs)("section",{children:[(0,i.jsx)(H,{children:"Response"}),(0,i.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.8rem] leading-relaxed",children:t})]})]})]})}let J=[{title:"Hello, world",author:"Jane Doe",date:"Dec 8, 2025"},{title:"Welcome to wpgraphql.blog",author:"Alex Chen",date:"Dec 4, 2025"},{title:"Querying sticky posts with GraphQL",author:"Sam Patel",date:"Nov 27, 2025"}];function Z({children:e}){return(0,i.jsx)("div",{className:"ide-pane-bg ide-muted border-b ide-border px-4 py-2 text-left font-mono text-[0.6rem] font-medium uppercase tracking-widest",children:e})}function ee({title:e,author:t,date:r}){return(0,i.jsxs)("article",{className:"ide-pane-bg group relative rounded-lg border ide-border p-3",children:[(0,i.jsx)("span",{"aria-hidden":"true",className:"absolute -top-2 left-3 rounded-sm border ide-border ide-pane-bg ide-tok-key px-1.5 py-0.5 font-mono text-[0.55rem] uppercase tracking-widest opacity-0 transition-opacity group-hover:opacity-100",children:"<PostCard />"}),(0,i.jsx)("h4",{className:"ide-text text-[0.85rem] font-semibold leading-tight",children:e}),(0,i.jsxs)("p",{className:"ide-muted mt-1 font-mono text-[0.65rem]",children:["by ",(0,i.jsx)("span",{className:"ide-tok-str",children:t})," \xb7 ",r]})]})}let et=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"cmt",children:"// pages/index.tsx"}),"\n",(0,i.jsx)(Y,{kind:"kw",children:"query"})," ",(0,i.jsx)(Y,{kind:"key",children:"GetRecentPosts"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"posts"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"nodes"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"..."}),(0,i.jsx)(Y,{kind:"key",children:"PostCard"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n","\n",(0,i.jsx)(Y,{kind:"cmt",children:"// components/PostCard.tsx"}),"\n",(0,i.jsx)(Y,{kind:"kw",children:"fragment"})," ",(0,i.jsx)(Y,{kind:"key",children:"PostCard"})," ",(0,i.jsx)(Y,{kind:"kw",children:"on"})," ",(0,i.jsx)(Y,{kind:"key",children:"Post"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"id"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"title"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"date"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"author"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"node"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"name"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]});function er(){return(0,i.jsxs)("div",{className:"ide-bg ide-text overflow-hidden rounded-xl border ide-border text-left shadow-elev-lg",role:"img","aria-label":"Data colocation demo: a posts feed UI with co-located GraphQL fragments",children:[(0,i.jsxs)("div",{className:"ide-header-bg flex items-center justify-between border-b ide-border px-4 py-2.5",children:[(0,i.jsxs)("div",{className:"flex gap-1.5",children:[(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#FF5F57]"}),(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#FEBC2E]"}),(0,i.jsx)("span",{className:"size-2.5 rounded-full bg-[#28C840]"})]}),(0,i.jsx)("span",{className:"ide-muted font-mono text-[0.65rem] font-medium uppercase tracking-widest",children:"GraphQL \xb7 React"})]}),(0,i.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 [&>*+*]:border-t [&>*+*]:ide-border sm:[&>*+*]:border-t-0 sm:[&>*+*]:border-l",children:[(0,i.jsxs)("section",{children:[(0,i.jsx)(Z,{children:"Preview"}),(0,i.jsxs)("div",{className:"space-y-3 p-4",children:[(0,i.jsx)("h3",{className:"ide-text font-mono text-[0.7rem] uppercase tracking-widest",children:"Recent Posts"}),J.map(e=>(0,i.jsx)(ee,{...e},e.title)),(0,i.jsx)("p",{className:"ide-muted pt-1 text-center font-mono text-[0.55rem]",children:"Hover a card to see its component name"})]})]}),(0,i.jsxs)("section",{children:[(0,i.jsx)(Z,{children:"Co-located Fragments"}),(0,i.jsx)("pre",{className:"overflow-x-auto px-4 py-4 text-left font-mono text-[0.78rem] leading-relaxed",children:et})]})]})]})}let ei=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"kw",children:"query"})," ",(0,i.jsx)(Y,{kind:"key",children:"GetUser"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"user"}),(0,i.jsx)(Y,{kind:"punc",children:"("}),(0,i.jsx)(Y,{kind:"key",children:"id"}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"dXNlcjox"'}),(0,i.jsxs)(Y,{kind:"punc",children:[") ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"name"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"email"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]}),en=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"data"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"user"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"name"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"Jane Doe"'}),(0,i.jsx)(Y,{kind:"punc",children:","}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"email"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"[email protected]"'}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]}),es=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"kw",children:"query"})," ",(0,i.jsx)(Y,{kind:"key",children:"GetPostsWithAuthor"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"posts"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"nodes"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"title"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"author"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"node"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"name"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"categories"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"nodes"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"name"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]}),eo=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"data"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"posts"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"nodes"'}),(0,i.jsx)(Y,{kind:"punc",children:": ["}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"title"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"Hello, world"'}),(0,i.jsx)(Y,{kind:"punc",children:","}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"author"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"node"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"name"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"Jane"'}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),(0,i.jsx)(Y,{kind:"punc",children:","}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"categories"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"nodes"'}),(0,i.jsx)(Y,{kind:"punc",children:": ["}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"name"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"News"'}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"]"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"]"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]});function ea({eyebrow:e,title:t,body:r,query:n,response:s}){return(0,i.jsx)("section",{className:"py-20 sm:py-28",children:(0,i.jsxs)("div",{className:"mx-auto max-w-3xl px-4 text-center sm:px-6 lg:max-w-7xl lg:px-8",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:e}),(0,i.jsx)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:t}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:r}),(0,i.jsx)("div",{className:"mx-auto mt-12 max-w-4xl",children:(0,i.jsx)(X,{query:n,response:s})})]})})}function el(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ea,{eyebrow:"Efficient Data Fetching",title:(0,i.jsxs)(i.Fragment,{children:["Query what you need."," ",(0,i.jsx)("span",{className:"text-primary",children:"Get exactly that."})]}),body:"With GraphQL, the client makes declarative queries, asking for the exact data needed, and exactly what was asked for is given in response â nothing more. Clients have control over their application, and the GraphQL server only fetches what was requested.",query:ei,response:en}
229),(0,i.jsx)(ea,{eyebrow:"Nested Resources",title:(0,i.jsxs)(i.Fragment,{children:["Fetch many resources in a"," ",(0,i.jsx)("span",{className:"text-primary",children:"single request"})]}),body:"GraphQL queries access multiple root resources and smoothly follow references between connected ones. While a typical REST API would require round-trip requests to many endpoints, GraphQL can return everything your app needs in one round-trip â quick even on slow mobile connections.",query:es,response:eo}),(0,i.jsx)("section",{className:"py-20 sm:py-28",children:(0,i.jsxs)("div",{className:"mx-auto max-w-3xl px-4 text-center sm:px-6 lg:max-w-7xl lg:px-8",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Data Colocation"}),(0,i.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Define data needs"," ",(0,i.jsx)("span",{className:"text-primary",children:"next to your components"})]}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"GraphQL fragments let each component declare the fields it needs. Compose those fragments into one query at the page level â the data graph stays in sync with the UI tree, automatically."}),(0,i.jsx)("div",{className:"mx-auto mt-12 max-w-4xl",children:(0,i.jsx)(er,{})})]})})]})}let ec=[{name:"Gatsby",src:"/logos/logo-gatsby.png"}
229,{name:"Next.js",src:"/logos/logo-nextjs.png"},{name:"Vue",src:"/logos/logo-vue.png"},{name:"Svelte",src:"/logos/logo-svelte.png"}];function ed(){return(0,i.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,i.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,i.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Framework Agnostic"}),(0,i.jsxs)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:["Build rich JavaScript applications with"," ",(0,i.jsx)("span",{className:"text-primary",children:"WordPress & GraphQL"})]}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-prose text-base text-muted-foreground sm:text-lg",children:"WPGraphQL separates your CMS from your presentation layer. Content creators use the CMS they know; developers use the frameworks and tools they love."})]}),(0,i.jsx)("div",{className:"mx-auto mt-14 grid max-w-4xl grid-cols-2 gap-3 sm:grid-cols-4",children:ec.map(e=>(0,i.jsxs)("div",{className:"group flex flex-col items-center gap-3 rounded-xl border border-border bg-card p-6 transition-all hover:-translate-y-1 hover:border-primary/40 hover:shadow-glow-sm",children:[(0,i.jsx)(h(),{src:e.src,alt:e.name,height:56,width:56,className:"h-14 w-auto"}),(0,i.jsx)("span",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground group-hover:text-foreground",children:e.name})]},e.name))})]})})}let eu=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"kw",children:"query"})," ",(0,i.jsx)(Y,{kind:"key",children:"GetPosts"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"posts"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"nodes"})," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"title"}),"\n"," ",(0,i.jsx)(Y,{kind:"key",children:"date"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]}),ep=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"data"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"posts"'}),(0,i.jsxs)(Y,{kind:"punc",children:[": ","{"]}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"nodes"'}),(0,i.jsx)(Y,{kind:"punc",children:": ["}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"{"}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"title"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"Hello, world"'}),(0,i.jsx)(Y,{kind:"punc",children:","}),"\n"," ",(0,i.jsx)(Y,{kind:"str",children:'"date"'}),(0,i.jsx)(Y,{kind:"punc",children:": "}),(0,i.jsx)(Y,{kind:"str",children:'"2025-12-08"'}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"]"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n"," ",(0,i.jsx)(Y,{kind:"punc",children:"}"}),"\n",(0,i.jsx)(Y,{kind:"punc",children:"}"})]});function eh(){return(0,i.jsxs)("section",{className:"relative overflow-hidden",children:[(0,i.jsx)(S.A,{variant:7,count:48,width:1440,height:720,opacity:.75,intensity:1.6,className:"-z-10 [mask-image:linear-gradient(to_bottom,black,transparent_85%)]"}),(0,i.jsx)("div",{className:"mx-auto max-w-8xl px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,i.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-2",children:[(0,i.jsxs)("div",{className:"lg:max-w-xl",children:[(0,i.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card/60 px-3 py-1 font-mono text-xs text-muted-foreground",children:[(0,i.jsx)("span",{className:"size-1.5 rounded-full bg-primary animate-glow-pulse"}),"Free \xb7 Open Source \xb7 GPL-3"]}),(0,i.jsxs)("h1",{className:"mt-6 text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:["GraphQL API for"," ",(0,i.jsx)("span",{className:"text-primary",children:"every WordPress site"})]}),(0,i.jsx)("p",{className:"mt-6 max-w-lg text-base leading-relaxed text-muted-foreground sm:text-lg",children:"WPGraphQL is a free, open-source WordPress plugin that provides an extendable GraphQL schema and API for any WordPress site."}),(0,i.jsxs)("div",{className:"mt-10 flex flex-wrap items-center gap-4",children:[(0,i.jsx)($.$,{asChild:!0,size:"lg",children:(0,i.jsx)("a",{href:"https://wordpress.org/plugins/wp-graphql",target:"_blank",rel:"noreferrer",children:"Download the Plugin"})}),(0,i.jsx)($.$,{asChild:!0,variant:"secondary",size:"lg",children:(0,i.jsx)(o(),{href:"/docs/introduction",children:"Read the Docs"})})]})]}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(X,{query:eu,response:ep}),(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 top-0 -z-10 h-[55vh] w-[55vh] -translate-y-1/3 translate-x-1/3 rounded-full bg-primary/15 blur-3xl"})]})]})})]})}let eg=[{src:"/logos/logo-apollo.png",alt:"Apollo GraphQL",width:80,height:80},{src:"/logos/logo-credit-karma.png",alt:"Credit Karma",width:80,height:80},{src:"/logos/logo-denverpost.svg",alt:"The Denver Post",width:220,height:80},{src:"/logos/logo-dfuzr.png",alt:"Dfuzr",width:260,height:80},{src:"/logos/logo-funkhaus.png",alt:"Funkhaus",width:280,height:80},{src:"/logos/logo-harness.png",alt:"Harness Software",width:250,height:75},{src:"/logos/logo-webdev-studios.png",alt:"Web Dev Studios",width:200,height:75},{src:"/logos/logo-quartz.jpg",alt:"Quartz",width:80,height:80},{src:"/logos/logo-hope-lab.png",alt:"Hope Lab",width:120,height:80}];function em(){return(0,i.jsx)("section",{className:"px-4 py-20 sm:px-6 lg:px-8 lg:py-28",children:(0,i.jsxs)("div",{className:"mx-auto max-w-7xl text-center",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-primary",children:"Trusted by"}),(0,i.jsx)("h2",{className:"mt-3 text-display-sm font-bold tracking-tight text-foreground sm:text-display-md",children:"Who's using WPGraphQL?"}),(0,i.jsx)("p",{className:"mx-auto mt-5 max-w-2xl text-base text-muted-foreground sm:text-lg",children:"Digital agencies, product teams and freelancers around the world trust WPGraphQL in production to bridge modern front-end stacks with content managed in WordPress."}),(0,i.jsx)("div",{className:"mt-12 grid grid-cols-2 gap-3 sm:grid-cols-3",children:eg.map(e=>(0,i.jsx)("div",{className:"flex h-28 items-center justify-center rounded-xl border border-border bg-white px-8 ring-1 ring-transparent transition-all hover:ring-primary/40",children:(0,i.jsx)(h(),{src:e.src,alt:e.alt,width:e.width,height:e.height,className:"max-h-12 w-auto opacity-90 transition-opacity hover:opacity-100"})},e.alt))})]})})}function ef({uri:e}){return(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{title:"WPGraphQL - The GraphQL API for WordPress",description:"WPGraphQL is a free, open-source WordPress plugin that provides an extendable GraphQL schema and API for any WordPress site.",uri:e||"/"}),(0,i.jsxs)("main",{className:"content",children:[(0,i.jsx)(eh,{}),(0,i.jsx)(ed,{}),(0,i.jsx)(el,{}),(0,i.jsx)(K,{}),(0,i.jsx)(em,{}),(0,i.jsx)(Q,{})]})]})}function ex({data:e}){let{post:t}=e;return t?(0,i.jsxs)(d.A,{children:[(0,i.jsx)(c.Ay,{node:t}),(0,i.jsx)("div",{className:"overflow-hidden",children:(0,i.jsx)("div",{className:"mx-auto mt-10 px-4 pb-6 sm:mt-16 sm:px-6 md:px-8 xl:px-12 xl:max-w-6xl",children:(0,i.jsx)("main",{className:"content",children:(0,i.jsxs)("article",{className:"relative pt-10 max-w-3xl mx-auto",children:[(0,i.jsx)("header",{children:(0,i.jsx)("div",{className:"space-y-6",children:(0,i.jsx)("h1",{className:"col-span-full break-words text-center text-display-md font-extrabold tracking-tight text-foreground sm:text-display-lg",children:t.title})})}),(0,i.jsx)("div",{className:"mx-auto py-12 px-4 max-w-7xl sm:px-6 lg:px-8 lg:py-12",children:(0,i.jsx)("div",{id:"content",className:"prose",dangerouslySetInnerHTML:{__html:t.content}})})]})})})})]}):null}ef.queries={},ex.queries={post:{query:(0,n.Ay)` 230 query SingleDeveloperReference_Post($uri: ID!) { 231 post(id: $uri, idType: URI) { 232 ...Seo 233 id 234 title 235 uri 236 content 237 } 238 } 239 `,variables:({seed:e})=>({uri:e?.uri})}};let ey={category:u,author:g,archive:M,"archive-post":G,"single-code-snippet"
239:z,"single-function":ex,"single-action":ex,"single-filter":ex,singular:B,"front-page":ef,home:G,index:U}},4149:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var i=r(5729),n=r(6308);let s=function(e){let t=(0,n.Y)(e);return i.useCallback((...e)=>t.current(...e),[t])}},4353:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});var i=r(6029);function n({size:e=32,variant:t="default",showGlow:r=!1,showSweep:s=!1,className:o,style:a}){let l="reversed"===t,c=l?"rgba(0,0,0,0.55)":"#F43F5E",d=l?"rgba(0,0,0,0.2)":"#F43F5E",u=e<=20?5:e<=32?3.5:1.5,p=e<=20?6:e<=32?4:2,h=e<=20?7:e<=32?4.5:2.5;return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL Smart Cache",className:o,style:{...r?{filter:"drop-shadow(0 0 24px rgba(244,63,94,0.42)) drop-shadow(0 0 6px rgba(244,63,94,0.25))"}:{},...a},children:[(0,i.jsx)("rect",{width:"160",height:"160",rx:"36",fill:l?"#F43F5E":"#0C1220"}),(0,i.jsx)("circle",{cx:"80",cy:"80",r:"60",stroke:c,strokeWidth:u,fill:"none",opacity:"0.18"}),(0,i.jsx)("circle",{cx:"80",cy:"80",r:"44",stroke:c,strokeWidth:p,fill:"none",opacity:"0.40"}),(0,i.jsx)("circle",{cx:"80",cy:"80",r:"28",stroke:c,strokeWidth:h,fill:"none",opacity:"0.72"}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("path",{d:"M 80 80 L 130 30 A 71 71 0 0 0 151 80 Z",fill:d,opacity:"0.05"}),(0,i.jsx)("line",{x1:"80",y1:"80",x2:"130",y2:"30",stroke:d,strokeWidth:"1",strokeLinecap:"round",opacity:"0.2"}),(0,i.jsx)("circle",{cx:"116",cy:"44",r:"2.5",fill:l?"rgba(0,0,0,0.5)":"#FB7185",opacity:"0.75"})]}),(0,i.jsx)("circle",{cx:"80",cy:"80",r:"9",fill:l?"rgba(0,0,0,0.45)":"#F43F5E",opacity:"0.93"}),(0,i.jsx)("circle",{cx:"80",cy:"80",r:"4.5",fill:l?"rgba(255,255,255,0.75)":"#FFF1F2",opacity:"0.87"})]})}},4611:(e,t,r)=>{"use strict";r.d(t,{A:()=>F});var i=r(6029),n=r(5669),s=r.n(n),o=r(5729),a=r(2203),l=r.n(a),c=r(1278),d=r(5429),u=r(4656);function p(e){return(e||"").split(/[?#]/)[0].replace(/\/$/,"")}function h(e,t){if(!e)return!1;let r=p(e.href);return!!r&&r===t||!!Array.isArray(e.items)&&e.items.some(e=>h(e,t))}function g({item:e,currentPath:t,className:r}){let n=p(e.href),s=n&&n===t;return(0,i.jsx)(l(),{href:e.href,legacyBehavior:!0,children:(0,i.jsx)("a",{"aria-current":s?"page":void 0,className:(0,u.cn)("-ml-px block border-l py-1 pl-4 text-sm transition-colors",s?"border-primary text-primary":"border-transparent text-muted-foreground hover:border-primary/50 hover:text-foreground",r),children:e.title})})}function m({item:e,currentPath:t}){let r=h(e,t),[n,s]=(0,o.useState)(null),[a,l]=(0,o.useState)(t);a!==t&&(l(t),s(null));let c=n??r;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)("div",{className:"min-w-0 flex-1",children:(0,i.jsx)(g,{item:e,currentPath:t})}),(0,i.jsx)("button",{type:"button","aria-expanded":c,"aria-label":`${c?"Collapse":"Expand"} ${e.title}`,onClick:()=>s(!c),className:"flex h-6 w-6 flex-none items-center justify-center rounded text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,i.jsx)(d.A,{"aria-hidden":"true",className:(0,u.cn)("h-4 w-4 transition-transform",c&&"rotate-90")})})]}),c&&(0,i.jsx)("ul",{className:"ml-4 border-l border-border",children:e.items.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(g,{item:e,currentPath:t})},e.href))})]})}function f({docsNavData:e}){let{asPath:t}=(0,c.useRouter)(),r=p(t),n=(0,o.useMemo)(()=>{if(!e)return null;for(let[t,i]of Object.entries(e))if(i?.some(e=>h(e,r)))return t;return null},[e,r]),s=(0,o.useRef)({});return((0,o.useEffect)(()=>{if(!n)return;let e=s.current[n];if(!e)return;let t=function(e){let t=e?.parentElement;for(;t;){let e=window.getComputedStyle(t).overflowY;if("auto"===e||"scroll"===e)return t;t=t.parentElement}return null}(e);if(!t)return;let r=e.getBoundingClientRect().top,i=t.getBoundingClientRect().top;t.scrollTop+=r-i},[n,r]),e)?(0,i.jsx)("nav",{children:Object.keys(e).reduce((t,n)=>{let o=e[n];return o?.length&&t.push((0,i.jsxs)("div",{ref:e=>{e&&(s.current[n]=e)},className:"mb-8",children:[(0,i.jsx)("h3",{className:"mb-3 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:n}),(0,i.jsx)("ul",{className:"border-l border-border space-y-1",children:o.map(e=>(0,i.jsx)("li",{children:Array.isArray(e.items)&&e.items.length>0?(0,i.jsx)(m,{item:e,currentPath:r}):(0,i.jsx)(g,{item:e,currentPath:r})},e.href??e.title))})]},n)),t},[])}):null}var x=r(6550),y=r(3860);let b=o.forwardRef(function({title:e,titleId:t,...r},i){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"}))}),v=o.forwardRef(function({title:e,titleId:t,...r},i){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))});var w=r(3429);function _({product:e}){let t=(0,c.useRouter)(),r=(0,w.o)();if(r.length<2)return null;let n=r.find(t=>t.key===e?.key)??r[0];return(0,i.jsx)("div",{className:"mb-6",children:(0,i.jsxs)(x.W,{value:n.key,onChange:e=>{let i=r.find(t=>t.key===e);
239i&&i.key!==n.key&&t.push(i.basePath)},children:[(0,i.jsx)(x.W.Label,{className:"mb-2 block text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Viewing docs for"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)(x.W.Button,{className:"flex w-full items-center gap-2 rounded-md border border-border bg-card px-3 py-2 text-left text-sm font-medium text-foreground shadow-sm transition-colors hover:border-primary/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[n.Mark&&(0,i.jsx)(n.Mark,{size:20,className:"h-5 w-5 flex-shrink-0"}),(0,i.jsx)("span",{className:"flex-1 truncate",children:n.label}),(0,i.jsx)(b,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground","aria-hidden":"true"})]}),(0,i.jsx)(y.e,{as:o.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)(x.W.Options,{className:"absolute z-30 mt-1 w-full overflow-hidden rounded-md border border-border bg-card py-1 shadow-lg focus:outline-none",children:r.map(e=>(0,i.jsx)(x.W.Option,{value:e.key,className:({active:t})=>`${e.theme??""} flex cursor-pointer items-center gap-2 px-3 py-2 text-sm ${t?"bg-accent text-foreground":"text-muted-foreground"}`,children:({selected:t})=>(0,i.jsxs)(i.Fragment,{children:[e.Mark&&(0,i.jsx)(e.Mark,{size:20,className:"h-5 w-5 flex-shrink-0"}),(0,i.jsx)("span",{className:`flex-1 truncate ${t?"font-semibold text-primary":""}`,children:e.label}),t&&(0,i.jsx)(v,{className:"h-4 w-4 flex-shrink-0 text-primary","aria-hidden":"true"})]})},e.key))})})]})]})})}var j=r(6185);function k({toc:e}){let[t,r]=(0,o.useState)(null);return((0,o.useEffect)(()=>{if(!e?.length)return;let t=e.map(e=>e.id).filter(Boolean).map(e=>document.getElementById(e)).filter(Boolean);if(!t.length)return;let i=new Map,n=new IntersectionObserver(e=>{if(e.forEach(e=>{e.isIntersecting?i.set(e.target.id,e.target):i.delete(e.target.id)}),0===i.size)return;let t=null,n=1/0;for(let e of i.values()){let r=e.getBoundingClientRect().top;r<n&&(n=r,t=e)}t&&r(t.id)},{rootMargin:"-80px 0px -60% 0px",threshold:[0,1]});return t.forEach(e=>n.observe(e)),()=>n.disconnect()},[e]),e&&Array.isArray(e)&&0!==e.length)?(0,i.jsxs)("nav",{"aria-label":"Table of contents",children:[(0,i.jsx)("h2",{className:"mb-3 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"On this page"}),(0,i.jsx)("ul",{className:"border-l border-border space-y-1 text-sm leading-6",children:e.map(e=>{let r=e.id===t;return(0,i.jsx)("li",{className:"h3"===e.tagName?"ml-3":"",children:(0,i.jsx)(l(),{href:`#${e.id}`,legacyBehavior:!0,children:(0,i.jsx)("a",{className:(0,u.cn)("-ml-px block border-l py-1 pl-4 transition-colors",r?"border-primary text-primary":"border-transparent text-muted-foreground hover:border-primary/50 hover:text-foreground"),children:e.title})})},e.id)})})]}):null}var N=r(8631);let E=o.forwardRef(function({title:e,titleId:t,...r},i){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"}))});var q=r(8696);function T({children:e}){return(0,i.jsx)(N.A,{children:({open:t})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A.Button,{className:"fixed right-6 bottom-6 z-50 inline-flex h-12 w-12 items-center justify-center rounded-full border border-border bg-card text-foreground shadow-elev-md transition-colors hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"sr-only",children:"Close Docs Nav menu"}),(0,i.jsx)(q.A,{title:"Close",className:"h-6 w-6"})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"sr-only",children:"Open Docs Nav menu"}),(0,i.jsx)(E,{title:"Open",className:"h-6 w-6"})]})}),(0,i.jsx)(N.A.Panel,{children:(0,i.jsx)("div",{className:"fixed inset-0 z-40 h-[100dvh] w-[100dvw] overflow-scroll bg-background p-6 pt-24",children:e})})]})})}var A=r(6170);function F({children:e,toc:t,docsNavData:r,product:n}
239){let o=n?.themeClass??"",a=n?.key??A.s;return(0,i.jsxs)(j.A,{children:[(0,i.jsx)(s(),{children:(0,i.jsx)("meta",{name:"docsearch:product",content:a})}),(0,i.jsxs)("div",{className:o,children:[(0,i.jsx)("aside",{className:"z-20 lg:hidden",children:(0,i.jsxs)(T,{children:[(0,i.jsx)(_,{product:n}),(0,i.jsx)(f,{docsNavData:r})]})}),(0,i.jsx)("div",{className:"mx-auto w-full max-w-8xl px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"lg:grid lg:grid-cols-[14rem_minmax(0,1fr)_12rem] lg:gap-10",children:[(0,i.jsx)("aside",{id:"docs-nav",className:"hidden lg:block",children:(0,i.jsxs)("div",{className:"sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto py-10 pr-4",children:[(0,i.jsx)(_,{product:n}),(0,i.jsx)(f,{docsNavData:r})]})}),(0,i.jsx)("article",{id:"doc-content",className:"min-w-0 py-10",children:(0,i.jsx)("div",{className:"mx-auto max-w-3xl",children:e})}),(0,i.jsx)("aside",{id:"doc-table-of-contents",className:"hidden lg:block",children:(0,i.jsx)("div",{className:"sticky top-16 max-h-[calc(100vh-4rem)] overflow-y-auto py-10",children:t&&(0,i.jsx)(k,{toc:t})})})]})})]})]})}},4656:(e,t,r)=>{"use strict";let i,n,s,o,a;r.d(t,{cn:()=>ew});var l,c=r(212);let d=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),u=[],p=(e,t,r)=>{if(0==e.length-t)return r.classGroupId;let i=e[t],n=r.nextPart.get(i);if(n){let r=p(e,t+1,n);if(r)return r}let s=r.validators;if(null===s)return;let o=0===t?e.join("-"):e.slice(t).join("-"),a=s.length;for(let e=0;e<a;e++){let t=s[e];if(t.validator(o))return t.classGroupId}},h=(e,t)=>{let r=d();for(let i in e)g(e[i],r,i,t);return r},g=(e,t,r,i)=>{let n=e.length;for(let s=0;s<n;s++)m(e[s],t,r,i)},m=(e,t,r,i)=>{"string"==typeof e?f(e,t,r):"function"==typeof e?x(e,t,r,i):y(e,t,r,i)},f=(e,t,r)=>{(""===e?t:b(t,e)).classGroupId=r},x=(e,t,r,i)=>{v(e)?g(e(i),t,r,i):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:r,validator:e}))},y=(e,t,r,i)=>{let n=Object.entries(e),s=n.length;for(let e=0;e<s;e++){let[s,o]=n[e];g(o,b(t,s),r,i)}},b=(e,t)=>{let r=e,i=t.split("-"),n=i.length;for(let e=0;e<n;e++){let t=i[e],n=r.nextPart.get(t);n||(n=d(),r.nextPart.set(t,n)),r=n}return r},v=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,w=[],_=(e,t,r,i,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:n}),j=/\s+/,k=e=>{let t;if("string"==typeof e)return e;let r="";for(let i=0;i<e.length;i++)e[i]&&(t=k(e[i]))&&(r&&(r+=" "),r+=t);return r},N=[],E=e=>{let t=t=>t[e]||N;return t.isThemeGetter=!0,t},q=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T=/^\((?:(\w[\w-]*):)?(.+)\)$/i,A=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,F=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,P=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>A.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),R=e=>!!e&&Number.isInteger(Number(e)),D=e=>e.endsWith("%")&&I(e.slice(0,-1)),M=e=>F.test(e),U=()=>!0,W=e=>C.test(e)&&!P.test(e),z=()=>!1,B=e=>S.test(e),G=e=>L.test(e),$=e=>!V(e)&&!er(e),Q=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),K=e=>ed(e,eg,z),V=e=>q.test(e),Y=e=>ed(e,em,W),H=e=>ed(e,ef,I),X=e=>ed(e,ey,U),J=e=>ed(e,ex,z),Z=e=>ed(e,ep,z),ee=e=>ed(e,eh,G),et=e=>ed(e,eb,B),er=e=>T.test(e),ei=e=>eu(e,em),en=e=>eu(e,ex),es=e=>eu(e,ep),eo=e=>eu(e,eg),ea=e=>eu(e,eh),el=e=>eu(e,eb,!0),ec=e=>eu(e,ey,!0),ed=(e,t,r)=>{let i=q.exec(e);return!!i&&(i[1]?t(i[1]):r(i[2]))},eu=(e,t,r=!1)=>{let i=T.exec(e);return!!i&&(i[1]?t(i[1]):r)},ep=e=>"position"===e||"percentage"===e,eh=e=>"image"===e||"url"===e,eg=e=>"length"===e||"size"===e||"bg-size"===e,em=e=>"length"===e,ef=e=>"number"===e,ex=e=>"family-name"===e,ey=e=>"number"===e||"weight"===e,eb=e=>"shadow"===e,ev=(l=()=>{let e=E("color"),t=E("font"),r=E("text"),i=E("font-weight"),n=E("tracking"),s=E("leading"),o=E("breakpoint"),a=E("container"),l=E("spacing"),c=E("radius"),d=E("shadow"),u=E("inset-shadow"),p=E("text-shadow"),h=E("drop-shadow"),g=E("blur"),m=E("perspective"),f=E("aspect"),x=E("ease"),y=E("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...v(),er,V],_=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],k=()=>[er,V,l],N=()=>[O,"full","auto",...k()],q=()=>[R,"none","subgrid",er,V],T=()=>["auto",{span:["full",R,er,V]},R,er,V],A=()=>[R,"auto",er,V],F=()=>["auto","min","max","fr",er,V],C=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...k()],L=()=>[O,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],W=()=>[O,"screen","full","dvw","lvw","svw","min","max","fit",...k()],z=()=>[O,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],B=()=>[e,er,V],G=()=>[...v(),es,Z,{position:[er,V]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],eu=()=>["auto","cover","contain",eo,K,{size:[er,V]}],ep=()=>[D,ei,Y],eh=()=>["","none","full",c,er,V],eg=()=>["",I,ei,Y],em=()=>["solid","dashed","dotted","double"],ef=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ex=()=>[I,D,es,Z],ey=()=>["","none",g,er,V],eb=()=>["none",I,er,V],ev=()=>["none",I,er,V],ew=()=>[I,er,V],e_=()=>[O,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[U],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",I],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",O,V,er,f]}],container:["container"],"container-type":[{"@container":["","normal","size",er,V]}
vendor: 6,084 bytes, line 239
239],"container-named":[Q],columns:[{columns:[I,V,er,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[R,"auto",er,V]}],basis:[{basis:[O,"full","auto",a,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,O,"auto","initial","none",V]}],grow:[{grow:["",I,er,V]}],shrink:[{shrink:["",I,er,V]}],order:[{order:[R,"first","last","none",er,V]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...C(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...C()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":C()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mbs:[{mbs:S()}],mbe:[{mbe:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",r,ei,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ec,X]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",D,V]}],"font-family":[{font:[en,J,t]}],"font-features":[{"font-features":[V]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,er,V]}],"line-clamp":[{"line-clamp":[I,"none",er,H]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",er,V]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",er,V]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...em(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",er,Y]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[I,"auto",er,V]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"tab-size":[{tab:[R,er,V]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",er,V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",er,V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:eu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},R,er,V],radial:["",er,V],conic:[R,er,V]},ea,ee]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ep()}
239],"gradient-via-pos":[{via:ep()}],"gradient-to-pos":[{to:ep()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:eh()}],"rounded-s":[{"rounded-s":eh()}],"rounded-e":[{"rounded-e":eh()}],"rounded-t":[{"rounded-t":eh()}],"rounded-r":[{"rounded-r":eh()}],"rounded-b":[{"rounded-b":eh()}],"rounded-l":[{"rounded-l":eh()}],"rounded-ss":[{"rounded-ss":eh()}],"rounded-se":[{"rounded-se":eh()}],"rounded-ee":[{"rounded-ee":eh()}],"rounded-es":[{"rounded-es":eh()}],"rounded-tl":[{"rounded-tl":eh()}],"rounded-tr":[{"rounded-tr":eh()}],"rounded-br":[{"rounded-br":eh()}],"rounded-bl":[{"rounded-bl":eh()}],"border-w":[{border:eg()}],"border-w-x":[{"border-x":eg()}],"border-w-y":[{"border-y":eg()}],"border-w-s":[{"border-s":eg()}],"border-w-e":[{"border-e":eg()}],"border-w-bs":[{"border-bs":eg()}],"border-w-be":[{"border-be":eg()}],"border-w-t":[{"border-t":eg()}],"border-w-r":[{"border-r":eg()}],"border-w-b":[{"border-b":eg()}],"border-w-l":[{"border-l":eg()}],"divide-x":[{"divide-x":eg()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eg()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...em(),"hidden","none"]}],"divide-style":[{divide:[...em(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-bs":[{"border-bs":B()}],"border-color-be":[{"border-be":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,727 bytes, line 239
239],"divide-color":[{divide:B()}],"outline-style":[{outline:[...em(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,er,V]}],"outline-w":[{outline:["",I,ei,Y]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",d,el,et]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",u,el,et]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:eg()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[I,Y]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":eg()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",p,el,et]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[I,er,V]}],"mix-blend":[{"mix-blend":[...ef(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ef()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":ex()}],"mask-image-linear-to-pos":[{"mask-linear-to":ex()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ex()}],"mask-image-t-to-pos":[{"mask-t-to":ex()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ex()}],"mask-image-r-to-pos":[{"mask-r-to":ex()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ex()}],"mask-image-b-to-pos":[{"mask-b-to":ex()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ex()}],"mask-image-l-to-pos":[{"mask-l-to":ex()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ex()}],"mask-image-x-to-pos":[{"mask-x-to":ex()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ex()}],"mask-image-y-to-pos":[{"mask-y-to":ex()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[er,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":ex()}],"mask-image-radial-to-pos":[{"mask-radial-to":ex()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":ex()}],"mask-image-conic-to-pos":[{"mask-conic-to":ex()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:eu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",er,V]}],filter:[{filter:["","none",er,V]}],blur:[{blur:ey()}],brightness:[{brightness:[I,er,V]}],contrast:[{contrast:[I,er,V]}],"drop-shadow":[{"drop-shadow":["","none",h,el,et]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",I,er,V]}],"hue-rotate":[{"hue-rotate":[I,er,V]}],invert:[{invert:["",I,er,V]}],saturate:[{saturate:[I,er,V]}],sepia:[{sepia:["",I,er,V]}],"backdrop-filter":[{"backdrop-filter":["","none",er,V]}],"backdrop-blur":[{"backdrop-blur":ey()}],"backdrop-brightness":[{"backdrop-brightness":[I,er,V]}],"backdrop-contrast":[{"backdrop-contrast":[I,er,V]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,er,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,er,V]}],"backdrop-invert":[{"backdrop-invert":["",I,er,V]}],"backdrop-opacity":[{"backdrop-opacity":[I,er,V]}],"backdrop-saturate":[{"backdrop-saturate":[I,er,V]}],"backdrop-sepia":[{"backdrop-sepia":["",I,er,V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",er,V]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",er,V]}],ease:[{ease:["linear","initial",x,er,V]}],delay:[{delay:[I,er,V]}],animate:[{animate:["none",y,er,V]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,er,V]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:eb()}],"rotate-x":[{"rotate-x":eb()}],"rotate-y":[{"rotate-y":eb()}],"rotate-z":[{"rotate-z":eb()}],scale:[{scale:ev()}],"scale-x":[{"scale-x":ev()}],"scale-y":[{"scale-y":ev()}],"scale-z":[{"scale-z":ev()}],"scale-3d":["scale-3d"],skew:[{skew:ew()}],"skew-x":[{"skew-x":ew()}],"skew-y":[{"skew-y":ew()}],transform:[{transform:[er,V,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:e_()}],"translate-x":[{"translate-x":e_()}],"translate-y":[{"translate-y":e_()}],"translate-z":[{"translate-z":e_()}],"translate-none":["translate-none"],zoom:[{zoom:[R,er,V]}],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
239],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",er,V]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":B()}],"scrollbar-track-color":[{"scrollbar-track":B()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",er,V]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[I,ei,Y,H]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},a=e=>{let t=n(e);if(t)return t;let r=((e,t)=>{let{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n,sortModifiers:s,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(j),c="";for(let e=l.length-1;e>=0;e-=1){let t,d=l[e],{isExternal:u,modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=r(d);if(u){c=d+(c.length>0?" "+c:c);continue}let f=!!m;if(f){let e=(t=i(g.substring(0,m)))&&o[t]?i(g):void 0;e&&e!==t&&(t=e,f=!1)}else t=i(g);if(!t){if(!f||!(t=i(g))){c=d+(c.length>0?" "+c:c);continue}f=!1}let x=0===p.length?"":1===p.length?p[0]:s(p).join(":"),y=h?x+"!":x,b=y+t;if(a.indexOf(b)>-1)continue;a.push(b);let v=n(t,f);for(let e=0;e<v.length;++e){let t=v[e];a.push(y+t)}c=d+(c.length>0?" "+c:c)}return c})(e,i);return s(e,r),r},o=e=>{var t;let r;return n=(i={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null),n=(n,s)=>{r[n]=s,++t>e&&(t=0,i=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=i[e])?(n(e,t),t):void 0},set(e,t){e in r?r[e]=t:n(e,t)}}})((t=[].reduce((e,t)=>
239t(e),l())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:r}=e,i=e=>{let t,r=[],i=0,n=0,s=0,o=e.length;for(let a=0;a<o;a++){let o=e[a];if(0===i&&0===n){if(":"===o){r.push(e.slice(s,a)),s=a+1;continue}if("/"===o){t=a;continue}}"["===o?i++:"]"===o?i--:"("===o?n++:")"===o&&n--}let a=0===r.length?e:e.slice(s),l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),_(r,c,l,t&&t>s?t-s:void 0)};if(t){let e=t+":",r=i;i=t=>t.startsWith(e)?r(t.slice(e.length)):_(w,!1,t,void 0,!0)}if(r){let e=i;i=t=>r({className:t,parseClassName:e})}return i})(t),sortModifiers:(r=new Map,t.orderSensitiveModifiers.forEach((e,t)=>{r.set(e,1e6+t)}),e=>{let t=[],i=[];for(let n=0;n<e.length;n++){let s=e[n],o="["===s[0],a=r.has(s);o||a?(i.length>0&&(i.sort(),t.push(...i),i=[]),t.push(s)):i.push(s)}return i.length>0&&(i.sort(),t.push(...i)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t})(t),...(e=>{let t=(e=>{let{theme:t,classGroups:r}=e;return h(r,t)})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var r;let t,i,n;return -1===(r=e).slice(1,-1).indexOf(":")?void 0:(i=(t=r.slice(1,-1)).indexOf(":"),(n=t.slice(0,i))?"arbitrary.."+n:void 0)}let i=e.split("-"),n=+(""===i[0]&&i.length>1);return p(i,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=i[e],n=r[e];if(t){if(n){let e=Array(n.length+t.length);for(let t=0;t<n.length;t++)e[t]=n[t];for(let r=0;r<t.length;r++)e[n.length+r]=t[r];return e}return t}return n||u}return r[e]||u}}})(t)}).cache.get,s=i.cache.set,o=a,a(e)},(...e)=>o(((...e)=>{let t,r,i=0,n="";for(;i<e.length;)(t=e[i++])&&(r=k(t))&&(n&&(n+=" "),n+=r);return n})(...e)));function ew(...e){return ev((0,c.$)(e))}},4851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return c}});let i=r(7637),n=r(7876),s=r(5720),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:d=!1,preload:u=!1,loading:p,className:h,quality:g,width:m,height:f,fill:x=!1,style:y,overrideSrc:b,onLoad:v,onLoadingComplete:w,placeholder:_="empty",blurDataURL:j,fetchPriority:k,decoding:N="async",layout:E,objectFit:q,objectPosition:T,lazyBoundary:A,lazyRoot:F,...C},P){var S;let L,O,I,{imgConf:R,showAltText:D,blurComplete:M,defaultLoader:U}
239=P,W=R||s.imageConfigDefault;if("allSizes"in W)L=W;else{let e=[...W.deviceSizes,...W.imageSizes].sort((e,t)=>e-t),t=W.deviceSizes.sort((e,t)=>e-t),r=W.qualities?.sort((e,t)=>e-t);L={...W,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let z=C.loader||U;delete C.loader,delete C.srcSet;let B="__next_img_default"in z;if(B){if("custom"===L.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 240Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=z;z=t=>{let{config:r,...i}=t;return e(i)}}if(E){"fill"===E&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[E];e&&(y={...y,...e});let r={responsive:"100vw",fill:"100vw"}[E];r&&!t&&(t=r)}let G="",$=l(m),Q=l(f);if((S=e)&&"object"==typeof S&&(a(S)||void 0!==S.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(O=t.blurWidth,I=t.blurHeight,j=j||t.blurDataURL,G=t.src,!x)if($||Q){if($&&!Q){let e=$/t.width;Q=Math.round(t.height*e)}else if(!$&&Q){let e=Q/t.height;$=Math.round(t.width*e)}}else $=t.width,Q=t.height}let K=!d&&!u&&("lazy"===p||void 0===p);(!(e="string"==typeof e?e:G)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,K=!1),L.unoptimized&&(r=!0),B&&!L.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let V=l(g),Y=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:q,objectPosition:T}:{},D?{}:{color:"transparent"},y),H=M||"empty"===_?null:"blur"===_?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:$,heightInt:Q,blurWidth:O,blurHeight:I,blurDataURL:j||"",objectFit:Y.objectFit})}")`:`url("${_}")`,X=o.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,J=H?{backgroundSize:X,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:H}:{},Z=function({config:e,src:t,unoptimized:r,width:n,quality:s,sizes:o,loader:a}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,i.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let i=new URLSearchParams(t.slice(r+1));i.get("dpl")||(i.append("dpl",e),t=t.slice(0,r)+"?"+i.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,i){if(i){let r=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=r.exec(i);)n.push(parseInt(e[2]));if(n.length){let r=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,o),d=l.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:l.map((r,i)=>`${a({config:e,src:t,quality:s,width:r})} ${"w"===c?r:i+1}${c}`).join(", "),src:a({config:e,src:t,quality:s,width:l[d]})}}({config:L,src:e,unoptimized:r,width:$,quality:V,sizes:t,loader:z}),ee=K?"lazy":p;return{props:{...C,loading:ee,fetchPriority:k,width:$,height:Q,decoding:N,className:h,style:{...Y,...J},sizes:Z.sizes,srcSet:Z.srcSet,src:b||Z.src},meta:{unoptimized:r,preload:u||d,placeholder:_,fill:x}}}},5088:(e,t,r)=>{"use strict";r.d(t,{Q:()=>o,p:()=>s});var i=r(6029),n=r(4656);function s({size:e=32,variant:t="default",className:r}){return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL",className:r,children:[(0,i.jsx)("circle",{cx:"256",cy:"256",r:"256",fill:"reversed"===t?"#FF8C1A":"#0E1628"}),(0,i.jsx)("path",{d:"m117.592 300.896c0-35.138.58-39.429 7.074-52.301 5.682-11.133 20.758-25.05 30.732-28.065 2.203-.696 2.899.348 6.726 9.858 12.408 31.195 37.11 54.505 69.349 65.29l8.465 2.899.348 16.815c.116 9.394-.116 16.932-.58 16.816-.58 0-2.899-3.131-5.45-6.958-11.945-18.671-35.718-30.036-59.724-28.645-21.802 1.276-40.589 12.061-52.765 30.152l-4.175 6.147zm25.165 85.353c10.09-3.015 17.743-13.568 17.743-24.47 0-7.77 9.51-16.699 17.627-16.699 10.321 0 17.396 6.958 18.787 18.44 1.276 10.32 5.567 16.815 14.032 21.337 4.407 2.436 6.147 2.552 32.471 2.552 26.441 0 28.065-.116 32.588-2.552 5.566-3.015 11.712-9.51 12.872-14.032.58-1.74.928-25.049.928-51.838v-48.706l-2.9-5.103c-4.87-8.582-10.437-11.597-24.469-13.452-19.019-2.436-30.036-7.538-41.053-18.787-8.117-8.118-14.96-21.57-16.815-33.051-3.71-21.918 7.19-46.503 26.325-59.26 11.48-7.654 20.526-10.437 33.979-10.437 8.813 0 12.64.58 19.25 2.9 14.728 5.218 25.745 14.031 33.515 27.02 8.234 13.916 8.002 10.205 8.698 94.514.58 68.885.928 76.539 2.783 82.337 6.146 19.02 18.903 34.559 34.443 42.097 21.338 10.437 42.212 11.133 60.767 2.087 19.019-9.393 33.747-30.615 37.69-54.389 2.435-14.612-1.16-23.193-11.83-28.528-10.32-5.219-21.917-3.827-29.107 3.479-4.639 4.639-6.262 8.118-8.234 17.86-2.5
24051 12.06-8.118 17.394-18.323 17.394-6.378 0-12.524-3.247-15.424-8.233-2.203-3.827-2.319-6.61-2.899-78.743-.58-66.566-.812-75.727-2.667-82.801-12.409-47.895-49.403-80.366-98.69-86.513-24.584-3.015-56.94 6.843-78.858 24.354-17.627 13.916-29.108 30.615-36.53 52.997l-3.479 9.974-11.944 4.29c-19.02 6.727-28.645 12.641-42.909 26.441-12.872 12.525-21.802 26.441-27.6 43.14-5.335 15.772-5.799 21.339-5.799 75.844v51.374l2.668 5.102c3.015 5.683 10.089 11.25 16.003 12.64 2.204.465 14.38.929 27.253 1.044 17.511.116 24.701-.347 29.108-1.623zm132.204-172.793c6.03-2.551 8.35-4.87 11.48-11.597 4.523-9.625 3.248-20.526-3.362-28.064-4.755-5.45-9.51-7.306-18.555-7.306-6.03 0-8.234.58-12.64 3.363-15.077 9.51-14.265 34.79 1.39 42.792 6.147 3.016 15.425 3.363 21.687.812z",fill:"reversed"===t?"#0A0F1E":"#FF8C1A",fillRule:"nonzero"})]})}function o({showWordmark:e=!0,size:t=32,variant:r="default",subLabel:a,className:l,markClassName:c,wordmarkClassName:d}){return(0,i.jsxs)("div",{className:(0,n.cn)("flex items-center gap-3",l),children:[(0,i.jsx)(s,{size:t,variant:r,className:c}),e&&(0,i.jsxs)("div",{className:(0,n.cn)("flex flex-col leading-none",d),children:[(0,i.jsx)("span",{className:(0,n.cn)("font-bold tracking-tight","light"===r?"text-navy-950":"text-foreground"),style:{fontSize:.56*t,letterSpacing:"-0.02em"},children:"WPGraphQL"}),a&&(0,i.jsx)("span",{className:(0,n.cn)("font-mono mt-0.5","light"===r?"text-navy-400":"text-muted-foreground"),style:{fontSize:.25*t,letterSpacing:"0.04em"},children:a})]})]})}},5219:(e,t,r)=>{"use strict";function i(e,t,...r){if(e in t){let i=t[e];return"function"==typeof i?i(...r):i}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,i),n}r.d(t,{Y:()=>i})},5369:(e,t,r)=>{"use strict";r.d(t,{_:()=>o});var i=Object.defineProperty,n=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?i(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,r};class s{constructor(){n(this,"current",this.detect()),n(this,"handoffState","pending"),n(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let o=new s},5429:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(5729);let n=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"}))})},5612:(e,t,r)=>{"use strict";let i;r.d(t,{D:()=>n});var n=((i=n||{}).Space=" ",i.Enter="Enter",i.Escape="Escape",i.Backspace="Backspace",i.Delete="Delete",i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Home="Home",i.End="End",i.PageUp="PageUp",i.PageDown="PageDown",i.Tab="Tab",i)},5669:(e,t,r)=>{e.exports=r(3276)},5727:()=>{},5815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return w}});let i=r(4761),n=r(3514),s=r(6029),o=n._(r(5729)),a=i._(r(6760)),l=i._(r(3276)),c=r(4851),d=r(5720),u=r(9528),p=r(265),h=i._(r(2645)),g=r(9058),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e,t,r,i,n,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>
240{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}i?.current&&i.current(e)}}))}function x(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let y=o.useLayoutEffect,b=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:i,width:n,decoding:a,className:l,style:c,fetchPriority:d,placeholder:u,loading:p,unoptimized:h,fill:m,onLoadRef:b,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:_,sizesInput:j,onLoad:k,onError:N,...E},q)=>{let T=(0,o.useRef)(!1),A=(0,o.useRef)(null);y(()=>{let{current:e}=T,{current:t}=A;e||null===t||(N&&(t.src=t.src),t.complete&&f(t,u,b,v,w,h,j),T.current=!0)},[e,u,b,v,N,h,j]);let F=(0,g.useMergedRef)(q,A);return(0,s.jsx)("img",{...E,...x(d),loading:p,width:n,height:i,decoding:a,"data-nimg":m?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:F,onLoad:e=>{f(e.currentTarget,u,b,v,w,h,j)},onError:e=>{_(!0),"empty"!==u&&w(!0),N&&N(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(p.RouterContext),i=(0,o.useContext)(u.ImageConfigContext),n=(0,o.useMemo)(()=>{let e=m||i||d.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),n=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:n,localPatterns:e.localPatterns}},[i]),{onLoad:a,onLoadingComplete:l}=e,g=(0,o.useRef)(a);(0,o.useEffect)(()=>{g.current=a},[a]);let f=(0,o.useRef)(l);(0,o.useEffect)(()=>{f.current=l},[l]);let[x,y]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),{props:j,meta:k}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:n,blurComplete:x,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{...j,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:g,onLoadingCompleteRef:f,setBlurComplete:y,setShowAltText:_,sizesInput:e.sizes,ref:t}),k.preload?(0,s.jsx)(v,{isAppRouter:!r,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5973:(e,t,r)=>{"use strict";r.d(t,{b:()=>o,y:()=>a});var i=r(9667),n=r(595),s=r(4353);let o=[{name:"WPGraphQL IDE",href:"/extensions/wp-graphql-ide",description:"A schema-aware GraphQL IDE, native to wp-admin.",theme:"theme-ide",Mark:i.D,aliases:["wpgraphql ide"]},{name:"WPGraphQL for ACF",href:"/extensions/wp-graphql-acf",description:"Expose Advanced Custom Fields to the GraphQL schema.",theme:"theme-acf",Mark:n.d,aliases:["advanced custom fields","for acf"]},{name:"WPGraphQL Smart Cache",href:"/extensions/wp-graphql-smart-cache",description:"Fast responses with smart, tag-based invalidation.",theme:"theme-smart-cache",Mark:s.K,aliases:["smart cache"]}];function a(e=""){let t=e.toLowerCase();return o.some(e=>e.aliases.some(e=>t.includes(e)))}},6069:(e,t,r)=>{"use strict";function i(e=[],{idKey:t="id",parentKey:r="parentId",childrenKey:n="children"}={}){let s=[],o={};return e.forEach(e=>{let i={...e},{[t]:a,[r]:l=0}=i;o[a]=o[a]||[],i[n]=o[a],l?(o[l]=o[l]||[]).push(i):s.push(i)}),s}function n(e){return e?.cssClasses?.find(e=>e.startsWith("icon-"))?.replace("icon-","")}r.d(t,{L:()=>n,U:()=>i})},6170:(e,t,r)=>{"use strict";r.d(t,{$e:()=>n,QQ:()=>s,s:()=>i});let i="wp-graphql",n={[i]:{key:i,label:"WPGraphQL",shortLabel:"WPGraphQL",basePath:"/docs",docsFolder:"plugins/wp-graphql/docs",themeClass:null,enabled:!0},acf:{key:"acf",label:"WPGraphQL for ACF",shortLabel:"ACF",basePath:"/docs/acf",docsFolder:"plugins/wp-graphql-acf/docs",themeClass:"theme-acf",enabled:!0},"smart-cache":{key:"smart-cache",label:"WPGraphQL Smart Cache",shortLabel:"Smart Cache",basePath:"/docs/smart-cache",docsFolder:"plugins/wp-graphql-smart-cache/docs",themeClass:"theme-smart-cache",enabled:!0},ide:{key:"ide",label:"WPGraphQL IDE",shortLabel:"IDE",basePath:"/docs/ide",docsFolder:"plugins/wp-graphql-ide/docs",themeClass:"theme-ide",enabled:!0}};function s(){return Object.values(n).filter(e=>e.enabled)}
240n[i],Object.keys(n).filter(e=>e!==i)},6185:(e,t,r)=>{"use strict";r.d(t,{P:()=>J,A:()=>X});var i=r(6029),n=r(270),s=r(5729),o=r(2203),a=r.n(o),l=r(8631),c=r(3860),d=r(6654),u=r(8696);let p=s.forwardRef(function({title:e,titleId:t,...r},i){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},r),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))});var h=r(2461),g=r(2909),m=r(6550),f=r(9278);let x=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),y={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},b=(0,s.createContext)({}),v=(0,s.forwardRef)(({color:e,size:t,width:r,height:i,strokeWidth:n,absoluteStrokeWidth:o,nonScalingStroke:a,className:l="",children:c,iconNode:d=[],icon:u={node:d,aliases:[],size:24},...p},h)=>{let{size:g=24,strokeWidth:m=2,absoluteStrokeWidth:f=!1,nonScalingStroke:v=!1,color:w="currentColor",className:_=""}=(0,s.useContext)(b)??{},j=!!c||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(p),[k,N,E=[]]=function(e,t={}){return function(e,t={}){let r=t.attributeNames??{},i=e=>r[e]??e,n=e.size??e.width??y.width,s=e.size??e.height??y.height,o=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],a=[...e.name?[`lucide-${e.name}`]:[],...o],l=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?x(...l):x("lucide",...a,...l),d=t.absoluteStrokeWidth?Number(t.strokeWidth??y["stroke-width"])*Number(e.size??e.width??y.width)/Number(t.size??t.width??y.width):t.strokeWidth??y["stroke-width"];return["svg",{...Object.entries(y).reduce((e,[t,r])=>(e[i(t)]=r,e),{}),..."color"in t&&t.color&&{[i("stroke")]:t.color},..."size"in t&&null!=t.size&&{[i("width")]:t.size,[i("height")]:t.size},..."width"in t&&null!=t.width&&{[i("width")]:t.width},..."height"in t&&null!=t.height&&{[i("height")]:t.height},[i("stroke-width")]:d,...c&&{[i("class")]:c}
240,[i("viewBox")]:`0 0 ${n} ${s}`,...!1===t.hasA11yProp?{[i("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,n,s]=e,o=t.nonScalingStroke?{[i("vector-effect")]:"non-scaling-stroke",...n}:n;return s?[r,o,s]:[r,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(u,{color:e??w,width:r??t??g,height:i??t??g,strokeWidth:n??m,absoluteStrokeWidth:o??f,nonScalingStroke:a??v,className:x(_,l),hasA11yProp:j,attributes:p});return(0,s.createElement)(k,{ref:h,...N},[...E.map(([e,t])=>(0,s.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function w(e,t=[],r=[]){let i,n="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,t,r):e,o=(0,s.forwardRef)(({className:e,...t},r)=>(0,s.createElement)(v,{ref:r,icon:n,className:e,...t}));return n.name&&(o.displayName=(i=(e=>{let t="",r=!1;for(let i of e){if("-"===i||"_"===i||i<=" "){r=t.length>0;continue}0===t.length?t+=i.toLowerCase():t+=r?i.toUpperCase():i,r=!1}return t})(n.name)).charAt(0).toUpperCase()+i.slice(1)),o}let _={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};_.node;let j=w(_),k={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};k.node;let N=w(k),E={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};E.node;let q=w(E);var T=r(4656);let A=[{value:"light",label:"Light",Icon:j},{value:"dark",label:"Dark",Icon:N},{value:"system",label:"System",Icon:q}];function F({panelClassName:e="mt-4"}){let{theme:t,setTheme:r,resolvedTheme:n}=(0,f.D)(),[o,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>
240a(!0),[]),(0,i.jsxs)(m.W,{value:t??"system",onChange:r,children:[(0,i.jsx)(m.W.Label,{className:"sr-only",children:"Theme"}),(0,i.jsx)(m.W.Button,{type:"button",className:"rounded-md p-2 text-muted-foreground hover:text-foreground hover:bg-accent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:"dark"===(o?n??"dark":"dark")?(0,i.jsx)(N,{className:"size-5","aria-hidden":"true"}):(0,i.jsx)(j,{className:"size-5","aria-hidden":"true"})}),(0,i.jsx)(m.W.Options,{className:(0,T.cn)("absolute z-50 top-full max-md:right-[60px] w-36 py-1 -mt-5","rounded-lg border border-border bg-popover text-popover-foreground shadow-elev-lg","text-sm font-medium overflow-hidden",e),children:A.map(({value:e,label:t,Icon:r})=>(0,i.jsx)(m.W.Option,{value:e,as:s.Fragment,children:({active:e,selected:n})=>(0,i.jsxs)("li",{className:(0,T.cn)("py-1.5 px-3 flex items-center cursor-pointer gap-2",n&&"text-primary",e&&"bg-accent"),children:[(0,i.jsx)(r,{className:"size-4","aria-hidden":"true"}),t]})},e))})]})}var C=r(6069),P=r(6509),S=r(907);let L={name:"GitHub",href:"https://github.com/wp-graphql/wp-graphql",icon:function(e){return(0,S.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}}]})(e)}},O={name:"WordPress Plugin",href:"https://wordpress.org/plugins/wp-graphql",icon:function(e){return(0,S.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M21.469 6.825c.84 1.537 1.318 3.3 1.318 5.175 0 3.979-2.156 7.456-5.363 9.325l3.295-9.527c.615-1.54.82-2.771.82-3.864 0-.405-.026-.78-.07-1.11m-7.981.105c.647-.03 1.232-.105 1.232-.105.582-.075.514-.93-.067-.899 0 0-1.755.135-2.88.135-1.064 0-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885 0 0 .54.061 1.125.09l1.68 4.605-2.37 7.08L5.354 6.9c.649-.03 1.234-.1 1.234-.1.585-.075.516-.93-.065-.896 0 0-1.746.138-2.874.138-.2 0-.438-.008-.69-.015C4.911 3.15 8.235 1.215 12 1.215c2.809 0 5.365 1.072 7.286 2.833-.046-.003-.091-.009-.141-.009-1.06 0-1.812.923-1.812 1.914 0 .89.513 1.643 1.06 2.531.411.72.89 1.643.89 2.977 0 .915-.354 1.994-.821 3.479l-1.075 3.585-3.9-11.61.001.014zM12 22.784c-1.059 0-2.081-.153-3.048-.437l3.237-9.406 3.315 9.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211 12c0-1.564.336-3.05.935-4.39L7.29 21.709C3.694 19.96 1.212 16.271 1.211 12M12 0C5.385 0 0 5.385 0 12s5.385 12 12 12 12-5.385 12-12S18.615 0 12 0"}}]})(e)}},I=[L,O],R=[L,O,{name:"Twitter",href:"https://twitter.com/wpgraphql",icon:function(e){return(0,S.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148 13.98 13.98 0 0 0 11.82 8.292a4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"}}]})(e)}},{name:"YouTube",href:"https://www.youtube.com/c/WPGraphQL",icon:function(e){return(0,S.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"}}]})(e)}},{name:"Discord",href:"/discord",icon:function(e){return(0,S.k5)({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363
2400 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"}}]})(e)}}];var D=r(5973),M=r(3429),U=r(3055),W=r(9133);function z(e){let t=e?.label?.toLowerCase(),r=e?.path?.replace(/\/$/,"");return"extensions"===t||"/extensions"===r}function B({label:e="Extensions",viewAllHref:t="/extensions"}){return(0,i.jsx)(l.A,{className:"relative",children:({open:r})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",r&&"rotate-180"),"aria-hidden":"true"})]}),(0,i.jsx)(c.e,{as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,i.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:-translate-x-1/2",children:(0,i.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:[(0,i.jsx)("p",{className:"px-6 pb-2 pt-5 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Featured Extensions"}),(0,i.jsx)("div",{className:"grid gap-2 px-4 pb-4 sm:px-6",children:D.b.map(({name:e,href:t,description:r,theme:n,Mark:s},o)=>(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:`${n} group relative -m-2 flex items-start gap-4 overflow-hidden rounded-lg p-3 transition-colors hover:bg-accent`,children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:(0,i.jsx)(W.A,{variant:o,count:16,width:360,height:104,opacity:1,intensity:1.8,className:"[mask-image:linear-gradient(to_right,black_60%,transparent)]"})}),(0,i.jsx)(s,{size:40,className:"relative h-10 w-10 flex-shrink-0 rounded-md"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e}),(0,i.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:r})]})]})},t))}),(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center justify-between border-t border-border bg-muted/40 px-6 py-3 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[(0,i.jsx)("span",{children:"View All Extensions"}),(0,i.jsx)("span",{"aria-hidden":"true",children:"â"})]})})]})})})]})})}function G({label:e="Extensions",viewAllHref:t="/extensions"}){return(0,i.jsxs)("div",{className:"mt-2 border-t border-border pt-4",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between px-3",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:e}),(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"text-xs font-medium text-primary hover:underline",children:"View All Extensions â"})})]}),(0,i.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-2",children:D.b.map(({name:e,href:t,description:r,Mark:n})=>(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center gap-4 roun
240ded-lg p-3 transition-colors hover:bg-accent",children:[(0,i.jsx)(n,{size:40,className:"h-10 w-10 flex-shrink-0 rounded-md"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e}),(0,i.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:r})]})]})},t))})]})}function $(e){let t=e?.label?.toLowerCase(),r=e?.path?.replace(/\/$/,"");return"docs"===t||"/docs"===r}function Q({label:e="Docs",viewAllHref:t="/docs"}){return(0,i.jsx)(l.A,{className:"relative",children:({open:r})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",r&&"rotate-180"),"aria-hidden":"true"})]}),(0,i.jsx)(c.e,{as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,i.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:-translate-x-1/2",children:(0,i.jsxs)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:[(0,i.jsx)("p",{className:"px-6 pb-2 pt-5 font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:"Documentation"}),(0,i.jsx)("div",{className:"grid gap-2 px-4 pb-4 sm:px-6",children:(0,M.o)().map(({key:e,label:t,basePath:r,description:n,theme:s,Mark:o})=>(0,i.jsx)(a(),{href:r,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:`${s} group relative -m-2 flex items-start gap-4 overflow-hidden rounded-lg p-3 transition-colors hover:bg-accent`,children:[o&&(0,i.jsx)(o,{size:40,className:"relative h-10 w-10 flex-shrink-0 rounded-md"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t}),(0,i.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:n})]})]})},e))}),(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center justify-between border-t border-border bg-muted/40 px-6 py-3 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:[(0,i.jsx)("span",{children:"All Documentation"}),(0,i.jsx)("span",{"aria-hidden":"true",children:"â"})]})})]})})})]})})}function K({label:e="Docs",viewAllHref:t="/docs"}){return(0,i.jsxs)("div",{className:"mt-2 border-t border-border pt-4",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between px-3",children:[(0,i.jsx)("p",{className:"font-mono text-xs font-medium uppercase tracking-widest text-muted-foreground",children:e}),(0,i.jsx)(a(),{href:t,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"text-xs font-medium text-primary hover:underline",children:"All Documentation â"})})]}),(0,i.jsx)("div",{className:"mt-2 grid grid-cols-1 gap-2",children:(0,M.o)().map(({key:e,label:t,basePath:r,description:n,Mark:s})=>(0,i.jsx)(a(),{href:r,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center gap-4 roun
240ded-lg p-3 transition-colors hover:bg-accent",children:[s&&(0,i.jsx)(s,{size:40,className:"h-10 w-10 flex-shrink-0 rounded-md"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t}),(0,i.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:n})]})]})},e))})]})}let V=(0,n.Ay)` 241 fragment NavMenu on RootQuery { 242 menu(id: "Primary Nav", idType: NAME) { 243 id 244 name 245 menuItems(first: 100) { 246 nodes { 247 id 248 label 249 description 250 url 251 target 252 path 253 parentId 254 cssClasses 255 } 256 } 257 } 258 } 259`;function Y(){let[e,t]=(0,s.useState)(!1),r=(0,P.eF)(),n=(0,C.U)(r?.menu?.menuItems?.nodes,{idKey:"id",parentKey:"parentId",childrenKey:"children"});return(0,s.useEffect)(()=>{let e=()=>t(window.scrollY>50);return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,i.jsxs)(l.A,{as:"header",className:(0,T.cn)("sticky top-0 z-50 w-full border-b border-border bg-background/80 backdrop-blur supports-[backdrop-filter]:bg-background/60 transition-shadow",e&&"shadow-elev-md"),children:[(0,i.jsxs)("div",{className:"mx-auto flex max-w-8xl items-center justify-between gap-6 px-4 py-3 sm:px-6 md:justify-start md:space-x-10",children:[(0,i.jsx)("div",{className:"flex flex-1 justify-start lg:w-0",children:(0,i.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center",children:[(0,i.jsx)("span",{className:"sr-only",children:"WPGraphQL"}),(0,i.jsx)(g.A,{size:36})]})})}),(0,i.jsxs)("div",{className:"-my-2 -mr-2 flex items-center md:hidden",children:[(0,i.jsxs)(U.v,{className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[(0,i.jsx)("span",{className:"sr-only",children:"Search"}),(0,i.jsxs)("svg",{width:"20",height:"20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,i.jsx)("path",{d:"m19 19-3.5-3.5"}),(0,i.jsx)("circle",{cx:"11",cy:"11",r:"6"})]})]}),(0,i.jsx)(F,{}),(0,i.jsxs)(l.A.Button,{className:"ml-1 inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,i.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,i.jsx)(d.A,{className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,i.jsx)(l.A.Group,{as:"nav",className:"hidden md:flex items-center gap-8",children:n&&n.map(e=>$(e)?(0,i.jsx)(Q,{label:e.label,viewAllHref:e.path||"/docs"},e.id):z(e)?(0,i.jsx)(B,{label:e.label,viewAllHref:e.path||"/extensions"},e.id):e.children&&e.children.length?(0,i.jsx)(l.A,{className:"relative",children:({open:t})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.A.Button,{className:(0,T.cn)("group inline-flex items-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",t?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[(0,i.jsx)("span",{children:e.label}),(0,i.jsx)(p,{className:(0,T.cn)("h-4 w-4 transition-transform",t&&"rotate-180"),"aria-hidden":"true"})]}),(0,i.jsx)(c.e,{as:s.Fragment,enter:"transition ease-out duration-200",enterFrom:"opacity-0 translate-y-1",enterTo:"opacity-100 translate-y-0",leave:"transition ease-in duration-150",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-1",children:(0,i.jsx)(l.A.Panel,{className:"absolute z-50 -ml-4 mt-3 w-screen max-w-md transform lg:left-1/2 lg:ml-0 lg:max-w-2xl lg:-translate-x-1/2",children:(0,i.jsx)("div",{className:"overflow-hidden rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:(0,i.jsx)("div",{className:"grid gap-2 p-4 sm:gap-4 sm:p-6 lg:grid-cols-2",children:e.children?.map(e=>{let t=(0,C.L)(e);return(0,i.jsxs)("a",{href:e.path,className:"-m-2 flex items-start gap-4 roun
259ded-lg p-3 transition-colors hover:bg-accent",children:[t&&(0,i.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md border border-border bg-muted text-primary",children:(0,i.jsx)(h.A,{icon:t})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-sm font-semibold text-foreground",children:e.label}),e.description&&(0,i.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:e.description})]})]},e.id)})})})})})]})},e.id):(0,i.jsx)(a(),{href:e.path,legacyBehavior:!0,children:(0,i.jsx)("a",{className:"text-sm font-medium text-muted-foreground transition-colors hover:text-foreground",children:e.label})},e.id))}),(0,i.jsxs)("div",{className:"hidden flex-1 items-center justify-end gap-3 md:flex lg:w-0",children:[(0,i.jsxs)(U.v,{className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[(0,i.jsx)("span",{className:"sr-only",children:"Search"}),(0,i.jsxs)("svg",{width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,i.jsx)("path",{d:"m19 19-3.5-3.5"}),(0,i.jsx)("circle",{cx:"11",cy:"11",r:"6"})]})]}),I.map(e=>(0,i.jsxs)("a",{href:e.href,className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("span",{className:"sr-only",children:e.name}),(0,i.jsx)(e.icon,{className:"h-5 w-5","aria-hidden":"true"})]},e.name)),(0,i.jsx)(F,{})]})]}),(0,i.jsx)(c.e,{as:s.Fragment,enter:"duration-200 ease-out",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"duration-100 ease-in",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,i.jsx)(l.A.Panel,{focus:!0,className:"absolute inset-x-0 top-0 z-50 origin-top-right transform p-2 transition md:hidden",children:(0,i.jsx)("div",{className:"rounded-xl border border-border bg-popover text-popover-foreground shadow-elev-lg",children:(0,i.jsxs)("div",{className:"px-5 pt-5 pb-6",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,i.jsx)("a",{children:(0,i.jsx)(g.A,{size:32})})}),(0,i.jsxs)(l.A.Button,{className:"-mr-2 inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,i.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,i.jsx)(u.A,{className:"h-5 w-5","aria-hidden":"true"})]})]}),(0,i.jsx)("nav",{className:"mt-6 grid grid-cols-1 gap-2",children:n.map(e=>{if($(e))return(0,i.jsx)(K,{label:e.label,viewAllHref:e.path||"/docs"},e.id);if(z(e))return(0,i.jsx)(G,{label:e.label,viewAllHref:e.path||"/extensions"},e.id);let t=(0,C.L)(e);return(0,i.jsx)(a(),{href:e.path,legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center gap-4 roun
259ded-lg p-3 transition-colors hover:bg-accent",children:[t?(0,i.jsx)("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-md border border-border bg-muted text-primary",children:(0,i.jsx)(h.A,{icon:t})}):null,(0,i.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.label})]})},e.path)})})]})})})})]})}function H(){let e=new Date().getFullYear();return(0,i.jsx)("footer",{className:"mt-24 border-t border-border bg-card/50",children:(0,i.jsxs)("div",{className:"mx-auto flex max-w-7xl flex-col gap-8 px-6 py-12 md:flex-row md:items-center md:justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)(a(),{href:"/",legacyBehavior:!0,children:(0,i.jsxs)("a",{className:"flex items-center",children:[(0,i.jsx)("span",{className:"sr-only",children:"WPGraphQL"}),(0,i.jsx)(g.A,{size:32})]})}),(0,i.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["\xa9 ",e," WPGraphQL \xb7 GPL-3 Licensed"]})]}),(0,i.jsx)("div",{className:"flex items-center gap-2",children:R.map(e=>(0,i.jsxs)("a",{href:e.href,className:"flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",target:"_blank",rel:"noreferrer",children:[(0,i.jsx)("span",{className:"sr-only",children:e.name}),(0,i.jsx)(e.icon,{className:"h-5 w-5","aria-hidden":"true"})]},e.name))})]})})}function X({children:e}){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Y,{}),e,(0,i.jsx)(H,{})]})}let J={queries:{navMenu:{query:(0,n.Ay)` 260 query Layout_NavMenu { 261 ...NavMenu 262 } 263 ${V} 264 `,variables:()=>({})}}}},6196:(e,t,r)=>{"use strict";function i(){return{"Developer Reference":[{title:"Overview",href:"/developer-reference"},{title:"Actions",href:"/actions"},{title:"Filters",href:"/filters"},{title:"Functions",href:"/functions"},{title:"Recipes",href:"/recipes"}]}}r.d(t,{A:()=>i})},6308:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s});var i=r(5729),n=r(483);function s(e){let t=(0,i.useRef)(e);return(0,n.s)(()=>{t.current=e},[e]),t}},6470:e=>{"use strict";e.exports=JSON.parse('{"plugin":"wp-graphql","generatedAt":"2026-09-22T18:21:07.813Z","stats":{"totalRecipes":31},"recipes":[{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regisâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the âEditâ link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'deâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedConâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential soluâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldNameâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
264summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If youâve configured your WPGraphQL settings to âLimit the execution of GraphQL operations to authenticated requestsâ, this will block all root operations unless the user making the request is already authenticated. If yâ¦","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track thisâ¦","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>â¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]},{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filterâ¦","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]},{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conneâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authenâ¦","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
264summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,â¦","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]},{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublishedâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]},{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are nâ¦","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Query the Homepage","slug":"query-the-homepage","uri":"/recipes/query-the-homepage","wordpressUri":"/recipes/query-the-homepage/","uriKey":"/recipes/query-the-homepage","group":"Queries","summary":"In WordPress, the homepage can be a Page or an archive of posts of the Post post_type (which is represented by WPGraphQL as a âContentTypeâ node). This query allows you to query the homepage, and specify what data you waâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":[]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFielâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>â¦","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}
264,{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the âextensionsâ from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instanâ¦","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometimâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql enâ¦","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields onâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}],"relations":{"actions":{"graphql_register_types":[{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the âEditâ link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'deâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedConâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential soluâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
264summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFielâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>â¦","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]}],"graphql_server_config":[{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track thisâ¦","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]}],"do_graphql_request":[{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
264summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,â¦","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]}]},"filters":{"graphql_require_authentication_allowed_fields":[{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If youâve configured your WPGraphQL settings to âLimit the execution of GraphQL operations to authenticated requestsâ, this will block all root operations unless the user making the request is already authenticated. If yâ¦","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]}],"request":[{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If youâve configured your WPGraphQL settings to âLimit the execution of GraphQL operations to authenticated requestsâ, this will block all root operations unless the user making the request is already authenticated. If yâ¦","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authenâ¦","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>â¦","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]}],"graphql_object_fields":[{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/
264deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filterâ¦","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]}],"graphql_connection_query_args":[{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conneâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublishedâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]}],"graphql_term_object_connection_query_args":[{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"graphql_post_object_connection_query_args":[{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"graphql_object_visibility":[{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublishedâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]}],"graphql_data_is_private":[{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Quer
264ies. If you want to expose Menus and Menu Items that are nâ¦","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]}],"graphql_request_results":[{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the âextensionsâ from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instanâ¦","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]}],"graphql_endpoint":[{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql enâ¦","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]}]},"functions":{"graphql":[{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regisâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the âEditâ link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'deâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedConâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-w
264hen-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If youâve configured your WPGraphQL settings to âLimit the execution of GraphQL operations to authenticated requestsâ, this will block all root operations unless the user making the request is already authenticated. If yâ¦","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track thisâ¦","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authenâ¦","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are nâ¦","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}
264,{"title":"Remove Extensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the âextensionsâ from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instanâ¦","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometimâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql enâ¦","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields onâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}],"register_graphql_field":[{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the âEditâ link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'deâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedConâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential soluâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
264summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>â¦","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}],"register_graphql_connection":[{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldNameâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFielâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]}],"register_graphql_object_type":[{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
264summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]}],"is_graphql_http_request":[{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>â¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]}],"is_graphql_request":[{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]}],"do_graphql_request":[{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
264summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,â¦","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]}],"register_graphql_mutation":[{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]}]},"byUri":{"/recipes/acf-nav-menu-plugin-support":{"title":"ACF Nav Menu Plugin Support","slug":"acf-nav-menu-plugin-support","uri":"/recipes/acf-nav-menu-plugin-support","wordpressUri":"/recipes/acf-nav-menu-plugin-support/","uriKey":"/recipes/acf-nav-menu-plugin-support","group":"Uncategorized","summary":"This adds support (native) for the ACF Nav Menu field plugin ( https://github.com/jgraup/advanced-custom-fields-nav-menu-field ). This also requires WPGraphQL for Advanced Custom Fields . add_filter( \'wpgraphql_acf_regisâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/add-edit-link-to-all-post-types":{"title":"Add Edit Link to All Post Types","slug":"add-edit-link-to-all-post-types","uri":"/recipes/add-edit-link-to-all-post-types","wordpressUri":"/recipes/add-edit-link-to-all-post-types/","uriKey":"/recipes/add-edit-link-to-all-post-types","group":"Custom Fields","summary":"The following snippet shows how to add the âEditâ link as a GraphQL field to all post types: add_action( \'graphql_register_types\', function() { register_graphql_field( \'ContentNode\', \'editLink\', [ \'type\' => \'String\', \'deâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},"/recipes/add-field-for-unencoded-content":{"title":"Add field for unencoded content","slug":"add-field-for-unencoded-content","uri":"/recipes/add-field-for-unencoded-content","wordpressUri":"/recipes/add-field-for-unencoded-content/","uriKey":"/recipes/add-field-for-unencoded-content","group":"Custom Fields","summary":"The following adds a field to the NodeWithContentEditor interface to get the unencoded content for a post: add_action( \'graphql_register_types\', function() { register_graphql_field( \'NodeWithContentEditor\', \'unencodedConâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field"]},"/recipes/add-field-to-output-urls-for-sitemap":{"title":"Add field to output URLs for Sitemap","slug":"add-field-to-output-urls-for-sitemap","uri":"/recipes/add-field-to-output-urls-for-sitemap","wordpressUri":"/recipes/add-field-to-output-urls-for-sitemap/","uriKey":"/recipes/add-field-to-output-urls-for-sitemap","group":"Custom Fields","summary":"The following code is an example of how you can create a field called allUrls that will output site URLs that could be used to generate a sitemap. The resolver uses mostly hard-coded data, but shows what a potential soluâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},"/recipes/add-primary-category-field-for-the-seo-framework-plugin":{"title":"Add Primary Category field for The SEO Framework plugin","slug":"add-primary-category-field-for-the-seo-framework-plugin","uri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","wordpressUri":"/recipes/add-primary-category-field-for-the-seo-framework-plugin/","uriKey":"/recipes/add-primary-category-field-for-the-seo-framework-plugin","group":"Custom Fields","summary":"The following adds a field called primaryCat field when using The SEO Framework WordPress Plugin add_action( \'init\', function() { register_graphql_connection([ \'fromType\' => \'Post\', \'toType\' => \'Category\', \'fromFieldNameâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/add-wp-admin-color-schemes-to-wpgraphql":{"title":"Add WP Admin Color Schemes to WPGraphQL","slug":"add-wp-admin-color-schemes-to-wpgraphql","uri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","wordpressUri":"/recipes/add-wp-admin-color-schemes-to-wpgraphql/","uriKey":"/recipes/add-wp-admin-color-schemes-to-wpgraphql","group":"WP Admin","
264summary":"The following example code allows you to add WP Admin Color Schemes data to WPGraphQL. add_action( \'graphql_register_types\', function() { $mock_colors = \' { \\"fresh\\":{ \\"name\\":\\"Default\\", \\"url\\":false, \\"colors\\":[ \\"#222\\", \\"#3â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted":{"title":"Allow login mutation to be public when the endpoint is fully restricted","slug":"allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","uri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","wordpressUri":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted/","uriKey":"/recipes/allow-login-mutation-to-be-public-when-the-endpoint-is-fully-restricted","group":"Authorization","summary":"If youâve configured your WPGraphQL settings to âLimit the execution of GraphQL operations to authenticated requestsâ, this will block all root operations unless the user making the request is already authenticated. If yâ¦","relatedActions":[],"relatedFilters":["graphql_require_authentication_allowed_fields","request"],"relatedFunctions":["graphql"]},"/recipes/change-the-debug-flag":{"title":"Changing the Server Debug Flag","slug":"change-the-debug-flag","uri":"/recipes/change-the-debug-flag","wordpressUri":"/recipes/change-the-debug-flag/","uriKey":"/recipes/change-the-debug-flag","group":"Extensions","summary":"The following snippets show how to change the Debug Flag for the GraphQL Server execution. By default, the function callstack trace is not included with errors data unless users are logged in. If you wanted to track thisâ¦","relatedActions":["graphql_server_config"],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/debugging-jwt-authentication":{"title":"Debugging JWT Authentication","slug":"debugging-jwt-authentication","uri":"/recipes/debugging-jwt-authentication","wordpressUri":"/recipes/debugging-jwt-authentication/","uriKey":"/recipes/debugging-jwt-authentication","group":"WP Admin","summary":"This snippet outputs the $_SERVER superglobal so we can see if the Authorization token is being passed to the server or not. add_action( \'init\', function() { if ( is_graphql_http_request() ) { wp_send_json( [ \'server\' =>â¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["is_graphql_http_request"]},"/recipes/deprecating-a-field-in-the-schema":{"title":"Deprecating a field in the Schema","slug":"deprecating-a-field-in-the-schema","uri":"/recipes/deprecating-a-field-in-the-schema","wordpressUri":"/recipes/deprecating-a-field-in-the-schema/","uriKey":"/recipes/deprecating-a-field-in-the-schema","group":"Custom Fields","summary":"Sometimes it can be helpful to deprecate a field in the Schema without removing it altogether. This snippet shows how to deprecate the `Post.excerpt` field. You can use this technique to deprecate other fields. // Filterâ¦","relatedActions":[],"relatedFilters":["graphql_object_fields"],"relatedFunctions":[]},"/recipes/filter-connection-args":{"title":"Filter Connection Args","slug":"filter-connection-args","uri":"/recipes/filter-connection-args","wordpressUri":"/recipes/filter-connection-args/","uriKey":"/recipes/filter-connection-args","group":"Uncategorized","summary":"This filters connection args by checking the field name the connection is coming from as well as the type the connection is coming from. add_filter( \'graphql_connection_query_args\', function( $args, \\\\WPGraphQL\\\\Data\\\\Conneâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args"],"relatedFunctions":[]},"/recipes/filter-to-add-restricted-field-on-model":{"title":"Filter to add restricted field on Model","slug":"filter-to-add-restricted-field-on-model","uri":"/recipes/filter-to-add-restricted-field-on-model","wordpressUri":"/recipes/filter-to-add-restricted-field-on-model/","uriKey":"/recipes/filter-to-add-restricted-field-on-model","group":"Queries","summary":"Labels on Post Types are not publicly exposed by WordPress. They are attributes for use in the Admin, and are treated with respect to proper access to the admin. To see the labels, the user requesting them must be authenâ¦","relatedActions":[],"relatedFilters":["request"],"relatedFunctions":["graphql"]},"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin":{"title":"Fix pagination conflict with the âAdvanced Taxonomy Terms Orderâ plugin","slug":"fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-advanced-taxonomy-terms-order-plugin","group":"Uncategorized","summary":"When using the Advanced Taxonomy Terms Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_terms\', function() {â¦","relatedActions":[],"relatedFilters":["graphql_term_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin":{"title":"Fix pagination conflict with the âPost Type Orderâ plugin","slug":"fix-pagination-conflict-with-the-post-type-order-plugin","uri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","wordpressUri":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin/","uriKey":"/recipes/fix-pagination-conflict-with-the-post-type-order-plugin","group":"Uncategorized","summary":"When using the Post Type Order plugin along with WPGraphQL, you might experience some issues with paginated queries. This snippet should help correct the conflict: add_action( \'pre_get_posts\', function () { // access theâ¦","relatedActions":[],"relatedFilters":["graphql_post_object_connection_query_args","request"],"relatedFunctions":["graphql","is_graphql_request"]},"/recipes/list-of-key-values":{"title":"List of Key Values","slug":"list-of-key-values","uri":"/recipes/list-of-key-values","wordpressUri":"/recipes/list-of-key-values/","uriKey":"/recipes/list-of-key-values","group":"Custom Fields","summary":"This is an example showing how to return a list of keys and values where the keys and values are both strings. add_action( \'graphql_register_types\', function() { register_graphql_object_type( \'keyValue\', [ \'description\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field","register_graphql_object_type"]},"/recipes/log-wpgraphql-requests-to-error-log":{"title":"Log WPGraphQL requests to error log","slug":"log-wpgraphql-requests-to-error-log","uri":"/recipes/log-wpgraphql-requests-to-error-log","wordpressUri":"/recipes/log-wpgraphql-requests-to-error-log/","uriKey":"/recipes/log-wpgraphql-requests-to-error-log","group":"WP Admin","
264summary":"This snippet logs all WPGraphQL requests to the error log add_action( \'do_graphql_request\', function( $query, $operation, $variables, $params) { error_log( wp_json_encode( [ \'query\' => $query, \'operation\' => $operation,â¦","relatedActions":["do_graphql_request"],"relatedFilters":[],"relatedFunctions":["do_graphql_request"]},"/recipes/make-all-users-public":{"title":"Make all Users Public","slug":"make-all-users-public","uri":"/recipes/make-all-users-public","wordpressUri":"/recipes/make-all-users-public/","uriKey":"/recipes/make-all-users-public","group":"Authorization","summary":"The following snippets allow for Users with no published content to be shown in public (non-authenticated) WPGraphQL query results. For a more detailed write-up, read the blog post: Allowing WPGraphQL to show unpublishedâ¦","relatedActions":[],"relatedFilters":["graphql_connection_query_args","graphql_object_visibility"],"relatedFunctions":[]},"/recipes/making-menus-and-menu-items-public":{"title":"Making Menus and Menu Items public","slug":"making-menus-and-menu-items-public","uri":"/recipes/making-menus-and-menu-items-public","wordpressUri":"/recipes/making-menus-and-menu-items-public/","uriKey":"/recipes/making-menus-and-menu-items-public","group":"Authorization","summary":"By default, Menus and Menu Items that are not assigned to a Menu Location are considered private, meaning they are not exposed in non-authenticated WPGraphQL Queries. If you want to expose Menus and Menu Items that are nâ¦","relatedActions":[],"relatedFilters":["graphql_data_is_private"],"relatedFunctions":["graphql"]},"/recipes/page-siblings-connection":{"title":"Page Siblings Connection","slug":"page-siblings-connection","uri":"/recipes/page-siblings-connection","wordpressUri":"/recipes/page-siblings-connection/","uriKey":"/recipes/page-siblings-connection","group":"Uncategorized","summary":"Below is a connection that adds the ability to query page siblings (i.e. pages that share the same parent) add_action( \'graphql_register_types\', function() { register_graphql_connection( [ \'fromType\' => \'Page\', \'toType\'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/popular-posts":{"title":"Popular Posts","slug":"popular-posts","uri":"/recipes/popular-posts","wordpressUri":"/recipes/popular-posts/","uriKey":"/recipes/popular-posts","group":"Custom Post Types","summary":"The following code allows you to query for popular posts. Itâs still up to you to determine the best way to store popular posts, but this example assumes a meta_key is involved. Beware though, meta queries can be expensiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection","register_graphql_field"]},"/recipes/query-the-homepage":{"title":"Query the Homepage","slug":"query-the-homepage","uri":"/recipes/query-the-homepage","wordpressUri":"/recipes/query-the-homepage/","uriKey":"/recipes/query-the-homepage","group":"Queries","summary":"In WordPress, the homepage can be a Page or an archive of posts of the Post post_type (which is represented by WPGraphQL as a âContentTypeâ node). This query allows you to query the homepage, and specify what data you waâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":[]},"/recipes/register-a-basic-mutation":{"title":"Register a basic Mutation","slug":"register-a-basic-mutation","uri":"/recipes/register-a-basic-mutation","wordpressUri":"/recipes/register-a-basic-mutation/","uriKey":"/recipes/register-a-basic-mutation","group":"Custom Fields","summary":"This snippet shows how to register a basic GraphQL Mutation with a single input field, a single output field, and the input is simply returned as the value for the output. add_action( \'graphql_register_types\', function()â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_mutation"]},"/recipes/register-connection-to-attached-media":{"title":"Register Connection to Attached Media","slug":"register-connection-to-attached-media","uri":"/recipes/register-connection-to-attached-media","wordpressUri":"/recipes/register-connection-to-attached-media/","uriKey":"/recipes/register-connection-to-attached-media","group":"Custom Post Types","summary":"This code shows how to register a connection to attached media in WPGraphQL add_action( \'graphql_register_types\', function() { register_graphql_connection([ \'fromType\' => \'ContentNode\', \'toType\' => \'MediaItem\', \'fromFielâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_connection"]},"/recipes/register-field-as-a-list-of-strings":{"title":"Register field as a list of strings","slug":"register-field-as-a-list-of-strings","uri":"/recipes/register-field-as-a-list-of-strings","wordpressUri":"/recipes/register-field-as-a-list-of-strings/","uriKey":"/recipes/register-field-as-a-list-of-strings","group":"Custom Fields","summary":"The below code registers a field called listOfStrings that returns a list of strings as the result: add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'listOfStrings\', [ \'type\' => [ \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["register_graphql_field"]},"/recipes/register-graphql-field-with-argument":{"title":"Register GraphQL Field with Argument","slug":"register-graphql-field-with-argument","uri":"/recipes/register-graphql-field-with-argument","wordpressUri":"/recipes/register-graphql-field-with-argument/","uriKey":"/recipes/register-graphql-field-with-argument","group":"Custom Fields","summary":"This is an example of registering a field with an argument showing how to use the argument in a resolver. add_action( \'graphql_register_types\', function() { register_graphql_field( \'RootQuery\', \'myNewField\', [ \'type\' =>â¦","relatedActions":["graphql_register_types"],"relatedFilters":["request"],"relatedFunctions":["register_graphql_field"]},"/recipes/register-object-and-field-for-custom-list-of-users":{"title":"Register object and field for custom list of users","slug":"register-object-and-field-for-custom-list-of-users","uri":"/recipes/register-object-and-field-for-custom-list-of-users","wordpressUri":"/recipes/register-object-and-field-for-custom-list-of-users/","uriKey":"/recipes/register-object-and-field-for-custom-list-of-users","group":"Custom Fields","summary":"The following code creates an object type called StuntPerformer and creates a field on the RootQuery called stuntPerformers that returns a custom list of users. In this case, the list of users are the admins of the websiâ¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_field","register_graphql_object_type"]},"/recipes/remove-extensions-from-graphql-response":{"title":"Remove E
264xtensions from GraphQL Response","slug":"remove-extensions-from-graphql-response","uri":"/recipes/remove-extensions-from-graphql-response","wordpressUri":"/recipes/remove-extensions-from-graphql-response/","uriKey":"/recipes/remove-extensions-from-graphql-response","group":"Execution","summary":"This snippet removes the âextensionsâ from the GraphQL response: add_filter( \'graphql_request_results\', function( $response ) { // If it\'s an ExecutionResult object, we need to handle it differently if ( $response instanâ¦","relatedActions":[],"relatedFilters":["graphql_request_results"],"relatedFunctions":["graphql"]},"/recipes/showing-post-type-labels-in-public-queries":{"title":"Showing Post Type labels in public queries","slug":"showing-post-type-labels-in-public-queries","uri":"/recipes/showing-post-type-labels-in-public-queries","wordpressUri":"/recipes/showing-post-type-labels-in-public-queries/","uriKey":"/recipes/showing-post-type-labels-in-public-queries","group":"Authorization","summary":"WPGraphQL respects WordPress core access control rights. This means that data that is only available to authenticated users in the WordPress admin is only available to authenticated users making GraphQL requests. Sometimâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]},"/recipes/tag-to-content-node-connection":{"title":"Tag to Content Node Connection","slug":"tag-to-content-node-connection","uri":"/recipes/tag-to-content-node-connection","wordpressUri":"/recipes/tag-to-content-node-connection/","uriKey":"/recipes/tag-to-content-node-connection","group":"Custom Post Types","summary":"The following code registers a connection from Tags to ContentNodes. A field name called contentNodes will be added to the Tag type to make it easy to view all Posts that are tagged with that specific term. add_action( \'â¦","relatedActions":["graphql_register_types"],"relatedFilters":[],"relatedFunctions":["graphql","register_graphql_connection"]},"/recipes/update-wpgraphql-endpoint-url":{"title":"Update WPGraphQL Endpoint URL","slug":"update-wpgraphql-endpoint-url","uri":"/recipes/update-wpgraphql-endpoint-url","wordpressUri":"/recipes/update-wpgraphql-endpoint-url/","uriKey":"/recipes/update-wpgraphql-endpoint-url","group":"WP Admin","summary":"You can modify the WPGraphQL endpoint in code with the following: function my_new_graphql_endpoint() { return \'cutepuppies\'; }; add_filter( \'graphql_endpoint\', \'my_new_graphql_endpoint\' ); This will change the graphql enâ¦","relatedActions":[],"relatedFilters":["graphql_endpoint"],"relatedFunctions":["graphql"]},"/recipes/using-graphql-fragments-in-php":{"title":"Using GraphQL Fragments in PHP","slug":"using-graphql-fragments-in-php","uri":"/recipes/using-graphql-fragments-in-php","wordpressUri":"/recipes/using-graphql-fragments-in-php/","uriKey":"/recipes/using-graphql-fragments-in-php","group":"Queries","summary":"You can execute GraphQL queries in PHP. In this case, we even show using a GraphQL Fragment. add_action( \'init\', function() { $results = graphql([ \'query\' => \' { posts { nodes { ...PostFields } } } fragment PostFields onâ¦","relatedActions":[],"relatedFilters":[],"relatedFunctions":["graphql"]}}}}')},6509:(e,t,r)=>{"use strict";r.d(t,{UY:()=>o,jK:()=>i,eF:()=>a}),r(3601),globalThis.fetch?.bind(globalThis);function i({templates:e,Layout:t}={}){}var n=r(5729);let s=(0,n.createContext)(null);function o({value:e,children:t}){return(0,n.createElement)(s.Provider,{value:e},t)}function a(){return(0,n.useContext)(s)}r(3601)},6550:(e,t,r)=>{"use strict";let i,n,s,o,a;r.d(t,{W:()=>$});var l=r(5729),c=r(483),d=r(6308);function u(e,t){let[r,i]=(0,l.useState)(e),n=(0,d.Y)(e);return(0,c.s)(()=>i(n.current),[n,i,...t]),r}var p=r(4149),h=r(158),g=r(1201),m=r(2940),f=r(7163),x=r(1321);let y=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function b(e){var t,r;let i=null!=(t=e.innerText)?t:"",n=e.cloneNode(!0);if(!(n instanceof HTMLElement))return i;let s=!1;for(let e of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let o=s?null!=(r=n.innerText)?r:"":i;return y.test(o)&&(o=o.replace(y,"")),o}function v(e){return[e.screenX,e.screenY]}var w=r(6942),_=r(1453),j=r(2357),k=((i=k||{})[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i),N=r(3029),E=r(2774);function q(e,t){return e?e+"["+t+"]":t}var T=r(5219),A=r(1673),F=r(2562),C=r(5612),P=((n=P||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),S=((s=S||{})[s.Single=0]="Single",s[s.Multi=1]="Multi",s),L=((o=L||{})[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o),O=((a=O||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function I(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,i=(0,E.wl)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),n=r?i.indexOf(r):null;return -1===n&&(n=null),{options:i,activeOptionIndex:n}}let R={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,i=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==i&&(t=i),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var r;if(e.dataRef.current.disabled||1===e.listboxState)return e;let i=I(e),n=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let i=t.resolveActiveIndex(),n=null!=i?i:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return i;case 1:for(let e=n-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return i;case 2:for(let e=n+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return i;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return i;case 4:for(let i=0;i<r.length;++i)if(t.resolveId(r[i],i,r)===e.id)return i;return i;case 5:return null;default:throw Error("Unexpected object: "+e)}}(t,{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...i,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(r=t.trigger)?r:1}},3:(e,t)=>
264{if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=+(""===e.searchQuery),i=e.searchQuery+t.value.toLowerCase(),n=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+r).concat(e.options.slice(0,e.activeOptionIndex+r)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(i))}),s=n?e.options.indexOf(n):-1;return -1===s||s===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:s,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let r={id:t.id,dataRef:t.dataRef},i=I(e,e=>[...e,r]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(r)),{...e,...i}},6:(e,t)=>{let r=I(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},D=(0,l.createContext)(null);function M(e){let t=(0,l.useContext)(D);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}D.displayName="ListboxActionsContext";let U=(0,l.createContext)(null);function W(e){let t=(0,l.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}function z(e,t){return(0,T.Y)(t.type,R,e,t)}U.displayName="ListboxDataContext";let B=l.Fragment,G=F.O5.RenderStrategy|F.O5.Static,$=Object.assign((0,F.FX)(function(e,t){let{value:r,defaultValue:i,form:n,name:s,onChange:o,by:a=(e,t)=>e===t,disabled:d=!1,horizontal:u=!1,multiple:g=!1,...f}=e,y=u?"horizontal":"vertical",b=(0,x.P)(t),[v=g?[]:void 0,j]=function(e,t,r){let[i,n]=(0,l.useState)(r),s=void 0!==e,o=(0,l.useRef)(s),a=(0,l.useRef)(!1),c=(0,l.useRef)(!1);return!s||o.current||a.current?s||!o.current||c.current||(c.current=!0,o.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,o.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?e:i,(0,p._)(e=>(s||n(e),null==t?void 0:t(e)))]}(r,o,i),[N,A]=(0,l.useReducer)(z,{dataRef:(0,l.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),C=(0,l.useRef)({static:!1,hold:!1}),P=(0,l.useRef)(null),S=(0,l.useRef)(null),L=(0,l.useRef)(null),O=(0,p._)("string"==typeof a?(e,t)=>(null==e?void 0:e[a])===(null==t?void 0:t[a]):a),I=(0,l.useCallback)(e=>(0,T.Y)(R.mode,{1:()=>v.some(t=>O(t,e)),0:()=>O(v,e)}),[v]),R=(0,l.useMemo)(()=>({...N,value:v,disabled:d,mode:+!!g,orientation:y,compare:O,isSelected:I,optionsPropsRef:C,labelRef:P,buttonRef:S,optionsRef:L}),[v,d,g,N]);(0,c.s)(()=>{N.dataRef.current=R},[R]),(0,m.j)([R.buttonRef,R.optionsRef],(e,t)=>{var r;A({type:1}),(0,E.Bm)(t,E.MZ.Loose)||(e.preventDefault(),null==(r=R.buttonRef.current)||r.focus())},0===R.listboxState);let M=(0,l.useMemo)(()=>({open:0===R.listboxState,disabled:d,value:v}),[R,d,v]),W=(0,p._)(e=>{let t=R.options.find(t=>t.id===e);t&&H(t.dataRef.current.value)}),G=(0,p._)(()=>{if(null!==R.activeOptionIndex){let{dataRef:e,id:t}=R.options[R.activeOptionIndex];H(e.current.value),A({type:2,focus:k.Specific,id:t})}}),$=(0,p._)(()=>A({type:0})),Q=(0,p._)(()=>A({type:1})),K=(0,p._)((e,t,r)=>e===k.Specific?A({type:2,focus:k.Specific,id:t,trigger:r}):A({type:2,focus:e,trigger:r})),V=(0,p._)((e,t)=>(A({type:5,id:e,dataRef:t}),()=>A({type:6,id:e}))),Y=(0,p._)(e=>(A({type:7,id:e}),()=>A({type:7,id:null}))),H=(0,p._)(e=>(0,T.Y)(R.mode,{0:()=>null==j?void 0:j(e),1(){let t=R.value.slice(),r=t.findIndex(t=>O(t,e));return -1===r?t.push(e):t.splice(r,1),null==j?void 0:j(t)}})),X=(0,p._)(e=>A({type:3,value:e})),J=(0,p._)(()=>A({type:4})),Z=(0,l.useMemo)(()=>({onChange:H,registerOption:V,registerLabel:Y,goToOption:K,closeListbox:Q,openListbox:$,selectActiveOption:G,selectOption:W,search:X,clearSearch:J}),[]),ee=(0,l.useRef)(null),et=(0,h.L)();return(0,l.useEffect)(()=>{ee.current&&void 0!==i&&et.addEventListener(ee.current,"reset",()=>{null==j||j(i)})},[ee,j]),l.createElement(D.Provider,{value:Z},l.createElement(U.Provider,{value:R},l.createElement(_.El,{value:(0,T.Y)(R.listboxState,{0:_.Uw.Open,1:_.Uw.Closed})},null!=s&&null!=v&&(function e(t={},r=null,i=[]){for(let[n,s]of Object.entries(t))!function t(r,i,n){if(Array.isArray(n))for(let[e,s]of n.entries())t(r,q(i,e.toString()),s);else n instanceof Date?r.push([i,n.toISOString()]):"boolean"==typeof n?r.push([i,n?"1":"0"]):"string"==typeof n?r.push([i,n]):"number"==typeof n?r.push([i,`${n}`]):null==n?r.push([i,""]):e(n,i,r)}(i,q(r,n),s);return i})({[s]:v}).map(([e,t],r)=>l.createElement(w.j,{features:w.O.Hidden,ref:0===r?e=>{var t;ee.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,F.oE)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:d,name:e,value:t})})),(0,F.XX)({ourProps:{ref:b},theirProps:f,slot:M,defaultTag:B,name:"Listbox"}))))}),{Button:(0,F.FX)(function(e,t){var r;let i=(0,g.B)(),{id:n=`headlessui-listbox-button-${i}`,...s}=e,o=W("Listbox.Button"),a=M("Listbox.Button"),c=(0,x.P)(o.buttonRef,t),d=(0,h.L)(),m=(0,p._)(e=>{switch(e.key){case C.D.Space:case C.D.Enter:case C.D.ArrowDown:e.preventDefault(),a.openListbox(),d.nextFrame(()=>{o.value||a.goToOption(k.First)});break;case C.D.ArrowUp:e.preventDefault(),a.openListbox(),d.nextFrame(()=>{o.value||a.goToOption(k.Last)})}}),y=(0,p._)(e=>{e.key===C.D.Space&&e.preventDefault()}),b=(0,p._)(e=>{if((0,j.l)(e.currentTarget))return e.preventDefault();0===o.listboxState?(a.closeListbox(),d.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
264)):(e.preventDefault(),a.openListbox())}),v=u(()=>{if(o.labelId)return[o.labelId,n].join(" ")},[o.labelId,n]),w=(0,l.useMemo)(()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value}),[o]),_={ref:c,id:n,type:(0,f.c)(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(r=o.optionsRef.current)?void 0:r.id,"aria-expanded":0===o.listboxState,"aria-labelledby":v,disabled:o.disabled,onKeyDown:m,onKeyUp:y,onClick:b};return(0,F.XX)({ourProps:_,theirProps:s,slot:w,defaultTag:"button",name:"Listbox.Button"})}),Label:(0,F.FX)(function(e,t){let r=(0,g.B)(),{id:i=`headlessui-listbox-label-${r}`,...n}=e,s=W("Listbox.Label"),o=M("Listbox.Label"),a=(0,x.P)(s.labelRef,t);(0,c.s)(()=>o.registerLabel(i),[i]);let d=(0,p._)(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),u=(0,l.useMemo)(()=>({open:0===s.listboxState,disabled:s.disabled}),[s]);return(0,F.XX)({ourProps:{ref:a,id:i,onClick:d},theirProps:n,slot:u,defaultTag:"label",name:"Listbox.Label"})}),Options:(0,F.FX)(function(e,t){var r;let i=(0,g.B)(),{id:n=`headlessui-listbox-options-${i}`,...s}=e,o=W("Listbox.Options"),a=M("Listbox.Options"),c=(0,x.P)(o.optionsRef,t),d=(0,h.L)(),m=(0,h.L)(),f=(0,_.O_)(),y=null!==f?(f&_.Uw.Open)===_.Uw.Open:0===o.listboxState;(0,l.useEffect)(()=>{var e;let t=o.optionsRef.current;t&&0===o.listboxState&&t!==(null==(e=(0,A.T)(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let b=(0,p._)(e=>{switch(m.dispose(),e.key){case C.D.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),a.search(e.key);case C.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];a.onChange(e.current.value)}0===o.mode&&(a.closeListbox(),(0,N.e)().nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
264));break;case(0,T.Y)(o.orientation,{vertical:C.D.ArrowDown,horizontal:C.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),a.goToOption(k.Next);case(0,T.Y)(o.orientation,{vertical:C.D.ArrowUp,horizontal:C.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),a.goToOption(k.Previous);case C.D.Home:case C.D.PageUp:return e.preventDefault(),e.stopPropagation(),a.goToOption(k.First);case C.D.End:case C.D.PageDown:return e.preventDefault(),e.stopPropagation(),a.goToOption(k.Last);case C.D.Escape:return e.preventDefault(),e.stopPropagation(),a.closeListbox(),d.nextFrame(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case C.D.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(a.search(e.key),m.setTimeout(()=>a.clearSearch(),350))}}),v=u(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.id},[o.buttonRef.current]),w=(0,l.useMemo)(()=>({open:0===o.listboxState}),[o]),j={"aria-activedescendant":null===o.activeOptionIndex||null==(r=o.options[o.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":v,"aria-orientation":o.orientation,id:n,onKeyDown:b,role:"listbox",tabIndex:0,ref:c};return(0,F.XX)({ourProps:j,theirProps:s,slot:w,defaultTag:"ul",features:G,visible:y,name:"Listbox.Options"})}),Option:(0,F.FX)(function(e,t){let r,i,n,s=(0,g.B)(),{id:o=`headlessui-listbox-option-${s}`,disabled:a=!1,value:u,...h}=e,m=W("Listbox.Option"),f=M("Listbox.Option"),y=null!==m.activeOptionIndex&&m.options[m.activeOptionIndex].id===o,w=m.isSelected(u),_=(0,l.useRef)(null),j=(r=(0,l.useRef)(""),i=(0,l.useRef)(""),(0,p._)(()=>{let e=_.current;if(!e)return"";let t=e.innerText;if(r.current===t)return i.current;let n=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():b(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return b(e).trim()})(e).trim().toLowerCase();return r.current=t,i.current=n,n})),E=(0,d.Y)({disabled:a,value:u,domRef:_,get textValue(){return j()}}),q=(0,x.P)(t,_);(0,c.s)(()=>{if(0!==m.listboxState||!y||0===m.activationTrigger)return;let e=(0,N.e)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=_.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[_,y,m.listboxState,m.activationTrigger,m.activeOptionIndex]),(0,c.s)(()=>f.registerOption(o,E),[E,o]);let T=(0,p._)(e=>{if(a)return e.preventDefault();f.onChange(u),0===m.mode&&(f.closeListbox(),(0,N.e)().nextFrame(()=>{var e;return null==(e=m.buttonRef.current)?void 0:e.focus({preventScroll:!0})}
264))}),A=(0,p._)(()=>{if(a)return f.goToOption(k.Nothing);f.goToOption(k.Specific,o)}),C=(n=(0,l.useRef)([-1,-1]),{wasMoved(e){let t=v(e);return(n.current[0]!==t[0]||n.current[1]!==t[1])&&(n.current=t,!0)},update(e){n.current=v(e)}}),P=(0,p._)(e=>C.update(e)),S=(0,p._)(e=>{C.wasMoved(e)&&(a||y||f.goToOption(k.Specific,o,0))}),L=(0,p._)(e=>{C.wasMoved(e)&&(a||y&&f.goToOption(k.Nothing))}),O=(0,l.useMemo)(()=>({active:y,selected:w,disabled:a}),[y,w,a]);return(0,F.XX)({ourProps:{id:o,ref:q,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":w,disabled:void 0,onClick:T,onFocus:A,onPointerEnter:P,onMouseEnter:P,onPointerMove:S,onMouseMove:S,onPointerLeave:L,onMouseLeave:L},theirProps:h,slot:O,defaultTag:"li",name:"Listbox.Option"})})})},6654:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(5729);let n=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))})},6772:(e,t,r)=>{e.exports=r(9387)},6892:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var i=r(6029),n=r(5729);r(735);var s=r(1278),o=r(6772),a=r.n(o),l=r(9278);let c="G-K34TZSKN01";r(8358),r(5727);var d=r(3055);let u="data-pre-enhanced",p=` 265<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 266 <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect> 267 <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path> 268</svg>`,h=` 269<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> 270 <polyline points="20 6 9 17 4 12"></polyline> 271</svg>`;function g(e){if(!e||e.hasAttribute(u))return;e.setAttribute(u,"true");let t=e.querySelector("code"),r=function(e){if(!e)return"";let t=Array.from(e.classList).find(e=>e.startsWith("language-"));return t?t.replace(/^language-/,""):""}(t),i=document.createElement("div");i.className="code-block-wrap not-prose",e.parentNode.insertBefore(i,e);let n=document.createElement("div");n.className="code-block-header",n.innerHTML=` 272 <div class="code-block-dots" aria-hidden="true"> 273 <span class="code-block-dot" style="background:#FF5F57"></span> 274 <span class="code-block-dot" style="background:#FEBC2E"></span> 275 <span class="code-block-dot" style="background:#28C840"></span> 276 </div> 277 <div class="code-block-meta"> 278 ${r?`<span class="code-block-lang">${r}</span>`:""} 279 <button type="button" class="code-block-copy" aria-label="Copy code"> 280 ${p}<span class="code-block-copy-label">Copy</span> 281 </button> 282 </div> 283 `;let s=n.querySelector(".code-block-copy");s.addEventListener("click",async()=>{let r=(t?.textContent??e.textContent??"").replace(/\n$/,"");try{await navigator.clipboard.writeText(r),s.classList.add("is-copied"),s.innerHTML=`${h}<span class="code-block-copy-label">Copied</span>`,setTimeout(()=>{s.classList.remove("is-copied"),s.innerHTML=`${p}<span class="code-block-copy-label">Copy</span>`},1500)}catch{s.classList.add("is-error"),s.querySelector(".code-block-copy-label").textContent="Failed"}}),i.appendChild(n),i.appendChild(e)}function m(){let{asPath:e}=(0,s.useRouter)();return(0,n.useEffect)(()=>{let e=requestAnimationFrame(()=>{document.querySelectorAll(".prose pre").forEach(g)});return()=>cancelAnimationFrame(e)},[e]),null}function f({Component:e,pageProps:t}){let r=(0,s.useRouter)();return(0,n.useEffect)(()=>{let e=e=>{window.gtag("config",c,{page_path:e})};return r.events.on("routeChangeComplete",e),()=>{r.events.off("routeChangeComplete",e)}},[r.events]),(0,i.jsx)(l.N,{attribute:"class",defaultTheme:"dark",enableSystem:!0,children:(0,i.jsxs)(d.Y,{children:[(0,i.jsx)(a(),{strategy:"afterInteractive",src:`https://www.googletagmanager.com/gtag/js?i
283d=${c}`}),(0,i.jsx)(a(),{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:` 284 window.dataLayer = window.dataLayer || []; 285 function gtag(){dataLayer.push(arguments);} 286 gtag('js', new Date()); 287 gtag('config', '${c}', { 288 page_path: window.location.pathname, 289 }); 290 `}}),(0,n.createElement)(e,{...t,key:r.asPath}),(0,i.jsx)(m,{})]})})}},6916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return k},useLinkStatus:function(){return j}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(3514),o=r(6029),a=s._(r(5729)),l=r(8338),c=r(2472),d=r(9537),u=r(1031),p=r(1400),h=r(265),g=r(7511),m=r(8876),f=r(4381),x=r(9058),y=new Set;function b(e,t,r,i){if((0,c.isLocalURL)(t)){if(!i.bypassPrefetchedCheck){let n=t+"%"+r+"%"+(void 0!==i.locale?i.locale:"locale"in e?e.locale:void 0);if(y.has(n))return;y.add(n)}e.prefetch(t,r,i).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,d.formatUrl)(e)}let w=a.default.forwardRef(function(e,t){let r,i,{href:n,as:s,children:d,prefetch:y=null,passHref:w,replace:_,shallow:j,scroll:k,locale:N,onClick:E,onNavigate:q,onMouseEnter:T,onTouchStart:A,legacyBehavior:F=!1,transitionTypes:C,...P}=e;r=d,F&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let S=a.default.useContext(h.RouterContext),L=!1!==y,{href:O,as:I}=a.default.useMemo(()=>{if(!S){let e=v(n);return{href:e,as:s?v(s):e}}let[e,t]=(0,l.resolveHref)(S,n,!0);return{href:e,as:s?(0,l.resolveHref)(S,s):t||e}},[S,n,s]),R=a.default.useRef(O),D=a.default.useRef(I);F&&(i=a.default.Children.only(r));let M=F?i&&"object"==typeof i&&i.ref:t,[U,W,z]=(0,g.useIntersection)({rootMargin:"200px"}),B=a.default.useCallback(e=>{(D.current!==I||R.current!==O)&&(z(),D.current=I,R.current=O),U(e)},[I,O,z,U]),G=(0,x.useMergedRef)(B,M);a.default.useEffect(()=>{!S||W&&L&&b(S,O,I,{bypassPrefetchedCheck:!1,locale:N})},[I,O,W,N,L,S?.locale,S]);let $={ref:G,onClick(e){F||"function"!=typeof E||E(e),F&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),!S||e.defaultPrevented||function(e,t,r,i,n,s,o,a,l){let d,{nodeName:u}=e.currentTarget;if(!("A"===u.toUpperCase()&&((d=e.currentTarget.getAttribute("target"))&&"_self"!==d||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,c.isLocalURL)(r)){n&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=o??!0;"beforePopState"in t?t[n?"replace":"push"](r,i,{shallow:s,locale:a,scroll:e}):t[n?"replace":"push"](i||r,{scroll:e})})()}}(e,S,O,I,_,j,k,N,q)},onMouseEnter(e){F||"function"!=typeof T||T(e),F&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),S&&b(S,O,I,{locale:N,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){F||"function"!=typeof A||A(e),F&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),S&&b(S,O,I,{locale:N,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(I))$.href=I;else if(!F||w||"a"===i.type&&!("href"in i.props)){let e=void 0!==N?N:S?.locale;$.href=S?.isLocaleDomain&&(0,m.getDomainLocale)(I,e,S?.locales,S?.domainLocales)||(0,f.addBasePath)((0,p.addLocale)(I,e,S?.defaultLocale))}return F?a.default.cloneElement(i,$):(0,o.jsx)("a",{...P,...$,children:r})}),_=(0,a.createContext)({pending:!1}),j=()=>(0,a.useContext)(_),k=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6942:(e,t,r)=>{"use strict";let i;r.d(t,{O:()=>s,j:()=>o});var n=r(2562),s=((i=s||{})[i.None=1]="None",i[i.Focusable=2]="Focusable",i[i.Hidden=4]="Hidden",i);let o=(0,n.FX)(function(e,t){var r;let{features:i=1,...s}=e,o={ref:t,"aria-hidden":(2&i)==2||(null!=(r=s["aria-hidden"])?r:void 0),hidden:(4&i)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,n.XX)({ourProps:o,theirProps:s,slot:{},defaultTag:"div",name:"Hidden"})})},6947:(e,t,r)=>{"use strict";let i,n;r.d(t,{$:()=>S});var s=r(6029),o=r(5729),a=r.t(o,2),l=Object.defineProperty,c=(e,t)=>l(e,"name",{value:t,configurable:!0});function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return t=>{let r=!1,i=e.map(e=>{let i=d(e,t);return r||"function"!=typeof i||(r=!0),i});if(r)return()=>{for(let t=0;t<i.length;t++){let r=i[t];"function"==typeof r?r():d(e[t],null)}}}}function p(...e){return o.useCallback(u(...e),e)}c(d,"setRef"),c(u,"composeRefs"),c(p,"useComposedRefs");var h=Object.defineProperty,g=(e,t)=>h(e,"name",{value:t,configurable:!0});function m(e){let t=o.forwardRef((t,r)=>{let{children:i,...n}=t,s=null,a=!1,l=[];
290j(i)&&"function"==typeof q&&(i=q(i._payload)),o.Children.forEach(i,e=>{if(w(e)){a=!0;let t="child"in e.props?e.props.child:e.props.children;j(t)&&"function"==typeof q&&(t=q(t._payload)),s=y(e,t),l.push(s?.props?.children)}else l.push(e)}),s?s=o.cloneElement(s,void 0,l):!a&&1===o.Children.count(i)&&o.isValidElement(i)&&(s=i);let c=s?v(s):void 0,d=p(r,c);if(!s){if(i||0===i)throw Error(a?E(e):N(e));return i}let u=b(n,s.props??{});return s.type!==o.Fragment&&(u.ref=r?d:c),o.cloneElement(s,u)});return t.displayName=`${e}.Slot`,t}g(m,"createSlot");var f=m("Slot"),x=Symbol.for("radix.slottable");g(function(e){let t=g(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=x,t},"createSlottable");var y=g((e,t)=>{if("child"in e.props){let t=e.props.child;return o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null}return o.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function b(e,t){let r={...t};for(let i in t){let n=e[i],s=t[i];/^on[A-Z]/.test(i)?n&&s?r[i]=(...e)=>{let t=s(...e);return n(...e),t}:n&&(r[i]=n):"style"===i?r[i]={...n,...s}:"className"===i&&(r[i]=[n,s].filter(Boolean).join(" "))}return{...e,...r}}function v(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function w(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}g(b,"mergeProps"),g(v,"getElementRef"),g(w,"isSlottable");var _=Symbol.for("react.lazy");function j(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===_&&"_payload"in e&&k(e._payload)}function k(e){return"object"==typeof e&&null!==e&&"then"in e}g(j,"isLazyComponent"),g(k,"isPromiseLike");var N=g(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),E=g(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),q=a[" use ".trim().toString()],T=r(212);let A=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,F=T.$;var C=r(4656);let P=(i="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n={variants:{variant:{default:"bg-primary text-primary-foreground shadow-glow-sm hover:shadow-glow-md hover:-translate-y-0.5",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}},e=>{var t;if((null==n?void 0:n.variants)==null)return F(i,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:r,defaultVariants:s}=n,o=Object.keys(r).map(t=>{let i=null==e?void 0:e[t],n=null==s?void 0:s[t];if(null===i)return null;let o=A(i)||A(n);return r[t][o]}),a=e&&Object.entries(e).reduce((e,t)=>{let[r,i]=t;return void 0===i||(e[r]=i),e},{});return F(i,o,null==n||null==(t=n.compoundVariants)?void 0:t.reduce((e,t)=>{let{class:r,className:i,...n}=t;return Object.entries(n).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...a}[t]):({...s,...a}
290)[t]===r})?[...e,r,i]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),S=o.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...n},o)=>(0,s.jsx)(i?f:"button",{"data-slot":"button",className:(0,C.cn)(P({variant:t,size:r,className:e})),ref:o,...n}));S.displayName="Button"},7163:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var i=r(5729),n=r(483);function s(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function o(e,t){let[r,o]=(0,i.useState)(()=>s(e));return(0,n.s)(()=>{o(s(e))},[e.type,e.as]),(0,n.s)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}},7195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return c},noSSR:function(){return l}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(4761);r(6029),r(5729);let o=s._(r(9060));function a(e){return{default:e?.default||e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}function c(e,t){let r=o.default,i={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let n=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?r({...i,loader:()=>null!=n?n().then(a):Promise.resolve(a(()=>null))}):(delete i.webpack,delete i.modules,l(r,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7478:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,Sv:()=>a,at:()=>l,jd:()=>c});var i=r(6029),n=r(270),s=r(5669),o=r.n(s);let a=(0,n.Ay)` 291 fragment Seo on ContentNode { 292 uri 293 seo { 294 title 295 metaDesc 296 opengraphTitle 297 opengraphDescription 298 opengraphSiteName 299 opengraphPublishedTime 300 opengraphModifiedTime 301 opengraphImage { 302 altText 303 sourceUrl 304 } 305 twitterTitle 306 twitterDescription 307 twitterImage { 308 sourceUrl 309 } 310 schema { 311 raw 312 } 313 } 314 } 315`,l=(0,n.Ay)` 316 fragment SeoCategory on Category { 317 uri 318 seo { 319 title 320 metaDesc 321 opengraphTitle 322 opengraphDescription 323 opengraphSiteName 324 opengraphImage { 325 altText 326 sourceUrl 327 } 328 twitterTitle 329 twitterDescription 330 twitterImage { 331 sourceUrl 332 } 333 schema { 334 raw 335 } 336 } 337 } 338`,c=(0,n.Ay)` 339 fragment SeoUser on User { 340 uri 341 seo { 342 title 343 metaDesc 344 opengraphTitle 345 opengraphDescription 346 opengraphImage { 347 altText 348 sourceUrl 349 } 350 twitterTitle 351 twitterDescription 352 twitterImage { 353 sourceUrl 354 } 355 schema { 356 raw 357 } 358 } 359 } 360`,d="https://www.wpgraphql.com".replace(/\/+$/,"");function u(...e){for(let t of e)if("string"==typeof t&&""!==t.trim()||null!=t&&"string"!=typeof t)return t;return null}function p({node:e,title:t,description:r,uri:n,noindex:s=!1}){var a,l;
360let c,h=e?.seo??{},g=u(t,h.opengraphTitle,h.title),m=u(r,h.metaDesc,h.opengraphDescription),f=(a=n??e?.uri)?/^https?:\/\//i.test(a)?a:`${d}${a.startsWith("/")?a:`/${a}`}`:d||null,x=h.opengraphImage?.sourceUrl,y=h.twitterImage?.sourceUrl??x;return(0,i.jsxs)(o(),{children:[g&&(0,i.jsx)("title",{children:g},"title"),m&&(0,i.jsx)("meta",{name:"description",content:m},"description"),f&&(0,i.jsx)("link",{rel:"canonical",href:f},"canonical"),(0,i.jsx)("meta",{name:"robots",content:s?"noindex, follow":"index, follow"},"robots"),g&&(0,i.jsx)("meta",{property:"og:title",content:g},"og:title"),m&&(0,i.jsx)("meta",{property:"og:description",content:m},"og:description"),f&&(0,i.jsx)("meta",{property:"og:url",content:f},"og:url"),(0,i.jsx)("meta",{property:"og:type",content:e?"article":"website"},"og:type"),h.opengraphSiteName&&(0,i.jsx)("meta",{property:"og:site_name",content:h.opengraphSiteName},"og:site_name"),h.opengraphPublishedTime&&(0,i.jsx)("meta",{property:"article:published_time",content:h.opengraphPublishedTime},"article:published_time"),h.opengraphModifiedTime&&(0,i.jsx)("meta",{property:"article:modified_time",content:h.opengraphModifiedTime},"article:modified_time"),x&&(0,i.jsx)("meta",{property:"og:image",content:x},"og:image"),h.opengraphImage?.altText&&(0,i.jsx)("meta",{property:"og:image:alt",content:h.opengraphImage.altText},"og:image:alt"),(0,i.jsx)("meta",{name:"twitter:card",content:y?"summary_large_image":"summary"},"twitter:card"),u(h.twitterTitle,g)&&(0,i.jsx)("meta",{name:"twitter:title",content:u(h.twitterTitle,g)},"twitter:title"),u(h.twitterDescription,m)&&(0,i.jsx)("meta",{name:"twitter:description",content:u(h.twitterDescription,m)},"twitter:description"),y&&(0,i.jsx)("meta",{name:"twitter:image",content:y},"twitter:image"),h.schema?.raw&&(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(c=function(e,t){try{let e=new URL("https://contentwpgraphql.wpcomstaging.com/").origin;if(e&&e!==d)return e}catch{}if(e&&t){let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(RegExp(`https?://[a-z0-9.-]+(?=${r})`,"i"));if(i&&i[0]!==d)return i[0]}return null}(l=h.schema.raw,e?.uri),l&&c&&d?l.split(c).join(d):l)}},"ld-json")]})}},7511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let i=r(5729),n=r(5954),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l({rootRef:e,rootMargin:t,disabled:r}){let c=r||!s,[d,u]=(0,i.useState)(!1),p=(0,i.useRef)(null),h=(0,i.useCallback)(e=>{p.current=e},[]);return(0,i.useEffect)(()=>{if(s){if(c||d)return;let r=p.current;if(r&&r.tagName)return function(e,t,r){let{id:i,observer:n,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},i=a.find(e=>e.root===r.root&&e.margin===r.margin);if(i&&(t=o.get(i)))return t;let n=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=n.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:n},a.push(r),o.set(r,t),t}(r);return s.set(e,t),n.observe(e),function(){if(s.delete(e),n.unobserve(e),0===s.size){n.disconnect(),o.delete(i);let e=a.findIndex(e=>e.root===i.root&&e.margin===i.margin);e>-1&&a.splice(e,1)}}}(r,e=>e&&u(e),{root:e?.current,rootMargin:t})}else if(!d){let e=(0,n.requestIdleCallback)(()=>u(!0));return()=>(0,n.cancelIdleCallback)(e)}},[c,t,e,d,p.current]),[h,d,(0,i.useCallback)(()=>{u(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7876:(e,t)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:o}){let a=i?40*i:e,l=n?40*n:t,c=a&&l?`viewBox='0 0 ${a} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3Cfe
360Composite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${s}'/%3E%3C/svg%3E`}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},8233:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(6029),n=r(2203),s=r.n(n);function o({items:e}){return e&&0!==e.length?(0,i.jsx)("nav",{"aria-label":"Breadcrumb",className:"not-prose mb-4",children:(0,i.jsx)("ol",{className:"flex flex-wrap items-center gap-1.5 font-mono text-xs tracking-wide text-muted-foreground",children:e.map((t,r)=>{let n=r===e.length-1;return(0,i.jsxs)("li",{className:"flex items-center gap-1.5",children:[r>0&&(0,i.jsx)("span",{"aria-hidden":"true",className:"text-border",children:"/"}),t.href&&!n?(0,i.jsx)(s(),{href:t.href,className:"transition-colors hover:text-primary",children:t.label}):(0,i.jsx)("span",{"aria-current":n?"page":void 0,className:"text-foreground",children:t.label})]},t.label)})})}):null}},8358:()=>{},8471:(e,t)=>{"use strict";function r(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"findClosestQuality",{enumerable:!0,get:function(){return r}})},8588:(e,t,r)=>{e.exports=r(2601)},8631:(e,t,r)=>{"use strict";let i,n,s;r.d(t,{A:()=>V});var o=r(5729),a=r(6760),l=r(4149),c=r(483),d=r(188),u=r(1673);function p(...e){return(0,o.useMemo)(()=>(0,u.T)(...e),[...e])}var h=r(2925),g=r(1321);let m=(0,o.createContext)(!1);var f=r(5369),x=r(2562);let y=o.Fragment,b=o.Fragment,v=(0,o.createContext)(null),w=(0,o.createContext)(null);Object.assign((0,x.FX)(function(e,t){var r;let i,n,s=(0,o.useRef)(null),u=(0,g.P)((0,g.a)(e=>{s.current=e}),t),b=p(s),_=function(e){let t=(0,o.useContext)(m),r=(0,o.useContext)(v),i=p(e),[n,s]=(0,o.useState)(()=>{if(!t&&null!==r||f._.isServer)return null;let e=null==i?void 0:i.getElementById("headlessui-portal-root");if(e)return e;if(null===i)return null;let n=i.createElement("div");return n.setAttribute("id","headlessui-portal-root"),i.body.appendChild(n)});return(0,o.useEffect)(()=>{null!==n&&(null!=i&&i.body.contains(n)||null==i||i.body.appendChild(n))},[n,i]),(0,o.useEffect)(()=>{t||null!==r&&s(r.current)},[r,s,t]),n}(s),[j]=(0,o.useState)(()=>{var e;return f._.isServer?null:null!=(e=null==b?void 0:b.createElement("div"))?e:null}),k=(0,o.useContext)(w),N=(0,h.g)();return(0,c.s)(()=>{!_||!j||_.contains(j)||(j.setAttribute("data-headlessui-portal",""),_.appendChild(j))},[_,j]),(0,c.s)(()=>{if(j&&k)return k.register(j)},[k,j]),r=()=>{var e;_&&j&&(j instanceof Node&&_.contains(j)&&_.removeChild(j),_.childNodes.length<=0&&(null==(e=_.parentElement)||e.removeChild(_)))},i=(0,l._)(r),n=(0,o.useRef)(!1),(0,o.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,d._)(()=>{n.current&&i()})}),[i]),N&&_&&j?(0,a.createPortal)((0,x.XX)({ourProps:{ref:u},theirProps:e,defaultTag:y,name:"Portal"}),j):null}),{Group:(0,x.FX)(function(e,t){let{target:r,...i}=e,n={ref:(0,g.P)(t)};return o.createElement(v.Provider,{value:r},(0,x.XX)({ourProps:n,theirProps:i,defaultTag:b,name:"Popover.Group"}))})});var _=r(6308),j=r(1201),k=r(2940),N=r(7163),E=r(6942),q=r(22),T=((i=T||{})[i.Forwards=0]="Forwards",i[i.Backwards=1]="Backwards",i);function A(){let e=(0,o.useRef)(0);return(0,q.M)("keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}var F=r(1453),C=r(2357),P=r(2774),S=r(5219),L=r(5612),O=((n=O||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),I=((s=I||{})[s.TogglePopover=0]="TogglePopover",s[s.ClosePopover=1]="ClosePopover",s[s.SetButton=2]="SetButton",s[s.SetButtonId=3]="SetButtonId",s[s.SetPanel=4]="SetPanel",s[s.SetPanelId=5]="SetPanelId",s);let R={0:e=>{let t={...e,popoverState:(0,S.Y)(e.popoverState,{0:1,1:0})};return 0===t.popoverState&&(t.__demoMode=!1),t},1:e=>1===e.popoverState?e:{...e,popoverState:1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
360e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},D=(0,o.createContext)(null);function M(e){let t=(0,o.useContext)(D);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}D.displayName="PopoverContext";let U=(0,o.createContext)(null);function W(e){let t=(0,o.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,W),t}return t}U.displayName="PopoverAPIContext";let z=(0,o.createContext)(null);function B(){return(0,o.useContext)(z)}z.displayName="PopoverGroupContext";let G=(0,o.createContext)(null);function $(e,t){return(0,S.Y)(t.type,R,e,t)}G.displayName="PopoverPanelContext";let Q=x.O5.RenderStrategy|x.O5.Static,K=x.O5.RenderStrategy|x.O5.Static,V=Object.assign((0,x.FX)(function(e,t){var r,i,n;let s,a,c,d,u,h,{__demoMode:m=!1,...f}=e,y=(0,o.useRef)(null),b=(0,g.P)(t,(0,g.a)(e=>{y.current=e})),v=(0,o.useRef)([]),j=(0,o.useReducer)($,{__demoMode:m,popoverState:+!m,buttons:v,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,o.createRef)(),afterPanelSentinel:(0,o.createRef)()}),[{popoverState:N,button:q,buttonId:T,panel:A,panelId:C,beforePanelSentinel:L,afterPanelSentinel:O},I]=j,R=p(null!=(r=y.current)?r:q),M=(0,o.useMemo)(()=>{if(!q||!A)return!1;for(let e of document.querySelectorAll("body > *"))if(Number(null==e?void 0:e.contains(q))^Number(null==e?void 0:e.contains(A)))return!0;let e=(0,P.iq)(),t=e.indexOf(q),r=(t+e.length-1)%e.length,i=(t+1)%e.length,n=e[r],s=e[i];return!A.contains(n)&&!A.contains(s)},[q,A]),W=(0,_.Y)(T),z=(0,_.Y)(C),Q=(0,o.useMemo)(()=>({buttonId:W,panelId:z,close:()=>I({type:1})}),[W,z,I]),K=B(),V=null==K?void 0:K.registerPopover,Y=(0,l._)(()=>{var e;return null!=(e=null==K?void 0:K.isFocusWithinPopoverGroup())?e:(null==R?void 0:R.activeElement)&&((null==q?void 0:q.contains(R.activeElement))||(null==A?void 0:A.contains(R.activeElement)))});(0,o.useEffect)(()=>null==V?void 0:V(Q),[V,Q]);let[H,X]=(s=(0,o.useContext)(w),a=(0,o.useRef)([]),c=(0,l._)(e=>(a.current.push(e),s&&s.register(e),()=>d(e))),d=(0,l._)(e=>{let t=a.current.indexOf(e);-1!==t&&a.current.splice(t,1),s&&s.unregister(e)}),u=(0,o.useMemo)(()=>({register:c,unregister:d,portals:a}),[c,d,a]),[a,(0,o.useMemo)(()=>function({children:e}){return o.createElement(w.Provider,{value:u},e)},[u])]),J=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:r}={}){var i;let n=(0,o.useRef)(null!=(i=null==r?void 0:r.current)?i:null),s=p(n),a=(0,l._)(()=>{var r,i,o;let a=[];for(let t of e)null!==t&&(t instanceof HTMLElement?a.push(t):"current"in t&&t.current instanceof HTMLElement&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(r=null==s?void 0:s.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(n.current)||e.contains(null==(o=null==(i=n.current)?void 0:i.getRootNode())?void 0:o.host)||a.some(t=>e.contains(t))||a.push(e));return a});
360return{resolveContainers:a,contains:(0,l._)(e=>a().some(t=>t.contains(e))),mainTreeNodeRef:n,MainTreeNode:(0,o.useMemo)(()=>function(){return null!=r?null:o.createElement(E.j,{features:E.O.Hidden,ref:n})},[n,r])}}({mainTreeNodeRef:null==K?void 0:K.mainTreeNodeRef,portals:H,defaultContainers:[q,A]});i=null==R?void 0:R.defaultView,n="focus",h=(0,_.Y)(e=>{var t,r,i,n;e.target!==window&&e.target instanceof HTMLElement&&0===N&&(Y()||q&&A&&(J.contains(e.target)||null!=(r=null==(t=L.current)?void 0:t.contains)&&r.call(t,e.target)||null!=(n=null==(i=O.current)?void 0:i.contains)&&n.call(i,e.target)||I({type:1})))}),(0,o.useEffect)(()=>{function e(e){h.current(e)}return(i=null!=i?i:window).addEventListener(n,e,!0),()=>i.removeEventListener(n,e,!0)},[i,n,!0]),(0,k.j)(J.resolveContainers,(e,t)=>{I({type:1}),(0,P.Bm)(t,P.MZ.Loose)||(e.preventDefault(),null==q||q.focus())},0===N);let Z=(0,l._)(e=>{I({type:1});let t=e?e instanceof HTMLElement?e:"current"in e&&e.current instanceof HTMLElement?e.current:q:q;null==t||t.focus()}),ee=(0,o.useMemo)(()=>({close:Z,isPortalled:M}),[Z,M]),et=(0,o.useMemo)(()=>({open:0===N,close:Z}),[N,Z]);return o.createElement(G.Provider,{value:null},o.createElement(D.Provider,{value:j},o.createElement(U.Provider,{value:ee},o.createElement(F.El,{value:(0,S.Y)(N,{0:F.Uw.Open,1:F.Uw.Closed})},o.createElement(X,null,(0,x.XX)({ourProps:{ref:b},theirProps:f,slot:et,defaultTag:"div",name:"Popover"}),o.createElement(J.MainTreeNode,null))))))}),{Button:(0,x.FX)(function(e,t){let r=(0,j.B)(),{id:i=`headlessui-popover-button-${r}`,...n}=e,[s,a]=M("Popover.Button"),{isPortalled:c}=W("Popover.Button"),d=(0,o.useRef)(null),u=`headlessui-focus-sentinel-${(0,j.B)()}`,h=B(),m=null==h?void 0:h.closeOthers,f=null!==(0,o.useContext)(G);(0,o.useEffect)(()=>{if(!f)return a({type:3,buttonId:i}),()=>{a({type:3,buttonId:null})}},[f,i,a]);let[y]=(0,o.useState)(()=>Symbol()),b=(0,g.P)(d,t,f?null:e=>{if(e)s.buttons.current.push(y);else{let e=s.buttons.current.indexOf(y);-1!==e&&s.buttons.current.splice(e,1)}s.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&a({type:2,button:e})}),v=(0,g.P)(d,t),w=p(d),_=(0,l._)(e=>{var t,r,i;if(f){if(1===s.popoverState)return;switch(e.key){case L.D.Space:case L.D.Enter:e.preventDefault(),null==(r=(t=e.target).click)||r.call(t),a({type:1}),null==(i=s.button)||i.focus()}}else switch(e.key){case L.D.Space:case L.D.Enter:e.preventDefault(),e.stopPropagation(),1===s.popoverState&&(null==m||m(s.buttonId)),a({type:0});break;case L.D.Escape:if(0!==s.popoverState)return null==m?void 0:m(s.buttonId);if(!d.current||null!=w&&w.activeElement&&!d.current.contains(w.activeElement))return;e.preventDefault(),e.stopPropagation(),a({type:1})}}),k=(0,l._)(e=>{f||e.key===L.D.Space&&e.preventDefault()}),q=(0,l._)(t=>{var r,i;(0,C.l)(t.currentTarget)||e.disabled||(f?(a({type:1}),null==(r=s.button)||r.focus()):(t.preventDefault(),t.stopPropagation(),1===s.popoverState&&(null==m||m(s.buttonId)),a({type:0}),null==(i=s.button)||i.focus()))}),F=(0,l._)(e=>{e.preventDefault(),e.stopPropagation()}),O=0===s.popoverState,I=(0,o.useMemo)(()=>({open:O}),[O]),R=(0,N.c)(e,d),D=f?{ref:v,type:R,onKeyDown:_,onClick:q}:{ref:b,id:s.buttonId,type:R,"aria-expanded":0===s.popoverState,"aria-controls":s.panel?s.panelId:void 0,onKeyDown:_,onKeyUp:k,onClick:q,onMouseDown:F},U=A(),z=(0,l._)(()=>{let e=s.panel;e&&(0,S.Y)(U.current,{[T.Forwards]:()=>(0,P.CU)(e,P.BD.First),[T.Backwards]:()=>(0,P.CU)(e,P.BD.Last)})===P.Me.Error&&(0,P.CU)((0,P.iq)().filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,S.Y)(U.current,{[T.Forwards]:P.BD.Next,[T.Backwards]:P.BD.Previous}),{relativeTo:s.button})});return o.createElement(o.Fragment,null,(0,x.XX)({ourProps:D,theirProps:n,slot:I,defaultTag:"button",name:"Popover.Button"}),O&&!f&&c&&o.createElement(E.j,{id:u,features:E.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:z}))}),Overlay:(0,x.FX)(function(e,t){let r=(0,j.B)(),{id:i=`headlessui-popover-overlay-${r}`,...n}=e,[{popoverState:s},a]=M("Popover.Overlay"),c=(0,g.P)(t),d=(0,F.O_)(),u=null!==d?(d&F.Uw.Open)===F.Uw.Open:0===s,p=(0,l._)(e=>{if((0,C.l)(e.currentTarget))return e.preventDefault();a({type:1})}),h=(0,o.useMemo)(()=>({open:0===s}),[s]);return(0,x.XX)({ourProps:{ref:c,id:i,"aria-hidden":!0,onClick:p},theirProps:n,slot:h,defaultTag:"div",features:Q,visible:u,name:"Popover.Overlay"})}),Panel:(0,x.FX)(function(e,t){let r=(0,j.B)(),{id:i=`headlessui-popover-panel-${r}`,focus:n=!1,...s}=e,[a,d]=M("Popover.Panel"),{close:u,isPortalled:h}=W("Popover.Panel"),m=`headlessui-focus-sentinel-before-${(0,j.B)()}`,f=`headlessui-focus-sentinel-after-${(0,j.B)()}`,y=(0,o.useRef)(null),b=(0,g.P)(y,t,e=>{d({type:4,panel:e})}),v=p(y),w=(0,x.cq)();(0,c.s)(()=>(d({type:5,panelId:i}),()=>{d({type:5,panelId:null})}
360),[i,d]);let _=(0,F.O_)(),k=null!==_?(_&F.Uw.Open)===F.Uw.Open:0===a.popoverState,N=(0,l._)(e=>{var t;if(e.key===L.D.Escape){if(0!==a.popoverState||!y.current||null!=v&&v.activeElement&&!y.current.contains(v.activeElement))return;e.preventDefault(),e.stopPropagation(),d({type:1}),null==(t=a.button)||t.focus()}});(0,o.useEffect)(()=>{var t;e.static||1===a.popoverState&&(null==(t=e.unmount)||t)&&d({type:4,panel:null})},[a.popoverState,e.unmount,e.static,d]),(0,o.useEffect)(()=>{if(a.__demoMode||!n||0!==a.popoverState||!y.current)return;let e=null==v?void 0:v.activeElement;y.current.contains(e)||(0,P.CU)(y.current,P.BD.First)},[a.__demoMode,n,y,a.popoverState]);let q=(0,o.useMemo)(()=>({open:0===a.popoverState,close:u}),[a,u]),C={ref:b,id:i,onKeyDown:N,onBlur:n&&0===a.popoverState?e=>{var t,r,i,n,s;let o=e.relatedTarget;o&&y.current&&(null!=(t=y.current)&&t.contains(o)||(d({type:1}),(null!=(i=null==(r=a.beforePanelSentinel.current)?void 0:r.contains)&&i.call(r,o)||null!=(s=null==(n=a.afterPanelSentinel.current)?void 0:n.contains)&&s.call(n,o))&&o.focus({preventScroll:!0})))}:void 0,tabIndex:-1},O=A(),I=(0,l._)(()=>{let e=y.current;e&&(0,S.Y)(O.current,{[T.Forwards]:()=>{var t;(0,P.CU)(e,P.BD.First)===P.Me.Error&&(null==(t=a.afterPanelSentinel.current)||t.focus())},[T.Backwards]:()=>{var e;null==(e=a.button)||e.focus({preventScroll:!0})}})}),R=(0,l._)(()=>{let e=y.current;e&&(0,S.Y)(O.current,{[T.Forwards]:()=>{var e;if(!a.button)return;let t=(0,P.iq)(),r=t.indexOf(a.button),i=t.slice(0,r+1),n=[...t.slice(r+1),...i];for(let t of n.slice())if("true"===t.dataset.headlessuiFocusGuard||null!=(e=a.panel)&&e.contains(t)){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}(0,P.CU)(n,P.BD.First,{sorted:!1})},[T.Backwards]:()=>{var t;(0,P.CU)(e,P.BD.Previous)===P.Me.Error&&(null==(t=a.button)||t.focus())}})});return o.createElement(G.Provider,{value:i},k&&h&&o.createElement(E.j,{id:m,ref:a.beforePanelSentinel,features:E.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:I}),(0,x.XX)({mergeRefs:w,ourProps:C,theirProps:s,slot:q,defaultTag:"div",features:K,visible:k,name:"Popover.Panel"}),k&&h&&o.createElement(E.j,{id:f,ref:a.afterPanelSentinel,features:E.O.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:R}))}),Group:(0,x.FX)(function(e,t){let r,i=(0,o.useRef)(null),n=(0,g.P)(i,t),[s,a]=(0,o.useState)([]),c={mainTreeNodeRef:r=(0,o.useRef)(null),MainTreeNode:(0,o.useMemo)(()=>function(){return o.createElement(E.j,{features:E.O.Hidden,ref:r})},[r])},d=(0,l._)(e=>{a(t=>{let r=t.indexOf(e);if(-1!==r){let e=t.slice();return e.splice(r,1),e}return t})}),p=(0,l._)(e=>(a(t=>[...t,e]),()=>d(e))),h=(0,l._)(()=>{var e;let t=(0,u.T)(i);if(!t)return!1;let r=t.activeElement;return!!(null!=(e=i.current)&&e.contains(r))||s.some(e=>{var i,n;return(null==(i=t.getElementById(e.buttonId.current))?void 0:i.contains(r))||(null==(n=t.getElementById(e.panelId.current))?void 0:n.contains(r))})}),m=(0,l._)(e=>{for(let t of s)t.buttonId.current!==e&&t.close()}),f=(0,o.useMemo)(()=>({registerPopover:p,unregisterPopover:d,isFocusWithinPopoverGroup:h,closeOthers:m,mainTreeNodeRef:c.mainTreeNodeRef}),[p,d,h,m,c.mainTreeNodeRef]),y=(0,o.useMemo)(()=>({}),[]);return o.createElement(z.Provider,{value:f},(0,x.XX)({ourProps:{ref:n},theirProps:e,slot:y,defaultTag:"div",name:"Popover.Group"}),o.createElement(c.MainTreeNode,null))})})},8696:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(5729);let n=i.forwardRef(function({title:e,titleId:t,...r},n){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})},8876:(e,t,r)=>{"use strict";function i(e,t,r,i){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return i}}),r(2034),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
360dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9053:e=>{"use strict";function t(e){if(null==e)return"";let t=String(e);return(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/&#x([0-9a-f]{1,6});/gi,(e,t)=>{let r=parseInt(t,16);return!Number.isFinite(r)||r<0||r>1114111?e:String.fromCodePoint(r)})).replace(/&#(\d{1,7});/g,(e,t)=>{let r=parseInt(t,10);return!Number.isFinite(r)||r<0||r>1114111?e:String.fromCodePoint(r)})).replace(/ /gi,"\xa0")).replace(/“/gi,"â")).replace(/”/gi,"â")).replace(/‘/gi,"â")).replace(/’/gi,"â")).replace(/…/gi,"â¦")).replace(/—/gi,"â")).replace(/–/gi,"â")).replace(/"/gi,'"')).replace(/'/gi,"'")).replace(/</gi,"<")).replace(/>/gi,">")).replace(/&/gi,"&")}e.exports=t,e.exports.decodeHtmlEntities=t},9058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=r(5729);function n(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,i)),t&&(n.current=s(t,i))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let i=r(4761)._(r(5729)),n=r(3538),s=[],o=[],a=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),s=null;function l(){if(!s){let t=new c(e,r);s={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return s.promise()}if(!a){let e=r.webpack&&1?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return l()})}function d(e,t){let o;l(),(o=i.default.useContext(n.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{o(e)});let a=i.default.useSyncExternalStore(s.subscribe,s.getCurrentValue,s.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:s.retry}),[]),i.default.useMemo(()=>{var t;return a.loading||a.error?i.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:s.retry}):a.loaded?i.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return d.preload=()=>l(),d.displayName="LoadableComponent",i.default.forwardRef(d)}(l,e)}function u(e,t){let r=[];for(;e.length;){let i=e.pop();r.push(i(t))}return Promise.all(r).then(()=>
360{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{u(s).then(e,t)}),d.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(a=!0,t());u(o,e).then(r,r)}),window.__NEXT_PRELOADREADY=d.preloadReady;let p=d},9133:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var i=r(6029);let n=new Map;function s({variant:e=0,count:t=16,width:r=320,height:o=360,className:a="",opacity:l=.7,intensity:c=1}){var d,u,p,h;let g,m,f,x,y,b,v,w,_,{points:j,bright:k,edges:N}=(w=`${e}:${t}:${r}:${o}`,(_=n.get(w))||(d=e,u=t,p=r,h=o,m=(g=9301*d+49297>>>0,()=>{let e=Math.imul((g=g+0x6d2b79f5|0)^g>>>15,1|g);return(((e=e+Math.imul(e^e>>>7,61|e)^e)^e>>>14)>>>0)/0x100000000}),x=(f=Array.from({length:u},()=>[+(m()*p).toFixed(1),+(m()*h).toFixed(1)])).map(()=>.3>m()),y=(1.7*Math.sqrt(p*h/u))**2,b=new Set,v=[],f.forEach((e,t)=>{let r=f.map((t,r)=>[r,(e[0]-t[0])**2+(e[1]-t[1])**2]).filter(([e])=>e!==t).sort((e,t)=>e[1]-t[1]),i=1+ +(m()>.6);for(let e=0;e<i&&e<r.length;e++){let[i,n]=r[e];if(n>y)continue;let s=t<i?`${t}-${i}`:`${i}-${t}`;b.has(s)||(b.add(s),v.push([t,i]))}}),_={points:f,bright:x,edges:v},n.set(w,_)),_),E=e=>Math.min(1,+(e*c).toFixed(3)),q=Math.min(1.5,.5+c/2);return(0,i.jsxs)("svg",{"aria-hidden":"true",viewBox:`0 0 ${r} ${o}`,preserveAspectRatio:"xMidYMid slice",style:{opacity:l},className:`pointer-events-none absolute inset-0 h-full w-full text-primary ${a}`,children:[(0,i.jsx)("g",{stroke:"currentColor",strokeWidth:.6*q,children:N.map(([e,t],r)=>(0,i.jsx)("line",{x1:j[e][0],y1:j[e][1],x2:j[t][0],y2:j[t][1],strokeOpacity:E(.18)},r))}),(0,i.jsx)("g",{fill:"currentColor",children:j.map(([e,t],r)=>k[r]?(0,i.jsxs)("g",{children:[(0,i.jsx)("circle",{cx:e,cy:t,r:3.4*q,fillOpacity:E(.12)}),(0,i.jsx)("circle",{cx:e,cy:t,r:1.5*q,fillOpacity:E(.9)})]},r):(0,i.jsx)("circle",{cx:e,cy:t,r:+q,fillOpacity:E(.45)},r))})]})}},9278:(e,t,r)=>{"use strict";r.d(t,{D:()=>d,N:()=>u});var i=r(5729),n=(e,t,r,i,n,s,o,a)=>{let l=document.documentElement,c=["light","dark"];function d(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,i=r&&s?n.map(e=>s[e]||e):n;r?(l.classList.remove(...i),l.classList.add(s&&s[t]?s[t]:t)):l.setAttribute(e,t)}),r=t,a&&c.includes(r)&&(l.style.colorScheme=r)}if(i)d(i);else try{let e=localStorage.getItem(t)||r,i=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;d(i)}catch(e){}},s=["light","dark"],o="(prefers-color-scheme: dark)",a="u"<typeof window,l=i.createContext(void 0),c={setTheme:e=>{},themes:[]},d=()=>{var e;return null!=(e=i.useContext(l))?e:c},u=e=>i.useContext(l)?i.createElement(i.Fragment,null,e.children):i.createElement(h,{...e}),p=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:c=p,defaultTheme:d=r?"system":"light",attribute:u="data-theme",value:h,children:y,nonce:b,scriptProps:v})=>{let[w,_]=i.useState(()=>m(a,d)),[j,k]=i.useState(()=>"system"===w?x():w),N=h?Object.values(h):c,E=i.useCallback(e=>{let i=e;if(!i)return;"system"===e&&r&&(i=x());let o=h?h[i]:i,a=t?f(b):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...N),o&&l.classList.add(o)):e.startsWith("data-")&&(o?l.setAttribute(e,o):l.removeAttribute(e))};if(Array.isArray(u)?u.forEach(c):c(u),n){let e=s.includes(d)?d:null,t=s.includes(i)?i:e;l.style.colorScheme=t}null==a||a()},[b]),q=i.useCallback(e=>{let t="function"==typeof e?e(w):e;_(t);try{localStorage.setItem(a,t)}catch(e){}},[w]),T=i.useCallback(t=>{k(x(t)),"system"===w&&r&&!e&&E("system")},[w,e]);i.useEffect(()=>{let e=window.matchMedia(o);return e.addListener(T),T(e),()=>e.removeListener(T)},[T]),i.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?_(e.newValue):q(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[q]),i.useEffect(()=>{E(null!=e?e:w)},[e,w]);let A=i.useMemo(()=>({theme:w,setTheme:q,forcedTheme:e,resolvedTheme:"system"===w?j:w,themes:r?[...c,"system"]:c,systemTheme:r?j:void 0}),[w,q,e,j,r,c]);return i.createElement(l.Provider,{value:A},i.createElement(g,{forcedTheme:e,storageKey:a,attribute:u,enableSystem:r,enableColorScheme:n,defaultTheme:d,value:h,themes:c,nonce:b,scriptProps:v}),y)},g=i.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:s,enableColorScheme:o,defaultTheme:a,value:l,themes:c,nonce:d,scriptProps:u})=>{let p=JSON.stringify([r,t,a,e,c,l,s,o]).slice(1,-1);return i.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"u"<typeof window?d:"",dangerouslySetInnerHTML:{__html:`(${n.toString()})(${p})`}}
360)}),m=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},x=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},9667:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var i=r(6029),n=r(5729);function s({size:e=32,variant:t="default",showGradient:r=!0,className:o,style:a}){let l="reversed"===t,c=`ide-grad-${(0,n.useId)().replace(/:/g,"")}`,d=l?"rgba(255,255,255,0.85)":"#A78BFA",u=l?"rgba(255,255,255,0.6)":"#C4B5FD",p=l?"rgba(255,255,255,0.4)":"#6578A0",h=l?"rgba(255,255,255,0.75)":"#50FA7B",g=l?"rgba(255,255,255,0.5)":"#96A8C8";return(0,i.jsxs)("svg",{width:e,height:e,viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"WPGraphQL IDE",className:o,style:a,children:[(0,i.jsx)("rect",{width:"160",height:"160",rx:"36",fill:l?"#8B5CF6":"#0C1220"}),r&&!l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("rect",{x:"14",y:"14",width:"132",height:"18",rx:"4",fill:`url(#${c})`}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:c,x1:"14",y1:"14",x2:"146",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0%",stopColor:"#9B72FF",stopOpacity:"0.35"}),(0,i.jsx)("stop",{offset:"100%",stopColor:"#6B3FD0",stopOpacity:"0"})]})})]}),(0,i.jsx)("rect",{x:"14",y:"14",width:"132",height:"18",rx:"4",fill:l?"rgba(0,0,0,0.25)":"#8B5CF6"}),(0,i.jsx)("circle",{cx:"25",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.7)":"rgba(255,255,255,0.55)"}),(0,i.jsx)("circle",{cx:"35",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.5)":"rgba(255,255,255,0.35)"}),(0,i.jsx)("circle",{cx:"45",cy:"23",r:"3.5",fill:l?"rgba(255,255,255,0.3)":"rgba(255,255,255,0.2)"}),(0,i.jsx)("circle",{cx:"136",cy:"23",r:"7",fill:l?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.12)"}),(0,i.jsx)("path",{d:"M 133.5 20.5 L 139 23 L 133.5 25.5 Z",fill:l?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.7)"}),(0,i.jsx)("rect",{x:"79.5",y:"38",width:"1",height:"108",fill:l?"rgba(255,255,255,0.2)":"#1A2540"}),(0,i.jsx)("rect",{x:"19",y:"44",width:"36",height:"2.5",rx:"1.25",fill:d,opacity:"0.7"}),(0,i.jsx)("rect",{x:"24",y:"51",width:"44",height:"2.5",rx:"1.25",fill:d,opacity:"0.55"}),(0,i.jsx)("rect",{x:"29",y:"58",width:"32",height:"2.5",rx:"1.25",fill:u,opacity:"0.45"}),(0,i.jsx)("rect",{x:"34",y:"65",width:"22",height:"2.5",rx:"1.25",fill:p,opacity:"0.5"}),(0,i.jsx)("rect",{x:"29",y:"72",width:"30",height:"2.5",rx:"1.25",fill:d,opacity:"0.4"}),(0,i.jsx)("rect",{x:"24",y:"79",width:"36",height:"2.5",rx:"1.25",fill:u,opacity:"0.35"}),(0,i.jsx)("rect",{x:"19",y:"86",width:"20",height:"2.5",rx:"1.25",fill:p,opacity:"0.4"}),(0,i.jsx)("rect",{x:"86",y:"44",width:"20",height:"2.5",rx:"1.25",fill:h,opacity:"0.8"}),(0,i.jsx)("rect",{x:"91",y:"51",width:"44",height:"2.5",rx:"1.25",fill:g,opacity:"0.55"}),(0,i.jsx)("rect",{x:"91",y:"58",width:"34",height:"2.5",rx:"1.25",fill:g,opacity:"0.45"}),(0,i.jsx)("rect",{x:"96",y:"65",width:"38",height:"2.5",rx:"1.25",fill:h,opacity:"0.4"}),(0,i.jsx)("rect",{x:"96",y:"72",width:"28",height:"2.5",rx:"1.25",fill:g,opacity:"0.4"}),(0,i.jsx)("rect",{x:"91",y:"79",width:"40",height:"2.5",rx:"1.25",fill:g,opacity:"0.35"}),(0,i.jsx)("rect",{x:"14",y:"134",width:"132",height:"12",rx:"3",fill:l?"rgba(0,0,0,0.3)":"#5E2EC4",opacity:"0.75"}),(0,i.jsx)("rect",{x:"19",y:"137",width:"40",height:"2",rx:"1",fill:"rgba(255,255,255,0.4)"}),(0,i.jsx)("rect",{x:"106",y:"137",width:"34",height:"2",rx:"1",fill:"rgba(255,255,255,0.25)"})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[593,792],()=>(t(3155),t(445))),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.