"use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([[339],{3297:(e,r)=>{var n,t,a,i,u,o,c;function s(){var e=a,r=[];if(v("{"),!h("}")){do{r.push(l())}while(h(","));v("}")}return{kind:"Object",start:e,end:u,members:r}}function l(){var e=a,r="String"===c?d():null;v("String"),v(":");var n=f();return{kind:"Member",start:e,end:u,key:r,value:n}}function f(){switch(c){case"[":return function(){var e=a,r=[];if(v("["),!h("]")){do{r.push(f())}while(h(","));v("]")}return{kind:"Array",start:e,end:u,values:r}}();case"{":return s();case"String":case"Number":case"Boolean":case"Null":var e=d();return y(),e}v("Value")}function d(){return{kind:c,start:a,end:i,value:JSON.parse(n.slice(a,i))}}function v(e){if(c!==e){var r;if("EOF"===c)r="[end of file]";else if(i-a>1)r="`"+n.slice(a,i)+"`";else{var t=n.slice(a).match(/^.+?\b/);r="`"+(t?t[0]:n[a])+"`"}throw p("Expected "+e+" but found "+r+".")}y()}function p(e){return{message:e,start:a,end:i}}function h(e){if(c===e)return y(),!0}function b(){return i<t&&(i++,o=i===t?0:n.charCodeAt(i)),o}function y(){for(u=i;9===o||10===o||13===o||32===o;)b();if(0!==o){switch(a=i,o){case 34:return c="String",function(){b();for(;34!==o&&o>31;)if(92===o)switch(o=b()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:b();break;case 117:b(),m(),m(),m(),m();break;default:throw p("Bad character escape sequence.")}else{if(i===t)throw p("Unterminated string.");b()}if(34===o)return void b();throw p("Unterminated string.")}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c="Number",function(){45===o&&b();48===o?b():k();46===o&&(b(),k());69!==o&&101!==o||(43!==(o=b())&&45!==o||b(),k())}();case 102:if("false"!==n.slice(a,a+5))break;return i+=4,b(),void(c="Boolean");case 110:if("null"!==n.slice(a,a+4))break;return i+=3,b(),void(c="Null");case 116:if("true"!==n.slice(a,a+4))break;return i+=3,b(),void(c="Boolean")}c=n[a],b()}else c="EOF"}function m(){if(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)return b();throw p("Expected hexadecimal digit.")}function k(){if(o<48||o>57)throw p("Expected decimal digit.");do{b()}while(o>=48&&o<=57)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){n=e,t=e.length,a=i=u=-1,b(),y();var r=s();return v("EOF"),r}},9339:function(e,r,n){var t=this&&this.__read||function(e,r){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,i=n.call(e),u=[];try{for(;(void 0===r||r-- >0)&&!(t=i.next()).done;)u.push(t.value)}catch(o){a={error:o}}finally{try{t&&!t.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return u},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=a(n(6246)),u=n(8687),o=a(n(3297));function c(e,r){if(!e||!r)return[];if(e instanceof u.GraphQLNonNull)return"Null"===r.kind?[[r,'Type "'+e+'" is non-nullable and cannot be null.']]:c(e.ofType,r);if("Null"===r.kind)return[];if(e instanceof u.GraphQLList){var n=e.ofType;return"Array"===r.kind?l(r.values||[],(function(e){return c(n,e)})):c(n,r)}if(e instanceof u.GraphQLInputObjectType){if("Object"!==r.kind)return[[r,'Type "'+e+'" must be an Object.']];var t=Object.create(null),a=l(r.members,(function(r){var n,a=null===(n=null===r||void 0===r?void 0:r.key)||void 0===n?void 0:n.value;t[a]=!0;var i=e.getFields()[a];return i?c(i?i.type:void 0,r.value):[[r.key,'Type "'+e+'" does not have a field "'+a+'".']]}));return Object.keys(e.getFields()).forEach((function(n){t[n]||e.getFields()[n].type instanceof u.GraphQLNonNull&&a.push([r,'Object of type "'+e+'" is missing required field "'+n+'".'])})),a}return"Boolean"===e.name&&"Boolean"!==r.kind||"String"===e.name&&"String"!==r.kind||"ID"===e.name&&"Number"!==r.kind&&"String"!==r.kind||"Float"===e.name&&"Number"!==r.kind||"Int"===e.name&&("Number"!==r.kind||(0|r.value)!==r.value)||(e instanceof u.GraphQLEnumType||e instanceof u.GraphQLScalarType)&&("String"!==r.kind&&"Number"!==r.kind&&"Boolean"!==r.kind&&"Null"!==r.kind||(null===(i=e.parseValue(r.value))||void 0===i||i!==i))?[[r,'Expected value of type "'+e+'".']]:[];var i}function s(e,r,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(r.start),to:e.posFromIndex(r.end)}}function l(e,r){return Array.prototype.concat.apply([],e.map(r))}i.default.registerHelper("lint","graphql-variables",(function(e,r,n){if(!e)return[];var a;try{a=o.default(e)}catch(u){if(u.stack)throw u;return[s(n,u,u.message)]}var i=r.variableToType;return i?function(e,r,n){var a=[];return n.members.forEach((function(n){var i;if(n){var u=null===(i=n.key)||void 0===i?void 0:i.value,o=r[u];o?c(o,n.value).forEach((function(r){var n=t(r,2),i=n[0],u=n[1];a.push(s(e,i,u))})):a.push(s(e,n.key,'Variable "$'+u+'" does not appear in any GraphQL query.'))}})),a}(n,i,a):[]}))}}]);
//# sourceMappingURL=339.45db1ad0.chunk.js.map