@cubejs-backend/server-core 0.34.19 → 0.34.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -11
- package/playground/assets/CachePane-1c09e7d7.js +1 -0
- package/playground/assets/GraphiQLSandbox-8134e867.css +1 -0
- package/playground/assets/GraphiQLSandbox-9d8e657c.js +268 -0
- package/playground/assets/SchemaReference-473f4fcc.js +1 -0
- package/playground/assets/SqlQueryTab-da4b5535.js +1 -0
- package/playground/assets/brace-fold-c13a428b.js +1 -0
- package/playground/assets/closebrackets-0f064268.js +2 -0
- package/playground/assets/codemirror-00e3622c.js +24 -0
- package/playground/assets/comment-7a29ca03.js +2 -0
- package/playground/assets/dialog-9ea2a8eb.js +1 -0
- package/playground/assets/dialog-a88bb48e.js +1 -0
- package/playground/assets/foldgutter-bae55a0e.js +1 -0
- package/playground/assets/hint-9d9588d2.js +1 -0
- package/playground/assets/hint-bda78e9f.js +1 -0
- package/playground/assets/index-21be778b.js +15 -0
- package/playground/assets/index-6925c923.js +1605 -0
- package/playground/assets/index-c6eb08ac.js +24 -0
- package/playground/assets/info-addon-fbbd73b1.js +1 -0
- package/playground/assets/info-cea51a88.js +1 -0
- package/playground/assets/javascript-005b1064.js +1 -0
- package/playground/assets/jump-cfb1b2f1.js +1 -0
- package/playground/assets/jump-to-line-5af9484d.js +1 -0
- package/playground/assets/lint-0e08e18b.js +1 -0
- package/playground/assets/lint-7cfaa753.js +1 -0
- package/playground/assets/{lint.a4b87fe9.js → lint-a2a47f1b.js} +1 -1
- package/playground/assets/matchbrackets-2f22990e.js +1 -0
- package/playground/assets/matchbrackets-bbabce00.js +1 -0
- package/playground/assets/{mode.8300fee2.js → mode-4eb94a39.js} +1 -1
- package/playground/assets/mode-523d1bdb.js +1 -0
- package/playground/assets/mode-62374c6a.js +1 -0
- package/playground/assets/search-cb5d7a87.js +2 -0
- package/playground/assets/searchcursor-f5854b58.js +1 -0
- package/playground/assets/{searchcursor.7108313c.js → searchcursor-fa33d260.js} +4 -4
- package/playground/assets/show-hint-b5aaf56c.js +1 -0
- package/playground/assets/sqlFormatter-f7d64f52.js +7 -0
- package/playground/assets/{sublime.b2aba6cc.js → sublime-a0c1de6c.js} +3 -3
- package/playground/index.html +2 -2
- package/playground/assets/CachePane.82fa7b06.js +0 -1
- package/playground/assets/GraphiQLSandbox.42d66bcc.css +0 -1
- package/playground/assets/GraphiQLSandbox.56a149a2.js +0 -268
- package/playground/assets/SchemaReference.5821c355.js +0 -1
- package/playground/assets/SqlQueryTab.5775735d.js +0 -1
- package/playground/assets/brace-fold.4663f9cf.js +0 -1
- package/playground/assets/closebrackets.99d98dd5.js +0 -2
- package/playground/assets/codemirror.abaecb6b.js +0 -24
- package/playground/assets/comment.66d5a4d6.js +0 -2
- package/playground/assets/dialog.619a7a86.js +0 -1
- package/playground/assets/dialog.c5adb1fd.js +0 -1
- package/playground/assets/foldgutter.ee499d3e.js +0 -1
- package/playground/assets/hint.6ae982c2.js +0 -1
- package/playground/assets/hint.c785cfec.js +0 -1
- package/playground/assets/index.1ba2c642.js +0 -24
- package/playground/assets/index.bb603696.js +0 -15
- package/playground/assets/index.be55490e.js +0 -1605
- package/playground/assets/info-addon.64e18b6e.js +0 -1
- package/playground/assets/info.2efc643b.js +0 -1
- package/playground/assets/javascript.99d8c580.js +0 -1
- package/playground/assets/jump-to-line.87a1ff37.js +0 -1
- package/playground/assets/jump.b4706269.js +0 -1
- package/playground/assets/lint.60963316.js +0 -1
- package/playground/assets/lint.da92d9f9.js +0 -1
- package/playground/assets/matchbrackets.c7312346.js +0 -1
- package/playground/assets/matchbrackets.cc9454f4.js +0 -1
- package/playground/assets/mode.8f1bb41f.js +0 -1
- package/playground/assets/mode.c70a4f90.js +0 -1
- package/playground/assets/search.2eca6705.js +0 -2
- package/playground/assets/searchcursor.ba85a794.js +0 -1
- package/playground/assets/show-hint.3109e3e5.js +0 -1
- package/playground/assets/sqlFormatter.56fb71f9.js +0 -7
- /package/playground/assets/{athena.6bb5702d.svg → athena-6bb5702d.svg} +0 -0
- /package/playground/assets/{bigquery.da521185.svg → bigquery-da521185.svg} +0 -0
- /package/playground/assets/{clickhouse.c923cfe7.svg → clickhouse-c923cfe7.svg} +0 -0
- /package/playground/assets/{crate.b646e4b5.svg → crate-b646e4b5.svg} +0 -0
- /package/playground/assets/{deepnote.6b5057ec.svg → deepnote-6b5057ec.svg} +0 -0
- /package/playground/assets/{druid.749d725a.svg → druid-749d725a.svg} +0 -0
- /package/playground/assets/{excel.d8d00a7e.svg → excel-d8d00a7e.svg} +0 -0
- /package/playground/assets/{firebolt.f9ba6fb1.svg → firebolt-f9ba6fb1.svg} +0 -0
- /package/playground/assets/{forEachState.b0c39469.js → forEachState-6d514dbd.js} +0 -0
- /package/playground/assets/{google-data-studio.8fefa10d.svg → google-data-studio-8fefa10d.svg} +0 -0
- /package/playground/assets/{google-sheets.c7f3e3ba.svg → google-sheets-c7f3e3ba.svg} +0 -0
- /package/playground/assets/{hex.d653256d.svg → hex-d653256d.svg} +0 -0
- /package/playground/assets/{hightouch.263b24e1.svg → hightouch-263b24e1.svg} +0 -0
- /package/playground/assets/{hive.f1d55e07.svg → hive-f1d55e07.svg} +0 -0
- /package/playground/assets/{index.af3b87a2.css → index-af3b87a2.css} +0 -0
- /package/playground/assets/{jupyter.cc6ef4a6.svg → jupyter-cc6ef4a6.svg} +0 -0
- /package/playground/assets/{materialize.1c275282.svg → materialize-1c275282.svg} +0 -0
- /package/playground/assets/{metabase.94537ada.svg → metabase-94537ada.svg} +0 -0
- /package/playground/assets/{mongodb.ff875234.svg → mongodb-ff875234.svg} +0 -0
- /package/playground/assets/{mssql.ee163b5c.svg → mssql-ee163b5c.svg} +0 -0
- /package/playground/assets/{mysql.505410e7.svg → mysql-505410e7.svg} +0 -0
- /package/playground/assets/{observable.1fb9435c.svg → observable-1fb9435c.svg} +0 -0
- /package/playground/assets/{oracle.ac621595.svg → oracle-ac621595.svg} +0 -0
- /package/playground/assets/{postgres.f2e5378f.svg → postgres-f2e5378f.svg} +0 -0
- /package/playground/assets/{power-bi.f8d15f9c.svg → power-bi-f8d15f9c.svg} +0 -0
- /package/playground/assets/{presto.23044820.svg → presto-23044820.svg} +0 -0
- /package/playground/assets/{questdb.e8a2159a.svg → questdb-e8a2159a.svg} +0 -0
- /package/playground/assets/{redshift.e3635b1b.svg → redshift-e3635b1b.svg} +0 -0
- /package/playground/assets/{semantic-layer.ab287c7b.svg → semantic-layer-ab287c7b.svg} +0 -0
- /package/playground/assets/{snowflake.6ddc094d.svg → snowflake-6ddc094d.svg} +0 -0
- /package/playground/assets/{streamlit.77ef93a9.svg → streamlit-77ef93a9.svg} +0 -0
- /package/playground/assets/{superset.9a4f216d.svg → superset-9a4f216d.svg} +0 -0
- /package/playground/assets/{tableau.841bb88e.svg → tableau-841bb88e.svg} +0 -0
- /package/playground/assets/{thoughtspot.3774b7ec.svg → thoughtspot-3774b7ec.svg} +0 -0
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
var Xu=Object.defineProperty;var Ku=(t,e,n)=>e in t?Xu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var jo=(t,e,n)=>(Ku(t,typeof e!="symbol"?e+"":e,n),n);import{g as fc,j as b,a as V,R as be,b as el,_ as Z,c as Uo,d as tl,u as Bo,e as Ut,f as nl,h as rl,r as zo,m as il,i as ol,s as al}from"./index.be55490e.js";function Zn(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zn=function(n){return typeof n}:Zn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zn(t)}function pt(t){return Zn(t)=="object"&&t!==null}var pc=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",I8=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",Ge=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function bi(t,e){for(var n=/\r\n|[\n\r]/g,r=1,i=e+1,o;(o=n.exec(t.body))&&o.index<e;)r+=1,i=e+1-(o.index+o[0].length);return{line:r,column:i}}function sl(t){return dc(t.source,bi(t.source,t.start))}function dc(t,e){var n=t.locationOffset.column-1,r=Xn(n)+t.body,i=e.line-1,o=t.locationOffset.line-1,a=e.line+o,s=e.line===1?n:0,u=e.column+s,c="".concat(t.name,":").concat(a,":").concat(u,`
|
|
2
|
-
`),l=r.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){for(var d=Math.floor(u/80),h=u%80,p=[],m=0;m<f.length;m+=80)p.push(f.slice(m,m+80));return c+Go([["".concat(a),p[0]]].concat(p.slice(1,d+1).map(function(g){return["",g]}),[[" ",Xn(h-1)+"^"],["",p[d+1]]]))}return c+Go([["".concat(a-1),l[i-1]],["".concat(a),f],["",Xn(u-1)+"^"],["".concat(a+1),l[i+1]]])}function Go(t){var e=t.filter(function(r){r[0];var i=r[1];return i!==void 0}),n=Math.max.apply(Math,e.map(function(r){var i=r[0];return i.length}));return e.map(function(r){var i=r[0],o=r[1];return cl(n,i)+(o?" | "+o:" |")}).join(`
|
|
3
|
-
`)}function Xn(t){return Array(t+1).join(" ")}function cl(t,e){return Xn(t-e.length)+e}function Kn(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kn=function(n){return typeof n}:Kn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Kn(t)}function Qo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ul(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Qo(Object(n),!0).forEach(function(r){ll(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ll(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ho(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pl(t,e,n){return e&&Ho(t.prototype,e),n&&Ho(t,n),t}function dl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_n(t,e)}function hl(t){var e=vc();return function(){var r=En(t),i;if(e){var o=En(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hc(this,i)}}function hc(t,e){return e&&(Kn(e)==="object"||typeof e=="function")?e:pn(t)}function pn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _i(t){var e=typeof Map=="function"?new Map:void 0;return _i=function(r){if(r===null||!vl(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return er(r,arguments,En(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),_n(i,r)},_i(t)}function er(t,e,n){return vc()?er=Reflect.construct:er=function(i,o,a){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(i,s),c=new u;return a&&_n(c,a.prototype),c},er.apply(null,arguments)}function vc(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function vl(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _n(t,e){return _n=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},_n(t,e)}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},En(t)}var C=function(t){dl(n,t);var e=hl(n);function n(r,i,o,a,s,u,c){var l,f,d,h;fl(this,n),h=e.call(this,r),h.name="GraphQLError",h.originalError=u!=null?u:void 0,h.nodes=$o(Array.isArray(i)?i:i?[i]:void 0);for(var p=[],m=0,g=(_=h.nodes)!==null&&_!==void 0?_:[];m<g.length;m++){var _,y=g[m],k=y.loc;k!=null&&p.push(k)}p=$o(p),h.source=o!=null?o:(l=p)===null||l===void 0?void 0:l[0].source,h.positions=a!=null?a:(f=p)===null||f===void 0?void 0:f.map(function(N){return N.start}),h.locations=a&&o?a.map(function(N){return bi(o,N)}):(d=p)===null||d===void 0?void 0:d.map(function(N){return bi(N.source,N.start)}),h.path=s!=null?s:void 0;var A=u==null?void 0:u.extensions;return c==null&&pt(A)?h.extensions=ul({},A):h.extensions=c!=null?c:{},Object.defineProperties(pn(h),{message:{enumerable:!0},locations:{enumerable:h.locations!=null},path:{enumerable:h.path!=null},extensions:{enumerable:h.extensions!=null&&Object.keys(h.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?(Object.defineProperty(pn(h),"stack",{value:u.stack,writable:!0,configurable:!0}),hc(h)):(Error.captureStackTrace?Error.captureStackTrace(pn(h),n):Object.defineProperty(pn(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return pl(n,[{key:"toString",value:function(){return ml(this)}},{key:Ge,get:function(){return"Object"}}]),n}(_i(Error));function $o(t){return t===void 0||t.length===0?void 0:t}function ml(t){var e=t.message;if(t.nodes)for(var n=0,r=t.nodes;n<r.length;n++){var i=r[n];i.loc&&(e+=`
|
|
4
|
-
|
|
5
|
-
`+sl(i.loc))}else if(t.source&&t.locations)for(var o=0,a=t.locations;o<a.length;o++){var s=a[o];e+=`
|
|
6
|
-
|
|
7
|
-
`+dc(t.source,s)}return e}function Oe(t,e,n){return new C("Syntax Error: ".concat(n),void 0,t,[e])}var v=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function Ce(t,e){var n=Boolean(t);if(!n)throw new Error(e!=null?e:"Unexpected invariant triggered.")}var gl=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const Ei=gl;function Ze(t){var e=t.prototype.toJSON;typeof e=="function"||Ce(0),t.prototype.inspect=e,Ei&&(t.prototype[Ei]=e)}var mc=function(){function t(n,r,i){this.start=n.start,this.end=r.end,this.startToken=n,this.endToken=r,this.source=i}var e=t.prototype;return e.toJSON=function(){return{start:this.start,end:this.end}},t}();Ze(mc);var le=function(){function t(n,r,i,o,a,s,u){this.kind=n,this.start=r,this.end=i,this.line=o,this.column=a,this.value=u,this.prev=s,this.next=null}var e=t.prototype;return e.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},t}();Ze(le);function Ti(t){return t!=null&&typeof t.kind=="string"}var S=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function tr(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tr=function(n){return typeof n}:tr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},tr(t)}var yl=10,gc=2;function D(t){return kr(t,[])}function kr(t,e){switch(tr(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":bl(t,e);default:return String(t)}}function bl(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var n=[].concat(e,[t]),r=Tl(t);if(r!==void 0){var i=r.call(t);if(i!==t)return typeof i=="string"?i:kr(i,n)}else if(Array.isArray(t))return El(t,n);return _l(t,n)}function _l(t,e){var n=Object.keys(t);if(n.length===0)return"{}";if(e.length>gc)return"["+kl(t)+"]";var r=n.map(function(i){var o=kr(t[i],e);return i+": "+o});return"{ "+r.join(", ")+" }"}function El(t,e){if(t.length===0)return"[]";if(e.length>gc)return"[Array]";for(var n=Math.min(yl,t.length),r=t.length-n,i=[],o=0;o<n;++o)i.push(kr(t[o],e));return r===1?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}function Tl(t){var e=t[String(Ei)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function kl(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}function H(t,e){var n=Boolean(t);if(!n)throw new Error(e)}const Xe=function(e,n){return e instanceof n};function Jo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wl(t,e,n){return e&&Jo(t.prototype,e),n&&Jo(t,n),t}var yc=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||H(0,"Body must be a string. Received: ".concat(D(e),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||H(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||H(0,"column in locationOffset is 1-indexed and must be positive.")}return wl(t,[{key:Ge,get:function(){return"Source"}}]),t}();function Sl(t){return Xe(t,yc)}var B=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function xl(t){var e=t.split(/\r\n|[\n\r]/g),n=Nl(t);if(n!==0)for(var r=1;r<e.length;r++)e[r]=e[r].slice(n);for(var i=0;i<e.length&&Wo(e[i]);)++i;for(var o=e.length;o>i&&Wo(e[o-1]);)--o;return e.slice(i,o).join(`
|
|
8
|
-
`)}function Wo(t){for(var e=0;e<t.length;++e)if(t[e]!==" "&&t[e]!==" ")return!1;return!0}function Nl(t){for(var e,n=!0,r=!0,i=0,o=null,a=0;a<t.length;++a)switch(t.charCodeAt(a)){case 13:t.charCodeAt(a+1)===10&&++a;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(o===null||i<o)&&(o=i),r=!1}return(e=o)!==null&&e!==void 0?e:0}function Dl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=t.indexOf(`
|
|
9
|
-
`)===-1,i=t[0]===" "||t[0]===" ",o=t[t.length-1]==='"',a=t[t.length-1]==="\\",s=!r||o||a||n,u="";return s&&!(r&&i)&&(u+=`
|
|
10
|
-
`+e),u+=e?t.replace(/\n/g,`
|
|
11
|
-
`+e):t,s&&(u+=`
|
|
12
|
-
`),'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Al=function(){function t(n){var r=new le(S.SOF,0,0,0,0,null);this.source=n,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){this.lastToken=this.token;var r=this.token=this.lookahead();return r},e.lookahead=function(){var r=this.token;if(r.kind!==S.EOF)do{var i;r=(i=r.next)!==null&&i!==void 0?i:r.next=Cl(this,r)}while(r.kind===S.COMMENT);return r},t}();function Ol(t){return t===S.BANG||t===S.DOLLAR||t===S.AMP||t===S.PAREN_L||t===S.PAREN_R||t===S.SPREAD||t===S.COLON||t===S.EQUALS||t===S.AT||t===S.BRACKET_L||t===S.BRACKET_R||t===S.BRACE_L||t===S.PIPE||t===S.BRACE_R}function Ct(t){return isNaN(t)?S.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function Cl(t,e){for(var n=t.source,r=n.body,i=r.length,o=e.end;o<i;){var a=r.charCodeAt(o),s=t.line,u=1+o-t.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++t.line,t.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++t.line,t.lineStart=o;continue;case 33:return new le(S.BANG,o,o+1,s,u,e);case 35:return Rl(n,o,s,u,e);case 36:return new le(S.DOLLAR,o,o+1,s,u,e);case 38:return new le(S.AMP,o,o+1,s,u,e);case 40:return new le(S.PAREN_L,o,o+1,s,u,e);case 41:return new le(S.PAREN_R,o,o+1,s,u,e);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return new le(S.SPREAD,o,o+3,s,u,e);break;case 58:return new le(S.COLON,o,o+1,s,u,e);case 61:return new le(S.EQUALS,o,o+1,s,u,e);case 64:return new le(S.AT,o,o+1,s,u,e);case 91:return new le(S.BRACKET_L,o,o+1,s,u,e);case 93:return new le(S.BRACKET_R,o,o+1,s,u,e);case 123:return new le(S.BRACE_L,o,o+1,s,u,e);case 124:return new le(S.PIPE,o,o+1,s,u,e);case 125:return new le(S.BRACE_R,o,o+1,s,u,e);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?ql(n,o,s,u,e,t):Ll(n,o,s,u,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Fl(n,o,a,s,u,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Ml(n,o,s,u,e)}throw Oe(n,o,Il(a))}var c=t.line,l=1+o-t.lineStart;return new le(S.EOF,i,i,c,l,e)}function Il(t){return t<32&&t!==9&&t!==10&&t!==13?"Cannot contain the invalid character ".concat(Ct(t),"."):t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Ct(t),".")}function Rl(t,e,n,r,i){var o=t.body,a,s=e;do a=o.charCodeAt(++s);while(!isNaN(a)&&(a>31||a===9));return new le(S.COMMENT,e,s,n,r,i,o.slice(e+1,s))}function Fl(t,e,n,r,i,o){var a=t.body,s=n,u=e,c=!1;if(s===45&&(s=a.charCodeAt(++u)),s===48){if(s=a.charCodeAt(++u),s>=48&&s<=57)throw Oe(t,u,"Invalid number, unexpected digit after 0: ".concat(Ct(s),"."))}else u=Jr(t,u,s),s=a.charCodeAt(u);if(s===46&&(c=!0,s=a.charCodeAt(++u),u=Jr(t,u,s),s=a.charCodeAt(u)),(s===69||s===101)&&(c=!0,s=a.charCodeAt(++u),(s===43||s===45)&&(s=a.charCodeAt(++u)),u=Jr(t,u,s),s=a.charCodeAt(u)),s===46||Vl(s))throw Oe(t,u,"Invalid number, expected digit but got: ".concat(Ct(s),"."));return new le(c?S.FLOAT:S.INT,e,u,r,i,o,a.slice(e,u))}function Jr(t,e,n){var r=t.body,i=e,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw Oe(t,i,"Invalid number, expected digit but got: ".concat(Ct(o),"."))}function Ll(t,e,n,r,i){for(var o=t.body,a=e+1,s=a,u=0,c="";a<o.length&&!isNaN(u=o.charCodeAt(a))&&u!==10&&u!==13;){if(u===34)return c+=o.slice(s,a),new le(S.STRING,e,a+1,n,r,i,c);if(u<32&&u!==9)throw Oe(t,a,"Invalid character within String: ".concat(Ct(u),"."));if(++a,u===92){switch(c+=o.slice(s,a-1),u=o.charCodeAt(a),u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
|
|
13
|
-
`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:{var l=Pl(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(l<0){var f=o.slice(a+1,a+5);throw Oe(t,a,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l),a+=4;break}default:throw Oe(t,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++a,s=a}}throw Oe(t,a,"Unterminated string.")}function ql(t,e,n,r,i,o){for(var a=t.body,s=e+3,u=s,c=0,l="";s<a.length&&!isNaN(c=a.charCodeAt(s));){if(c===34&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34)return l+=a.slice(u,s),new le(S.BLOCK_STRING,e,s+3,n,r,i,xl(l));if(c<32&&c!==9&&c!==10&&c!==13)throw Oe(t,s,"Invalid character within String: ".concat(Ct(c),"."));c===10?(++s,++o.line,o.lineStart=s):c===13?(a.charCodeAt(s+1)===10?s+=2:++s,++o.line,o.lineStart=s):c===92&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34&&a.charCodeAt(s+3)===34?(l+=a.slice(u,s)+'"""',s+=4,u=s):++s}throw Oe(t,s,"Unterminated string.")}function Pl(t,e,n,r){return jn(t)<<12|jn(e)<<8|jn(n)<<4|jn(r)}function jn(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function Ml(t,e,n,r,i){for(var o=t.body,a=o.length,s=e+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new le(S.NAME,e,s,n,r,i,o.slice(e,s))}function Vl(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}function It(t,e){var n=new Wi(t,e);return n.parseDocument()}function jl(t,e){var n=new Wi(t,e);n.expectToken(S.SOF);var r=n.parseValueLiteral(!1);return n.expectToken(S.EOF),r}function R8(t,e){var n=new Wi(t,e);n.expectToken(S.SOF);var r=n.parseTypeReference();return n.expectToken(S.EOF),r}var Wi=function(){function t(n,r){var i=Sl(n)?n:new yc(n);this._lexer=new Al(i),this._options=r}var e=t.prototype;return e.parseName=function(){var r=this.expectToken(S.NAME);return{kind:v.NAME,value:r.value,loc:this.loc(r)}},e.parseDocument=function(){var r=this._lexer.token;return{kind:v.DOCUMENT,definitions:this.many(S.SOF,this.parseDefinition,S.EOF),loc:this.loc(r)}},e.parseDefinition=function(){if(this.peek(S.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(S.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var r=this._lexer.token;if(this.peek(S.BRACE_L))return{kind:v.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(r)};var i=this.parseOperationType(),o;return this.peek(S.NAME)&&(o=this.parseName()),{kind:v.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},e.parseOperationType=function(){var r=this.expectToken(S.NAME);switch(r.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(r)},e.parseVariableDefinitions=function(){return this.optionalMany(S.PAREN_L,this.parseVariableDefinition,S.PAREN_R)},e.parseVariableDefinition=function(){var r=this._lexer.token;return{kind:v.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(r)}},e.parseVariable=function(){var r=this._lexer.token;return this.expectToken(S.DOLLAR),{kind:v.VARIABLE,name:this.parseName(),loc:this.loc(r)}},e.parseSelectionSet=function(){var r=this._lexer.token;return{kind:v.SELECTION_SET,selections:this.many(S.BRACE_L,this.parseSelection,S.BRACE_R),loc:this.loc(r)}},e.parseSelection=function(){return this.peek(S.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var r=this._lexer.token,i=this.parseName(),o,a;return this.expectOptionalToken(S.COLON)?(o=i,a=this.parseName()):a=i,{kind:v.FIELD,alias:o,name:a,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(r){var i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(S.PAREN_L,i,S.PAREN_R)},e.parseArgument=function(){var r=this._lexer.token,i=this.parseName();return this.expectToken(S.COLON),{kind:v.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(r)}},e.parseConstArgument=function(){var r=this._lexer.token;return{kind:v.ARGUMENT,name:this.parseName(),value:(this.expectToken(S.COLON),this.parseValueLiteral(!0)),loc:this.loc(r)}},e.parseFragment=function(){var r=this._lexer.token;this.expectToken(S.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(S.NAME)?{kind:v.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(r)}:{kind:v.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(r)}},e.parseFragmentDefinition=function(){var r,i=this._lexer.token;return this.expectKeyword("fragment"),((r=this._options)===null||r===void 0?void 0:r.experimentalFragmentVariables)===!0?{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(r){var i=this._lexer.token;switch(i.kind){case S.BRACKET_L:return this.parseList(r);case S.BRACE_L:return this.parseObject(r);case S.INT:return this._lexer.advance(),{kind:v.INT,value:i.value,loc:this.loc(i)};case S.FLOAT:return this._lexer.advance(),{kind:v.FLOAT,value:i.value,loc:this.loc(i)};case S.STRING:case S.BLOCK_STRING:return this.parseStringLiteral();case S.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:v.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:v.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:v.NULL,loc:this.loc(i)};default:return{kind:v.ENUM,value:i.value,loc:this.loc(i)}}case S.DOLLAR:if(!r)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var r=this._lexer.token;return this._lexer.advance(),{kind:v.STRING,value:r.value,block:r.kind===S.BLOCK_STRING,loc:this.loc(r)}},e.parseList=function(r){var i=this,o=this._lexer.token,a=function(){return i.parseValueLiteral(r)};return{kind:v.LIST,values:this.any(S.BRACKET_L,a,S.BRACKET_R),loc:this.loc(o)}},e.parseObject=function(r){var i=this,o=this._lexer.token,a=function(){return i.parseObjectField(r)};return{kind:v.OBJECT,fields:this.any(S.BRACE_L,a,S.BRACE_R),loc:this.loc(o)}},e.parseObjectField=function(r){var i=this._lexer.token,o=this.parseName();return this.expectToken(S.COLON),{kind:v.OBJECT_FIELD,name:o,value:this.parseValueLiteral(r),loc:this.loc(i)}},e.parseDirectives=function(r){for(var i=[];this.peek(S.AT);)i.push(this.parseDirective(r));return i},e.parseDirective=function(r){var i=this._lexer.token;return this.expectToken(S.AT),{kind:v.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r),loc:this.loc(i)}},e.parseTypeReference=function(){var r=this._lexer.token,i;return this.expectOptionalToken(S.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(S.BRACKET_R),i={kind:v.LIST_TYPE,type:i,loc:this.loc(r)}):i=this.parseNamedType(),this.expectOptionalToken(S.BANG)?{kind:v.NON_NULL_TYPE,type:i,loc:this.loc(r)}:i},e.parseNamedType=function(){var r=this._lexer.token;return{kind:v.NAMED_TYPE,name:this.parseName(),loc:this.loc(r)}},e.parseTypeSystemDefinition=function(){var r=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(r.kind===S.NAME)switch(r.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()}throw this.unexpected(r)},e.peekDescription=function(){return this.peek(S.STRING)||this.peek(S.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),a=this.many(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);return{kind:v.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:a,loc:this.loc(r)}},e.parseOperationTypeDefinition=function(){var r=this._lexer.token,i=this.parseOperationType();this.expectToken(S.COLON);var o=this.parseNamedType();return{kind:v.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(r)}},e.parseScalarTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),a=this.parseDirectives(!0);return{kind:v.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(r)}},e.parseObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:v.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(r)}},e.parseImplementsInterfaces=function(){var r;if(!this.expectOptionalKeyword("implements"))return[];if(((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(S.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(S.AMP)||this.peek(S.NAME));return i}return this.delimitedMany(S.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var r;return((r=this._options)===null||r===void 0?void 0:r.allowLegacySDLEmptyFields)===!0&&this.peek(S.BRACE_L)&&this._lexer.lookahead().kind===S.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(S.BRACE_L,this.parseFieldDefinition,S.BRACE_R)},e.parseFieldDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseArgumentDefs();this.expectToken(S.COLON);var s=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:v.FIELD_DEFINITION,description:i,name:o,arguments:a,type:s,directives:u,loc:this.loc(r)}},e.parseArgumentDefs=function(){return this.optionalMany(S.PAREN_L,this.parseInputValueDef,S.PAREN_R)},e.parseInputValueDef=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(S.COLON);var a=this.parseTypeReference(),s;this.expectOptionalToken(S.EQUALS)&&(s=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:v.INPUT_VALUE_DEFINITION,description:i,name:o,type:a,defaultValue:s,directives:u,loc:this.loc(r)}},e.parseInterfaceTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:v.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:a,directives:s,fields:u,loc:this.loc(r)}},e.parseUnionTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseUnionMemberTypes();return{kind:v.UNION_TYPE_DEFINITION,description:i,name:o,directives:a,types:s,loc:this.loc(r)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(S.EQUALS)?this.delimitedMany(S.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();return{kind:v.ENUM_TYPE_DEFINITION,description:i,name:o,directives:a,values:s,loc:this.loc(r)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseEnumValueDefinition,S.BRACE_R)},e.parseEnumValueDefinition=function(){var r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),a=this.parseDirectives(!0);return{kind:v.ENUM_VALUE_DEFINITION,description:i,name:o,directives:a,loc:this.loc(r)}},e.parseInputObjectTypeDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),a=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();return{kind:v.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:a,fields:s,loc:this.loc(r)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(S.BRACE_L,this.parseInputValueDef,S.BRACE_R)},e.parseTypeSystemExtension=function(){var r=this._lexer.lookahead();if(r.kind===S.NAME)switch(r.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(r)},e.parseSchemaExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),o=this.optionalMany(S.BRACE_L,this.parseOperationTypeDefinition,S.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:v.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(r)}},e.parseScalarTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:v.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(r)}},e.parseObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:v.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(r)}},e.parseInterfaceTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(o.length===0&&a.length===0&&s.length===0)throw this.unexpected();return{kind:v.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:a,fields:s,loc:this.loc(r)}},e.parseUnionTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.UNION_TYPE_EXTENSION,name:i,directives:o,types:a,loc:this.loc(r)}},e.parseEnumTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.ENUM_TYPE_EXTENSION,name:i,directives:o,values:a,loc:this.loc(r)}},e.parseInputObjectTypeExtension=function(){var r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(o.length===0&&a.length===0)throw this.unexpected();return{kind:v.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:a,loc:this.loc(r)}},e.parseDirectiveDefinition=function(){var r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.AT);var o=this.parseName(),a=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:v.DIRECTIVE_DEFINITION,description:i,name:o,arguments:a,repeatable:s,locations:u,loc:this.loc(r)}},e.parseDirectiveLocations=function(){return this.delimitedMany(S.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var r=this._lexer.token,i=this.parseName();if(B[i.value]!==void 0)return i;throw this.unexpected(r)},e.loc=function(r){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new mc(r,this._lexer.lastToken,this._lexer.source)},e.peek=function(r){return this._lexer.token.kind===r},e.expectToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i;throw Oe(this._lexer.source,i.start,"Expected ".concat(bc(r),", found ").concat(Wr(i),"."))},e.expectOptionalToken=function(r){var i=this._lexer.token;if(i.kind===r)return this._lexer.advance(),i},e.expectKeyword=function(r){var i=this._lexer.token;if(i.kind===S.NAME&&i.value===r)this._lexer.advance();else throw Oe(this._lexer.source,i.start,'Expected "'.concat(r,'", found ').concat(Wr(i),"."))},e.expectOptionalKeyword=function(r){var i=this._lexer.token;return i.kind===S.NAME&&i.value===r?(this._lexer.advance(),!0):!1},e.unexpected=function(r){var i=r!=null?r:this._lexer.token;return Oe(this._lexer.source,i.start,"Unexpected ".concat(Wr(i),"."))},e.any=function(r,i,o){this.expectToken(r);for(var a=[];!this.expectOptionalToken(o);)a.push(i.call(this));return a},e.optionalMany=function(r,i,o){if(this.expectOptionalToken(r)){var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a}return[]},e.many=function(r,i,o){this.expectToken(r);var a=[];do a.push(i.call(this));while(!this.expectOptionalToken(o));return a},e.delimitedMany=function(r,i){this.expectOptionalToken(r);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(r));return o},t}();function Wr(t){var e=t.value;return bc(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function bc(t){return Ol(t)?'"'.concat(t,'"'):t}var Ul={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},dn=Object.freeze({});function Ye(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ul,r=void 0,i=Array.isArray(t),o=[t],a=-1,s=[],u=void 0,c=void 0,l=void 0,f=[],d=[],h=t;do{a++;var p=a===o.length,m=p&&s.length!==0;if(p){if(c=d.length===0?void 0:f[f.length-1],u=l,l=d.pop(),m){if(i)u=u.slice();else{for(var g={},_=0,y=Object.keys(u);_<y.length;_++){var k=y[_];g[k]=u[k]}u=g}for(var A=0,N=0;N<s.length;N++){var x=s[N][0],I=s[N][1];i&&(x-=A),i&&I===null?(u.splice(x,1),A++):u[x]=I}}a=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=l?i?a:o[a]:void 0,u=l?l[c]:h,u==null)continue;l&&f.push(c)}var P=void 0;if(!Array.isArray(u)){if(!Ti(u))throw new Error("Invalid AST Node: ".concat(D(u),"."));var z=Tn(e,u.kind,p);if(z){if(P=z.call(e,u,c,l,f,d),P===dn)break;if(P===!1){if(!p){f.pop();continue}}else if(P!==void 0&&(s.push([c,P]),!p))if(Ti(P))u=P;else{f.pop();continue}}}if(P===void 0&&m&&s.push([c,u]),p)f.pop();else{var j;r={inArray:i,index:a,keys:o,edits:s,prev:r},i=Array.isArray(u),o=i?u:(j=n[u.kind])!==null&&j!==void 0?j:[],a=-1,s=[],l&&d.push(l),l=u}}while(r!==void 0);return s.length!==0&&(h=s[s.length-1][1]),h}function _c(t){var e=new Array(t.length);return{enter:function(r){for(var i=0;i<t.length;i++)if(e[i]==null){var o=Tn(t[i],r.kind,!1);if(o){var a=o.apply(t[i],arguments);if(a===!1)e[i]=r;else if(a===dn)e[i]=dn;else if(a!==void 0)return a}}},leave:function(r){for(var i=0;i<t.length;i++)if(e[i]==null){var o=Tn(t[i],r.kind,!0);if(o){var a=o.apply(t[i],arguments);if(a===dn)e[i]=dn;else if(a!==void 0&&a!==!1)return a}}else e[i]===r&&(e[i]=null)}}}function Tn(t,e,n){var r=t[e];if(r){if(!n&&typeof r=="function")return r;var i=n?r.leave:r.enter;if(typeof i=="function")return i}else{var o=n?t.leave:t.enter;if(o){if(typeof o=="function")return o;var a=o[e];if(typeof a=="function")return a}}}var Bl=Array.prototype.find?function(t,e){return Array.prototype.find.call(t,e)}:function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(e(r))return r}};const kn=Bl;var zl=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})};const De=zl;function Gl(t,e,n){var r,i=t instanceof Error?t:new Error("Unexpected error value: "+D(t));return Array.isArray(i.path)?i:new C(i.message,(r=i.nodes)!==null&&r!==void 0?r:e,i.source,i.positions,n,i)}var Ql=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function F8(t){var e=Ec(t);if(e)throw e;return t}function Ec(t){if(typeof t=="string"||H(0,"Expected name to be a string."),t.length>1&&t[0]==="_"&&t[1]==="_")return new C('Name "'.concat(t,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!Ql.test(t))return new C('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(t,'" does not.'))}var Hl=Object.entries||function(t){return Object.keys(t).map(function(e){return[e,t[e]]})};const Xt=Hl;function Dt(t,e){return t.reduce(function(n,r){return n[e(r)]=r,n},Object.create(null))}function wr(t,e){for(var n=Object.create(null),r=0,i=Xt(t);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=e(s,a)}return n}function Ie(t){if(Object.getPrototypeOf(t)===null)return t;for(var e=Object.create(null),n=0,r=Xt(t);n<r.length;n++){var i=r[n],o=i[0],a=i[1];e[o]=a}return e}function xt(t,e,n){return t.reduce(function(r,i){return r[e(i)]=n(i),r},Object.create(null))}var $l=5;function _t(t,e){var n=typeof t=="string"?[t,e]:[void 0,t],r=n[0],i=n[1],o=" Did you mean ";r&&(o+=r+" ");var a=i.map(function(c){return'"'.concat(c,'"')});switch(a.length){case 0:return"";case 1:return o+a[0]+"?";case 2:return o+a[0]+" or "+a[1]+"?"}var s=a.slice(0,$l),u=s.pop();return o+s.join(", ")+", or "+u+"?"}function Yo(t){return t}function Tc(t,e){for(var n=0,r=0;n<t.length&&r<e.length;){var i=t.charCodeAt(n),o=e.charCodeAt(r);if(Un(i)&&Un(o)){var a=0;do++n,a=a*10+i-ki,i=t.charCodeAt(n);while(Un(i)&&a>0);var s=0;do++r,s=s*10+o-ki,o=e.charCodeAt(r);while(Un(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return t.length-e.length}var ki=48,Jl=57;function Un(t){return!isNaN(t)&&ki<=t&&t<=Jl}function Mt(t,e){for(var n=Object.create(null),r=new Wl(t),i=Math.floor(t.length*.4)+1,o=0;o<e.length;o++){var a=e[o],s=r.measure(a,i);s!==void 0&&(n[a]=s)}return Object.keys(n).sort(function(u,c){var l=n[u]-n[c];return l!==0?l:Tc(u,c)})}var Wl=function(){function t(n){this._input=n,this._inputLowerCase=n.toLowerCase(),this._inputArray=Zo(this._inputLowerCase),this._rows=[new Array(n.length+1).fill(0),new Array(n.length+1).fill(0),new Array(n.length+1).fill(0)]}var e=t.prototype;return e.measure=function(r,i){if(this._input===r)return 0;var o=r.toLowerCase();if(this._inputLowerCase===o)return 1;var a=Zo(o),s=this._inputArray;if(a.length<s.length){var u=a;a=s,s=u}var c=a.length,l=s.length;if(!(c-l>i)){for(var f=this._rows,d=0;d<=l;d++)f[0][d]=d;for(var h=1;h<=c;h++){for(var p=f[(h-1)%3],m=f[h%3],g=m[0]=h,_=1;_<=l;_++){var y=a[h-1]===s[_-1]?0:1,k=Math.min(p[_]+1,m[_-1]+1,p[_-1]+y);if(h>1&&_>1&&a[h-1]===s[_-2]&&a[h-2]===s[_-1]){var A=f[(h-2)%3][_-2];k=Math.min(k,A+1)}k<g&&(g=k),m[_]=k}if(g>i)return}var N=f[c%3][l];return N<=i?N:void 0}},t}();function Zo(t){for(var e=t.length,n=new Array(e),r=0;r<e;++r)n[r]=t.charCodeAt(r);return n}function ie(t){return Ye(t,{leave:Zl})}var Yl=80,Zl={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return q(e.definitions,`
|
|
14
|
-
|
|
15
|
-
`)+`
|
|
16
|
-
`},OperationDefinition:function(e){var n=e.operation,r=e.name,i=se("(",q(e.variableDefinitions,", "),")"),o=q(e.directives," "),a=e.selectionSet;return!r&&!o&&!i&&n==="query"?a:q([n,q([r,i]),o,a]," ")},VariableDefinition:function(e){var n=e.variable,r=e.type,i=e.defaultValue,o=e.directives;return n+": "+r+se(" = ",i)+se(" ",q(o," "))},SelectionSet:function(e){var n=e.selections;return Je(n)},Field:function(e){var n=e.alias,r=e.name,i=e.arguments,o=e.directives,a=e.selectionSet,s=se("",n,": ")+r,u=s+se("(",q(i,", "),")");return u.length>Yl&&(u=s+se(`(
|
|
17
|
-
`,nr(q(i,`
|
|
18
|
-
`)),`
|
|
19
|
-
)`)),q([u,q(o," "),a]," ")},Argument:function(e){var n=e.name,r=e.value;return n+": "+r},FragmentSpread:function(e){var n=e.name,r=e.directives;return"..."+n+se(" ",q(r," "))},InlineFragment:function(e){var n=e.typeCondition,r=e.directives,i=e.selectionSet;return q(["...",se("on ",n),q(r," "),i]," ")},FragmentDefinition:function(e){var n=e.name,r=e.typeCondition,i=e.variableDefinitions,o=e.directives,a=e.selectionSet;return"fragment ".concat(n).concat(se("(",q(i,", "),")")," ")+"on ".concat(r," ").concat(se("",q(o," ")," "))+a},IntValue:function(e){var n=e.value;return n},FloatValue:function(e){var n=e.value;return n},StringValue:function(e,n){var r=e.value,i=e.block;return i?Dl(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function(e){var n=e.value;return n?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var n=e.value;return n},ListValue:function(e){var n=e.values;return"["+q(n,", ")+"]"},ObjectValue:function(e){var n=e.fields;return"{"+q(n,", ")+"}"},ObjectField:function(e){var n=e.name,r=e.value;return n+": "+r},Directive:function(e){var n=e.name,r=e.arguments;return"@"+n+se("(",q(r,", "),")")},NamedType:function(e){var n=e.name;return n},ListType:function(e){var n=e.type;return"["+n+"]"},NonNullType:function(e){var n=e.type;return n+"!"},SchemaDefinition:$e(function(t){var e=t.directives,n=t.operationTypes;return q(["schema",q(e," "),Je(n)]," ")}),OperationTypeDefinition:function(e){var n=e.operation,r=e.type;return n+": "+r},ScalarTypeDefinition:$e(function(t){var e=t.name,n=t.directives;return q(["scalar",e,q(n," ")]," ")}),ObjectTypeDefinition:$e(function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return q(["type",e,se("implements ",q(n," & ")),q(r," "),Je(i)]," ")}),FieldDefinition:$e(function(t){var e=t.name,n=t.arguments,r=t.type,i=t.directives;return e+(Xo(n)?se(`(
|
|
20
|
-
`,nr(q(n,`
|
|
21
|
-
`)),`
|
|
22
|
-
)`):se("(",q(n,", "),")"))+": "+r+se(" ",q(i," "))}),InputValueDefinition:$e(function(t){var e=t.name,n=t.type,r=t.defaultValue,i=t.directives;return q([e+": "+n,se("= ",r),q(i," ")]," ")}),InterfaceTypeDefinition:$e(function(t){var e=t.name,n=t.interfaces,r=t.directives,i=t.fields;return q(["interface",e,se("implements ",q(n," & ")),q(r," "),Je(i)]," ")}),UnionTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.types;return q(["union",e,q(n," "),r&&r.length!==0?"= "+q(r," | "):""]," ")}),EnumTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.values;return q(["enum",e,q(n," "),Je(r)]," ")}),EnumValueDefinition:$e(function(t){var e=t.name,n=t.directives;return q([e,q(n," ")]," ")}),InputObjectTypeDefinition:$e(function(t){var e=t.name,n=t.directives,r=t.fields;return q(["input",e,q(n," "),Je(r)]," ")}),DirectiveDefinition:$e(function(t){var e=t.name,n=t.arguments,r=t.repeatable,i=t.locations;return"directive @"+e+(Xo(n)?se(`(
|
|
23
|
-
`,nr(q(n,`
|
|
24
|
-
`)),`
|
|
25
|
-
)`):se("(",q(n,", "),")"))+(r?" repeatable":"")+" on "+q(i," | ")}),SchemaExtension:function(e){var n=e.directives,r=e.operationTypes;return q(["extend schema",q(n," "),Je(r)]," ")},ScalarTypeExtension:function(e){var n=e.name,r=e.directives;return q(["extend scalar",n,q(r," ")]," ")},ObjectTypeExtension:function(e){var n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return q(["extend type",n,se("implements ",q(r," & ")),q(i," "),Je(o)]," ")},InterfaceTypeExtension:function(e){var n=e.name,r=e.interfaces,i=e.directives,o=e.fields;return q(["extend interface",n,se("implements ",q(r," & ")),q(i," "),Je(o)]," ")},UnionTypeExtension:function(e){var n=e.name,r=e.directives,i=e.types;return q(["extend union",n,q(r," "),i&&i.length!==0?"= "+q(i," | "):""]," ")},EnumTypeExtension:function(e){var n=e.name,r=e.directives,i=e.values;return q(["extend enum",n,q(r," "),Je(i)]," ")},InputObjectTypeExtension:function(e){var n=e.name,r=e.directives,i=e.fields;return q(["extend input",n,q(r," "),Je(i)]," ")}};function $e(t){return function(e){return q([e.description,t(e)],`
|
|
26
|
-
`)}}function q(t){var e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=t==null?void 0:t.filter(function(r){return r}).join(n))!==null&&e!==void 0?e:""}function Je(t){return se(`{
|
|
27
|
-
`,nr(q(t,`
|
|
28
|
-
`)),`
|
|
29
|
-
}`)}function se(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+n:""}function nr(t){return se(" ",t.replace(/\n/g,`
|
|
30
|
-
`))}function Xl(t){return t.indexOf(`
|
|
31
|
-
`)!==-1}function Xo(t){return t!=null&&t.some(Xl)}function wi(t,e){switch(t.kind){case v.NULL:return null;case v.INT:return parseInt(t.value,10);case v.FLOAT:return parseFloat(t.value);case v.STRING:case v.ENUM:case v.BOOLEAN:return t.value;case v.LIST:return t.values.map(function(n){return wi(n,e)});case v.OBJECT:return xt(t.fields,function(n){return n.name.value},function(n){return wi(n.value,e)});case v.VARIABLE:return e==null?void 0:e[t.name.value]}Ce(0,"Unexpected value node: "+D(t))}function Ko(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kt(t,e,n){return e&&Ko(t.prototype,e),n&&Ko(t,n),t}function wn(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||we(t)||xe(t)||re(t)}function Kl(t){if(!wn(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL type."));return t}function Et(t){return Xe(t,Tt)}function L8(t){if(!Et(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Scalar type."));return t}function oe(t){return Xe(t,Me)}function ef(t){if(!oe(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Object type."));return t}function ce(t){return Xe(t,Nr)}function tf(t){if(!ce(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Interface type."));return t}function je(t){return Xe(t,Dr)}function q8(t){if(!je(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Union type."));return t}function Re(t){return Xe(t,tn)}function P8(t){if(!Re(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Enum type."));return t}function we(t){return Xe(t,Yi)}function M8(t){if(!we(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Input Object type."));return t}function xe(t){return Xe(t,me)}function V8(t){if(!xe(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL List type."));return t}function re(t){return Xe(t,G)}function j8(t){if(!re(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL Non-Null type."));return t}function qe(t){return Et(t)||Re(t)||we(t)||Sr(t)&&qe(t.ofType)}function U8(t){if(!qe(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL input type."));return t}function At(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||Sr(t)&&At(t.ofType)}function B8(t){if(!At(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL output type."));return t}function dt(t){return Et(t)||Re(t)}function z8(t){if(!dt(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL leaf type."));return t}function ht(t){return oe(t)||ce(t)||je(t)}function G8(t){if(!ht(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL composite type."));return t}function Ot(t){return ce(t)||je(t)}function Q8(t){if(!Ot(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL abstract type."));return t}function me(t){if(this instanceof me)this.ofType=Kl(t);else return new me(t)}me.prototype.toString=function(){return"["+String(this.ofType)+"]"};me.prototype.toJSON=function(){return this.toString()};Object.defineProperty(me.prototype,Ge,{get:function(){return"GraphQLList"}});Ze(me);function G(t){if(this instanceof G)this.ofType=kc(t);else return new G(t)}G.prototype.toString=function(){return String(this.ofType)+"!"};G.prototype.toJSON=function(){return this.toString()};Object.defineProperty(G.prototype,Ge,{get:function(){return"GraphQLNonNull"}});Ze(G);function Sr(t){return xe(t)||re(t)}function H8(t){if(!Sr(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL wrapping type."));return t}function nf(t){return wn(t)&&!re(t)}function kc(t){if(!nf(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL nullable type."));return t}function wc(t){if(t)return re(t)?t.ofType:t}function Sc(t){return Et(t)||oe(t)||ce(t)||je(t)||Re(t)||we(t)}function $8(t){if(!Sc(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL named type."));return t}function Ne(t){if(t){for(var e=t;Sr(e);)e=e.ofType;return e}}function xr(t){return typeof t=="function"?t():t}function en(t){return t&&t.length>0?t:void 0}var Tt=function(){function t(n){var r,i,o,a=(r=n.parseValue)!==null&&r!==void 0?r:Yo;this.name=n.name,this.description=n.description,this.specifiedByUrl=n.specifiedByUrl,this.serialize=(i=n.serialize)!==null&&i!==void 0?i:Yo,this.parseValue=a,this.parseLiteral=(o=n.parseLiteral)!==null&&o!==void 0?o:function(s,u){return a(wi(s,u))},this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),typeof n.name=="string"||H(0,"Must provide name."),n.specifiedByUrl==null||typeof n.specifiedByUrl=="string"||H(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(D(n.specifiedByUrl),".")),n.serialize==null||typeof n.serialize=="function"||H(0,"".concat(this.name,' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.')),n.parseLiteral&&(typeof n.parseValue=="function"&&typeof n.parseLiteral=="function"||H(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var e=t.prototype;return e.toConfig=function(){var r;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLScalarType"}}]),t}();Ze(Tt);var Me=function(){function t(n){this.name=n.name,this.description=n.description,this.isTypeOf=n.isTypeOf,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=Nc.bind(void 0,n),this._interfaces=xc.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.isTypeOf==null||typeof n.isTypeOf=="function"||H(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(D(n.isTypeOf),"."))}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Dc(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLObjectType"}}]),t}();Ze(Me);function xc(t){var e,n=(e=xr(t.interfaces))!==null&&e!==void 0?e:[];return Array.isArray(n)||H(0,"".concat(t.name," interfaces must be an Array or a function which returns an Array.")),n}function Nc(t){var e=xr(t.fields);return $t(e)||H(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),wr(e,function(n,r){var i;$t(n)||H(0,"".concat(t.name,".").concat(r," field config must be an object.")),!("isDeprecated"in n)||H(0,"".concat(t.name,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),n.resolve==null||typeof n.resolve=="function"||H(0,"".concat(t.name,".").concat(r," field resolver must be a function if ")+"provided, but got: ".concat(D(n.resolve),"."));var o=(i=n.args)!==null&&i!==void 0?i:{};$t(o)||H(0,"".concat(t.name,".").concat(r," args must be an object with argument names as keys."));var a=Xt(o).map(function(s){var u=s[0],c=s[1];return{name:u,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&Ie(c.extensions),astNode:c.astNode}});return{name:r,description:n.description,type:n.type,args:a,resolve:n.resolve,subscribe:n.subscribe,isDeprecated:n.deprecationReason!=null,deprecationReason:n.deprecationReason,extensions:n.extensions&&Ie(n.extensions),astNode:n.astNode}})}function $t(t){return pt(t)&&!Array.isArray(t)}function Dc(t){return wr(t,function(e){return{description:e.description,type:e.type,args:Ac(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function Ac(t){return xt(t,function(e){return e.name},function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}})}function Cn(t){return re(t.type)&&t.defaultValue===void 0}var Nr=function(){function t(n){this.name=n.name,this.description=n.description,this.resolveType=n.resolveType,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=Nc.bind(void 0,n),this._interfaces=xc.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.resolveType==null||typeof n.resolveType=="function"||H(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(n.resolveType),"."))}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},e.toConfig=function(){var r;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Dc(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLInterfaceType"}}]),t}();Ze(Nr);var Dr=function(){function t(n){this.name=n.name,this.description=n.description,this.resolveType=n.resolveType,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._types=rf.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name."),n.resolveType==null||typeof n.resolveType=="function"||H(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(D(n.resolveType),"."))}var e=t.prototype;return e.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},e.toConfig=function(){var r;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLUnionType"}}]),t}();Ze(Dr);function rf(t){var e=xr(t.types);return Array.isArray(e)||H(0,"Must provide Array of types or a function which returns such an array for Union ".concat(t.name,".")),e}var tn=function(){function t(n){this.name=n.name,this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._values=of(this.name,n.values),this._valueLookup=new Map(this._values.map(function(r){return[r.value,r]})),this._nameLookup=Dt(this._values,function(r){return r.name}),typeof n.name=="string"||H(0,"Must provide name.")}var e=t.prototype;return e.getValues=function(){return this._values},e.getValue=function(r){return this._nameLookup[r]},e.serialize=function(r){var i=this._valueLookup.get(r);if(i===void 0)throw new C('Enum "'.concat(this.name,'" cannot represent value: ').concat(D(r)));return i.name},e.parseValue=function(r){if(typeof r!="string"){var i=D(r);throw new C('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Bn(this,i))}var o=this.getValue(r);if(o==null)throw new C('Value "'.concat(r,'" does not exist in "').concat(this.name,'" enum.')+Bn(this,r));return o.value},e.parseLiteral=function(r,i){if(r.kind!==v.ENUM){var o=ie(r);throw new C('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+Bn(this,o),r)}var a=this.getValue(r.value);if(a==null){var s=ie(r);throw new C('Value "'.concat(s,'" does not exist in "').concat(this.name,'" enum.')+Bn(this,s),r)}return a.value},e.toConfig=function(){var r,i=xt(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLEnumType"}}]),t}();Ze(tn);function Bn(t,e){var n=t.getValues().map(function(i){return i.name}),r=Mt(e,n);return _t("the enum value",r)}function of(t,e){return $t(e)||H(0,"".concat(t," values must be an object with value names as keys.")),Xt(e).map(function(n){var r=n[0],i=n[1];return $t(i)||H(0,"".concat(t,".").concat(r,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(D(i),".")),!("isDeprecated"in i)||H(0,"".concat(t,".").concat(r,' should provide "deprecationReason" instead of "isDeprecated".')),{name:r,description:i.description,value:i.value!==void 0?i.value:r,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&Ie(i.extensions),astNode:i.astNode}})}var Yi=function(){function t(n){this.name=n.name,this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=en(n.extensionASTNodes),this._fields=af.bind(void 0,n),typeof n.name=="string"||H(0,"Must provide name.")}var e=t.prototype;return e.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},e.toConfig=function(){var r,i=wr(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:i,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[]}},e.toString=function(){return this.name},e.toJSON=function(){return this.toString()},Kt(t,[{key:Ge,get:function(){return"GraphQLInputObjectType"}}]),t}();Ze(Yi);function af(t){var e=xr(t.fields);return $t(e)||H(0,"".concat(t.name," fields must be an object with field names as keys or a function which returns such an object.")),wr(e,function(n,r){return!("resolve"in n)||H(0,"".concat(t.name,".").concat(r," field has a resolve property, but Input Types cannot define resolvers.")),{name:r,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&Ie(n.extensions),astNode:n.astNode}})}function Oc(t){return re(t.type)&&t.defaultValue===void 0}function Si(t,e){return t===e?!0:re(t)&&re(e)||xe(t)&&xe(e)?Si(t.ofType,e.ofType):!1}function Jt(t,e,n){return e===n?!0:re(n)?re(e)?Jt(t,e.ofType,n.ofType):!1:re(e)?Jt(t,e.ofType,n):xe(n)?xe(e)?Jt(t,e.ofType,n.ofType):!1:xe(e)?!1:Ot(n)&&(ce(e)||oe(e))&&t.isSubType(n,e)}function ea(t,e,n){return e===n?!0:Ot(e)?Ot(n)?t.getPossibleTypes(e).some(function(r){return t.isSubType(n,r)}):t.isSubType(e,n):Ot(n)?t.isSubType(n,e):!1}var sf=Array.from||function(t,e,n){if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var r=t[pc];if(typeof r=="function"){for(var i=r.call(t),o=[],a,s=0;!(a=i.next()).done;++s)if(o.push(e.call(n,a.value,s)),s>9999999)throw new TypeError("Near-infinite iteration.");return o}var u=t.length;if(typeof u=="number"&&u>=0&&u%1===0){for(var c=[],l=0;l<u;++l)Object.prototype.hasOwnProperty.call(t,l)&&c.push(e.call(n,t[l],l));return c}return[]};const Cc=sf;var cf=Number.isFinite||function(t){return typeof t=="number"&&isFinite(t)};const In=cf;function rr(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rr=function(n){return typeof n}:rr=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},rr(t)}function uf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(l){return l};if(t==null||rr(t)!=="object")return null;if(Array.isArray(t))return t.map(e);var n=t[pc];if(typeof n=="function"){for(var r=n.call(t),i=[],o,a=0;!(o=r.next()).done;++a)i.push(e(o.value,a));return i}var s=t.length;if(typeof s=="number"&&s>=0&&s%1===0){for(var u=[],c=0;c<s;++c){if(!Object.prototype.hasOwnProperty.call(t,c))return null;u.push(e(t[String(c)],c))}return u}return null}var lf=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};const Ar=lf;var Zi=2147483647,Xi=-2147483648;function ff(t){var e=Rn(t);if(typeof e=="boolean")return e?1:0;var n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),!Ar(n))throw new C("Int cannot represent non-integer value: ".concat(D(e)));if(n>Zi||n<Xi)throw new C("Int cannot represent non 32-bit signed integer value: "+D(e));return n}function pf(t){if(!Ar(t))throw new C("Int cannot represent non-integer value: ".concat(D(t)));if(t>Zi||t<Xi)throw new C("Int cannot represent non 32-bit signed integer value: ".concat(t));return t}var df=new Tt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:ff,parseValue:pf,parseLiteral:function(e){if(e.kind!==v.INT)throw new C("Int cannot represent non-integer value: ".concat(ie(e)),e);var n=parseInt(e.value,10);if(n>Zi||n<Xi)throw new C("Int cannot represent non 32-bit signed integer value: ".concat(e.value),e);return n}});function hf(t){var e=Rn(t);if(typeof e=="boolean")return e?1:0;var n=e;if(typeof e=="string"&&e!==""&&(n=Number(e)),!In(n))throw new C("Float cannot represent non numeric value: ".concat(D(e)));return n}function vf(t){if(!In(t))throw new C("Float cannot represent non numeric value: ".concat(D(t)));return t}var Ic=new Tt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:hf,parseValue:vf,parseLiteral:function(e){if(e.kind!==v.FLOAT&&e.kind!==v.INT)throw new C("Float cannot represent non numeric value: ".concat(ie(e)),e);return parseFloat(e.value)}});function Rn(t){if(pt(t)){if(typeof t.valueOf=="function"){var e=t.valueOf();if(!pt(e))return e}if(typeof t.toJSON=="function")return t.toJSON()}return t}function mf(t){var e=Rn(t);if(typeof e=="string")return e;if(typeof e=="boolean")return e?"true":"false";if(In(e))return e.toString();throw new C("String cannot represent value: ".concat(D(t)))}function gf(t){if(typeof t!="string")throw new C("String cannot represent a non string value: ".concat(D(t)));return t}var ge=new Tt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:mf,parseValue:gf,parseLiteral:function(e){if(e.kind!==v.STRING)throw new C("String cannot represent a non string value: ".concat(ie(e)),e);return e.value}});function yf(t){var e=Rn(t);if(typeof e=="boolean")return e;if(In(e))return e!==0;throw new C("Boolean cannot represent a non boolean value: ".concat(D(e)))}function bf(t){if(typeof t!="boolean")throw new C("Boolean cannot represent a non boolean value: ".concat(D(t)));return t}var Ve=new Tt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:yf,parseValue:bf,parseLiteral:function(e){if(e.kind!==v.BOOLEAN)throw new C("Boolean cannot represent a non boolean value: ".concat(ie(e)),e);return e.value}});function _f(t){var e=Rn(t);if(typeof e=="string")return e;if(Ar(e))return String(e);throw new C("ID cannot represent value: ".concat(D(t)))}function Ef(t){if(typeof t=="string")return t;if(Ar(t))return t.toString();throw new C("ID cannot represent value: ".concat(D(t)))}var Rc=new Tt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:_f,parseValue:Ef,parseLiteral:function(e){if(e.kind!==v.STRING&&e.kind!==v.INT)throw new C("ID cannot represent a non-string and non-integer value: "+ie(e),e);return e.value}}),Ki=Object.freeze([ge,df,Ic,Ve,Rc]);function J8(t){return Ki.some(function(e){var n=e.name;return t.name===n})}function Ht(t,e){if(re(e)){var n=Ht(t,e.ofType);return(n==null?void 0:n.kind)===v.NULL?null:n}if(t===null)return{kind:v.NULL};if(t===void 0)return null;if(xe(e)){var r=e.ofType,i=uf(t);if(i!=null){for(var o=[],a=0;a<i.length;a++){var s=i[a],u=Ht(s,r);u!=null&&o.push(u)}return{kind:v.LIST,values:o}}return Ht(t,r)}if(we(e)){if(!pt(t))return null;for(var c=[],l=0,f=De(e.getFields());l<f.length;l++){var d=f[l],h=Ht(t[d.name],d.type);h&&c.push({kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:d.name},value:h})}return{kind:v.OBJECT,fields:c}}if(dt(e)){var p=e.serialize(t);if(p==null)return null;if(typeof p=="boolean")return{kind:v.BOOLEAN,value:p};if(typeof p=="number"&&In(p)){var m=String(p);return ta.test(m)?{kind:v.INT,value:m}:{kind:v.FLOAT,value:m}}if(typeof p=="string")return Re(e)?{kind:v.ENUM,value:p}:e===Rc&&ta.test(p)?{kind:v.INT,value:p}:{kind:v.STRING,value:p};throw new TypeError("Cannot convert value to AST: ".concat(D(p),"."))}Ce(0,"Unexpected input type: "+D(e))}var ta=/^-?(?:0|[1-9][0-9]*)$/,Or=new Me({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:function(){return{description:{type:ge,resolve:function(n){return n.description}},types:{description:"A list of all types supported by this server.",type:new G(new me(new G(Pe))),resolve:function(n){return De(n.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new G(Pe),resolve:function(n){return n.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Pe,resolve:function(n){return n.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Pe,resolve:function(n){return n.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new G(new me(new G(eo))),resolve:function(n){return n.getDirectives()}}}}}),eo=new Me({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
32
|
-
|
|
33
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},isRepeatable:{type:new G(Ve),resolve:function(n){return n.isRepeatable}},locations:{type:new G(new me(new G(to))),resolve:function(n){return n.locations}},args:{type:new G(new me(new G(Fn))),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;return i?n.args:n.args.filter(function(o){return o.deprecationReason==null})}}}}}),to=new tn({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Pe=new Me({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:function(){return{kind:{type:new G(io),resolve:function(n){if(Et(n))return ne.SCALAR;if(oe(n))return ne.OBJECT;if(ce(n))return ne.INTERFACE;if(je(n))return ne.UNION;if(Re(n))return ne.ENUM;if(we(n))return ne.INPUT_OBJECT;if(xe(n))return ne.LIST;if(re(n))return ne.NON_NULL;Ce(0,'Unexpected type: "'.concat(D(n),'".'))}},name:{type:ge,resolve:function(n){return n.name!==void 0?n.name:void 0}},description:{type:ge,resolve:function(n){return n.description!==void 0?n.description:void 0}},specifiedByUrl:{type:ge,resolve:function(n){return n.specifiedByUrl!==void 0?n.specifiedByUrl:void 0}},fields:{type:new me(new G(no)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(oe(n)||ce(n)){var o=De(n.getFields());return i?o:o.filter(function(a){return a.deprecationReason==null})}}},interfaces:{type:new me(new G(Pe)),resolve:function(n){if(oe(n)||ce(n))return n.getInterfaces()}},possibleTypes:{type:new me(new G(Pe)),resolve:function(n,r,i,o){var a=o.schema;if(Ot(n))return a.getPossibleTypes(n)}},enumValues:{type:new me(new G(ro)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(Re(n)){var o=n.getValues();return i?o:o.filter(function(a){return a.deprecationReason==null})}}},inputFields:{type:new me(new G(Fn)),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;if(we(n)){var o=De(n.getFields());return i?o:o.filter(function(a){return a.deprecationReason==null})}}},ofType:{type:Pe,resolve:function(n){return n.ofType!==void 0?n.ofType:void 0}}}}}),no=new Me({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:function(){return{name:{type:new G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},args:{type:new G(new me(new G(Fn))),args:{includeDeprecated:{type:Ve,defaultValue:!1}},resolve:function(n,r){var i=r.includeDeprecated;return i?n.args:n.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new G(Pe),resolve:function(n){return n.type}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),Fn=new Me({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:function(){return{name:{type:new G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},type:{type:new G(Pe),resolve:function(n){return n.type}},defaultValue:{type:ge,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(n){var r=n.type,i=n.defaultValue,o=Ht(i,r);return o?ie(o):null}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),ro=new Me({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:function(){return{name:{type:new G(ge),resolve:function(n){return n.name}},description:{type:ge,resolve:function(n){return n.description}},isDeprecated:{type:new G(Ve),resolve:function(n){return n.deprecationReason!=null}},deprecationReason:{type:ge,resolve:function(n){return n.deprecationReason}}}}}),ne=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"}),io=new tn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ne.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ne.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ne.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ne.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ne.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ne.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ne.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ne.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),xi={name:"__schema",type:new G(Or),description:"Access the current type schema of this server.",args:[],resolve:function(e,n,r,i){var o=i.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Ni={name:"__type",type:Pe,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new G(ge),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,n,r,i){var o=n.name,a=i.schema;return a.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Di={name:"__typename",type:new G(ge),description:"The name of the current Object type at runtime.",args:[],resolve:function(e,n,r,i){var o=i.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0},Cr=Object.freeze([Or,eo,to,Pe,no,Fn,ro,io]);function Fc(t){return Cr.some(function(e){var n=e.name;return t.name===n})}const W8=Object.freeze(Object.defineProperty({__proto__:null,__Schema:Or,__Directive:eo,__DirectiveLocation:to,__Type:Pe,__Field:no,__InputValue:Fn,__EnumValue:ro,TypeKind:ne,__TypeKind:io,SchemaMetaFieldDef:xi,TypeMetaFieldDef:Ni,TypeNameMetaFieldDef:Di,introspectionTypes:Cr,isIntrospectionType:Fc},Symbol.toStringTag,{value:"Module"}));function na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tf(t,e,n){return e&&na(t.prototype,e),n&&na(t,n),t}function oo(t){return Xe(t,Vt)}function Y8(t){if(!oo(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL directive."));return t}var Vt=function(){function t(n){var r,i;this.name=n.name,this.description=n.description,this.locations=n.locations,this.isRepeatable=(r=n.isRepeatable)!==null&&r!==void 0?r:!1,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,n.name||H(0,"Directive must be named."),Array.isArray(n.locations)||H(0,"@".concat(n.name," locations must be an Array."));var o=(i=n.args)!==null&&i!==void 0?i:{};pt(o)&&!Array.isArray(o)||H(0,"@".concat(n.name," args must be an object with argument names as keys.")),this.args=Xt(o).map(function(a){var s=a[0],u=a[1];return{name:s,description:u.description,type:u.type,defaultValue:u.defaultValue,deprecationReason:u.deprecationReason,extensions:u.extensions&&Ie(u.extensions),astNode:u.astNode}})}var e=t.prototype;return e.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Ac(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e.toString=function(){return"@"+this.name},e.toJSON=function(){return this.toString()},Tf(t,[{key:Ge,get:function(){return"GraphQLDirective"}}]),t}();Ze(Vt);var kf=new Vt({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[B.FIELD,B.FRAGMENT_SPREAD,B.INLINE_FRAGMENT],args:{if:{type:new G(Ve),description:"Included when true."}}}),wf=new Vt({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[B.FIELD,B.FRAGMENT_SPREAD,B.INLINE_FRAGMENT],args:{if:{type:new G(Ve),description:"Skipped when true."}}}),Sf="No longer supported",Lc=new Vt({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[B.FIELD_DEFINITION,B.ARGUMENT_DEFINITION,B.INPUT_FIELD_DEFINITION,B.ENUM_VALUE],args:{reason:{type:ge,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Sf}}}),xf=new Vt({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[B.SCALAR],args:{url:{type:new G(ge),description:"The URL that specifies the behaviour of this scalar."}}}),nn=Object.freeze([kf,wf,Lc,xf]);function Z8(t){return nn.some(function(e){var n=e.name;return n===t.name})}function ra(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nf(t,e,n){return e&&ra(t.prototype,e),n&&ra(t,n),t}function Df(t){return Xe(t,qc)}function Af(t){if(!Df(t))throw new Error("Expected ".concat(D(t)," to be a GraphQL schema."));return t}var qc=function(){function t(n){var r;this.__validationErrors=n.assumeValid===!0?[]:void 0,pt(n)||H(0,"Must provide configuration object."),!n.types||Array.isArray(n.types)||H(0,'"types" must be Array if provided but got: '.concat(D(n.types),".")),!n.directives||Array.isArray(n.directives)||H(0,'"directives" must be Array if provided but got: '+"".concat(D(n.directives),".")),this.description=n.description,this.extensions=n.extensions&&Ie(n.extensions),this.astNode=n.astNode,this.extensionASTNodes=n.extensionASTNodes,this._queryType=n.query,this._mutationType=n.mutation,this._subscriptionType=n.subscription,this._directives=(r=n.directives)!==null&&r!==void 0?r:nn;var i=new Set(n.types);if(n.types!=null)for(var o=0,a=n.types;o<a.length;o++){var s=a[o];i.delete(s),We(s,i)}this._queryType!=null&&We(this._queryType,i),this._mutationType!=null&&We(this._mutationType,i),this._subscriptionType!=null&&We(this._subscriptionType,i);for(var u=0,c=this._directives;u<c.length;u++){var l=c[u];if(oo(l))for(var f=0,d=l.args;f<d.length;f++){var h=d[f];We(h.type,i)}}We(Or,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var p=0,m=Cc(i);p<m.length;p++){var g=m[p];if(g!=null){var _=g.name;if(_||H(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[_]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(_,'".'));if(this._typeMap[_]=g,ce(g))for(var y=0,k=g.getInterfaces();y<k.length;y++){var A=k[y];if(ce(A)){var N=this._implementationsMap[A.name];N===void 0&&(N=this._implementationsMap[A.name]={objects:[],interfaces:[]}),N.interfaces.push(g)}}else if(oe(g))for(var x=0,I=g.getInterfaces();x<I.length;x++){var P=I[x];if(ce(P)){var z=this._implementationsMap[P.name];z===void 0&&(z=this._implementationsMap[P.name]={objects:[],interfaces:[]}),z.objects.push(g)}}}}}var e=t.prototype;return e.getQueryType=function(){return this._queryType},e.getMutationType=function(){return this._mutationType},e.getSubscriptionType=function(){return this._subscriptionType},e.getTypeMap=function(){return this._typeMap},e.getType=function(r){return this.getTypeMap()[r]},e.getPossibleTypes=function(r){return je(r)?r.getTypes():this.getImplementations(r).objects},e.getImplementations=function(r){var i=this._implementationsMap[r.name];return i!=null?i:{objects:[],interfaces:[]}},e.isPossibleType=function(r,i){return this.isSubType(r,i)},e.isSubType=function(r,i){var o=this._subTypeMap[r.name];if(o===void 0){if(o=Object.create(null),je(r))for(var a=0,s=r.getTypes();a<s.length;a++){var u=s[a];o[u.name]=!0}else{for(var c=this.getImplementations(r),l=0,f=c.objects;l<f.length;l++){var d=f[l];o[d.name]=!0}for(var h=0,p=c.interfaces;h<p.length;h++){var m=p[h];o[m.name]=!0}}this._subTypeMap[r.name]=o}return o[i.name]!==void 0},e.getDirectives=function(){return this._directives},e.getDirective=function(r){return kn(this.getDirectives(),function(i){return i.name===r})},e.toConfig=function(){var r;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:De(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(r=this.extensionASTNodes)!==null&&r!==void 0?r:[],assumeValid:this.__validationErrors!==void 0}},Nf(t,[{key:Ge,get:function(){return"GraphQLSchema"}}]),t}();function We(t,e){var n=Ne(t);if(!e.has(n)){if(e.add(n),je(n))for(var r=0,i=n.getTypes();r<i.length;r++){var o=i[r];We(o,e)}else if(oe(n)||ce(n)){for(var a=0,s=n.getInterfaces();a<s.length;a++){var u=s[a];We(u,e)}for(var c=0,l=De(n.getFields());c<l.length;c++){var f=l[c];We(f.type,e);for(var d=0,h=f.args;d<h.length;d++){var p=h[d];We(p.type,e)}}}else if(we(n))for(var m=0,g=De(n.getFields());m<g.length;m++){var _=g[m];We(_.type,e)}}return e}function ir(t){if(Af(t),t.__validationErrors)return t.__validationErrors;var e=new Cf(t);If(e),Rf(e),Ff(e);var n=e.getErrors();return t.__validationErrors=n,n}function Of(t){var e=ir(t);if(e.length!==0)throw new Error(e.map(function(n){return n.message}).join(`
|
|
34
|
-
|
|
35
|
-
`))}var Cf=function(){function t(n){this._errors=[],this.schema=n}var e=t.prototype;return e.reportError=function(r,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new C(r,o))},e.addError=function(r){this._errors.push(r)},e.getErrors=function(){return this._errors},t}();function If(t){var e=t.schema,n=e.getQueryType();if(!n)t.reportError("Query root type must be provided.",e.astNode);else if(!oe(n)){var r;t.reportError("Query root type must be Object type, it cannot be ".concat(D(n),"."),(r=Yr(e,"query"))!==null&&r!==void 0?r:n.astNode)}var i=e.getMutationType();if(i&&!oe(i)){var o;t.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat(D(i),"."),(o=Yr(e,"mutation"))!==null&&o!==void 0?o:i.astNode)}var a=e.getSubscriptionType();if(a&&!oe(a)){var s;t.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat(D(a),"."),(s=Yr(e,"subscription"))!==null&&s!==void 0?s:a.astNode)}}function Yr(t,e){for(var n=ao(t,function(o){return o.operationTypes}),r=0;r<n.length;r++){var i=n[r];if(i.operation===e)return i.type}}function Rf(t){for(var e=0,n=t.schema.getDirectives();e<n.length;e++){var r=n[e];if(!oo(r)){t.reportError("Expected directive but got: ".concat(D(r),"."),r==null?void 0:r.astNode);continue}Rt(t,r);for(var i=0,o=r.args;i<o.length;i++){var a=o[i];if(Rt(t,a),qe(a.type)||t.reportError("The type of @".concat(r.name,"(").concat(a.name,":) must be Input Type ")+"but got: ".concat(D(a.type),"."),a.astNode),Cn(a)&&a.deprecationReason!=null){var s;t.reportError("Required argument @".concat(r.name,"(").concat(a.name,":) cannot be deprecated."),[so(a.astNode),(s=a.astNode)===null||s===void 0?void 0:s.type])}}}}function Rt(t,e){var n=Ec(e.name);n&&t.addError(Gl(n,e.astNode))}function Ff(t){for(var e=jf(t),n=t.schema.getTypeMap(),r=0,i=De(n);r<i.length;r++){var o=i[r];if(!Sc(o)){t.reportError("Expected GraphQL named type but got: ".concat(D(o),"."),o.astNode);continue}Fc(o)||Rt(t,o),oe(o)||ce(o)?(ia(t,o),oa(t,o)):je(o)?Pf(t,o):Re(o)?Mf(t,o):we(o)&&(Vf(t,o),e(o))}}function ia(t,e){var n=De(e.getFields());n.length===0&&t.reportError("Type ".concat(e.name," must define one or more fields."),rn(e));for(var r=0;r<n.length;r++){var i=n[r];if(Rt(t,i),!At(i.type)){var o;t.reportError("The type of ".concat(e.name,".").concat(i.name," must be Output Type ")+"but got: ".concat(D(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}for(var a=0,s=i.args;a<s.length;a++){var u=s[a],c=u.name;if(Rt(t,u),!qe(u.type)){var l;t.reportError("The type of ".concat(e.name,".").concat(i.name,"(").concat(c,":) must be Input ")+"Type but got: ".concat(D(u.type),"."),(l=u.astNode)===null||l===void 0?void 0:l.type)}if(Cn(u)&&u.deprecationReason!=null){var f;t.reportError("Required argument ".concat(e.name,".").concat(i.name,"(").concat(c,":) cannot be deprecated."),[so(u.astNode),(f=u.astNode)===null||f===void 0?void 0:f.type])}}}}function oa(t,e){for(var n=Object.create(null),r=0,i=e.getInterfaces();r<i.length;r++){var o=i[r];if(!ce(o)){t.reportError("Type ".concat(D(e)," must only implement Interface types, ")+"it cannot implement ".concat(D(o),"."),mn(e,o));continue}if(e===o){t.reportError("Type ".concat(e.name," cannot implement itself because it would create a circular reference."),mn(e,o));continue}if(n[o.name]){t.reportError("Type ".concat(e.name," can only implement ").concat(o.name," once."),mn(e,o));continue}n[o.name]=!0,qf(t,e,o),Lf(t,e,o)}}function Lf(t,e,n){for(var r=e.getFields(),i=0,o=De(n.getFields());i<o.length;i++){var a=o[i],s=a.name,u=r[s];if(!u){t.reportError("Interface field ".concat(n.name,".").concat(s," expected but ").concat(e.name," does not provide it."),[a.astNode].concat(rn(e)));continue}if(!Jt(t.schema,u.type,a.type)){var c,l;t.reportError("Interface field ".concat(n.name,".").concat(s," expects type ")+"".concat(D(a.type)," but ").concat(e.name,".").concat(s," ")+"is type ".concat(D(u.type),"."),[(c=a.astNode)===null||c===void 0?void 0:c.type,(l=u.astNode)===null||l===void 0?void 0:l.type])}for(var f=function(k,A){var N=A[k],x=N.name,I=kn(u.args,function(j){return j.name===x});if(!I)return t.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(x,":) expected but ").concat(e.name,".").concat(s," does not provide it."),[N.astNode,u.astNode]),"continue";if(!Si(N.type,I.type)){var P,z;t.reportError("Interface field argument ".concat(n.name,".").concat(s,"(").concat(x,":) ")+"expects type ".concat(D(N.type)," but ")+"".concat(e.name,".").concat(s,"(").concat(x,":) is type ")+"".concat(D(I.type),"."),[(P=N.astNode)===null||P===void 0?void 0:P.type,(z=I.astNode)===null||z===void 0?void 0:z.type])}},d=0,h=a.args;d<h.length;d++)var p=f(d,h);for(var m=function(k,A){var N=A[k],x=N.name,I=kn(a.args,function(P){return P.name===x});!I&&Cn(N)&&t.reportError("Object field ".concat(e.name,".").concat(s," includes required argument ").concat(x," that is missing from the Interface field ").concat(n.name,".").concat(s,"."),[N.astNode,a.astNode])},g=0,_=u.args;g<_.length;g++)m(g,_)}}function qf(t,e,n){for(var r=e.getInterfaces(),i=0,o=n.getInterfaces();i<o.length;i++){var a=o[i];r.indexOf(a)===-1&&t.reportError(a===e?"Type ".concat(e.name," cannot implement ").concat(n.name," because it would create a circular reference."):"Type ".concat(e.name," must implement ").concat(a.name," because it is implemented by ").concat(n.name,"."),[].concat(mn(n,a),mn(e,n)))}}function Pf(t,e){var n=e.getTypes();n.length===0&&t.reportError("Union type ".concat(e.name," must define one or more member types."),rn(e));for(var r=Object.create(null),i=0;i<n.length;i++){var o=n[i];if(r[o.name]){t.reportError("Union type ".concat(e.name," can only include type ").concat(o.name," once."),aa(e,o.name));continue}r[o.name]=!0,oe(o)||t.reportError("Union type ".concat(e.name," can only include Object types, ")+"it cannot include ".concat(D(o),"."),aa(e,String(o)))}}function Mf(t,e){var n=e.getValues();n.length===0&&t.reportError("Enum type ".concat(e.name," must define one or more values."),rn(e));for(var r=0;r<n.length;r++){var i=n[r],o=i.name;Rt(t,i),(o==="true"||o==="false"||o==="null")&&t.reportError("Enum type ".concat(e.name," cannot include value: ").concat(o,"."),i.astNode)}}function Vf(t,e){var n=De(e.getFields());n.length===0&&t.reportError("Input Object type ".concat(e.name," must define one or more fields."),rn(e));for(var r=0;r<n.length;r++){var i=n[r];if(Rt(t,i),!qe(i.type)){var o;t.reportError("The type of ".concat(e.name,".").concat(i.name," must be Input Type ")+"but got: ".concat(D(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}if(Oc(i)&&i.deprecationReason!=null){var a;t.reportError("Required input field ".concat(e.name,".").concat(i.name," cannot be deprecated."),[so(i.astNode),(a=i.astNode)===null||a===void 0?void 0:a.type])}}}function jf(t){var e=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(!e[o.name]){e[o.name]=!0,r[o.name]=n.length;for(var a=De(o.getFields()),s=0;s<a.length;s++){var u=a[s];if(re(u.type)&&we(u.type.ofType)){var c=u.type.ofType,l=r[c.name];if(n.push(u),l===void 0)i(c);else{var f=n.slice(l),d=f.map(function(h){return h.name}).join(".");t.reportError('Cannot reference Input Object "'.concat(c.name,'" within itself through a series of non-null fields: "').concat(d,'".'),f.map(function(h){return h.astNode}))}n.pop()}}r[o.name]=void 0}}}function rn(t){var e=t.astNode,n=t.extensionASTNodes;return e?n?[e].concat(n):[e]:n!=null?n:[]}function ao(t,e){for(var n=[],r=0,i=rn(t);r<i.length;r++){var o,a=i[r];n=n.concat((o=e(a))!==null&&o!==void 0?o:[])}return n}function mn(t,e){return ao(t,function(n){return n.interfaces}).filter(function(n){return n.name.value===e.name})}function aa(t,e){return ao(t,function(n){return n.types}).filter(function(n){return n.name.value===e})}function so(t){var e;return t==null||(e=t.directives)===null||e===void 0?void 0:e.find(function(n){return n.name.value===Lc.name})}function Ue(t,e){var n;if(e.kind===v.LIST_TYPE)return n=Ue(t,e.type),n&&new me(n);if(e.kind===v.NON_NULL_TYPE)return n=Ue(t,e.type),n&&new G(n);if(e.kind===v.NAMED_TYPE)return t.getType(e.name.value);Ce(0,"Unexpected type node: "+D(e))}var Ir=function(){function t(n,r,i){this._schema=n,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:Uf,i&&(qe(i)&&this._inputTypeStack.push(i),ht(i)&&this._parentTypeStack.push(i),At(i)&&this._typeStack.push(i))}var e=t.prototype;return e.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},e.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},e.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},e.getDirective=function(){return this._directive},e.getArgument=function(){return this._argument},e.getEnumValue=function(){return this._enumValue},e.enter=function(r){var i=this._schema;switch(r.kind){case v.SELECTION_SET:{var o=Ne(this.getType());this._parentTypeStack.push(ht(o)?o:void 0);break}case v.FIELD:{var a=this.getParentType(),s,u;a&&(s=this._getFieldDef(i,a,r),s&&(u=s.type)),this._fieldDefStack.push(s),this._typeStack.push(At(u)?u:void 0);break}case v.DIRECTIVE:this._directive=i.getDirective(r.name.value);break;case v.OPERATION_DEFINITION:{var c;switch(r.operation){case"query":c=i.getQueryType();break;case"mutation":c=i.getMutationType();break;case"subscription":c=i.getSubscriptionType();break}this._typeStack.push(oe(c)?c:void 0);break}case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:{var l=r.typeCondition,f=l?Ue(i,l):Ne(this.getType());this._typeStack.push(At(f)?f:void 0);break}case v.VARIABLE_DEFINITION:{var d=Ue(i,r.type);this._inputTypeStack.push(qe(d)?d:void 0);break}case v.ARGUMENT:{var h,p,m,g=(h=this.getDirective())!==null&&h!==void 0?h:this.getFieldDef();g&&(p=kn(g.args,function(P){return P.name===r.name.value}),p&&(m=p.type)),this._argument=p,this._defaultValueStack.push(p?p.defaultValue:void 0),this._inputTypeStack.push(qe(m)?m:void 0);break}case v.LIST:{var _=wc(this.getInputType()),y=xe(_)?_.ofType:_;this._defaultValueStack.push(void 0),this._inputTypeStack.push(qe(y)?y:void 0);break}case v.OBJECT_FIELD:{var k=Ne(this.getInputType()),A,N;we(k)&&(N=k.getFields()[r.name.value],N&&(A=N.type)),this._defaultValueStack.push(N?N.defaultValue:void 0),this._inputTypeStack.push(qe(A)?A:void 0);break}case v.ENUM:{var x=Ne(this.getInputType()),I;Re(x)&&(I=x.getValue(r.value)),this._enumValue=I;break}}},e.leave=function(r){switch(r.kind){case v.SELECTION_SET:this._parentTypeStack.pop();break;case v.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case v.DIRECTIVE:this._directive=null;break;case v.OPERATION_DEFINITION:case v.INLINE_FRAGMENT:case v.FRAGMENT_DEFINITION:this._typeStack.pop();break;case v.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case v.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.LIST:case v.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case v.ENUM:this._enumValue=null;break}},t}();function Uf(t,e,n){var r=n.name.value;if(r===xi.name&&t.getQueryType()===e)return xi;if(r===Ni.name&&t.getQueryType()===e)return Ni;if(r===Di.name&&ht(e))return Di;if(oe(e)||ce(e))return e.getFields()[r]}function co(t,e){return{enter:function(r){t.enter(r);var i=Tn(e,r.kind,!1);if(i){var o=i.apply(e,arguments);return o!==void 0&&(t.leave(r),Ti(o)&&t.enter(o)),o}},leave:function(r){var i=Tn(e,r.kind,!0),o;return i&&(o=i.apply(e,arguments)),t.leave(r),o}}}function X8(t){return Pc(t)||Mc(t)||Vc(t)}function Pc(t){return t.kind===v.OPERATION_DEFINITION||t.kind===v.FRAGMENT_DEFINITION}function K8(t){return t.kind===v.FIELD||t.kind===v.FRAGMENT_SPREAD||t.kind===v.INLINE_FRAGMENT}function e7(t){return t.kind===v.VARIABLE||t.kind===v.INT||t.kind===v.FLOAT||t.kind===v.STRING||t.kind===v.BOOLEAN||t.kind===v.NULL||t.kind===v.ENUM||t.kind===v.LIST||t.kind===v.OBJECT}function t7(t){return t.kind===v.NAMED_TYPE||t.kind===v.LIST_TYPE||t.kind===v.NON_NULL_TYPE}function Mc(t){return t.kind===v.SCHEMA_DEFINITION||Rr(t)||t.kind===v.DIRECTIVE_DEFINITION}function Rr(t){return t.kind===v.SCALAR_TYPE_DEFINITION||t.kind===v.OBJECT_TYPE_DEFINITION||t.kind===v.INTERFACE_TYPE_DEFINITION||t.kind===v.UNION_TYPE_DEFINITION||t.kind===v.ENUM_TYPE_DEFINITION||t.kind===v.INPUT_OBJECT_TYPE_DEFINITION}function Vc(t){return t.kind===v.SCHEMA_EXTENSION||jc(t)}function jc(t){return t.kind===v.SCALAR_TYPE_EXTENSION||t.kind===v.OBJECT_TYPE_EXTENSION||t.kind===v.INTERFACE_TYPE_EXTENSION||t.kind===v.UNION_TYPE_EXTENSION||t.kind===v.ENUM_TYPE_EXTENSION||t.kind===v.INPUT_OBJECT_TYPE_EXTENSION}function Uc(t){return{Document:function(n){for(var r=0,i=n.definitions;r<i.length;r++){var o=i[r];if(!Pc(o)){var a=o.kind===v.SCHEMA_DEFINITION||o.kind===v.SCHEMA_EXTENSION?"schema":'"'+o.name.value+'"';t.reportError(new C("The ".concat(a," definition is not executable."),o))}}return!1}}}function Bf(t){var e=Object.create(null);return{OperationDefinition:function(r){var i=r.name;return i&&(e[i.value]?t.reportError(new C('There can be only one operation named "'.concat(i.value,'".'),[e[i.value],i])):e[i.value]=i),!1},FragmentDefinition:function(){return!1}}}function zf(t){var e=0;return{Document:function(r){e=r.definitions.filter(function(i){return i.kind===v.OPERATION_DEFINITION}).length},OperationDefinition:function(r){!r.name&&e>1&&t.reportError(new C("This anonymous operation must be the only defined operation.",r))}}}function Gf(t){return{OperationDefinition:function(n){n.operation==="subscription"&&n.selectionSet.selections.length!==1&&t.reportError(new C(n.name?'Subscription "'.concat(n.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",n.selectionSet.selections.slice(1)))}}}function uo(t){for(var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null),i=0,o=t.getDocument().definitions;i<o.length;i++){var a=o[i];Rr(a)&&(r[a.name.value]=!0)}var s=Object.keys(n).concat(Object.keys(r));return{NamedType:function(c,l,f,d,h){var p=c.name.value;if(!n[p]&&!r[p]){var m,g=(m=h[2])!==null&&m!==void 0?m:f,_=g!=null&&Hf(g);if(_&&Qf(p))return;var y=Mt(p,_?Bc.concat(s):s);t.reportError(new C('Unknown type "'.concat(p,'".')+_t(y),c))}}}}var Bc=[].concat(Ki,Cr).map(function(t){return t.name});function Qf(t){return Bc.indexOf(t)!==-1}function Hf(t){return!Array.isArray(t)&&(Mc(t)||Vc(t))}function $f(t){return{InlineFragment:function(n){var r=n.typeCondition;if(r){var i=Ue(t.getSchema(),r);if(i&&!ht(i)){var o=ie(r);t.reportError(new C('Fragment cannot condition on non composite type "'.concat(o,'".'),r))}}},FragmentDefinition:function(n){var r=Ue(t.getSchema(),n.typeCondition);if(r&&!ht(r)){var i=ie(n.typeCondition);t.reportError(new C('Fragment "'.concat(n.name.value,'" cannot condition on non composite type "').concat(i,'".'),n.typeCondition))}}}}function Jf(t){return{VariableDefinition:function(n){var r=Ue(t.getSchema(),n.type);if(r&&!qe(r)){var i=n.variable.name.value,o=ie(n.type);t.reportError(new C('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),n.type))}}}}function Wf(t){return{Field:function(n){var r=t.getType(),i=n.selectionSet;if(r){if(dt(Ne(r))){if(i){var o=n.name.value,a=D(r);t.reportError(new C('Field "'.concat(o,'" must not have a selection since type "').concat(a,'" has no subfields.'),i))}}else if(!i){var s=n.name.value,u=D(r);t.reportError(new C('Field "'.concat(s,'" of type "').concat(u,'" must have a selection of subfields. Did you mean "').concat(s,' { ... }"?'),n))}}}}}function Yf(t){return{Field:function(n){var r=t.getParentType();if(r){var i=t.getFieldDef();if(!i){var o=t.getSchema(),a=n.name.value,s=_t("to use an inline fragment on",Zf(o,r,a));s===""&&(s=_t(Xf(r,a))),t.reportError(new C('Cannot query field "'.concat(a,'" on type "').concat(r.name,'".')+s,n))}}}}}function Zf(t,e,n){if(!Ot(e))return[];for(var r=new Set,i=Object.create(null),o=0,a=t.getPossibleTypes(e);o<a.length;o++){var s=a[o];if(!!s.getFields()[n]){r.add(s),i[s.name]=1;for(var u=0,c=s.getInterfaces();u<c.length;u++){var l,f=c[u];!f.getFields()[n]||(r.add(f),i[f.name]=((l=i[f.name])!==null&&l!==void 0?l:0)+1)}}}return Cc(r).sort(function(d,h){var p=i[h.name]-i[d.name];return p!==0?p:ce(d)&&t.isSubType(d,h)?-1:ce(h)&&t.isSubType(h,d)?1:Tc(d.name,h.name)}).map(function(d){return d.name})}function Xf(t,e){if(oe(t)||ce(t)){var n=Object.keys(t.getFields());return Mt(e,n)}return[]}function Kf(t){var e=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(r){var i=r.name.value;return e[i]?t.reportError(new C('There can be only one fragment named "'.concat(i,'".'),[e[i],r.name])):e[i]=r.name,!1}}}function zc(t){return{FragmentSpread:function(n){var r=n.name.value,i=t.getFragment(r);i||t.reportError(new C('Unknown fragment "'.concat(r,'".'),n.name))}}}function Gc(t){var e=[],n=[];return{OperationDefinition:function(i){return e.push(i),!1},FragmentDefinition:function(i){return n.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<e.length;o++)for(var a=e[o],s=0,u=t.getRecursivelyReferencedFragments(a);s<u.length;s++){var c=u[s];i[c.name.value]=!0}for(var l=0;l<n.length;l++){var f=n[l],d=f.name.value;i[d]!==!0&&t.reportError(new C('Fragment "'.concat(d,'" is never used.'),f))}}}}}function ep(t){return{InlineFragment:function(n){var r=t.getType(),i=t.getParentType();if(ht(r)&&ht(i)&&!ea(t.getSchema(),r,i)){var o=D(i),a=D(r);t.reportError(new C('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(a,'".'),n))}},FragmentSpread:function(n){var r=n.name.value,i=tp(t,r),o=t.getParentType();if(i&&o&&!ea(t.getSchema(),i,o)){var a=D(o),s=D(i);t.reportError(new C('Fragment "'.concat(r,'" cannot be spread here as objects of type "').concat(a,'" can never be of type "').concat(s,'".'),n))}}}}function tp(t,e){var n=t.getFragment(e);if(n){var r=Ue(t.getSchema(),n.typeCondition);if(ht(r))return r}}function np(t){var e=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(a){return i(a),!1}};function i(o){if(!e[o.name.value]){var a=o.name.value;e[a]=!0;var s=t.getFragmentSpreads(o.selectionSet);if(s.length!==0){r[a]=n.length;for(var u=0;u<s.length;u++){var c=s[u],l=c.name.value,f=r[l];if(n.push(c),f===void 0){var d=t.getFragment(l);d&&i(d)}else{var h=n.slice(f),p=h.slice(0,-1).map(function(m){return'"'+m.name.value+'"'}).join(", ");t.reportError(new C('Cannot spread fragment "'.concat(l,'" within itself')+(p!==""?" via ".concat(p,"."):"."),h))}n.pop()}r[a]=void 0}}}}function rp(t){var e=Object.create(null);return{OperationDefinition:function(){e=Object.create(null)},VariableDefinition:function(r){var i=r.variable.name.value;e[i]?t.reportError(new C('There can be only one variable named "$'.concat(i,'".'),[e[i],r.variable.name])):e[i]=r.variable.name}}}function ip(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var i=t.getRecursiveVariableUsages(r),o=0;o<i.length;o++){var a=i[o],s=a.node,u=s.name.value;e[u]!==!0&&t.reportError(new C(r.name?'Variable "$'.concat(u,'" is not defined by operation "').concat(r.name.value,'".'):'Variable "$'.concat(u,'" is not defined.'),[s,r]))}}},VariableDefinition:function(r){e[r.variable.name.value]=!0}}}function op(t){var e=[];return{OperationDefinition:{enter:function(){e=[]},leave:function(r){for(var i=Object.create(null),o=t.getRecursiveVariableUsages(r),a=0;a<o.length;a++){var s=o[a],u=s.node;i[u.name.value]=!0}for(var c=0,l=e;c<l.length;c++){var f=l[c],d=f.variable.name.value;i[d]!==!0&&t.reportError(new C(r.name?'Variable "$'.concat(d,'" is never used in operation "').concat(r.name.value,'".'):'Variable "$'.concat(d,'" is never used.'),f))}}},VariableDefinition:function(r){e.push(r)}}}function lo(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=o.locations}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===v.DIRECTIVE_DEFINITION&&(e[u.name.value]=u.locations.map(function(c){return c.value}))}return{Directive:function(l,f,d,h,p){var m=l.name.value,g=e[m];if(!g){t.reportError(new C('Unknown directive "@'.concat(m,'".'),l));return}var _=ap(p);_&&g.indexOf(_)===-1&&t.reportError(new C('Directive "@'.concat(m,'" may not be used on ').concat(_,"."),l))}}}function ap(t){var e=t[t.length-1];switch(!Array.isArray(e)||Ce(0),e.kind){case v.OPERATION_DEFINITION:return sp(e.operation);case v.FIELD:return B.FIELD;case v.FRAGMENT_SPREAD:return B.FRAGMENT_SPREAD;case v.INLINE_FRAGMENT:return B.INLINE_FRAGMENT;case v.FRAGMENT_DEFINITION:return B.FRAGMENT_DEFINITION;case v.VARIABLE_DEFINITION:return B.VARIABLE_DEFINITION;case v.SCHEMA_DEFINITION:case v.SCHEMA_EXTENSION:return B.SCHEMA;case v.SCALAR_TYPE_DEFINITION:case v.SCALAR_TYPE_EXTENSION:return B.SCALAR;case v.OBJECT_TYPE_DEFINITION:case v.OBJECT_TYPE_EXTENSION:return B.OBJECT;case v.FIELD_DEFINITION:return B.FIELD_DEFINITION;case v.INTERFACE_TYPE_DEFINITION:case v.INTERFACE_TYPE_EXTENSION:return B.INTERFACE;case v.UNION_TYPE_DEFINITION:case v.UNION_TYPE_EXTENSION:return B.UNION;case v.ENUM_TYPE_DEFINITION:case v.ENUM_TYPE_EXTENSION:return B.ENUM;case v.ENUM_VALUE_DEFINITION:return B.ENUM_VALUE;case v.INPUT_OBJECT_TYPE_DEFINITION:case v.INPUT_OBJECT_TYPE_EXTENSION:return B.INPUT_OBJECT;case v.INPUT_VALUE_DEFINITION:{var n=t[t.length-3];return n.kind===v.INPUT_OBJECT_TYPE_DEFINITION?B.INPUT_FIELD_DEFINITION:B.ARGUMENT_DEFINITION}}}function sp(t){switch(t){case"query":return B.QUERY;case"mutation":return B.MUTATION;case"subscription":return B.SUBSCRIPTION}Ce(0,"Unexpected operation: "+D(t))}function fo(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=!o.isRepeatable}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];u.kind===v.DIRECTIVE_DEFINITION&&(e[u.name.value]=!u.repeatable)}var c=Object.create(null),l=Object.create(null);return{enter:function(d){if(d.directives!=null){var h;if(d.kind===v.SCHEMA_DEFINITION||d.kind===v.SCHEMA_EXTENSION)h=c;else if(Rr(d)||jc(d)){var p=d.name.value;h=l[p],h===void 0&&(l[p]=h=Object.create(null))}else h=Object.create(null);for(var m=0,g=d.directives;m<g.length;m++){var _=g[m],y=_.name.value;e[y]&&(h[y]?t.reportError(new C('The directive "@'.concat(y,'" can only be used once at this location.'),[h[y],_])):h[y]=_)}}}}}function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ca(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sa(Object(n),!0).forEach(function(r){cp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function up(t){return ca(ca({},Qc(t)),{},{Argument:function(n){var r=t.getArgument(),i=t.getFieldDef(),o=t.getParentType();if(!r&&i&&o){var a=n.name.value,s=i.args.map(function(c){return c.name}),u=Mt(a,s);t.reportError(new C('Unknown argument "'.concat(a,'" on field "').concat(o.name,".").concat(i.name,'".')+_t(u),n))}}})}function Qc(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=o.args.map(function(f){return f.name})}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===v.DIRECTIVE_DEFINITION){var c,l=(c=u.arguments)!==null&&c!==void 0?c:[];e[u.name.value]=l.map(function(f){return f.name.value})}}return{Directive:function(d){var h=d.name.value,p=e[h];if(d.arguments&&p)for(var m=0,g=d.arguments;m<g.length;m++){var _=g[m],y=_.name.value;if(p.indexOf(y)===-1){var k=Mt(y,p);t.reportError(new C('Unknown argument "'.concat(y,'" on directive "@').concat(h,'".')+_t(k),_))}}return!1}}}function po(t){var e=Object.create(null);return{Field:function(){e=Object.create(null)},Directive:function(){e=Object.create(null)},Argument:function(r){var i=r.name.value;return e[i]?t.reportError(new C('There can be only one argument named "'.concat(i,'".'),[e[i],r.name])):e[i]=r.name,!1}}}function lp(t){return{ListValue:function(n){var r=wc(t.getParentInputType());if(!xe(r))return kt(t,n),!1},ObjectValue:function(n){var r=Ne(t.getInputType());if(!we(r))return kt(t,n),!1;for(var i=Dt(n.fields,function(l){return l.name.value}),o=0,a=De(r.getFields());o<a.length;o++){var s=a[o],u=i[s.name];if(!u&&Oc(s)){var c=D(s.type);t.reportError(new C('Field "'.concat(r.name,".").concat(s.name,'" of required type "').concat(c,'" was not provided.'),n))}}},ObjectField:function(n){var r=Ne(t.getParentInputType()),i=t.getInputType();if(!i&&we(r)){var o=Mt(n.name.value,Object.keys(r.getFields()));t.reportError(new C('Field "'.concat(n.name.value,'" is not defined by type "').concat(r.name,'".')+_t(o),n))}},NullValue:function(n){var r=t.getInputType();re(r)&&t.reportError(new C('Expected value of type "'.concat(D(r),'", found ').concat(ie(n),"."),n))},EnumValue:function(n){return kt(t,n)},IntValue:function(n){return kt(t,n)},FloatValue:function(n){return kt(t,n)},StringValue:function(n){return kt(t,n)},BooleanValue:function(n){return kt(t,n)}}}function kt(t,e){var n=t.getInputType();if(!!n){var r=Ne(n);if(!dt(r)){var i=D(n);t.reportError(new C('Expected value of type "'.concat(i,'", found ').concat(ie(e),"."),e));return}try{var o=r.parseLiteral(e,void 0);if(o===void 0){var a=D(n);t.reportError(new C('Expected value of type "'.concat(a,'", found ').concat(ie(e),"."),e))}}catch(u){var s=D(n);u instanceof C?t.reportError(u):t.reportError(new C('Expected value of type "'.concat(s,'", found ').concat(ie(e),"; ")+u.message,e,void 0,void 0,void 0,u))}}}function ua(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function la(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ua(Object(n),!0).forEach(function(r){fp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function fp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pp(t){return la(la({},Hc(t)),{},{Field:{leave:function(n){var r,i=t.getFieldDef();if(!i)return!1;for(var o=(r=n.arguments)!==null&&r!==void 0?r:[],a=Dt(o,function(d){return d.name.value}),s=0,u=i.args;s<u.length;s++){var c=u[s],l=a[c.name];if(!l&&Cn(c)){var f=D(c.type);t.reportError(new C('Field "'.concat(i.name,'" argument "').concat(c.name,'" of type "').concat(f,'" is required, but it was not provided.'),n))}}}}})}function Hc(t){for(var e=Object.create(null),n=t.getSchema(),r=n?n.getDirectives():nn,i=0;i<r.length;i++){var o=r[i];e[o.name]=Dt(o.args.filter(Cn),function(f){return f.name})}for(var a=t.getDocument().definitions,s=0;s<a.length;s++){var u=a[s];if(u.kind===v.DIRECTIVE_DEFINITION){var c,l=(c=u.arguments)!==null&&c!==void 0?c:[];e[u.name.value]=Dt(l.filter(dp),function(f){return f.name.value})}}return{Directive:{leave:function(d){var h=d.name.value,p=e[h];if(p)for(var m,g=(m=d.arguments)!==null&&m!==void 0?m:[],_=Dt(g,function(I){return I.name.value}),y=0,k=Object.keys(p);y<k.length;y++){var A=k[y];if(!_[A]){var N=p[A].type,x=wn(N)?D(N):ie(N);t.reportError(new C('Directive "@'.concat(h,'" argument "').concat(A,'" of type "').concat(x,'" is required, but it was not provided.'),d))}}}}}}function dp(t){return t.type.kind===v.NON_NULL_TYPE&&t.defaultValue==null}function hp(t){var e=Object.create(null);return{OperationDefinition:{enter:function(){e=Object.create(null)},leave:function(r){for(var i=t.getRecursiveVariableUsages(r),o=0;o<i.length;o++){var a=i[o],s=a.node,u=a.type,c=a.defaultValue,l=s.name.value,f=e[l];if(f&&u){var d=t.getSchema(),h=Ue(d,f.type);if(h&&!vp(d,h,f.defaultValue,u,c)){var p=D(h),m=D(u);t.reportError(new C('Variable "$'.concat(l,'" of type "').concat(p,'" used in position expecting type "').concat(m,'".'),[f,s]))}}}}},VariableDefinition:function(r){e[r.variable.name.value]=r}}}function vp(t,e,n,r,i){if(re(r)&&!re(e)){var o=n!=null&&n.kind!==v.NULL,a=i!==void 0;if(!o&&!a)return!1;var s=r.ofType;return Jt(t,e,s)}return Jt(t,e,r)}function $c(t){return Array.isArray(t)?t.map(function(e){var n=e[0],r=e[1];return'subfields "'.concat(n,'" conflict because ')+$c(r)}).join(" and "):t}function mp(t){var e=new kp,n=new Map;return{SelectionSet:function(i){for(var o=gp(t,n,e,t.getParentType(),i),a=0;a<o.length;a++){var s=o[a],u=s[0],c=u[0],l=u[1],f=s[1],d=s[2],h=$c(l);t.reportError(new C('Fields "'.concat(c,'" conflict because ').concat(h,". Use different aliases on the fields to fetch both if this was intentional."),f.concat(d)))}}}}function gp(t,e,n,r,i){var o=[],a=ur(t,e,r,i),s=a[0],u=a[1];if(bp(t,o,e,n,s),u.length!==0)for(var c=0;c<u.length;c++){sr(t,o,e,n,!1,s,u[c]);for(var l=c+1;l<u.length;l++)cr(t,o,e,n,!1,u[c],u[l])}return o}function sr(t,e,n,r,i,o,a){var s=t.getFragment(a);if(!!s){var u=Oi(t,n,s),c=u[0],l=u[1];if(o!==c){ho(t,e,n,r,i,o,c);for(var f=0;f<l.length;f++)sr(t,e,n,r,i,o,l[f])}}}function cr(t,e,n,r,i,o,a){if(o!==a&&!r.has(o,a,i)){r.add(o,a,i);var s=t.getFragment(o),u=t.getFragment(a);if(!(!s||!u)){var c=Oi(t,n,s),l=c[0],f=c[1],d=Oi(t,n,u),h=d[0],p=d[1];ho(t,e,n,r,i,l,h);for(var m=0;m<p.length;m++)cr(t,e,n,r,i,o,p[m]);for(var g=0;g<f.length;g++)cr(t,e,n,r,i,f[g],a)}}}function yp(t,e,n,r,i,o,a,s){var u=[],c=ur(t,e,i,o),l=c[0],f=c[1],d=ur(t,e,a,s),h=d[0],p=d[1];if(ho(t,u,e,n,r,l,h),p.length!==0)for(var m=0;m<p.length;m++)sr(t,u,e,n,r,l,p[m]);if(f.length!==0)for(var g=0;g<f.length;g++)sr(t,u,e,n,r,h,f[g]);for(var _=0;_<f.length;_++)for(var y=0;y<p.length;y++)cr(t,u,e,n,r,f[_],p[y]);return u}function bp(t,e,n,r,i){for(var o=0,a=Xt(i);o<a.length;o++){var s=a[o],u=s[0],c=s[1];if(c.length>1)for(var l=0;l<c.length;l++)for(var f=l+1;f<c.length;f++){var d=Jc(t,n,r,!1,u,c[l],c[f]);d&&e.push(d)}}}function ho(t,e,n,r,i,o,a){for(var s=0,u=Object.keys(o);s<u.length;s++){var c=u[s],l=a[c];if(l)for(var f=o[c],d=0;d<f.length;d++)for(var h=0;h<l.length;h++){var p=Jc(t,n,r,i,c,f[d],l[h]);p&&e.push(p)}}}function Jc(t,e,n,r,i,o,a){var s=o[0],u=o[1],c=o[2],l=a[0],f=a[1],d=a[2],h=r||s!==l&&oe(s)&&oe(l);if(!h){var p,m,g=u.name.value,_=f.name.value;if(g!==_)return[[i,'"'.concat(g,'" and "').concat(_,'" are different fields')],[u],[f]];var y=(p=u.arguments)!==null&&p!==void 0?p:[],k=(m=f.arguments)!==null&&m!==void 0?m:[];if(!_p(y,k))return[[i,"they have differing arguments"],[u],[f]]}var A=c==null?void 0:c.type,N=d==null?void 0:d.type;if(A&&N&&Ai(A,N))return[[i,'they return conflicting types "'.concat(D(A),'" and "').concat(D(N),'"')],[u],[f]];var x=u.selectionSet,I=f.selectionSet;if(x&&I){var P=yp(t,e,n,h,Ne(A),x,Ne(N),I);return Tp(P,i,u,f)}}function _p(t,e){return t.length!==e.length?!1:t.every(function(n){var r=kn(e,function(i){return i.name.value===n.name.value});return r?Ep(n.value,r.value):!1})}function Ep(t,e){return ie(t)===ie(e)}function Ai(t,e){return xe(t)?xe(e)?Ai(t.ofType,e.ofType):!0:xe(e)?!0:re(t)?re(e)?Ai(t.ofType,e.ofType):!0:re(e)?!0:dt(t)||dt(e)?t!==e:!1}function ur(t,e,n,r){var i=e.get(r);if(!i){var o=Object.create(null),a=Object.create(null);Wc(t,n,r,o,a),i=[o,Object.keys(a)],e.set(r,i)}return i}function Oi(t,e,n){var r=e.get(n.selectionSet);if(r)return r;var i=Ue(t.getSchema(),n.typeCondition);return ur(t,e,i,n.selectionSet)}function Wc(t,e,n,r,i){for(var o=0,a=n.selections;o<a.length;o++){var s=a[o];switch(s.kind){case v.FIELD:{var u=s.name.value,c=void 0;(oe(e)||ce(e))&&(c=e.getFields()[u]);var l=s.alias?s.alias.value:u;r[l]||(r[l]=[]),r[l].push([e,s,c]);break}case v.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case v.INLINE_FRAGMENT:{var f=s.typeCondition,d=f?Ue(t.getSchema(),f):e;Wc(t,d,s.selectionSet,r,i);break}}}}function Tp(t,e,n,r){if(t.length>0)return[[e,t.map(function(i){var o=i[0];return o})],t.reduce(function(i,o){var a=o[1];return i.concat(a)},[n]),t.reduce(function(i,o){var a=o[2];return i.concat(a)},[r])]}var kp=function(){function t(){this._data=Object.create(null)}var e=t.prototype;return e.has=function(r,i,o){var a=this._data[r],s=a&&a[i];return s===void 0?!1:o===!1?s===!1:!0},e.add=function(r,i,o){this._pairSetAdd(r,i,o),this._pairSetAdd(i,r,o)},e._pairSetAdd=function(r,i,o){var a=this._data[r];a||(a=Object.create(null),this._data[r]=a),a[i]=o},t}();function vo(t){var e=[],n=Object.create(null);return{ObjectValue:{enter:function(){e.push(n),n=Object.create(null)},leave:function(){n=e.pop()}},ObjectField:function(i){var o=i.name.value;n[o]?t.reportError(new C('There can be only one input field named "'.concat(o,'".'),[n[o],i.name])):n[o]=i.name}}}function Yc(t){var e,n,r,i=t.getSchema(),o=(e=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&e!==void 0?e:i==null?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition:function(u){if(o){t.reportError(new C("Cannot define a new schema within a schema extension.",u));return}a>0&&t.reportError(new C("Must provide only one schema definition.",u)),++a}}}function Zc(t){var e=t.getSchema(),n=Object.create(null),r=e?{query:e.getQueryType(),mutation:e.getMutationType(),subscription:e.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){for(var a,s=(a=o.operationTypes)!==null&&a!==void 0?a:[],u=0;u<s.length;u++){var c=s[u],l=c.operation,f=n[l];r[l]?t.reportError(new C("Type for ".concat(l," already defined in the schema. It cannot be redefined."),c)):f?t.reportError(new C("There can be only one ".concat(l," type in schema."),[f,c])):n[l]=c}return!1}}function Xc(t){var e=Object.create(null),n=t.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){var o=i.name.value;if(n!=null&&n.getType(o)){t.reportError(new C('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return}return e[o]?t.reportError(new C('There can be only one type named "'.concat(o,'".'),[e[o],i.name])):e[o]=i.name,!1}}function Kc(t){var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var a,s=o.name.value;r[s]||(r[s]=Object.create(null));for(var u=(a=o.values)!==null&&a!==void 0?a:[],c=r[s],l=0;l<u.length;l++){var f=u[l],d=f.name.value,h=n[s];Re(h)&&h.getValue(d)?t.reportError(new C('Enum value "'.concat(s,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):c[d]?t.reportError(new C('Enum value "'.concat(s,".").concat(d,'" can only be defined once.'),[c[d],f.name])):c[d]=f.name}return!1}}function eu(t){var e=t.getSchema(),n=e?e.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var a,s=o.name.value;r[s]||(r[s]=Object.create(null));for(var u=(a=o.fields)!==null&&a!==void 0?a:[],c=r[s],l=0;l<u.length;l++){var f=u[l],d=f.name.value;wp(n[s],d)?t.reportError(new C('Field "'.concat(s,".").concat(d,'" already exists in the schema. It cannot also be defined in this type extension.'),f.name)):c[d]?t.reportError(new C('Field "'.concat(s,".").concat(d,'" can only be defined once.'),[c[d],f.name])):c[d]=f.name}return!1}}function wp(t,e){return oe(t)||ce(t)||we(t)?t.getFields()[e]!=null:!1}function tu(t){var e=Object.create(null),n=t.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(n!=null&&n.getDirective(o)){t.reportError(new C('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return}return e[o]?t.reportError(new C('There can be only one directive named "@'.concat(o,'".'),[e[o],i.name])):e[o]=i.name,!1}}}var gt;function Bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nu(t){for(var e=t.getSchema(),n=Object.create(null),r=0,i=t.getDocument().definitions;r<i.length;r++){var o=i[r];Rr(o)&&(n[o.name.value]=o)}return{ScalarTypeExtension:a,ObjectTypeExtension:a,InterfaceTypeExtension:a,UnionTypeExtension:a,EnumTypeExtension:a,InputObjectTypeExtension:a};function a(s){var u=s.name.value,c=n[u],l=e==null?void 0:e.getType(u),f;if(c?f=Sp[c.kind]:l&&(f=xp(l)),f){if(f!==s.kind){var d=Np(s.kind);t.reportError(new C("Cannot extend non-".concat(d,' type "').concat(u,'".'),c?[c,s]:s))}}else{var h=Object.keys(n);e&&(h=h.concat(Object.keys(e.getTypeMap())));var p=Mt(u,h);t.reportError(new C('Cannot extend type "'.concat(u,'" because it is not defined.')+_t(p),s.name))}}}var Sp=(gt={},Bt(gt,v.SCALAR_TYPE_DEFINITION,v.SCALAR_TYPE_EXTENSION),Bt(gt,v.OBJECT_TYPE_DEFINITION,v.OBJECT_TYPE_EXTENSION),Bt(gt,v.INTERFACE_TYPE_DEFINITION,v.INTERFACE_TYPE_EXTENSION),Bt(gt,v.UNION_TYPE_DEFINITION,v.UNION_TYPE_EXTENSION),Bt(gt,v.ENUM_TYPE_DEFINITION,v.ENUM_TYPE_EXTENSION),Bt(gt,v.INPUT_OBJECT_TYPE_DEFINITION,v.INPUT_OBJECT_TYPE_EXTENSION),gt);function xp(t){if(Et(t))return v.SCALAR_TYPE_EXTENSION;if(oe(t))return v.OBJECT_TYPE_EXTENSION;if(ce(t))return v.INTERFACE_TYPE_EXTENSION;if(je(t))return v.UNION_TYPE_EXTENSION;if(Re(t))return v.ENUM_TYPE_EXTENSION;if(we(t))return v.INPUT_OBJECT_TYPE_EXTENSION;Ce(0,"Unexpected type: "+D(t))}function Np(t){switch(t){case v.SCALAR_TYPE_EXTENSION:return"scalar";case v.OBJECT_TYPE_EXTENSION:return"object";case v.INTERFACE_TYPE_EXTENSION:return"interface";case v.UNION_TYPE_EXTENSION:return"union";case v.ENUM_TYPE_EXTENSION:return"enum";case v.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}Ce(0,"Unexpected kind: "+D(t))}var ru=Object.freeze([Uc,Bf,zf,Gf,uo,$f,Jf,Wf,Yf,Kf,zc,Gc,ep,np,rp,ip,op,lo,fo,up,po,lp,pp,hp,mp,vo]),Dp=Object.freeze([Yc,Zc,Xc,Kc,eu,tu,uo,lo,fo,nu,Qc,po,vo,Hc]);function iu(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var ou=function(){function t(n,r){this._ast=n,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=r}var e=t.prototype;return e.reportError=function(r){this._onError(r)},e.getDocument=function(){return this._ast},e.getFragment=function(r){var i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,a){return a.kind===v.FRAGMENT_DEFINITION&&(o[a.name.value]=a),o},Object.create(null))),i[r]},e.getFragmentSpreads=function(r){var i=this._fragmentSpreads.get(r);if(!i){i=[];for(var o=[r];o.length!==0;)for(var a=o.pop(),s=0,u=a.selections;s<u.length;s++){var c=u[s];c.kind===v.FRAGMENT_SPREAD?i.push(c):c.selectionSet&&o.push(c.selectionSet)}this._fragmentSpreads.set(r,i)}return i},e.getRecursivelyReferencedFragments=function(r){var i=this._recursivelyReferencedFragments.get(r);if(!i){i=[];for(var o=Object.create(null),a=[r.selectionSet];a.length!==0;)for(var s=a.pop(),u=0,c=this.getFragmentSpreads(s);u<c.length;u++){var l=c[u],f=l.name.value;if(o[f]!==!0){o[f]=!0;var d=this.getFragment(f);d&&(i.push(d),a.push(d.selectionSet))}}this._recursivelyReferencedFragments.set(r,i)}return i},t}(),Ap=function(t){iu(e,t);function e(r,i,o){var a;return a=t.call(this,r,o)||this,a._schema=i,a}var n=e.prototype;return n.getSchema=function(){return this._schema},e}(ou),Op=function(t){iu(e,t);function e(r,i,o,a){var s;return s=t.call(this,i,a)||this,s._schema=r,s._typeInfo=o,s._variableUsages=new Map,s._recursiveVariableUsages=new Map,s}var n=e.prototype;return n.getSchema=function(){return this._schema},n.getVariableUsages=function(i){var o=this._variableUsages.get(i);if(!o){var a=[],s=new Ir(this._schema);Ye(i,co(s,{VariableDefinition:function(){return!1},Variable:function(c){a.push({node:c,type:s.getInputType(),defaultValue:s.getDefaultValue()})}})),o=a,this._variableUsages.set(i,o)}return o},n.getRecursiveVariableUsages=function(i){var o=this._recursiveVariableUsages.get(i);if(!o){o=this.getVariableUsages(i);for(var a=0,s=this.getRecursivelyReferencedFragments(i);a<s.length;a++){var u=s[a];o=o.concat(this.getVariableUsages(u))}this._recursiveVariableUsages.set(i,o)}return o},n.getType=function(){return this._typeInfo.getType()},n.getParentType=function(){return this._typeInfo.getParentType()},n.getInputType=function(){return this._typeInfo.getInputType()},n.getParentInputType=function(){return this._typeInfo.getParentInputType()},n.getFieldDef=function(){return this._typeInfo.getFieldDef()},n.getDirective=function(){return this._typeInfo.getDirective()},n.getArgument=function(){return this._typeInfo.getArgument()},n.getEnumValue=function(){return this._typeInfo.getEnumValue()},e}(ou);function au(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ru,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Ir(t),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};e||H(0,"Must provide document."),Of(t);var o=Object.freeze({}),a=[],s=new Op(t,e,r,function(c){if(i.maxErrors!=null&&a.length>=i.maxErrors)throw a.push(new C("Too many validation errors, error limit reached. Validation aborted.")),o;a.push(c)}),u=_c(n.map(function(c){return c(s)}));try{Ye(e,co(r,u))}catch(c){if(c!==o)throw c}return a}function su(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dp,r=[],i=new Ap(t,e,function(a){r.push(a)}),o=n.map(function(a){return a(i)});return Ye(t,_c(o)),r}function n7(t){var e=su(t);if(e.length!==0)throw new Error(e.map(function(n){return n.message}).join(`
|
|
36
|
-
|
|
37
|
-
`))}function r7(t,e){var n=su(t,e);if(n.length!==0)throw new Error(n.map(function(r){return r.message}).join(`
|
|
38
|
-
|
|
39
|
-
`))}function hn(t,e,n){if(!!t){if(t.kind===v.VARIABLE){var r=t.name.value;if(n==null||n[r]===void 0)return;var i=n[r];return i===null&&re(e)?void 0:i}if(re(e))return t.kind===v.NULL?void 0:hn(t,e.ofType,n);if(t.kind===v.NULL)return null;if(xe(e)){var o=e.ofType;if(t.kind===v.LIST){for(var a=[],s=0,u=t.values;s<u.length;s++){var c=u[s];if(fa(c,n)){if(re(o))return;a.push(null)}else{var l=hn(c,o,n);if(l===void 0)return;a.push(l)}}return a}var f=hn(t,o,n);return f===void 0?void 0:[f]}if(we(e)){if(t.kind!==v.OBJECT)return;for(var d=Object.create(null),h=Dt(t.fields,function(A){return A.name.value}),p=0,m=De(e.getFields());p<m.length;p++){var g=m[p],_=h[g.name];if(!_||fa(_.value,n)){if(g.defaultValue!==void 0)d[g.name]=g.defaultValue;else if(re(g.type))return;continue}var y=hn(_.value,g.type,n);if(y===void 0)return;d[g.name]=y}return d}if(dt(e)){var k;try{k=e.parseLiteral(t,n)}catch(A){return}return k===void 0?void 0:k}Ce(0,"Unexpected input type: "+D(e))}}function fa(t,e){return t.kind===v.VARIABLE&&(e==null||e[t.name.value]===void 0)}function Cp(t){return{Field:function(n){var r=t.getFieldDef(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=t.getParentType();o!=null||Ce(0),t.reportError(new C("The field ".concat(o.name,".").concat(r.name," is deprecated. ").concat(i),n))}},Argument:function(n){var r=t.getArgument(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=t.getDirective();if(o!=null)t.reportError(new C('Directive "@'.concat(o.name,'" argument "').concat(r.name,'" is deprecated. ').concat(i),n));else{var a=t.getParentType(),s=t.getFieldDef();a!=null&&s!=null||Ce(0),t.reportError(new C('Field "'.concat(a.name,".").concat(s.name,'" argument "').concat(r.name,'" is deprecated. ').concat(i),n))}}},ObjectField:function(n){var r=Ne(t.getParentInputType());if(we(r)){var i=r.getFields()[n.name.value],o=i==null?void 0:i.deprecationReason;o!=null&&t.reportError(new C("The input field ".concat(r.name,".").concat(i.name," is deprecated. ").concat(o),n))}},EnumValue:function(n){var r=t.getEnumValue(),i=r==null?void 0:r.deprecationReason;if(r&&i!=null){var o=Ne(t.getInputType());o!=null||Ce(0),t.reportError(new C('The enum value "'.concat(o.name,".").concat(r.name,'" is deprecated. ').concat(i),n))}}}}function pa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ip(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pa(Object(n),!0).forEach(function(r){Rp(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Rp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fp(t){var e=Ip({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},t),n=e.descriptions?"description":"",r=e.specifiedByUrl?"specifiedByUrl":"",i=e.directiveIsRepeatable?"isRepeatable":"",o=e.schemaDescription?n:"";function a(s){return e.inputValueDeprecation?s:""}return`
|
|
40
|
-
query IntrospectionQuery {
|
|
41
|
-
__schema {
|
|
42
|
-
`.concat(o,`
|
|
43
|
-
queryType { name }
|
|
44
|
-
mutationType { name }
|
|
45
|
-
subscriptionType { name }
|
|
46
|
-
types {
|
|
47
|
-
...FullType
|
|
48
|
-
}
|
|
49
|
-
directives {
|
|
50
|
-
name
|
|
51
|
-
`).concat(n,`
|
|
52
|
-
`).concat(i,`
|
|
53
|
-
locations
|
|
54
|
-
args`).concat(a("(includeDeprecated: true)"),` {
|
|
55
|
-
...InputValue
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
fragment FullType on __Type {
|
|
62
|
-
kind
|
|
63
|
-
name
|
|
64
|
-
`).concat(n,`
|
|
65
|
-
`).concat(r,`
|
|
66
|
-
fields(includeDeprecated: true) {
|
|
67
|
-
name
|
|
68
|
-
`).concat(n,`
|
|
69
|
-
args`).concat(a("(includeDeprecated: true)"),` {
|
|
70
|
-
...InputValue
|
|
71
|
-
}
|
|
72
|
-
type {
|
|
73
|
-
...TypeRef
|
|
74
|
-
}
|
|
75
|
-
isDeprecated
|
|
76
|
-
deprecationReason
|
|
77
|
-
}
|
|
78
|
-
inputFields`).concat(a("(includeDeprecated: true)"),` {
|
|
79
|
-
...InputValue
|
|
80
|
-
}
|
|
81
|
-
interfaces {
|
|
82
|
-
...TypeRef
|
|
83
|
-
}
|
|
84
|
-
enumValues(includeDeprecated: true) {
|
|
85
|
-
name
|
|
86
|
-
`).concat(n,`
|
|
87
|
-
isDeprecated
|
|
88
|
-
deprecationReason
|
|
89
|
-
}
|
|
90
|
-
possibleTypes {
|
|
91
|
-
...TypeRef
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
fragment InputValue on __InputValue {
|
|
96
|
-
name
|
|
97
|
-
`).concat(n,`
|
|
98
|
-
type { ...TypeRef }
|
|
99
|
-
defaultValue
|
|
100
|
-
`).concat(a("isDeprecated"),`
|
|
101
|
-
`).concat(a("deprecationReason"),`
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
fragment TypeRef on __Type {
|
|
105
|
-
kind
|
|
106
|
-
name
|
|
107
|
-
ofType {
|
|
108
|
-
kind
|
|
109
|
-
name
|
|
110
|
-
ofType {
|
|
111
|
-
kind
|
|
112
|
-
name
|
|
113
|
-
ofType {
|
|
114
|
-
kind
|
|
115
|
-
name
|
|
116
|
-
ofType {
|
|
117
|
-
kind
|
|
118
|
-
name
|
|
119
|
-
ofType {
|
|
120
|
-
kind
|
|
121
|
-
name
|
|
122
|
-
ofType {
|
|
123
|
-
kind
|
|
124
|
-
name
|
|
125
|
-
ofType {
|
|
126
|
-
kind
|
|
127
|
-
name
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
`)}function Lp(t,e){pt(t)&&pt(t.__schema)||H(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat(D(t),"."));for(var n=t.__schema,r=xt(n.types,function(E){return E.name},function(E){return m(E)}),i=0,o=[].concat(Ki,Cr);i<o.length;i++){var a=o[i];r[a.name]&&(r[a.name]=a)}var s=n.queryType?h(n.queryType):null,u=n.mutationType?h(n.mutationType):null,c=n.subscriptionType?h(n.subscriptionType):null,l=n.directives?n.directives.map(K):[];return new qc({description:n.description,query:s,mutation:u,subscription:c,types:De(r),directives:l,assumeValid:e==null?void 0:e.assumeValid});function f(E){if(E.kind===ne.LIST){var R=E.ofType;if(!R)throw new Error("Decorated type deeper than introspection query.");return new me(f(R))}if(E.kind===ne.NON_NULL){var w=E.ofType;if(!w)throw new Error("Decorated type deeper than introspection query.");var F=f(w);return new G(kc(F))}return d(E)}function d(E){var R=E.name;if(!R)throw new Error("Unknown type reference: ".concat(D(E),"."));var w=r[R];if(!w)throw new Error("Invalid or incomplete schema, unknown type: ".concat(R,". Ensure that a full introspection query is used in order to build a client schema."));return w}function h(E){return ef(d(E))}function p(E){return tf(d(E))}function m(E){if(E!=null&&E.name!=null&&E.kind!=null)switch(E.kind){case ne.SCALAR:return g(E);case ne.OBJECT:return y(E);case ne.INTERFACE:return k(E);case ne.UNION:return A(E);case ne.ENUM:return N(E);case ne.INPUT_OBJECT:return x(E)}var R=D(E);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(R,"."))}function g(E){return new Tt({name:E.name,description:E.description,specifiedByUrl:E.specifiedByUrl})}function _(E){if(E.interfaces===null&&E.kind===ne.INTERFACE)return[];if(!E.interfaces){var R=D(E);throw new Error("Introspection result missing interfaces: ".concat(R,"."))}return E.interfaces.map(p)}function y(E){return new Me({name:E.name,description:E.description,interfaces:function(){return _(E)},fields:function(){return I(E)}})}function k(E){return new Nr({name:E.name,description:E.description,interfaces:function(){return _(E)},fields:function(){return I(E)}})}function A(E){if(!E.possibleTypes){var R=D(E);throw new Error("Introspection result missing possibleTypes: ".concat(R,"."))}return new Dr({name:E.name,description:E.description,types:function(){return E.possibleTypes.map(h)}})}function N(E){if(!E.enumValues){var R=D(E);throw new Error("Introspection result missing enumValues: ".concat(R,"."))}return new tn({name:E.name,description:E.description,values:xt(E.enumValues,function(w){return w.name},function(w){return{description:w.description,deprecationReason:w.deprecationReason}})})}function x(E){if(!E.inputFields){var R=D(E);throw new Error("Introspection result missing inputFields: ".concat(R,"."))}return new Yi({name:E.name,description:E.description,fields:function(){return z(E.inputFields)}})}function I(E){if(!E.fields)throw new Error("Introspection result missing fields: ".concat(D(E),"."));return xt(E.fields,function(R){return R.name},P)}function P(E){var R=f(E.type);if(!At(R)){var w=D(R);throw new Error("Introspection must provide output type for fields, but received: ".concat(w,"."))}if(!E.args){var F=D(E);throw new Error("Introspection result missing field args: ".concat(F,"."))}return{description:E.description,deprecationReason:E.deprecationReason,type:R,args:z(E.args)}}function z(E){return xt(E,function(R){return R.name},j)}function j(E){var R=f(E.type);if(!qe(R)){var w=D(R);throw new Error("Introspection must provide input type for arguments, but received: ".concat(w,"."))}var F=E.defaultValue!=null?hn(jl(E.defaultValue),R):void 0;return{description:E.description,type:R,defaultValue:F,deprecationReason:E.deprecationReason}}function K(E){if(!E.args){var R=D(E);throw new Error("Introspection result missing directive args: ".concat(R,"."))}if(!E.locations){var w=D(E);throw new Error("Introspection result missing directive locations: ".concat(w,"."))}return new Vt({name:E.name,description:E.description,isRepeatable:E.isRepeatable,locations:E.locations.slice(),args:z(E.args)})}}const da=`\r
|
|
137
|
-
\r
|
|
138
|
-
`;async function*qp(t,e,n){const r=Buffer.byteLength(e),i=!n||!n.multiple;let o=Buffer.alloc(0),a=!0,s=[];e:for await(const u of t){let c=o.byteLength;o=Buffer.concat([o,u]);const l=u.indexOf(e);for(~l?c+=l:c=o.indexOf(e),s=[];~c;){const f=o.slice(0,c),d=o.slice(c+r);if(a)a=!1;else{const h={},p=f.indexOf(da),m=o.slice(0,p).toString().trim().split(/\r\n/);let g;for(;g=m.shift();)g=g.split(": "),h[g.shift().toLowerCase()]=g.join(": ");let _=f.slice(p+da.length,f.lastIndexOf(`\r
|
|
139
|
-
`)),y=!1;if(g=h["content-type"],g&&!!~g.indexOf("application/json"))try{_=JSON.parse(_.toString()),y=!0}catch(k){}if(g={headers:h,body:_,json:y},i?yield g:s.push(g),d.slice(0,2).toString()==="--")break e}o=d,c=o.indexOf(e)}s.length&&(yield s)}s.length&&(yield s)}async function Pp(t,e){const n=t.headers["content-type"];if(!n||!~n.indexOf("multipart/mixed"))return t;const r=n.indexOf("boundary=");return qp(t,`--${~r?n.substring(r+9).trim().replace(/['"]/g,""):"-"}`,e)}const mo=Object.prototype.hasOwnProperty;function gn(t){return typeof t=="object"&&t!==null}function Mp(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function ln(t,e){return mo.call(t,e)}function zn(t,e){return mo.call(t,e)&&gn(t[e])}function zt(t,e){return mo.call(t,e)&&typeof t[e]=="string"}function ha(t,e){return t.length<124?t:e}const Vp="graphql-transport-ws";var Ae;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Ae||(Ae={}));var ve;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(ve||(ve={}));function Ci(t){if(gn(t)){if(!zt(t,"type"))return!1;switch(t.type){case ve.ConnectionInit:return!ln(t,"payload")||t.payload===void 0||gn(t.payload);case ve.ConnectionAck:case ve.Ping:case ve.Pong:return!ln(t,"payload")||t.payload===void 0||gn(t.payload);case ve.Subscribe:return zt(t,"id")&&zn(t,"payload")&&(!ln(t.payload,"operationName")||t.payload.operationName===void 0||t.payload.operationName===null||typeof t.payload.operationName=="string")&&zt(t.payload,"query")&&(!ln(t.payload,"variables")||t.payload.variables===void 0||t.payload.variables===null||zn(t.payload,"variables"))&&(!ln(t.payload,"extensions")||t.payload.extensions===void 0||t.payload.extensions===null||zn(t.payload,"extensions"));case ve.Next:return zt(t,"id")&&zn(t,"payload");case ve.Error:return zt(t,"id")&&Mp(t.payload);case ve.Complete:return zt(t,"id");default:return!1}}return!1}function jp(t,e){if(Ci(t))return t;if(typeof t!="string")throw new Error("Message not parsable");const n=JSON.parse(t,e);if(!Ci(n))throw new Error("Invalid message");return n}function fn(t,e){if(!Ci(t))throw new Error("Cannot stringify invalid message");return JSON.stringify(t,e)}function Up(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:c=5,retryWait:l=async function(R){let w=1e3;for(let F=0;F<R;F++)w*=2;await new Promise(F=>setTimeout(F,w+Math.floor(Math.random()*(3e3-300)+300)))},isFatalConnectionProblem:f=E=>!Gn(E),on:d,webSocketImpl:h,generateID:p=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,R=>{const w=Math.random()*16|0;return(R=="x"?w:w&3|8).toString(16)})},jsonMessageReplacer:m,jsonMessageReviver:g}=t;let _;if(h){if(!zp(h))throw new Error("Invalid WebSocket implementation provided");_=h}else typeof WebSocket!="undefined"?_=WebSocket:typeof global!="undefined"?_=global.WebSocket||global.MozWebSocket:typeof window!="undefined"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const y=_,k=(()=>{const E=(()=>{const w={};return{on(F,L){return w[F]=L,()=>{delete w[F]}},emit(F){var L;"id"in F&&((L=w[F.id])===null||L===void 0||L.call(w,F))}}})(),R={connecting:d!=null&&d.connecting?[d.connecting]:[],opened:d!=null&&d.opened?[d.opened]:[],connected:d!=null&&d.connected?[d.connected]:[],ping:d!=null&&d.ping?[d.ping]:[],pong:d!=null&&d.pong?[d.pong]:[],message:d!=null&&d.message?[E.emit,d.message]:[E.emit],closed:d!=null&&d.closed?[d.closed]:[],error:d!=null&&d.error?[d.error]:[]};return{onMessage:E.on,on(w,F){const L=R[w];return L.push(F),()=>{L.splice(L.indexOf(F),1)}},emit(w,...F){for(const L of[...R[w]])L(...F)}}})();function A(E){const R=[k.on("error",w=>{R.forEach(F=>F()),E(w)}),k.on("closed",w=>{R.forEach(F=>F()),E(w)})]}let N,x=0,I=!1,P=0,z=!1;async function j(){const[E,R]=await(N!=null?N:N=new Promise((L,_e)=>(async()=>{if(I){if(await l(P),!x)return N=void 0,_e({code:1e3,reason:"All Subscriptions Gone"});P++}k.emit("connecting");const $=new y(typeof e=="function"?await e():e,Vp);let Fe,fe;function pe(){isFinite(a)&&a>0&&(clearTimeout(fe),fe=setTimeout(()=>{$.readyState===y.OPEN&&($.send(fn({type:ve.Ping})),k.emit("ping",!1,void 0))},a))}A(ue=>{N=void 0,clearTimeout(Fe),clearTimeout(fe),_e(ue),Gn(ue)&&ue.code===4499&&($.close(4499,"Terminated"),$.onerror=null,$.onclose=null)}),$.onerror=ue=>k.emit("error",ue),$.onclose=ue=>k.emit("closed",ue),$.onopen=async()=>{try{k.emit("opened",$);const ue=typeof n=="function"?await n():n;if($.readyState!==y.OPEN)return;$.send(fn(ue?{type:ve.ConnectionInit,payload:ue}:{type:ve.ConnectionInit},m)),isFinite(u)&&u>0&&(Fe=setTimeout(()=>{$.close(Ae.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),pe()}catch(ue){k.emit("error",ue),$.close(Ae.InternalClientError,ha(ue instanceof Error?ue.message:new Error(ue).message,"Internal client error"))}};let st=!1;$.onmessage=({data:ue})=>{try{const ae=jp(ue,g);if(k.emit("message",ae),ae.type==="ping"||ae.type==="pong"){k.emit(ae.type,!0,ae.payload),ae.type==="pong"?pe():s||($.send(fn(ae.payload?{type:ve.Pong,payload:ae.payload}:{type:ve.Pong})),k.emit("pong",!1,ae.payload));return}if(st)return;if(ae.type!==ve.ConnectionAck)throw new Error(`First message cannot be of type ${ae.type}`);clearTimeout(Fe),st=!0,k.emit("connected",$,ae.payload),I=!1,P=0,L([$,new Promise((O,M)=>A(M))])}catch(ae){$.onmessage=null,k.emit("error",ae),$.close(Ae.BadResponse,ha(ae instanceof Error?ae.message:new Error(ae).message,"Bad response"))}}})()));E.readyState===y.CLOSING&&await R;let w=()=>{};const F=new Promise(L=>w=L);return[E,w,Promise.race([F.then(()=>{if(!x){const L=()=>E.close(1e3,"Normal Closure");isFinite(o)&&o>0?setTimeout(()=>{!x&&E.readyState===y.OPEN&&L()},o):L()}}),R])]}function K(E){if(Gn(E)&&(Bp(E.code)||[Ae.InternalServerError,Ae.InternalClientError,Ae.BadRequest,Ae.BadResponse,Ae.Unauthorized,Ae.SubprotocolNotAcceptable,Ae.SubscriberAlreadyExists,Ae.TooManyInitialisationRequests].includes(E.code)))throw E;if(z)return!1;if(Gn(E)&&E.code===1e3)return x>0;if(!c||P>=c||f(E))throw E;return I=!0}return r||(async()=>{for(x++;;)try{const[,,E]=await j();await E}catch(E){try{if(!K(E))return}catch(R){return i==null?void 0:i(R)}}})(),{on:k.on,subscribe(E,R){const w=p();let F=!1,L=!1,_e=()=>{x--,F=!0};return(async()=>{for(x++;;)try{const[$,Fe,fe]=await j();if(F)return Fe();const pe=k.onMessage(w,st=>{switch(st.type){case ve.Next:{R.next(st.payload);return}case ve.Error:{L=!0,F=!0,R.error(st.payload),_e();return}case ve.Complete:{F=!0,_e();return}}});$.send(fn({id:w,type:ve.Subscribe,payload:E},m)),_e=()=>{!F&&$.readyState===y.OPEN&&$.send(fn({id:w,type:ve.Complete},m)),x--,F=!0,Fe()},await fe.finally(pe);return}catch($){if(!K($))return}})().then(()=>{L||R.complete()}).catch($=>{R.error($)}),()=>{F||_e()}},async dispose(){if(z=!0,N){const[E]=await N;E.close(1e3,"Normal Closure")}},terminate(){N&&k.emit("closed",{code:4499,reason:"Terminated",wasClean:!1})}}}function Gn(t){return gn(t)&&"code"in t&&"reason"in t}function Bp(t){return[1e3,1001,1006,1005,1012,1013,1013].includes(t)?!1:t>=1e3&&t<=1999}function zp(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}function Zr(){const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}const va=Symbol(),ma=Symbol();function Gp(){let t=!0;const e=[];let n=Zr();const r=Zr(),i=async function*(){for(;;)if(e.length>0)yield e.shift();else{const c=await Promise.race([n.promise,r.promise]);if(c===va)break;if(c!==ma)throw c}}();function o(u){t!==!1&&(e.push(u),n.resolve(ma),n=Zr())}const a=i.return.bind(i);i.return=(...u)=>(t=!1,r.resolve(va),a(...u));const s=i.throw.bind(i);return i.throw=u=>(t=!1,r.resolve(u),s(u)),{pushValue:o,asyncIterableIterator:i}}const cu=t=>{const{pushValue:e,asyncIterableIterator:n}=Gp(),r=t({next:a=>{e(a)},complete:()=>{n.return()},error:a=>{n.throw(a)}}),i=n.return;let o;return n.return=()=>(o===void 0&&(r(),o=i()),o),n};function Qp(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator&&Symbol.asyncIterator in t)}var Hp=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},lt=globalThis&&globalThis.__await||function(t){return this instanceof lt?(this.v=t,this):new lt(t)},$p=globalThis&&globalThis.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(a){return new Promise(function(s,u){a=t[o](a),i(s,u,a.done,a.value)})}}function i(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}},Jp=globalThis&&globalThis.__asyncGenerator||function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(d){r[d]&&(i[d]=function(h){return new Promise(function(p,m){o.push([d,h,p,m])>1||s(d,h)})})}function s(d,h){try{u(r[d](h))}catch(p){f(o[0][3],p)}}function u(d){d.value instanceof lt?Promise.resolve(d.value.v).then(c,l):f(o[0][2],d)}function c(d){s("next",d)}function l(d){s("throw",d)}function f(d,h){d(h),o.shift(),o.length&&s(o[0][0],o[0][1])}};const Wp=(t,e)=>{let n=!1;return Ye(t,{OperationDefinition(r){var i;e===((i=r.name)===null||i===void 0?void 0:i.value)&&r.operation==="subscription"&&(n=!0)}}),n},Yp=(t,e)=>(n,r)=>Hp(void 0,void 0,void 0,function*(){return(yield e(t.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},t.headers),r==null?void 0:r.headers)})).json()}),Zp=(t,e)=>{let n;try{return n=Up({url:t,connectionParams:e}),uu(n)}catch(r){console.error(`Error creating websocket client for:
|
|
140
|
-
${t}
|
|
141
|
-
|
|
142
|
-
${r}`)}},uu=t=>e=>cu(n=>t.subscribe(e,Object.assign(Object.assign({},n),{error:r=>{r instanceof Error?n.error(r):r instanceof CloseEvent?n.error(new Error(`Socket closed with event ${r.code} ${r.reason||""}`.trim())):n.error(new Error(r.map(({message:i})=>i).join(", ")))}}))),Xp=t=>e=>{const n=t.request(e);return cu(r=>n.subscribe(r).unsubscribe)},Kp=(t,e)=>function(n,r){return Jp(this,arguments,function*(){var i,o;const a=yield lt(e(t.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},t.headers),r==null?void 0:r.headers)}).then(c=>Pp(c,{multiple:!0})));if(!Qp(a))return yield lt(yield yield lt(a.json()));try{for(var s=$p(a),u;u=yield lt(s.next()),!u.done;){const c=u.value;if(c.some(l=>!l.json)){const l=c.map(f=>`Headers::
|
|
143
|
-
${f.headers}
|
|
144
|
-
|
|
145
|
-
Body::
|
|
146
|
-
${f.body}`);throw new Error(`Expected multipart chunks to be of json type. got:
|
|
147
|
-
${l}`)}yield yield lt(c.map(l=>l.body))}}catch(c){i={error:c}}finally{try{u&&!u.done&&(o=s.return)&&(yield lt(o.call(s)))}finally{if(i)throw i.error}}})},ed=t=>{if(t.wsClient)return uu(t.wsClient);if(t.subscriptionUrl)return Zp(t.subscriptionUrl,t.wsConnectionParams);const e=t.legacyClient||t.legacyWsClient;if(e)return Xp(e)};function td(t){let e;if(typeof window!="undefined"&&window.fetch&&(e=window.fetch),((t==null?void 0:t.enableIncrementalDelivery)===null||t.enableIncrementalDelivery!==!1)&&(t.enableIncrementalDelivery=!0),t.fetch&&(e=t.fetch),!e)throw Error("No valid fetcher implementation available");const n=Yp(t,e),r=ed(t),i=t.enableIncrementalDelivery?Kp(t,e):n;return(o,a)=>{if(o.operationName==="IntrospectionQuery")return(t.schemaFetcher||n)(o,a);if(Wp(a==null?void 0:a.documentAST,o.operationName)){if(!r)throw Error(`Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. ${t.subscriptionUrl?`Provided URL ${t.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."}`);return r(o)}return i(o,a)}}var ga;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ga||(ga={}));var lr;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(lr||(lr={}));var nt;(function(t){function e(r,i){return r===Number.MAX_VALUE&&(r=lr.MAX_VALUE),i===Number.MAX_VALUE&&(i=lr.MAX_VALUE),{line:r,character:i}}t.create=e;function n(r){var i=r;return T.objectLiteral(i)&&T.uinteger(i.line)&&T.uinteger(i.character)}t.is=n})(nt||(nt={}));var ke;(function(t){function e(r,i,o,a){if(T.uinteger(r)&&T.uinteger(i)&&T.uinteger(o)&&T.uinteger(a))return{start:nt.create(r,i),end:nt.create(o,a)};if(nt.is(r)&&nt.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments["+r+", "+i+", "+o+", "+a+"]")}t.create=e;function n(r){var i=r;return T.objectLiteral(i)&&nt.is(i.start)&&nt.is(i.end)}t.is=n})(ke||(ke={}));var Ii;(function(t){function e(r,i){return{uri:r,range:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.string(i.uri)||T.undefined(i.uri))}t.is=n})(Ii||(Ii={}));var ya;(function(t){function e(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.targetRange)&&T.string(i.targetUri)&&(ke.is(i.targetSelectionRange)||T.undefined(i.targetSelectionRange))&&(ke.is(i.originSelectionRange)||T.undefined(i.originSelectionRange))}t.is=n})(ya||(ya={}));var Ri;(function(t){function e(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}t.create=e;function n(r){var i=r;return T.numberRange(i.red,0,1)&&T.numberRange(i.green,0,1)&&T.numberRange(i.blue,0,1)&&T.numberRange(i.alpha,0,1)}t.is=n})(Ri||(Ri={}));var ba;(function(t){function e(r,i){return{range:r,color:i}}t.create=e;function n(r){var i=r;return ke.is(i.range)&&Ri.is(i.color)}t.is=n})(ba||(ba={}));var _a;(function(t){function e(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}t.create=e;function n(r){var i=r;return T.string(i.label)&&(T.undefined(i.textEdit)||bt.is(i))&&(T.undefined(i.additionalTextEdits)||T.typedArray(i.additionalTextEdits,bt.is))}t.is=n})(_a||(_a={}));var Ea;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Ea||(Ea={}));var Ta;(function(t){function e(r,i,o,a,s){var u={startLine:r,endLine:i};return T.defined(o)&&(u.startCharacter=o),T.defined(a)&&(u.endCharacter=a),T.defined(s)&&(u.kind=s),u}t.create=e;function n(r){var i=r;return T.uinteger(i.startLine)&&T.uinteger(i.startLine)&&(T.undefined(i.startCharacter)||T.uinteger(i.startCharacter))&&(T.undefined(i.endCharacter)||T.uinteger(i.endCharacter))&&(T.undefined(i.kind)||T.string(i.kind))}t.is=n})(Ta||(Ta={}));var Fi;(function(t){function e(r,i){return{location:r,message:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&Ii.is(i.location)&&T.string(i.message)}t.is=n})(Fi||(Fi={}));var ka;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})(ka||(ka={}));var wa;(function(t){t.Unnecessary=1,t.Deprecated=2})(wa||(wa={}));var Sa;(function(t){function e(n){var r=n;return r!=null&&T.string(r.href)}t.is=e})(Sa||(Sa={}));var fr;(function(t){function e(r,i,o,a,s,u){var c={range:r,message:i};return T.defined(o)&&(c.severity=o),T.defined(a)&&(c.code=a),T.defined(s)&&(c.source=s),T.defined(u)&&(c.relatedInformation=u),c}t.create=e;function n(r){var i,o=r;return T.defined(o)&&ke.is(o.range)&&T.string(o.message)&&(T.number(o.severity)||T.undefined(o.severity))&&(T.integer(o.code)||T.string(o.code)||T.undefined(o.code))&&(T.undefined(o.codeDescription)||T.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(T.string(o.source)||T.undefined(o.source))&&(T.undefined(o.relatedInformation)||T.typedArray(o.relatedInformation,Fi.is))}t.is=n})(fr||(fr={}));var Sn;(function(t){function e(r,i){for(var o=[],a=2;a<arguments.length;a++)o[a-2]=arguments[a];var s={title:r,command:i};return T.defined(o)&&o.length>0&&(s.arguments=o),s}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.title)&&T.string(i.command)}t.is=n})(Sn||(Sn={}));var bt;(function(t){function e(o,a){return{range:o,newText:a}}t.replace=e;function n(o,a){return{range:{start:o,end:o},newText:a}}t.insert=n;function r(o){return{range:o,newText:""}}t.del=r;function i(o){var a=o;return T.objectLiteral(a)&&T.string(a.newText)&&ke.is(a.range)}t.is=i})(bt||(bt={}));var Wt;(function(t){function e(r,i,o){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}t.create=e;function n(r){var i=r;return i!==void 0&&T.objectLiteral(i)&&T.string(i.label)&&(T.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(T.string(i.description)||i.description===void 0)}t.is=n})(Wt||(Wt={}));var Se;(function(t){function e(n){var r=n;return typeof r=="string"}t.is=e})(Se||(Se={}));var yt;(function(t){function e(o,a,s){return{range:o,newText:a,annotationId:s}}t.replace=e;function n(o,a,s){return{range:{start:o,end:o},newText:a,annotationId:s}}t.insert=n;function r(o,a){return{range:o,newText:"",annotationId:a}}t.del=r;function i(o){var a=o;return bt.is(a)&&(Wt.is(a.annotationId)||Se.is(a.annotationId))}t.is=i})(yt||(yt={}));var pr;(function(t){function e(r,i){return{textDocument:r,edits:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&dr.is(i.textDocument)&&Array.isArray(i.edits)}t.is=n})(pr||(pr={}));var xn;(function(t){function e(r,i,o){var a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="create"&&T.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(xn||(xn={}));var Nn;(function(t){function e(r,i,o,a){var s={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(s.options=o),a!==void 0&&(s.annotationId=a),s}t.create=e;function n(r){var i=r;return i&&i.kind==="rename"&&T.string(i.oldUri)&&T.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||T.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||T.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(Nn||(Nn={}));var Dn;(function(t){function e(r,i,o){var a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}t.create=e;function n(r){var i=r;return i&&i.kind==="delete"&&T.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||T.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||T.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Se.is(i.annotationId))}t.is=n})(Dn||(Dn={}));var Li;(function(t){function e(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return T.string(i.kind)?xn.is(i)||Nn.is(i)||Dn.is(i):pr.is(i)}))}t.is=e})(Li||(Li={}));var Qn=function(){function t(e,n){this.edits=e,this.changeAnnotations=n}return t.prototype.insert=function(e,n,r){var i,o;if(r===void 0?i=bt.insert(e,n):Se.is(r)?(o=r,i=yt.insert(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=yt.insert(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.replace=function(e,n,r){var i,o;if(r===void 0?i=bt.replace(e,n):Se.is(r)?(o=r,i=yt.replace(e,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=yt.replace(e,n,o)),this.edits.push(i),o!==void 0)return o},t.prototype.delete=function(e,n){var r,i;if(n===void 0?r=bt.del(e):Se.is(n)?(i=n,r=yt.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=yt.del(e,i)),this.edits.push(r),i!==void 0)return i},t.prototype.add=function(e){this.edits.push(e)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(e){if(e===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),xa=function(){function t(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(e,n){var r;if(Se.is(e)?r=e:(r=this.nextId(),n=e),this._annotations[r]!==void 0)throw new Error("Id "+r+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+r);return this._annotations[r]=n,this._size++,r},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();(function(){function t(e){var n=this;this._textEditChanges=Object.create(null),e!==void 0?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new xa(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(r){if(pr.is(r)){var i=new Qn(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(r){var i=new Qn(e.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(e){if(dr.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Qn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[e];if(!r){var i=[];this._workspaceEdit.changes[e]=i,r=new Qn(i),this._textEditChanges[e]=r}return r}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new xa,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Wt.is(n)||Se.is(n)?i=n:r=n;var o,a;if(i===void 0?o=xn.create(e,r):(a=Se.is(i)?i:this._changeAnnotations.manage(i),o=xn.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t.prototype.renameFile=function(e,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;Wt.is(r)||Se.is(r)?o=r:i=r;var a,s;if(o===void 0?a=Nn.create(e,n,i):(s=Se.is(o)?o:this._changeAnnotations.manage(o),a=Nn.create(e,n,i,s)),this._workspaceEdit.documentChanges.push(a),s!==void 0)return s},t.prototype.deleteFile=function(e,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;Wt.is(n)||Se.is(n)?i=n:r=n;var o,a;if(i===void 0?o=Dn.create(e,r):(a=Se.is(i)?i:this._changeAnnotations.manage(i),o=Dn.create(e,r,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},t})();var Na;(function(t){function e(r){return{uri:r}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)}t.is=n})(Na||(Na={}));var Da;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.integer(i.version)}t.is=n})(Da||(Da={}));var dr;(function(t){function e(r,i){return{uri:r,version:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&(i.version===null||T.integer(i.version))}t.is=n})(dr||(dr={}));var Aa;(function(t){function e(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.string(i.uri)&&T.string(i.languageId)&&T.integer(i.version)&&T.string(i.text)}t.is=n})(Aa||(Aa={}));var An;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(An||(An={}));(function(t){function e(n){var r=n;return r===t.PlainText||r===t.Markdown}t.is=e})(An||(An={}));var qi;(function(t){function e(n){var r=n;return T.objectLiteral(n)&&An.is(r.kind)&&T.string(r.value)}t.is=e})(qi||(qi={}));var Oa;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Oa||(Oa={}));var Ca;(function(t){t.PlainText=1,t.Snippet=2})(Ca||(Ca={}));var Ia;(function(t){t.Deprecated=1})(Ia||(Ia={}));var Ra;(function(t){function e(r,i,o){return{newText:r,insert:i,replace:o}}t.create=e;function n(r){var i=r;return i&&T.string(i.newText)&&ke.is(i.insert)&&ke.is(i.replace)}t.is=n})(Ra||(Ra={}));var Fa;(function(t){t.asIs=1,t.adjustIndentation=2})(Fa||(Fa={}));var La;(function(t){function e(n){return{label:n}}t.create=e})(La||(La={}));var qa;(function(t){function e(n,r){return{items:n||[],isIncomplete:!!r}}t.create=e})(qa||(qa={}));var hr;(function(t){function e(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=e;function n(r){var i=r;return T.string(i)||T.objectLiteral(i)&&T.string(i.language)&&T.string(i.value)}t.is=n})(hr||(hr={}));var Pa;(function(t){function e(n){var r=n;return!!r&&T.objectLiteral(r)&&(qi.is(r.contents)||hr.is(r.contents)||T.typedArray(r.contents,hr.is))&&(n.range===void 0||ke.is(n.range))}t.is=e})(Pa||(Pa={}));var Ma;(function(t){function e(n,r){return r?{label:n,documentation:r}:{label:n}}t.create=e})(Ma||(Ma={}));var Va;(function(t){function e(n,r){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var a={label:n};return T.defined(r)&&(a.documentation=r),T.defined(i)?a.parameters=i:a.parameters=[],a}t.create=e})(Va||(Va={}));var ja;(function(t){t.Text=1,t.Read=2,t.Write=3})(ja||(ja={}));var Ua;(function(t){function e(n,r){var i={range:n};return T.number(r)&&(i.kind=r),i}t.create=e})(Ua||(Ua={}));var Ba;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ba||(Ba={}));var za;(function(t){t.Deprecated=1})(za||(za={}));var Ga;(function(t){function e(n,r,i,o,a){var s={name:n,kind:r,location:{uri:o,range:i}};return a&&(s.containerName=a),s}t.create=e})(Ga||(Ga={}));var Qa;(function(t){function e(r,i,o,a,s,u){var c={name:r,detail:i,kind:o,range:a,selectionRange:s};return u!==void 0&&(c.children=u),c}t.create=e;function n(r){var i=r;return i&&T.string(i.name)&&T.number(i.kind)&&ke.is(i.range)&&ke.is(i.selectionRange)&&(i.detail===void 0||T.string(i.detail))&&(i.deprecated===void 0||T.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}t.is=n})(Qa||(Qa={}));var Ha;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ha||(Ha={}));var $a;(function(t){function e(r,i){var o={diagnostics:r};return i!=null&&(o.only=i),o}t.create=e;function n(r){var i=r;return T.defined(i)&&T.typedArray(i.diagnostics,fr.is)&&(i.only===void 0||T.typedArray(i.only,T.string))}t.is=n})($a||($a={}));var Ja;(function(t){function e(r,i,o){var a={title:r},s=!0;return typeof i=="string"?(s=!1,a.kind=i):Sn.is(i)?a.command=i:a.edit=i,s&&o!==void 0&&(a.kind=o),a}t.create=e;function n(r){var i=r;return i&&T.string(i.title)&&(i.diagnostics===void 0||T.typedArray(i.diagnostics,fr.is))&&(i.kind===void 0||T.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Sn.is(i.command))&&(i.isPreferred===void 0||T.boolean(i.isPreferred))&&(i.edit===void 0||Li.is(i.edit))}t.is=n})(Ja||(Ja={}));var Wa;(function(t){function e(r,i){var o={range:r};return T.defined(i)&&(o.data=i),o}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.undefined(i.command)||Sn.is(i.command))}t.is=n})(Wa||(Wa={}));var Ya;(function(t){function e(r,i){return{tabSize:r,insertSpaces:i}}t.create=e;function n(r){var i=r;return T.defined(i)&&T.uinteger(i.tabSize)&&T.boolean(i.insertSpaces)}t.is=n})(Ya||(Ya={}));var Za;(function(t){function e(r,i,o){return{range:r,target:i,data:o}}t.create=e;function n(r){var i=r;return T.defined(i)&&ke.is(i.range)&&(T.undefined(i.target)||T.string(i.target))}t.is=n})(Za||(Za={}));var Xa;(function(t){function e(r,i){return{range:r,parent:i}}t.create=e;function n(r){var i=r;return i!==void 0&&ke.is(i.range)&&(i.parent===void 0||t.is(i.parent))}t.is=n})(Xa||(Xa={}));var Ka;(function(t){function e(o,a,s,u){return new nd(o,a,s,u)}t.create=e;function n(o){var a=o;return!!(T.defined(a)&&T.string(a.uri)&&(T.undefined(a.languageId)||T.string(a.languageId))&&T.uinteger(a.lineCount)&&T.func(a.getText)&&T.func(a.positionAt)&&T.func(a.offsetAt))}t.is=n;function r(o,a){for(var s=o.getText(),u=i(a,function(p,m){var g=p.range.start.line-m.range.start.line;return g===0?p.range.start.character-m.range.start.character:g}),c=s.length,l=u.length-1;l>=0;l--){var f=u[l],d=o.offsetAt(f.range.start),h=o.offsetAt(f.range.end);if(h<=c)s=s.substring(0,d)+f.newText+s.substring(h,s.length);else throw new Error("Overlapping edit");c=d}return s}t.applyEdits=r;function i(o,a){if(o.length<=1)return o;var s=o.length/2|0,u=o.slice(0,s),c=o.slice(s);i(u,a),i(c,a);for(var l=0,f=0,d=0;l<u.length&&f<c.length;){var h=a(u[l],c[f]);h<=0?o[d++]=u[l++]:o[d++]=c[f++]}for(;l<u.length;)o[d++]=u[l++];for(;f<c.length;)o[d++]=c[f++];return o}})(Ka||(Ka={}));var nd=function(){function t(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content},t.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var e=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(e.push(i),r=!1);var o=n.charAt(i);r=o==="\r"||o===`
|
|
148
|
-
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
|
|
149
|
-
`&&i++}r&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},t.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return nt.create(0,e);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}var a=r-1;return nt.create(a,e-n[a])},t.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var r=n[e.line],i=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,i),r)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),T;(function(t){var e=Object.prototype.toString;function n(h){return typeof h!="undefined"}t.defined=n;function r(h){return typeof h=="undefined"}t.undefined=r;function i(h){return h===!0||h===!1}t.boolean=i;function o(h){return e.call(h)==="[object String]"}t.string=o;function a(h){return e.call(h)==="[object Number]"}t.number=a;function s(h,p,m){return e.call(h)==="[object Number]"&&p<=h&&h<=m}t.numberRange=s;function u(h){return e.call(h)==="[object Number]"&&-2147483648<=h&&h<=2147483647}t.integer=u;function c(h){return e.call(h)==="[object Number]"&&0<=h&&h<=2147483647}t.uinteger=c;function l(h){return e.call(h)==="[object Function]"}t.func=l;function f(h){return h!==null&&typeof h=="object"}t.objectLiteral=f;function d(h,p){return Array.isArray(h)&&h.every(p)}t.typedArray=d})(T||(T={}));class rd{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let o=null,a=null;return typeof n=="string"?(a=new RegExp(n,i?"i":"g").test(this._sourceText.substr(this._pos,n.length)),o=n):n instanceof RegExp&&(a=this._sourceText.slice(this._pos).match(n),o=a&&a[0]),a!=null&&(typeof n=="string"||a instanceof Array&&this._sourceText.startsWith(a[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),a):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let o=0;for(;i.length>o;)i.charCodeAt(o)===9?r+=2:r++,o++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof e=="string"?r=n===e:r=e instanceof RegExp?e.test(n):e(n),r}}function he(t){return{ofRule:t}}function J(t,e){return{ofRule:t,isList:!0,separator:e}}function id(t,e){const n=t.match;return t.match=r=>{let i=!1;return n&&(i=n(r)),i&&e.every(o=>o.match&&!o.match(r))},t}function Xr(t,e){return{style:e,match:n=>n.kind===t}}function Q(t,e){return{style:e||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===t}}const od=t=>t===" "||t===" "||t===","||t===`
|
|
150
|
-
`||t==="\r"||t==="\uFEFF"||t==="\xA0",ad={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},sd={Document:[J("Definition")],Definition(t){switch(t.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return v.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Te("query"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],Mutation:[Te("mutation"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],Subscription:[Te("subscription"),he(te("def")),he("VariableDefinitions"),J("Directive"),"SelectionSet"],VariableDefinitions:[Q("("),J("VariableDefinition"),Q(")")],VariableDefinition:["Variable",Q(":"),"Type",he("DefaultValue")],Variable:[Q("$","variable"),te("variable")],DefaultValue:[Q("="),"Value"],SelectionSet:[Q("{"),J("Selection"),Q("}")],Selection(t,e){return t.value==="..."?e.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":e.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[te("property"),Q(":"),te("qualifier"),he("Arguments"),J("Directive"),he("SelectionSet")],Field:[te("property"),he("Arguments"),J("Directive"),he("SelectionSet")],Arguments:[Q("("),J("Argument"),Q(")")],Argument:[te("attribute"),Q(":"),"Value"],FragmentSpread:[Q("..."),te("def"),J("Directive")],InlineFragment:[Q("..."),he("TypeCondition"),J("Directive"),"SelectionSet"],FragmentDefinition:[Te("fragment"),he(id(te("def"),[Te("on")])),"TypeCondition",J("Directive"),"SelectionSet"],TypeCondition:[Te("on"),"NamedType"],Value(t){switch(t.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(t.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(t.value){case"true":case"false":return"BooleanValue"}return t.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Xr("Number","number")],StringValue:[{style:"string",match:t=>t.kind==="String",update(t,e){e.value.startsWith('"""')&&(t.inBlockstring=!e.value.slice(3).endsWith('"""'))}}],BooleanValue:[Xr("Name","builtin")],NullValue:[Xr("Name","keyword")],EnumValue:[te("string-2")],ListValue:[Q("["),J("Value"),Q("]")],ObjectValue:[Q("{"),J("ObjectField"),Q("}")],ObjectField:[te("attribute"),Q(":"),"Value"],Type(t){return t.value==="["?"ListType":"NonNullType"},ListType:[Q("["),"Type",Q("]"),he(Q("!"))],NonNullType:["NamedType",he(Q("!"))],NamedType:[cd("atom")],Directive:[Q("@","meta"),te("meta"),he("Arguments")],DirectiveDef:[Te("directive"),Q("@","meta"),te("meta"),he("ArgumentsDef"),Te("on"),J("DirectiveLocation",Q("|"))],InterfaceDef:[Te("interface"),te("atom"),he("Implements"),J("Directive"),Q("{"),J("FieldDef"),Q("}")],Implements:[Te("implements"),J("NamedType",Q("&"))],DirectiveLocation:[te("string-2")],SchemaDef:[Te("schema"),J("Directive"),Q("{"),J("OperationTypeDef"),Q("}")],OperationTypeDef:[te("keyword"),Q(":"),te("atom")],ScalarDef:[Te("scalar"),te("atom"),J("Directive")],ObjectTypeDef:[Te("type"),te("atom"),he("Implements"),J("Directive"),Q("{"),J("FieldDef"),Q("}")],FieldDef:[te("property"),he("ArgumentsDef"),Q(":"),"Type",J("Directive")],ArgumentsDef:[Q("("),J("InputValueDef"),Q(")")],InputValueDef:[te("attribute"),Q(":"),"Type",he("DefaultValue"),J("Directive")],UnionDef:[Te("union"),te("atom"),J("Directive"),Q("="),J("UnionMember",Q("|"))],UnionMember:["NamedType"],EnumDef:[Te("enum"),te("atom"),J("Directive"),Q("{"),J("EnumValueDef"),Q("}")],EnumValueDef:[te("string-2"),J("Directive")],InputDef:[Te("input"),te("atom"),J("Directive"),Q("{"),J("InputValueDef"),Q("}")],ExtendDef:[Te("extend"),"ObjectTypeDef"]};function Te(t){return{style:"keyword",match:e=>e.kind==="Name"&&e.value===t}}function te(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.name=n.value}}}function cd(t){return{style:t,match:e=>e.kind==="Name",update(e,n){e.prevState&&e.prevState.prevState&&(e.name=n.value,e.prevState.prevState.type=n.value)}}}function ud(t={eatWhitespace:e=>e.eatWhile(od),lexRules:ad,parseRules:sd,editorConfig:{}}){return{startState(){const e={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return vn(t.parseRules,e,v.DOCUMENT),e},token(e,n){return ld(e,n,t)}}}function ld(t,e,n){if(e.inBlockstring)return t.match(/.*"""/)?(e.inBlockstring=!1,"string"):(t.skipToEnd(),"string");const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;if(e.rule&&e.rule.length===0?go(e):e.needsAdvance&&(e.needsAdvance=!1,Pi(e,!0)),t.sol()){const c=a&&a.tabSize||2;e.indentLevel=Math.floor(t.indentation()/c)}if(o(t))return"ws";const s=pd(r,t);if(!s)return t.match(/\S+/)||t.match(/\s/),vn(Kr,e,"Invalid"),"invalidchar";if(s.kind==="Comment")return vn(Kr,e,"Comment"),"comment";const u=es({},e);if(s.kind==="Punctuation"){if(/^[{([]/.test(s.value))e.indentLevel!==void 0&&(e.levels=(e.levels||[]).concat(e.indentLevel+1));else if(/^[})\]]/.test(s.value)){const c=e.levels=(e.levels||[]).slice(0,-1);e.indentLevel&&c.length>0&&c[c.length-1]<e.indentLevel&&(e.indentLevel=c[c.length-1])}}for(;e.rule;){let c=typeof e.rule=="function"?e.step===0?e.rule(s,t):null:e.rule[e.step];if(e.needsSeperator&&(c=c&&(c==null?void 0:c.separator)),c){if(c.ofRule&&(c=c.ofRule),typeof c=="string"){vn(i,e,c);continue}if(c.match&&c.match(s))return c.update&&c.update(e,s),s.kind==="Punctuation"?Pi(e,!0):e.needsAdvance=!0,c.style}fd(e)}return es(e,u),vn(Kr,e,"Invalid"),"invalidchar"}function es(t,e){const n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}const Kr={Invalid:[],Comment:[]};function vn(t,e,n){if(!t[n])throw new TypeError("Unknown rule: "+n);e.prevState=Object.assign({},e),e.kind=n,e.name=null,e.type=null,e.rule=t[n],e.step=0,e.needsSeperator=!1}function go(t){!t.prevState||(t.kind=t.prevState.kind,t.name=t.prevState.name,t.type=t.prevState.type,t.rule=t.prevState.rule,t.step=t.prevState.step,t.needsSeperator=t.prevState.needsSeperator,t.prevState=t.prevState.prevState)}function Pi(t,e){if(ts(t)&&t.rule){const n=t.rule[t.step];if(n.separator){const r=n.separator;if(t.needsSeperator=!t.needsSeperator,!t.needsSeperator&&r.ofRule)return}if(e)return}for(t.needsSeperator=!1,t.step++;t.rule&&!(Array.isArray(t.rule)&&t.step<t.rule.length);)go(t),t.rule&&(ts(t)?t.rule&&t.rule[t.step].separator&&(t.needsSeperator=!t.needsSeperator):(t.needsSeperator=!1,t.step++))}function ts(t){const e=Array.isArray(t.rule)&&typeof t.rule[t.step]!="string"&&t.rule[t.step];return e&&e.isList}function fd(t){for(;t.rule&&!(Array.isArray(t.rule)&&t.rule[t.step].ofRule);)go(t);t.rule&&Pi(t,!1)}function pd(t,e){const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=e.match(t[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}const dd={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},i7=Object.assign(Object.assign({},v),dd);var Fr={exports:{}};function lu(t,e){if(t!=null)return t;var n=new Error(e!==void 0?e:"Got unexpected "+t);throw n.framesToPop=1,n}Fr.exports=lu;Fr.exports.default=lu;Object.defineProperty(Fr.exports,"__esModule",{value:!0});const ns=fc(Fr.exports),o7=(t,e)=>{if(!e)return[];let n;try{n=It(t)}catch(r){return[]}return fu(n,e)},fu=(t,e)=>{if(!e)return[];const n=new Map,r=new Set;Ye(t,{FragmentDefinition(a){n.set(a.name.value,!0)},FragmentSpread(a){r.has(a.name.value)||r.add(a.name.value)}});const i=new Set;r.forEach(a=>{!n.has(a)&&e.has(a)&&i.add(ns(e.get(a)))});const o=[];return i.forEach(a=>{Ye(a,{FragmentSpread(s){!r.has(s.name.value)&&e.get(s.name.value)&&(i.add(ns(e.get(s.name.value))),r.add(s.name.value))}}),n.has(a.name.value)||o.push(a)}),o};class yo{constructor(e,n){this.containsPosition=r=>this.start.line===r.line?this.start.character<=r.character:this.end.line===r.line?this.end.character>=r.character:this.start.line<=r.line&&this.end.line>=r.line,this.start=e,this.end=n}setStart(e,n){this.start=new Ft(e,n)}setEnd(e,n){this.end=new Ft(e,n)}}class Ft{constructor(e,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=e,this.character=n}setLine(e){this.line=e}setCharacter(e){this.character=e}}function Mi(t,e){const n=`
|
|
151
|
-
`,r=t.slice(0,e),i=r.split(n).length-1,o=r.lastIndexOf(n);return new Ft(i,e-o-1)}function hd(t,e){const n=Mi(t,e.start),r=Mi(t,e.end);return new yo(n,r)}const vd=[Yc,Zc,Xc,Kc,eu,tu,uo,lo,fo,nu,po,vo];function md(t,e,n,r,i){const o=ru.filter(s=>!(s===Gc||s===Uc||r&&s===zc));return n&&Array.prototype.push.apply(o,n),i&&Array.prototype.push.apply(o,vd),au(t,e,o).filter(s=>{if(s.message.indexOf("Unknown directive")!==-1&&s.nodes){const u=s.nodes[0];if(u&&u.kind===v.DIRECTIVE){const c=u.name.value;if(c==="arguments"||c==="argumentDefinitions")return!1}}return!0})}function gd(t,e){const n=Object.create(null);return e.definitions.forEach(r=>{if(r.kind==="OperationDefinition"){const i=r.variableDefinitions;i&&i.forEach(({variable:o,type:a})=>{const s=Ue(t,a);s?n[o.name.value]=s:a.kind===v.NAMED_TYPE&&a.name.value==="Float"&&(n[o.name.value]=Ic)})}}),n}function yd(t,e){const n=e?gd(e,t):void 0,r=[];return Ye(t,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function or(t,e){if(!!e)try{const n=It(e);return Object.assign(Object.assign({},yd(n,t)),{documentAST:n})}catch(n){return}}const a7=or;var pu=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})};const du="GraphQL";function bo(t,e){if(!t)throw new Error(e)}function Ln(t,e){const n=e.loc;return bo(n,"Expected ASTNode to have a location."),hd(t,n)}function hu(t,e){const n=e.loc;return bo(n,"Expected ASTNode to have a location."),Mi(t,n.start)}function s7(t,e,n){return pu(this,void 0,void 0,function*(){const r=e.name.value,i=n.filter(({definition:a})=>a.name&&a.name.value===r);if(i.length===0)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map(({filePath:a,content:s,definition:u})=>bd(a||"",s,u));return{definitions:o,queryRange:o.map(a=>Ln(t,e))}})}function c7(t,e,n){return pu(this,void 0,void 0,function*(){const r=e.name.value,i=n.filter(({definition:a})=>a.name.value===r);if(i.length===0)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map(({filePath:a,content:s,definition:u})=>vu(a||"",s,u));return{definitions:o,queryRange:o.map(a=>Ln(t,e))}})}function u7(t,e,n){return{definitions:[vu(t,e,n)],queryRange:n.name?[Ln(e,n.name)]:[]}}function vu(t,e,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:t,position:hu(e,n),range:Ln(e,n),name:r.value||"",language:du,projectRoot:t}}function bd(t,e,n){const r=n.name;return bo(r,"Expected ASTNode to have a Name."),{path:t,position:hu(e,n),range:Ln(e,n),name:r.value||"",language:du,projectRoot:t}}const Hn={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},Vi={[Hn.Error]:1,[Hn.Warning]:2,[Hn.Information]:3,[Hn.Hint]:4},vr=(t,e)=>{if(!t)throw new Error(e)};function l7(t,e=null,n,r,i){let o=null;i&&(typeof i=="string"?t+=`
|
|
152
|
-
|
|
153
|
-
`+i:t+=`
|
|
154
|
-
|
|
155
|
-
`+i.reduce((a,s)=>(a+=ie(s)+`
|
|
156
|
-
|
|
157
|
-
`,a),""));try{o=It(t)}catch(a){const s=Ed(a.locations[0],t);return[{severity:Vi.Error,message:a.message,source:"GraphQL: Syntax",range:s}]}return _d(o,e,n,r)}function _d(t,e=null,n,r){if(!e)return[];const i=rs(md(e,t,n,r),a=>is(a,Vi.Error,"Validation")),o=rs(au(e,t,[Cp]),a=>is(a,Vi.Warning,"Deprecation"));return i.concat(o)}function rs(t,e){return Array.prototype.concat.apply([],t.map(e))}function is(t,e,n){if(!t.nodes)return[];const r=[];return t.nodes.forEach(i=>{const o=i.kind!=="Variable"&&"name"in i&&i.name!==void 0?i.name:"variable"in i&&i.variable!==void 0?i.variable:i;if(o){vr(t.locations,"GraphQL validation error requires locations.");const a=t.locations[0],s=Td(o),u=a.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:t.message,severity:e,range:new yo(new Ft(a.line-1,a.column-1),new Ft(a.line-1,u))})}}),r}function Ed(t,e){const n=ud(),r=n.startState(),i=e.split(`
|
|
158
|
-
`);vr(i.length>=t.line,"Query text must have more lines than where the error happened");let o=null;for(let c=0;c<t.line;c++)for(o=new rd(i[c]);!o.eol()&&n.token(o,r)!=="invalidchar";);vr(o,"Expected Parser stream to be available.");const a=t.line-1,s=o.getStartOfToken(),u=o.getCurrentPosition();return new yo(new Ft(a,s),new Ft(a,u))}function Td(t){const n=t.loc;return vr(n,"Expected ASTNode to have a location."),n}const f7={Created:1,Changed:2,Deleted:3};var os;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(os||(os={}));var kd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wd=function(t){kd(e,t);function e(n){var r=t.call(this,n)||this;return r._onClick=function(){r.props.isRunning?r.props.onStop():r.props.onRun()},r._onOptionSelected=function(i){r.setState({optionsOpen:!1}),r.props.onRun(i.name&&i.name.value)},r._onOptionsOpen=function(i){var o=!0,a=i.currentTarget;r.setState({highlight:null,optionsOpen:!0});var s=function(u){var c;if(o&&u.target===a)o=!1;else{document.removeEventListener("mouseup",s),s=null;var l=u.currentTarget&&((c=a.parentNode)===null||c===void 0?void 0:c.compareDocumentPosition(u.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;l||r.setState({optionsOpen:!1})}};document.addEventListener("mouseup",s)},r.state={optionsOpen:!1,highlight:null},r}return e.prototype.render=function(){var n=this,r=this.props.operations||[],i=this.state.optionsOpen,o=r&&r.length>1,a=null;if(o&&i){var s=this.state.highlight;a=b("ul",{className:"execute-options",children:r.map(function(f,d){var h=f.name?f.name.value:"<Unnamed "+f.operation+">";return b("li",{className:f===s?"selected":void 0,onMouseOver:function(){return n.setState({highlight:f})},onMouseOut:function(){return n.setState({highlight:null})},onMouseUp:function(){return n._onOptionSelected(f)},children:h},h+"-"+d)})})}var u;(this.props.isRunning||!o)&&(u=this._onClick);var c=function(){};!this.props.isRunning&&o&&!i&&(c=this._onOptionsOpen);var l=this.props.isRunning?b("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):b("path",{d:"M 11 9 L 24 16 L 11 23 z"});return V("div",{className:"execute-button-wrap",children:[b("button",{type:"button",className:"execute-button",onMouseDown:c,onClick:u,title:"Execute Query (Ctrl-Enter)",children:b("svg",{width:"34",height:"34",children:l})}),a]})},e}(be.Component),Sd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function as(t){if(t.type==="string"){var e=t.string.slice(1).slice(0,-1).trim();try{var n=window.location;return new URL(e,n.protocol+"//"+n.host)}catch(r){return}}}function xd(t){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(t.pathname)}var Nd=function(t){Sd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._node=null,n.state={width:null,height:null,src:null,mime:null},n}return e.shouldRender=function(n){var r=as(n);return r?xd(r):!1},e.prototype.componentDidMount=function(){this._updateMetadata()},e.prototype.componentDidUpdate=function(){this._updateMetadata()},e.prototype.render=function(){var n=this,r,i=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),i=b("div",{children:o})}return V("div",{children:[b("img",{onLoad:function(){return n._updateMetadata()},ref:function(a){n._node=a},src:(r=as(this.props.token))===null||r===void 0?void 0:r.href}),i]})},e.prototype._updateMetadata=function(){var n=this;if(!!this._node){var r=this._node.naturalWidth,i=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(a){n.setState({mime:a.headers.get("Content-Type")})})),(r!==this.state.width||i!==this.state.height)&&this.setState({height:i,width:r})}},e}(be.Component),Dd=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(t){Dd(e,t);function e(n){var r=t.call(this,n)||this;return r.handleClick=function(){try{r.props.onClick(),r.setState({error:null})}catch(i){r.setState({error:i})}},r.state={error:null},r}return e.prototype.render=function(){var n=this.state.error;return b("button",{className:"toolbar-button"+(n?" error":""),onClick:this.handleClick,title:n?n.message:this.props.title,"aria-invalid":n?"true":"false",children:this.props.label})},e}(be.Component);function Ad(t){var e=t.children;return b("div",{className:"toolbar-button-group",children:e})}var Od=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cd=function(t){Od(e,t);function e(n){var r=t.call(this,n)||this;return r._node=null,r._listener=null,r.handleOpen=function(i){ji(i),r.setState({visible:!0}),r._subscribe()},r.state={visible:!1},r}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,r=this.state.visible;return V("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:ji,ref:function(i){i&&(n._node=i)},title:this.props.title,children:[this.props.label,b("svg",{width:"14",height:"8",children:b("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})}),b("ul",{className:"toolbar-menu-items"+(r?" open":""),children:this.props.children})]})},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(n.preventDefault(),this.setState({visible:!1}),this._release())},e}(be.Component),Id=function(t){var e=t.onSelect,n=t.title,r=t.label;return b("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:ji,onMouseUp:e,title:n,children:r})};function ji(t){t.preventDefault()}var mu={exports:{}},X={},_o={exports:{}};const Rd="\xC1",Fd="\xE1",Ld="\u0102",qd="\u0103",Pd="\u223E",Md="\u223F",Vd="\u223E\u0333",jd="\xC2",Ud="\xE2",Bd="\xB4",zd="\u0410",Gd="\u0430",Qd="\xC6",Hd="\xE6",$d="\u2061",Jd="\u{1D504}",Wd="\u{1D51E}",Yd="\xC0",Zd="\xE0",Xd="\u2135",Kd="\u2135",eh="\u0391",th="\u03B1",nh="\u0100",rh="\u0101",ih="\u2A3F",oh="&",ah="&",sh="\u2A55",ch="\u2A53",uh="\u2227",lh="\u2A5C",fh="\u2A58",ph="\u2A5A",dh="\u2220",hh="\u29A4",vh="\u2220",mh="\u29A8",gh="\u29A9",yh="\u29AA",bh="\u29AB",_h="\u29AC",Eh="\u29AD",Th="\u29AE",kh="\u29AF",wh="\u2221",Sh="\u221F",xh="\u22BE",Nh="\u299D",Dh="\u2222",Ah="\xC5",Oh="\u237C",Ch="\u0104",Ih="\u0105",Rh="\u{1D538}",Fh="\u{1D552}",Lh="\u2A6F",qh="\u2248",Ph="\u2A70",Mh="\u224A",Vh="\u224B",jh="'",Uh="\u2061",Bh="\u2248",zh="\u224A",Gh="\xC5",Qh="\xE5",Hh="\u{1D49C}",$h="\u{1D4B6}",Jh="\u2254",Wh="*",Yh="\u2248",Zh="\u224D",Xh="\xC3",Kh="\xE3",ev="\xC4",tv="\xE4",nv="\u2233",rv="\u2A11",iv="\u224C",ov="\u03F6",av="\u2035",sv="\u223D",cv="\u22CD",uv="\u2216",lv="\u2AE7",fv="\u22BD",pv="\u2305",dv="\u2306",hv="\u2305",vv="\u23B5",mv="\u23B6",gv="\u224C",yv="\u0411",bv="\u0431",_v="\u201E",Ev="\u2235",Tv="\u2235",kv="\u2235",wv="\u29B0",Sv="\u03F6",xv="\u212C",Nv="\u212C",Dv="\u0392",Av="\u03B2",Ov="\u2136",Cv="\u226C",Iv="\u{1D505}",Rv="\u{1D51F}",Fv="\u22C2",Lv="\u25EF",qv="\u22C3",Pv="\u2A00",Mv="\u2A01",Vv="\u2A02",jv="\u2A06",Uv="\u2605",Bv="\u25BD",zv="\u25B3",Gv="\u2A04",Qv="\u22C1",Hv="\u22C0",$v="\u290D",Jv="\u29EB",Wv="\u25AA",Yv="\u25B4",Zv="\u25BE",Xv="\u25C2",Kv="\u25B8",em="\u2423",tm="\u2592",nm="\u2591",rm="\u2593",im="\u2588",om="=\u20E5",am="\u2261\u20E5",sm="\u2AED",cm="\u2310",um="\u{1D539}",lm="\u{1D553}",fm="\u22A5",pm="\u22A5",dm="\u22C8",hm="\u29C9",vm="\u2510",mm="\u2555",gm="\u2556",ym="\u2557",bm="\u250C",_m="\u2552",Em="\u2553",Tm="\u2554",km="\u2500",wm="\u2550",Sm="\u252C",xm="\u2564",Nm="\u2565",Dm="\u2566",Am="\u2534",Om="\u2567",Cm="\u2568",Im="\u2569",Rm="\u229F",Fm="\u229E",Lm="\u22A0",qm="\u2518",Pm="\u255B",Mm="\u255C",Vm="\u255D",jm="\u2514",Um="\u2558",Bm="\u2559",zm="\u255A",Gm="\u2502",Qm="\u2551",Hm="\u253C",$m="\u256A",Jm="\u256B",Wm="\u256C",Ym="\u2524",Zm="\u2561",Xm="\u2562",Km="\u2563",eg="\u251C",tg="\u255E",ng="\u255F",rg="\u2560",ig="\u2035",og="\u02D8",ag="\u02D8",sg="\xA6",cg="\u{1D4B7}",ug="\u212C",lg="\u204F",fg="\u223D",pg="\u22CD",dg="\u29C5",hg="\\",vg="\u27C8",mg="\u2022",gg="\u2022",yg="\u224E",bg="\u2AAE",_g="\u224F",Eg="\u224E",Tg="\u224F",kg="\u0106",wg="\u0107",Sg="\u2A44",xg="\u2A49",Ng="\u2A4B",Dg="\u2229",Ag="\u22D2",Og="\u2A47",Cg="\u2A40",Ig="\u2145",Rg="\u2229\uFE00",Fg="\u2041",Lg="\u02C7",qg="\u212D",Pg="\u2A4D",Mg="\u010C",Vg="\u010D",jg="\xC7",Ug="\xE7",Bg="\u0108",zg="\u0109",Gg="\u2230",Qg="\u2A4C",Hg="\u2A50",$g="\u010A",Jg="\u010B",Wg="\xB8",Yg="\xB8",Zg="\u29B2",Xg="\xA2",Kg="\xB7",ey="\xB7",ty="\u{1D520}",ny="\u212D",ry="\u0427",iy="\u0447",oy="\u2713",ay="\u2713",sy="\u03A7",cy="\u03C7",uy="\u02C6",ly="\u2257",fy="\u21BA",py="\u21BB",dy="\u229B",hy="\u229A",vy="\u229D",my="\u2299",gy="\xAE",yy="\u24C8",by="\u2296",_y="\u2295",Ey="\u2297",Ty="\u25CB",ky="\u29C3",wy="\u2257",Sy="\u2A10",xy="\u2AEF",Ny="\u29C2",Dy="\u2232",Ay="\u201D",Oy="\u2019",Cy="\u2663",Iy="\u2663",Ry=":",Fy="\u2237",Ly="\u2A74",qy="\u2254",Py="\u2254",My=",",Vy="@",jy="\u2201",Uy="\u2218",By="\u2201",zy="\u2102",Gy="\u2245",Qy="\u2A6D",Hy="\u2261",$y="\u222E",Jy="\u222F",Wy="\u222E",Yy="\u{1D554}",Zy="\u2102",Xy="\u2210",Ky="\u2210",eb="\xA9",tb="\xA9",nb="\u2117",rb="\u2233",ib="\u21B5",ob="\u2717",ab="\u2A2F",sb="\u{1D49E}",cb="\u{1D4B8}",ub="\u2ACF",lb="\u2AD1",fb="\u2AD0",pb="\u2AD2",db="\u22EF",hb="\u2938",vb="\u2935",mb="\u22DE",gb="\u22DF",yb="\u21B6",bb="\u293D",_b="\u2A48",Eb="\u2A46",Tb="\u224D",kb="\u222A",wb="\u22D3",Sb="\u2A4A",xb="\u228D",Nb="\u2A45",Db="\u222A\uFE00",Ab="\u21B7",Ob="\u293C",Cb="\u22DE",Ib="\u22DF",Rb="\u22CE",Fb="\u22CF",Lb="\xA4",qb="\u21B6",Pb="\u21B7",Mb="\u22CE",Vb="\u22CF",jb="\u2232",Ub="\u2231",Bb="\u232D",zb="\u2020",Gb="\u2021",Qb="\u2138",Hb="\u2193",$b="\u21A1",Jb="\u21D3",Wb="\u2010",Yb="\u2AE4",Zb="\u22A3",Xb="\u290F",Kb="\u02DD",e_="\u010E",t_="\u010F",n_="\u0414",r_="\u0434",i_="\u2021",o_="\u21CA",a_="\u2145",s_="\u2146",c_="\u2911",u_="\u2A77",l_="\xB0",f_="\u2207",p_="\u0394",d_="\u03B4",h_="\u29B1",v_="\u297F",m_="\u{1D507}",g_="\u{1D521}",y_="\u2965",b_="\u21C3",__="\u21C2",E_="\xB4",T_="\u02D9",k_="\u02DD",w_="`",S_="\u02DC",x_="\u22C4",N_="\u22C4",D_="\u22C4",A_="\u2666",O_="\u2666",C_="\xA8",I_="\u2146",R_="\u03DD",F_="\u22F2",L_="\xF7",q_="\xF7",P_="\u22C7",M_="\u22C7",V_="\u0402",j_="\u0452",U_="\u231E",B_="\u230D",z_="$",G_="\u{1D53B}",Q_="\u{1D555}",H_="\xA8",$_="\u02D9",J_="\u20DC",W_="\u2250",Y_="\u2251",Z_="\u2250",X_="\u2238",K_="\u2214",eE="\u22A1",tE="\u2306",nE="\u222F",rE="\xA8",iE="\u21D3",oE="\u21D0",aE="\u21D4",sE="\u2AE4",cE="\u27F8",uE="\u27FA",lE="\u27F9",fE="\u21D2",pE="\u22A8",dE="\u21D1",hE="\u21D5",vE="\u2225",mE="\u2913",gE="\u2193",yE="\u2193",bE="\u21D3",_E="\u21F5",EE="\u0311",TE="\u21CA",kE="\u21C3",wE="\u21C2",SE="\u2950",xE="\u295E",NE="\u2956",DE="\u21BD",AE="\u295F",OE="\u2957",CE="\u21C1",IE="\u21A7",RE="\u22A4",FE="\u2910",LE="\u231F",qE="\u230C",PE="\u{1D49F}",ME="\u{1D4B9}",VE="\u0405",jE="\u0455",UE="\u29F6",BE="\u0110",zE="\u0111",GE="\u22F1",QE="\u25BF",HE="\u25BE",$E="\u21F5",JE="\u296F",WE="\u29A6",YE="\u040F",ZE="\u045F",XE="\u27FF",KE="\xC9",e0="\xE9",t0="\u2A6E",n0="\u011A",r0="\u011B",i0="\xCA",o0="\xEA",a0="\u2256",s0="\u2255",c0="\u042D",u0="\u044D",l0="\u2A77",f0="\u0116",p0="\u0117",d0="\u2251",h0="\u2147",v0="\u2252",m0="\u{1D508}",g0="\u{1D522}",y0="\u2A9A",b0="\xC8",_0="\xE8",E0="\u2A96",T0="\u2A98",k0="\u2A99",w0="\u2208",S0="\u23E7",x0="\u2113",N0="\u2A95",D0="\u2A97",A0="\u0112",O0="\u0113",C0="\u2205",I0="\u2205",R0="\u25FB",F0="\u2205",L0="\u25AB",q0="\u2004",P0="\u2005",M0="\u2003",V0="\u014A",j0="\u014B",U0="\u2002",B0="\u0118",z0="\u0119",G0="\u{1D53C}",Q0="\u{1D556}",H0="\u22D5",$0="\u29E3",J0="\u2A71",W0="\u03B5",Y0="\u0395",Z0="\u03B5",X0="\u03F5",K0="\u2256",eT="\u2255",tT="\u2242",nT="\u2A96",rT="\u2A95",iT="\u2A75",oT="=",aT="\u2242",sT="\u225F",cT="\u21CC",uT="\u2261",lT="\u2A78",fT="\u29E5",pT="\u2971",dT="\u2253",hT="\u212F",vT="\u2130",mT="\u2250",gT="\u2A73",yT="\u2242",bT="\u0397",_T="\u03B7",ET="\xD0",TT="\xF0",kT="\xCB",wT="\xEB",ST="\u20AC",xT="!",NT="\u2203",DT="\u2203",AT="\u2130",OT="\u2147",CT="\u2147",IT="\u2252",RT="\u0424",FT="\u0444",LT="\u2640",qT="\uFB03",PT="\uFB00",MT="\uFB04",VT="\u{1D509}",jT="\u{1D523}",UT="\uFB01",BT="\u25FC",zT="\u25AA",GT="fj",QT="\u266D",HT="\uFB02",$T="\u25B1",JT="\u0192",WT="\u{1D53D}",YT="\u{1D557}",ZT="\u2200",XT="\u2200",KT="\u22D4",ek="\u2AD9",tk="\u2131",nk="\u2A0D",rk="\xBD",ik="\u2153",ok="\xBC",ak="\u2155",sk="\u2159",ck="\u215B",uk="\u2154",lk="\u2156",fk="\xBE",pk="\u2157",dk="\u215C",hk="\u2158",vk="\u215A",mk="\u215D",gk="\u215E",yk="\u2044",bk="\u2322",_k="\u{1D4BB}",Ek="\u2131",Tk="\u01F5",kk="\u0393",wk="\u03B3",Sk="\u03DC",xk="\u03DD",Nk="\u2A86",Dk="\u011E",Ak="\u011F",Ok="\u0122",Ck="\u011C",Ik="\u011D",Rk="\u0413",Fk="\u0433",Lk="\u0120",qk="\u0121",Pk="\u2265",Mk="\u2267",Vk="\u2A8C",jk="\u22DB",Uk="\u2265",Bk="\u2267",zk="\u2A7E",Gk="\u2AA9",Qk="\u2A7E",Hk="\u2A80",$k="\u2A82",Jk="\u2A84",Wk="\u22DB\uFE00",Yk="\u2A94",Zk="\u{1D50A}",Xk="\u{1D524}",Kk="\u226B",ew="\u22D9",tw="\u22D9",nw="\u2137",rw="\u0403",iw="\u0453",ow="\u2AA5",aw="\u2277",sw="\u2A92",cw="\u2AA4",uw="\u2A8A",lw="\u2A8A",fw="\u2A88",pw="\u2269",dw="\u2A88",hw="\u2269",vw="\u22E7",mw="\u{1D53E}",gw="\u{1D558}",yw="`",bw="\u2265",_w="\u22DB",Ew="\u2267",Tw="\u2AA2",kw="\u2277",ww="\u2A7E",Sw="\u2273",xw="\u{1D4A2}",Nw="\u210A",Dw="\u2273",Aw="\u2A8E",Ow="\u2A90",Cw="\u2AA7",Iw="\u2A7A",Rw=">",Fw=">",Lw="\u226B",qw="\u22D7",Pw="\u2995",Mw="\u2A7C",Vw="\u2A86",jw="\u2978",Uw="\u22D7",Bw="\u22DB",zw="\u2A8C",Gw="\u2277",Qw="\u2273",Hw="\u2269\uFE00",$w="\u2269\uFE00",Jw="\u02C7",Ww="\u200A",Yw="\xBD",Zw="\u210B",Xw="\u042A",Kw="\u044A",eS="\u2948",tS="\u2194",nS="\u21D4",rS="\u21AD",iS="^",oS="\u210F",aS="\u0124",sS="\u0125",cS="\u2665",uS="\u2665",lS="\u2026",fS="\u22B9",pS="\u{1D525}",dS="\u210C",hS="\u210B",vS="\u2925",mS="\u2926",gS="\u21FF",yS="\u223B",bS="\u21A9",_S="\u21AA",ES="\u{1D559}",TS="\u210D",kS="\u2015",wS="\u2500",SS="\u{1D4BD}",xS="\u210B",NS="\u210F",DS="\u0126",AS="\u0127",OS="\u224E",CS="\u224F",IS="\u2043",RS="\u2010",FS="\xCD",LS="\xED",qS="\u2063",PS="\xCE",MS="\xEE",VS="\u0418",jS="\u0438",US="\u0130",BS="\u0415",zS="\u0435",GS="\xA1",QS="\u21D4",HS="\u{1D526}",$S="\u2111",JS="\xCC",WS="\xEC",YS="\u2148",ZS="\u2A0C",XS="\u222D",KS="\u29DC",ex="\u2129",tx="\u0132",nx="\u0133",rx="\u012A",ix="\u012B",ox="\u2111",ax="\u2148",sx="\u2110",cx="\u2111",ux="\u0131",lx="\u2111",fx="\u22B7",px="\u01B5",dx="\u21D2",hx="\u2105",vx="\u221E",mx="\u29DD",gx="\u0131",yx="\u22BA",bx="\u222B",_x="\u222C",Ex="\u2124",Tx="\u222B",kx="\u22BA",wx="\u22C2",Sx="\u2A17",xx="\u2A3C",Nx="\u2063",Dx="\u2062",Ax="\u0401",Ox="\u0451",Cx="\u012E",Ix="\u012F",Rx="\u{1D540}",Fx="\u{1D55A}",Lx="\u0399",qx="\u03B9",Px="\u2A3C",Mx="\xBF",Vx="\u{1D4BE}",jx="\u2110",Ux="\u2208",Bx="\u22F5",zx="\u22F9",Gx="\u22F4",Qx="\u22F3",Hx="\u2208",$x="\u2062",Jx="\u0128",Wx="\u0129",Yx="\u0406",Zx="\u0456",Xx="\xCF",Kx="\xEF",eN="\u0134",tN="\u0135",nN="\u0419",rN="\u0439",iN="\u{1D50D}",oN="\u{1D527}",aN="\u0237",sN="\u{1D541}",cN="\u{1D55B}",uN="\u{1D4A5}",lN="\u{1D4BF}",fN="\u0408",pN="\u0458",dN="\u0404",hN="\u0454",vN="\u039A",mN="\u03BA",gN="\u03F0",yN="\u0136",bN="\u0137",_N="\u041A",EN="\u043A",TN="\u{1D50E}",kN="\u{1D528}",wN="\u0138",SN="\u0425",xN="\u0445",NN="\u040C",DN="\u045C",AN="\u{1D542}",ON="\u{1D55C}",CN="\u{1D4A6}",IN="\u{1D4C0}",RN="\u21DA",FN="\u0139",LN="\u013A",qN="\u29B4",PN="\u2112",MN="\u039B",VN="\u03BB",jN="\u27E8",UN="\u27EA",BN="\u2991",zN="\u27E8",GN="\u2A85",QN="\u2112",HN="\xAB",$N="\u21E4",JN="\u291F",WN="\u2190",YN="\u219E",ZN="\u21D0",XN="\u291D",KN="\u21A9",eD="\u21AB",tD="\u2939",nD="\u2973",rD="\u21A2",iD="\u2919",oD="\u291B",aD="\u2AAB",sD="\u2AAD",cD="\u2AAD\uFE00",uD="\u290C",lD="\u290E",fD="\u2772",pD="{",dD="[",hD="\u298B",vD="\u298F",mD="\u298D",gD="\u013D",yD="\u013E",bD="\u013B",_D="\u013C",ED="\u2308",TD="{",kD="\u041B",wD="\u043B",SD="\u2936",xD="\u201C",ND="\u201E",DD="\u2967",AD="\u294B",OD="\u21B2",CD="\u2264",ID="\u2266",RD="\u27E8",FD="\u21E4",LD="\u2190",qD="\u2190",PD="\u21D0",MD="\u21C6",VD="\u21A2",jD="\u2308",UD="\u27E6",BD="\u2961",zD="\u2959",GD="\u21C3",QD="\u230A",HD="\u21BD",$D="\u21BC",JD="\u21C7",WD="\u2194",YD="\u2194",ZD="\u21D4",XD="\u21C6",KD="\u21CB",eA="\u21AD",tA="\u294E",nA="\u21A4",rA="\u22A3",iA="\u295A",oA="\u22CB",aA="\u29CF",sA="\u22B2",cA="\u22B4",uA="\u2951",lA="\u2960",fA="\u2958",pA="\u21BF",dA="\u2952",hA="\u21BC",vA="\u2A8B",mA="\u22DA",gA="\u2264",yA="\u2266",bA="\u2A7D",_A="\u2AA8",EA="\u2A7D",TA="\u2A7F",kA="\u2A81",wA="\u2A83",SA="\u22DA\uFE00",xA="\u2A93",NA="\u2A85",DA="\u22D6",AA="\u22DA",OA="\u2A8B",CA="\u22DA",IA="\u2266",RA="\u2276",FA="\u2276",LA="\u2AA1",qA="\u2272",PA="\u2A7D",MA="\u2272",VA="\u297C",jA="\u230A",UA="\u{1D50F}",BA="\u{1D529}",zA="\u2276",GA="\u2A91",QA="\u2962",HA="\u21BD",$A="\u21BC",JA="\u296A",WA="\u2584",YA="\u0409",ZA="\u0459",XA="\u21C7",KA="\u226A",eO="\u22D8",tO="\u231E",nO="\u21DA",rO="\u296B",iO="\u25FA",oO="\u013F",aO="\u0140",sO="\u23B0",cO="\u23B0",uO="\u2A89",lO="\u2A89",fO="\u2A87",pO="\u2268",dO="\u2A87",hO="\u2268",vO="\u22E6",mO="\u27EC",gO="\u21FD",yO="\u27E6",bO="\u27F5",_O="\u27F5",EO="\u27F8",TO="\u27F7",kO="\u27F7",wO="\u27FA",SO="\u27FC",xO="\u27F6",NO="\u27F6",DO="\u27F9",AO="\u21AB",OO="\u21AC",CO="\u2985",IO="\u{1D543}",RO="\u{1D55D}",FO="\u2A2D",LO="\u2A34",qO="\u2217",PO="_",MO="\u2199",VO="\u2198",jO="\u25CA",UO="\u25CA",BO="\u29EB",zO="(",GO="\u2993",QO="\u21C6",HO="\u231F",$O="\u21CB",JO="\u296D",WO="\u200E",YO="\u22BF",ZO="\u2039",XO="\u{1D4C1}",KO="\u2112",eC="\u21B0",tC="\u21B0",nC="\u2272",rC="\u2A8D",iC="\u2A8F",oC="[",aC="\u2018",sC="\u201A",cC="\u0141",uC="\u0142",lC="\u2AA6",fC="\u2A79",pC="<",dC="<",hC="\u226A",vC="\u22D6",mC="\u22CB",gC="\u22C9",yC="\u2976",bC="\u2A7B",_C="\u25C3",EC="\u22B4",TC="\u25C2",kC="\u2996",wC="\u294A",SC="\u2966",xC="\u2268\uFE00",NC="\u2268\uFE00",DC="\xAF",AC="\u2642",OC="\u2720",CC="\u2720",IC="\u21A6",RC="\u21A6",FC="\u21A7",LC="\u21A4",qC="\u21A5",PC="\u25AE",MC="\u2A29",VC="\u041C",jC="\u043C",UC="\u2014",BC="\u223A",zC="\u2221",GC="\u205F",QC="\u2133",HC="\u{1D510}",$C="\u{1D52A}",JC="\u2127",WC="\xB5",YC="*",ZC="\u2AF0",XC="\u2223",KC="\xB7",eI="\u229F",tI="\u2212",nI="\u2238",rI="\u2A2A",iI="\u2213",oI="\u2ADB",aI="\u2026",sI="\u2213",cI="\u22A7",uI="\u{1D544}",lI="\u{1D55E}",fI="\u2213",pI="\u{1D4C2}",dI="\u2133",hI="\u223E",vI="\u039C",mI="\u03BC",gI="\u22B8",yI="\u22B8",bI="\u2207",_I="\u0143",EI="\u0144",TI="\u2220\u20D2",kI="\u2249",wI="\u2A70\u0338",SI="\u224B\u0338",xI="\u0149",NI="\u2249",DI="\u266E",AI="\u2115",OI="\u266E",CI="\xA0",II="\u224E\u0338",RI="\u224F\u0338",FI="\u2A43",LI="\u0147",qI="\u0148",PI="\u0145",MI="\u0146",VI="\u2247",jI="\u2A6D\u0338",UI="\u2A42",BI="\u041D",zI="\u043D",GI="\u2013",QI="\u2924",HI="\u2197",$I="\u21D7",JI="\u2197",WI="\u2260",YI="\u2250\u0338",ZI="\u200B",XI="\u200B",KI="\u200B",e1="\u200B",t1="\u2262",n1="\u2928",r1="\u2242\u0338",i1="\u226B",o1="\u226A",a1=`
|
|
159
|
-
`,s1="\u2204",c1="\u2204",u1="\u{1D511}",l1="\u{1D52B}",f1="\u2267\u0338",p1="\u2271",d1="\u2271",h1="\u2267\u0338",v1="\u2A7E\u0338",m1="\u2A7E\u0338",g1="\u22D9\u0338",y1="\u2275",b1="\u226B\u20D2",_1="\u226F",E1="\u226F",T1="\u226B\u0338",k1="\u21AE",w1="\u21CE",S1="\u2AF2",x1="\u220B",N1="\u22FC",D1="\u22FA",A1="\u220B",O1="\u040A",C1="\u045A",I1="\u219A",R1="\u21CD",F1="\u2025",L1="\u2266\u0338",q1="\u2270",P1="\u219A",M1="\u21CD",V1="\u21AE",j1="\u21CE",U1="\u2270",B1="\u2266\u0338",z1="\u2A7D\u0338",G1="\u2A7D\u0338",Q1="\u226E",H1="\u22D8\u0338",$1="\u2274",J1="\u226A\u20D2",W1="\u226E",Y1="\u22EA",Z1="\u22EC",X1="\u226A\u0338",K1="\u2224",eR="\u2060",tR="\xA0",nR="\u{1D55F}",rR="\u2115",iR="\u2AEC",oR="\xAC",aR="\u2262",sR="\u226D",cR="\u2226",uR="\u2209",lR="\u2260",fR="\u2242\u0338",pR="\u2204",dR="\u226F",hR="\u2271",vR="\u2267\u0338",mR="\u226B\u0338",gR="\u2279",yR="\u2A7E\u0338",bR="\u2275",_R="\u224E\u0338",ER="\u224F\u0338",TR="\u2209",kR="\u22F5\u0338",wR="\u22F9\u0338",SR="\u2209",xR="\u22F7",NR="\u22F6",DR="\u29CF\u0338",AR="\u22EA",OR="\u22EC",CR="\u226E",IR="\u2270",RR="\u2278",FR="\u226A\u0338",LR="\u2A7D\u0338",qR="\u2274",PR="\u2AA2\u0338",MR="\u2AA1\u0338",VR="\u220C",jR="\u220C",UR="\u22FE",BR="\u22FD",zR="\u2280",GR="\u2AAF\u0338",QR="\u22E0",HR="\u220C",$R="\u29D0\u0338",JR="\u22EB",WR="\u22ED",YR="\u228F\u0338",ZR="\u22E2",XR="\u2290\u0338",KR="\u22E3",eF="\u2282\u20D2",tF="\u2288",nF="\u2281",rF="\u2AB0\u0338",iF="\u22E1",oF="\u227F\u0338",aF="\u2283\u20D2",sF="\u2289",cF="\u2241",uF="\u2244",lF="\u2247",fF="\u2249",pF="\u2224",dF="\u2226",hF="\u2226",vF="\u2AFD\u20E5",mF="\u2202\u0338",gF="\u2A14",yF="\u2280",bF="\u22E0",_F="\u2280",EF="\u2AAF\u0338",TF="\u2AAF\u0338",kF="\u2933\u0338",wF="\u219B",SF="\u21CF",xF="\u219D\u0338",NF="\u219B",DF="\u21CF",AF="\u22EB",OF="\u22ED",CF="\u2281",IF="\u22E1",RF="\u2AB0\u0338",FF="\u{1D4A9}",LF="\u{1D4C3}",qF="\u2224",PF="\u2226",MF="\u2241",VF="\u2244",jF="\u2244",UF="\u2224",BF="\u2226",zF="\u22E2",GF="\u22E3",QF="\u2284",HF="\u2AC5\u0338",$F="\u2288",JF="\u2282\u20D2",WF="\u2288",YF="\u2AC5\u0338",ZF="\u2281",XF="\u2AB0\u0338",KF="\u2285",eL="\u2AC6\u0338",tL="\u2289",nL="\u2283\u20D2",rL="\u2289",iL="\u2AC6\u0338",oL="\u2279",aL="\xD1",sL="\xF1",cL="\u2278",uL="\u22EA",lL="\u22EC",fL="\u22EB",pL="\u22ED",dL="\u039D",hL="\u03BD",vL="#",mL="\u2116",gL="\u2007",yL="\u224D\u20D2",bL="\u22AC",_L="\u22AD",EL="\u22AE",TL="\u22AF",kL="\u2265\u20D2",wL=">\u20D2",SL="\u2904",xL="\u29DE",NL="\u2902",DL="\u2264\u20D2",AL="<\u20D2",OL="\u22B4\u20D2",CL="\u2903",IL="\u22B5\u20D2",RL="\u223C\u20D2",FL="\u2923",LL="\u2196",qL="\u21D6",PL="\u2196",ML="\u2927",VL="\xD3",jL="\xF3",UL="\u229B",BL="\xD4",zL="\xF4",GL="\u229A",QL="\u041E",HL="\u043E",$L="\u229D",JL="\u0150",WL="\u0151",YL="\u2A38",ZL="\u2299",XL="\u29BC",KL="\u0152",eq="\u0153",tq="\u29BF",nq="\u{1D512}",rq="\u{1D52C}",iq="\u02DB",oq="\xD2",aq="\xF2",sq="\u29C1",cq="\u29B5",uq="\u03A9",lq="\u222E",fq="\u21BA",pq="\u29BE",dq="\u29BB",hq="\u203E",vq="\u29C0",mq="\u014C",gq="\u014D",yq="\u03A9",bq="\u03C9",_q="\u039F",Eq="\u03BF",Tq="\u29B6",kq="\u2296",wq="\u{1D546}",Sq="\u{1D560}",xq="\u29B7",Nq="\u201C",Dq="\u2018",Aq="\u29B9",Oq="\u2295",Cq="\u21BB",Iq="\u2A54",Rq="\u2228",Fq="\u2A5D",Lq="\u2134",qq="\u2134",Pq="\xAA",Mq="\xBA",Vq="\u22B6",jq="\u2A56",Uq="\u2A57",Bq="\u2A5B",zq="\u24C8",Gq="\u{1D4AA}",Qq="\u2134",Hq="\xD8",$q="\xF8",Jq="\u2298",Wq="\xD5",Yq="\xF5",Zq="\u2A36",Xq="\u2A37",Kq="\u2297",eP="\xD6",tP="\xF6",nP="\u233D",rP="\u203E",iP="\u23DE",oP="\u23B4",aP="\u23DC",sP="\xB6",cP="\u2225",uP="\u2225",lP="\u2AF3",fP="\u2AFD",pP="\u2202",dP="\u2202",hP="\u041F",vP="\u043F",mP="%",gP=".",yP="\u2030",bP="\u22A5",_P="\u2031",EP="\u{1D513}",TP="\u{1D52D}",kP="\u03A6",wP="\u03C6",SP="\u03D5",xP="\u2133",NP="\u260E",DP="\u03A0",AP="\u03C0",OP="\u22D4",CP="\u03D6",IP="\u210F",RP="\u210E",FP="\u210F",LP="\u2A23",qP="\u229E",PP="\u2A22",MP="+",VP="\u2214",jP="\u2A25",UP="\u2A72",BP="\xB1",zP="\xB1",GP="\u2A26",QP="\u2A27",HP="\xB1",$P="\u210C",JP="\u2A15",WP="\u{1D561}",YP="\u2119",ZP="\xA3",XP="\u2AB7",KP="\u2ABB",eM="\u227A",tM="\u227C",nM="\u2AB7",rM="\u227A",iM="\u227C",oM="\u227A",aM="\u2AAF",sM="\u227C",cM="\u227E",uM="\u2AAF",lM="\u2AB9",fM="\u2AB5",pM="\u22E8",dM="\u2AAF",hM="\u2AB3",vM="\u227E",mM="\u2032",gM="\u2033",yM="\u2119",bM="\u2AB9",_M="\u2AB5",EM="\u22E8",TM="\u220F",kM="\u220F",wM="\u232E",SM="\u2312",xM="\u2313",NM="\u221D",DM="\u221D",AM="\u2237",OM="\u221D",CM="\u227E",IM="\u22B0",RM="\u{1D4AB}",FM="\u{1D4C5}",LM="\u03A8",qM="\u03C8",PM="\u2008",MM="\u{1D514}",VM="\u{1D52E}",jM="\u2A0C",UM="\u{1D562}",BM="\u211A",zM="\u2057",GM="\u{1D4AC}",QM="\u{1D4C6}",HM="\u210D",$M="\u2A16",JM="?",WM="\u225F",YM='"',ZM='"',XM="\u21DB",KM="\u223D\u0331",eV="\u0154",tV="\u0155",nV="\u221A",rV="\u29B3",iV="\u27E9",oV="\u27EB",aV="\u2992",sV="\u29A5",cV="\u27E9",uV="\xBB",lV="\u2975",fV="\u21E5",pV="\u2920",dV="\u2933",hV="\u2192",vV="\u21A0",mV="\u21D2",gV="\u291E",yV="\u21AA",bV="\u21AC",_V="\u2945",EV="\u2974",TV="\u2916",kV="\u21A3",wV="\u219D",SV="\u291A",xV="\u291C",NV="\u2236",DV="\u211A",AV="\u290D",OV="\u290F",CV="\u2910",IV="\u2773",RV="}",FV="]",LV="\u298C",qV="\u298E",PV="\u2990",MV="\u0158",VV="\u0159",jV="\u0156",UV="\u0157",BV="\u2309",zV="}",GV="\u0420",QV="\u0440",HV="\u2937",$V="\u2969",JV="\u201D",WV="\u201D",YV="\u21B3",ZV="\u211C",XV="\u211B",KV="\u211C",ej="\u211D",tj="\u211C",nj="\u25AD",rj="\xAE",ij="\xAE",oj="\u220B",aj="\u21CB",sj="\u296F",cj="\u297D",uj="\u230B",lj="\u{1D52F}",fj="\u211C",pj="\u2964",dj="\u21C1",hj="\u21C0",vj="\u296C",mj="\u03A1",gj="\u03C1",yj="\u03F1",bj="\u27E9",_j="\u21E5",Ej="\u2192",Tj="\u2192",kj="\u21D2",wj="\u21C4",Sj="\u21A3",xj="\u2309",Nj="\u27E7",Dj="\u295D",Aj="\u2955",Oj="\u21C2",Cj="\u230B",Ij="\u21C1",Rj="\u21C0",Fj="\u21C4",Lj="\u21CC",qj="\u21C9",Pj="\u219D",Mj="\u21A6",Vj="\u22A2",jj="\u295B",Uj="\u22CC",Bj="\u29D0",zj="\u22B3",Gj="\u22B5",Qj="\u294F",Hj="\u295C",$j="\u2954",Jj="\u21BE",Wj="\u2953",Yj="\u21C0",Zj="\u02DA",Xj="\u2253",Kj="\u21C4",eU="\u21CC",tU="\u200F",nU="\u23B1",rU="\u23B1",iU="\u2AEE",oU="\u27ED",aU="\u21FE",sU="\u27E7",cU="\u2986",uU="\u{1D563}",lU="\u211D",fU="\u2A2E",pU="\u2A35",dU="\u2970",hU=")",vU="\u2994",mU="\u2A12",gU="\u21C9",yU="\u21DB",bU="\u203A",_U="\u{1D4C7}",EU="\u211B",TU="\u21B1",kU="\u21B1",wU="]",SU="\u2019",xU="\u2019",NU="\u22CC",DU="\u22CA",AU="\u25B9",OU="\u22B5",CU="\u25B8",IU="\u29CE",RU="\u29F4",FU="\u2968",LU="\u211E",qU="\u015A",PU="\u015B",MU="\u201A",VU="\u2AB8",jU="\u0160",UU="\u0161",BU="\u2ABC",zU="\u227B",GU="\u227D",QU="\u2AB0",HU="\u2AB4",$U="\u015E",JU="\u015F",WU="\u015C",YU="\u015D",ZU="\u2ABA",XU="\u2AB6",KU="\u22E9",eB="\u2A13",tB="\u227F",nB="\u0421",rB="\u0441",iB="\u22A1",oB="\u22C5",aB="\u2A66",sB="\u2925",cB="\u2198",uB="\u21D8",lB="\u2198",fB="\xA7",pB=";",dB="\u2929",hB="\u2216",vB="\u2216",mB="\u2736",gB="\u{1D516}",yB="\u{1D530}",bB="\u2322",_B="\u266F",EB="\u0429",TB="\u0449",kB="\u0428",wB="\u0448",SB="\u2193",xB="\u2190",NB="\u2223",DB="\u2225",AB="\u2192",OB="\u2191",CB="\xAD",IB="\u03A3",RB="\u03C3",FB="\u03C2",LB="\u03C2",qB="\u223C",PB="\u2A6A",MB="\u2243",VB="\u2243",jB="\u2A9E",UB="\u2AA0",BB="\u2A9D",zB="\u2A9F",GB="\u2246",QB="\u2A24",HB="\u2972",$B="\u2190",JB="\u2218",WB="\u2216",YB="\u2A33",ZB="\u29E4",XB="\u2223",KB="\u2323",e2="\u2AAA",t2="\u2AAC",n2="\u2AAC\uFE00",r2="\u042C",i2="\u044C",o2="\u233F",a2="\u29C4",s2="/",c2="\u{1D54A}",u2="\u{1D564}",l2="\u2660",f2="\u2660",p2="\u2225",d2="\u2293",h2="\u2293\uFE00",v2="\u2294",m2="\u2294\uFE00",g2="\u221A",y2="\u228F",b2="\u2291",_2="\u228F",E2="\u2291",T2="\u2290",k2="\u2292",w2="\u2290",S2="\u2292",x2="\u25A1",N2="\u25A1",D2="\u2293",A2="\u228F",O2="\u2291",C2="\u2290",I2="\u2292",R2="\u2294",F2="\u25AA",L2="\u25A1",q2="\u25AA",P2="\u2192",M2="\u{1D4AE}",V2="\u{1D4C8}",j2="\u2216",U2="\u2323",B2="\u22C6",z2="\u22C6",G2="\u2606",Q2="\u2605",H2="\u03F5",$2="\u03D5",J2="\xAF",W2="\u2282",Y2="\u22D0",Z2="\u2ABD",X2="\u2AC5",K2="\u2286",ez="\u2AC3",tz="\u2AC1",nz="\u2ACB",rz="\u228A",iz="\u2ABF",oz="\u2979",az="\u2282",sz="\u22D0",cz="\u2286",uz="\u2AC5",lz="\u2286",fz="\u228A",pz="\u2ACB",dz="\u2AC7",hz="\u2AD5",vz="\u2AD3",mz="\u2AB8",gz="\u227B",yz="\u227D",bz="\u227B",_z="\u2AB0",Ez="\u227D",Tz="\u227F",kz="\u2AB0",wz="\u2ABA",Sz="\u2AB6",xz="\u22E9",Nz="\u227F",Dz="\u220B",Az="\u2211",Oz="\u2211",Cz="\u266A",Iz="\xB9",Rz="\xB2",Fz="\xB3",Lz="\u2283",qz="\u22D1",Pz="\u2ABE",Mz="\u2AD8",Vz="\u2AC6",jz="\u2287",Uz="\u2AC4",Bz="\u2283",zz="\u2287",Gz="\u27C9",Qz="\u2AD7",Hz="\u297B",$z="\u2AC2",Jz="\u2ACC",Wz="\u228B",Yz="\u2AC0",Zz="\u2283",Xz="\u22D1",Kz="\u2287",eG="\u2AC6",tG="\u228B",nG="\u2ACC",rG="\u2AC8",iG="\u2AD4",oG="\u2AD6",aG="\u2926",sG="\u2199",cG="\u21D9",uG="\u2199",lG="\u292A",fG="\xDF",pG=" ",dG="\u2316",hG="\u03A4",vG="\u03C4",mG="\u23B4",gG="\u0164",yG="\u0165",bG="\u0162",_G="\u0163",EG="\u0422",TG="\u0442",kG="\u20DB",wG="\u2315",SG="\u{1D517}",xG="\u{1D531}",NG="\u2234",DG="\u2234",AG="\u2234",OG="\u0398",CG="\u03B8",IG="\u03D1",RG="\u03D1",FG="\u2248",LG="\u223C",qG="\u205F\u200A",PG="\u2009",MG="\u2009",VG="\u2248",jG="\u223C",UG="\xDE",BG="\xFE",zG="\u02DC",GG="\u223C",QG="\u2243",HG="\u2245",$G="\u2248",JG="\u2A31",WG="\u22A0",YG="\xD7",ZG="\u2A30",XG="\u222D",KG="\u2928",eQ="\u2336",tQ="\u2AF1",nQ="\u22A4",rQ="\u{1D54B}",iQ="\u{1D565}",oQ="\u2ADA",aQ="\u2929",sQ="\u2034",cQ="\u2122",uQ="\u2122",lQ="\u25B5",fQ="\u25BF",pQ="\u25C3",dQ="\u22B4",hQ="\u225C",vQ="\u25B9",mQ="\u22B5",gQ="\u25EC",yQ="\u225C",bQ="\u2A3A",_Q="\u20DB",EQ="\u2A39",TQ="\u29CD",kQ="\u2A3B",wQ="\u23E2",SQ="\u{1D4AF}",xQ="\u{1D4C9}",NQ="\u0426",DQ="\u0446",AQ="\u040B",OQ="\u045B",CQ="\u0166",IQ="\u0167",RQ="\u226C",FQ="\u219E",LQ="\u21A0",qQ="\xDA",PQ="\xFA",MQ="\u2191",VQ="\u219F",jQ="\u21D1",UQ="\u2949",BQ="\u040E",zQ="\u045E",GQ="\u016C",QQ="\u016D",HQ="\xDB",$Q="\xFB",JQ="\u0423",WQ="\u0443",YQ="\u21C5",ZQ="\u0170",XQ="\u0171",KQ="\u296E",e3="\u297E",t3="\u{1D518}",n3="\u{1D532}",r3="\xD9",i3="\xF9",o3="\u2963",a3="\u21BF",s3="\u21BE",c3="\u2580",u3="\u231C",l3="\u231C",f3="\u230F",p3="\u25F8",d3="\u016A",h3="\u016B",v3="\xA8",m3="_",g3="\u23DF",y3="\u23B5",b3="\u23DD",_3="\u22C3",E3="\u228E",T3="\u0172",k3="\u0173",w3="\u{1D54C}",S3="\u{1D566}",x3="\u2912",N3="\u2191",D3="\u2191",A3="\u21D1",O3="\u21C5",C3="\u2195",I3="\u2195",R3="\u21D5",F3="\u296E",L3="\u21BF",q3="\u21BE",P3="\u228E",M3="\u2196",V3="\u2197",j3="\u03C5",U3="\u03D2",B3="\u03D2",z3="\u03A5",G3="\u03C5",Q3="\u21A5",H3="\u22A5",$3="\u21C8",J3="\u231D",W3="\u231D",Y3="\u230E",Z3="\u016E",X3="\u016F",K3="\u25F9",eH="\u{1D4B0}",tH="\u{1D4CA}",nH="\u22F0",rH="\u0168",iH="\u0169",oH="\u25B5",aH="\u25B4",sH="\u21C8",cH="\xDC",uH="\xFC",lH="\u29A7",fH="\u299C",pH="\u03F5",dH="\u03F0",hH="\u2205",vH="\u03D5",mH="\u03D6",gH="\u221D",yH="\u2195",bH="\u21D5",_H="\u03F1",EH="\u03C2",TH="\u228A\uFE00",kH="\u2ACB\uFE00",wH="\u228B\uFE00",SH="\u2ACC\uFE00",xH="\u03D1",NH="\u22B2",DH="\u22B3",AH="\u2AE8",OH="\u2AEB",CH="\u2AE9",IH="\u0412",RH="\u0432",FH="\u22A2",LH="\u22A8",qH="\u22A9",PH="\u22AB",MH="\u2AE6",VH="\u22BB",jH="\u2228",UH="\u22C1",BH="\u225A",zH="\u22EE",GH="|",QH="\u2016",HH="|",$H="\u2016",JH="\u2223",WH="|",YH="\u2758",ZH="\u2240",XH="\u200A",KH="\u{1D519}",e4="\u{1D533}",t4="\u22B2",n4="\u2282\u20D2",r4="\u2283\u20D2",i4="\u{1D54D}",o4="\u{1D567}",a4="\u221D",s4="\u22B3",c4="\u{1D4B1}",u4="\u{1D4CB}",l4="\u2ACB\uFE00",f4="\u228A\uFE00",p4="\u2ACC\uFE00",d4="\u228B\uFE00",h4="\u22AA",v4="\u299A",m4="\u0174",g4="\u0175",y4="\u2A5F",b4="\u2227",_4="\u22C0",E4="\u2259",T4="\u2118",k4="\u{1D51A}",w4="\u{1D534}",S4="\u{1D54E}",x4="\u{1D568}",N4="\u2118",D4="\u2240",A4="\u2240",O4="\u{1D4B2}",C4="\u{1D4CC}",I4="\u22C2",R4="\u25EF",F4="\u22C3",L4="\u25BD",q4="\u{1D51B}",P4="\u{1D535}",M4="\u27F7",V4="\u27FA",j4="\u039E",U4="\u03BE",B4="\u27F5",z4="\u27F8",G4="\u27FC",Q4="\u22FB",H4="\u2A00",$4="\u{1D54F}",J4="\u{1D569}",W4="\u2A01",Y4="\u2A02",Z4="\u27F6",X4="\u27F9",K4="\u{1D4B3}",e5="\u{1D4CD}",t5="\u2A06",n5="\u2A04",r5="\u25B3",i5="\u22C1",o5="\u22C0",a5="\xDD",s5="\xFD",c5="\u042F",u5="\u044F",l5="\u0176",f5="\u0177",p5="\u042B",d5="\u044B",h5="\xA5",v5="\u{1D51C}",m5="\u{1D536}",g5="\u0407",y5="\u0457",b5="\u{1D550}",_5="\u{1D56A}",E5="\u{1D4B4}",T5="\u{1D4CE}",k5="\u042E",w5="\u044E",S5="\xFF",x5="\u0178",N5="\u0179",D5="\u017A",A5="\u017D",O5="\u017E",C5="\u0417",I5="\u0437",R5="\u017B",F5="\u017C",L5="\u2128",q5="\u200B",P5="\u0396",M5="\u03B6",V5="\u{1D537}",j5="\u2128",U5="\u0416",B5="\u0436",z5="\u21DD",G5="\u{1D56B}",Q5="\u2124",H5="\u{1D4B5}",$5="\u{1D4CF}",J5="\u200D",W5="\u200C",Y5={Aacute:Rd,aacute:Fd,Abreve:Ld,abreve:qd,ac:Pd,acd:Md,acE:Vd,Acirc:jd,acirc:Ud,acute:Bd,Acy:zd,acy:Gd,AElig:Qd,aelig:Hd,af:$d,Afr:Jd,afr:Wd,Agrave:Yd,agrave:Zd,alefsym:Xd,aleph:Kd,Alpha:eh,alpha:th,Amacr:nh,amacr:rh,amalg:ih,amp:oh,AMP:ah,andand:sh,And:ch,and:uh,andd:lh,andslope:fh,andv:ph,ang:dh,ange:hh,angle:vh,angmsdaa:mh,angmsdab:gh,angmsdac:yh,angmsdad:bh,angmsdae:_h,angmsdaf:Eh,angmsdag:Th,angmsdah:kh,angmsd:wh,angrt:Sh,angrtvb:xh,angrtvbd:Nh,angsph:Dh,angst:Ah,angzarr:Oh,Aogon:Ch,aogon:Ih,Aopf:Rh,aopf:Fh,apacir:Lh,ap:qh,apE:Ph,ape:Mh,apid:Vh,apos:jh,ApplyFunction:Uh,approx:Bh,approxeq:zh,Aring:Gh,aring:Qh,Ascr:Hh,ascr:$h,Assign:Jh,ast:Wh,asymp:Yh,asympeq:Zh,Atilde:Xh,atilde:Kh,Auml:ev,auml:tv,awconint:nv,awint:rv,backcong:iv,backepsilon:ov,backprime:av,backsim:sv,backsimeq:cv,Backslash:uv,Barv:lv,barvee:fv,barwed:pv,Barwed:dv,barwedge:hv,bbrk:vv,bbrktbrk:mv,bcong:gv,Bcy:yv,bcy:bv,bdquo:_v,becaus:Ev,because:Tv,Because:kv,bemptyv:wv,bepsi:Sv,bernou:xv,Bernoullis:Nv,Beta:Dv,beta:Av,beth:Ov,between:Cv,Bfr:Iv,bfr:Rv,bigcap:Fv,bigcirc:Lv,bigcup:qv,bigodot:Pv,bigoplus:Mv,bigotimes:Vv,bigsqcup:jv,bigstar:Uv,bigtriangledown:Bv,bigtriangleup:zv,biguplus:Gv,bigvee:Qv,bigwedge:Hv,bkarow:$v,blacklozenge:Jv,blacksquare:Wv,blacktriangle:Yv,blacktriangledown:Zv,blacktriangleleft:Xv,blacktriangleright:Kv,blank:em,blk12:tm,blk14:nm,blk34:rm,block:im,bne:om,bnequiv:am,bNot:sm,bnot:cm,Bopf:um,bopf:lm,bot:fm,bottom:pm,bowtie:dm,boxbox:hm,boxdl:vm,boxdL:mm,boxDl:gm,boxDL:ym,boxdr:bm,boxdR:_m,boxDr:Em,boxDR:Tm,boxh:km,boxH:wm,boxhd:Sm,boxHd:xm,boxhD:Nm,boxHD:Dm,boxhu:Am,boxHu:Om,boxhU:Cm,boxHU:Im,boxminus:Rm,boxplus:Fm,boxtimes:Lm,boxul:qm,boxuL:Pm,boxUl:Mm,boxUL:Vm,boxur:jm,boxuR:Um,boxUr:Bm,boxUR:zm,boxv:Gm,boxV:Qm,boxvh:Hm,boxvH:$m,boxVh:Jm,boxVH:Wm,boxvl:Ym,boxvL:Zm,boxVl:Xm,boxVL:Km,boxvr:eg,boxvR:tg,boxVr:ng,boxVR:rg,bprime:ig,breve:og,Breve:ag,brvbar:sg,bscr:cg,Bscr:ug,bsemi:lg,bsim:fg,bsime:pg,bsolb:dg,bsol:hg,bsolhsub:vg,bull:mg,bullet:gg,bump:yg,bumpE:bg,bumpe:_g,Bumpeq:Eg,bumpeq:Tg,Cacute:kg,cacute:wg,capand:Sg,capbrcup:xg,capcap:Ng,cap:Dg,Cap:Ag,capcup:Og,capdot:Cg,CapitalDifferentialD:Ig,caps:Rg,caret:Fg,caron:Lg,Cayleys:qg,ccaps:Pg,Ccaron:Mg,ccaron:Vg,Ccedil:jg,ccedil:Ug,Ccirc:Bg,ccirc:zg,Cconint:Gg,ccups:Qg,ccupssm:Hg,Cdot:$g,cdot:Jg,cedil:Wg,Cedilla:Yg,cemptyv:Zg,cent:Xg,centerdot:Kg,CenterDot:ey,cfr:ty,Cfr:ny,CHcy:ry,chcy:iy,check:oy,checkmark:ay,Chi:sy,chi:cy,circ:uy,circeq:ly,circlearrowleft:fy,circlearrowright:py,circledast:dy,circledcirc:hy,circleddash:vy,CircleDot:my,circledR:gy,circledS:yy,CircleMinus:by,CirclePlus:_y,CircleTimes:Ey,cir:Ty,cirE:ky,cire:wy,cirfnint:Sy,cirmid:xy,cirscir:Ny,ClockwiseContourIntegral:Dy,CloseCurlyDoubleQuote:Ay,CloseCurlyQuote:Oy,clubs:Cy,clubsuit:Iy,colon:Ry,Colon:Fy,Colone:Ly,colone:qy,coloneq:Py,comma:My,commat:Vy,comp:jy,compfn:Uy,complement:By,complexes:zy,cong:Gy,congdot:Qy,Congruent:Hy,conint:$y,Conint:Jy,ContourIntegral:Wy,copf:Yy,Copf:Zy,coprod:Xy,Coproduct:Ky,copy:eb,COPY:tb,copysr:nb,CounterClockwiseContourIntegral:rb,crarr:ib,cross:ob,Cross:ab,Cscr:sb,cscr:cb,csub:ub,csube:lb,csup:fb,csupe:pb,ctdot:db,cudarrl:hb,cudarrr:vb,cuepr:mb,cuesc:gb,cularr:yb,cularrp:bb,cupbrcap:_b,cupcap:Eb,CupCap:Tb,cup:kb,Cup:wb,cupcup:Sb,cupdot:xb,cupor:Nb,cups:Db,curarr:Ab,curarrm:Ob,curlyeqprec:Cb,curlyeqsucc:Ib,curlyvee:Rb,curlywedge:Fb,curren:Lb,curvearrowleft:qb,curvearrowright:Pb,cuvee:Mb,cuwed:Vb,cwconint:jb,cwint:Ub,cylcty:Bb,dagger:zb,Dagger:Gb,daleth:Qb,darr:Hb,Darr:$b,dArr:Jb,dash:Wb,Dashv:Yb,dashv:Zb,dbkarow:Xb,dblac:Kb,Dcaron:e_,dcaron:t_,Dcy:n_,dcy:r_,ddagger:i_,ddarr:o_,DD:a_,dd:s_,DDotrahd:c_,ddotseq:u_,deg:l_,Del:f_,Delta:p_,delta:d_,demptyv:h_,dfisht:v_,Dfr:m_,dfr:g_,dHar:y_,dharl:b_,dharr:__,DiacriticalAcute:E_,DiacriticalDot:T_,DiacriticalDoubleAcute:k_,DiacriticalGrave:w_,DiacriticalTilde:S_,diam:x_,diamond:N_,Diamond:D_,diamondsuit:A_,diams:O_,die:C_,DifferentialD:I_,digamma:R_,disin:F_,div:L_,divide:q_,divideontimes:P_,divonx:M_,DJcy:V_,djcy:j_,dlcorn:U_,dlcrop:B_,dollar:z_,Dopf:G_,dopf:Q_,Dot:H_,dot:$_,DotDot:J_,doteq:W_,doteqdot:Y_,DotEqual:Z_,dotminus:X_,dotplus:K_,dotsquare:eE,doublebarwedge:tE,DoubleContourIntegral:nE,DoubleDot:rE,DoubleDownArrow:iE,DoubleLeftArrow:oE,DoubleLeftRightArrow:aE,DoubleLeftTee:sE,DoubleLongLeftArrow:cE,DoubleLongLeftRightArrow:uE,DoubleLongRightArrow:lE,DoubleRightArrow:fE,DoubleRightTee:pE,DoubleUpArrow:dE,DoubleUpDownArrow:hE,DoubleVerticalBar:vE,DownArrowBar:mE,downarrow:gE,DownArrow:yE,Downarrow:bE,DownArrowUpArrow:_E,DownBreve:EE,downdownarrows:TE,downharpoonleft:kE,downharpoonright:wE,DownLeftRightVector:SE,DownLeftTeeVector:xE,DownLeftVectorBar:NE,DownLeftVector:DE,DownRightTeeVector:AE,DownRightVectorBar:OE,DownRightVector:CE,DownTeeArrow:IE,DownTee:RE,drbkarow:FE,drcorn:LE,drcrop:qE,Dscr:PE,dscr:ME,DScy:VE,dscy:jE,dsol:UE,Dstrok:BE,dstrok:zE,dtdot:GE,dtri:QE,dtrif:HE,duarr:$E,duhar:JE,dwangle:WE,DZcy:YE,dzcy:ZE,dzigrarr:XE,Eacute:KE,eacute:e0,easter:t0,Ecaron:n0,ecaron:r0,Ecirc:i0,ecirc:o0,ecir:a0,ecolon:s0,Ecy:c0,ecy:u0,eDDot:l0,Edot:f0,edot:p0,eDot:d0,ee:h0,efDot:v0,Efr:m0,efr:g0,eg:y0,Egrave:b0,egrave:_0,egs:E0,egsdot:T0,el:k0,Element:w0,elinters:S0,ell:x0,els:N0,elsdot:D0,Emacr:A0,emacr:O0,empty:C0,emptyset:I0,EmptySmallSquare:R0,emptyv:F0,EmptyVerySmallSquare:L0,emsp13:q0,emsp14:P0,emsp:M0,ENG:V0,eng:j0,ensp:U0,Eogon:B0,eogon:z0,Eopf:G0,eopf:Q0,epar:H0,eparsl:$0,eplus:J0,epsi:W0,Epsilon:Y0,epsilon:Z0,epsiv:X0,eqcirc:K0,eqcolon:eT,eqsim:tT,eqslantgtr:nT,eqslantless:rT,Equal:iT,equals:oT,EqualTilde:aT,equest:sT,Equilibrium:cT,equiv:uT,equivDD:lT,eqvparsl:fT,erarr:pT,erDot:dT,escr:hT,Escr:vT,esdot:mT,Esim:gT,esim:yT,Eta:bT,eta:_T,ETH:ET,eth:TT,Euml:kT,euml:wT,euro:ST,excl:xT,exist:NT,Exists:DT,expectation:AT,exponentiale:OT,ExponentialE:CT,fallingdotseq:IT,Fcy:RT,fcy:FT,female:LT,ffilig:qT,fflig:PT,ffllig:MT,Ffr:VT,ffr:jT,filig:UT,FilledSmallSquare:BT,FilledVerySmallSquare:zT,fjlig:GT,flat:QT,fllig:HT,fltns:$T,fnof:JT,Fopf:WT,fopf:YT,forall:ZT,ForAll:XT,fork:KT,forkv:ek,Fouriertrf:tk,fpartint:nk,frac12:rk,frac13:ik,frac14:ok,frac15:ak,frac16:sk,frac18:ck,frac23:uk,frac25:lk,frac34:fk,frac35:pk,frac38:dk,frac45:hk,frac56:vk,frac58:mk,frac78:gk,frasl:yk,frown:bk,fscr:_k,Fscr:Ek,gacute:Tk,Gamma:kk,gamma:wk,Gammad:Sk,gammad:xk,gap:Nk,Gbreve:Dk,gbreve:Ak,Gcedil:Ok,Gcirc:Ck,gcirc:Ik,Gcy:Rk,gcy:Fk,Gdot:Lk,gdot:qk,ge:Pk,gE:Mk,gEl:Vk,gel:jk,geq:Uk,geqq:Bk,geqslant:zk,gescc:Gk,ges:Qk,gesdot:Hk,gesdoto:$k,gesdotol:Jk,gesl:Wk,gesles:Yk,Gfr:Zk,gfr:Xk,gg:Kk,Gg:ew,ggg:tw,gimel:nw,GJcy:rw,gjcy:iw,gla:ow,gl:aw,glE:sw,glj:cw,gnap:uw,gnapprox:lw,gne:fw,gnE:pw,gneq:dw,gneqq:hw,gnsim:vw,Gopf:mw,gopf:gw,grave:yw,GreaterEqual:bw,GreaterEqualLess:_w,GreaterFullEqual:Ew,GreaterGreater:Tw,GreaterLess:kw,GreaterSlantEqual:ww,GreaterTilde:Sw,Gscr:xw,gscr:Nw,gsim:Dw,gsime:Aw,gsiml:Ow,gtcc:Cw,gtcir:Iw,gt:Rw,GT:Fw,Gt:Lw,gtdot:qw,gtlPar:Pw,gtquest:Mw,gtrapprox:Vw,gtrarr:jw,gtrdot:Uw,gtreqless:Bw,gtreqqless:zw,gtrless:Gw,gtrsim:Qw,gvertneqq:Hw,gvnE:$w,Hacek:Jw,hairsp:Ww,half:Yw,hamilt:Zw,HARDcy:Xw,hardcy:Kw,harrcir:eS,harr:tS,hArr:nS,harrw:rS,Hat:iS,hbar:oS,Hcirc:aS,hcirc:sS,hearts:cS,heartsuit:uS,hellip:lS,hercon:fS,hfr:pS,Hfr:dS,HilbertSpace:hS,hksearow:vS,hkswarow:mS,hoarr:gS,homtht:yS,hookleftarrow:bS,hookrightarrow:_S,hopf:ES,Hopf:TS,horbar:kS,HorizontalLine:wS,hscr:SS,Hscr:xS,hslash:NS,Hstrok:DS,hstrok:AS,HumpDownHump:OS,HumpEqual:CS,hybull:IS,hyphen:RS,Iacute:FS,iacute:LS,ic:qS,Icirc:PS,icirc:MS,Icy:VS,icy:jS,Idot:US,IEcy:BS,iecy:zS,iexcl:GS,iff:QS,ifr:HS,Ifr:$S,Igrave:JS,igrave:WS,ii:YS,iiiint:ZS,iiint:XS,iinfin:KS,iiota:ex,IJlig:tx,ijlig:nx,Imacr:rx,imacr:ix,image:ox,ImaginaryI:ax,imagline:sx,imagpart:cx,imath:ux,Im:lx,imof:fx,imped:px,Implies:dx,incare:hx,in:"\u2208",infin:vx,infintie:mx,inodot:gx,intcal:yx,int:bx,Int:_x,integers:Ex,Integral:Tx,intercal:kx,Intersection:wx,intlarhk:Sx,intprod:xx,InvisibleComma:Nx,InvisibleTimes:Dx,IOcy:Ax,iocy:Ox,Iogon:Cx,iogon:Ix,Iopf:Rx,iopf:Fx,Iota:Lx,iota:qx,iprod:Px,iquest:Mx,iscr:Vx,Iscr:jx,isin:Ux,isindot:Bx,isinE:zx,isins:Gx,isinsv:Qx,isinv:Hx,it:$x,Itilde:Jx,itilde:Wx,Iukcy:Yx,iukcy:Zx,Iuml:Xx,iuml:Kx,Jcirc:eN,jcirc:tN,Jcy:nN,jcy:rN,Jfr:iN,jfr:oN,jmath:aN,Jopf:sN,jopf:cN,Jscr:uN,jscr:lN,Jsercy:fN,jsercy:pN,Jukcy:dN,jukcy:hN,Kappa:vN,kappa:mN,kappav:gN,Kcedil:yN,kcedil:bN,Kcy:_N,kcy:EN,Kfr:TN,kfr:kN,kgreen:wN,KHcy:SN,khcy:xN,KJcy:NN,kjcy:DN,Kopf:AN,kopf:ON,Kscr:CN,kscr:IN,lAarr:RN,Lacute:FN,lacute:LN,laemptyv:qN,lagran:PN,Lambda:MN,lambda:VN,lang:jN,Lang:UN,langd:BN,langle:zN,lap:GN,Laplacetrf:QN,laquo:HN,larrb:$N,larrbfs:JN,larr:WN,Larr:YN,lArr:ZN,larrfs:XN,larrhk:KN,larrlp:eD,larrpl:tD,larrsim:nD,larrtl:rD,latail:iD,lAtail:oD,lat:aD,late:sD,lates:cD,lbarr:uD,lBarr:lD,lbbrk:fD,lbrace:pD,lbrack:dD,lbrke:hD,lbrksld:vD,lbrkslu:mD,Lcaron:gD,lcaron:yD,Lcedil:bD,lcedil:_D,lceil:ED,lcub:TD,Lcy:kD,lcy:wD,ldca:SD,ldquo:xD,ldquor:ND,ldrdhar:DD,ldrushar:AD,ldsh:OD,le:CD,lE:ID,LeftAngleBracket:RD,LeftArrowBar:FD,leftarrow:LD,LeftArrow:qD,Leftarrow:PD,LeftArrowRightArrow:MD,leftarrowtail:VD,LeftCeiling:jD,LeftDoubleBracket:UD,LeftDownTeeVector:BD,LeftDownVectorBar:zD,LeftDownVector:GD,LeftFloor:QD,leftharpoondown:HD,leftharpoonup:$D,leftleftarrows:JD,leftrightarrow:WD,LeftRightArrow:YD,Leftrightarrow:ZD,leftrightarrows:XD,leftrightharpoons:KD,leftrightsquigarrow:eA,LeftRightVector:tA,LeftTeeArrow:nA,LeftTee:rA,LeftTeeVector:iA,leftthreetimes:oA,LeftTriangleBar:aA,LeftTriangle:sA,LeftTriangleEqual:cA,LeftUpDownVector:uA,LeftUpTeeVector:lA,LeftUpVectorBar:fA,LeftUpVector:pA,LeftVectorBar:dA,LeftVector:hA,lEg:vA,leg:mA,leq:gA,leqq:yA,leqslant:bA,lescc:_A,les:EA,lesdot:TA,lesdoto:kA,lesdotor:wA,lesg:SA,lesges:xA,lessapprox:NA,lessdot:DA,lesseqgtr:AA,lesseqqgtr:OA,LessEqualGreater:CA,LessFullEqual:IA,LessGreater:RA,lessgtr:FA,LessLess:LA,lesssim:qA,LessSlantEqual:PA,LessTilde:MA,lfisht:VA,lfloor:jA,Lfr:UA,lfr:BA,lg:zA,lgE:GA,lHar:QA,lhard:HA,lharu:$A,lharul:JA,lhblk:WA,LJcy:YA,ljcy:ZA,llarr:XA,ll:KA,Ll:eO,llcorner:tO,Lleftarrow:nO,llhard:rO,lltri:iO,Lmidot:oO,lmidot:aO,lmoustache:sO,lmoust:cO,lnap:uO,lnapprox:lO,lne:fO,lnE:pO,lneq:dO,lneqq:hO,lnsim:vO,loang:mO,loarr:gO,lobrk:yO,longleftarrow:bO,LongLeftArrow:_O,Longleftarrow:EO,longleftrightarrow:TO,LongLeftRightArrow:kO,Longleftrightarrow:wO,longmapsto:SO,longrightarrow:xO,LongRightArrow:NO,Longrightarrow:DO,looparrowleft:AO,looparrowright:OO,lopar:CO,Lopf:IO,lopf:RO,loplus:FO,lotimes:LO,lowast:qO,lowbar:PO,LowerLeftArrow:MO,LowerRightArrow:VO,loz:jO,lozenge:UO,lozf:BO,lpar:zO,lparlt:GO,lrarr:QO,lrcorner:HO,lrhar:$O,lrhard:JO,lrm:WO,lrtri:YO,lsaquo:ZO,lscr:XO,Lscr:KO,lsh:eC,Lsh:tC,lsim:nC,lsime:rC,lsimg:iC,lsqb:oC,lsquo:aC,lsquor:sC,Lstrok:cC,lstrok:uC,ltcc:lC,ltcir:fC,lt:pC,LT:dC,Lt:hC,ltdot:vC,lthree:mC,ltimes:gC,ltlarr:yC,ltquest:bC,ltri:_C,ltrie:EC,ltrif:TC,ltrPar:kC,lurdshar:wC,luruhar:SC,lvertneqq:xC,lvnE:NC,macr:DC,male:AC,malt:OC,maltese:CC,Map:"\u2905",map:IC,mapsto:RC,mapstodown:FC,mapstoleft:LC,mapstoup:qC,marker:PC,mcomma:MC,Mcy:VC,mcy:jC,mdash:UC,mDDot:BC,measuredangle:zC,MediumSpace:GC,Mellintrf:QC,Mfr:HC,mfr:$C,mho:JC,micro:WC,midast:YC,midcir:ZC,mid:XC,middot:KC,minusb:eI,minus:tI,minusd:nI,minusdu:rI,MinusPlus:iI,mlcp:oI,mldr:aI,mnplus:sI,models:cI,Mopf:uI,mopf:lI,mp:fI,mscr:pI,Mscr:dI,mstpos:hI,Mu:vI,mu:mI,multimap:gI,mumap:yI,nabla:bI,Nacute:_I,nacute:EI,nang:TI,nap:kI,napE:wI,napid:SI,napos:xI,napprox:NI,natural:DI,naturals:AI,natur:OI,nbsp:CI,nbump:II,nbumpe:RI,ncap:FI,Ncaron:LI,ncaron:qI,Ncedil:PI,ncedil:MI,ncong:VI,ncongdot:jI,ncup:UI,Ncy:BI,ncy:zI,ndash:GI,nearhk:QI,nearr:HI,neArr:$I,nearrow:JI,ne:WI,nedot:YI,NegativeMediumSpace:ZI,NegativeThickSpace:XI,NegativeThinSpace:KI,NegativeVeryThinSpace:e1,nequiv:t1,nesear:n1,nesim:r1,NestedGreaterGreater:i1,NestedLessLess:o1,NewLine:a1,nexist:s1,nexists:c1,Nfr:u1,nfr:l1,ngE:f1,nge:p1,ngeq:d1,ngeqq:h1,ngeqslant:v1,nges:m1,nGg:g1,ngsim:y1,nGt:b1,ngt:_1,ngtr:E1,nGtv:T1,nharr:k1,nhArr:w1,nhpar:S1,ni:x1,nis:N1,nisd:D1,niv:A1,NJcy:O1,njcy:C1,nlarr:I1,nlArr:R1,nldr:F1,nlE:L1,nle:q1,nleftarrow:P1,nLeftarrow:M1,nleftrightarrow:V1,nLeftrightarrow:j1,nleq:U1,nleqq:B1,nleqslant:z1,nles:G1,nless:Q1,nLl:H1,nlsim:$1,nLt:J1,nlt:W1,nltri:Y1,nltrie:Z1,nLtv:X1,nmid:K1,NoBreak:eR,NonBreakingSpace:tR,nopf:nR,Nopf:rR,Not:iR,not:oR,NotCongruent:aR,NotCupCap:sR,NotDoubleVerticalBar:cR,NotElement:uR,NotEqual:lR,NotEqualTilde:fR,NotExists:pR,NotGreater:dR,NotGreaterEqual:hR,NotGreaterFullEqual:vR,NotGreaterGreater:mR,NotGreaterLess:gR,NotGreaterSlantEqual:yR,NotGreaterTilde:bR,NotHumpDownHump:_R,NotHumpEqual:ER,notin:TR,notindot:kR,notinE:wR,notinva:SR,notinvb:xR,notinvc:NR,NotLeftTriangleBar:DR,NotLeftTriangle:AR,NotLeftTriangleEqual:OR,NotLess:CR,NotLessEqual:IR,NotLessGreater:RR,NotLessLess:FR,NotLessSlantEqual:LR,NotLessTilde:qR,NotNestedGreaterGreater:PR,NotNestedLessLess:MR,notni:VR,notniva:jR,notnivb:UR,notnivc:BR,NotPrecedes:zR,NotPrecedesEqual:GR,NotPrecedesSlantEqual:QR,NotReverseElement:HR,NotRightTriangleBar:$R,NotRightTriangle:JR,NotRightTriangleEqual:WR,NotSquareSubset:YR,NotSquareSubsetEqual:ZR,NotSquareSuperset:XR,NotSquareSupersetEqual:KR,NotSubset:eF,NotSubsetEqual:tF,NotSucceeds:nF,NotSucceedsEqual:rF,NotSucceedsSlantEqual:iF,NotSucceedsTilde:oF,NotSuperset:aF,NotSupersetEqual:sF,NotTilde:cF,NotTildeEqual:uF,NotTildeFullEqual:lF,NotTildeTilde:fF,NotVerticalBar:pF,nparallel:dF,npar:hF,nparsl:vF,npart:mF,npolint:gF,npr:yF,nprcue:bF,nprec:_F,npreceq:EF,npre:TF,nrarrc:kF,nrarr:wF,nrArr:SF,nrarrw:xF,nrightarrow:NF,nRightarrow:DF,nrtri:AF,nrtrie:OF,nsc:CF,nsccue:IF,nsce:RF,Nscr:FF,nscr:LF,nshortmid:qF,nshortparallel:PF,nsim:MF,nsime:VF,nsimeq:jF,nsmid:UF,nspar:BF,nsqsube:zF,nsqsupe:GF,nsub:QF,nsubE:HF,nsube:$F,nsubset:JF,nsubseteq:WF,nsubseteqq:YF,nsucc:ZF,nsucceq:XF,nsup:KF,nsupE:eL,nsupe:tL,nsupset:nL,nsupseteq:rL,nsupseteqq:iL,ntgl:oL,Ntilde:aL,ntilde:sL,ntlg:cL,ntriangleleft:uL,ntrianglelefteq:lL,ntriangleright:fL,ntrianglerighteq:pL,Nu:dL,nu:hL,num:vL,numero:mL,numsp:gL,nvap:yL,nvdash:bL,nvDash:_L,nVdash:EL,nVDash:TL,nvge:kL,nvgt:wL,nvHarr:SL,nvinfin:xL,nvlArr:NL,nvle:DL,nvlt:AL,nvltrie:OL,nvrArr:CL,nvrtrie:IL,nvsim:RL,nwarhk:FL,nwarr:LL,nwArr:qL,nwarrow:PL,nwnear:ML,Oacute:VL,oacute:jL,oast:UL,Ocirc:BL,ocirc:zL,ocir:GL,Ocy:QL,ocy:HL,odash:$L,Odblac:JL,odblac:WL,odiv:YL,odot:ZL,odsold:XL,OElig:KL,oelig:eq,ofcir:tq,Ofr:nq,ofr:rq,ogon:iq,Ograve:oq,ograve:aq,ogt:sq,ohbar:cq,ohm:uq,oint:lq,olarr:fq,olcir:pq,olcross:dq,oline:hq,olt:vq,Omacr:mq,omacr:gq,Omega:yq,omega:bq,Omicron:_q,omicron:Eq,omid:Tq,ominus:kq,Oopf:wq,oopf:Sq,opar:xq,OpenCurlyDoubleQuote:Nq,OpenCurlyQuote:Dq,operp:Aq,oplus:Oq,orarr:Cq,Or:Iq,or:Rq,ord:Fq,order:Lq,orderof:qq,ordf:Pq,ordm:Mq,origof:Vq,oror:jq,orslope:Uq,orv:Bq,oS:zq,Oscr:Gq,oscr:Qq,Oslash:Hq,oslash:$q,osol:Jq,Otilde:Wq,otilde:Yq,otimesas:Zq,Otimes:Xq,otimes:Kq,Ouml:eP,ouml:tP,ovbar:nP,OverBar:rP,OverBrace:iP,OverBracket:oP,OverParenthesis:aP,para:sP,parallel:cP,par:uP,parsim:lP,parsl:fP,part:pP,PartialD:dP,Pcy:hP,pcy:vP,percnt:mP,period:gP,permil:yP,perp:bP,pertenk:_P,Pfr:EP,pfr:TP,Phi:kP,phi:wP,phiv:SP,phmmat:xP,phone:NP,Pi:DP,pi:AP,pitchfork:OP,piv:CP,planck:IP,planckh:RP,plankv:FP,plusacir:LP,plusb:qP,pluscir:PP,plus:MP,plusdo:VP,plusdu:jP,pluse:UP,PlusMinus:BP,plusmn:zP,plussim:GP,plustwo:QP,pm:HP,Poincareplane:$P,pointint:JP,popf:WP,Popf:YP,pound:ZP,prap:XP,Pr:KP,pr:eM,prcue:tM,precapprox:nM,prec:rM,preccurlyeq:iM,Precedes:oM,PrecedesEqual:aM,PrecedesSlantEqual:sM,PrecedesTilde:cM,preceq:uM,precnapprox:lM,precneqq:fM,precnsim:pM,pre:dM,prE:hM,precsim:vM,prime:mM,Prime:gM,primes:yM,prnap:bM,prnE:_M,prnsim:EM,prod:TM,Product:kM,profalar:wM,profline:SM,profsurf:xM,prop:NM,Proportional:DM,Proportion:AM,propto:OM,prsim:CM,prurel:IM,Pscr:RM,pscr:FM,Psi:LM,psi:qM,puncsp:PM,Qfr:MM,qfr:VM,qint:jM,qopf:UM,Qopf:BM,qprime:zM,Qscr:GM,qscr:QM,quaternions:HM,quatint:$M,quest:JM,questeq:WM,quot:YM,QUOT:ZM,rAarr:XM,race:KM,Racute:eV,racute:tV,radic:nV,raemptyv:rV,rang:iV,Rang:oV,rangd:aV,range:sV,rangle:cV,raquo:uV,rarrap:lV,rarrb:fV,rarrbfs:pV,rarrc:dV,rarr:hV,Rarr:vV,rArr:mV,rarrfs:gV,rarrhk:yV,rarrlp:bV,rarrpl:_V,rarrsim:EV,Rarrtl:TV,rarrtl:kV,rarrw:wV,ratail:SV,rAtail:xV,ratio:NV,rationals:DV,rbarr:AV,rBarr:OV,RBarr:CV,rbbrk:IV,rbrace:RV,rbrack:FV,rbrke:LV,rbrksld:qV,rbrkslu:PV,Rcaron:MV,rcaron:VV,Rcedil:jV,rcedil:UV,rceil:BV,rcub:zV,Rcy:GV,rcy:QV,rdca:HV,rdldhar:$V,rdquo:JV,rdquor:WV,rdsh:YV,real:ZV,realine:XV,realpart:KV,reals:ej,Re:tj,rect:nj,reg:rj,REG:ij,ReverseElement:oj,ReverseEquilibrium:aj,ReverseUpEquilibrium:sj,rfisht:cj,rfloor:uj,rfr:lj,Rfr:fj,rHar:pj,rhard:dj,rharu:hj,rharul:vj,Rho:mj,rho:gj,rhov:yj,RightAngleBracket:bj,RightArrowBar:_j,rightarrow:Ej,RightArrow:Tj,Rightarrow:kj,RightArrowLeftArrow:wj,rightarrowtail:Sj,RightCeiling:xj,RightDoubleBracket:Nj,RightDownTeeVector:Dj,RightDownVectorBar:Aj,RightDownVector:Oj,RightFloor:Cj,rightharpoondown:Ij,rightharpoonup:Rj,rightleftarrows:Fj,rightleftharpoons:Lj,rightrightarrows:qj,rightsquigarrow:Pj,RightTeeArrow:Mj,RightTee:Vj,RightTeeVector:jj,rightthreetimes:Uj,RightTriangleBar:Bj,RightTriangle:zj,RightTriangleEqual:Gj,RightUpDownVector:Qj,RightUpTeeVector:Hj,RightUpVectorBar:$j,RightUpVector:Jj,RightVectorBar:Wj,RightVector:Yj,ring:Zj,risingdotseq:Xj,rlarr:Kj,rlhar:eU,rlm:tU,rmoustache:nU,rmoust:rU,rnmid:iU,roang:oU,roarr:aU,robrk:sU,ropar:cU,ropf:uU,Ropf:lU,roplus:fU,rotimes:pU,RoundImplies:dU,rpar:hU,rpargt:vU,rppolint:mU,rrarr:gU,Rrightarrow:yU,rsaquo:bU,rscr:_U,Rscr:EU,rsh:TU,Rsh:kU,rsqb:wU,rsquo:SU,rsquor:xU,rthree:NU,rtimes:DU,rtri:AU,rtrie:OU,rtrif:CU,rtriltri:IU,RuleDelayed:RU,ruluhar:FU,rx:LU,Sacute:qU,sacute:PU,sbquo:MU,scap:VU,Scaron:jU,scaron:UU,Sc:BU,sc:zU,sccue:GU,sce:QU,scE:HU,Scedil:$U,scedil:JU,Scirc:WU,scirc:YU,scnap:ZU,scnE:XU,scnsim:KU,scpolint:eB,scsim:tB,Scy:nB,scy:rB,sdotb:iB,sdot:oB,sdote:aB,searhk:sB,searr:cB,seArr:uB,searrow:lB,sect:fB,semi:pB,seswar:dB,setminus:hB,setmn:vB,sext:mB,Sfr:gB,sfr:yB,sfrown:bB,sharp:_B,SHCHcy:EB,shchcy:TB,SHcy:kB,shcy:wB,ShortDownArrow:SB,ShortLeftArrow:xB,shortmid:NB,shortparallel:DB,ShortRightArrow:AB,ShortUpArrow:OB,shy:CB,Sigma:IB,sigma:RB,sigmaf:FB,sigmav:LB,sim:qB,simdot:PB,sime:MB,simeq:VB,simg:jB,simgE:UB,siml:BB,simlE:zB,simne:GB,simplus:QB,simrarr:HB,slarr:$B,SmallCircle:JB,smallsetminus:WB,smashp:YB,smeparsl:ZB,smid:XB,smile:KB,smt:e2,smte:t2,smtes:n2,SOFTcy:r2,softcy:i2,solbar:o2,solb:a2,sol:s2,Sopf:c2,sopf:u2,spades:l2,spadesuit:f2,spar:p2,sqcap:d2,sqcaps:h2,sqcup:v2,sqcups:m2,Sqrt:g2,sqsub:y2,sqsube:b2,sqsubset:_2,sqsubseteq:E2,sqsup:T2,sqsupe:k2,sqsupset:w2,sqsupseteq:S2,square:x2,Square:N2,SquareIntersection:D2,SquareSubset:A2,SquareSubsetEqual:O2,SquareSuperset:C2,SquareSupersetEqual:I2,SquareUnion:R2,squarf:F2,squ:L2,squf:q2,srarr:P2,Sscr:M2,sscr:V2,ssetmn:j2,ssmile:U2,sstarf:B2,Star:z2,star:G2,starf:Q2,straightepsilon:H2,straightphi:$2,strns:J2,sub:W2,Sub:Y2,subdot:Z2,subE:X2,sube:K2,subedot:ez,submult:tz,subnE:nz,subne:rz,subplus:iz,subrarr:oz,subset:az,Subset:sz,subseteq:cz,subseteqq:uz,SubsetEqual:lz,subsetneq:fz,subsetneqq:pz,subsim:dz,subsub:hz,subsup:vz,succapprox:mz,succ:gz,succcurlyeq:yz,Succeeds:bz,SucceedsEqual:_z,SucceedsSlantEqual:Ez,SucceedsTilde:Tz,succeq:kz,succnapprox:wz,succneqq:Sz,succnsim:xz,succsim:Nz,SuchThat:Dz,sum:Az,Sum:Oz,sung:Cz,sup1:Iz,sup2:Rz,sup3:Fz,sup:Lz,Sup:qz,supdot:Pz,supdsub:Mz,supE:Vz,supe:jz,supedot:Uz,Superset:Bz,SupersetEqual:zz,suphsol:Gz,suphsub:Qz,suplarr:Hz,supmult:$z,supnE:Jz,supne:Wz,supplus:Yz,supset:Zz,Supset:Xz,supseteq:Kz,supseteqq:eG,supsetneq:tG,supsetneqq:nG,supsim:rG,supsub:iG,supsup:oG,swarhk:aG,swarr:sG,swArr:cG,swarrow:uG,swnwar:lG,szlig:fG,Tab:pG,target:dG,Tau:hG,tau:vG,tbrk:mG,Tcaron:gG,tcaron:yG,Tcedil:bG,tcedil:_G,Tcy:EG,tcy:TG,tdot:kG,telrec:wG,Tfr:SG,tfr:xG,there4:NG,therefore:DG,Therefore:AG,Theta:OG,theta:CG,thetasym:IG,thetav:RG,thickapprox:FG,thicksim:LG,ThickSpace:qG,ThinSpace:PG,thinsp:MG,thkap:VG,thksim:jG,THORN:UG,thorn:BG,tilde:zG,Tilde:GG,TildeEqual:QG,TildeFullEqual:HG,TildeTilde:$G,timesbar:JG,timesb:WG,times:YG,timesd:ZG,tint:XG,toea:KG,topbot:eQ,topcir:tQ,top:nQ,Topf:rQ,topf:iQ,topfork:oQ,tosa:aQ,tprime:sQ,trade:cQ,TRADE:uQ,triangle:lQ,triangledown:fQ,triangleleft:pQ,trianglelefteq:dQ,triangleq:hQ,triangleright:vQ,trianglerighteq:mQ,tridot:gQ,trie:yQ,triminus:bQ,TripleDot:_Q,triplus:EQ,trisb:TQ,tritime:kQ,trpezium:wQ,Tscr:SQ,tscr:xQ,TScy:NQ,tscy:DQ,TSHcy:AQ,tshcy:OQ,Tstrok:CQ,tstrok:IQ,twixt:RQ,twoheadleftarrow:FQ,twoheadrightarrow:LQ,Uacute:qQ,uacute:PQ,uarr:MQ,Uarr:VQ,uArr:jQ,Uarrocir:UQ,Ubrcy:BQ,ubrcy:zQ,Ubreve:GQ,ubreve:QQ,Ucirc:HQ,ucirc:$Q,Ucy:JQ,ucy:WQ,udarr:YQ,Udblac:ZQ,udblac:XQ,udhar:KQ,ufisht:e3,Ufr:t3,ufr:n3,Ugrave:r3,ugrave:i3,uHar:o3,uharl:a3,uharr:s3,uhblk:c3,ulcorn:u3,ulcorner:l3,ulcrop:f3,ultri:p3,Umacr:d3,umacr:h3,uml:v3,UnderBar:m3,UnderBrace:g3,UnderBracket:y3,UnderParenthesis:b3,Union:_3,UnionPlus:E3,Uogon:T3,uogon:k3,Uopf:w3,uopf:S3,UpArrowBar:x3,uparrow:N3,UpArrow:D3,Uparrow:A3,UpArrowDownArrow:O3,updownarrow:C3,UpDownArrow:I3,Updownarrow:R3,UpEquilibrium:F3,upharpoonleft:L3,upharpoonright:q3,uplus:P3,UpperLeftArrow:M3,UpperRightArrow:V3,upsi:j3,Upsi:U3,upsih:B3,Upsilon:z3,upsilon:G3,UpTeeArrow:Q3,UpTee:H3,upuparrows:$3,urcorn:J3,urcorner:W3,urcrop:Y3,Uring:Z3,uring:X3,urtri:K3,Uscr:eH,uscr:tH,utdot:nH,Utilde:rH,utilde:iH,utri:oH,utrif:aH,uuarr:sH,Uuml:cH,uuml:uH,uwangle:lH,vangrt:fH,varepsilon:pH,varkappa:dH,varnothing:hH,varphi:vH,varpi:mH,varpropto:gH,varr:yH,vArr:bH,varrho:_H,varsigma:EH,varsubsetneq:TH,varsubsetneqq:kH,varsupsetneq:wH,varsupsetneqq:SH,vartheta:xH,vartriangleleft:NH,vartriangleright:DH,vBar:AH,Vbar:OH,vBarv:CH,Vcy:IH,vcy:RH,vdash:FH,vDash:LH,Vdash:qH,VDash:PH,Vdashl:MH,veebar:VH,vee:jH,Vee:UH,veeeq:BH,vellip:zH,verbar:GH,Verbar:QH,vert:HH,Vert:$H,VerticalBar:JH,VerticalLine:WH,VerticalSeparator:YH,VerticalTilde:ZH,VeryThinSpace:XH,Vfr:KH,vfr:e4,vltri:t4,vnsub:n4,vnsup:r4,Vopf:i4,vopf:o4,vprop:a4,vrtri:s4,Vscr:c4,vscr:u4,vsubnE:l4,vsubne:f4,vsupnE:p4,vsupne:d4,Vvdash:h4,vzigzag:v4,Wcirc:m4,wcirc:g4,wedbar:y4,wedge:b4,Wedge:_4,wedgeq:E4,weierp:T4,Wfr:k4,wfr:w4,Wopf:S4,wopf:x4,wp:N4,wr:D4,wreath:A4,Wscr:O4,wscr:C4,xcap:I4,xcirc:R4,xcup:F4,xdtri:L4,Xfr:q4,xfr:P4,xharr:M4,xhArr:V4,Xi:j4,xi:U4,xlarr:B4,xlArr:z4,xmap:G4,xnis:Q4,xodot:H4,Xopf:$4,xopf:J4,xoplus:W4,xotime:Y4,xrarr:Z4,xrArr:X4,Xscr:K4,xscr:e5,xsqcup:t5,xuplus:n5,xutri:r5,xvee:i5,xwedge:o5,Yacute:a5,yacute:s5,YAcy:c5,yacy:u5,Ycirc:l5,ycirc:f5,Ycy:p5,ycy:d5,yen:h5,Yfr:v5,yfr:m5,YIcy:g5,yicy:y5,Yopf:b5,yopf:_5,Yscr:E5,yscr:T5,YUcy:k5,yucy:w5,yuml:S5,Yuml:x5,Zacute:N5,zacute:D5,Zcaron:A5,zcaron:O5,Zcy:C5,zcy:I5,Zdot:R5,zdot:F5,zeetrf:L5,ZeroWidthSpace:q5,Zeta:P5,zeta:M5,zfr:V5,Zfr:j5,ZHcy:U5,zhcy:B5,zigrarr:z5,zopf:G5,Zopf:Q5,Zscr:H5,zscr:$5,zwj:J5,zwnj:W5};(function(t){t.exports=Y5})(_o);var Eo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,on={},ss={};function Z5(t){var e,n,r=ss[t];if(r)return r;for(r=ss[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function Lr(t,e,n){var r,i,o,a,s,u="";for(typeof e!="string"&&(n=e,e=Lr.defaultChars),typeof n=="undefined"&&(n=!0),s=Z5(e),r=0,i=t.length;r<i;r++){if(o=t.charCodeAt(r),n&&o===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){u+=t.slice(r,r+3),r+=2;continue}if(o<128){u+=s[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=t.charCodeAt(r+1),a>=56320&&a<=57343)){u+=encodeURIComponent(t[r]+t[r+1]),r++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(t[r])}return u}Lr.defaultChars=";/?:@&=+$,-_.!~*'()#";Lr.componentChars="-_.!~*'()";var X5=Lr,cs={};function K5(t){var e,n,r=cs[t];if(r)return r;for(r=cs[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function qr(t,e){var n;return typeof e!="string"&&(e=qr.defaultChars),n=K5(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,o,a,s,u,c,l,f="";for(i=0,o=r.length;i<o;i+=3){if(a=parseInt(r.slice(i+1,i+3),16),a<128){f+=n[a];continue}if((a&224)===192&&i+3<o&&(s=parseInt(r.slice(i+4,i+6),16),(s&192)===128)){l=a<<6&1984|s&63,l<128?f+="\uFFFD\uFFFD":f+=String.fromCharCode(l),i+=3;continue}if((a&240)===224&&i+6<o&&(s=parseInt(r.slice(i+4,i+6),16),u=parseInt(r.slice(i+7,i+9),16),(s&192)===128&&(u&192)===128)){l=a<<12&61440|s<<6&4032|u&63,l<2048||l>=55296&&l<=57343?f+="\uFFFD\uFFFD\uFFFD":f+=String.fromCharCode(l),i+=6;continue}if((a&248)===240&&i+9<o&&(s=parseInt(r.slice(i+4,i+6),16),u=parseInt(r.slice(i+7,i+9),16),c=parseInt(r.slice(i+10,i+12),16),(s&192)===128&&(u&192)===128&&(c&192)===128)){l=a<<18&1835008|s<<12&258048|u<<6&4032|c&63,l<65536||l>1114111?f+="\uFFFD\uFFFD\uFFFD\uFFFD":(l-=65536,f+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),i+=9;continue}f+="\uFFFD"}return f})}qr.defaultChars=";/?:@&=+$,#";qr.componentChars="";var e9=qr,t9=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function mr(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n9=/^([a-z0-9.+-]+:)/i,r9=/:[0-9]*$/,i9=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o9=["<",">",'"',"`"," ","\r",`
|
|
160
|
-
`," "],a9=["{","}","|","\\","^","`"].concat(o9),s9=["'"].concat(a9),us=["%","/","?",";","#"].concat(s9),ls=["/","?","#"],c9=255,fs=/^[+a-z0-9A-Z_-]{0,63}$/,u9=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ps={javascript:!0,"javascript:":!0},ds={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function l9(t,e){if(t&&t instanceof mr)return t;var n=new mr;return n.parse(t,e),n}mr.prototype.parse=function(t,e){var n,r,i,o,a,s=t;if(s=s.trim(),!e&&t.split("#").length===1){var u=i9.exec(s);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}var c=n9.exec(s);if(c&&(c=c[0],i=c.toLowerCase(),this.protocol=c,s=s.substr(c.length)),(e||c||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=s.substr(0,2)==="//",a&&!(c&&ps[c])&&(s=s.substr(2),this.slashes=!0)),!ps[c]&&(a||c&&!ds[c])){var l=-1;for(n=0;n<ls.length;n++)o=s.indexOf(ls[n]),o!==-1&&(l===-1||o<l)&&(l=o);var f,d;for(l===-1?d=s.lastIndexOf("@"):d=s.lastIndexOf("@",l),d!==-1&&(f=s.slice(0,d),s=s.slice(d+1),this.auth=f),l=-1,n=0;n<us.length;n++)o=s.indexOf(us[n]),o!==-1&&(l===-1||o<l)&&(l=o);l===-1&&(l=s.length),s[l-1]===":"&&l--;var h=s.slice(0,l);s=s.slice(l),this.parseHost(h),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var g=m[n];if(!!g&&!g.match(fs)){for(var _="",y=0,k=g.length;y<k;y++)g.charCodeAt(y)>127?_+="x":_+=g[y];if(!_.match(fs)){var A=m.slice(0,n),N=m.slice(n+1),x=g.match(u9);x&&(A.push(x[1]),N.unshift(x[2])),N.length&&(s=N.join(".")+s),this.hostname=A.join(".");break}}}}this.hostname.length>c9&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=s.indexOf("#");I!==-1&&(this.hash=s.substr(I),s=s.slice(0,I));var P=s.indexOf("?");return P!==-1&&(this.search=s.substr(P),s=s.slice(0,P)),s&&(this.pathname=s),ds[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};mr.prototype.parseHost=function(t){var e=r9.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var f9=l9;on.encode=X5;on.decode=e9;on.format=t9;on.parse=f9;var wt={},ei,hs;function gu(){return hs||(hs=1,ei=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ei}var ti,vs;function yu(){return vs||(vs=1,ti=/[\0-\x1F\x7F-\x9F]/),ti}var ni,ms;function p9(){return ms||(ms=1,ni=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ni}var ri,gs;function bu(){return gs||(gs=1,ri=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),ri}var ys;function d9(){return ys||(ys=1,wt.Any=gu(),wt.Cc=yu(),wt.Cf=p9(),wt.P=Eo,wt.Z=bu()),wt}(function(t){function e(w){return Object.prototype.toString.call(w)}function n(w){return e(w)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(w,F){return r.call(w,F)}function o(w){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(L){if(!!L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(_e){w[_e]=L[_e]})}}),w}function a(w,F,L){return[].concat(w.slice(0,F),L,w.slice(F+1))}function s(w){return!(w>=55296&&w<=57343||w>=64976&&w<=65007||(w&65535)===65535||(w&65535)===65534||w>=0&&w<=8||w===11||w>=14&&w<=31||w>=127&&w<=159||w>1114111)}function u(w){if(w>65535){w-=65536;var F=55296+(w>>10),L=56320+(w&1023);return String.fromCharCode(F,L)}return String.fromCharCode(w)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(c.source+"|"+l.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=_o.exports;function p(w,F){var L=0;return i(h,F)?h[F]:F.charCodeAt(0)===35&&d.test(F)&&(L=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),s(L))?u(L):w}function m(w){return w.indexOf("\\")<0?w:w.replace(c,"$1")}function g(w){return w.indexOf("\\")<0&&w.indexOf("&")<0?w:w.replace(f,function(F,L,_e){return L||p(F,_e)})}var _=/[&<>"]/,y=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function A(w){return k[w]}function N(w){return _.test(w)?w.replace(y,A):w}var x=/[.?*+^$[\]\\(){}|-]/g;function I(w){return w.replace(x,"\\$&")}function P(w){switch(w){case 9:case 32:return!0}return!1}function z(w){if(w>=8192&&w<=8202)return!0;switch(w){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var j=Eo;function K(w){return j.test(w)}function E(w){switch(w){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function R(w){return w=w.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(w=w.replace(/ẞ/g,"\xDF")),w.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=on,t.lib.ucmicro=d9(),t.assign=o,t.isString=n,t.has=i,t.unescapeMd=m,t.unescapeAll=g,t.isValidEntityCode=s,t.fromCodePoint=u,t.escapeHtml=N,t.arrayReplaceAt=a,t.isSpace=P,t.isWhiteSpace=z,t.isMdAsciiPunct=E,t.isPunctChar=K,t.escapeRE=I,t.normalizeReference=R})(X);var Pr={},h9=function(e,n,r){var i,o,a,s,u=-1,c=e.posMax,l=e.pos;for(e.pos=n+1,i=1;e.pos<c;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){o=!0;break}if(s=e.pos,e.md.inline.skipToken(e),a===91){if(s===e.pos-1)i++;else if(r)return e.pos=l,-1}}return o&&(u=e.pos),e.pos=l,u},bs=X.unescapeAll,v9=function(e,n,r){var i,o,a=0,s=n,u={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(i=e.charCodeAt(n),i===10||i===60)return u;if(i===62)return u.pos=n+1,u.str=bs(e.slice(s+1,n)),u.ok=!0,u;if(i===92&&n+1<r){n+=2;continue}n++}return u}for(o=0;n<r&&(i=e.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(o++,o>32))return u;if(i===41){if(o===0)break;o--}n++}return s===n||o!==0||(u.str=bs(e.slice(s,n)),u.lines=a,u.pos=n,u.ok=!0),u},m9=X.unescapeAll,g9=function(e,n,r){var i,o,a=0,s=n,u={ok:!1,pos:0,lines:0,str:""};if(n>=r||(o=e.charCodeAt(n),o!==34&&o!==39&&o!==40))return u;for(n++,o===40&&(o=41);n<r;){if(i=e.charCodeAt(n),i===o)return u.pos=n+1,u.lines=a,u.str=m9(e.slice(s+1,n)),u.ok=!0,u;if(i===40&&o===41)return u;i===10?a++:i===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&a++),n++}return u};Pr.parseLinkLabel=h9;Pr.parseLinkDestination=v9;Pr.parseLinkTitle=g9;var y9=X.assign,b9=X.unescapeAll,Lt=X.escapeHtml,ot={};ot.code_inline=function(t,e,n,r,i){var o=t[e];return"<code"+i.renderAttrs(o)+">"+Lt(t[e].content)+"</code>"};ot.code_block=function(t,e,n,r,i){var o=t[e];return"<pre"+i.renderAttrs(o)+"><code>"+Lt(t[e].content)+`</code></pre>
|
|
161
|
-
`};ot.fence=function(t,e,n,r,i){var o=t[e],a=o.info?b9(o.info).trim():"",s="",u="",c,l,f,d,h;return a&&(f=a.split(/(\s+)/g),s=f[0],u=f.slice(2).join("")),n.highlight?c=n.highlight(o.content,s,u)||Lt(o.content):c=Lt(o.content),c.indexOf("<pre")===0?c+`
|
|
162
|
-
`:a?(l=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[],l<0?d.push(["class",n.langPrefix+s]):(d[l]=d[l].slice(),d[l][1]+=" "+n.langPrefix+s),h={attrs:d},"<pre><code"+i.renderAttrs(h)+">"+c+`</code></pre>
|
|
163
|
-
`):"<pre><code"+i.renderAttrs(o)+">"+c+`</code></pre>
|
|
164
|
-
`};ot.image=function(t,e,n,r,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(t,e,n)};ot.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
165
|
-
`:`<br>
|
|
166
|
-
`};ot.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
167
|
-
`:`<br>
|
|
168
|
-
`:`
|
|
169
|
-
`};ot.text=function(t,e){return Lt(t[e].content)};ot.html_block=function(t,e){return t[e].content};ot.html_inline=function(t,e){return t[e].content};function an(){this.rules=y9({},ot)}an.prototype.renderAttrs=function(e){var n,r,i;if(!e.attrs)return"";for(i="",n=0,r=e.attrs.length;n<r;n++)i+=" "+Lt(e.attrs[n][0])+'="'+Lt(e.attrs[n][1])+'"';return i};an.prototype.renderToken=function(e,n,r){var i,o="",a=!1,s=e[n];return s.hidden?"":(s.block&&s.nesting!==-1&&n&&e[n-1].hidden&&(o+=`
|
|
170
|
-
`),o+=(s.nesting===-1?"</":"<")+s.tag,o+=this.renderAttrs(s),s.nesting===0&&r.xhtmlOut&&(o+=" /"),s.block&&(a=!0,s.nesting===1&&n+1<e.length&&(i=e[n+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===s.tag)&&(a=!1))),o+=a?`>
|
|
171
|
-
`:">",o)};an.prototype.renderInline=function(t,e,n){for(var r,i="",o=this.rules,a=0,s=t.length;a<s;a++)r=t[a].type,typeof o[r]!="undefined"?i+=o[r](t,a,e,n,this):i+=this.renderToken(t,a,e);return i};an.prototype.renderInlineAsText=function(t,e,n){for(var r="",i=0,o=t.length;i<o;i++)t[i].type==="text"?r+=t[i].content:t[i].type==="image"?r+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(r+=`
|
|
172
|
-
`);return r};an.prototype.render=function(t,e,n){var r,i,o,a="",s=this.rules;for(r=0,i=t.length;r<i;r++)o=t[r].type,o==="inline"?a+=this.renderInline(t[r].children,e,n):typeof s[o]!="undefined"?a+=s[t[r].type](t,r,e,n,this):a+=this.renderToken(t,r,e,n);return a};var _9=an;function Ke(){this.__rules__=[],this.__cache__=null}Ke.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};Ke.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){!n.enabled||n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){!r.enabled||n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn)})})};Ke.prototype.at=function(t,e,n){var r=this.__find__(t),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=i.alt||[],this.__cache__=null};Ke.prototype.before=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Ke.prototype.after=function(t,e,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};Ke.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null};Ke.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n};Ke.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};Ke.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var i=this.__find__(r);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n};Ke.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var To=Ke,E9=/\r\n?|\n/g,T9=/\0/g,k9=function(e){var n;n=e.src.replace(E9,`
|
|
173
|
-
`),n=n.replace(T9,"\uFFFD"),e.src=n},w9=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},S9=function(e){var n=e.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},x9=X.arrayReplaceAt;function N9(t){return/^<a[>\s]/i.test(t)}function D9(t){return/^<\/a\s*>/i.test(t)}var A9=function(e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,g,_,y=e.tokens,k;if(!!e.md.options.linkify){for(r=0,i=y.length;r<i;r++)if(!(y[r].type!=="inline"||!e.md.linkify.pretest(y[r].content)))for(o=y[r].children,p=0,n=o.length-1;n>=0;n--){if(s=o[n],s.type==="link_close"){for(n--;o[n].level!==s.level&&o[n].type!=="link_open";)n--;continue}if(s.type==="html_inline"&&(N9(s.content)&&p>0&&p--,D9(s.content)&&p++),!(p>0)&&s.type==="text"&&e.md.linkify.test(s.content)){for(l=s.content,k=e.md.linkify.match(l),u=[],h=s.level,d=0,c=0;c<k.length;c++)m=k[c].url,g=e.md.normalizeLink(m),e.md.validateLink(g)&&(_=k[c].text,k[c].schema?k[c].schema==="mailto:"&&!/^mailto:/i.test(_)?_=e.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=e.md.normalizeLinkText(_):_=e.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),f=k[c].index,f>d&&(a=new e.Token("text","",0),a.content=l.slice(d,f),a.level=h,u.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",g]],a.level=h++,a.markup="linkify",a.info="auto",u.push(a),a=new e.Token("text","",0),a.content=_,a.level=h,u.push(a),a=new e.Token("link_close","a",-1),a.level=--h,a.markup="linkify",a.info="auto",u.push(a),d=k[c].lastIndex);d<l.length&&(a=new e.Token("text","",0),a.content=l.slice(d),a.level=h,u.push(a)),y[r].children=o=x9(o,n,u)}}}},_u=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,O9=/\((c|tm|r|p)\)/i,C9=/\((c|tm|r|p)\)/ig,I9={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function R9(t,e){return I9[e.toLowerCase()]}function F9(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(C9,R9)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function L9(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&_u.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var q9=function(e){var n;if(!!e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(O9.test(e.tokens[n].content)&&F9(e.tokens[n].children),_u.test(e.tokens[n].content)&&L9(e.tokens[n].children))},_s=X.isWhiteSpace,Es=X.isPunctChar,Ts=X.isMdAsciiPunct,P9=/['"]/,ks=/['"]/g,ws="\u2019";function $n(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function M9(t,e){var n,r,i,o,a,s,u,c,l,f,d,h,p,m,g,_,y,k,A,N,x;for(A=[],n=0;n<t.length;n++){for(r=t[n],u=t[n].level,y=A.length-1;y>=0&&!(A[y].level<=u);y--);if(A.length=y+1,r.type!=="text")continue;i=r.content,a=0,s=i.length;e:for(;a<s&&(ks.lastIndex=a,o=ks.exec(i),!!o);){if(g=_=!0,a=o.index+1,k=o[0]==="'",l=32,o.index-1>=0)l=i.charCodeAt(o.index-1);else for(y=n-1;y>=0&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y--)if(!!t[y].content){l=t[y].content.charCodeAt(t[y].content.length-1);break}if(f=32,a<s)f=i.charCodeAt(a);else for(y=n+1;y<t.length&&!(t[y].type==="softbreak"||t[y].type==="hardbreak");y++)if(!!t[y].content){f=t[y].content.charCodeAt(0);break}if(d=Ts(l)||Es(String.fromCharCode(l)),h=Ts(f)||Es(String.fromCharCode(f)),p=_s(l),m=_s(f),m?g=!1:h&&(p||d||(g=!1)),p?_=!1:d&&(m||h||(_=!1)),f===34&&o[0]==='"'&&l>=48&&l<=57&&(_=g=!1),g&&_&&(g=d,_=h),!g&&!_){k&&(r.content=$n(r.content,o.index,ws));continue}if(_){for(y=A.length-1;y>=0&&(c=A[y],!(A[y].level<u));y--)if(c.single===k&&A[y].level===u){c=A[y],k?(N=e.md.options.quotes[2],x=e.md.options.quotes[3]):(N=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=$n(r.content,o.index,x),t[c.token].content=$n(t[c.token].content,c.pos,N),a+=x.length-1,c.token===n&&(a+=N.length-1),i=r.content,s=i.length,A.length=y;continue e}}g?A.push({token:n,pos:o.index,single:k,level:u}):_&&k&&(r.content=$n(r.content,o.index,ws))}}}var V9=function(e){var n;if(!!e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!P9.test(e.tokens[n].content)||M9(e.tokens[n].children,e)};function sn(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}sn.prototype.attrIndex=function(e){var n,r,i;if(!this.attrs)return-1;for(n=this.attrs,r=0,i=n.length;r<i;r++)if(n[r][0]===e)return r;return-1};sn.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};sn.prototype.attrSet=function(e,n){var r=this.attrIndex(e),i=[e,n];r<0?this.attrPush(i):this.attrs[r]=i};sn.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r};sn.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var ko=sn,j9=ko;function Eu(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}Eu.prototype.Token=j9;var U9=Eu,B9=To,ii=[["normalize",k9],["block",w9],["inline",S9],["linkify",A9],["replacements",q9],["smartquotes",V9]];function wo(){this.ruler=new B9;for(var t=0;t<ii.length;t++)this.ruler.push(ii[t][0],ii[t][1])}wo.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)};wo.prototype.State=U9;var z9=wo,oi=X.isSpace;function ai(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function Ss(t){var e=[],n=0,r=t.length,i,o=!1,a=0,s="";for(i=t.charCodeAt(n);n<r;)i===124&&(o?(s+=t.substring(a,n-1),a=n):(e.push(s+t.substring(a,n)),s="",a=n+1)),o=i===92,n++,i=t.charCodeAt(n);return e.push(s+t.substring(a)),e}var G9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,g,_,y,k,A,N,x;if(n+2>r||(l=n+1,e.sCount[l]<e.blkIndent)||e.sCount[l]-e.blkIndent>=4||(s=e.bMarks[l]+e.tShift[l],s>=e.eMarks[l])||(N=e.src.charCodeAt(s++),N!==124&&N!==45&&N!==58)||s>=e.eMarks[l]||(x=e.src.charCodeAt(s++),x!==124&&x!==45&&x!==58&&!oi(x))||N===45&&oi(x))return!1;for(;s<e.eMarks[l];){if(o=e.src.charCodeAt(s),o!==124&&o!==45&&o!==58&&!oi(o))return!1;s++}for(a=ai(e,n+1),f=a.split("|"),p=[],u=0;u<f.length;u++){if(m=f[u].trim(),!m){if(u===0||u===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(a=ai(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=Ss(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d=f.length,d===0||d!==p.length))return!1;if(i)return!0;for(y=e.parentType,e.parentType="table",A=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=g=[n,0],h=e.push("thead_open","thead",1),h.map=[n,n+1],h=e.push("tr_open","tr",1),h.map=[n,n+1],u=0;u<f.length;u++)h=e.push("th_open","th",1),p[u]&&(h.attrs=[["style","text-align:"+p[u]]]),h=e.push("inline","",0),h.content=f[u].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),l=n+2;l<r&&!(e.sCount[l]<e.blkIndent);l++){for(k=!1,u=0,c=A.length;u<c;u++)if(A[u](e,l,r,!0)){k=!0;break}if(k||(a=ai(e,l).trim(),!a)||e.sCount[l]-e.blkIndent>=4)break;for(f=Ss(a),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),l===n+2&&(h=e.push("tbody_open","tbody",1),h.map=_=[n+2,0]),h=e.push("tr_open","tr",1),h.map=[l,l+1],u=0;u<d;u++)h=e.push("td_open","td",1),p[u]&&(h.attrs=[["style","text-align:"+p[u]]]),h=e.push("inline","",0),h.content=f[u]?f[u].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return _&&(h=e.push("tbody_close","tbody",-1),_[1]=l),h=e.push("table_close","table",-1),g[1]=l,e.parentType=y,e.line=l,!0},Q9=function(e,n,r){var i,o,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}return e.line=o,a=e.push("code_block","code",0),a.content=e.getLines(n,o,4+e.blkIndent,!1)+`
|
|
174
|
-
`,a.map=[n,e.line],!0},H9=function(e,n,r,i){var o,a,s,u,c,l,f,d=!1,h=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>p||(o=e.src.charCodeAt(h),o!==126&&o!==96)||(c=h,h=e.skipChars(h,o),a=h-c,a<3)||(f=e.src.slice(c,h),s=e.src.slice(h,p),o===96&&s.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(u=n;u++,!(u>=r||(h=c=e.bMarks[u]+e.tShift[u],p=e.eMarks[u],h<p&&e.sCount[u]<e.blkIndent));)if(e.src.charCodeAt(h)===o&&!(e.sCount[u]-e.blkIndent>=4)&&(h=e.skipChars(h,o),!(h-c<a)&&(h=e.skipSpaces(h),!(h<p)))){d=!0;break}return a=e.sCount[n],e.line=u+(d?1:0),l=e.push("fence","code",0),l.info=s,l.content=e.getLines(n+1,u,a,!0),l.markup=f,l.map=[n,e.line],!0},xs=X.isSpace,$9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,g,_,y,k,A,N,x,I,P,z=e.lineMax,j=e.bMarks[n]+e.tShift[n],K=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(j++)!==62)return!1;if(i)return!0;for(u=h=e.sCount[n]+1,e.src.charCodeAt(j)===32?(j++,u++,h++,o=!1,A=!0):e.src.charCodeAt(j)===9?(A=!0,(e.bsCount[n]+h)%4===3?(j++,u++,h++,o=!1):o=!0):A=!1,p=[e.bMarks[n]],e.bMarks[n]=j;j<K&&(a=e.src.charCodeAt(j),xs(a));){a===9?h+=4-(h+e.bsCount[n]+(o?1:0))%4:h++;j++}for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(A?1:0),l=j>=K,y=[e.sCount[n]],e.sCount[n]=h-u,k=[e.tShift[n]],e.tShift[n]=j-e.bMarks[n],x=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",d=n+1;d<r&&(P=e.sCount[d]<e.blkIndent,j=e.bMarks[d]+e.tShift[d],K=e.eMarks[d],!(j>=K));d++){if(e.src.charCodeAt(j++)===62&&!P){for(u=h=e.sCount[d]+1,e.src.charCodeAt(j)===32?(j++,u++,h++,o=!1,A=!0):e.src.charCodeAt(j)===9?(A=!0,(e.bsCount[d]+h)%4===3?(j++,u++,h++,o=!1):o=!0):A=!1,p.push(e.bMarks[d]),e.bMarks[d]=j;j<K&&(a=e.src.charCodeAt(j),xs(a));){a===9?h+=4-(h+e.bsCount[d]+(o?1:0))%4:h++;j++}l=j>=K,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(A?1:0),y.push(e.sCount[d]),e.sCount[d]=h-u,k.push(e.tShift[d]),e.tShift[d]=j-e.bMarks[d];continue}if(l)break;for(N=!1,s=0,c=x.length;s<c;s++)if(x[s](e,d,r,!0)){N=!0;break}if(N){e.lineMax=d,e.blkIndent!==0&&(p.push(e.bMarks[d]),m.push(e.bsCount[d]),k.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),m.push(e.bsCount[d]),k.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]=-1}for(g=e.blkIndent,e.blkIndent=0,I=e.push("blockquote_open","blockquote",1),I.markup=">",I.map=f=[n,0],e.md.block.tokenize(e,n,d),I=e.push("blockquote_close","blockquote",-1),I.markup=">",e.lineMax=z,e.parentType=_,f[1]=e.line,s=0;s<k.length;s++)e.bMarks[s+n]=p[s],e.tShift[s+n]=k[s],e.sCount[s+n]=y[s],e.bsCount[s+n]=m[s];return e.blkIndent=g,!0},J9=X.isSpace,W9=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(c++),o!==42&&o!==45&&o!==95))return!1;for(a=1;c<l;){if(s=e.src.charCodeAt(c++),s!==o&&!J9(s))return!1;s===o&&a++}return a<3?!1:(i||(e.line=n+1,u=e.push("hr","hr",0),u.map=[n,e.line],u.markup=Array(a+1).join(String.fromCharCode(o))),!0)},Tu=X.isSpace;function Ns(t,e){var n,r,i,o;return r=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=t.src.charCodeAt(r),!Tu(o))?-1:r}function Ds(t,e){var n,r=t.bMarks[e]+t.tShift[e],i=r,o=t.eMarks[e];if(i+1>=o||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=t.src.charCodeAt(i),!Tu(n))?-1:i}function Y9(t,e){var n,r,i=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var Z9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,g,_,y,k,A,N,x,I,P,z,j,K,E,R,w,F,L,_e=!1,$=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.tShift[n]>=e.blkIndent&&(_e=!0),(K=Ds(e,n))>=0){if(f=!0,R=e.bMarks[n]+e.tShift[n],_=Number(e.src.slice(R,K-1)),_e&&_!==1)return!1}else if((K=Ns(e,n))>=0)f=!1;else return!1;if(_e&&e.skipSpaces(K)>=e.eMarks[n])return!1;if(g=e.src.charCodeAt(K-1),i)return!0;for(m=e.tokens.length,f?(L=e.push("ordered_list_open","ol",1),_!==1&&(L.attrs=[["start",_]])):L=e.push("bullet_list_open","ul",1),L.map=p=[n,0],L.markup=String.fromCharCode(g),k=n,E=!1,F=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";k<r;){for(j=K,y=e.eMarks[k],l=A=e.sCount[k]+K-(e.bMarks[n]+e.tShift[n]);j<y;){if(o=e.src.charCodeAt(j),o===9)A+=4-(A+e.bsCount[k])%4;else if(o===32)A++;else break;j++}if(a=j,a>=y?c=1:c=A-l,c>4&&(c=1),u=l+c,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(g),L.map=d=[n,0],f&&(L.info=e.src.slice(R,K-1)),z=e.tight,P=e.tShift[n],I=e.sCount[n],N=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[n]=a-e.bMarks[n],e.sCount[n]=A,a>=y&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||E)&&($=!1),E=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=N,e.tShift[n]=P,e.sCount[n]=I,e.tight=z,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(g),k=n=e.line,d[1]=k,a=e.bMarks[n],k>=r||e.sCount[k]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(w=!1,s=0,h=F.length;s<h;s++)if(F[s](e,k,r,!0)){w=!0;break}if(w)break;if(f){if(K=Ds(e,k),K<0)break;R=e.bMarks[k]+e.tShift[k]}else if(K=Ns(e,k),K<0)break;if(g!==e.src.charCodeAt(K-1))break}return f?L=e.push("ordered_list_close","ol",-1):L=e.push("bullet_list_close","ul",-1),L.markup=String.fromCharCode(g),p[1]=k,e.line=k,e.parentType=x,$&&Y9(e,m),!0},X9=X.normalizeReference,Jn=X.isSpace,K9=function(e,n,r,i){var o,a,s,u,c,l,f,d,h,p,m,g,_,y,k,A,N=0,x=e.bMarks[n]+e.tShift[n],I=e.eMarks[n],P=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<I;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===I||e.src.charCodeAt(x+1)!==58)return!1;break}for(u=e.lineMax,k=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";P<u&&!e.isEmpty(P);P++)if(!(e.sCount[P]-e.blkIndent>3)&&!(e.sCount[P]<0)){for(y=!1,l=0,f=k.length;l<f;l++)if(k[l](e,P,u,!0)){y=!0;break}if(y)break}for(_=e.getLines(n,P,e.blkIndent,!1).trim(),I=_.length,x=1;x<I;x++){if(o=_.charCodeAt(x),o===91)return!1;if(o===93){h=x;break}else o===10?N++:o===92&&(x++,x<I&&_.charCodeAt(x)===10&&N++)}if(h<0||_.charCodeAt(h+1)!==58)return!1;for(x=h+2;x<I;x++)if(o=_.charCodeAt(x),o===10)N++;else if(!Jn(o))break;if(m=e.md.helpers.parseLinkDestination(_,x,I),!m.ok||(c=e.md.normalizeLink(m.str),!e.md.validateLink(c)))return!1;for(x=m.pos,N+=m.lines,a=x,s=N,g=x;x<I;x++)if(o=_.charCodeAt(x),o===10)N++;else if(!Jn(o))break;for(m=e.md.helpers.parseLinkTitle(_,x,I),x<I&&g!==x&&m.ok?(A=m.str,x=m.pos,N+=m.lines):(A="",x=a,N=s);x<I&&(o=_.charCodeAt(x),!!Jn(o));)x++;if(x<I&&_.charCodeAt(x)!==10&&A)for(A="",x=a,N=s;x<I&&(o=_.charCodeAt(x),!!Jn(o));)x++;return x<I&&_.charCodeAt(x)!==10||(d=X9(_.slice(1,h)),!d)?!1:(i||(typeof e.env.references=="undefined"&&(e.env.references={}),typeof e.env.references[d]=="undefined"&&(e.env.references[d]={title:A,href:c}),e.parentType=p,e.line=n+N+1),!0)},e$=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Mr={},t$="[a-zA-Z_:][a-zA-Z0-9:._-]*",n$="[^\"'=<>`\\x00-\\x20]+",r$="'[^']*'",i$='"[^"]*"',o$="(?:"+n$+"|"+r$+"|"+i$+")",a$="(?:\\s+"+t$+"(?:\\s*=\\s*"+o$+")?)",ku="<[A-Za-z][A-Za-z0-9\\-]*"+a$+"*\\s*\\/?>",wu="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",s$="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",c$="<[?][\\s\\S]*?[?]>",u$="<![A-Z]+\\s+[^>]*>",l$="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",f$=new RegExp("^(?:"+ku+"|"+wu+"|"+s$+"|"+c$+"|"+u$+"|"+l$+")"),p$=new RegExp("^(?:"+ku+"|"+wu+")");Mr.HTML_TAG_RE=f$;Mr.HTML_OPEN_CLOSE_TAG_RE=p$;var d$=e$,h$=Mr.HTML_OPEN_CLOSE_TAG_RE,Qt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+d$.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(h$.source+"\\s*$"),/^$/,!1]],v$=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(u=e.src.slice(c,l),o=0;o<Qt.length&&!Qt[o][0].test(u);o++);if(o===Qt.length)return!1;if(i)return Qt[o][2];if(a=n+1,!Qt[o][1].test(u)){for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a],u=e.src.slice(c,l),Qt[o][1].test(u)){u.length!==0&&a++;break}}return e.line=a,s=e.push("html_block","",0),s.map=[n,a],s.content=e.getLines(n,a,e.blkIndent,!0),!0},As=X.isSpace,m$=function(e,n,r,i){var o,a,s,u,c=e.bMarks[n]+e.tShift[n],l=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(o=e.src.charCodeAt(c),o!==35||c>=l))return!1;for(a=1,o=e.src.charCodeAt(++c);o===35&&c<l&&a<=6;)a++,o=e.src.charCodeAt(++c);return a>6||c<l&&!As(o)?!1:(i||(l=e.skipSpacesBack(l,c),s=e.skipCharsBack(l,35,c),s>c&&As(e.src.charCodeAt(s-1))&&(l=s),e.line=n+1,u=e.push("heading_open","h"+String(a),1),u.markup="########".slice(0,a),u.map=[n,e.line],u=e.push("inline","",0),u.content=e.src.slice(c,l).trim(),u.map=[n,e.line],u.children=[],u=e.push("heading_close","h"+String(a),-1),u.markup="########".slice(0,a)),!0)},g$=function(e,n,r){var i,o,a,s,u,c,l,f,d,h=n+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";h<r&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(c=e.bMarks[h]+e.tShift[h],l=e.eMarks[h],c<l&&(d=e.src.charCodeAt(c),(d===45||d===61)&&(c=e.skipChars(c,d),c=e.skipSpaces(c),c>=l)))){f=d===61?1:2;break}if(!(e.sCount[h]<0)){for(o=!1,a=0,s=m.length;a<s;a++)if(m[a](e,h,r,!0)){o=!0;break}if(o)break}}return f?(i=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+1,u=e.push("heading_open","h"+String(f),1),u.markup=String.fromCharCode(d),u.map=[n,e.line],u=e.push("inline","",0),u.content=i,u.map=[n,e.line-1],u.children=[],u=e.push("heading_close","h"+String(f),-1),u.markup=String.fromCharCode(d),e.parentType=p,!0):!1},y$=function(e,n){var r,i,o,a,s,u,c=n+1,l=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(u=e.parentType,e.parentType="paragraph";c<f&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3)&&!(e.sCount[c]<0)){for(i=!1,o=0,a=l.length;o<a;o++)if(l[o](e,c,f,!0)){i=!0;break}if(i)break}return r=e.getLines(n,c,e.blkIndent,!1).trim(),e.line=c,s=e.push("paragraph_open","p",1),s.map=[n,e.line],s=e.push("inline","",0),s.content=r,s.map=[n,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=u,!0},Su=ko,Vr=X.isSpace;function at(t,e,n,r){var i,o,a,s,u,c,l,f;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,f=!1,a=s=c=l=0,u=o.length;s<u;s++){if(i=o.charCodeAt(s),!f)if(Vr(i)){c++,i===9?l+=4-l%4:l++;continue}else f=!0;(i===10||s===u-1)&&(i!==10&&s++,this.bMarks.push(a),this.eMarks.push(s),this.tShift.push(c),this.sCount.push(l),this.bsCount.push(0),f=!1,c=0,l=0,a=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}at.prototype.push=function(t,e,n){var r=new Su(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};at.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};at.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};at.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!Vr(n));e++);return e};at.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Vr(this.src.charCodeAt(--e)))return e+1;return e};at.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e};at.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e};at.prototype.getLines=function(e,n,r,i){var o,a,s,u,c,l,f,d=e;if(e>=n)return"";for(l=new Array(n-e),o=0;d<n;d++,o++){for(a=0,f=u=this.bMarks[d],d+1<n||i?c=this.eMarks[d]+1:c=this.eMarks[d];u<c&&a<r;){if(s=this.src.charCodeAt(u),Vr(s))s===9?a+=4-(a+this.bsCount[d])%4:a++;else if(u-f<this.tShift[d])a++;else break;u++}a>r?l[o]=new Array(a-r+1).join(" ")+this.src.slice(u,c):l[o]=this.src.slice(u,c)}return l.join("")};at.prototype.Token=Su;var b$=at,_$=To,Wn=[["table",G9,["paragraph","reference"]],["code",Q9],["fence",H9,["paragraph","reference","blockquote","list"]],["blockquote",$9,["paragraph","reference","blockquote","list"]],["hr",W9,["paragraph","reference","blockquote","list"]],["list",Z9,["paragraph","reference","blockquote"]],["reference",K9],["html_block",v$,["paragraph","reference","blockquote"]],["heading",m$,["paragraph","reference","blockquote"]],["lheading",g$],["paragraph",y$]];function jr(){this.ruler=new _$;for(var t=0;t<Wn.length;t++)this.ruler.push(Wn[t][0],Wn[t][1],{alt:(Wn[t][2]||[]).slice()})}jr.prototype.tokenize=function(t,e,n){for(var r,i,o=this.ruler.getRules(""),a=o.length,s=e,u=!1,c=t.md.options.maxNesting;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n||t.sCount[s]<t.blkIndent));){if(t.level>=c){t.line=n;break}for(i=0;i<a&&(r=o[i](t,s,n,!1),!r);i++);t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),s=t.line,s<n&&t.isEmpty(s)&&(u=!0,s++,t.line=s)}};jr.prototype.parse=function(t,e,n,r){var i;!t||(i=new this.State(t,e,n,r),this.tokenize(i,i.line,i.lineMax))};jr.prototype.State=b$;var E$=jr;function T$(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var k$=function(e,n){for(var r=e.pos;r<e.posMax&&!T$(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},w$=X.isSpace,S$=function(e,n){var r,i,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;for(r=e.pending.length-1,i=e.posMax,n||(r>=0&&e.pending.charCodeAt(r)===32?r>=1&&e.pending.charCodeAt(r-1)===32?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&w$(e.src.charCodeAt(o));)o++;return e.pos=o,!0},x$=X.isSpace,So=[];for(var Os=0;Os<256;Os++)So.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){So[t.charCodeAt(0)]=1});var N$=function(e,n){var r,i=e.pos,o=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i<o){if(r=e.src.charCodeAt(i),r<256&&So[r]!==0)return n||(e.pending+=e.src[i]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),i++;i<o&&(r=e.src.charCodeAt(i),!!x$(r));)i++;return e.pos=i,!0}}return n||(e.pending+="\\"),e.pos++,!0},D$=function(e,n){var r,i,o,a,s,u,c,l,f=e.pos,d=e.src.charCodeAt(f);if(d!==96)return!1;for(r=f,f++,i=e.posMax;f<i&&e.src.charCodeAt(f)===96;)f++;if(o=e.src.slice(r,f),c=o.length,e.backticksScanned&&(e.backticks[c]||0)<=r)return n||(e.pending+=o),e.pos+=c,!0;for(s=u=f;(s=e.src.indexOf("`",u))!==-1;){for(u=s+1;u<i&&e.src.charCodeAt(u)===96;)u++;if(l=u-s,l===c)return n||(a=e.push("code_inline","code",0),a.markup=o,a.content=e.src.slice(f,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=u,!0;e.backticks[l]=s}return e.backticksScanned=!0,n||(e.pending+=o),e.pos+=c,!0},Ur={};Ur.tokenize=function(e,n){var r,i,o,a,s,u=e.pos,c=e.src.charCodeAt(u);if(n||c!==126||(i=e.scanDelims(e.pos,!0),a=i.length,s=String.fromCharCode(c),a<2))return!1;for(a%2&&(o=e.push("text","",0),o.content=s,a--),r=0;r<a;r+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Cs(t,e){var n,r,i,o,a,s=[],u=e.length;for(n=0;n<u;n++)i=e[n],i.marker===126&&i.end!==-1&&(o=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[o.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[o.token-1].type==="text"&&t.tokens[o.token-1].content==="~"&&s.push(o.token-1));for(;s.length;){for(n=s.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(a=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=a)}}Ur.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Cs(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Cs(e,r[n].delimiters)};var Br={};Br.tokenize=function(e,n){var r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(n||s!==95&&s!==42)return!1;for(i=e.scanDelims(e.pos,s===42),r=0;r<i.length;r++)o=e.push("text","",0),o.content=String.fromCharCode(s),e.delimiters.push({marker:s,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function Is(t,e){var n,r,i,o,a,s,u=e.length;for(n=u-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=e[r.end],s=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),o=t.tokens[r.token],o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",o=t.tokens[i.token],o.type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}Br.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Is(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Is(e,r[n].delimiters)};var A$=X.normalizeReference,si=X.isSpace,O$=function(e,n){var r,i,o,a,s,u,c,l,f,d="",h="",p=e.pos,m=e.posMax,g=e.pos,_=!0;if(e.src.charCodeAt(e.pos)!==91||(s=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(u=a+1,u<m&&e.src.charCodeAt(u)===40){for(_=!1,u++;u<m&&(i=e.src.charCodeAt(u),!(!si(i)&&i!==10));u++);if(u>=m)return!1;if(g=u,c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),c.ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d="",g=u;u<m&&(i=e.src.charCodeAt(u),!(!si(i)&&i!==10));u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&g!==u&&c.ok)for(h=c.str,u=c.pos;u<m&&(i=e.src.charCodeAt(u),!(!si(i)&&i!==10));u++);}(u>=m||e.src.charCodeAt(u)!==41)&&(_=!0),u++}if(_){if(typeof e.env.references=="undefined")return!1;if(u<m&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(g,u++):u=a+1):u=a+1,o||(o=e.src.slice(s,a)),l=e.env.references[A$(o)],!l)return e.pos=p,!1;d=l.href,h=l.title}return n||(e.pos=s,e.posMax=a,f=e.push("link_open","a",1),f.attrs=r=[["href",d]],h&&r.push(["title",h]),e.md.inline.tokenize(e),f=e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0},C$=X.normalizeReference,ci=X.isSpace,I$=function(e,n){var r,i,o,a,s,u,c,l,f,d,h,p,m,g="",_=e.pos,y=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(u=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),s<0))return!1;if(c=s+1,c<y&&e.src.charCodeAt(c)===40){for(c++;c<y&&(i=e.src.charCodeAt(c),!(!ci(i)&&i!==10));c++);if(c>=y)return!1;for(m=c,f=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),f.ok&&(g=e.md.normalizeLink(f.str),e.md.validateLink(g)?c=f.pos:g=""),m=c;c<y&&(i=e.src.charCodeAt(c),!(!ci(i)&&i!==10));c++);if(f=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<y&&m!==c&&f.ok)for(d=f.str,c=f.pos;c<y&&(i=e.src.charCodeAt(c),!(!ci(i)&&i!==10));c++);else d="";if(c>=y||e.src.charCodeAt(c)!==41)return e.pos=_,!1;c++}else{if(typeof e.env.references=="undefined")return!1;if(c<y&&e.src.charCodeAt(c)===91?(m=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?a=e.src.slice(m,c++):c=s+1):c=s+1,a||(a=e.src.slice(u,s)),l=e.env.references[C$(a)],!l)return e.pos=_,!1;g=l.href,d=l.title}return n||(o=e.src.slice(u,s),e.md.inline.parse(o,e.md,e.env,p=[]),h=e.push("image","img",0),h.attrs=r=[["src",g],["alt",""]],h.children=p,h.content=o,d&&r.push(["title",d])),e.pos=c,e.posMax=y,!0},R$=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,F$=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,L$=function(e,n){var r,i,o,a,s,u,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(s=e.pos,u=e.posMax;;){if(++c>=u||(a=e.src.charCodeAt(c),a===60))return!1;if(a===62)break}return r=e.src.slice(s+1,c),F$.test(r)?(i=e.md.normalizeLink(r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):R$.test(r)?(i=e.md.normalizeLink("mailto:"+r),e.md.validateLink(i)?(n||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(r),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=r.length+2,!0):!1):!1},q$=Mr.HTML_TAG_RE;function P$(t){var e=t|32;return e>=97&&e<=122}var M$=function(e,n){var r,i,o,a,s=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(r=e.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!P$(r))||(i=e.src.slice(s).match(q$),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=e.src.slice(s,s+i[0].length)),e.pos+=i[0].length,!0)},Rs=_o.exports,V$=X.has,j$=X.isValidEntityCode,Fs=X.fromCodePoint,U$=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,B$=/^&([a-z][a-z0-9]{1,31});/i,z$=function(e,n){var r,i,o,a=e.pos,s=e.posMax;if(e.src.charCodeAt(a)!==38)return!1;if(a+1<s){if(r=e.src.charCodeAt(a+1),r===35){if(o=e.src.slice(a).match(U$),o)return n||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),e.pending+=j$(i)?Fs(i):Fs(65533)),e.pos+=o[0].length,!0}else if(o=e.src.slice(a).match(B$),o&&V$(Rs,o[1]))return n||(e.pending+=Rs[o[1]]),e.pos+=o[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Ls(t,e){var n,r,i,o,a,s,u,c,l={},f=e.length;if(!!f){var d=0,h=-2,p=[];for(n=0;n<f;n++)if(i=e[n],p.push(0),(e[d].marker!==i.marker||h!==i.token-1)&&(d=n),h=i.token,i.length=i.length||0,!!i.close){for(l.hasOwnProperty(i.marker)||(l[i.marker]=[-1,-1,-1,-1,-1,-1]),a=l[i.marker][(i.open?3:0)+i.length%3],r=d-p[d]-1,s=r;r>a;r-=p[r]+1)if(o=e[r],o.marker===i.marker&&o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(u=!0),!u)){c=r>0&&!e[r-1].open?p[r-1]+1:0,p[n]=n-r+c,p[r]=c,i.open=!1,o.end=n,o.close=!1,s=-1,h=-2;break}s!==-1&&(l[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}var G$=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(Ls(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&Ls(e,r[n].delimiters)},Q$=function(e){var n,r,i=0,o=e.tokens,a=e.tokens.length;for(n=r=0;n<a;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<a&&o[n+1].type==="text"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},xo=ko,qs=X.isWhiteSpace,Ps=X.isPunctChar,Ms=X.isMdAsciiPunct;function qn(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}qn.prototype.pushPending=function(){var t=new xo("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};qn.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new xo(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r};qn.prototype.scanDelims=function(t,e){var n=t,r,i,o,a,s,u,c,l,f,d=!0,h=!0,p=this.posMax,m=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<p&&this.src.charCodeAt(n)===m;)n++;return o=n-t,i=n<p?this.src.charCodeAt(n):32,c=Ms(r)||Ps(String.fromCharCode(r)),f=Ms(i)||Ps(String.fromCharCode(i)),u=qs(r),l=qs(i),l?d=!1:f&&(u||c||(d=!1)),u?h=!1:c&&(l||f||(h=!1)),e?(a=d,s=h):(a=d&&(!h||c),s=h&&(!d||f)),{can_open:a,can_close:s,length:o}};qn.prototype.Token=xo;var H$=qn,Vs=To,ui=[["text",k$],["newline",S$],["escape",N$],["backticks",D$],["strikethrough",Ur.tokenize],["emphasis",Br.tokenize],["link",O$],["image",I$],["autolink",L$],["html_inline",M$],["entity",z$]],li=[["balance_pairs",G$],["strikethrough",Ur.postProcess],["emphasis",Br.postProcess],["text_collapse",Q$]];function Pn(){var t;for(this.ruler=new Vs,t=0;t<ui.length;t++)this.ruler.push(ui[t][0],ui[t][1]);for(this.ruler2=new Vs,t=0;t<li.length;t++)this.ruler2.push(li[t][0],li[t][1])}Pn.prototype.skipToken=function(t){var e,n,r=t.pos,i=this.ruler.getRules(""),o=i.length,a=t.md.options.maxNesting,s=t.cache;if(typeof s[r]!="undefined"){t.pos=s[r];return}if(t.level<a)for(n=0;n<o&&(t.level++,e=i[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,s[r]=t.pos};Pn.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),i=r.length,o=t.posMax,a=t.md.options.maxNesting;t.pos<o;){if(t.level<a)for(n=0;n<i&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Pn.prototype.parse=function(t,e,n,r){var i,o,a,s=new this.State(t,e,n,r);for(this.tokenize(s),o=this.ruler2.getRules(""),a=o.length,i=0;i<a;i++)o[i](s)};Pn.prototype.State=H$;var $$=Pn,fi,js;function J$(){return js||(js=1,fi=function(t){var e={};e.src_Any=gu().source,e.src_Cc=yu().source,e.src_Z=bu().source,e.src_P=Eo.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),fi}function Ui(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){!n||Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function zr(t){return Object.prototype.toString.call(t)}function W$(t){return zr(t)==="[object String]"}function Y$(t){return zr(t)==="[object Object]"}function Z$(t){return zr(t)==="[object RegExp]"}function Us(t){return zr(t)==="[object Function]"}function X$(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var xu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function K$(t){return Object.keys(t||{}).reduce(function(e,n){return e||xu.hasOwnProperty(n)},!1)}var e6={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},t6="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",n6="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function r6(t){t.__index__=-1,t.__text_cache__=""}function i6(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Bs(){return function(t,e){e.normalize(t)}}function gr(t){var e=t.re=J$()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(t6),n.push(e.src_xn),e.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(s,u){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+u)}Object.keys(t.__schemas__).forEach(function(s){var u=t.__schemas__[s];if(u!==null){var c={validate:null,link:null};if(t.__compiled__[s]=c,Y$(u)){Z$(u.validate)?c.validate=i6(u.validate):Us(u.validate)?c.validate=u.validate:o(s,u),Us(u.normalize)?c.normalize=u.normalize:u.normalize?o(s,u):c.normalize=Bs();return}if(W$(u)){i.push(s);return}o(s,u)}}),i.forEach(function(s){!t.__compiled__[t.__schemas__[s]]||(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:Bs()};var a=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(X$).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),r6(t)}function o6(t,e){var n=t.__index__,r=t.__last_index__,i=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=i,this.text=i,this.url=i}function zs(t,e){var n=new o6(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Be(t,e){if(!(this instanceof Be))return new Be(t,e);e||K$(t)&&(e=t,t={}),this.__opts__=Ui({},xu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Ui({},e6,t),this.__compiled__={},this.__tlds__=n6,this.__tlds_replaced__=!1,this.re={},gr(this)}Be.prototype.add=function(e,n){return this.__schemas__[e]=n,gr(this),this};Be.prototype.set=function(e){return this.__opts__=Ui(this.__opts__,e),this};Be.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,i,o,a,s,u,c,l;if(this.re.schema_test.test(e)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],u.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(l=e.indexOf("@"),l>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0};Be.prototype.pretest=function(e){return this.re.pretest.test(e)};Be.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0};Be.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(zs(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)r.push(zs(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};Be.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),gr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gr(this),this)};Be.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};Be.prototype.onCompile=function(){};var a6=Be;const Yt=2147483647,rt=36,No=1,On=26,s6=38,c6=700,Nu=72,Du=128,Au="-",u6=/^xn--/,l6=/[^\0-\x7E]/,f6=/[\x2E\u3002\uFF0E\uFF61]/g,p6={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pi=rt-No,it=Math.floor,di=String.fromCharCode;function St(t){throw new RangeError(p6[t])}function d6(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Ou(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(f6,".");const i=t.split("."),o=d6(i,e).join(".");return r+o}function Do(t){const e=[];let n=0;const r=t.length;for(;n<r;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((i&1023)<<10)+(o&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const Cu=t=>String.fromCodePoint(...t),h6=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:rt},Gs=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Iu=function(t,e,n){let r=0;for(t=n?it(t/c6):t>>1,t+=it(t/e);t>pi*On>>1;r+=rt)t=it(t/pi);return it(r+(pi+1)*t/(t+s6))},Ao=function(t){const e=[],n=t.length;let r=0,i=Du,o=Nu,a=t.lastIndexOf(Au);a<0&&(a=0);for(let s=0;s<a;++s)t.charCodeAt(s)>=128&&St("not-basic"),e.push(t.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){let u=r;for(let l=1,f=rt;;f+=rt){s>=n&&St("invalid-input");const d=h6(t.charCodeAt(s++));(d>=rt||d>it((Yt-r)/l))&&St("overflow"),r+=d*l;const h=f<=o?No:f>=o+On?On:f-o;if(d<h)break;const p=rt-h;l>it(Yt/p)&&St("overflow"),l*=p}const c=e.length+1;o=Iu(r-u,c,u==0),it(r/c)>Yt-i&&St("overflow"),i+=it(r/c),r%=c,e.splice(r++,0,i)}return String.fromCodePoint(...e)},Oo=function(t){const e=[];t=Do(t);let n=t.length,r=Du,i=0,o=Nu;for(const u of t)u<128&&e.push(di(u));let a=e.length,s=a;for(a&&e.push(Au);s<n;){let u=Yt;for(const l of t)l>=r&&l<u&&(u=l);const c=s+1;u-r>it((Yt-i)/c)&&St("overflow"),i+=(u-r)*c,r=u;for(const l of t)if(l<r&&++i>Yt&&St("overflow"),l==r){let f=i;for(let d=rt;;d+=rt){const h=d<=o?No:d>=o+On?On:d-o;if(f<h)break;const p=f-h,m=rt-h;e.push(di(Gs(h+p%m,0))),f=it(p/m)}e.push(di(Gs(f,0))),o=Iu(i,c,s==a),i=0,++s}++i,++r}return e.join("")},Ru=function(t){return Ou(t,function(e){return u6.test(e)?Ao(e.slice(4).toLowerCase()):e})},Fu=function(t){return Ou(t,function(e){return l6.test(e)?"xn--"+Oo(e):e})},v6={version:"2.1.0",ucs2:{decode:Do,encode:Cu},decode:Ao,encode:Oo,toASCII:Fu,toUnicode:Ru},m6=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:Do,ucs2encode:Cu,decode:Ao,encode:Oo,toASCII:Fu,toUnicode:Ru,default:v6},Symbol.toStringTag,{value:"Module"})),g6=el(m6);var y6={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},b6={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},_6={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}},yn=X,E6=Pr,T6=_9,k6=z9,w6=E$,S6=$$,x6=a6,Nt=on,Lu=g6,N6={default:y6,zero:b6,commonmark:_6},D6=/^(vbscript|javascript|file|data):/,A6=/^data:image\/(gif|png|jpeg|webp);/;function O6(t){var e=t.trim().toLowerCase();return D6.test(e)?!!A6.test(e):!0}var qu=["http:","https:","mailto:"];function C6(t){var e=Nt.parse(t,!0);if(e.hostname&&(!e.protocol||qu.indexOf(e.protocol)>=0))try{e.hostname=Lu.toASCII(e.hostname)}catch(n){}return Nt.encode(Nt.format(e))}function I6(t){var e=Nt.parse(t,!0);if(e.hostname&&(!e.protocol||qu.indexOf(e.protocol)>=0))try{e.hostname=Lu.toUnicode(e.hostname)}catch(n){}return Nt.decode(Nt.format(e),Nt.decode.defaultChars+"%")}function ze(t,e){if(!(this instanceof ze))return new ze(t,e);e||yn.isString(t)||(e=t||{},t="default"),this.inline=new S6,this.block=new w6,this.core=new k6,this.renderer=new T6,this.linkify=new x6,this.validateLink=O6,this.normalizeLink=C6,this.normalizeLinkText=I6,this.utils=yn,this.helpers=yn.assign({},E6),this.options={},this.configure(t),e&&this.set(e)}ze.prototype.set=function(t){return yn.assign(this.options,t),this};ze.prototype.configure=function(t){var e=this,n;if(yn.isString(t)&&(n=t,t=N6[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this};ze.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};ze.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(i){return n.indexOf(i)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};ze.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};ze.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};ze.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};ze.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};ze.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var R6=ze;(function(t){t.exports=R6})(mu);const Co=fc(mu.exports);var F6=Array.from({length:11},function(t,e){return String.fromCharCode(8192+e)}).concat(["\u2028","\u2029","\u202F","\xA0"]),L6=new RegExp("["+F6.join("")+"]","g");function q6(t){return t.replace(L6," ")}/*!
|
|
175
|
-
* escape-html
|
|
176
|
-
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
177
|
-
* Copyright(c) 2015 Andreas Lubbe
|
|
178
|
-
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
179
|
-
* MIT Licensed
|
|
180
|
-
*/var P6=/["'&<>]/,M6=V6;function V6(t){var e=""+t,n=P6.exec(e);if(!n)return e;var r,i="",o=0,a=0;for(o=n.index;o<e.length;o++){switch(e.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(i+=e.substring(a,o)),a=o+1,i+=r}return a!==o?i+e.substring(a,o):i}var Qs=new Co;function Io(t,e,n){Z(()=>import("./codemirror.abaecb6b.js").then(r=>r.c),["assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]).then(function(r){var i=r.default,o,a;i.on(e,"select",function(s,u){if(!o){var c=u.parentNode;o=document.createElement("div"),o.className="CodeMirror-hint-information",c.appendChild(o),a=document.createElement("div"),a.className="CodeMirror-hint-deprecation",c.appendChild(a);var l;c.addEventListener("DOMNodeRemoved",l=function(p){p.target===c&&(c.removeEventListener("DOMNodeRemoved",l),o=null,a=null,l=null)})}var f=s.description?Qs.render(s.description):"Self descriptive.",d=s.type?'<span class="infoType">'+Bi(s.type)+"</span>":"";if(o.innerHTML='<div class="content">'+(f.slice(0,3)==="<p>"?"<p>"+d+f.slice(3):d+f)+"</div>",s&&a&&s.deprecationReason){var h=s.deprecationReason?Qs.render(s.deprecationReason):"";a.innerHTML='<span class="deprecation-label">Deprecated</span>'+h,a.style.display="block"}else a&&(a.style.display="none");n&&n(o)})})}function Bi(t){return t instanceof G?Bi(t.ofType)+"!":t instanceof me?"["+Bi(t.ofType)+"]":'<a class="typeName">'+M6(t.name)+"</a>"}var ut,Pu=!1;typeof window=="object"&&(Pu=window.navigator.platform==="MacIntel");var Gr=(ut={},ut[Pu?"Cmd-F":"Ctrl-F"]="findPersistent",ut["Cmd-G"]="findPersistent",ut["Ctrl-G"]="findPersistent",ut["Ctrl-Left"]="goSubwordLeft",ut["Ctrl-Right"]="goSubwordRight",ut["Alt-Left"]="goGroupLeft",ut["Alt-Right"]="goGroupRight",ut),j6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},U6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},B6=[Z(()=>import("./show-hint.3109e3e5.js").then(t=>t.s),["assets/show-hint.3109e3e5.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./matchbrackets.cc9454f4.js").then(t=>t.m),["assets/matchbrackets.cc9454f4.js","assets/matchbrackets.c7312346.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./closebrackets.99d98dd5.js").then(t=>t.c),["assets/closebrackets.99d98dd5.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./brace-fold.4663f9cf.js").then(t=>t.b),["assets/brace-fold.4663f9cf.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./foldgutter.ee499d3e.js").then(t=>t.f),["assets/foldgutter.ee499d3e.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./lint.60963316.js").then(t=>t.l),["assets/lint.60963316.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./searchcursor.ba85a794.js").then(t=>t.s),["assets/searchcursor.ba85a794.js","assets/searchcursor.7108313c.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./jump-to-line.87a1ff37.js").then(t=>t.j),["assets/jump-to-line.87a1ff37.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/dialog.c5adb1fd.js"]),Z(()=>import("./dialog.619a7a86.js").then(t=>t.d),["assets/dialog.619a7a86.js","assets/dialog.c5adb1fd.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./sublime.b2aba6cc.js").then(t=>t.s),["assets/sublime.b2aba6cc.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/searchcursor.7108313c.js","assets/matchbrackets.c7312346.js"])];function Qr(t,e){return j6(this,void 0,void 0,function(){var n,r;return U6(this,function(i){switch(i.label){case 0:return[4,Z(()=>import("./codemirror.abaecb6b.js").then(o=>o.c),["assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"])];case 1:return n=i.sent().default,r=(e==null?void 0:e.useCommonAddons)===!1?t:B6.concat(t),[4,Promise.all(r.map(function(o){return o}))];case 2:return i.sent(),[2,n]}})})}var z6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yr=globalThis&&globalThis.__assign||function(){return yr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},yr.apply(this,arguments)},G6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},Q6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},H6=new Co,$6=/^[a-zA-Z0-9_@(]$/,Hs=function(t){z6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r.ignoreChangeEvent=!1,r._node=null,r.addonModules=function(){return[Z(()=>import("./comment.66d5a4d6.js").then(i=>i.c),["assets/comment.66d5a4d6.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./search.2eca6705.js").then(i=>i.s),["assets/search.2eca6705.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/searchcursor.7108313c.js","assets/dialog.c5adb1fd.js"]),Z(()=>import("./hint.c785cfec.js").then(i=>i.h),["assets/hint.c785cfec.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/show-hint.3109e3e5.js","assets/index.bb603696.js"]),Z(()=>import("./lint.da92d9f9.js").then(i=>i.l),["assets/lint.da92d9f9.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.bb603696.js"]),Z(()=>import("./info.2efc643b.js").then(i=>i.i),["assets/info.2efc643b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/index.1ba2c642.js","assets/codemirror.abaecb6b.js","assets/SchemaReference.5821c355.js","assets/forEachState.b0c39469.js","assets/info-addon.64e18b6e.js"]),Z(()=>import("./jump.b4706269.js").then(i=>i.j),["assets/jump.b4706269.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/SchemaReference.5821c355.js","assets/index.1ba2c642.js","assets/forEachState.b0c39469.js"]),Z(()=>import("./mode.8300fee2.js").then(i=>i.m),["assets/mode.8300fee2.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.bb603696.js"])]},r._onKeyUp=function(i,o){$6.test(o.key)&&r.editor&&r.editor.execCommand("autocomplete")},r._onEdit=function(){!r.ignoreChangeEvent&&r.editor&&(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r&&(r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion),r.on("beforeChange",n._onBeforeChange))}).catch(console.error)},e.prototype.componentDidUpdate=function(n){this.ignoreChangeEvent=!0;var r=!1;this.props.schema!==n.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,r=!0),this.props.externalFragments!==n.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,r=!0),r&&this.CodeMirror.signal(this.editor,"change",this.editor),this.props.value!==n.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1},e.prototype.componentWillUnmount=function(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion))},e.prototype.render=function(){var n=this;return b("section",{className:"query-editor","aria-label":"Query Editor",ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){var n,r,i,o;return G6(this,void 0,void 0,function(){var a,s,u,c=this;return Q6(this,function(l){switch(l.label){case 0:return s=this,[4,Qr(this.addonModules())];case 1:return a=s.CodeMirror=l.sent(),u=this.editor=a(this._node,{value:(n=this.props.value)!==null&&n!==void 0?n:"",lineNumbers:!0,tabSize:2,foldGutter:{minFoldSize:4},mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,lint:{schema:this.props.schema,validationRules:(r=this.props.validationRules)!==null&&r!==void 0?r:null,externalFragments:(i=this.props)===null||i===void 0?void 0:i.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:(o=this.props)===null||o===void 0?void 0:o.externalFragments},info:{schema:this.props.schema,renderDescription:function(f){return H6.render(f)},onClick:function(f){return c.props.onClickReference&&c.props.onClickReference(f)}},jump:{schema:this.props.schema,onClick:function(f){return c.props.onClickReference&&c.props.onClickReference(f)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:yr(yr({"Cmd-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Ctrl-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Alt-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Shift-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Shift-Alt-Space":function(){return u.showHint({completeSingle:!0,container:c._node})},"Cmd-Enter":function(){c.props.onRunQuery&&c.props.onRunQuery()},"Ctrl-Enter":function(){c.props.onRunQuery&&c.props.onRunQuery()},"Shift-Ctrl-C":function(){c.props.onCopyQuery&&c.props.onCopyQuery()},"Shift-Ctrl-P":function(){c.props.onPrettifyQuery&&c.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){c.props.onPrettifyQuery&&c.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){c.props.onMergeQuery&&c.props.onMergeQuery()}},Gr),{"Cmd-S":function(){c.props.onRunQuery},"Ctrl-S":function(){c.props.onRunQuery}})}),[2,u]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e.prototype._onBeforeChange=function(n,r){if(r.origin==="paste"){var i=r.text.map(q6);r.update(r.from,r.to,i)}},e}(be.Component),J6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),zi=globalThis&&globalThis.__assign||function(){return zi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},zi.apply(this,arguments)},W6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},Y6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},$s=function(t){J6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[Z(()=>import("./hint.6ae982c2.js").then(i=>i.h),["assets/hint.6ae982c2.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.1ba2c642.js","assets/forEachState.b0c39469.js"]),Z(()=>import("./lint.a4b87fe9.js").then(i=>i.l),["assets/lint.a4b87fe9.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.1ba2c642.js"]),Z(()=>import("./mode.8f1bb41f.js").then(i=>i.m),["assets/mode.8f1bb41f.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.bb603696.js"])]},r._onKeyUp=function(i,o){var a=o.keyCode;!r.editor||(a>=65&&a<=90||!o.shiftKey&&a>=48&&a<=57||o.shiftKey&&a===189||o.shiftKey&&a===222)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){!r.editor||r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion)}).catch(console.error)},e.prototype.componentDidUpdate=function(n){if(!!this.editor&&!!this.CodeMirror){if(this.ignoreChangeEvent=!0,this.props.variableToType!==n.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==n.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},e.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},e.prototype.render=function(){var n=this;return b("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){return W6(this,void 0,void 0,function(){var n,r,i=this;return Y6(this,function(o){switch(o.label){case 0:return n=this,[4,Qr(this.addonModules())];case 1:return n.CodeMirror=o.sent(),r=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:zi({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Gr)}),[2,r]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component),Z6=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gi=globalThis&&globalThis.__assign||function(){return Gi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Gi.apply(this,arguments)},X6=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},K6=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Js=function(t){Z6(e,t);function e(n){var r=t.call(this,n)||this;return r.editor=null,r._node=null,r.ignoreChangeEvent=!1,r.addonModules=function(){return[Z(()=>import("./javascript.99d8c580.js").then(i=>i.j),["assets/javascript.99d8c580.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"])]},r._onKeyUp=function(i,o){var a=o.keyCode;!r.editor||(a>=65&&a<=90||!o.shiftKey&&a>=48&&a<=57||o.shiftKey&&a===189||o.shiftKey&&a===222)&&r.editor.execCommand("autocomplete")},r._onEdit=function(){!r.editor||r.ignoreChangeEvent||(r.cachedValue=r.editor.getValue(),r.props.onEdit&&r.props.onEdit(r.cachedValue))},r._onHasCompletion=function(i,o){Io(i,o,r.props.onHintInformationRender)},r.cachedValue=n.value||"",r}return e.prototype.componentDidMount=function(){var n=this;this.initializeEditor().then(function(r){r.on("change",n._onEdit),r.on("keyup",n._onKeyUp),r.on("hasCompletion",n._onHasCompletion)}).catch(console.error)},e.prototype.componentDidUpdate=function(n){if(!!this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==n.value&&this.props.value!==this.cachedValue){var r=this.props.value||"";this.cachedValue=r,this.editor.setValue(r)}this.ignoreChangeEvent=!1}},e.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},e.prototype.render=function(){var n=this;return b("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(r){n._node=r}})},e.prototype.initializeEditor=function(){return X6(this,void 0,void 0,function(){var n,r,i=this;return K6(this,function(o){switch(o.label){case 0:return n=this,[4,Qr(this.addonModules())];case 1:return n.CodeMirror=o.sent(),r=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Gi({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Gr)}),[2,r]}})})},e.prototype.getCodeMirror=function(){return this.editor},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component),eJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tJ=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},nJ=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ws=function(t){eJ(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.viewer=null,n._node=null,n.allAddons=function(){return[Z(()=>import("./foldgutter.ee499d3e.js").then(r=>r.f),["assets/foldgutter.ee499d3e.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./brace-fold.4663f9cf.js").then(r=>r.b),["assets/brace-fold.4663f9cf.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./dialog.619a7a86.js").then(r=>r.d),["assets/dialog.619a7a86.js","assets/dialog.c5adb1fd.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./search.2eca6705.js").then(r=>r.s),["assets/search.2eca6705.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/searchcursor.7108313c.js","assets/dialog.c5adb1fd.js"]),Z(()=>import("./searchcursor.ba85a794.js").then(r=>r.s),["assets/searchcursor.ba85a794.js","assets/searchcursor.7108313c.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css"]),Z(()=>import("./jump-to-line.87a1ff37.js").then(r=>r.j),["assets/jump-to-line.87a1ff37.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/dialog.c5adb1fd.js"]),Z(()=>import("./sublime.b2aba6cc.js").then(r=>r.s),["assets/sublime.b2aba6cc.js","assets/codemirror.abaecb6b.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/searchcursor.7108313c.js","assets/matchbrackets.c7312346.js"]),Z(()=>import("./mode.c70a4f90.js").then(r=>r.m),["assets/mode.c70a4f90.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js","assets/index.bb603696.js"])]},n}return e.prototype.componentDidMount=function(){this.initializeEditor()},e.prototype.shouldComponentUpdate=function(n){return this.props.value!==n.value},e.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},e.prototype.componentWillUnmount=function(){this.viewer=null},e.prototype.render=function(){var n=this;return b("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(r){r&&(n.props.registerRef(r),n._node=r)}})},e.prototype.initializeEditor=function(){return tJ(this,void 0,void 0,function(){var n,r,i,o;return nJ(this,function(a){switch(a.label){case 0:return[4,Qr(this.allAddons(),{useCommonAddons:!1})];case 1:return n=a.sent(),r=this.props.ResultsTooltip,i=this.props.ImagePreview,r||i?[4,Z(()=>import("./info-addon.64e18b6e.js").then(s=>s.i),["assets/info-addon.64e18b6e.js","assets/index.be55490e.js","assets/index.af3b87a2.css","assets/codemirror.abaecb6b.js"])]:[3,3];case 2:a.sent(),o=document.createElement("div"),n.registerHelper("info","graphql-results",function(s,u,c,l){var f=[];return r&&f.push(b(r,{pos:l})),i&&typeof i.shouldRender=="function"&&i.shouldRender(s)&&f.push(b(i,{token:s})),f.length?(Uo.render(b("div",{children:f}),o),o):(Uo.unmountComponentAtNode(o),null)}),a.label=3;case 3:return this.viewer=n(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Gr}),[2]}})})},e.prototype.getCodeMirror=function(){return this.viewer},e.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},e}(be.Component);function ft(t){var e=t.onClick?t.onClick:function(){return null};return Qi(t.type,e)}function Qi(t,e){return t instanceof G?V("span",{children:[Qi(t.ofType,e),"!"]}):t instanceof me?V("span",{children:["[",Qi(t.ofType,e),"]"]}):b("a",{className:"type-name",onClick:function(n){n.preventDefault(),e(t,n)},href:"#",children:t==null?void 0:t.name})}var rJ=function(t){return t?ie(t):""};function Mu(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?V("span",{children:[" = ",b("span",{className:"arg-default-value",children:rJ(Ht(e.defaultValue,e.type))})]}):null}function br(t){var e=t.arg,n=t.onClickType,r=t.showDefaultValue;return V("span",{className:"arg",children:[b("span",{className:"arg-name",children:e.name}),": ",b(ft,{type:e.type,onClick:n}),r!==!1&&b(Mu,{field:e})]})}function iJ(t){var e=t.directive;return V("span",{className:"doc-category-item",id:e.name.value,children:["@",e.name.value]})}var oJ=new Co({breaks:!0,linkify:!0});function Le(t){var e=t.markdown,n=t.className;return e?b("div",{className:n,dangerouslySetInnerHTML:{__html:oJ.render(e)}}):b("div",{})}var aJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o};function sJ(t){var e=t.field,n=t.onClickType,r=aJ(be.useState(!1),2),i=r[0],o=r[1],a,s;if(e&&"args"in e&&e.args.length>0){a=V("div",{id:"doc-args",className:"doc-category",children:[b("div",{className:"doc-category-title",children:"arguments"}),e.args.filter(function(l){return!l.deprecationReason}).map(function(l){return V("div",{className:"doc-category-item",children:[b("div",{children:b(br,{arg:l,onClickType:n})}),b(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&b(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},l.name)})]});var u=e.args.filter(function(l){return Boolean(l.deprecationReason)});u.length>0&&(s=V("div",{id:"doc-deprecated-args",className:"doc-category",children:[b("div",{className:"doc-category-title",children:"deprecated arguments"}),i?u.map(function(l,f){return V("div",{children:[b("div",{children:b(br,{arg:l,onClickType:n})}),b(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&b(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},f)}):b("button",{className:"show-btn",onClick:function(){return o(!i)},children:"Show deprecated arguments..."})]}))}var c;return e&&e.astNode&&e.astNode.directives&&e.astNode.directives.length>0&&(c=V("div",{id:"doc-directives",className:"doc-category",children:[b("div",{className:"doc-category-title",children:"directives"}),e.astNode.directives.map(function(l){return b("div",{className:"doc-category-item",children:b("div",{children:b(iJ,{directive:l})})},l.name.value)})]})),V("div",{children:[b(Le,{className:"doc-type-description",markdown:(e==null?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&b(Le,{className:"doc-deprecation",markdown:e==null?void 0:e.deprecationReason}),V("div",{className:"doc-category",children:[b("div",{className:"doc-category-title",children:"type"}),b(ft,{type:e==null?void 0:e.type,onClick:n})]}),a,c,s]})}function cJ(t){var e=t.schema,n=t.onClickType,r=e.getQueryType(),i=e.getMutationType&&e.getMutationType(),o=e.getSubscriptionType&&e.getSubscriptionType();return V("div",{children:[b(Le,{className:"doc-type-description",markdown:e.description||"A GraphQL schema provides a root type for each kind of operation."}),V("div",{className:"doc-category",children:[b("div",{className:"doc-category-title",children:"root types"}),V("div",{className:"doc-category-item",children:[b("span",{className:"keyword",children:"query"}),": ",b(ft,{type:r,onClick:n})]}),i&&V("div",{className:"doc-category-item",children:[b("span",{className:"keyword",children:"mutation"}),": ",b(ft,{type:i,onClick:n})]}),o&&V("div",{className:"doc-category-item",children:[b("span",{className:"keyword",children:"subscription"}),": ",b(ft,{type:o,onClick:n})]})]})]})}function tt(t,e){var n;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=window.setTimeout(function(){n=null,e.apply(r,i)},t)}}var uJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lJ=function(t){uJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleChange=function(i){var o=i.currentTarget.value;r.setState({value:o}),r.debouncedOnSearch(o)},r.handleClear=function(){r.setState({value:""}),r.props.onSearch("")},r.state={value:n.value||""},r.debouncedOnSearch=tt(200,r.props.onSearch),r}return e.prototype.render=function(){return V("label",{className:"search-box",children:[b("div",{className:"search-box-icon","aria-hidden":"true",children:"\u26B2"}),b("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&b("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input",children:"\u2715"})]})},e}(be.Component),fJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pJ=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dJ=function(t){fJ(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.shouldComponentUpdate=function(n){return this.props.schema!==n.schema||this.props.searchValue!==n.searchValue},e.prototype.render=function(){var n,r,i=this.props.searchValue,o=this.props.withinType,a=this.props.schema,s=this.props.onClickType,u=this.props.onClickField,c=[],l=[],f=[],d=a.getTypeMap(),h=Object.keys(d);o&&(h=h.filter(function(k){return k!==o.name}),h.unshift(o.name));var p=function(k){if(c.length+l.length+f.length>=100)return"break";var A=d[k];if(o!==A&&hi(k,i)&&l.push(b("div",{className:"doc-category-item",children:b(ft,{type:A,onClick:s})},k)),A&&"getFields"in A){var N=A.getFields();Object.keys(N).forEach(function(x){var I=N[x],P;if(!hi(x,i))if("args"in I&&I.args.length){if(P=I.args.filter(function(j){return hi(j.name,i)}),P.length===0)return}else return;var z=V("div",{className:"doc-category-item",children:[o!==A&&[b(ft,{type:A,onClick:s},"type"),"."],b("a",{className:"field-name",onClick:function(j){return u(I,A,j)},children:I.name}),P&&["(",b("span",{children:P.map(function(j){return b(br,{arg:j,onClickType:s,showDefaultValue:!1},j.name)})},"args"),")"]]},k+"."+x);o===A?c.push(z):f.push(z)})}};try{for(var m=pJ(h),g=m.next();!g.done;g=m.next()){var _=g.value,y=p(_);if(y==="break")break}}catch(k){n={error:k}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return c.length+l.length+f.length===0?b("span",{className:"doc-alert-text",children:"No results found."}):o&&l.length+f.length>0?V("div",{children:[c,V("div",{className:"doc-category",children:[b("div",{className:"doc-category-title",children:"other results"}),l,f]})]}):V("div",{className:"doc-search-items",children:[c,l,f]})},e}(be.Component);function hi(t,e){try{var n=e.replace(/[^_0-9A-Za-z]/g,function(r){return"\\"+r});return t.search(new RegExp(n,"i"))!==-1}catch(r){return t.toLowerCase().indexOf(e.toLowerCase())!==-1}}var hJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vJ=function(t){hJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleShowDeprecated=function(){return r.setState({showDeprecated:!0})},r.state={showDeprecated:!1},r}return e.prototype.shouldComponentUpdate=function(n,r){return this.props.type!==n.type||this.props.schema!==n.schema||this.state.showDeprecated!==r.showDeprecated},e.prototype.render=function(){var n=this.props.schema,r=this.props.type,i=this.props.onClickType,o=this.props.onClickField,a=null,s=[];r instanceof Dr?(a="possible types",s=n.getPossibleTypes(r)):r instanceof Nr?(a="implementations",s=n.getPossibleTypes(r)):r instanceof Me&&(a="implements",s=r.getInterfaces());var u;s&&s.length>0&&(u=V("div",{id:"doc-types",className:"doc-category",children:[b("div",{className:"doc-category-title",children:a}),s.map(function(y){return b("div",{className:"doc-category-item",children:b(ft,{type:y,onClick:i})},y.name)})]}));var c,l;if(r&&"getFields"in r){var f=r.getFields(),d=Object.keys(f).map(function(y){return f[y]});c=V("div",{id:"doc-fields",className:"doc-category",children:[b("div",{className:"doc-category-title",children:"fields"}),d.filter(function(y){return!y.deprecationReason}).map(function(y){return b(Ys,{type:r,field:y,onClickType:i,onClickField:o},y.name)})]});var h=d.filter(function(y){return Boolean(y.deprecationReason)});h.length>0&&(l=V("div",{id:"doc-deprecated-fields",className:"doc-category",children:[b("div",{className:"doc-category-title",children:"deprecated fields"}),this.state.showDeprecated?h.map(function(y){return b(Ys,{type:r,field:y,onClickType:i,onClickField:o},y.name)}):b("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated fields..."})]}))}var p,m;if(r instanceof tn){var g=r.getValues();p=V("div",{className:"doc-category",children:[b("div",{className:"doc-category-title",children:"values"}),g.filter(function(y){return Boolean(!y.deprecationReason)}).map(function(y){return b(Zs,{value:y},y.name)})]});var _=g.filter(function(y){return Boolean(y.deprecationReason)});_.length>0&&(m=V("div",{className:"doc-category",children:[b("div",{className:"doc-category-title",children:"deprecated values"}),this.state.showDeprecated?_.map(function(y){return b(Zs,{value:y},y.name)}):b("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated values..."})]}))}return V("div",{children:[b(Le,{className:"doc-type-description",markdown:"description"in r&&r.description||"No Description"}),r instanceof Me&&u,c,l,p,m,!(r instanceof Me)&&u]})},e}(be.Component);function Ys(t){var e=t.type,n=t.field,r=t.onClickType,i=t.onClickField;return V("div",{className:"doc-category-item",children:[b("a",{className:"field-name",onClick:function(o){return i(n,e,o)},children:n.name}),"args"in n&&n.args&&n.args.length>0&&["(",b("span",{children:n.args.filter(function(o){return!o.deprecationReason}).map(function(o){return b(br,{arg:o,onClickType:r},o.name)})},"args"),")"],": ",b(ft,{type:n.type,onClick:r}),b(Mu,{field:n}),n.description&&b(Le,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&b(Le,{className:"doc-deprecation",markdown:n.deprecationReason})]})}function Zs(t){var e=t.value;return V("div",{className:"doc-category-item",children:[b("div",{className:"enum-value",children:e.name}),b(Le,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&b(Le,{className:"doc-deprecation",markdown:e.deprecationReason})]})}var mJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_r=globalThis&&globalThis.__assign||function(){return _r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_r.apply(this,arguments)},Xs={name:"Schema",title:"Documentation Explorer"},gJ=function(t){mJ(e,t);function e(n){var r=t.call(this,n)||this;return r.handleNavBackClick=function(){r.state.navStack.length>1&&r.setState({navStack:r.state.navStack.slice(0,-1)})},r.handleClickType=function(i){r.showDoc(i)},r.handleClickField=function(i){r.showDoc(i)},r.handleSearch=function(i){r.showSearch(i)},r.state={navStack:[Xs]},r}return e.prototype.shouldComponentUpdate=function(n,r){return this.props.schema!==n.schema||this.state.navStack!==r.navStack||this.props.schemaErrors!==n.schemaErrors},e.prototype.render=function(){var n=this.props,r=n.schema,i=n.schemaErrors,o=this.state.navStack,a=o[o.length-1],s;i?s=b("div",{className:"error-container",children:"Error fetching schema"}):r===void 0?s=b("div",{className:"spinner-container",children:b("div",{className:"spinner"})}):r?a.search?s=b(dJ,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?s=b(cJ,{schema:r,onClickType:this.handleClickType}):wn(a.def)?s=b(vJ,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):s=b(sJ,{field:a.def,onClickType:this.handleClickType}):s=b("div",{className:"error-container",children:"No Schema Available"});var u=o.length===1||wn(a.def)&&"getFields"in a.def,c;return o.length>1&&(c=o[o.length-2].name),V("section",{className:"doc-explorer","aria-label":"Documentation Explorer",children:[V("div",{className:"doc-explorer-title-bar",children:[c&&b("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c,children:c}),b("div",{className:"doc-explorer-title",children:a.title||a.name}),b("div",{className:"doc-explorer-rhs",children:this.props.children})]}),V("div",{className:"doc-explorer-contents",children:[u&&b(lJ,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),s]})]},a.name)},e.prototype.showDoc=function(n){var r=this.state.navStack,i=r[r.length-1];i.def!==n&&this.setState({navStack:r.concat([{name:n.name,def:n}])})},e.prototype.showDocForReference=function(n){n&&n.kind==="Type"?this.showDoc(n.type):n.kind==="Field"?this.showDoc(n.field):n.kind==="Argument"&&n.field?this.showDoc(n.field):n.kind==="EnumValue"&&n.type&&this.showDoc(n.type)},e.prototype.showSearch=function(n){var r=this.state.navStack.slice(),i=r[r.length-1];r[r.length-1]=_r(_r({},i),{search:n}),this.setState({navStack:r})},e.prototype.reset=function(){this.setState({navStack:[Xs]})},e}(be.Component),yJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bJ=function(t){yJ(e,t);function e(n){var r=t.call(this,n)||this;return r.state={editable:!1},r.editField=null,r}return e.prototype.render=function(){var n=this,r,i=this.props.label||this.props.operationName||((r=this.props.query)===null||r===void 0?void 0:r.split(`
|
|
181
|
-
`).filter(function(a){return a.indexOf("#")!==0}).join("")),o=this.props.favorite?"\u2605":"\u2606";return V("li",{className:this.state.editable?"editable":void 0,children:[this.state.editable?b("input",{type:"text",defaultValue:this.props.label,ref:function(a){n.editField=a},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):b("button",{className:"history-label",onClick:this.handleClick.bind(this),children:i}),b("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label",children:"\u270E"}),b("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite",children:o})]})},e.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},e.prototype.handleStarClick=function(n){n.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},e.prototype.handleFieldBlur=function(n){n.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,n.target.value,this.props.favorite)},e.prototype.handleFieldKeyDown=function(n){n.keyCode===13&&(n.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,n.currentTarget.value,this.props.favorite))},e.prototype.handleEditClick=function(n){var r=this;n.stopPropagation(),this.setState({editable:!0},function(){r.editField&&r.editField.focus()})},e}(be.Component),_J=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},EJ=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(_J(arguments[e]));return t},Ks=function(){function t(e,n,r){r===void 0&&(r=null),this.key=e,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}return Object.defineProperty(t.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),t.prototype.contains=function(e){return this.items.some(function(n){return n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName})},t.prototype.edit=function(e){var n=this.items.findIndex(function(r){return r.query===e.query&&r.variables===e.variables&&r.headers===e.headers&&r.operationName===e.operationName});n!==-1&&(this.items.splice(n,1,e),this.save())},t.prototype.delete=function(e){var n=this.items.findIndex(function(r){return r.query===e.query&&r.variables===e.variables&&r.headers===e.headers&&r.operationName===e.operationName});n!==-1&&(this.items.splice(n,1),this.save())},t.prototype.fetchRecent=function(){return this.items[this.items.length-1]},t.prototype.fetchAll=function(){var e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]},t.prototype.push=function(e){var n,r=EJ(this.items,[e]);this.maxSize&&r.length>this.maxSize&&r.shift();for(var i=0;i<5;i++){var o=this.storage.set(this.key,JSON.stringify((n={},n[this.key]=r,n)));if(!o||!o.error)this.items=r;else if(o.isQuotaError&&this.maxSize)r.shift();else return}},t.prototype.save=function(){var e;this.storage.set(this.key,JSON.stringify((e={},e[this.key]=this.items,e)))},t}(),Er=globalThis&&globalThis.__assign||function(){return Er=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Er.apply(this,arguments)},TJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},ec=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(TJ(arguments[e]));return t},kJ=1e5,Vu=function(){function t(e,n){var r=this;this.storage=e,this.maxHistoryLength=n,this.shouldSaveQuery=function(i,o,a,s){if(!i)return!1;try{It(i)}catch(u){return!1}return i.length>kJ?!1:s?!(JSON.stringify(i)===JSON.stringify(s.query)&&(JSON.stringify(o)===JSON.stringify(s.variables)&&(JSON.stringify(a)===JSON.stringify(s.headers)||a&&!s.headers)||o&&!s.variables)):!0},this.fetchAllQueries=function(){var i=r.history.fetchAll(),o=r.favorite.fetchAll();return i.concat(o)},this.updateHistory=function(i,o,a,s){if(r.shouldSaveQuery(i,o,a,r.history.fetchRecent())){r.history.push({query:i,variables:o,headers:a,operationName:s});var u=r.history.items,c=r.favorite.items;r.queries=u.concat(c)}},this.toggleFavorite=function(i,o,a,s,u,c){var l={query:i,variables:o,headers:a,operationName:s,label:u};r.favorite.contains(l)?c&&(l.favorite=!1,r.favorite.delete(l)):(l.favorite=!0,r.favorite.push(l)),r.queries=ec(r.history.items,r.favorite.items)},this.editLabel=function(i,o,a,s,u,c){var l={query:i,variables:o,headers:a,operationName:s,label:u};c?r.favorite.edit(Er(Er({},l),{favorite:c})):r.history.edit(l),r.queries=ec(r.history.items,r.favorite.items)},this.history=new Ks("queries",this.storage,this.maxHistoryLength),this.favorite=new Ks("favorites",this.storage,null),this.queries=this.fetchAllQueries()}return t}(),wJ=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hi=globalThis&&globalThis.__assign||function(){return Hi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Hi.apply(this,arguments)},SJ=function(t){wJ(e,t);function e(n){var r=t.call(this,n)||this;r.onUpdateHistory=function(o,a,s,u){r.historyStore.updateHistory(o,a,s,u),r.setState({queries:r.historyStore.queries})},r.onHandleEditLabel=function(o,a,s,u,c,l){r.historyStore.editLabel(o,a,s,u,c,l),r.setState({queries:r.historyStore.queries})},r.onToggleFavorite=function(o,a,s,u,c,l){r.historyStore.toggleFavorite(o,a,s,u,c,l),r.setState({queries:r.historyStore.queries})},r.historyStore=new Vu(r.props.storage,r.props.maxHistoryLength);var i=r.historyStore.queries;return r.state={queries:i},r}return e.prototype.render=function(){var n=this,r=this.state.queries.slice().reverse(),i=r.map(function(o,a){return b(bJ,{...Hi({handleEditLabel:n.onHandleEditLabel,handleToggleFavorite:n.onToggleFavorite,key:a+":"+(o.label||o.query),onSelect:n.props.onSelectQuery},o)})});return V("section",{"aria-label":"History",children:[V("div",{className:"history-title-bar",children:[b("div",{className:"history-title",children:"History"}),b("div",{className:"doc-explorer-rhs",children:this.props.children})]}),b("ul",{className:"history-contents",children:i})]})},e}(be.Component),xJ=function(){function t(){this.sizes=[]}return t.prototype.updateSizes=function(e){var n=this;e.forEach(function(r,i){if(r){var o=r.getClientHeight();if(i<=n.sizes.length&&o!==n.sizes[i]){var a=r.getCodeMirror();a&&a.setSize(null,null)}n.sizes[i]=o}})},t}();function NJ(t,e){return e instanceof DOMException&&(e.code===22||e.code===1014||e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED")&&t.length!==0}var DJ=function(){function t(e){this.storage=e||(typeof window!="undefined"?window.localStorage:null)}return t.prototype.get=function(e){if(this.storage){var n=this.storage.getItem("graphiql:"+e);if(n==="null"||n==="undefined")return this.storage.removeItem("graphiql:"+e),null;if(n)return n}return null},t.prototype.set=function(e,n){var r=!1,i=null;if(this.storage){var o="graphiql:"+e;if(n)try{this.storage.setItem(o,n)}catch(a){i=a,r=NJ(this.storage,a)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}},t}();function tc(t,e,n){if(!(!n||n.length<1)){var r=n.map(function(a){return a.name&&a.name.value});if(e&&r.indexOf(e)!==-1)return e;if(e&&t){var i=t.map(function(a){return a.name&&a.name.value}),o=i.indexOf(e);if(o!==-1&&o<r.length)return r[o]}return r[0]}}function vi(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}function AJ(t,e,n){var r=[];if(!t||!e)return{insertions:r,result:e};var i;try{i=It(e)}catch(s){return{insertions:r,result:e}}var o=n||OJ,a=new Ir(t);return Ye(i,{leave:function(s){a.leave(s)},enter:function(s){if(a.enter(s),s.kind==="Field"&&!s.selectionSet){var u=a.getType(),c=ju(RJ(u),o);if(c&&s.loc){var l=IJ(e,s.loc.start);r.push({index:s.loc.end,string:" "+ie(c).replace(/\n/g,`
|
|
182
|
-
`+l)})}}}}),{insertions:r,result:CJ(e,r)}}function OJ(t){if(!("getFields"in t))return[];var e=t.getFields();if(e.id)return["id"];if(e.edges)return["edges"];if(e.node)return["node"];var n=[];return Object.keys(e).forEach(function(r){dt(e[r].type)&&n.push(r)}),n}function ju(t,e){var n=Ne(t);if(!(!t||dt(t))){var r=e(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:v.SELECTION_SET,selections:r.map(function(i){var o=n.getFields()[i],a=o?o.type:null;return{kind:v.FIELD,name:{kind:v.NAME,value:i},selectionSet:ju(a,e)}})}}}function CJ(t,e){if(e.length===0)return t;var n="",r=0;return e.forEach(function(i){var o=i.index,a=i.string;n+=t.slice(r,o)+a,r=o}),n+=t.slice(r),n}function IJ(t,e){for(var n=e,r=e;n;){var i=t.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return t.substring(n,r)}function RJ(t){if(t)return t}function Yn(t){for(var e=0,n=t;n.offsetParent;)e+=n.offsetLeft,n=n.offsetParent;return e}function nc(t){for(var e=0,n=t;n.offsetParent;)e+=n.offsetTop,n=n.offsetParent;return e}var Zt=globalThis&&globalThis.__assign||function(){return Zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Zt.apply(this,arguments)},Ro=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},FJ=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Uu=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(FJ(arguments[e]));return t};function LJ(t,e){var n,r,i=new Map,o=[];try{for(var a=Ro(t),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.kind==="Field"){var c=e(u),l=i.get(c);if(u.directives&&u.directives.length){var f=Zt({},u);o.push(f)}else if(l&&l.selectionSet&&u.selectionSet)l.selectionSet.selections=Uu(l.selectionSet.selections,u.selectionSet.selections);else if(!l){var f=Zt({},u);i.set(c,f),o.push(f)}}else o.push(u)}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function Bu(t,e,n){var r,i,o,a=n?Ne(n).name:null,s=[],u=[];try{for(var c=Ro(e),l=c.next();!l.done;l=c.next()){var f=l.value;if(f.kind==="FragmentSpread"){var d=f.name.value;if(!f.directives||f.directives.length===0){if(u.indexOf(d)>=0)continue;u.push(d)}var h=t[f.name.value];if(h){var p=h.typeCondition,m=h.directives,g=h.selectionSet;f={kind:v.INLINE_FRAGMENT,typeCondition:p,directives:m,selectionSet:g}}}if(f.kind===v.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){var _=f.typeCondition?f.typeCondition.name.value:null;if(!_||_===a){s.push.apply(s,Uu(Bu(t,f.selectionSet.selections,n)));continue}}s.push(f)}}catch(y){r={error:y}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return s}function qJ(t,e){var n,r,i=e?new Ir(e):null,o=Object.create(null);try{for(var a=Ro(t.definitions),s=a.next();!s.done;s=a.next()){var u=s.value;u.kind===v.FRAGMENT_DEFINITION&&(o[u.name.value]=u)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var c={SelectionSet:function(l){var f=i?i.getParentType():null,d=l.selections;return d=Bu(o,d,f),d=LJ(d,function(h){return h.alias?h.alias.value:h.name.value}),Zt(Zt({},l),{selections:d})},FragmentDefinition:function(){return null}};return Ye(t,i?co(i,c):c)}var PJ="IntrospectionQuery",MJ=PJ;/*!
|
|
183
|
-
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
184
|
-
*
|
|
185
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
186
|
-
* Released under the MIT License.
|
|
187
|
-
*/var VJ=function(e){return typeof e=="object"?e===null:typeof e!="function"};/*!
|
|
188
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
189
|
-
*
|
|
190
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
191
|
-
* Released under the MIT License.
|
|
192
|
-
*/var jJ=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*!
|
|
193
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
194
|
-
*
|
|
195
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
196
|
-
* Released under the MIT License.
|
|
197
|
-
*/var UJ=jJ;function rc(t){return UJ(t)===!0&&Object.prototype.toString.call(t)==="[object Object]"}var BJ=function(e){var n,r;return!(rc(e)===!1||(n=e.constructor,typeof n!="function")||(r=n.prototype,rc(r)===!1)||r.hasOwnProperty("isPrototypeOf")===!1)};/*!
|
|
198
|
-
* set-value <https://github.com/jonschlinkert/set-value>
|
|
199
|
-
*
|
|
200
|
-
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
201
|
-
* Released under the MIT License.
|
|
202
|
-
*/const{deleteProperty:zJ}=Reflect,GJ=VJ,ic=BJ,oc=t=>typeof t=="object"&&t!==null||typeof t=="function",QJ=t=>t==="__proto__"||t==="constructor"||t==="prototype",Fo=t=>{if(!GJ(t))throw new TypeError("Object keys must be strings or symbols");if(QJ(t))throw new Error(`Cannot set unsafe key: "${t}"`)},HJ=t=>Array.isArray(t)?t.flat().map(String).join(","):t,$J=(t,e)=>{if(typeof t!="string"||!e)return t;let n=t+";";return e.arrays!==void 0&&(n+=`arrays=${e.arrays};`),e.separator!==void 0&&(n+=`separator=${e.separator};`),e.split!==void 0&&(n+=`split=${e.split};`),e.merge!==void 0&&(n+=`merge=${e.merge};`),e.preservePaths!==void 0&&(n+=`preservePaths=${e.preservePaths};`),n},JJ=(t,e,n)=>{const r=HJ(e?$J(t,e):t);Fo(r);const i=qt.cache.get(r)||n();return qt.cache.set(r,i),i},WJ=(t,e={})=>{const n=e.separator||".",r=n==="/"?!1:e.preservePaths;if(typeof t=="string"&&r!==!1&&/\//.test(t))return[t];const i=[];let o="";const a=s=>{let u;s.trim()!==""&&Number.isInteger(u=Number(s))?i.push(u):i.push(s)};for(let s=0;s<t.length;s++){const u=t[s];if(u==="\\"){o+=t[++s];continue}if(u===n){a(o),o="";continue}o+=u}return o&&a(o),i},zu=(t,e)=>e&&typeof e.split=="function"?e.split(t):typeof t=="symbol"?[t]:Array.isArray(t)?t:JJ(t,e,()=>WJ(t,e)),YJ=(t,e,n,r)=>{if(Fo(e),n===void 0)zJ(t,e);else if(r&&r.merge){const i=r.merge==="function"?r.merge:Object.assign;i&&ic(t[e])&&ic(n)?t[e]=i(t[e],n):t[e]=n}else t[e]=n;return t},qt=(t,e,n,r)=>{if(!e||!oc(t))return t;const i=zu(e,r);let o=t;for(let a=0;a<i.length;a++){const s=i[a],u=i[a+1];if(Fo(s),u===void 0){YJ(o,s,n,r);break}if(typeof u=="number"&&!Array.isArray(o[s])){o=o[s]=[];continue}oc(o[s])||(o[s]={}),o=o[s]}return t};qt.split=zu;qt.cache=new Map;qt.clear=()=>{qt.cache=new Map};var ZJ=qt,Tr=globalThis&&globalThis.__assign||function(){return Tr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Tr.apply(this,arguments)};function XJ(t){return b("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(e){e.stopPropagation(),t.onClick()}})}function KJ(t){return V("button",{...Tr({},t.tabProps,{role:"tab",type:"button","aria-selected":t.isActive,title:t.title,className:"tab"+(t.isActive?" active":""),onClick:t.onSelect}),children:[t.title,t.isCloseable?b(XJ,{onClick:function(){return t.onClose()}}):null]})}function e8(t){return b("button",{onClick:t.onClick,className:"tab-add",title:"Create new tab",children:b("span",{children:"+"})})}function t8(t){return b("div",{...Tr({role:"tablist",className:"tabs"},t.tabsProps),children:t.children})}function n8(t){var e,n=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/,r=n.exec(t);return(e=r==null?void 0:r[2])!==null&&e!==void 0?e:"<untitled>"}function Pt(t){var e,n,r;return[(e=t.query)!==null&&e!==void 0?e:"",(n=t.variables)!==null&&n!==void 0?n:"",(r=t.headers)!==null&&r!==void 0?r:""].join("|")}function $i(){var t=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}var r8=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=globalThis&&globalThis.__assign||function(){return U=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},U.apply(this,arguments)},mi=globalThis&&globalThis.__awaiter||function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(l){try{c(r.next(l))}catch(f){a(f)}}function u(l){try{c(r.throw(l))}catch(f){a(f)}}function c(l){l.done?o(l.value):i(l.value).then(s,u)}c((r=r.apply(t,e||[])).next())})},gi=globalThis&&globalThis.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=e.call(t,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},i8=globalThis&&globalThis.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},o8=globalThis&&globalThis.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof bn=="function"?bn(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(a){return new Promise(function(s,u){a=t[o](a),i(s,u,a.done,a.value)})}}function i(o,a,s,u){Promise.resolve(u).then(function(c){o({value:c,done:s})},a)}},a8=globalThis&&globalThis.__read||function(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o},Gu=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a8(arguments[e]));return t},bn=globalThis&&globalThis.__values||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ac=350,s8=parseInt(be.version.slice(0,2),10);if(s8<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
|
|
203
|
-
`));var sc=function(t){return JSON.stringify(t,null,2)},c8=function(t){return U(U({},t),{message:t.message,stack:t.stack})},cc=function(t){return t instanceof C?t.toString():t instanceof Error?c8(t):t},u8=function(t){r8(e,t);function e(n){var r,i,o,a,s,u,c,l,f,d,h,p=t.call(this,n)||this;if(p._editorQueryID=0,p.safeSetState=function(O,M){p.componentIsMounted&&p.setState(O,M)},p.persistTabsState=function(){var O,M;p.props.tabs&&(p._storage.set("tabState",JSON.stringify(p.state.tabs,function(W,Y){return W==="response"||p.state.shouldPersistHeaders&&W==="headers"?void 0:Y})),typeof p.props.tabs=="object"&&((M=(O=p.props.tabs).onTabChange)===null||M===void 0||M.call(O,p.state.tabs)))},p.makeHandleOnSelectTab=function(O){return function(){p.handleStopQuery(),p.setState(function(M){return m8(O,M)},function(){p.persistTabsState(),p.state.query&&p.handleEditQuery(p.state.query)})}},p.makeHandleOnCloseTab=function(O){return function(){p.state.tabs.activeTabIndex===O&&p.handleStopQuery(),p.setState(function(M){return g8(O,M)},p.persistTabsState)}},p.handleOnAddTab=function(){p.setState(function(O){return y8(O)},p.persistTabsState)},p.handleClickReference=function(O){p.setState({docExplorerOpen:!0},function(){p.docExplorerComponent&&p.docExplorerComponent.showDocForReference(O)}),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))},p.handleRunQuery=function(O){return mi(p,void 0,void 0,function(){var M,W,Y,de,ye,ee,Ee,Qe,He,et=this;return gi(this,function(vt){switch(vt.label){case 0:this._editorQueryID++,M=this._editorQueryID,W=this.autoCompleteLeafs()||this.state.query,Y=this.state.variables,de=this.state.headers,ye=this.state.shouldPersistHeaders,ee=this.state.operationName,O&&O!==ee&&(ee=O,this.handleEditOperationName(ee)),vt.label=1;case 1:return vt.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:ee}),this._storage.set("operationName",ee),this._queryHistory?this._queryHistory.onUpdateHistory(W,Y,de,ee):this._historyStore&&this._historyStore.updateHistory(W,Y,de,ee),Ee={data:{}},[4,this._fetchQuery(W,Y,de,ee,ye,function(ct){var Hr,Lo;if(M===et._editorQueryID){var cn=Array.isArray(ct)?ct:!1;if(!cn&&typeof ct!="string"&&ct!==null&&"hasNext"in ct&&(cn=[ct]),cn){var Mn={data:Ee.data},qo=Gu((Ee==null?void 0:Ee.errors)||[],cn.map(function(mt){return mt.errors}).flat().filter(Boolean));qo.length&&(Mn.errors=qo);try{for(var Vn=bn(cn),un=Vn.next();!un.done;un=Vn.next()){var jt=un.value,Po=jt.path,$r=jt.data,A8=jt.errors,Yu=i8(jt,["path","data","errors"]);if(Po){if(!$r)throw new Error("Expected part to contain a data property, but got "+jt);ZJ(Mn.data,Po,$r,{merge:!0})}else $r&&(Mn.data=jt.data);Ee=U(U({},Mn),Yu)}}catch(mt){Hr={error:mt}}finally{try{un&&!un.done&&(Lo=Vn.return)&&Lo.call(Vn)}finally{if(Hr)throw Hr.error}}et.setState({isWaitingForResponse:!1,response:e.formatResult(Ee)})}else{var Mo=e.formatResult(ct);et.setState(function(mt){return U(U({},mt),{tabs:U(U({},mt.tabs),{tabs:mt.tabs.tabs.map(function(Vo,Zu){return Zu!==mt.tabs.activeTabIndex?Vo:U(U({},Vo),{response:Mo})})}),isWaitingForResponse:!1,response:Mo})},et.persistTabsState)}}})];case 2:return Qe=vt.sent(),this.setState({subscription:Qe}),[3,4];case 3:return He=vt.sent(),this.setState({isWaitingForResponse:!1,response:He.message}),[3,4];case 4:return[2]}})})},p.handleStopQuery=function(){var O=p.state.subscription;p.setState({isWaitingForResponse:!1,subscription:null}),O&&O.unsubscribe()},p.handlePrettifyQuery=function(){var O,M,W,Y=p.getQueryEditor(),de=(O=Y==null?void 0:Y.getValue())!==null&&O!==void 0?O:"",ye=ie(It(de));ye!==de&&(Y==null||Y.setValue(ye));var ee=p.getVariableEditor(),Ee=(M=ee==null?void 0:ee.getValue())!==null&&M!==void 0?M:"";try{var Qe=JSON.stringify(JSON.parse(Ee),null,2);Qe!==Ee&&(ee==null||ee.setValue(Qe))}catch(ct){}var He=p.getHeaderEditor(),et=(W=He==null?void 0:He.getValue())!==null&&W!==void 0?W:"";try{var vt=JSON.stringify(JSON.parse(et),null,2);vt!==et&&(He==null||He.setValue(vt))}catch(ct){}},p.handleMergeQuery=function(){var O=p.getQueryEditor(),M=O.getValue();if(!!M){var W=p.state.documentAST;O.setValue(ie(qJ(W,p.state.schema)))}},p.handleEditQuery=tt(100,function(O){var M=p._updateQueryFacts(O,p.state.operationName,p.state.operations,p.state.schema);if(p.setState(function(W){return U(U(U(U({},W),{query:O}),M),{tabs:v8(O,W.tabs,M==null?void 0:M.operationName)})},p.persistTabsState),p._storage.set("query",O),p.props.onEditQuery)return p.props.onEditQuery(O,M==null?void 0:M.documentAST)}),p.handleCopyQuery=function(){var O=p.getQueryEditor(),M=O&&O.getValue();if(!!M&&(tl(M),p.props.onCopyQuery))return p.props.onCopyQuery(M)},p._updateQueryFacts=function(O,M,W,Y){var de=or(Y,O);if(de){var ye=tc(W,M,de.operations),ee=p.props.onEditOperationName;return ee&&ye&&M!==ye&&ee(ye),U({operationName:ye},de)}},p.handleEditVariables=function(O){p.setState(function(M){return U(U({},M),{variables:O,tabs:h8(O,M.tabs)})},p.persistTabsState),tt(500,function(){return p._storage.set("variables",O)})(),p.props.onEditVariables&&p.props.onEditVariables(O)},p.handleEditHeaders=function(O){p.setState(function(M){return U(U({},M),{headers:O,tabs:d8(O,M.tabs)})},p.persistTabsState),p.props.shouldPersistHeaders&&tt(500,function(){return p._storage.set("headers",O)})(),p.props.onEditHeaders&&p.props.onEditHeaders(O)},p.handleEditOperationName=function(O){var M=p.props.onEditOperationName;M&&M(O)},p.handleHintInformationRender=function(O){O.addEventListener("click",p._onClickHintInformation);var M;O.addEventListener("DOMNodeRemoved",M=function(){O.removeEventListener("DOMNodeRemoved",M),O.removeEventListener("click",p._onClickHintInformation)})},p.handleEditorRunQuery=function(){p._runQueryAtCursor()},p._onClickHintInformation=function(O){if((O==null?void 0:O.currentTarget)&&"className"in O.currentTarget&&O.currentTarget.className==="typeName"){var M=O.currentTarget.innerHTML,W=p.state.schema;if(W){var Y=W.getType(M);Y&&(p.setState({docExplorerOpen:!0},function(){p.docExplorerComponent&&p.docExplorerComponent.showDoc(Y)}),tt(500,function(){return p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))})())}}},p.handleToggleDocs=function(){typeof p.props.onToggleDocs=="function"&&p.props.onToggleDocs(!p.state.docExplorerOpen),p._storage.set("docExplorerOpen",JSON.stringify(!p.state.docExplorerOpen)),p.setState({docExplorerOpen:!p.state.docExplorerOpen})},p.handleToggleHistory=function(){typeof p.props.onToggleHistory=="function"&&p.props.onToggleHistory(!p.state.historyPaneOpen),p._storage.set("historyPaneOpen",JSON.stringify(!p.state.historyPaneOpen)),p.setState({historyPaneOpen:!p.state.historyPaneOpen})},p.handleSelectHistoryQuery=function(O,M,W,Y){O&&p.handleEditQuery(O),M&&p.handleEditVariables(M),W&&p.handleEditHeaders(W),Y&&p.handleEditOperationName(Y)},p.handleResizeStart=function(O){if(!!p._didClickDragBar(O)){O.preventDefault();var M=O.clientX-Yn(O.target),W=function(de){if(de.buttons===0)return Y();var ye=p.editorBarComponent,ee=de.clientX-Yn(ye)-M,Ee=ye.clientWidth-ee;p.setState({editorFlex:ee/Ee}),tt(500,function(){return p._storage.set("editorFlex",JSON.stringify(p.state.editorFlex))})()},Y=function(){document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Y),W=null,Y=null};document.addEventListener("mousemove",W),document.addEventListener("mouseup",Y)}},p.handleResetResize=function(){p.setState({editorFlex:1}),p._storage.set("editorFlex",JSON.stringify(p.state.editorFlex))},p.handleDocsResizeStart=function(O){O.preventDefault();var M=p.state.docExplorerWidth,W=O.clientX-Yn(O.target),Y=function(ye){if(ye.buttons===0)return de();var ee=p.graphiqlContainer,Ee=ye.clientX-Yn(ee)-W,Qe=ee.clientWidth-Ee;Qe<100?(typeof p.props.onToggleDocs=="function"&&p.props.onToggleDocs(!p.state.docExplorerOpen),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen)),p.setState({docExplorerOpen:!1})):(p.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(Qe,650)}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()),p._storage.set("docExplorerOpen",JSON.stringify(p.state.docExplorerOpen))},de=function(){p.state.docExplorerOpen||(p.setState({docExplorerWidth:M}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()),document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",de),Y=null,de=null};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",de)},p.handleDocsResetResize=function(){p.setState({docExplorerWidth:ac}),tt(500,function(){return p._storage.set("docExplorerWidth",JSON.stringify(p.state.docExplorerWidth))})()},p.handleTabClickPropogation=function(O){O.preventDefault(),O.stopPropagation()},p.handleOpenHeaderEditorTab=function(O){p.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},p.handleOpenVariableEditorTab=function(O){p.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},p.handleSecondaryEditorResizeStart=function(O){O.preventDefault();var M=!1,W=p.state.secondaryEditorOpen,Y=p.state.secondaryEditorHeight,de=O.clientY-nc(O.target),ye=function(Ee){if(Ee.buttons===0)return ee();M=!0;var Qe=p.editorBarComponent,He=Ee.clientY-nc(Qe)-de,et=Qe.clientHeight-He;et<60?p.setState({secondaryEditorOpen:!1,secondaryEditorHeight:Y}):p.setState({secondaryEditorOpen:!0,secondaryEditorHeight:et}),tt(500,function(){return p._storage.set("secondaryEditorHeight",JSON.stringify(p.state.secondaryEditorHeight))})()},ee=function(){M||p.setState({secondaryEditorOpen:!W}),document.removeEventListener("mousemove",ye),document.removeEventListener("mouseup",ee),ye=null,ee=null};document.addEventListener("mousemove",ye),document.addEventListener("mouseup",ee)},typeof n.fetcher!="function")throw new TypeError("GraphiQL requires a fetcher function.");p._storage=new DJ(n.storage);var m=(s=n.maxHistoryLength)!==null&&s!==void 0?s:20;p._historyStore=new Vu(p._storage,m),p.componentIsMounted=!1;var g=n.query!==void 0?n.query:p._storage.get("query")?p._storage.get("query"):n.defaultQuery!==void 0?n.defaultQuery:l8,_=or(n.schema,g),y=n.variables!==void 0?n.variables:p._storage.get("variables"),k=n.headers!==void 0?n.headers:p._storage.get("headers"),A=n.operationName!==void 0?n.operationName:tc(void 0,p._storage.get("operationName"),_&&_.operations),N=n.docExplorerOpen||!1;p._storage.get("docExplorerOpen")&&(N=p._storage.get("docExplorerOpen")==="true");var x;n.defaultVariableEditorOpen!==void 0?x=n.defaultVariableEditorOpen:n.defaultSecondaryEditorOpen!==void 0?x=n.defaultSecondaryEditorOpen:x=Boolean(y||k);var I=(u=n.headerEditorEnabled)!==null&&u!==void 0?u:!0,P=(c=n.shouldPersistHeaders)!==null&&c!==void 0?c:!1,z=n.schema,j=n.response,K=void 0;if(z&&!p.props.dangerouslyAssumeSchemaIsValid){var E=ir(z);E&&E.length>0&&(j=e.formatError(E),z=void 0,K=E)}p._introspectionQuery=Fp({schemaDescription:(l=n.schemaDescription)!==null&&l!==void 0?l:void 0,inputValueDeprecation:(f=n.inputValueDeprecation)!==null&&f!==void 0?f:void 0}),p._introspectionQueryName=(d=n.introspectionQueryName)!==null&&d!==void 0?d:MJ,p._introspectionQuerySansSubscriptions=p._introspectionQuery.replace("subscriptionType { name }","");var R=Pt({query:g,variables:y,headers:k}),w={id:$i(),hash:R,title:A!=null?A:"<untitled>",query:g,variables:y,headers:k,operationName:A,response:void 0},F=null;p.props.tabs&&(F=p._storage.get("tabState"));var L;if(F===null)L={activeTabIndex:0,tabs:[w]};else{L=JSON.parse(F);var _e=!1;try{for(var $=bn(L.tabs),Fe=$.next();!Fe.done;Fe=$.next()){var fe=Fe.value;fe.query=fe.query,fe.variables=fe.variables,fe.headers=P?fe.headers:void 0,fe.response=void 0,fe.operationName=void 0,fe.id=$i(),fe.hash=Pt(fe),fe.hash===R&&(_e=!0)}}catch(O){r={error:O}}finally{try{Fe&&!Fe.done&&(i=$.return)&&i.call($)}finally{if(r)throw r.error}}_e===!1&&(L.tabs.push(w),L.activeTabIndex=L.tabs.length-1)}var pe=L.tabs[0],st=0;try{for(var ue=bn(L.tabs),ae=ue.next();!ae.done;ae=ue.next()){var fe=ae.value;if(fe.hash===R){L.activeTabIndex=st,pe=fe;break}st++}}catch(O){o={error:O}}finally{try{ae&&!ae.done&&(a=ue.return)&&a.call(ue)}finally{if(o)throw o.error}}return p.state=U({tabs:L,schema:z,query:pe==null?void 0:pe.query,variables:pe==null?void 0:pe.variables,headers:pe==null?void 0:pe.headers,operationName:pe==null?void 0:pe.operationName,response:(h=pe==null?void 0:pe.response)!==null&&h!==void 0?h:j,docExplorerOpen:N,schemaErrors:K,editorFlex:Number(p._storage.get("editorFlex"))||1,secondaryEditorOpen:x,secondaryEditorHeight:Number(p._storage.get("secondaryEditorHeight"))||200,variableEditorActive:p._storage.get("variableEditorActive")==="true"||n.headerEditorEnabled?p._storage.get("headerEditorActive")!=="true":!0,headerEditorActive:p._storage.get("headerEditorActive")==="true",headerEditorEnabled:I,shouldPersistHeaders:P,historyPaneOpen:p._storage.get("historyPaneOpen")==="true"||!1,docExplorerWidth:Number(p._storage.get("docExplorerWidth"))||ac,isWaitingForResponse:!1,subscription:null,maxHistoryLength:m},_),p}return e.formatResult=function(n){return JSON.stringify(n,null,2)},e.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.state.schema===void 0&&this.fetchSchema(),this.codeMirrorSizer=new xJ,typeof window!="undefined"&&(window.g=this)},e.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},e.prototype.UNSAFE_componentWillReceiveProps=function(n){var r=this,i=this.state.schema,o=this.state.query,a=this.state.variables,s=this.state.headers,u=this.state.operationName,c=this.state.response;if(n.schema!==void 0&&(i=n.schema),n.query!==void 0&&this.props.query!==n.query&&(o=n.query),n.variables!==void 0&&this.props.variables!==n.variables&&(a=n.variables),n.headers!==void 0&&this.props.headers!==n.headers&&(s=n.headers),n.operationName!==void 0&&(u=n.operationName),n.response!==void 0&&(c=n.response),o&&i&&(i!==this.state.schema||o!==this.state.query||u!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var l=ir(i);l&&l.length>0&&(this.handleSchemaErrors(l),i=void 0)}var f=this._updateQueryFacts(o,u,this.state.operations,i);f!==void 0&&(u=f.operationName,this.setState(f))}n.schema===void 0&&n.fetcher!==this.props.fetcher&&(i=void 0),this._storage.set("operationName",u),this.setState({schema:i,query:o,variables:a,headers:s,operationName:u,response:c},function(){r.state.schema===void 0&&(r.docExplorerComponent&&r.docExplorerComponent.reset(),r.fetchSchema())})},e.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},e.prototype.render=function(){var n=this,r,i=be.Children.toArray(this.props.children),o=vi(i,function(m){return yi(m,e.Logo)})||b(e.Logo,{}),a=vi(i,function(m){return yi(m,e.Toolbar)})||V(e.Toolbar,{children:[b(Gt,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),b(Gt,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),b(Gt,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),b(Gt,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),!((r=this.props.toolbar)===null||r===void 0)&&r.additionalContent?this.props.toolbar.additionalContent:null]}),s=vi(i,function(m){return yi(m,e.Footer)}),u={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},c={display:"block",width:this.state.docExplorerWidth},l="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),f={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},d=this.state.secondaryEditorOpen,h={height:d?this.state.secondaryEditorHeight:void 0},p=this.state.tabs;return V("div",{ref:function(m){n.graphiqlContainer=m},"data-testid":"graphiql-container",className:"graphiql-container",children:[this.state.historyPaneOpen&&b("div",{className:"historyPaneWrap",style:f,children:b(SJ,{ref:function(m){n._queryHistory=m},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID,children:b("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History",children:"\u2715"})})}),V("div",{className:"editorWrap",children:[V("div",{className:"topBarWrap",children:[this.props.beforeTopBarContent,V("div",{className:"topBar",children:[o,b(wd,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),a]}),!this.state.docExplorerOpen&&b("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer",children:"Docs"})]}),this.props.tabs?V(t8,{tabsProps:{"aria-label":"Select active operation"},children:[p.tabs.map(function(m,g){return b(KJ,{isActive:g===p.activeTabIndex,title:m.title,isCloseable:p.tabs.length>1,onSelect:n.makeHandleOnSelectTab(g),onClose:n.makeHandleOnCloseTab(g),tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+g}},m.id)}),b(e8,{onClick:this.handleOnAddTab})]}):null,V("div",{ref:function(m){n.editorBarComponent=m},role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+p.activeTabIndex,onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart,children:[V("div",{className:"queryWrap",style:u,children:[b(Hs,{ref:function(m){n.queryEditorComponent=m},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),V("section",{className:"variable-editor secondary-editor",style:h,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers",children:[V("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:d?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart,children:[b("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation,children:"Query Variables"}),this.state.headerEditorEnabled&&b("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation,children:"Request Headers"})]}),b($s,{ref:function(m){n.variableEditorComponent=m},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&b(Js,{ref:function(m){n.headerEditorComponent=m},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive})]})]}),V("div",{className:"resultWrap",children:[this.state.isWaitingForResponse&&b("div",{className:"spinner-container",children:b("div",{className:"spinner"})}),b(Ws,{registerRef:function(m){n.resultViewerElement=m},ref:function(m){n.resultComponent=m},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:Nd}),s]})]})]}),this.state.docExplorerOpen&&V("div",{className:l,style:c,children:[b("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),b(gJ,{ref:function(m){n.docExplorerComponent=m},schemaErrors:this.state.schemaErrors,schema:this.state.schema,children:b("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer",children:"\u2715"})})]})]})},e.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},e.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},e.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},e.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},e.prototype.autoCompleteLeafs=function(){var n=AJ(this.state.schema,this.state.query,this.props.getDefaultFieldNames),r=n.insertions,i=n.result;if(r&&r.length>0){var o=this.getQueryEditor();o&&o.operation(function(){var a=o.getCursor(),s=o.indexFromPos(a);o.setValue(i||"");var u=0,c=r.map(function(f){var d=f.index,h=f.string;return o.markText(o.posFromIndex(d+u),o.posFromIndex(d+(u+=h.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return c.forEach(function(f){return f.clear()})},7e3);var l=s;r.forEach(function(f){var d=f.index,h=f.string;d<s&&(l+=h.length)}),o.setCursor(o.posFromIndex(l))})}return i},e.prototype.fetchSchema=function(){var n=this,r=this.props.fetcher,i={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};try{this.state.headers&&this.state.headers.trim().length>2?i.headers=JSON.parse(this.state.headers):this.props.headers&&(i.headers=JSON.parse(this.props.headers))}catch(a){this.setState({response:"Introspection failed as headers are invalid."});return}var o=lc(r({query:this._introspectionQuery,operationName:this._introspectionQueryName},i));if(!uc(o)){this.setState({response:"Fetcher did not return a Promise for introspection."});return}o.then(function(a){if(typeof a!="string"&&"data"in a)return a;var s=lc(r({query:n._introspectionQuerySansSubscriptions,operationName:n._introspectionQueryName},i));if(!uc(o))throw new Error("Fetcher did not return a Promise for introspection.");return s}).then(function(a){var s,u;if(n.state.schema===void 0)if(a&&a.data&&"__schema"in(a==null?void 0:a.data)){var c=Lp(a.data);if(!n.props.dangerouslyAssumeSchemaIsValid){var l=ir(c);l&&l.length>0&&(c=void 0,n.handleSchemaErrors(l))}if(c){var f=or(c,n.state.query);n.safeSetState(U(U({schema:c},f),{schemaErrors:void 0})),(u=(s=n.props).onSchemaChange)===null||u===void 0||u.call(s,c)}}else{var d=typeof a=="string"?a:e.formatResult(a);n.handleSchemaErrors([d])}}).catch(function(a){n.handleSchemaErrors([a])})},e.prototype.handleSchemaErrors=function(n){this.safeSetState({response:n?e.formatError(n):void 0,schema:void 0,schemaErrors:n})},e.prototype._fetchQuery=function(n,r,i,o,a,s){return mi(this,void 0,void 0,function(){var u,c,l,f,d,h,p=this;return gi(this,function(m){u=this.props.fetcher,c=null,l=null;try{c=r&&r.trim()!==""?JSON.parse(r):null}catch(g){throw new Error("Variables are invalid JSON: "+g.message+".")}if(typeof c!="object")throw new Error("Variables are not a JSON object.");try{l=i&&i.trim()!==""?JSON.parse(i):null}catch(g){throw new Error("Headers are invalid JSON: "+g.message+".")}if(typeof l!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(f=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(g){f.set(g.name.value,g)}):Ye(It(this.props.externalFragments,{}),{FragmentDefinition:function(g){f.set(g.name.value,g)}}),d=fu(this.state.documentAST,f),d.length>0&&(n+=`
|
|
204
|
-
`+d.map(function(g){return ie(g)}).join(`
|
|
205
|
-
`))),h=u({query:n,variables:c,operationName:o},{headers:l,shouldPersistHeaders:a,documentAST:this.state.documentAST}),[2,Promise.resolve(h).then(function(g){if(Ju(g)){var _=g.subscribe({next:s,error:function(y){p.safeSetState({isWaitingForResponse:!1,response:y?e.formatError(y):void 0,subscription:null})},complete:function(){p.safeSetState({isWaitingForResponse:!1,subscription:null})}});return _}else return Wu(g)?(function(){return mi(p,void 0,void 0,function(){var y,k,A,N,x,I,P;return gi(this,function(z){switch(z.label){case 0:z.trys.push([0,13,,14]),z.label=1;case 1:z.trys.push([1,6,7,12]),y=o8(g),z.label=2;case 2:return[4,y.next()];case 3:if(k=z.sent(),!!k.done)return[3,5];A=k.value,s(A),z.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return N=z.sent(),I={error:N},[3,12];case 7:return z.trys.push([7,,10,11]),k&&!k.done&&(P=y.return)?[4,P.call(y)]:[3,9];case 8:z.sent(),z.label=9;case 9:return[3,11];case 10:if(I)throw I.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return x=z.sent(),this.safeSetState({isWaitingForResponse:!1,response:x?e.formatError(x):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var y,k;return(k=(y=g[Symbol.asyncIterator]()).return)===null||k===void 0?void 0:k.call(y)}}):(s(g),null)}).catch(function(g){return p.safeSetState({isWaitingForResponse:!1,response:g?e.formatError(g):void 0}),null})]})})},e.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var n,r=this.state.operations;if(r){var i=this.getQueryEditor();if(i&&i.hasFocus())for(var o=i.getCursor(),a=i.indexFromPos(o),s=0;s<r.length;s++){var u=r[s];if(u.loc&&u.loc.start<=a&&u.loc.end>=a){n=u.name&&u.name.value;break}}}this.handleRunQuery(n)},e.prototype._didClickDragBar=function(n){if(n.button!==0||n.ctrlKey)return!1;var r=n.target;if(r.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var i=this.resultViewerElement;r;){if(r===i)return!0;r=r.parentNode}return!1},e.formatError=function(n){return Array.isArray(n)?sc({errors:n.map(function(r){return cc(r)})}):sc({errors:cc(n)})},e.Logo=Qu,e.Toolbar=Hu,e.Footer=$u,e.QueryEditor=Hs,e.VariableEditor=$s,e.HeaderEditor=Js,e.ResultViewer=Ws,e.Button=Gt,e.ToolbarButton=Gt,e.Group=Ad,e.Menu=Cd,e.MenuItem=Id,e}(be.Component);function Qu(t){return b("div",{className:"title",children:t.children||V("span",{children:["Graph",b("em",{children:"i"}),"QL"]})})}Qu.displayName="GraphiQLLogo";function Hu(t){return b("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands",children:t.children})}Hu.displayName="GraphiQLToolbar";function $u(t){return b("div",{className:"footer",children:t.children})}$u.displayName="GraphiQLFooter";var l8=`# Welcome to GraphiQL
|
|
206
|
-
#
|
|
207
|
-
# GraphiQL is an in-browser tool for writing, validating, and
|
|
208
|
-
# testing GraphQL queries.
|
|
209
|
-
#
|
|
210
|
-
# Type queries into this side of the screen, and you will see intelligent
|
|
211
|
-
# typeaheads aware of the current GraphQL type schema and live syntax and
|
|
212
|
-
# validation errors highlighted within the text.
|
|
213
|
-
#
|
|
214
|
-
# GraphQL queries typically start with a "{" character. Lines that start
|
|
215
|
-
# with a # are ignored.
|
|
216
|
-
#
|
|
217
|
-
# An example GraphQL query might look like:
|
|
218
|
-
#
|
|
219
|
-
# {
|
|
220
|
-
# field(arg: "value") {
|
|
221
|
-
# subField
|
|
222
|
-
# }
|
|
223
|
-
# }
|
|
224
|
-
#
|
|
225
|
-
# Keyboard shortcuts:
|
|
226
|
-
#
|
|
227
|
-
# Prettify Query: Shift-Ctrl-P (or press the prettify button above)
|
|
228
|
-
#
|
|
229
|
-
# Merge Query: Shift-Ctrl-M (or press the merge button above)
|
|
230
|
-
#
|
|
231
|
-
# Run Query: Ctrl-Enter (or press the play button above)
|
|
232
|
-
#
|
|
233
|
-
# Auto Complete: Ctrl-Space (or just start typing)
|
|
234
|
-
#
|
|
235
|
-
|
|
236
|
-
`;function uc(t){return typeof t=="object"&&typeof t.then=="function"}function f8(t){return new Promise(function(e,n){var r=t.subscribe({next:function(i){e(i),r.unsubscribe()},error:n,complete:function(){n(new Error("no value resolved"))}})})}function Ju(t){return typeof t=="object"&&"subscribe"in t&&typeof t.subscribe=="function"}function Wu(t){return typeof t=="object"&&t!==null&&(t[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in t)}function p8(t){return new Promise(function(e,n){var r,i=(r=("return"in t?t:t[Symbol.asyncIterator]()).return)===null||r===void 0?void 0:r.bind(t),o=("next"in t?t:t[Symbol.asyncIterator]()).next.bind(t);o().then(function(a){e(a.value),i==null||i()}).catch(function(a){n(a)})})}function lc(t){return Promise.resolve(t).then(function(e){return Wu(e)?p8(e):Ju(e)?f8(e):e})}function yi(t,e){var n;return((n=t==null?void 0:t.type)===null||n===void 0?void 0:n.displayName)&&t.type.displayName===e.displayName?!0:t.type===e}function d8(t,e){return U(U({},e),{tabs:e.tabs.map(function(n,r){return r!==e.activeTabIndex?n:U(U({},n),{headers:t,hash:Pt({query:n.query,headers:t,variables:n.variables})})})})}function h8(t,e){return U(U({},e),{tabs:e.tabs.map(function(n,r){return r!==e.activeTabIndex?n:U(U({},n),{variables:t,hash:Pt({query:n.query,headers:n.headers,variables:t})})})})}function v8(t,e,n){return U(U({},e),{tabs:e.tabs.map(function(r,i){return i!==e.activeTabIndex?r:U(U({},r),{title:n!=null?n:n8(t),query:t,hash:Pt({query:t,headers:r.headers,variables:r.variables})})})})}function m8(t,e){var n=e.tabs.activeTabIndex,r=e.tabs.tabs.map(function(o,a){return a!==n?o:U(U({},o),{query:e.query,variables:e.variables,operationName:e.operationName,headers:e.headers,response:e.response,hash:Pt({query:e.query,variables:e.variables,headers:e.headers})})}),i=e.tabs.tabs[t];return U(U({},e),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:U(U({},e.tabs),{tabs:r,activeTabIndex:t})})}function g8(t,e){var n=e.tabs.activeTabIndex>0?e.tabs.activeTabIndex-1:0,r=U(U({},e.tabs),{activeTabIndex:n,tabs:e.tabs.tabs.filter(function(o,a){return t!==a})}),i=r.tabs[n];return U(U({},e),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:r})}function y8(t){var e=t.tabs.activeTabIndex,n={id:$i(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:Pt({query:"",variables:"",headers:""})},r=t.tabs.tabs.map(function(i,o){return o!==e?i:U(U({},i),{headers:t.headers,variables:t.variables,query:t.query,operationName:t.operationName,response:t.response})});return U(U({},t),{headers:n.headers,variables:n.variables,query:n.query,operationName:n.operationName,response:n.response,tabs:U(U({},t.tabs),{activeTabIndex:t.tabs.tabs.length,tabs:Gu(r,[n])})})}var b8=globalThis&&globalThis.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ji=globalThis&&globalThis.__assign||function(){return Ji=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Ji.apply(this,arguments)};function _8(t){return!(!t||typeof t!="object"||!("props"in t))}(function(t){b8(e,t);function e(n){var r=t.call(this,n)||this;return r._node=null,r._listener=null,r.handleOpen=function(i){ar(i),r.setState({visible:!0}),r._subscribe()},r.state={visible:!1},r}return e.prototype.componentWillUnmount=function(){this._release()},e.prototype.render=function(){var n=this,r,i=this.state.visible,o=be.Children.map(this.props.children,function(a,s){if(!_8(a))return null;(!r||a.props.selected)&&(r=a);var u=a.props.onSelect||n.props.onSelect&&n.props.onSelect.bind(null,a.props.value,s);return b(E8,{...Ji({},a.props,{onSelect:u})})});return V("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:ar,ref:function(a){n._node=a},title:this.props.title,children:[r==null?void 0:r.props.label,V("svg",{width:"13",height:"10",children:[b("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),b("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})]}),b("ul",{className:"toolbar-select-options"+(i?" open":""),children:o})]})},e.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},e.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},e.prototype.handleClick=function(n){this._node!==n.target&&(ar(n),this.setState({visible:!1}),this._release())},e})(be.Component);function E8(t){var e=t.onSelect,n=t.label,r=t.selected;return V("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:ar,onMouseUp:e,children:[n,r&&b("svg",{width:"13",height:"13",children:b("polygon",{points:"4.851,10.462 0,5.611 2.314,3.297 4.851,5.835 10.686,0 13,2.314 4.851,10.462"})})]})}function ar(t){t.preventDefault()}const T8=u8;const k8=["gt","gte","lt","lte"],w8={equals:"in",notEquals:"notIn",notSet:"set"};function S8(t,e,n="CubeQuery"){return{kind:v.DOCUMENT,definitions:[{kind:v.OPERATION_DEFINITION,name:{kind:v.NAME,value:n},operation:"query",selectionSet:{kind:v.SELECTION_SET,selections:[{kind:v.FIELD,name:{kind:v.NAME,value:"cube"},arguments:t,selectionSet:{kind:v.SELECTION_SET,selections:e}}]}}]}}class x8{constructor(e,n){jo(this,"cubes",{});this.cubeQuery=e,this.types=n,this.prepareCubes()}convert(){return ie(S8(this.getCubeArgs(),this.getFieldsSelections()))}resolveFilter(e,n){const r=Object.values(e.reduce((a,s)=>{if(s.or||s.and)return a;const[u,c]=(s.member||s.dimension).split(".");return a[u]||(a[u]={kind:"PLAIN",cubeName:u,fields:[],filters:[]}),a[u].fields.push(c),a[u].filters.push(s),a},{})),i=e.map(a=>a.and||a.or?{kind:a.and?"AND":"OR",filters:a.and||a.or}:!1).filter(Boolean);return r.concat(i).map(a=>a.kind!=="PLAIN"?n?this.objectValue([this.booleanFilter(a.kind,this.resolveFilter(a.filters,a))]):this.booleanFilter(a.kind,this.resolveFilter(a.filters,a)):a.fields.length===Bo(a.fields).length?n?this.objectValue(this.objectFieldFilter(a.filters),Ut(a.cubeName)):this.objectFieldFilter(a.filters,Ut(a.cubeName)):this.objectField(this.booleanFilter((n==null?void 0:n.kind)||"AND",a.filters.map(s=>((s.and||s.or)&&this.resolveFilter(a.filters,a.kind),this.objectValue(this.objectFieldFilter(s))))),Ut(a.cubeName)))}objectValue(e,n){return n?{kind:v.OBJECT,fields:[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}]}:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}objectFieldFilter(e,n){const r=Array.isArray(e)?e:[e],i=a=>{const s=this.types[a.member||a.dimension]==="number"?v.FLOAT:v.STRING;return["set","notSet"].includes(a.operator)?{kind:v.BOOLEAN,value:a.operator==="set"}:typeof a.values=="string"?{kind:s,value:a.values}:a.values.length===1?{kind:s,value:a.values[0].toString()}:{kind:v.LIST,values:a.values.map(u=>({kind:s,value:u}))}},o=r.map(a=>{const s=a.member||a.dimension;if(!this.types[s])throw new Error(`Unknown member type for "${s}". Make sure "${s}" exists in the data model.`);if(k8.includes(a.operator)&&(a.values||[]).length>1)throw new Error(`Filter operator "${a.operator}" must have a single value`);return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:s.split(".")[1]},value:{kind:v.OBJECT,fields:a.values===void 0&&!["set","notSet"].includes(a.operator)?[]:[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:a.operator==="equals"&&(a.values||[]).length<=1?a.operator:w8[a.operator]||a.operator},value:i(a)}]}}});return n?[{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:o}}]:o}objectField(e,n){return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.OBJECT,fields:Array.isArray(e)?e:[e]}}}booleanFilter(e,n){return{kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:e},value:{kind:v.LIST,values:n}}}orderByArg(e){return{kind:v.ARGUMENT,name:{kind:v.NAME,value:"orderBy"},value:{kind:v.OBJECT,fields:e.map(([n,r])=>({kind:v.OBJECT_FIELD,name:{kind:v.NAME,value:n},value:{kind:v.ENUM,value:r}}))}}}getFieldsSelections(){const e=[];return Object.entries(this.cubes).forEach(([n,{fields:r,orderBy:i}])=>{e.push({kind:v.FIELD,name:{kind:v.NAME,value:n},arguments:i.length?[this.orderByArg(i)]:[],selectionSet:{kind:v.SELECTION_SET,selections:r.map(o=>{let a=null;return o.granularities&&(a={selectionSet:{kind:v.SELECTION_SET,selections:o.granularities.map(s=>({kind:v.FIELD,name:{kind:v.NAME,value:s}}))}}),{kind:v.FIELD,name:{kind:v.NAME,value:o.name},...a}})}})}),e}getCubeArgs(){const e=[["timezone",v.STRING],["limit",v.INT],["offset",v.INT]],n=[];e.forEach(([i,o])=>{this.cubeQuery[i]&&n.push({kind:v.ARGUMENT,name:{kind:v.NAME,value:i},value:{kind:o,value:this.cubeQuery[i]}})});const r=[...this.cubeQuery.filters||[]];return(this.cubeQuery.timeDimensions||[]).forEach(i=>{i.dateRange&&r.push({member:i.dimension,operator:"inDateRange",values:i.dateRange})}),r.length&&n.push({kind:v.ARGUMENT,name:{kind:v.NAME,value:"where"},value:{kind:v.OBJECT,fields:this.resolveFilter(r)}}),n}prepareCubes(){var r;const e=i=>{this.cubes[i]||(this.cubes[i]={fields:[],filters:[],orderBy:[]})};["measures","dimensions","segments"].forEach(i=>{!this.cubeQuery[i]||this.cubeQuery[i].forEach(o=>{const[a,s,u]=o.split("."),c=Ut(a);let l=u;this.types[`${a}.${s}`]==="time"&&(l="value"),e(c);const f=this.cubes[c].fields.find(({name:d})=>d===s);this.cubes[c].fields.push({name:s,...l?{granularities:[...(f==null?void 0:f.granularities)||[],l]}:null})})});const n={};(r=this.cubeQuery.timeDimensions)==null||r.forEach(i=>{const[o,a]=i.dimension.split("."),s=`${o}.${a}`;i.granularity&&(n[s]=(n[s]||[]).concat([i.granularity]))}),Object.entries(n).forEach(([i,o])=>{const[a,s]=i.split("."),u=Ut(a);e(u);const c=this.cubes[u].fields.find(l=>l.name===s);c?c.granularities=Bo([...c.granularities||[],...o]):this.cubes[u].fields.push({name:s,granularities:o})}),this.cubeQuery.order&&(Array.isArray(this.cubeQuery.order)?this.cubeQuery.order:Object.entries(this.cubeQuery.order)).forEach(([o,a])=>{const[s,u]=o.split("."),c=Ut(s);if(!this.cubes[c])throw new Error(`Order without selecting the cube is not allowed. Did you forget to include the "${s}" cube?`);if(!this.cubes[c].fields.find(({name:f})=>f===u))throw new Error(`Order without selecting the member is not allowed. Did you forget to include the "${u}" member?`);this.cubes[c].orderBy.push([u,a])})}}const N8=al.div`
|
|
237
|
-
margin-top: -15px;
|
|
238
|
-
height: 400px;
|
|
239
|
-
border-radius: 8px;
|
|
240
|
-
overflow: hidden;
|
|
241
|
-
|
|
242
|
-
.graphiql-container {
|
|
243
|
-
box-sizing: initial;
|
|
244
|
-
|
|
245
|
-
* {
|
|
246
|
-
box-sizing: initial;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.topBar {
|
|
250
|
-
background: none;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.docExplorerShow {
|
|
254
|
-
border-left: none;
|
|
255
|
-
background: none;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
.CodeMirror-scroll,
|
|
259
|
-
.CodeMirror-lines {
|
|
260
|
-
background: white;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.doc-explorer-title-bar {
|
|
264
|
-
height: 50px;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
`;function D8({apiUrl:t,query:e,meta:n}){const{token:r}=nl(),i=rl(),o=r||i,a=zo.exports.useMemo(()=>td({url:t.replace("/v1","/graphql"),headers:o?{authorization:o}:{}}),[t,o]),s=zo.exports.useMemo(()=>il(n),[n]),u=ol(()=>{if(!s)return"";try{return new x8(e,s).convert().replace("{"," { ").replace("}"," } ")}catch(c){return`# ${c}
|
|
268
|
-
`}},[e,s]);return b(N8,{children:b(T8,{query:u,fetcher:a})})}const p7=Object.freeze(Object.defineProperty({__proto__:null,default:D8},Symbol.toStringTag,{value:"Module"}));export{or as $,c7 as A,s7 as B,Oa as C,B as D,l7 as E,Ed as F,tn as G,Hn as H,Ca as I,Vi as J,v as K,_d as L,ad as M,od as N,Q as O,sd as P,J as Q,i7 as R,xi as S,Ni as T,Xr as U,he as V,os as W,f7 as X,o7 as Y,fu as Z,yd as _,Di as a,Oc as a$,a7 as a0,Ft as a1,gd as a2,md as a3,yo as a4,C as a5,D as a6,uf as a7,pt as a8,De as a9,Vt as aA,wr as aB,J8 as aC,je as aD,Tt as aE,Dr as aF,Ki as aG,Cr as aH,Lc as aI,xf as aJ,xl as aK,S as aL,n7 as aM,nn as aN,xt as aO,Tc as aP,Ht as aQ,ge as aR,Sf as aS,Dl as aT,Z8 as aU,Sl as aV,yc as aW,Al as aX,Ol as aY,Nl as aZ,Cn as a_,Mt as aa,_t as ab,dt as ac,Ce as ad,kn as ae,Dt as af,hn as ag,ie as ah,Ue as ai,H as aj,Of as ak,wf as al,kf as am,Gl as an,oe as ao,Sc as ap,ir as aq,au as ar,I8 as as,Fc as at,Fp as au,Af as av,r7 as aw,qc as ax,Rr as ay,jc as az,Ve as b,np as b$,Cp as b0,df as b1,Ic as b2,Rc as b3,ne as b4,Or as b5,eo as b6,to as b7,Pe as b8,no as b9,le as bA,mc as bB,bi as bC,sl as bD,dc as bE,jl as bF,R8 as bG,_c as bH,Tn as bI,dn as bJ,X8 as bK,Pc as bL,K8 as bM,e7 as bN,t7 as bO,Mc as bP,Vc as bQ,Op as bR,ru as bS,Uc as bT,Yf as bU,$f as bV,up as bW,lo as bX,zc as bY,uo as bZ,zf as b_,Fn as ba,ro as bb,io as bc,Df as bd,oo as be,wn as bf,At as bg,Sr as bh,nf as bi,Y8 as bj,Kl as bk,L8 as bl,ef as bm,tf as bn,q8 as bo,P8 as bp,M8 as bq,V8 as br,j8 as bs,U8 as bt,B8 as bu,z8 as bv,G8 as bw,H8 as bx,kc as by,$8 as bz,ce as c,ip as c0,Gc as c1,op as c2,mp as c3,ep as c4,pp as c5,Wf as c6,Gf as c7,po as c8,fo as c9,Kf as ca,vo as cb,Bf as cc,rp as cd,lp as ce,Jf as cf,hp as cg,Yc as ch,Zc as ci,Xc as cj,Kc as ck,eu as cl,tu as cm,nu as cn,Oe as co,ml as cp,Lp as cq,wi as cr,Ir as cs,co as ct,Si as cu,Jt as cv,F8 as cw,Ec as cx,W8 as cy,p7 as cz,Ot as d,Q8 as e,ea as f,Ne as g,qe as h,ht as i,rd as j,Yi as k,wc as l,me as m,Me as n,Nr as o,It as p,xe as q,re as r,ud as s,Re as t,Et as u,Ye as v,we as w,Mi as x,G as y,u7 as z};
|