"use strict";(self.webpackChunkopencelium=self.webpackChunkopencelium||[]).push([[373],{21277:(e,r)=>{var n,t,a,i,u,o,c;function l(){var e=a,r=[];if(p("{"),!h("}")){do{r.push(s())}while(h(","));p("}")}return{kind:"Object",start:e,end:u,members:r}}function s(){var e=a,r="String"===c?d():null;p("String"),p(":");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(p("["),!h("]")){do{r.push(f())}while(h(","));p("]")}return{kind:"Array",start:e,end:u,values:r}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=d();return y(),e}p("Value")}function d(){return{kind:c,start:a,end:i,value:JSON.parse(n.slice(a,i))}}function p(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 v("Expected "+e+" but found "+r+".")}y()}function v(e){return{message:e,start:a,end:i}}function h(e){if(c===e)return y(),!0}function m(){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;)m();if(0!==o){switch(a=i,o){case 34:return c="String",function(){for(m();34!==o&&o>31;)if(92===o)switch(o=m()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:m();break;case 117:m(),b(),b(),b(),b();break;default:throw v("Bad character escape sequence.")}else{if(i===t)throw v("Unterminated string.");m()}if(34!==o)throw v("Unterminated string.");m()}();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",45===o&&m(),48===o?m():k(),46===o&&(m(),k()),void(69!==o&&101!==o||(43!==(o=m())&&45!==o||m(),k()));case 102:if("false"!==n.slice(a,a+5))break;return i+=4,m(),void(c="Boolean");case 110:if("null"!==n.slice(a,a+4))break;return i+=3,m(),void(c="Null");case 116:if("true"!==n.slice(a,a+4))break;return i+=3,m(),void(c="Boolean")}c=n[a],m()}else c="EOF"}function b(){if(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)return m();throw v("Expected hexadecimal digit.")}function k(){if(o<48||o>57)throw v("Expected decimal digit.");do{m()}while(o>=48&&o<=57)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){n=e,t=e.length,a=i=u=-1,m(),y();var r=l();return p("EOF"),r}},60373: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(e){a={error:e}}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(4631)),u=n(10055),o=a(n(21277));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?s(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=s(r.members,(function(r){var n,a=null===(n=null==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))||i!=i)?[[r,'Expected value of type "'+e+'".']]:[];var i}function l(e,r,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(r.start),to:e.posFromIndex(r.end)}}function s(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(e){if(e.stack)throw e;return[l(n,e,e.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(l(e,i,u))})):a.push(l(e,n.key,'Variable "$'+u+'" does not appear in any GraphQL query.'))}})),a}(n,i,a):[]}))}}]);