"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[130],{5849:function(e,t,n){function u(e,t){var n,u;const{levels:a,indentLevel:r}=e;return((a&&0!==a.length?a.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):r)||0)*((null===(u=this.config)||void 0===u?void 0:u.indentUnit)||0)}n.d(t,{A:function(){return u}})},6130:function(e,t,n){n.r(t);var u=n(709),a=n.n(u),r=n(1457),l=n(5849);a().defineMode("graphql-variables",(e=>{const t=(0,r.r5)({eatWhitespace:e=>e.eatSpace(),lexRules:i,parseRules:c,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l.A,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));const i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},c={Document:[(0,r.p)("{"),(0,r.p_)("Variable",(0,r.m7)((0,r.p)(","))),(0,r.p)("}")],Variable:[s("variable"),(0,r.p)(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[(0,r.t)("Number","number")],StringValue:[(0,r.t)("String","string")],BooleanValue:[(0,r.t)("Keyword","builtin")],NullValue:[(0,r.t)("Keyword","keyword")],ListValue:[(0,r.p)("["),(0,r.p_)("Value",(0,r.m7)((0,r.p)(","))),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.p_)("ObjectField",(0,r.m7)((0,r.p)(","))),(0,r.p)("}")],ObjectField:[s("attribute"),(0,r.p)(":"),"Value"]};function s(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}}}]);
//# sourceMappingURL=130.js.map