@cubejs-backend/server-core 0.35.47 → 0.35.49
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 +8 -8
- package/playground/assets/{CachePane-b449a6e1.js → CachePane-3d9352e4.js} +1 -1
- package/playground/assets/{GraphiQLSandbox-70a716f7.js → GraphiQLSandbox-e1707399.js} +2 -2
- package/playground/assets/{SchemaReference-e40ea0aa.js → SchemaReference-b5aba4ba.js} +1 -1
- package/playground/assets/{SqlQueryTab-a2769780.js → SqlQueryTab-5c44a6c7.js} +1 -1
- package/playground/assets/{brace-fold-ef08fd2e.js → brace-fold-eb99ef25.js} +1 -1
- package/playground/assets/{closebrackets-d20ad50d.js → closebrackets-173973f4.js} +1 -1
- package/playground/assets/{codemirror-d0b8c39d.js → codemirror-209aaaaa.js} +1 -1
- package/playground/assets/{comment-1f057b1b.js → comment-c40eda47.js} +1 -1
- package/playground/assets/{dialog-f2ee9243.js → dialog-74fdc56d.js} +1 -1
- package/playground/assets/{dialog-83c57222.js → dialog-d8e24f8a.js} +1 -1
- package/playground/assets/{foldgutter-6531fc68.js → foldgutter-b9987ffe.js} +1 -1
- package/playground/assets/{hint-33e31eab.js → hint-4bf6b6c9.js} +1 -1
- package/playground/assets/{hint-521af11f.js → hint-85227eef.js} +1 -1
- package/playground/assets/{index-1d70f93e.js → index-273ac92b.js} +1 -1
- package/playground/assets/{index-75c8bb8e.js → index-4c243b0e.js} +1 -1
- package/playground/assets/{index-7f956cdd.js → index-bfe4aca1.js} +2 -2
- package/playground/assets/{info-8bf46b78.js → info-4852b539.js} +1 -1
- package/playground/assets/{info-addon-79d03a50.js → info-addon-a373c333.js} +1 -1
- package/playground/assets/{javascript-2c14feea.js → javascript-10986ee6.js} +1 -1
- package/playground/assets/{jump-ae5da1f1.js → jump-6189d261.js} +1 -1
- package/playground/assets/{jump-to-line-a5a29290.js → jump-to-line-89afbc3a.js} +1 -1
- package/playground/assets/{lint-5e62c3ff.js → lint-20c2736e.js} +1 -1
- package/playground/assets/{lint-513e2385.js → lint-61771210.js} +1 -1
- package/playground/assets/{lint-9733dc84.js → lint-f4706595.js} +1 -1
- package/playground/assets/matchbrackets-ced66c94.js +1 -0
- package/playground/assets/{mode-e05d47ea.js → mode-21587de9.js} +1 -1
- package/playground/assets/{mode-ddb9121c.js → mode-46e569c1.js} +1 -1
- package/playground/assets/{mode-2a8b6863.js → mode-85ef62f6.js} +1 -1
- package/playground/assets/{search-3e1daab3.js → search-5e8ca4dd.js} +1 -1
- package/playground/assets/{searchcursor-a704b3e5.js → searchcursor-4418e4ab.js} +1 -1
- package/playground/assets/{searchcursor-20506041.js → searchcursor-ebf28448.js} +1 -1
- package/playground/assets/{show-hint-727b4058.js → show-hint-a374ab23.js} +1 -1
- package/playground/assets/{sublime-7be838c9.js → sublime-711c7963.js} +3 -3
- package/playground/index.html +1 -1
- package/playground/assets/matchbrackets-2ec8425d.js +0 -1
- package/playground/assets/matchbrackets-d12becfd.js +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cubejs-backend/server-core",
|
|
3
3
|
"description": "Cube.js base component to wire all backend components together",
|
|
4
4
|
"author": "Cube Dev, Inc.",
|
|
5
|
-
"version": "0.35.
|
|
5
|
+
"version": "0.35.49",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/cube-js/cube.git",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"unit": "jest --runInBand --forceExit --coverage dist/test"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cubejs-backend/api-gateway": "^0.35.
|
|
32
|
+
"@cubejs-backend/api-gateway": "^0.35.49",
|
|
33
33
|
"@cubejs-backend/cloud": "^0.35.43",
|
|
34
34
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
35
|
-
"@cubejs-backend/native": "^0.35.
|
|
36
|
-
"@cubejs-backend/query-orchestrator": "^0.35.
|
|
37
|
-
"@cubejs-backend/schema-compiler": "^0.35.
|
|
35
|
+
"@cubejs-backend/native": "^0.35.49",
|
|
36
|
+
"@cubejs-backend/query-orchestrator": "^0.35.48",
|
|
37
|
+
"@cubejs-backend/schema-compiler": "^0.35.49",
|
|
38
38
|
"@cubejs-backend/shared": "^0.35.43",
|
|
39
39
|
"@cubejs-backend/templates": "^0.35.43",
|
|
40
40
|
"codesandbox-import-utils": "^2.1.12",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"ws": "^7.5.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@cubejs-backend/cubestore-driver": "^0.35.
|
|
60
|
+
"@cubejs-backend/cubestore-driver": "^0.35.48",
|
|
61
61
|
"@cubejs-backend/linter": "^0.35.0",
|
|
62
|
-
"@cubejs-client/playground": "^0.35.
|
|
62
|
+
"@cubejs-client/playground": "^0.35.48",
|
|
63
63
|
"@types/cross-spawn": "^6.0.2",
|
|
64
64
|
"@types/express": "^4.17.9",
|
|
65
65
|
"@types/fs-extra": "^9.0.8",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
".*\\.d\\.ts"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "c934585e7ad992cc7f91f277bff56711a1e2ff0a"
|
|
96
96
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,Q as P,F as N,a as y,T as c,l as f,P as s,C as R,n as T}from"./index-
|
|
1
|
+
import{j as e,Q as P,F as N,a as y,T as c,l as f,P as s,C as R,n as T}from"./index-bfe4aca1.js";import{s as b}from"./sqlFormatter-f7d64f52.js";const S=({query:x})=>e(P,{loadSql:!0,query:{...x,renewQuery:!0},render:({sqlQuery:l,resultSet:d,error:u})=>{var g;if(u)return e(N,{error:u});const K=(d==null?void 0:d.serialize())||{},r=l==null?void 0:l.rawQuery(),t=(g=K.loadResponse)==null?void 0:g.results[0];return y(c,{defaultActiveKey:"refreshKeys",tabBarExtraContent:y("span",{children:["Last Refresh Time: ",e("b",{children:t==null?void 0:t.lastRefreshTime})]}),children:[e(c.TabPane,{tab:"Refresh Keys",children:e(f,{loading:!l,pagination:!1,scroll:{x:!0},columns:[{title:"Refresh Key SQL",key:"refreshKey",render:(a,n)=>e(s,{code:b.format(n[0])})},{title:"Value",key:"value",render:(a,n)=>e(s,{code:(t==null?void 0:t.refreshKeyValues)&&r&&JSON.stringify(t.refreshKeyValues[r.cacheKeyQueries.indexOf(n)],null,2)})}],dataSource:r==null?void 0:r.cacheKeyQueries})},"refreshKeys"),e(c.TabPane,{tab:"Pre-aggregations",children:e(f,{loading:!l,pagination:!1,scroll:{x:!0},columns:[{title:"Table Name",key:"tableName",dataIndex:"tableName",render:a=>e("b",{children:a})},{title:"Refresh Key SQL",key:"refreshKey",dataIndex:"invalidateKeyQueries",render:a=>a.map(n=>e(s,{code:b.format(n[0])},n[0]))},{title:"Refresh Key Value",key:"value",render:(a,n)=>{var h,m;let i=(m=(h=t==null?void 0:t.usedPreAggregations)==null?void 0:h[n.tableName])==null?void 0:m.refreshKeyValues;return Array.isArray(i)&&(i=i.reduce((o,p)=>o.concat(p),[])),i==null?void 0:i.map(o=>e(s,{code:JSON.stringify(o,null,2)},JSON.stringify(o)))}}],dataSource:r==null?void 0:r.preAggregations})},"preAggregations"),e(c.TabPane,{tab:"Rollup Match Results",children:e(f,{loading:!l,pagination:!1,scroll:{x:!0},columns:[{title:"Rollup Name",key:"name",dataIndex:"name",render:a=>e("b",{children:a})},{title:"Rollup Definition",key:"rollup",dataIndex:"references",render:a=>e(s,{code:JSON.stringify(a,null,2)})},{title:"Can Be Used",key:"canUsePreAggregation",dataIndex:"canUsePreAggregation",render:a=>a?e(R,{style:{color:"#52c41a",fontSize:"2em"}}):e(T,{style:{color:"#c2371b",fontSize:"2em"}})}],dataSource:r==null?void 0:r.rollupMatchResults})},"rollupMatchResults")]})}});export{S as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as kr,j as _,a as V,R as be,b as Yu,_ as Z,c as jo,d as Zu,u as Uo,e as Ut,f as Xu,h as Ku,r as Bo,m as el,i as tl,s as nl}from"./index-
|
|
1
|
+
import{g as kr,j as _,a as V,R as be,b as Yu,_ as Z,c as jo,d as Zu,u as Uo,e as Ut,f as Xu,h as Ku,r as Bo,m as el,i as tl,s as nl}from"./index-bfe4aca1.js";function Zn(t){"@babel/helpers - typeof";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 lc=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",C8=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",Ge=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function _i(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 rl(t){return fc(t.source,_i(t.source,t.start))}function fc(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
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+zo([["".concat(a),p[0]]].concat(p.slice(1,d+1).map(function(y){return["",y]}),[[" ",Xn(h-1)+"^"],["",p[d+1]]]))}return c+zo([["".concat(a-1),l[i-1]],["".concat(a),f],["",Xn(u-1)+"^"],["".concat(a+1),l[i+1]]])}function zo(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 il(n,i)+(o?" | "+o:" |")}).join(`
|
|
3
3
|
`)}function Xn(t){return Array(t+1).join(" ")}function il(t,e){return Xn(t-e.length)+e}function Kn(t){"@babel/helpers - typeof";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 Go(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 ol(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Go(Object(n),!0).forEach(function(r){al(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Go(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function al(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qo(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 cl(t,e,n){return e&&Qo(t.prototype,e),n&&Qo(t,n),t}function ul(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 ll(t){var e=dc();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 pc(this,i)}}function pc(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 Ei(t){var e=typeof Map=="function"?new Map:void 0;return Ei=function(r){if(r===null||!fl(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)},Ei(t)}function er(t,e,n){return dc()?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 dc(){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 fl(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){ul(n,t);var e=ll(n);function n(r,i,o,a,s,u,c){var l,f,d,h;sl(this,n),h=e.call(this,r),h.name="GraphQLError",h.originalError=u!=null?u:void 0,h.nodes=Ho(Array.isArray(i)?i:i?[i]:void 0);for(var p=[],m=0,y=(b=h.nodes)!==null&&b!==void 0?b:[];m<y.length;m++){var b,g=y[m],k=g.loc;k!=null&&p.push(k)}p=Ho(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 _i(o,N)}):(d=p)===null||d===void 0?void 0:d.map(function(N){return _i(N.source,N.start)}),h.path=s!=null?s:void 0;var D=u==null?void 0:u.extensions;return c==null&&pt(D)?h.extensions=ol({},D):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}),pc(h)):(Error.captureStackTrace?Error.captureStackTrace(pn(h),n):Object.defineProperty(pn(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return cl(n,[{key:"toString",value:function(){return pl(this)}},{key:Ge,get:function(){return"Object"}}]),n}(Ei(Error));function Ho(t){return t===void 0||t.length===0?void 0:t}function pl(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
4
|
|
|
@@ -177,7 +177,7 @@ ${l}`)}yield yield lt(c.map(l=>l.body))}}catch(c){i={error:c}}finally{try{u&&!u.
|
|
|
177
177
|
* Copyright(c) 2015 Andreas Lubbe
|
|
178
178
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
179
179
|
* MIT Licensed
|
|
180
|
-
*/var q6=/["'&<>]/,P6=M6;function M6(t){var e=""+t,n=q6.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}const V6=kr(P6);var Gs=new Co;function Io(t,e,n){Z(()=>import("./codemirror-d0b8c39d.js").then(r=>r.c),["assets/codemirror-d0b8c39d.js","assets/index-7f956cdd.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?Gs.render(s.description):"Self descriptive.",d=s.type?'<span class="infoType">'+zi(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?Gs.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 zi(t){return t instanceof G?zi(t.ofType)+"!":t instanceof me?"["+zi(t.ofType)+"]":'<a class="typeName">'+V6(t.name)+"</a>"}var ut,Lu=!1;typeof window=="object"&&(Lu=window.navigator.platform==="MacIntel");var Qr=(ut={},ut[Lu?"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-727b4058.js").then(t=>t.s),["assets/show-hint-727b4058.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./matchbrackets-2ec8425d.js").then(t=>t.m),["assets/matchbrackets-2ec8425d.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/matchbrackets-d12becfd.js","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./closebrackets-d20ad50d.js").then(t=>t.c),["assets/closebrackets-d20ad50d.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./brace-fold-ef08fd2e.js").then(t=>t.b),["assets/brace-fold-ef08fd2e.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./foldgutter-6531fc68.js").then(t=>t.f),["assets/foldgutter-6531fc68.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./lint-9733dc84.js").then(t=>t.l),["assets/lint-9733dc84.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./searchcursor-20506041.js").then(t=>t.s),["assets/searchcursor-20506041.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/searchcursor-a704b3e5.js","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./jump-to-line-a5a29290.js").then(t=>t.j),["assets/jump-to-line-a5a29290.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/dialog-83c57222.js"]),Z(()=>import("./dialog-f2ee9243.js").then(t=>t.d),["assets/dialog-f2ee9243.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/dialog-83c57222.js","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./sublime-7be838c9.js").then(t=>t.s),["assets/sublime-7be838c9.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/searchcursor-a704b3e5.js","assets/matchbrackets-d12becfd.js"])];function Hr(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-d0b8c39d.js").then(o=>o.c),["assets/codemirror-d0b8c39d.js","assets/index-7f956cdd.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_@(]$/,Qs=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-1f057b1b.js").then(i=>i.c),["assets/comment-1f057b1b.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./search-3e1daab3.js").then(i=>i.s),["assets/search-3e1daab3.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/searchcursor-a704b3e5.js","assets/dialog-83c57222.js"]),Z(()=>import("./hint-521af11f.js").then(i=>i.h),["assets/hint-521af11f.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/show-hint-727b4058.js","assets/index-1d70f93e.js"]),Z(()=>import("./lint-5e62c3ff.js").then(i=>i.l),["assets/lint-5e62c3ff.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-1d70f93e.js"]),Z(()=>import("./info-8bf46b78.js").then(i=>i.i),["assets/info-8bf46b78.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/index-75c8bb8e.js","assets/codemirror-d0b8c39d.js","assets/SchemaReference-e40ea0aa.js","assets/forEachState-6d514dbd.js","assets/info-addon-79d03a50.js"]),Z(()=>import("./jump-ae5da1f1.js").then(i=>i.j),["assets/jump-ae5da1f1.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/SchemaReference-e40ea0aa.js","assets/index-75c8bb8e.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./mode-ddb9121c.js").then(i=>i.m),["assets/mode-ddb9121c.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-1d70f93e.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 _("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,Hr(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()}},Qr),{"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(L6);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)}}(),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)},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}}},Hs=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-33e31eab.js").then(i=>i.h),["assets/hint-33e31eab.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-75c8bb8e.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./lint-513e2385.js").then(i=>i.l),["assets/lint-513e2385.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-75c8bb8e.js"]),Z(()=>import("./mode-e05d47ea.js").then(i=>i.m),["assets/mode-e05d47ea.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-1d70f93e.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 _("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,Hr(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: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()}},Qr)}),[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)}}(),Qi=globalThis&&globalThis.__assign||function(){return Qi=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},Qi.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}}},$s=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-2c14feea.js").then(i=>i.j),["assets/javascript-2c14feea.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.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){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 _("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,Hr(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:Qi({"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()}},Qr)}),[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}}},Js=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-6531fc68.js").then(r=>r.f),["assets/foldgutter-6531fc68.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./brace-fold-ef08fd2e.js").then(r=>r.b),["assets/brace-fold-ef08fd2e.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./dialog-f2ee9243.js").then(r=>r.d),["assets/dialog-f2ee9243.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/dialog-83c57222.js","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./search-3e1daab3.js").then(r=>r.s),["assets/search-3e1daab3.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/searchcursor-a704b3e5.js","assets/dialog-83c57222.js"]),Z(()=>import("./searchcursor-20506041.js").then(r=>r.s),["assets/searchcursor-20506041.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/searchcursor-a704b3e5.js","assets/codemirror-d0b8c39d.js"]),Z(()=>import("./jump-to-line-a5a29290.js").then(r=>r.j),["assets/jump-to-line-a5a29290.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/dialog-83c57222.js"]),Z(()=>import("./sublime-7be838c9.js").then(r=>r.s),["assets/sublime-7be838c9.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/searchcursor-a704b3e5.js","assets/matchbrackets-d12becfd.js"]),Z(()=>import("./mode-2a8b6863.js").then(r=>r.m),["assets/mode-2a8b6863.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.js","assets/index-1d70f93e.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 _("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,Hr(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-79d03a50.js").then(s=>s.i),["assets/info-addon-79d03a50.js","assets/index-7f956cdd.js","assets/index-af3b87a2.css","assets/codemirror-d0b8c39d.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(_(r,{pos:l})),i&&typeof i.shouldRender=="function"&&i.shouldRender(s)&&f.push(_(i,{token:s})),f.length?(jo.render(_("div",{children:f}),o),o):(jo.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:!!(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Qr}),[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 Hi(t.type,e)}function Hi(t,e){return t instanceof G?V("span",{children:[Hi(t.ofType,e),"!"]}):t instanceof me?V("span",{children:["[",Hi(t.ofType,e),"]"]}):_("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 qu(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?V("span",{children:[" = ",_("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:[_("span",{className:"arg-name",children:e.name}),": ",_(ft,{type:e.type,onClick:n}),r!==!1&&_(qu,{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?_("div",{className:n,dangerouslySetInnerHTML:{__html:oJ.render(e)}}):_("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:[_("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:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},l.name)})]});var u=e.args.filter(function(l){return!!l.deprecationReason});u.length>0&&(s=V("div",{id:"doc-deprecated-args",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated arguments"}),i?u.map(function(l,f){return V("div",{children:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},f)}):_("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:[_("div",{className:"doc-category-title",children:"directives"}),e.astNode.directives.map(function(l){return _("div",{className:"doc-category-item",children:_("div",{children:_(iJ,{directive:l})})},l.name.value)})]})),V("div",{children:[_(Le,{className:"doc-type-description",markdown:(e==null?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&_(Le,{className:"doc-deprecation",markdown:e==null?void 0:e.deprecationReason}),V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"type"}),_(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:[_(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:[_("div",{className:"doc-category-title",children:"root types"}),V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"query"}),": ",_(ft,{type:r,onClick:n})]}),i&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"mutation"}),": ",_(ft,{type:i,onClick:n})]}),o&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"subscription"}),": ",_(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:[_("div",{className:"search-box-icon","aria-hidden":"true",children:"⚲"}),_("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&_("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input",children:"✕"})]})},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 D=d[k];if(o!==D&&vi(k,i)&&l.push(_("div",{className:"doc-category-item",children:_(ft,{type:D,onClick:s})},k)),D&&"getFields"in D){var N=D.getFields();Object.keys(N).forEach(function(x){var I=N[x],P;if(!vi(x,i))if("args"in I&&I.args.length){if(P=I.args.filter(function(j){return vi(j.name,i)}),P.length===0)return}else return;var z=V("div",{className:"doc-category-item",children:[o!==D&&[_(ft,{type:D,onClick:s},"type"),"."],_("a",{className:"field-name",onClick:function(j){return u(I,D,j)},children:I.name}),P&&["(",_("span",{children:P.map(function(j){return _(br,{arg:j,onClickType:s,showDefaultValue:!1},j.name)})},"args"),")"]]},k+"."+x);o===D?c.push(z):f.push(z)})}};try{for(var m=pJ(h),y=m.next();!y.done;y=m.next()){var b=y.value,g=p(b);if(g==="break")break}}catch(k){n={error:k}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return c.length+l.length+f.length===0?_("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:[_("div",{className:"doc-category-title",children:"other results"}),l,f]})]}):V("div",{className:"doc-search-items",children:[c,l,f]})},e}(be.Component);function vi(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 Ar?(a="possible types",s=n.getPossibleTypes(r)):r instanceof Dr?(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:[_("div",{className:"doc-category-title",children:a}),s.map(function(g){return _("div",{className:"doc-category-item",children:_(ft,{type:g,onClick:i})},g.name)})]}));var c,l;if(r&&"getFields"in r){var f=r.getFields(),d=Object.keys(f).map(function(g){return f[g]});c=V("div",{id:"doc-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"fields"}),d.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)})]});var h=d.filter(function(g){return!!g.deprecationReason});h.length>0&&(l=V("div",{id:"doc-deprecated-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated fields"}),this.state.showDeprecated?h.map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated fields..."})]}))}var p,m;if(r instanceof tn){var y=r.getValues();p=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"values"}),y.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ys,{value:g},g.name)})]});var b=y.filter(function(g){return!!g.deprecationReason});b.length>0&&(m=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated values"}),this.state.showDeprecated?b.map(function(g){return _(Ys,{value:g},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated values..."})]}))}return V("div",{children:[_(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 Ws(t){var e=t.type,n=t.field,r=t.onClickType,i=t.onClickField;return V("div",{className:"doc-category-item",children:[_("a",{className:"field-name",onClick:function(o){return i(n,e,o)},children:n.name}),"args"in n&&n.args&&n.args.length>0&&["(",_("span",{children:n.args.filter(function(o){return!o.deprecationReason}).map(function(o){return _(br,{arg:o,onClickType:r},o.name)})},"args"),")"],": ",_(ft,{type:n.type,onClick:r}),_(qu,{field:n}),n.description&&_(Le,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&_(Le,{className:"doc-deprecation",markdown:n.deprecationReason})]})}function Ys(t){var e=t.value;return V("div",{className:"doc-category-item",children:[_("div",{className:"enum-value",children:e.name}),_(Le,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&_(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)},Zs={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:[Zs]},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=_("div",{className:"error-container",children:"Error fetching schema"}):r===void 0?s=_("div",{className:"spinner-container",children:_("div",{className:"spinner"})}):r?a.search?s=_(dJ,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?s=_(cJ,{schema:r,onClickType:this.handleClickType}):wn(a.def)?s=_(vJ,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):s=_(sJ,{field:a.def,onClickType:this.handleClickType}):s=_("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&&_("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c,children:c}),_("div",{className:"doc-explorer-title",children:a.title||a.name}),_("div",{className:"doc-explorer-rhs",children:this.props.children})]}),V("div",{className:"doc-explorer-contents",children:[u&&_(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:[Zs]})},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(`
|
|
180
|
+
*/var q6=/["'&<>]/,P6=M6;function M6(t){var e=""+t,n=q6.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}const V6=kr(P6);var Gs=new Co;function Io(t,e,n){Z(()=>import("./codemirror-209aaaaa.js").then(r=>r.c),["assets/codemirror-209aaaaa.js","assets/index-bfe4aca1.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?Gs.render(s.description):"Self descriptive.",d=s.type?'<span class="infoType">'+zi(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?Gs.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 zi(t){return t instanceof G?zi(t.ofType)+"!":t instanceof me?"["+zi(t.ofType)+"]":'<a class="typeName">'+V6(t.name)+"</a>"}var ut,Lu=!1;typeof window=="object"&&(Lu=window.navigator.platform==="MacIntel");var Qr=(ut={},ut[Lu?"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-a374ab23.js").then(t=>t.s),["assets/show-hint-a374ab23.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./matchbrackets-ced66c94.js").then(t=>t.m),["assets/matchbrackets-ced66c94.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./closebrackets-173973f4.js").then(t=>t.c),["assets/closebrackets-173973f4.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./brace-fold-eb99ef25.js").then(t=>t.b),["assets/brace-fold-eb99ef25.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./foldgutter-b9987ffe.js").then(t=>t.f),["assets/foldgutter-b9987ffe.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./lint-f4706595.js").then(t=>t.l),["assets/lint-f4706595.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./searchcursor-ebf28448.js").then(t=>t.s),["assets/searchcursor-ebf28448.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/searchcursor-4418e4ab.js","assets/codemirror-209aaaaa.js"]),Z(()=>import("./jump-to-line-89afbc3a.js").then(t=>t.j),["assets/jump-to-line-89afbc3a.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/dialog-d8e24f8a.js"]),Z(()=>import("./dialog-74fdc56d.js").then(t=>t.d),["assets/dialog-74fdc56d.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/dialog-d8e24f8a.js","assets/codemirror-209aaaaa.js"]),Z(()=>import("./sublime-711c7963.js").then(t=>t.s),["assets/sublime-711c7963.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/searchcursor-4418e4ab.js","assets/matchbrackets-ced66c94.js"])];function Hr(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-209aaaaa.js").then(o=>o.c),["assets/codemirror-209aaaaa.js","assets/index-bfe4aca1.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_@(]$/,Qs=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-c40eda47.js").then(i=>i.c),["assets/comment-c40eda47.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./search-5e8ca4dd.js").then(i=>i.s),["assets/search-5e8ca4dd.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/searchcursor-4418e4ab.js","assets/dialog-d8e24f8a.js"]),Z(()=>import("./hint-85227eef.js").then(i=>i.h),["assets/hint-85227eef.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/show-hint-a374ab23.js","assets/index-273ac92b.js"]),Z(()=>import("./lint-20c2736e.js").then(i=>i.l),["assets/lint-20c2736e.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-273ac92b.js"]),Z(()=>import("./info-4852b539.js").then(i=>i.i),["assets/info-4852b539.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/index-4c243b0e.js","assets/codemirror-209aaaaa.js","assets/SchemaReference-b5aba4ba.js","assets/forEachState-6d514dbd.js","assets/info-addon-a373c333.js"]),Z(()=>import("./jump-6189d261.js").then(i=>i.j),["assets/jump-6189d261.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/SchemaReference-b5aba4ba.js","assets/index-4c243b0e.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./mode-46e569c1.js").then(i=>i.m),["assets/mode-46e569c1.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-273ac92b.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 _("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,Hr(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()}},Qr),{"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(L6);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)}}(),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)},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}}},Hs=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-4bf6b6c9.js").then(i=>i.h),["assets/hint-4bf6b6c9.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-4c243b0e.js","assets/forEachState-6d514dbd.js"]),Z(()=>import("./lint-61771210.js").then(i=>i.l),["assets/lint-61771210.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-4c243b0e.js"]),Z(()=>import("./mode-21587de9.js").then(i=>i.m),["assets/mode-21587de9.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-273ac92b.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 _("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,Hr(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: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()}},Qr)}),[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)}}(),Qi=globalThis&&globalThis.__assign||function(){return Qi=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},Qi.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}}},$s=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-10986ee6.js").then(i=>i.j),["assets/javascript-10986ee6.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.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){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 _("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,Hr(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:Qi({"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()}},Qr)}),[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}}},Js=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-b9987ffe.js").then(r=>r.f),["assets/foldgutter-b9987ffe.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./brace-fold-eb99ef25.js").then(r=>r.b),["assets/brace-fold-eb99ef25.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js"]),Z(()=>import("./dialog-74fdc56d.js").then(r=>r.d),["assets/dialog-74fdc56d.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/dialog-d8e24f8a.js","assets/codemirror-209aaaaa.js"]),Z(()=>import("./search-5e8ca4dd.js").then(r=>r.s),["assets/search-5e8ca4dd.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/searchcursor-4418e4ab.js","assets/dialog-d8e24f8a.js"]),Z(()=>import("./searchcursor-ebf28448.js").then(r=>r.s),["assets/searchcursor-ebf28448.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/searchcursor-4418e4ab.js","assets/codemirror-209aaaaa.js"]),Z(()=>import("./jump-to-line-89afbc3a.js").then(r=>r.j),["assets/jump-to-line-89afbc3a.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/dialog-d8e24f8a.js"]),Z(()=>import("./sublime-711c7963.js").then(r=>r.s),["assets/sublime-711c7963.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/searchcursor-4418e4ab.js","assets/matchbrackets-ced66c94.js"]),Z(()=>import("./mode-85ef62f6.js").then(r=>r.m),["assets/mode-85ef62f6.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.js","assets/index-273ac92b.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 _("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,Hr(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-a373c333.js").then(s=>s.i),["assets/info-addon-a373c333.js","assets/index-bfe4aca1.js","assets/index-af3b87a2.css","assets/codemirror-209aaaaa.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(_(r,{pos:l})),i&&typeof i.shouldRender=="function"&&i.shouldRender(s)&&f.push(_(i,{token:s})),f.length?(jo.render(_("div",{children:f}),o),o):(jo.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:!!(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:Qr}),[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 Hi(t.type,e)}function Hi(t,e){return t instanceof G?V("span",{children:[Hi(t.ofType,e),"!"]}):t instanceof me?V("span",{children:["[",Hi(t.ofType,e),"]"]}):_("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 qu(t){var e=t.field;return"defaultValue"in e&&e.defaultValue!==void 0?V("span",{children:[" = ",_("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:[_("span",{className:"arg-name",children:e.name}),": ",_(ft,{type:e.type,onClick:n}),r!==!1&&_(qu,{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?_("div",{className:n,dangerouslySetInnerHTML:{__html:oJ.render(e)}}):_("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:[_("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:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},l.name)})]});var u=e.args.filter(function(l){return!!l.deprecationReason});u.length>0&&(s=V("div",{id:"doc-deprecated-args",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated arguments"}),i?u.map(function(l,f){return V("div",{children:[_("div",{children:_(br,{arg:l,onClickType:n})}),_(Le,{className:"doc-value-description",markdown:l.description}),l&&"deprecationReason"in l&&_(Le,{className:"doc-deprecation",markdown:l==null?void 0:l.deprecationReason})]},f)}):_("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:[_("div",{className:"doc-category-title",children:"directives"}),e.astNode.directives.map(function(l){return _("div",{className:"doc-category-item",children:_("div",{children:_(iJ,{directive:l})})},l.name.value)})]})),V("div",{children:[_(Le,{className:"doc-type-description",markdown:(e==null?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&_(Le,{className:"doc-deprecation",markdown:e==null?void 0:e.deprecationReason}),V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"type"}),_(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:[_(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:[_("div",{className:"doc-category-title",children:"root types"}),V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"query"}),": ",_(ft,{type:r,onClick:n})]}),i&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"mutation"}),": ",_(ft,{type:i,onClick:n})]}),o&&V("div",{className:"doc-category-item",children:[_("span",{className:"keyword",children:"subscription"}),": ",_(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:[_("div",{className:"search-box-icon","aria-hidden":"true",children:"⚲"}),_("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&_("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input",children:"✕"})]})},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 D=d[k];if(o!==D&&vi(k,i)&&l.push(_("div",{className:"doc-category-item",children:_(ft,{type:D,onClick:s})},k)),D&&"getFields"in D){var N=D.getFields();Object.keys(N).forEach(function(x){var I=N[x],P;if(!vi(x,i))if("args"in I&&I.args.length){if(P=I.args.filter(function(j){return vi(j.name,i)}),P.length===0)return}else return;var z=V("div",{className:"doc-category-item",children:[o!==D&&[_(ft,{type:D,onClick:s},"type"),"."],_("a",{className:"field-name",onClick:function(j){return u(I,D,j)},children:I.name}),P&&["(",_("span",{children:P.map(function(j){return _(br,{arg:j,onClickType:s,showDefaultValue:!1},j.name)})},"args"),")"]]},k+"."+x);o===D?c.push(z):f.push(z)})}};try{for(var m=pJ(h),y=m.next();!y.done;y=m.next()){var b=y.value,g=p(b);if(g==="break")break}}catch(k){n={error:k}}finally{try{y&&!y.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return c.length+l.length+f.length===0?_("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:[_("div",{className:"doc-category-title",children:"other results"}),l,f]})]}):V("div",{className:"doc-search-items",children:[c,l,f]})},e}(be.Component);function vi(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 Ar?(a="possible types",s=n.getPossibleTypes(r)):r instanceof Dr?(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:[_("div",{className:"doc-category-title",children:a}),s.map(function(g){return _("div",{className:"doc-category-item",children:_(ft,{type:g,onClick:i})},g.name)})]}));var c,l;if(r&&"getFields"in r){var f=r.getFields(),d=Object.keys(f).map(function(g){return f[g]});c=V("div",{id:"doc-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"fields"}),d.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)})]});var h=d.filter(function(g){return!!g.deprecationReason});h.length>0&&(l=V("div",{id:"doc-deprecated-fields",className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated fields"}),this.state.showDeprecated?h.map(function(g){return _(Ws,{type:r,field:g,onClickType:i,onClickField:o},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated fields..."})]}))}var p,m;if(r instanceof tn){var y=r.getValues();p=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"values"}),y.filter(function(g){return!g.deprecationReason}).map(function(g){return _(Ys,{value:g},g.name)})]});var b=y.filter(function(g){return!!g.deprecationReason});b.length>0&&(m=V("div",{className:"doc-category",children:[_("div",{className:"doc-category-title",children:"deprecated values"}),this.state.showDeprecated?b.map(function(g){return _(Ys,{value:g},g.name)}):_("button",{className:"show-btn",onClick:this.handleShowDeprecated,children:"Show deprecated values..."})]}))}return V("div",{children:[_(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 Ws(t){var e=t.type,n=t.field,r=t.onClickType,i=t.onClickField;return V("div",{className:"doc-category-item",children:[_("a",{className:"field-name",onClick:function(o){return i(n,e,o)},children:n.name}),"args"in n&&n.args&&n.args.length>0&&["(",_("span",{children:n.args.filter(function(o){return!o.deprecationReason}).map(function(o){return _(br,{arg:o,onClickType:r},o.name)})},"args"),")"],": ",_(ft,{type:n.type,onClick:r}),_(qu,{field:n}),n.description&&_(Le,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&_(Le,{className:"doc-deprecation",markdown:n.deprecationReason})]})}function Ys(t){var e=t.value;return V("div",{className:"doc-category-item",children:[_("div",{className:"enum-value",children:e.name}),_(Le,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&_(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)},Zs={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:[Zs]},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=_("div",{className:"error-container",children:"Error fetching schema"}):r===void 0?s=_("div",{className:"spinner-container",children:_("div",{className:"spinner"})}):r?a.search?s=_(dJ,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?s=_(cJ,{schema:r,onClickType:this.handleClickType}):wn(a.def)?s=_(vJ,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):s=_(sJ,{field:a.def,onClickType:this.handleClickType}):s=_("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&&_("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c,children:c}),_("div",{className:"doc-explorer-title",children:a.title||a.name}),_("div",{className:"doc-explorer-rhs",children:this.props.children})]}),V("div",{className:"doc-explorer-contents",children:[u&&_(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:[Zs]})},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
181
|
`).filter(function(a){return a.indexOf("#")!==0}).join("")),o=this.props.favorite?"★":"☆";return V("li",{className:this.state.editable?"editable":void 0,children:[this.state.editable?_("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"}):_("button",{className:"history-label",onClick:this.handleClick.bind(this),children:i}),_("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label",children:"✎"}),_("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},Xs=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},Ks=globalThis&&globalThis.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(TJ(arguments[e]));return t},kJ=1e5,Pu=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=Ks(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=Ks(r.history.items,r.favorite.items)},this.history=new Xs("queries",this.storage,this.maxHistoryLength),this.favorite=new Xs("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)}}(),$i=globalThis&&globalThis.__assign||function(){return $i=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},$i.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 Pu(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 _(bJ,{...$i({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:[_("div",{className:"history-title",children:"History"}),_("div",{className:"doc-explorer-rhs",children:this.props.children})]}),_("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 ec(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 mi(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 Rr(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=Mu(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
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 Mu(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:Mu(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 tc(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},Vu=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=Vu(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 ju(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,y=h.selectionSet;f={kind:v.INLINE_FRAGMENT,typeCondition:p,directives:m,selectionSet:y}}}if(f.kind===v.INLINE_FRAGMENT&&(!f.directives||((o=f.directives)===null||o===void 0?void 0:o.length)===0)){var b=f.typeCondition?f.typeCondition.name.value:null;if(!b||b===a){s.push.apply(s,Vu(ju(t,f.selectionSet.selections,n)));continue}}s.push(f)}}catch(g){r={error:g}}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 Rr(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=ju(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?uo(i,c):c)}var PJ="IntrospectionQuery",MJ=PJ;/*!
|
|
183
183
|
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as v,o as m}from"./index-
|
|
1
|
+
import{b as v,o as m}from"./index-bfe4aca1.js";import{r as y}from"./index-4c243b0e.js";import{i as b}from"./GraphiQLSandbox-e1707399.js";import{f as k}from"./forEachState-6d514dbd.js";var s={};const F=v(b);var S=m&&m.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(s,"__esModule",{value:!0});var a=y,u=F,h=S(k);function R(r,t){var e={schema:r,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return h.default(t,function(n){switch(n.kind){case"Query":case"ShortQuery":e.type=r.getQueryType();break;case"Mutation":e.type=r.getMutationType();break;case"Subscription":e.type=r.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(e.type=r.getType(n.type));break;case"Field":case"AliasedField":e.fieldDef=e.type&&n.name?D(r,e.parentType,n.name):null,e.type=e.fieldDef&&e.fieldDef.type;break;case"SelectionSet":e.parentType=e.type?a.getNamedType(e.type):null;break;case"Directive":e.directiveDef=n.name?r.getDirective(n.name):null;break;case"Arguments":var f=n.prevState?n.prevState.kind==="Field"?e.fieldDef:n.prevState.kind==="Directive"?e.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&D(r,e.parentType,n.prevState.name):null:null;e.argDefs=f?f.args:null;break;case"Argument":if(e.argDef=null,e.argDefs){for(var l=0;l<e.argDefs.length;l++)if(e.argDefs[l].name===n.name){e.argDef=e.argDefs[l];break}}e.inputType=e.argDef&&e.argDef.type;break;case"EnumValue":var c=e.inputType?a.getNamedType(e.inputType):null;e.enumValue=c instanceof a.GraphQLEnumType?_(c.getValues(),function(T){return T.value===n.name}):null;break;case"ListValue":var p=e.inputType?a.getNullableType(e.inputType):null;e.inputType=p instanceof a.GraphQLList?p.ofType:null;break;case"ObjectValue":var d=e.inputType?a.getNamedType(e.inputType):null;e.objectFieldDefs=d instanceof a.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":var g=n.name&&e.objectFieldDefs?e.objectFieldDefs[n.name]:null;e.inputType=g&&g.type;break;case"NamedType":e.type=n.name?r.getType(n.name):null;break}}),e}s.default=R;function D(r,t,e){if(e===u.SchemaMetaFieldDef.name&&r.getQueryType()===t)return u.SchemaMetaFieldDef;if(e===u.TypeMetaFieldDef.name&&r.getQueryType()===t)return u.TypeMetaFieldDef;if(e===u.TypeNameMetaFieldDef.name&&a.isCompositeType(t))return u.TypeNameMetaFieldDef;if(t&&t.getFields)return t.getFields()[e]}function _(r,t){for(var e=0;e<r.length;e++)if(t(r[e]))return r[e]}var i={};Object.defineProperty(i,"__esModule",{value:!0});i.getTypeReference=i.getEnumValueReference=i.getArgumentReference=i.getDirectiveReference=i.getFieldReference=void 0;var M=y;function A(r){return{kind:"Field",schema:r.schema,field:r.fieldDef,type:o(r.fieldDef)?null:r.parentType}}i.getFieldReference=A;function V(r){return{kind:"Directive",schema:r.schema,directive:r.directiveDef}}i.getDirectiveReference=V;function j(r){return r.directiveDef?{kind:"Argument",schema:r.schema,argument:r.argDef,directive:r.directiveDef}:{kind:"Argument",schema:r.schema,argument:r.argDef,field:r.fieldDef,type:o(r.fieldDef)?null:r.parentType}}i.getArgumentReference=j;function E(r){return{kind:"EnumValue",value:r.enumValue||void 0,type:r.inputType?M.getNamedType(r.inputType):void 0}}i.getEnumValueReference=E;function Q(r,t){return{kind:"Type",schema:r.schema,type:t||r.type}}i.getTypeReference=Q;function o(r){return r.name.slice(0,2)==="__"}export{i as S,s as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t,Q as f,F as m,a as c,k as d,P as p,r as q}from"./index-
|
|
1
|
+
import{j as t,Q as f,F as m,a as c,k as d,P as p,r as q}from"./index-bfe4aca1.js";import{s as x}from"./sqlFormatter-f7d64f52.js";function y({sql:a,loading:e,onChange:r}){return q.useEffect(()=>{r({sql:a,loading:e})},[a,e]),null}function g({query:a,onChange:e}){return t(f,{loadSql:"only",query:a,render:({sqlQuery:r,loadingState:l,error:s})=>{if(s)return t(m,{error:s});const[n]=Array.isArray(r)?r:[r],o=n&&x.format(n.sql());return c(d,{children:[t(p,{code:o}),t(y,{loading:l.isLoading,sql:o,onChange:({sql:u,loading:i})=>{e({loading:i,value:u})}})]})}})}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _}from"./index-
|
|
1
|
+
import{g as _}from"./index-bfe4aca1.js";import{a as S}from"./codemirror-209aaaaa.js";function E(h,d){for(var e=0;e<d.length;e++){const t=d[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in h)){const n=Object.getOwnPropertyDescriptor(t,a);n&&Object.defineProperty(h,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(h,d){(function(e){e(S)})(function(e){e.registerHelper("fold","brace",function(t,a){var n=a.line,f=t.getLine(n),i;function o(F){for(var T=a.ch,O=0;;){var k=T<=0?-1:f.lastIndexOf(F,T-1);if(k==-1){if(O==1)break;O=1,T=f.length;continue}if(O==1&&k<a.ch)break;if(i=t.getTokenTypeAt(e.Pos(n,k+1)),!/^(comment|string)/.test(i))return k+1;T=k-1}}var u=o("{"),l=o("["),r,s,g;if(u!=null&&(l==null||l>u))g=u,r="{",s="}";else if(l!=null)g=l,r="[",s="]";else return;var P=1,L=t.lastLine(),v,m;t:for(var p=n;p<=L;++p)for(var b=t.getLine(p),c=p==n?g:0;;){var y=b.indexOf(r,c),A=b.indexOf(s,c);if(y<0&&(y=b.length),A<0&&(A=b.length),c=Math.min(y,A),c==b.length)break;if(t.getTokenTypeAt(e.Pos(p,c+1))==i){if(c==y)++P;else if(!--P){v=p,m=c;break t}}++c}if(!(v==null||n==v))return{from:e.Pos(n,g),to:e.Pos(v,m)}}),e.registerHelper("fold","import",function(t,a){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var s=t.getTokenAt(e.Pos(r,1));if(/\S/.test(s.string)||(s=t.getTokenAt(e.Pos(r,s.end+1))),s.type!="keyword"||s.string!="import")return null;for(var g=r,P=Math.min(t.lastLine(),r+10);g<=P;++g){var L=t.getLine(g),v=L.indexOf(";");if(v!=-1)return{startCh:s.end,end:e.Pos(g,v)}}}var f=a.line,i=n(f),o;if(!i||n(f-1)||(o=n(f-2))&&o.end.line==f-1)return null;for(var u=i.end;;){var l=n(u.line+1);if(l==null)break;u=l.end}return{from:t.clipPos(e.Pos(f,i.startCh+1)),to:u}}),e.registerHelper("fold","include",function(t,a){function n(l){if(l<t.firstLine()||l>t.lastLine())return null;var r=t.getTokenAt(e.Pos(l,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(l,r.end+1))),r.type=="meta"&&r.string.slice(0,8)=="#include")return r.start+8}var f=a.line,i=n(f);if(i==null||n(f-1)!=null)return null;for(var o=f;;){var u=n(o+1);if(u==null)break;++o}return{from:e.Pos(f,i+1),to:t.clipPos(e.Pos(o))}})})})();var j=H.exports;const I=_(j),B=E({__proto__:null,default:I},[j]);export{B as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as N}from"./index-
|
|
1
|
+
import{g as N}from"./index-bfe4aca1.js";import{a as q}from"./codemirror-209aaaaa.js";function G(O,A){for(var a=0;a<A.length;a++){const d=A[a];if(typeof d!="string"&&!Array.isArray(d)){for(const i in d)if(i!=="default"&&!(i in O)){const g=Object.getOwnPropertyDescriptor(d,i);g&&Object.defineProperty(O,i,g.get?g:{enumerable:!0,get:()=>d[i]})}}}return Object.freeze(Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(O,A){(function(a){a(q)})(function(a){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=a.Pos;a.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=a.Init&&(e.removeKeyMap(x),e.state.closeBrackets=null),t&&(E(g(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(x))});function g(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}var x={Backspace:K,Enter:L};function E(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),s="'"+n+"'";x[s]||(x[s]=D(n))}}E(d.pairs+"`");function D(e){return function(t){return $(t,e)}}function y(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function K(e){var t=y(e);if(!t||e.getOption("disableInput"))return a.Pass;for(var n=g(t,"pairs"),s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}for(var r=s.length-1;r>=0;r--){var o=s[r].head;e.replaceRange("",i(o.line,o.ch-1),i(o.line,o.ch+1),"+delete")}}function L(e){var t=y(e),n=t&&g(t,"explode");if(!n||e.getOption("disableInput"))return a.Pass;for(var s=e.listSelections(),r=0;r<s.length;r++){if(!s[r].empty())return a.Pass;var f=_(e,s[r].head);if(!f||n.indexOf(f)%2!=0)return a.Pass}e.operation(function(){var o=e.lineSeparator()||`
|
|
2
2
|
`;e.replaceSelection(o+o,null),k(e,-1),s=e.listSelections();for(var h=0;h<s.length;h++){var S=s[h].head.line;e.indentLine(S,null,!0),e.indentLine(S+1,null,!0)}})}function k(e,t){for(var n=[],s=e.listSelections(),r=0,f=0;f<s.length;f++){var o=s[f];o.head==e.getCursor()&&(r=f);var h=o.head.ch||t>0?{line:o.head.line,ch:o.head.ch+t}:{line:o.head.line-1};n.push({anchor:h,head:h})}e.setSelections(n,r)}function W(e){var t=a.cmpPos(e.anchor,e.head)>0;return{anchor:new i(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new i(e.head.line,e.head.ch+(t?1:-1))}}function $(e,t){var n=y(e);if(!n||e.getOption("disableInput"))return a.Pass;var s=g(n,"pairs"),r=s.indexOf(t);if(r==-1)return a.Pass;for(var f=g(n,"closeBefore"),o=g(n,"triples"),h=s.charAt(r+1)==t,S=e.listSelections(),B=r%2==0,c,R=0;R<S.length;R++){var w=S[R],l=w.head,p,P=e.getRange(l,i(l.line,l.ch+1));if(B&&!w.empty())p="surround";else if((h||!B)&&P==t)h&&z(e,l)?p="both":o.indexOf(t)>=0&&e.getRange(l,i(l.line,l.ch+3))==t+t+t?p="skipThree":p="skip";else if(h&&l.ch>1&&o.indexOf(t)>=0&&e.getRange(i(l.line,l.ch-2),l)==t+t){if(l.ch>2&&/\bstring/.test(e.getTokenTypeAt(i(l.line,l.ch-2))))return a.Pass;p="addFour"}else if(h){var I=l.ch==0?" ":e.getRange(i(l.line,l.ch-1),l);if(!a.isWordChar(P)&&I!=t&&!a.isWordChar(I))p="both";else return a.Pass}else if(B&&(P.length===0||/\s/.test(P)||f.indexOf(P)>-1))p="both";else return a.Pass;if(!c)c=p;else if(c!=p)return a.Pass}var b=r%2?s.charAt(r-1):t,j=r%2?t:s.charAt(r+1);e.operation(function(){if(c=="skip")k(e,1);else if(c=="skipThree")k(e,3);else if(c=="surround"){for(var v=e.getSelections(),u=0;u<v.length;u++)v[u]=b+v[u]+j;e.replaceSelections(v,"around"),v=e.listSelections().slice();for(var u=0;u<v.length;u++)v[u]=W(v[u]);e.setSelections(v)}else c=="both"?(e.replaceSelection(b+j,null),e.triggerElectric(b+j),k(e,-1)):c=="addFour"&&(e.replaceSelection(b+b+b+b,"before"),k(e,1))})}function _(e,t){var n=e.getRange(i(t.line,t.ch-1),i(t.line,t.ch+1));return n.length==2?n:null}function z(e,t){var n=e.getTokenAt(i(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}})})();var F=H.exports;const J=N(F),U=G({__proto__:null,default:J},[F]);export{U as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as au,o as su}from"./index-7f956cdd.js";function uu(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Go={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(su,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Dn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Dn||kr,E=A&&(yt?document.documentMode||6:+(kr||Dn)[1]),ie=!kr&&/WebKit\//.test(X),Ko=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),_o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Xo=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Yo=/\bCrOS\b/.test(X),qo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var Nn=me&&(Ko||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var An=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Zo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function On(){}function Wn(e,t){var i;return Object.create?i=Object.create(e):(On.prototype=e,i=new On),t&&it(t,i),i}var Qo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Hn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Jo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Jo.test(e)}function Fn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var Vo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=Vo(e.text,t)),i}var Pn=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pn).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||Pn}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function En(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function In(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),In(e)}function Si(e){return e.target||e.srcElement}function Bn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var $o=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function ea(e){if(Li==null){var t=k("span","");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ta(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
|
|
1
|
+
import{g as au,o as su}from"./index-bfe4aca1.js";function uu(Ut,ci){for(var X=0;X<ci.length;X++){const Te=ci[X];if(typeof Te!="string"&&!Array.isArray(Te)){for(const oe in Te)if(oe!=="default"&&!(oe in Ut)){const yt=Object.getOwnPropertyDescriptor(Te,oe);yt&&Object.defineProperty(Ut,oe,yt.get?yt:{enumerable:!0,get:()=>Te[oe]})}}}return Object.freeze(Object.defineProperty(Ut,Symbol.toStringTag,{value:"Module"}))}var Go={exports:{}};(function(Ut,ci){(function(X,Te){Ut.exports=Te()})(su,function(){var X=navigator.userAgent,Te=navigator.platform,oe=/gecko\/\d/i.test(X),yt=/MSIE \d/.test(X),Dn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(X),kr=/Edge\/(\d+)/.exec(X),A=yt||Dn||kr,E=A&&(yt?document.documentMode||6:+(kr||Dn)[1]),ie=!kr&&/WebKit\//.test(X),Ko=ie&&/Qt\/\d+\.\d+/.test(X),Tr=!kr&&/Chrome\//.test(X),we=/Opera\//.test(X),Mr=/Apple Computer/.test(navigator.vendor),_o=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(X),Xo=/PhantomJS/.test(X),Kt=Mr&&(/Mobile\/\w+/.test(X)||navigator.maxTouchPoints>2),Dr=/Android/.test(X),_t=Kt||Dr||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(X),me=Kt||/Mac/.test(Te),Yo=/\bCrOS\b/.test(X),qo=/win/i.test(Te),$e=we&&X.match(/Version\/(\d*\.\d*)/);$e&&($e=Number($e[1])),$e&&$e>=15&&(we=!1,ie=!0);var Nn=me&&(Ko||we&&($e==null||$e<12.11)),di=oe||A&&E>=9;function mt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var et=function(e,t){var i=e.className,r=mt(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ve(e,t){return Ge(e).appendChild(t)}function k(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)n.appendChild(t[l]);return n}function bt(e,t,i,r){var n=k(e,t,i,r);return n.setAttribute("role","presentation"),n}var tt;document.createRange?tt=function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n}:tt=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(n){return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function Ue(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function be(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function rt(e,t){var i=e.className;mt(t).test(i)||(e.className+=(i?" ":"")+t)}function pi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!mt(i[r]).test(t)&&(t+=" "+i[r]);return t}var Xt=function(e){e.select()};Kt?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:A&&(Xt=function(e){try{e.select()}catch(t){}});function vi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function it(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function xe(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,o=n||0;;){var a=e.indexOf(" ",l);if(a<0||a>=t)return o+(t-l);o+=a-l,o+=i-o%i,l=a+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=vi(this.onTimeout,this)};Ke.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ke.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var An=50,Nr={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},gi={origin:"*mouse"},Yt={origin:"+move"};function yi(e,t,i){for(var r=0,n=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var o=l-r;if(l==e.length||n+o>=t)return r+Math.min(o,t-n);if(n+=l-r,n+=i-n%i,r=l+1,n>=t)return r}}var Ar=[""];function mi(e){for(;Ar.length<=e;)Ar.push(W(Ar)+" ");return Ar[e]}function W(e){return e[e.length-1]}function Or(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function Zo(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}function On(){}function Wn(e,t){var i;return Object.create?i=Object.create(e):(On.prototype=e,i=new On),t&&it(t,i),i}var Qo=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qo.test(e))}function Wr(e,t){return t?t.source.indexOf("\\w")>-1&&bi(e)?!0:t.test(e):bi(e)}function Hn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Jo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function xi(e){return e.charCodeAt(0)>=768&&Jo.test(e)}function Fn(e,t,i){for(;(i<0?t>0:t<e.length)&&xi(e.charAt(t));)t+=i;return t}function qt(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,l=r<0?Math.ceil(n):Math.floor(n);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function jo(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,l=0;l<e.length;++l){var o=e[l];(o.from<i&&o.to>t||t==i&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,i),o.level==1?"rtl":"ltr",l),n=!0)}n||r(t,i,"ltr")}var Zt=null;function Qt(e,t,i){var r;Zt=null;for(var n=0;n<e.length;++n){var l=e[n];if(l.from<t&&l.to>t)return n;l.to==t&&(l.from!=l.to&&i=="before"?r=n:Zt=n),l.from==t&&(l.from!=l.to&&i!="before"?r=n:Zt=n)}return r!=null?r:Zt}var Vo=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,l=/[LRr]/,o=/[Lb1n]/,a=/[1n]/;function s(u,f,h){this.level=u,this.from=f,this.to=h}return function(u,f){var h=f=="ltr"?"L":"R";if(u.length==0||f=="ltr"&&!r.test(u))return!1;for(var d=u.length,c=[],p=0;p<d;++p)c.push(i(u.charCodeAt(p)));for(var v=0,y=h;v<d;++v){var m=c[v];m=="m"?c[v]=y:y=m}for(var x=0,b=h;x<d;++x){var C=c[x];C=="1"&&b=="r"?c[x]="n":l.test(C)&&(b=C,C=="r"&&(c[x]="R"))}for(var L=1,S=c[0];L<d-1;++L){var N=c[L];N=="+"&&S=="1"&&c[L+1]=="1"?c[L]="1":N==","&&S==c[L+1]&&(S=="1"||S=="n")&&(c[L]=S),S=N}for(var P=0;P<d;++P){var j=c[P];if(j==",")c[P]="N";else if(j=="%"){var B=void 0;for(B=P+1;B<d&&c[B]=="%";++B);for(var pe=P&&c[P-1]=="!"||B<d&&c[B]=="1"?"1":"N",fe=P;fe<B;++fe)c[fe]=pe;P=B-1}}for(var K=0,he=h;K<d;++K){var $=c[K];he=="L"&&$=="1"?c[K]="L":l.test($)&&(he=$)}for(var Y=0;Y<d;++Y)if(n.test(c[Y])){var _=void 0;for(_=Y+1;_<d&&n.test(c[_]);++_);for(var R=(Y?c[Y-1]:h)=="L",ce=(_<d?c[_]:h)=="L",zt=R==ce?R?"L":"R":h,Ve=Y;Ve<_;++Ve)c[Ve]=zt;Y=_-1}for(var re=[],He,V=0;V<d;)if(o.test(c[V])){var Tn=V;for(++V;V<d&&o.test(c[V]);++V);re.push(new s(0,Tn,V))}else{var ze=V,vt=re.length,gt=f=="rtl"?1:0;for(++V;V<d&&c[V]!="L";++V);for(var le=ze;le<V;)if(a.test(c[le])){ze<le&&(re.splice(vt,0,new s(1,ze,le)),vt+=gt);var Gt=le;for(++le;le<V&&a.test(c[le]);++le);re.splice(vt,0,new s(2,Gt,le)),vt+=gt,ze=le}else++le;ze<V&&re.splice(vt,0,new s(1,ze,V))}return f=="ltr"&&(re[0].level==1&&(He=u.match(/^\s+/))&&(re[0].from=He[0].length,re.unshift(new s(0,0,He[0].length))),W(re).level==1&&(He=u.match(/\s+$/))&&(W(re).to-=He[0].length,re.push(new s(0,d-He[0].length,d)))),f=="rtl"?re.reverse():re}}();function Fe(e,t){var i=e.order;return i==null&&(i=e.order=Vo(e.text,t)),i}var Pn=[],T=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Pn).concat(i)}};function Ci(e,t){return e._handlers&&e._handlers[t]||Pn}function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var l=ee(n,i);l>-1&&(r[t]=n.slice(0,l).concat(n.slice(l+1)))}}}function G(e,t){var i=Ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),G(e,i||t.type,e,t),wi(t)||t.codemirrorIgnore}function En(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}function Ce(e,t){return Ci(e,t).length>0}function xt(e){e.prototype.on=function(t,i){T(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}function ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function In(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function wi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Jt(e){ae(e),In(e)}function Si(e){return e.target||e.srcElement}function Bn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),me&&e.ctrlKey&&t==1&&(t=3),t}var $o=function(){if(A&&E<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),Li;function ea(e){if(Li==null){var t=k("span","");ve(e,k("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(A&&E<8))}var i=Li?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ki;function ta(e){if(ki!=null)return ki;var t=ve(e,document.createTextNode("AخA")),i=tt(t,0,1).getBoundingClientRect(),r=tt(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ki=r.right-i.right<3}var Ti=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
|
|
4
4
|
`,t);n==-1&&(n=e.length);var l=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),o=l.indexOf("\r");o!=-1?(i.push(l.slice(0,o)),t+=o+1):(i.push(l),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ra=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ia=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Mi=null;function na(e){if(Mi!=null)return Mi;var t=ve(e,k("span","x")),i=t.getBoundingClientRect(),r=tt(t,0,1).getBoundingClientRect();return Mi=Math.abs(i.left-r.left)>1}var Di={},Ct={};function la(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Di[e]=t}function oa(e,t){Ct[e]=t}function Hr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=Wn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Hr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Hr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Ni(e,t){t=Hr(t);var i=Di[t.name];if(!i)return Ni(e,"text/plain");var r=i(e,t);if(wt.hasOwnProperty(t.name)){var n=wt[t.name];for(var l in n)n.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=n[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var wt={};function aa(e,t){var i=wt.hasOwnProperty(e)?wt[e]:wt[e]={};it(t,i)}function nt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}function Ai(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Rn(e,t,i){return e.startState?e.startState(t,i):!0}var U=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};U.prototype.eol=function(){return this.pos>=this.string.length},U.prototype.sol=function(){return this.pos==this.lineStart},U.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},U.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},U.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},U.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},U.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},U.prototype.skipToEnd=function(){this.pos=this.string.length},U.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},U.prototype.backUp=function(e){this.pos-=e},U.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.indentation=function(){return xe(this.string,null,this.tabSize)-(this.lineStart?xe(this.string,this.lineStart,this.tabSize):0)},U.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(o){return i?o.toLowerCase():o},n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},U.prototype.current=function(){return this.string.slice(this.start,this.pos)},U.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},U.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},U.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],l=n.chunkSize();if(t<l){i=n;break}t-=l}return i.lines[t]}function lt(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(l){var o=l.text;n==i.line&&(o=o.slice(0,i.ch)),n==t.line&&(o=o.slice(t.ch)),r.push(o),++n}),r}function Oi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}function De(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function H(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}function ot(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],l=n.height;if(t<l){e=n;continue e}t-=l,i+=n.chunkSize()}return i}while(!e.lines);for(var o=0;o<e.lines.length;++o){var a=e.lines[o],s=a.height;if(t<s)break;t-=s}return i+o}function jt(e,t){return t>=e.first&&t<e.first+e.size}function Wi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function g(e,t,i){if(i===void 0&&(i=null),!(this instanceof g))return new g(e,t,i);this.line=e,this.ch=t,this.sticky=i}function M(e,t){return e.line-t.line||e.ch-t.ch}function Hi(e,t){return e.sticky==t.sticky&&M(e,t)==0}function Fi(e){return g(e.line,e.ch)}function Fr(e,t){return M(e,t)<0?t:e}function Pr(e,t){return M(e,t)<0?e:t}function zn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function D(e,t){if(t.line<e.first)return g(e.first,0);var i=e.first+e.size-1;return t.line>i?g(i,w(e,i).text.length):sa(t,w(e,t.line).text.length)}function sa(e,t){var i=e.ch;return i==null||i>t?g(e.line,t):i<0?g(e.line,0):e}function Gn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=D(e,t[r]);return i}var Er=function(e,t){this.state=e,this.lookAhead=t},Ne=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Ne.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ne.fromSaved=function(e,t,i){return t instanceof Er?new Ne(e,nt(e.mode,t.state),i,t.lookAhead):new Ne(e,nt(e.mode,t),i)},Ne.prototype.save=function(e){var t=e!==!1?nt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Er(t,this.maxLookAhead):t};function Un(e,t,i,r){var n=[e.state.modeGen],l={};Zn(e,t.text,e.doc.mode,i,function(u,f){return n.push(u,f)},l,r);for(var o=i.state,a=function(u){i.baseTokens=n;var f=e.state.overlays[u],h=1,d=0;i.state=!0,Zn(e,t.text,f.mode,i,function(c,p){for(var v=h;d<c;){var y=n[h];y>c&&n.splice(h,1,c,n[h+1],y),h+=2,d=Math.min(c,y)}if(p)if(f.opaque)n.splice(v,h-v,c,"overlay "+p),h=v+2;else for(;v<h;v+=2){var m=n[v+1];n[v+1]=(m?m+" ":"")+"overlay "+p}},l),i.state=o,i.baseTokens=null,i.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:l.bgClass||l.textClass?l:null}}function Kn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Vt(e,H(t)),n=t.text.length>e.options.maxHighlightLength&&nt(e.doc.mode,r.state),l=Un(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Vt(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Ne(r,!0,t);var l=ua(e,t,i),o=l>r.first&&w(r,l-1).stateAfter,a=o?Ne.fromSaved(r,o,l):new Ne(r,Rn(r.mode),l);return r.iter(l,t,function(s){Pi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=n.viewFrom&&u<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}function Pi(e,t,i,r){var n=e.doc.mode,l=new U(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&_n(n,i.state);!l.eol();)Ei(n,l,i.state),l.start=l.pos}function _n(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Ai(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ei(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=Ai(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var Xn=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Yn(e,t,i,r){var n=e.doc,l=n.mode,o;t=D(n,t);var a=w(n,t.line),s=Vt(e,t.line,i),u=new U(a.text,e.options.tabSize,s),f;for(r&&(f=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,o=Ei(l,u,s.state),r&&f.push(new Xn(u,o,nt(n.mode,s.state)));return r?f:new Xn(u,o,s.state)}function qn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Zn(e,t,i,r,n,l,o){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,u=null,f=new U(t,e.options.tabSize,r),h,d=e.options.addModeClass&&[null];for(t==""&&qn(_n(i,r.state),l);!f.eol();){if(f.pos>e.options.maxHighlightLength?(a=!1,o&&Pi(e,t,r,f.pos),f.pos=t.length,h=null):h=qn(Ei(i,f,r.state,d),l),d){var c=d[0].name;c&&(h="m-"+(h?c+" "+h:c))}if(!a||u!=h){for(;s<f.start;)s=Math.min(f.start,s+5e3),n(s,u);u=h}f.start=f.pos}for(;s<f.pos;){var p=Math.min(f.pos,s+5e3);n(p,u),s=p}}function ua(e,t,i){for(var r,n,l=e.doc,o=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>o;--a){if(a<=l.first)return l.first;var s=w(l,a-1),u=s.stateAfter;if(u&&(!i||a+(u instanceof Er?u.lookAhead:0)<=l.modeFrontier))return a;var f=xe(s.text,null,e.options.tabSize);(n==null||r>f)&&(n=a-1,r=f)}return n}function fa(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Er)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Qn=!1,Pe=!1;function ha(){Qn=!0}function ca(){Pe=!0}function Ir(e,t,i){this.marker=e,this.from=t,this.to=i}function $t(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function da(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function pa(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function va(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);if(a||l.from==t&&o.type=="bookmark"&&(!i||!l.marker.insertLeft)){var s=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new Ir(o,l.from,s?null:l.to))}}return r}function ga(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var l=e[n],o=l.marker,a=l.to==null||(o.inclusiveRight?l.to>=t:l.to>t);if(a||l.from==t&&o.type=="bookmark"&&(!i||l.marker.insertLeft)){var s=l.from==null||(o.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new Ir(o,s?null:l.from-t,l.to==null?null:l.to-t))}}return r}function Ii(e,t){if(t.full)return null;var i=jt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=jt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,l=t.to.ch,o=M(t.from,t.to)==0,a=va(i,n,o),s=ga(r,l,o),u=t.text.length==1,f=W(t.text).length+(u?n:0);if(a)for(var h=0;h<a.length;++h){var d=a[h];if(d.to==null){var c=$t(s,d.marker);c?u&&(d.to=c.to==null?null:c.to+f):d.to=n}}if(s)for(var p=0;p<s.length;++p){var v=s[p];if(v.to!=null&&(v.to+=f),v.from==null){var y=$t(a,v.marker);y||(v.from=f,u&&(a||(a=[])).push(v))}else v.from+=f,u&&(a||(a=[])).push(v)}a&&(a=Jn(a)),s&&s!=a&&(s=Jn(s));var m=[a];if(!u){var x=t.text.length-2,b;if(x>0&&a)for(var C=0;C<a.length;++C)a[C].to==null&&(b||(b=[])).push(new Ir(a[C].marker,null,null));for(var L=0;L<x;++L)m.push(b);m.push(s)}return m}function Jn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function ya(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var p=0;p<c.markedSpans.length;++p){var v=c.markedSpans[p].marker;v.readOnly&&(!r||ee(r,v)==-1)&&(r||(r=[])).push(v)}}),!r)return null;for(var n=[{from:t,to:i}],l=0;l<r.length;++l)for(var o=r[l],a=o.find(0),s=0;s<n.length;++s){var u=n[s];if(!(M(u.to,a.from)<0||M(u.from,a.to)>0)){var f=[s,1],h=M(u.from,a.from),d=M(u.to,a.to);(h<0||!o.inclusiveLeft&&!h)&&f.push({from:u.from,to:a.from}),(d>0||!o.inclusiveRight&&!d)&&f.push({from:a.to,to:u.to}),n.splice.apply(n,f),s+=f.length-3}}return n}function jn(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Vn(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function Br(e){return e.inclusiveLeft?-1:0}function Rr(e){return e.inclusiveRight?1:0}function Bi(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),l=M(r.from,n.from)||Br(e)-Br(t);if(l)return-l;var o=M(r.to,n.to)||Rr(e)-Rr(t);return o||t.id-e.id}function $n(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=void 0,l=0;l<i.length;++l)n=i[l],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Bi(r,n.marker)<0)&&(r=n.marker);return r}function el(e){return $n(e,!0)}function zr(e){return $n(e,!1)}function ma(e,t){var i=Pe&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var l=i[n];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Bi(r,l.marker)<0)&&(r=l.marker)}return r}function tl(e,t,i,r,n){var l=w(e,t),o=Pe&&l.markedSpans;if(o)for(var a=0;a<o.length;++a){var s=o[a];if(s.marker.collapsed){var u=s.marker.find(0),f=M(u.from,i)||Br(s.marker)-Br(n),h=M(u.to,r)||Rr(s.marker)-Rr(n);if(!(f>=0&&h<=0||f<=0&&h>=0)&&(f<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.to,i)>=0:M(u.to,i)>0)||f>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?M(u.from,r)<=0:M(u.from,r)<0)))return!0}}}function Ae(e){for(var t;t=el(e);)e=t.find(-1,!0).line;return e}function ba(e){for(var t;t=zr(e);)e=t.find(1,!0).line;return e}function xa(e){for(var t,i;t=zr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ri(e,t){var i=w(e,t),r=Ae(i);return i==r?t:H(r)}function rl(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!_e(e,i))return t;for(;r=zr(i);)i=r.find(1,!0).line;return H(i)+1}function _e(e,t){var i=Pe&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&zi(e,t,r))return!0}}}function zi(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return zi(e,r.line,$t(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,l=0;l<t.markedSpans.length;++l)if(n=t.markedSpans[l],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&zi(e,t,n))return!0}function Ee(e){e=Ae(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var l=i.parent;l;i=l,l=i.parent)for(var o=0;o<l.children.length;++o){var a=l.children[o];if(a==i)break;t+=a.height}return t}function Gr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=el(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=zr(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Gi(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=Gr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=Gr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}var St=function(e,t,i){this.text=e,Vn(this,t),this.height=i?i(this):1};St.prototype.lineNo=function(){return H(this)},xt(St);function Ca(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),jn(e),Vn(e,i);var n=r?r(e):1;n!=e.height&&De(e,n)}function wa(e){e.parent=null,jn(e)}var Sa={},La={};function il(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?La:Sa;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function nl(e,t){var i=bt("span",null,null,ie?"padding-right: .1px":null),r={pre:bt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var l=n?t.rest[n-1]:t.line,o=void 0;r.pos=0,r.addToken=Ta,ta(e.display.measure)&&(o=Fe(l,e.doc.direction))&&(r.addToken=Da(r.addToken,o)),r.map=[];var a=t!=e.display.externalMeasured&&H(l);Na(l,r,Kn(e,l,a)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=pi(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=pi(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(ea(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ie){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return G(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=pi(r.pre.className,r.textClass||"")),r}function ka(e){var t=k("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ta(e,t,i,r,n,l,o){if(t){var a=e.splitSpaces?Ma(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,f;if(!s.test(t))e.col+=t.length,f=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,f),A&&E<9&&(u=!0),e.pos+=t.length;else{f=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var d=s.exec(t),c=d?d.index-h:t.length-h;if(c){var p=document.createTextNode(a.slice(h,h+c));A&&E<9?f.appendChild(k("span",[p])):f.appendChild(p),e.map.push(e.pos,e.pos+c,p),e.col+=c,e.pos+=c}if(!d)break;h+=c+1;var v=void 0;if(d[0]==" "){var y=e.cm.options.tabSize,m=y-e.col%y;v=f.appendChild(k("span",mi(m),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text"," "),e.col+=m}else d[0]=="\r"||d[0]==`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as q}from"./index-
|
|
1
|
+
import{g as q}from"./index-bfe4aca1.js";import{a as w}from"./codemirror-209aaaaa.js";function G(A,_){for(var u=0;u<_.length;u++){const b=_[u];if(typeof b!="string"&&!Array.isArray(b)){for(const s in b)if(s!=="default"&&!(s in A)){const r=Object.getOwnPropertyDescriptor(b,s);r&&Object.defineProperty(A,s,r.get?r:{enumerable:!0,get:()=>b[s]})}}}return Object.freeze(Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};(function(A,_){(function(u){u(w)})(function(u){var b={},s=/[^\s\u00a0]/,r=u.Pos,B=u.cmpPos;function D(t){var l=t.search(s);return l==-1?0:l}u.commands.toggleComment=function(t){t.toggleComment()},u.defineExtension("toggleComment",function(t){t||(t=b);for(var l=this,n=1/0,e=this.listSelections(),f=null,m=e.length-1;m>=0;m--){var a=e[m].from(),i=e[m].to();a.line>=n||(i.line>=n&&(i=r(n,0)),n=a.line,f==null?l.uncomment(a,i,t)?f="un":(l.lineComment(a,i,t),f="line"):f=="un"?l.uncomment(a,i,t):l.lineComment(a,i,t))}});function F(t,l,n){return/\bstring\b/.test(t.getTokenTypeAt(r(l.line,0)))&&!/^[\'\"\`]/.test(n)}function M(t,l){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(l)}u.defineExtension("lineComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=e.getLine(t.line);if(!(m==null||F(e,t,m))){var a=n.lineComment||f.lineComment;if(!a){(n.blockCommentStart||f.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,l,n));return}var i=Math.min(l.ch!=0||l.line==t.line?l.line+1:l.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,g=n.commentBlankLines||t.line==l.line;e.operation(function(){if(n.indent){for(var d=null,c=t.line;c<i;++c){var v=e.getLine(c),h=v.slice(0,D(v));(d==null||d.length>h.length)&&(d=h)}for(var c=t.line;c<i;++c){var v=e.getLine(c),o=d.length;!g&&!s.test(v)||(v.slice(0,o)!=d&&(o=D(v)),e.replaceRange(d+a+C,r(c,0),r(c,o)))}}else for(var c=t.line;c<i;++c)(g||s.test(e.getLine(c)))&&e.replaceRange(a+C,r(c,0))})}}),u.defineExtension("blockComment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=n.blockCommentStart||f.blockCommentStart,a=n.blockCommentEnd||f.blockCommentEnd;if(!m||!a){(n.lineComment||f.lineComment)&&n.fullLines!=!1&&e.lineComment(t,l,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(r(t.line,0)))){var i=Math.min(l.line,e.lastLine());i!=t.line&&l.ch==0&&s.test(e.getLine(i))&&--i;var C=n.padding==null?" ":n.padding;t.line>i||e.operation(function(){if(n.fullLines!=!1){var g=s.test(e.getLine(i));e.replaceRange(C+a,r(i)),e.replaceRange(m+C,r(t.line,0));var d=n.blockCommentLead||f.blockCommentLead;if(d!=null)for(var c=t.line+1;c<=i;++c)(c!=i||g)&&e.replaceRange(d+C,r(c,0))}else{var v=B(e.getCursor("to"),l)==0,h=!e.somethingSelected();e.replaceRange(a,l),v&&e.setSelection(h?l:e.getCursor("from"),l),e.replaceRange(m,t)}})}}),u.defineExtension("uncomment",function(t,l,n){n||(n=b);var e=this,f=M(e,t),m=Math.min(l.ch!=0||l.line==t.line?l.line:l.line-1,e.lastLine()),a=Math.min(t.line,m),i=n.lineComment||f.lineComment,C=[],g=n.padding==null?" ":n.padding,d;e:{if(!i)break e;for(var c=a;c<=m;++c){var v=e.getLine(c),h=v.indexOf(i);if(h>-1&&!/comment/.test(e.getTokenTypeAt(r(c,h+1)))&&(h=-1),h==-1&&s.test(v)||h>-1&&s.test(v.slice(0,h)))break e;C.push(v)}if(e.operation(function(){for(var k=a;k<=m;++k){var x=C[k-a],p=x.indexOf(i),L=p+i.length;p<0||(x.slice(L,L+g.length)==g&&(L+=g.length),d=!0,e.replaceRange("",r(k,p),r(k,L)))}}),d)return!0}var o=n.blockCommentStart||f.blockCommentStart,S=n.blockCommentEnd||f.blockCommentEnd;if(!o||!S)return!1;var P=n.blockCommentLead||f.blockCommentLead,E=e.getLine(a),T=E.indexOf(o);if(T==-1)return!1;var j=m==a?E:e.getLine(m),O=j.indexOf(S,m==a?T+o.length:0),N=r(a,T+1),W=r(m,O+1);if(O==-1||!/comment/.test(e.getTokenTypeAt(N))||!/comment/.test(e.getTokenTypeAt(W))||e.getRange(N,W,`
|
|
2
2
|
`).indexOf(S)>-1)return!1;var y=E.lastIndexOf(o,t.ch),R=y==-1?-1:E.slice(0,t.ch).indexOf(S,y+o.length);if(y!=-1&&R!=-1&&R+S.length!=t.ch)return!1;R=j.indexOf(S,l.ch);var $=j.slice(l.ch).lastIndexOf(o,R-l.ch);return y=R==-1||$==-1?-1:l.ch+$,R!=-1&&y!=-1&&y!=l.ch?!1:(e.operation(function(){e.replaceRange("",r(m,O-(g&&j.slice(O-g.length,O)==g?g.length:0)),r(m,O+S.length));var k=T+o.length;if(g&&E.slice(k,k+g.length)==g&&(k+=g.length),e.replaceRange("",r(a,T),r(a,k)),P)for(var x=a+1;x<=m;++x){var p=e.getLine(x),L=p.indexOf(P);if(!(L==-1||s.test(p.slice(0,L)))){var I=L+P.length;g&&p.slice(I,I+g.length)==g&&(I+=g.length),e.replaceRange("",r(x,L),r(x,I))}}}),!0)})})})();var z=H.exports;const J=q(z),U=G({__proto__:null,default:J},[z]);export{U as c};
|