UNPKG

ruru

Version:

Grafast-flavoured GraphiQL distribution

2 lines 4.27 kB
export const __webpack_id__=8882;export const __webpack_ids__=[8882];export const __webpack_modules__={3361:(t,e,n)=>{n.d(e,{F:()=>s});var r=n(22573),i=n(28976);const s={JSONContribution:"base.contributions.json"},o=new class{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(t,e){var n;this.schemasById[(n=t,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=e,this._onDidChangeSchema.fire(t)}notifySchemaChanged(t){this._onDidChangeSchema.fire(t)}};i.O.add(s.JSONContribution,o)},10492:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(60891);class i{static _nextVisibleColumn(t,e,n){return 9===t?i.nextRenderTabStop(e,n):r.ne(t)||r.Ss(t)?e+2:e+1}static visibleColumnFromColumn(t,e,n){const i=Math.min(e-1,t.length),s=t.substring(0,i),o=new r.km(s);let f=0;for(;!o.eol();){const t=r.Z5(s,i,o.offset);o.nextGraphemeLength(),f=this._nextVisibleColumn(t,f,n)}return f}static columnFromVisibleColumn(t,e,n){if(e<=0)return 1;const i=t.length,s=new r.km(t);let o=0,f=1;for(;!s.eol();){const h=r.Z5(t,i,s.offset);s.nextGraphemeLength();const u=this._nextVisibleColumn(h,o,n),c=s.offset+1;if(u>=e)return u-e<e-o?c:f;o=u,f=c}return i+1}static nextRenderTabStop(t,e){return t+e-t%e}static nextIndentTabStop(t,e){return t+e-t%e}static prevRenderTabStop(t,e){return Math.max(0,t-1-(t-1)%e)}static prevIndentTabStop(t,e){return Math.max(0,t-1-(t-1)%e)}}},15801:(t,e,n)=>{n.d(e,{Su:()=>a,b7:()=>c,fe:()=>l});var r=n(60891),i=n(69958),s=n(19031);let o,f,h;function u(){return o||(o=new TextDecoder("UTF-16LE")),o}function c(){return h||(h=i.cm()?u():(f||(f=new TextDecoder("UTF-16BE")),f)),h}function a(t,e,n){const r=new Uint16Array(t.buffer,e,n);return n>0&&(65279===r[0]||65534===r[0])?function(t,e,n){const r=[];let i=0;for(let o=0;o<n;o++){const n=s.$l(t,e);e+=2,r[i++]=String.fromCharCode(n)}return r.join("")}(t,e,n):u().decode(r)}class l{constructor(t){this._capacity=0|t,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const t=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return c().decode(t)}_flushBuffer(){const t=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[t]:this._completedStrings[this._completedStrings.length]=t}appendCharCode(t){const e=this._capacity-this._bufferLength;e<=1&&(0===e||r.pc(t))&&this._flushBuffer(),this._buffer[this._bufferLength++]=t}appendASCIICharCode(t){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=t}appendString(t){const e=t.length;if(this._bufferLength+e>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=t);for(let n=0;n<e;n++)this._buffer[this._bufferLength++]=t.charCodeAt(n)}}},19031:(t,e,n)=>{n.d(e,{$l:()=>f,Gs:()=>l,MB:()=>o,Sw:()=>c,bb:()=>u,gN:()=>h,pJ:()=>a});var r=n(55003);const i="undefined"!=typeof Buffer;let s;new r.d(()=>new Uint8Array(256));class o{static wrap(t){return i&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new o(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}toString(){return i?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function f(t,e){return(0|t[e+0])>>>0|t[e+1]<<8>>>0}function h(t,e,n){t[n+0]=255&e,e>>>=8,t[n+1]=255&e}function u(t,e){return t[e]*2**24+65536*t[e+1]+256*t[e+2]+t[e+3]}function c(t,e,n){t[n+3]=e,e>>>=8,t[n+2]=e,e>>>=8,t[n+1]=e,e>>>=8,t[n]=e}function a(t,e){return t[e]}function l(t,e,n){t[n]=e}},28976:(t,e,n)=>{n.d(e,{O:()=>s});var r=n(72667),i=n(69708);const s=new class{constructor(){this.data=new Map}add(t,e){r.ok(i.Kg(t)),r.ok(i.Gv(e)),r.ok(!this.data.has(t),"There is already an extension with this id"),this.data.set(t,e)}as(t){return this.data.get(t)||null}}},33099:(t,e,n)=>{n.d(e,{R:()=>r});const r={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}}}; //# sourceMappingURL=8882.js.map