diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore index 48e60e48cbaa5..e69de29bb2d1d 100644 --- a/packages/cli/.gitignore +++ b/packages/cli/.gitignore @@ -1,2 +0,0 @@ -src/commands/serve/playground-content.js - diff --git a/packages/cli/src/commands/serve/playground-content.js b/packages/cli/src/commands/serve/playground-content.js new file mode 100644 index 0000000000000..986285697d30f --- /dev/null +++ b/packages/cli/src/commands/serve/playground-content.js @@ -0,0 +1,4 @@ + +/* eslint-disable */ +// @ts-ignore +export const playgroundContent = "/*! For license information please see main.js.LICENSE.txt */\n(()=>{var e={7948:e=>{\"use strict\";const{AbortController:t,AbortSignal:n}=\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:void 0;e.exports=t,e.exports.AbortSignal=n,e.exports.default=t},7911:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},5766:(e,t)=>{\"use strict\";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;sl?l:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+\"==\")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+\"=\")),o.join(\"\")};for(var n=[],r=[],i=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,o=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",a=0,s=o.length;a0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join(\"\")}r[\"-\".charCodeAt(0)]=62,r[\"_\".charCodeAt(0)]=63},8834:(e,t,n)=>{\"use strict\";var r=n(5766),i=n(2333),o=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(e){if(e>a)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if(\"number\"==typeof e){if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if(\"string\"==typeof e)return function(e,t){if(\"string\"==typeof t&&\"\"!==t||(t=\"utf8\"),!l.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);var n=0|m(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(B(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return d(e,t,n);if(\"undefined\"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return d(e,t,n);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?\"number\"!=typeof e.length||z(e.length)?s(0):p(e):\"Buffer\"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(i)return i;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive](\"string\"),t,n);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function c(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function f(e){return c(e),s(e<0?0:0|h(e))}function p(e){for(var t=e.length<0?0:0|h(e.length),n=s(t),r=0;r=a)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+a.toString(16)+\" bytes\");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":return j(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return V(e).length;default:if(i)return r?-1:j(e).length;t=(\"\"+t).toLowerCase(),i=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return A(this,t,n);case\"utf8\":case\"utf-8\":return x(this,t,n);case\"ascii\":return C(this,t,n);case\"latin1\":case\"binary\":return O(this,t,n);case\"base64\":return S(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return I(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(\"string\"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError(\"val must be string, number or Buffer\")}function b(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,p=0;pi&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);for(var n=\"\",r=0;rr.length?l.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!l.isBuffer(o))throw new TypeError('\"list\" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(var t=0;tn&&(e+=\" ... \"),\"\"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(B(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError(\"out of range index\");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");for(var o=!1;;)switch(r){case\"hex\":return E(this,e,t,n);case\"utf8\":case\"utf-8\":return w(this,e,t,n);case\"ascii\":case\"latin1\":case\"binary\":return T(this,e,t,n);case\"base64\":return _(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return k(this,e,t,n);default:if(o)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function C(e,t,n){var r=\"\";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i=\"\",o=t;on)throw new RangeError(\"Trying to access beyond buffer length\")}function L(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError(\"Index out of range\")}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function F(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(P,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var G=function(){for(var e=\"0123456789abcdef\",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},382:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326));n(2130);var o=n(4409),a=n(6047);i.default.registerHelper(\"hint\",\"graphql\",(function(e,t){var n=t.schema;if(n){var r=e.getCursor(),s=e.getTokenAt(r),l=null!==s.type&&/\"|\\w/.test(s.string[0])?s.start:s.end,u=new a.Position(r.line,l),c={list:o.getAutocompleteSuggestions(n,e.getValue(),u,s,t.externalFragments).map((function(e){return{text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:r.line,ch:l},to:{line:r.line,ch:s.end}};return c&&c.list&&c.list.length>0&&(c.from=i.default.Pos(c.from.line,c.from.ch),c.to=i.default.Pos(c.to.line,c.to.ch),i.default.signal(e,\"hasCompletion\",e,c,s)),c}}))},9545:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(8524),o=r(n(3326)),a=r(n(181)),s=n(2408);function l(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||\"\";\"__\"!==i.slice(0,2)&&(f(e,t,n,t.parentType),d(e,\".\")),d(e,i,\"field-name\",n,s.getFieldReference(t))}function u(e,t,n){var r;d(e,\"@\"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||\"\"),\"directive-name\",n,s.getDirectiveReference(t))}function c(e,t,n,r){d(e,\": \"),f(e,t,n,r)}function f(e,t,n,r){r instanceof i.GraphQLNonNull?(f(e,t,n,r.ofType),d(e,\"!\")):r instanceof i.GraphQLList?(d(e,\"[\"),f(e,t,n,r.ofType),d(e,\"]\")):d(e,(null==r?void 0:r.name)||\"\",\"type-name\",n,s.getTypeReference(t,r))}function p(e,t,n){var r=n.description;if(r){var i=document.createElement(\"div\");i.className=\"info-description\",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement(\"div\");i.className=\"info-deprecation\",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement(\"span\");o.className=\"info-deprecation-label\",o.appendChild(document.createTextNode(\"Deprecated: \")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=\"\"),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement(\"a\")).href=\"javascript:void 0\",a.addEventListener(\"click\",(function(e){o(i,e)}))):a=document.createElement(\"span\"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(1117),o.default.registerHelper(\"info\",\"graphql\",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,o=r.step,h=a.default(t.schema,e.state);return\"Field\"===i&&0===o&&h.fieldDef||\"AliasedField\"===i&&2===o&&h.fieldDef?(function(e,t,n){l(e,t,n),c(e,t,n,t.type)}(n=document.createElement(\"div\"),h,t),p(n,t,h.fieldDef),n):\"Directive\"===i&&1===o&&h.directiveDef?(u(n=document.createElement(\"div\"),h,t),p(n,t,h.directiveDef),n):\"Argument\"===i&&0===o&&h.argDef?(function(e,t,n){var r;t.directiveDef?u(e,t,n):t.fieldDef&&l(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||\"\";d(e,\"(\"),d(e,i,\"arg-name\",n,s.getArgumentReference(t)),c(e,t,n,t.inputType),d(e,\")\")}(n=document.createElement(\"div\"),h,t),p(n,t,h.argDef),n):\"EnumValue\"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||\"\";f(e,t,n,t.inputType),d(e,\".\"),d(e,i,\"enum-value\",n,s.getEnumValueReference(t))}(n=document.createElement(\"div\"),h,t),p(n,t,h.enumValue),n):\"NamedType\"===i&&h.type&&h.type.description?(f(n=document.createElement(\"div\"),h,t,h.type),p(n,t,h.type),n):void 0}}))},206:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=r(n(181)),a=n(2408);n(7612),i.default.registerHelper(\"jump\",\"graphql\",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,i=n.step,s=o.default(t.schema,n);return\"Field\"===r&&0===i&&s.fieldDef||\"AliasedField\"===r&&2===i&&s.fieldDef?a.getFieldReference(s):\"Directive\"===r&&1===i&&s.directiveDef?a.getDirectiveReference(s):\"Argument\"===r&&0===i&&s.argDef?a.getArgumentReference(s):\"EnumValue\"===r&&s.enumValue?a.getEnumValueReference(s):\"NamedType\"===r&&s.type?a.getTypeReference(s):void 0}}))},924:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=n(4409),a=[\"error\",\"warning\",\"information\",\"hint\"],s={\"GraphQL: Validation\":\"validation\",\"GraphQL: Deprecation\":\"deprecation\",\"GraphQL: Syntax\":\"syntax\"};i.default.registerHelper(\"lint\",\"graphql\",(function(e,t){var n=t.schema;return o.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?a[e.severity-1]:a[0],type:e.source?s[e.source]:void 0,from:i.default.Pos(e.range.start.line,e.range.start.character),to:i.default.Pos(e.range.end.line,e.range.end.character)}}))}))},2400:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=n(3099);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode(\"graphql\",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatWhile(o.isIgnored)},lexRules:o.LexRules,parseRules:o.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\\s*[})\\]]/,fold:\"brace\",lineComment:\"#\",closeBrackets:{pairs:'()[]{}\"\"',explode:\"()[]{}\"}}}))},5865:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=n(3099);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode(\"graphql-results\",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\\s*[}\\]]/,fold:\"brace\",closeBrackets:{pairs:'[]{}\"\"',explode:\"[]{}\"}}}));var s={Punctuation:/^\\[|]|\\{|\\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^\"(?:[^\"\\\\]|\\\\(?:\"|\\/|\\\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*\"?/,Keyword:/^true|false|null/},l={Document:[o.p(\"{\"),o.list(\"Entry\",o.p(\",\")),o.p(\"}\")],Entry:[o.t(\"String\",\"def\"),o.p(\":\"),\"Value\"],Value:function(e){switch(e.kind){case\"Number\":return\"NumberValue\";case\"String\":return\"StringValue\";case\"Punctuation\":switch(e.value){case\"[\":return\"ListValue\";case\"{\":return\"ObjectValue\"}return null;case\"Keyword\":switch(e.value){case\"true\":case\"false\":return\"BooleanValue\";case\"null\":return\"NullValue\"}return null}},NumberValue:[o.t(\"Number\",\"number\")],StringValue:[o.t(\"String\",\"string\")],BooleanValue:[o.t(\"Keyword\",\"builtin\")],NullValue:[o.t(\"Keyword\",\"keyword\")],ListValue:[o.p(\"[\"),o.list(\"Value\",o.p(\",\")),o.p(\"]\")],ObjectValue:[o.p(\"{\"),o.list(\"ObjectField\",o.p(\",\")),o.p(\"}\")],ObjectField:[o.t(\"String\",\"property\"),o.p(\":\"),\"Value\"]}},2408:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var r=n(8524);function i(e){return\"__\"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:\"Field\",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:\"Directive\",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:\"Argument\",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:\"Argument\",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:\"EnumValue\",value:e.enumValue||void 0,type:e.inputType?r.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:\"Type\",schema:e.schema,type:t||e.type}}},7197:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},181:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(8524),o=n(4378),a=r(n(7197));function s(e,t,n){return n===o.SchemaMetaFieldDef.name&&e.getQueryType()===t?o.SchemaMetaFieldDef:n===o.TypeMetaFieldDef.name&&e.getQueryType()===t?o.TypeMetaFieldDef:n===o.TypeNameMetaFieldDef.name&&i.isCompositeType(t)?o.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return a.default(t,(function(t){switch(t.kind){case\"Query\":case\"ShortQuery\":n.type=e.getQueryType();break;case\"Mutation\":n.type=e.getMutationType();break;case\"Subscription\":n.type=e.getSubscriptionType();break;case\"InlineFragment\":case\"FragmentDefinition\":t.type&&(n.type=e.getType(t.type));break;case\"Field\":case\"AliasedField\":n.fieldDef=n.type&&t.name?s(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case\"SelectionSet\":n.parentType=n.type?i.getNamedType(n.type):null;break;case\"Directive\":n.directiveDef=t.name?e.getDirective(t.name):null;break;case\"Arguments\":var r=t.prevState?\"Field\"===t.prevState.kind?n.fieldDef:\"Directive\"===t.prevState.kind?n.directiveDef:\"AliasedField\"===t.prevState.kind?t.prevState.name&&s(e,n.parentType,t.prevState.name):null:null;n.argDefs=r?r.args:null;break;case\"Argument\":if(n.argDef=null,n.argDefs)for(var o=0;o{\"use strict\";function n(e,t){var n=e.filter(t);return 0===n.length?e:n}function r(e){return e.toLowerCase().replace(/\\W/g,\"\")}function i(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,o){var a=function(e,t){return t?n(n(e.map((function(e){return{proximity:i(r(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):n(e,(function(e){return!e.isDeprecated}))}(o,r(t.string));if(a){var s=null!==t.type&&/\"|\\w/.test(t.string[0])?t.start:t.end;return{list:a,from:{line:e.line,ch:s},to:{line:e.line,ch:t.end}}}}},1117:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326));function o(e,t){var n=e.state.info,r=t.target||t.srcElement;if(r instanceof HTMLElement&&\"SPAN\"===r.nodeName&&void 0===n.hoverTimeout){var o=r.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,u)},s=function(){i.default.off(document,\"mousemove\",a),i.default.off(e.getWrapperElement(),\"mouseout\",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){i.default.off(document,\"mousemove\",a),i.default.off(e.getWrapperElement(),\"mouseout\",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),r=e.state.info.options,o=r.render||e.getHelper(n,\"info\");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e,n);s&&function(e,t,n){var r=document.createElement(\"div\");r.className=\"CodeMirror-info\",r.appendChild(n),document.body.appendChild(r);var o=r.getBoundingClientRect(),a=window.getComputedStyle(r),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),u=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-l),u<0&&(u=t.bottom);var c,f=Math.max(0,window.innerWidth-s-15);f>t.left&&(f=t.left),r.style.opacity=\"1\",r.style.top=u+\"px\",r.style.left=f+\"px\";var p=function(){clearTimeout(c)},d=function(){clearTimeout(c),c=setTimeout(h,200)},h=function(){i.default.off(r,\"mouseover\",p),i.default.off(r,\"mouseout\",d),i.default.off(e.getWrapperElement(),\"mouseout\",d),r.style.opacity?(r.style.opacity=\"0\",setTimeout((function(){r.parentNode&&r.parentNode.removeChild(r)}),600)):r.parentNode&&r.parentNode.removeChild(r)};i.default.on(r,\"mouseover\",p),i.default.on(r,\"mouseout\",d),i.default.on(e.getWrapperElement(),\"mouseout\",d)}(e,t,s)}}}(e,o)},u=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(l,u),i.default.on(document,\"mousemove\",a),i.default.on(e.getWrapperElement(),\"mouseout\",s)}}i.default.defineOption(\"info\",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),\"mouseover\",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=o.bind(null,e),i.default.on(e.getWrapperElement(),\"mouseover\",a.onMouseOver)}}))},301:(e,t)=>{\"use strict\";var n,r,i,o,a,s,l;function u(){var e=i,t=[];if(d(\"{\"),!m(\"}\")){do{t.push(c())}while(m(\",\"));d(\"}\")}return{kind:\"Object\",start:e,end:a,members:t}}function c(){var e=i,t=\"String\"===l?p():null;d(\"String\"),d(\":\");var n=f();return{kind:\"Member\",start:e,end:a,key:t,value:n}}function f(){switch(l){case\"[\":return function(){var e=i,t=[];if(d(\"[\"),!m(\"]\")){do{t.push(f())}while(m(\",\"));d(\"]\")}return{kind:\"Array\",start:e,end:a,values:t}}();case\"{\":return u();case\"String\":case\"Number\":case\"Boolean\":case\"Null\":var e=p();return g(),e}d(\"Value\")}function p(){return{kind:l,start:i,end:o,value:JSON.parse(n.slice(i,o))}}function d(e){if(l!==e){var t;if(\"EOF\"===l)t=\"[end of file]\";else if(o-i>1)t=\"`\"+n.slice(i,o)+\"`\";else{var r=n.slice(i).match(/^.+?\\b/);t=\"`\"+(r?r[0]:n[i])+\"`\"}throw h(\"Expected \"+e+\" but found \"+t+\".\")}g()}function h(e){return{message:e,start:i,end:o}}function m(e){if(l===e)return g(),!0}function v(){return o31;)if(92===s)switch(s=v()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:v();break;case 117:v(),y(),y(),y(),y();break;default:throw h(\"Bad character escape sequence.\")}else{if(o===r)throw h(\"Unterminated string.\");v()}if(34!==s)throw h(\"Unterminated string.\");v()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return l=\"Number\",45===s&&v(),48===s?v():b(),46===s&&(v(),b()),void(69!==s&&101!==s||(43!==(s=v())&&45!==s||v(),b()));case 102:if(\"false\"!==n.slice(i,i+5))break;return o+=4,v(),void(l=\"Boolean\");case 110:if(\"null\"!==n.slice(i,i+4))break;return o+=3,v(),void(l=\"Null\");case 116:if(\"true\"!==n.slice(i,i+4))break;return o+=3,v(),void(l=\"Boolean\")}l=n[i],v()}else l=\"EOF\"}function y(){if(s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102)return v();throw h(\"Expected hexadecimal digit.\")}function b(){if(s<48||s>57)throw h(\"Expected decimal digit.\");do{v()}while(s>=48&&s<=57)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){n=e,r=e.length,i=o=a=-1,v(),g();var t=u();return d(\"EOF\"),t}},7612:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326));function o(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&\"SPAN\"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&u(e)}}function a(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&c(e):e.state.jump.cursor=null}function s(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(l?\"Meta\":\"Control\")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&u(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&c(e),i.default.off(document,\"keyup\",n),i.default.off(document,\"click\",r),e.off(\"mousedown\",o))},r=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,\"keyup\",n),i.default.on(document,\"click\",r),e.on(\"mousedown\",o)}}i.default.defineOption(\"jump\",!1,(function(e,t,n){if(n&&n!==i.default.Init){var r=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),\"mouseover\",r);var l=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),\"mouseout\",l),i.default.off(document,\"keydown\",e.state.jump.onKeyDown),delete e.state.jump}if(t){var u=e.state.jump={options:t,onMouseOver:o.bind(null,e),onMouseOut:a.bind(null,e),onKeyDown:s.bind(null,e)};i.default.on(e.getWrapperElement(),\"mouseover\",u.onMouseOver),i.default.on(e.getWrapperElement(),\"mouseout\",u.onMouseOut),i.default.on(document,\"keydown\",u.onKeyDown)}}));var l=\"undefined\"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf(\"Mac\");function u(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,\"jump\");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:\"CodeMirror-jump-token\"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function c(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},7123:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=n(8524),a=r(n(7197)),s=r(n(2099));i.default.registerHelper(\"hint\",\"graphql-variables\",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),l=function(e,t,n){var r=\"Invalid\"===t.state.kind?t.state.prevState:t.state,i=r.kind,l=r.step;if(\"Document\"===i&&0===l)return s.default(e,t,[{text:\"{\"}]);var u=n.variableToType;if(u){var c=function(e,t){var n={type:null,fields:null};return a.default(t,(function(t){if(\"Variable\"===t.kind)n.type=e[t.name];else if(\"ListValue\"===t.kind){var r=n.type?o.getNullableType(n.type):void 0;n.type=r instanceof o.GraphQLList?r.ofType:null}else if(\"ObjectValue\"===t.kind){var i=n.type?o.getNamedType(n.type):void 0;n.fields=i instanceof o.GraphQLInputObjectType?i.getFields():null}else if(\"ObjectField\"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(u,t.state);if(\"Document\"===i||\"Variable\"===i&&0===l){var f=Object.keys(u);return s.default(e,t,f.map((function(e){return{text:'\"'+e+'\": ',type:u[e]}})))}if((\"ObjectValue\"===i||\"ObjectField\"===i&&0===l)&&c.fields){var p=Object.keys(c.fields).map((function(e){return c.fields[e]}));return s.default(e,t,p.map((function(e){return{text:'\"'+e.name+'\": ',type:e.type,description:e.description}})))}if(\"StringValue\"===i||\"NumberValue\"===i||\"BooleanValue\"===i||\"NullValue\"===i||\"ListValue\"===i&&1===l||\"ObjectField\"===i&&2===l||\"Variable\"===i&&2===l){var d=c.type?o.getNamedType(c.type):void 0;if(d instanceof o.GraphQLInputObjectType)return s.default(e,t,[{text:\"{\"}]);if(d instanceof o.GraphQLEnumType){var h=d.getValues();return s.default(e,t,h.map((function(e){return{text:'\"'+e.name+'\"',type:d,description:e.description}})))}if(d===o.GraphQLBoolean)return s.default(e,t,[{text:\"true\",type:o.GraphQLBoolean,description:\"Not false.\"},{text:\"false\",type:o.GraphQLBoolean,description:\"Not true.\"}])}}}(n,r,t);return l&&l.list&&l.list.length>0&&(l.from=i.default.Pos(l.from.line,l.from.ch),l.to=i.default.Pos(l.to.line,l.to.ch),i.default.signal(e,\"hasCompletion\",e,l,r)),l}))},5788:function(e,t,n){\"use strict\";var r=this&&this.__read||function(e,t){var n=\"function\"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var o=i(n(3326)),a=n(8524),s=i(n(301));function l(e,t){if(!e||!t)return[];if(e instanceof a.GraphQLNonNull)return\"Null\"===t.kind?[[t,'Type \"'+e+'\" is non-nullable and cannot be null.']]:l(e.ofType,t);if(\"Null\"===t.kind)return[];if(e instanceof a.GraphQLList){var n=e.ofType;return\"Array\"===t.kind?c(t.values||[],(function(e){return l(n,e)})):l(n,t)}if(e instanceof a.GraphQLInputObjectType){if(\"Object\"!==t.kind)return[[t,'Type \"'+e+'\" must be an Object.']];var r=Object.create(null),i=c(t.members,(function(t){var n,i=null===(n=null==t?void 0:t.key)||void 0===n?void 0:n.value;r[i]=!0;var o=e.getFields()[i];return o?l(o?o.type:void 0,t.value):[[t.key,'Type \"'+e+'\" does not have a field \"'+i+'\".']]}));return Object.keys(e.getFields()).forEach((function(n){r[n]||e.getFields()[n].type instanceof a.GraphQLNonNull&&i.push([t,'Object of type \"'+e+'\" is missing required field \"'+n+'\".'])})),i}return\"Boolean\"===e.name&&\"Boolean\"!==t.kind||\"String\"===e.name&&\"String\"!==t.kind||\"ID\"===e.name&&\"Number\"!==t.kind&&\"String\"!==t.kind||\"Float\"===e.name&&\"Number\"!==t.kind||\"Int\"===e.name&&(\"Number\"!==t.kind||(0|t.value)!==t.value)||(e instanceof a.GraphQLEnumType||e instanceof a.GraphQLScalarType)&&(\"String\"!==t.kind&&\"Number\"!==t.kind&&\"Boolean\"!==t.kind&&\"Null\"!==t.kind||null==(o=e.parseValue(t.value))||o!=o)?[[t,'Expected value of type \"'+e+'\".']]:[];var o}function u(e,t,n){return{message:n,severity:\"error\",type:\"validation\",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function c(e,t){return Array.prototype.concat.apply([],e.map(t))}o.default.registerHelper(\"lint\",\"graphql-variables\",(function(e,t,n){if(!e)return[];var i;try{i=s.default(e)}catch(e){if(e.stack)throw e;return[u(n,e,e.message)]}var o=t.variableToType;return o?function(e,t,n){var i=[];return n.members.forEach((function(n){var o;if(n){var a=null===(o=n.key)||void 0===o?void 0:o.value,s=t[a];s?l(s,n.value).forEach((function(t){var n=r(t,2),o=n[0],a=n[1];i.push(u(e,o,a))})):i.push(u(e,n.key,'Variable \"$'+a+'\" does not appear in any GraphQL query.'))}})),i}(n,o,i):[]}))},8952:function(e,t,n){\"use strict\";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(3326)),o=n(3099);function a(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}i.default.defineMode(\"graphql-variables\",(function(e){var t=o.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:s,parseRules:l,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\\s*[}\\]]/,fold:\"brace\",closeBrackets:{pairs:'[]{}\"\"',explode:\"[]{}\"}}}));var s={Punctuation:/^\\[|]|\\{|\\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^\"(?:[^\"\\\\]|\\\\(?:\"|\\/|\\\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*\"?/,Keyword:/^true|false|null/},l={Document:[o.p(\"{\"),o.list(\"Variable\",o.opt(o.p(\",\"))),o.p(\"}\")],Variable:[u(\"variable\"),o.p(\":\"),\"Value\"],Value:function(e){switch(e.kind){case\"Number\":return\"NumberValue\";case\"String\":return\"StringValue\";case\"Punctuation\":switch(e.value){case\"[\":return\"ListValue\";case\"{\":return\"ObjectValue\"}return null;case\"Keyword\":switch(e.value){case\"true\":case\"false\":return\"BooleanValue\";case\"null\":return\"NullValue\"}return null}},NumberValue:[o.t(\"Number\",\"number\")],StringValue:[o.t(\"String\",\"string\")],BooleanValue:[o.t(\"Keyword\",\"builtin\")],NullValue:[o.t(\"Keyword\",\"keyword\")],ListValue:[o.p(\"[\"),o.list(\"Value\",o.opt(o.p(\",\"))),o.p(\"]\")],ObjectValue:[o.p(\"{\"),o.list(\"ObjectField\",o.opt(o.p(\",\"))),o.p(\"}\")],ObjectField:[u(\"attribute\"),o.p(\":\"),\"Value\"]};function u(e){return{style:e,match:function(e){return\"String\"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}},2017:(e,t,n)=>{!function(e){\"use strict\";var t={},n=/[^\\s\\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension(\"toggleComment\",(function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a=\"un\":(n.lineComment(l,u,e),a=\"line\"):\"un\"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}})),e.defineExtension(\"lineComment\",(function(e,i,s){s||(s=t);var l,u,c=this,f=a(c,e),p=c.getLine(e.line);if(null!=p&&(l=e,u=p,!/\\bstring\\b/.test(c.getTokenTypeAt(r(l.line,0)))||/^[\\'\\\"\\`]/.test(u))){var d=s.lineComment||f.lineComment;if(d){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,c.lastLine()+1),m=null==s.padding?\" \":s.padding,v=s.commentBlankLines||e.line==i.line;c.operation((function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;ip||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(p));l.replaceRange(d+f,r(p)),l.replaceRange(c+d,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=p;++h)(h!=p||t)&&l.replaceRange(a+d,r(h,0))}else{var m=0==i(l.getCursor(\"to\"),o),v=!l.somethingSelected();l.replaceRange(f,o),m&&l.setSelection(v?o:l.getCursor(\"from\"),o),l.replaceRange(c,e)}}))}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)})),e.defineExtension(\"uncomment\",(function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),f=Math.min(e.line,c),p=o.lineComment||u.lineComment,d=[],h=null==o.padding?\" \":o.padding;e:if(p){for(var m=f;m<=c;++m){var v=l.getLine(m),g=v.indexOf(p);if(g>-1&&!/comment/.test(l.getTokenTypeAt(r(m,g+1)))&&(g=-1),-1==g&&n.test(v))break e;if(g>-1&&n.test(v.slice(0,g)))break e;d.push(v)}if(l.operation((function(){for(var e=f;e<=c;++e){var t=d[e-f],n=t.indexOf(p),i=n+p.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange(\"\",r(e,n),r(e,i)))}})),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var E=o.blockCommentLead||u.blockCommentLead,w=l.getLine(f),T=w.indexOf(y);if(-1==T)return!1;var _=c==f?w:l.getLine(c),k=_.indexOf(b,c==f?T+y.length:0),S=r(f,T+1),x=r(c,k+1);if(-1==k||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(x))||l.getRange(S,x,\"\\n\").indexOf(b)>-1)return!1;var N=w.lastIndexOf(y,e.ch),C=-1==N?-1:w.slice(0,e.ch).indexOf(b,N+y.length);if(-1!=N&&-1!=C&&C+b.length!=e.ch)return!1;C=_.indexOf(b,i.ch);var O=_.slice(i.ch).lastIndexOf(y,C-i.ch);return N=-1==C||-1==O?-1:i.ch+O,(-1==C||-1==N||N==i.ch)&&(l.operation((function(){l.replaceRange(\"\",r(c,k-(h&&_.slice(k-h.length,k)==h?h.length:0)),r(c,k+b.length));var e=T+y.length;if(h&&w.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange(\"\",r(f,T),r(f,e)),E)for(var t=f+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(E);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+E.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange(\"\",r(t,o),r(t,a))}}})),!0)}))}(n(3326))},5971:(e,t,n)=>{!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement(\"div\"))).className=r?\"CodeMirror-dialog CodeMirror-dialog-bottom\":\"CodeMirror-dialog CodeMirror-dialog-top\",\"string\"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,\"dialog-opened\"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension(\"openDialog\",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if(\"string\"==typeof t)f.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,\"dialog-opened\"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,f=a.getElementsByTagName(\"input\")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,\"input\",(function(e){o.onInput(e,f.value,u)})),o.onKeyUp&&e.on(f,\"keyup\",(function(e){o.onKeyUp(e,f.value,u)})),e.on(f,\"keydown\",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),u()),13==t.keyCode&&i(f.value,t))})),!1!==o.closeOnBlur&&e.on(a,\"focusout\",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName(\"button\")[0])&&(e.on(c,\"click\",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,\"blur\",u),c.focus()),u})),e.defineExtension(\"openConfirm\",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName(\"button\"),l=!1,u=this,c=1;function f(){l||(l=!0,e.rmClass(a.parentNode,\"dialog-opened\"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var p=0;p{!function(e){var t={pairs:\"()[]{}''\\\"\\\"\",closeBefore:\")]}'\\\":;>\",triples:\"\",explode:\"[]{}\"},n=e.Pos;function r(e,n){return\"pairs\"==n&&\"string\"==typeof e?e:\"object\"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption(\"autoCloseBrackets\",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,\"pairs\")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption(\"disableInput\"))return e.Pass;for(var o=r(i,\"pairs\"),a=t.listSelections(),l=0;l=0;l--){var f=a[l].head;t.replaceRange(\"\",n(f.line,f.ch-1),n(f.line,f.ch+1),\"+delete\")}},Enter:function(t){var n=s(t),i=n&&r(n,\"explode\");if(!i||t.getOption(\"disableInput\"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(w.line,w.ch-2),w)==i+i){if(w.ch>2&&/\\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b=\"addFour\"}else if(m){var _=0==w.ch?\" \":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(T)||_==i||e.isWordChar(_))return e.Pass;b=\"both\"}else{if(!g||!(0===T.length||/\\s/.test(T)||d.indexOf(T)>-1))return e.Pass;b=\"both\"}else b=m&&f(t,w)?\"both\":h.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?\"skipThree\":\"skip\";if(p){if(p!=b)return e.Pass}else p=b}var k=c%2?a.charAt(c-1):i,S=c%2?i:a.charAt(c+1);t.operation((function(){if(\"skip\"==p)l(t,1);else if(\"skipThree\"==p)l(t,3);else if(\"surround\"==p){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function f(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+\"`\")}(n(3326))},2407:(e,t,n)=>{!function(e){var t=/MSIE \\d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={\"(\":\")>\",\")\":\"(<\",\"[\":\"]>\",\"]\":\"[<\",\"{\":\"}>\",\"}\":\"{<\",\"<\":\">>\",\">\":\"<<\"};function i(e){return e&&e.bracketRegex||/[(){}[\\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var p=\">\"==f.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==t.ch))return null;var d=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(p>0?1:0)),p,d,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:p>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),p=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),d=t.line;d!=p;d+=o){var h=e.getLine(d);if(h){var m=o>0?0:h.length-1,v=o>0?h.length:-1;if(!(h.length>l))for(d==t.line&&(m=t.ch-(o<0?1:0));m!=v;m+=o){var g=h.charAt(m);if(f.test(g)&&(void 0===a||(e.getTokenTypeAt(n(d,m+1))||\"\")==(a||\"\"))){var y=r[g];if(y&&\">\"==y.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:n(d,m),ch:g};c.pop()}}}}}return d-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c{!function(e){\"use strict\";e.registerHelper(\"fold\",\"brace\",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=u){if(1==l&&uc))u=c,s=\"{\",l=\"}\";else{if(null==f)return;u=f,s=\"[\",l=\"]\"}var p,d,h=1,m=t.lastLine();e:for(var v=i;v<=m;++v)for(var g=t.getLine(v),y=v==i?u:0;;){var b=g.indexOf(s,y),E=g.indexOf(l,y);if(b<0&&(b=g.length),E<0&&(E=g.length),(y=Math.min(b,E))==g.length)break;if(t.getTokenTypeAt(e.Pos(v,y+1))==r)if(y==b)++h;else if(!--h){p=v,d=y;break e}++y}if(null!=p&&i!=p)return{from:e.Pos(i,u),to:e.Pos(p,d)}})),e.registerHelper(\"fold\",\"import\",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),\"keyword\"!=r.type||\"import\"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(\";\");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper(\"fold\",\"include\",(function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),\"meta\"==r.type&&\"#include\"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))}(n(3326))},6755:(e,t,n)=>{!function(e){\"use strict\";function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,\"rangeFinder\");\"number\"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,\"minFoldSize\");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&\"unfold\"!==o){var c=function(e,t,n){var i=r(e,t,\"widget\");if(\"function\"==typeof i&&(i=i(n.from,n.to)),\"string\"==typeof i){var o=document.createTextNode(i);(i=document.createElement(\"span\")).appendChild(o),i.className=\"CodeMirror-foldmarker\"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,\"mousedown\",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,\"clearOnEnter\"),__isFold:!0});f.on(\"clear\",(function(n,r){e.signal(t,\"unfold\",t,n,r)})),e.signal(t,\"fold\",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension(\"foldCode\",(function(e,n,r){t(this,e,n,r)})),e.defineExtension(\"isFolded\",(function(e){for(var t=this.findMarksAt(e),n=0;n{!function(e){\"use strict\";e.defineOption(\"foldGutter\",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off(\"gutterClick\",l),t.off(\"changes\",u),t.off(\"viewportChange\",c),t.off(\"fold\",f),t.off(\"unfold\",f),t.off(\"swapDoc\",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter=\"CodeMirror-foldgutter\"),null==o.indicatorOpen&&(o.indicatorOpen=\"CodeMirror-foldgutter-open\"),null==o.indicatorFolded&&(o.indicatorFolded=\"CodeMirror-foldgutter-folded\"),o)),s(t),t.on(\"gutterClick\",l),t.on(\"changes\",u),t.on(\"viewportChange\",c),t.on(\"fold\",f),t.on(\"unfold\",f),t.on(\"swapDoc\",u))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=u){if(p&&a&&p.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp(\"(^|\\\\s)\"+e+\"(?:$|\\\\s)\\\\s*\")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{!function(e){\"use strict\";function t(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor(\"start\"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on(\"cursorActivity\",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension(\"showHint\",(function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in l)i[o]=l[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor(\"start\"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;iu.clientHeight+1;if(setTimeout((function(){C=a.getScrollInfo()})),O.bottom-N>0){var I=O.bottom-O.top;if(g.top-(g.bottom-O.top)-I>0)u.style.top=(b=g.top-I-T)+\"px\",E=!1;else if(I>N){u.style.height=N-5+\"px\",u.style.top=(b=g.bottom-O.top-T)+\"px\";var D=a.getCursor();n.from.ch!=D.ch&&(g=a.cursorCoords(D),u.style.left=(y=g.left-w)+\"px\",O=u.getBoundingClientRect())}}var L,M=O.right-x;if(A&&(M+=a.display.nativeBarWidth),M>0&&(O.right-O.left>x&&(u.style.width=x-5+\"px\",M-=O.right-O.left-x),u.style.left=(y=g.left-M-w)+\"px\"),A)for(var F=u.firstChild;F;F=F.nextSibling)F.style.paddingRight=a.display.nativeBarWidth+\"px\";a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n[\"Ctrl-P\"]=function(){t.moveFocus(-1)},n[\"Ctrl-N\"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o=\"string\"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on(\"blur\",this.onBlur=function(){L=setTimeout((function(){t.close()}),100)}),a.on(\"focus\",this.onFocus=function(){clearTimeout(L)})),a.on(\"scroll\",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect();C||(C=a.getScrollInfo());var r=b+C.top-e.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(E||(i+=u.offsetHeight),i<=n.top||i>=n.bottom)return t.close();u.style.top=r+\"px\",u.style.left=y+C.left-e.left+\"px\"}),e.on(u,\"dblclick\",(function(e){var t=o(u,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(u,\"click\",(function(e){var n=o(u,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(u,\"mousedown\",(function(){setTimeout((function(){a.focus()}),20)}));var R=this.getSelectedHintRange();return 0===R.from&&0===R.to||this.scrollToActive(),e.signal(n,\"select\",f[this.selectedHint],u.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off(\"cursorActivity\",this.activityFunc),this.widget&&this.data&&e.signal(this.data,\"close\"),this.widget&&this.widget.close(),e.signal(this.cm,\"endCompletion\",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,\"complete\"),e.signal(t,\"pick\",r),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(\" CodeMirror-hint-active\",\"\")),(r=this.hints.childNodes[this.selectedHint=t]).className+=\" CodeMirror-hint-active\",this.scrollToActive(),e.signal(this.data,\"select\",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper(\"hint\",\"auto\",{resolve:function(t,n){var r,i=t.getHelpers(n,\"hint\");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),\"hintWords\"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper(\"hint\",\"fromList\",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption(\"hintOptions\",null)}(n(3326))},9387:(e,t,n)=>{!function(e){\"use strict\";var t=\"CodeMirror-lint-markers\";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement(\"div\");function o(t){if(!i.parentNode)return e.off(document,\"mousemove\",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+\"px\",i.style.left=t.clientX+5+\"px\"}return i.className=\"CodeMirror-lint-tooltip cm-s-\"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,\"mousemove\",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,\"mouseout\",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,\"mouseout\",s)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},\"client\")),u=[],c=0;c-1)&&h.push(e.message)}));for(var m=null,v=u.hasGutter&&document.createDocumentFragment(),g=0;g1,u.options.tooltips)),a(u)&&e.addLineClass(p,\"wrap\",\"CodeMirror-lint-line-\"+m)}}c.onUpdateLinting&&c.onUpdateLinting(n,f,e)}}function f(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){u(e)}),t.options.delay||500))}e.defineOption(\"lint\",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off(\"change\",f),e.off(n.getWrapperElement(),\"mouseover\",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption(\"gutters\"),l=!1,c=0;c{!function(e){\"use strict\";function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption(\"search\",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase(\"Jump to line:\")+' '+e.phrase(\"(Use line:column or scroll% syntax)\")+\"\"}(e),e.phrase(\"Jump to line:\"),n.line+1+\":\"+n.ch,(function(r){var i;if(r)if(i=/^\\s*([\\+\\-]?\\d+)\\s*\\:\\s*(\\d+)\\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\\s*([\\+\\-]?\\d+(\\.\\d+)?)\\%\\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\\s*\\:?\\s*([\\+\\-]?\\d+)\\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default[\"Alt-G\"]=\"jumpToLine\"}(n(3326),n(5971))},5751:(e,t,n)=>{!function(e){\"use strict\";function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return\"string\"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\\\([nrt\\\\])/g,(function(e,t){return\"n\"==t?\"\\n\":\"r\"==t?\"\\r\":\"t\"==t?\"\\t\":\"\\\\\"==t?\"\\\\\":e}))}function s(e){var t=e.match(/^\\/(.*)\\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf(\"i\")?\"\":\"i\")}catch(e){}else e=a(e);return(\"string\"==typeof e?\"\"==e:e.test(\"\"))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return\"string\"==typeof e?e=new RegExp(e.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\"),t?\"gi\":\"g\"):e.global||(e=new RegExp(e.source,e.ignoreCase?\"gi\":\"g\")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,\"searching\";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&\"x^\"==u.source&&(u=null),i&&t.openDialog){var d=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),d&&(d.style.opacity=1),c(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(\".CodeMirror-dialog\"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,\"window\").top&&((d=r).style.opacity=.4)})))};(function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i,bottom:e.options.search.bottom})})(t,p(t),u,h,(function(r,i){var o=e.keyName(r),a=t.getOption(\"extraKeys\"),s=a&&a[o]||e.keyMap[t.getOption(\"keyMap\")][o];\"findNext\"==s||\"findPrev\"==s||\"findPersistentNext\"==s||\"findPersistentPrev\"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):\"find\"!=s&&\"findPersistent\"!=s||(e.e_stop(r),h(i,r))})),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),\"Search for:\",u,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)}))}))}function c(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function p(e){return''+e.phrase(\"Search:\")+' '+e.phrase(\"(Use /re/ syntax for regexp search)\")+\"\"}function d(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if(\"string\"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\\$(\\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function h(e,t){if(!e.getOption(\"readOnly\")){var r=e.getSelection()||n(e).lastQuery,l=''+(t?e.phrase(\"Replace all:\"):e.phrase(\"Replace:\"))+\"\";o(e,l+function(e){return' '+e.phrase(\"(Use /re/ syntax for regexp search)\")+\"\"}(e),l,r,(function(n){n&&(n=s(n),o(e,function(e){return''+e.phrase(\"With:\")+' '}(e),e.phrase(\"Replace with:\"),\"\",(function(r){if(r=a(r),t)d(e,n,r);else{f(e);var o=i(e,n,e.getCursor(\"from\")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return''+e.phrase(\"Replace?\")+\" \"}(e),e.phrase(\"Replace?\"),[function(){l(t)},s,function(){d(e,n,r)}]))},l=function(e){o.replace(\"string\"==typeof n?r:r.replace(/\\$(\\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.defineOption(\"search\",{bottom:!1}),e.commands.find=function(e){f(e),u(e)},e.commands.findPersistent=function(e){f(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(3326),n(9757),n(5971))},9757:(e,t,n)=>{!function(e){\"use strict\";var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?\"i\":\"\")+(e.global?\"g\":\"\")+(e.multiline?\"m\":\"\")}(e),r=n,i=0;ic);f++){var p=e.getLine(u++);s=null==s?p:s+\"\\n\"+p}l*=2,t.lastIndex=n.ch;var d=t.exec(s);if(d){var h=s.slice(0,d.index).split(\"\\n\"),m=d[0].split(\"\\n\"),v=n.line+h.length-1,g=h[h.length-1].length;return{from:r(v,g),to:r(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:d}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,\"g\");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,\"gm\");for(var a,s=1,c=e.getLine(n.line).length-n.ch,f=n.line,p=e.firstLine();f>=p;){for(var d=0;d=p;d++){var h=e.getLine(f--);a=null==a?h:h+\"\\n\"+a}s*=2;var m=l(a,t,c);if(m){var v=a.slice(0,m.index).split(\"\\n\"),g=m[0].split(\"\\n\"),y=f+v.length,b=v[v.length-1].length;return{from:r(y,b),to:r(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\\r|\\n\\r?/);e:for(var u=o.line,c=o.ch,p=e.lastLine()+1-l.length;u<=p;u++,c=0){var d=e.getLine(u).slice(c),h=s(d);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=f(d,h,m,s)+c,{from:r(u,f(d,h,m,s)+c),to:r(u,f(d,h,m+l[0].length,s)+c)}}var v=h.length-l[0].length;if(h.slice(v)==l[0]){for(var g=1;g=p;u--,c=-1){var d=e.getLine(u);c>-1&&(d=d.slice(0,c));var h=s(d);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,f(d,h,m,s)),to:r(u,f(d,h,m+l[0].length,s))}}var v=l[l.length-1];if(h.slice(0,v.length)==v){var g=1;for(o=u-l.length+1;g0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(3326))},4521:(e,t,n)=>{!function(e){\"use strict\";var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s=\"start\",l=r.ch,u=l,c=i<0?0:o.length,f=0;u!=c;u+=i,f++){var p=o.charAt(i<0?u-1:u),d=\"_\"!=p&&e.isWordChar(p)?\"w\":\"o\";if(\"w\"==d&&p.toUpperCase()==p&&(d=\"W\"),\"start\"==s)\"o\"!=d?(s=\"in\",a=d):l=u+i;else if(\"in\"==s&&a!=d){if(\"w\"==a&&\"W\"==d&&i<0&&u--,\"W\"==a&&\"w\"==d&&i>0){if(u==l+1){a=\"w\";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand(\"goLineUp\")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,\"local\")+1;e.getCursor().line<=n&&e.execCommand(\"goLineDown\")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function p(t){var n=t.getCursor(\"from\"),r=t.getCursor(\"to\");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function d(e,t){var r=p(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand(\"selectAll\")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange(\"\\n\"+s,n(t.lastLine()),null,\"+swapLine\"):t.replaceRange(s+\"\\n\",n(o,0),null,\"+swapLine\")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange(\"\",n(r-1),n(r),\"+swapLine\"):t.replaceRange(\"\",n(r,0),n(r+1,0),\"+swapLine\"),t.replaceRange(a+\"\\n\",n(o,0),null,\"+swapLine\")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption(\"tabSize\")),u=t.findPosH(a,-1,\"char\",!1);if(s&&!/\\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange(\"\",u,a,\"+delete\")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(\"\",t[r].anchor,n(t[r].to().line),\"+delete\");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){f(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){f(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange(\"\",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,\"paste\")},t.showInCenter=function(e){var t=e.cursorCoords(null,\"local\");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=p(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={\"Cmd-Left\":\"goLineStartSmart\",\"Shift-Tab\":\"indentLess\",\"Shift-Ctrl-K\":\"deleteLine\",\"Alt-Q\":\"wrapLines\",\"Ctrl-Left\":\"goSubwordLeft\",\"Ctrl-Right\":\"goSubwordRight\",\"Ctrl-Alt-Up\":\"scrollLineUp\",\"Ctrl-Alt-Down\":\"scrollLineDown\",\"Cmd-L\":\"selectLine\",\"Shift-Cmd-L\":\"splitSelectionByLine\",Esc:\"singleSelectionTop\",\"Cmd-Enter\":\"insertLineAfter\",\"Shift-Cmd-Enter\":\"insertLineBefore\",\"Cmd-D\":\"selectNextOccurrence\",\"Shift-Cmd-Space\":\"selectScope\",\"Shift-Cmd-M\":\"selectBetweenBrackets\",\"Cmd-M\":\"goToBracket\",\"Cmd-Ctrl-Up\":\"swapLineUp\",\"Cmd-Ctrl-Down\":\"swapLineDown\",\"Cmd-/\":\"toggleCommentIndented\",\"Cmd-J\":\"joinLines\",\"Shift-Cmd-D\":\"duplicateLine\",F5:\"sortLines\",\"Shift-F5\":\"reverseSortLines\",\"Cmd-F5\":\"sortLinesInsensitive\",\"Shift-Cmd-F5\":\"reverseSortLinesInsensitive\",F2:\"nextBookmark\",\"Shift-F2\":\"prevBookmark\",\"Cmd-F2\":\"toggleBookmark\",\"Shift-Cmd-F2\":\"clearBookmarks\",\"Alt-F2\":\"selectBookmarks\",Backspace:\"smartBackspace\",\"Cmd-K Cmd-D\":\"skipAndSelectNextOccurrence\",\"Cmd-K Cmd-K\":\"delLineRight\",\"Cmd-K Cmd-U\":\"upcaseAtCursor\",\"Cmd-K Cmd-L\":\"downcaseAtCursor\",\"Cmd-K Cmd-Space\":\"setSublimeMark\",\"Cmd-K Cmd-A\":\"selectToSublimeMark\",\"Cmd-K Cmd-W\":\"deleteToSublimeMark\",\"Cmd-K Cmd-X\":\"swapWithSublimeMark\",\"Cmd-K Cmd-Y\":\"sublimeYank\",\"Cmd-K Cmd-C\":\"showInCenter\",\"Cmd-K Cmd-G\":\"clearBookmarks\",\"Cmd-K Cmd-Backspace\":\"delLineLeft\",\"Cmd-K Cmd-1\":\"foldAll\",\"Cmd-K Cmd-0\":\"unfoldAll\",\"Cmd-K Cmd-J\":\"unfoldAll\",\"Ctrl-Shift-Up\":\"addCursorToPrevLine\",\"Ctrl-Shift-Down\":\"addCursorToNextLine\",\"Cmd-F3\":\"findUnder\",\"Shift-Cmd-F3\":\"findUnderPrevious\",\"Alt-F3\":\"findAllUnder\",\"Shift-Cmd-[\":\"fold\",\"Shift-Cmd-]\":\"unfold\",\"Cmd-I\":\"findIncremental\",\"Shift-Cmd-I\":\"findIncrementalReverse\",\"Cmd-H\":\"replace\",F3:\"findNext\",\"Shift-F3\":\"findPrev\",fallthrough:\"macDefault\"},e.normalizeKeyMap(h.macSublime),h.pcSublime={\"Shift-Tab\":\"indentLess\",\"Shift-Ctrl-K\":\"deleteLine\",\"Alt-Q\":\"wrapLines\",\"Ctrl-T\":\"transposeChars\",\"Alt-Left\":\"goSubwordLeft\",\"Alt-Right\":\"goSubwordRight\",\"Ctrl-Up\":\"scrollLineUp\",\"Ctrl-Down\":\"scrollLineDown\",\"Ctrl-L\":\"selectLine\",\"Shift-Ctrl-L\":\"splitSelectionByLine\",Esc:\"singleSelectionTop\",\"Ctrl-Enter\":\"insertLineAfter\",\"Shift-Ctrl-Enter\":\"insertLineBefore\",\"Ctrl-D\":\"selectNextOccurrence\",\"Shift-Ctrl-Space\":\"selectScope\",\"Shift-Ctrl-M\":\"selectBetweenBrackets\",\"Ctrl-M\":\"goToBracket\",\"Shift-Ctrl-Up\":\"swapLineUp\",\"Shift-Ctrl-Down\":\"swapLineDown\",\"Ctrl-/\":\"toggleCommentIndented\",\"Ctrl-J\":\"joinLines\",\"Shift-Ctrl-D\":\"duplicateLine\",F9:\"sortLines\",\"Shift-F9\":\"reverseSortLines\",\"Ctrl-F9\":\"sortLinesInsensitive\",\"Shift-Ctrl-F9\":\"reverseSortLinesInsensitive\",F2:\"nextBookmark\",\"Shift-F2\":\"prevBookmark\",\"Ctrl-F2\":\"toggleBookmark\",\"Shift-Ctrl-F2\":\"clearBookmarks\",\"Alt-F2\":\"selectBookmarks\",Backspace:\"smartBackspace\",\"Ctrl-K Ctrl-D\":\"skipAndSelectNextOccurrence\",\"Ctrl-K Ctrl-K\":\"delLineRight\",\"Ctrl-K Ctrl-U\":\"upcaseAtCursor\",\"Ctrl-K Ctrl-L\":\"downcaseAtCursor\",\"Ctrl-K Ctrl-Space\":\"setSublimeMark\",\"Ctrl-K Ctrl-A\":\"selectToSublimeMark\",\"Ctrl-K Ctrl-W\":\"deleteToSublimeMark\",\"Ctrl-K Ctrl-X\":\"swapWithSublimeMark\",\"Ctrl-K Ctrl-Y\":\"sublimeYank\",\"Ctrl-K Ctrl-C\":\"showInCenter\",\"Ctrl-K Ctrl-G\":\"clearBookmarks\",\"Ctrl-K Ctrl-Backspace\":\"delLineLeft\",\"Ctrl-K Ctrl-1\":\"foldAll\",\"Ctrl-K Ctrl-0\":\"unfoldAll\",\"Ctrl-K Ctrl-J\":\"unfoldAll\",\"Ctrl-Alt-Up\":\"addCursorToPrevLine\",\"Ctrl-Alt-Down\":\"addCursorToNextLine\",\"Ctrl-F3\":\"findUnder\",\"Shift-Ctrl-F3\":\"findUnderPrevious\",\"Alt-F3\":\"findAllUnder\",\"Shift-Ctrl-[\":\"fold\",\"Shift-Ctrl-]\":\"unfold\",\"Ctrl-I\":\"findIncremental\",\"Shift-Ctrl-I\":\"findIncrementalReverse\",\"Ctrl-H\":\"replace\",F3:\"findNext\",\"Shift-F3\":\"findPrev\",fallthrough:\"pcDefault\"},e.normalizeKeyMap(h.pcSublime);var m=h.default==h.macDefault;h.sublime=m?h.macSublime:h.pcSublime}(n(3326),n(9757),n(2407))},3326:function(e){e.exports=function(){\"use strict\";var e=navigator.userAgent,t=navigator.platform,n=/gecko\\/\\d/i.test(e),r=/MSIE \\d/.test(e),i=/Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(e),o=/Edge\\/(\\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\\//.test(e),u=l&&/Qt\\/\\d+\\.\\d+/.test(e),c=!o&&/Chrome\\//.test(e),f=/Opera\\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(e),h=/PhantomJS/.test(e),m=p&&(/Mobile\\/\\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\\bCrOS\\b/.test(e),E=/win/i.test(t),w=f&&e.match(/Version\\/(\\d*\\.\\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var T=y&&(u||f&&(null==w||w<12.11)),_=n||a&&s>=9;function k(e){return new RegExp(\"(^|\\\\s)\"+e+\"(?:$|\\\\s)\\\\s*\")}var S,x=function(e,t){var n=e.className,r=k(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:\"\")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function C(e,t){return N(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),\"string\"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function U(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var H=[\"\"];function W(e){for(;H.length<=e;)H.push(Z(H)+\" \");return H[e]}function Z(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r\"€\"&&(e.toUpperCase()!=e.toLowerCase()||J.test(e))}function ee(e,t){return t?!!(t.source.indexOf(\"\\\\w\")>-1&&X(e))||t.test(e):X(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\\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 re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&\"before\"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&\"before\"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l,u=\"ltr\"==s?\"L\":\"R\";if(0==a.length||\"ltr\"==s&&!e.test(a))return!1;for(var c=a.length,f=[],p=0;p-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=pe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ye(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){be(e),Ee(e)}function _e(e){return e.target||e.srcElement}function ke(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Se,xe,Ne=function(){if(a&&s<9)return!1;var e=O(\"div\");return\"draggable\"in e||\"dragDrop\"in e}();function Ce(e){if(null==Se){var t=O(\"span\",\"​\");C(e,O(\"span\",[t,document.createTextNode(\"x\")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Se?O(\"span\",\"​\"):O(\"span\",\" \",null,\"display: inline-block; width: 1px; margin-right: -1px\");return n.setAttribute(\"cm-text\",\"\"),n}function Oe(e){if(null!=xe)return xe;var t=C(e,document.createTextNode(\"AخA\")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(xe=r.right-n.right<3)}var Ae,Ie=3!=\"\\n\\nb\".split(/\\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(\"\\n\",t);-1==i&&(i=e.length);var o=e.slice(t,\"\\r\"==e.charAt(i-1)?i-1:i),a=o.indexOf(\"\\r\");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\\r\\n?|\\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints(\"StartToEnd\",t)},Le=\"oncopy\"in(Ae=O(\"div\"))||(Ae.setAttribute(\"oncopy\",\"return;\"),\"function\"==typeof Ae.oncopy),Me=null;var Fe={},Re={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function je(e){if(\"string\"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&\"string\"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];\"string\"==typeof t&&(t={name:t}),(e=$(t,e)).name=t.name}else{if(\"string\"==typeof e&&/^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(e))return je(\"application/xml\");if(\"string\"==typeof e&&/^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(e))return je(\"application/json\")}return\"string\"==typeof e?{name:e}:e||{name:\"null\"}}function Ve(e,t){t=je(t);var n=Fe[t.name];if(!n)return Ve(e,\"text/plain\");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r[\"_\"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Be(e,t){P(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function He(e,t){if((t-=e.first)<0||t>=e.size)throw new Error(\"There is no line \"+(t+e.first)+\" in the document.\");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?et(n,He(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,He(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.post},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\\s\\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Et(e,t.text,s.mode,n,(function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,\"overlay \"+t),l=n+2;else for(;ne.options.maxHighlightLength&&ze(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=He(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var c=j(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&He(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,qe(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error(\"Mode \"+e.name+\" failed to advance stream.\")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.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}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,ze(e.mode,t.state),n,t.lookAhead):new ct(e,ze(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=He(a,(t=st(a,t)).line),u=dt(e,t.line,n),c=new Qe(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,l=null):l=bt(vt(n,f,r.state,p),o),p){var d=p[0].name;d&&(l=\"m-\"+(l?d+\" \"+l:d))}if(!s||c!=l){for(;u=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&\"bookmark\"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Dt(n,o.marker)<0)&&(n=o.marker)}return n}function Pt(e,t,n,r,i){var o=He(e,t),a=Tt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,r)<=0:tt(u.from,r)<0)))return!0}}}function jt(e){for(var t;t=Mt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=He(e,t),r=jt(n);return n==r?t:Ye(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=He(e,t);if(!Bt(e,r))return t;for(;n=Ft(r);)r=n.find(1,!0).line;return Ye(r)+1}function Bt(e,t){var n=Tt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Ht=function(e,t,n){this.text=e,Ot(this,t),this.height=n?n(this):1};function Wt(e){e.parent=null,Ct(e)}Ht.prototype.lineNo=function(){return Ye(this)},ye(Ht);var Zt={},Kt={};function Yt(e,t){if(!e||/^\\s*$/.test(e))return null;var n=t.addModeClass?Kt:Zt;return n[e]||(n[e]=e.replace(/\\S+/g,\"cm-$&\"))}function $t(e,t){var n=A(\"span\",null,null,l?\"padding-right: .1px\":null),r={pre:A(\"pre\",[n],\"CodeMirror-line\"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption(\"lineWrapping\")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Xt,Oe(e.display.measure)&&(a=ue(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,pt(e,o,t!=e.display.externalMeasured&&Ye(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||\"\")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||\"\"))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ce(e.display.measure))),0==i?(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(l){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 he(e,\"renderLine\",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||\"\")),r}function Jt(e){var t=O(\"span\",\"•\",\"cm-invalidchar\");return t.title=\"\\\\u\"+e.charCodeAt(0).toString(16),t.setAttribute(\"aria-label\",t.title),t}function Xt(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r=\"\",i=0;iu&&f.from<=u);p++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement(\"span\"))),i.setAttribute(\"cm-marker\",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,p,d=i.length,h=0,m=1,v=\"\",g=0;;){if(g==h){l=u=c=s=\"\",p=null,f=null,g=1/0;for(var y=[],b=void 0,E=0;Eh||T.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,u=\"\"),T.className&&(l+=\" \"+T.className),T.css&&(s=(s?s+\";\":\"\")+T.css),T.startStyle&&w.from==h&&(c+=\" \"+T.startStyle),T.endStyle&&w.to==g&&(b||(b=[])).push(T.endStyle,w.to),T.title&&((p||(p={})).title=T.title),T.attributes)for(var _ in T.attributes)(p||(p={}))[_]=T.attributes[_];T.collapsed&&(!f||Dt(f.marker,T)<0)&&(f=w)}else w.from>h&&g>w.from&&(g=w.from)}if(b)for(var k=0;k=d)break;for(var x=Math.min(d,g);;){if(v){var N=h+v.length;if(!f){var C=N>x?v.slice(0,x-h):v;t.addToken(t,C,a?a+l:l,c,h+C.length==g?u:\"\",s,p)}if(N>=x){v=v.slice(x-h),h=x;break}h=N,c=\"\"}v=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var O=1;On)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function An(e,t,n,r){return Ln(e,Dn(e,t),n,r)}function In(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Rn(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;u>0&&(f=r=\"right\"),i=e.options.lineWrapping&&(d=l.getClientRects()).length>1?d[\"right\"==r?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Fn}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a=\"right\")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?\"left\":\"right\")&&(a=n),\"left\"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a=\"left\";if(\"right\"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function jn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u=\"before\"):l<=0&&(l=0,u=\"after\"),!s)return a(\"before\"==u?l-1:l,\"before\"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=se(s,l,u),p=ae,d=c(l,f,\"before\"==u);return null!=p&&(d.other=c(l,p,\"before\"!=u)),d}function Zn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=He(e.doc,t.line),i=Gt(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Kn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Kn(r.first,0,null,-1,-1);var i=$e(r,n),o=r.first+r.size-1;if(i>o)return Kn(r.first+r.size-1,He(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=He(r,i);;){var s=er(e,a,i,t,n),l=Rt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=He(r,i=u.line)}}function $n(e,t,n,r){r-=Gn(t);var i=t.text.length,o=oe((function(t){return Ln(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Ln(e,n,t).top>r}),o,i)}}function Jn(e,t,n,r){return n||(n=Dn(e,t)),$n(e,t,n,qn(e,t,Ln(e,n,r),\"line\").top)}function Xn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Gt(t);var o=Dn(e,t),a=Gn(t),s=0,l=t.text.length,u=!0,c=ue(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var p,d,h=null,m=null,v=oe((function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!Xn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),g=!1;if(m){var y=r-m.left=E.bottom?1:0}return Kn(n,v=ie(t.text,v,1),d,g,r-p)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],u=1!=l.level;return Xn(Wn(e,et(n,u?l.to:l.from,u?\"before\":\"after\"),\"line\",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Wn(e,et(n,u?l.from:l.to,u?\"after\":\"before\"),\"line\",t,r);Xn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=$n(e,t,r,a),l=s.begin,u=s.end;/\\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,p=0;p=u||d.to<=l)){var h=Ln(e,r,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,m=hm)&&(c=d,f=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Mn){Mn=O(\"pre\",null,\"CodeMirror-line-like\");for(var t=0;t<49;++t)Mn.appendChild(document.createTextNode(\"x\")),Mn.appendChild(O(\"br\"));Mn.appendChild(document.createTextNode(\"x\"))}C(e.measure,Mn);var n=Mn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O(\"span\",\"xxxxxxxxxx\"),n=O(\"pre\",[t],\"CodeMirror-line-like\");C(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Bt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=He(e.doc,u.line).text).length==u.ch){var c=j(l,l.length,e.options.tabSize)-l.length;u=et(u.line,Math.max(0,Math.round((o-Sn(e.display).left)/ir(e.display))-c))}return u}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Vt(e.doc,t)i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):dr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!Tt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?\"rtl\":\"ltr\",o),i=!0)}i||r(t,n,\"ltr\")}(m,n||0,null==r?p:r,(function(e,t,i,f){var v=\"ltr\"==i,g=d(e,v?\"left\":\"right\"),y=d(t-1,v?\"right\":\"left\"),b=null==n&&0==e,E=null==r&&t==p,w=0==f,T=!m||f==m.length-1;if(y.top-g.top<=3){var _=(u?E:b)&&T,k=(u?b:E)&&w?s:(v?g:y).left,S=_?l:(v?y:g).right;c(k,g.top,S-k,g.bottom)}else{var x,N,C,O;v?(x=u&&b&&w?s:g.left,N=u?l:h(e,i,\"before\"),C=u?s:h(t,i,\"after\"),O=u&&E&&T?l:y.right):(x=u?h(e,i,\"before\"):s,N=!u&&b&&w?l:g.right,C=!u&&E&&T?s:y.left,O=u?h(t,i,\"after\"):l),c(x,g.top,N-x,g.bottom),g.bottom0?t.blinker=setInterval((function(){e.hasFocus()||Sr(e),t.cursorDiv.style.visibility=(n=!n)?\"\":\"hidden\"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility=\"hidden\")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||kr(e))}function _r(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Sr(e))}),100)}function kr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),\"nocursor\"!=e.options.readOnly&&(e.state.focused||(he(e,\"focus\",e,t),e.state.focused=!0,L(e.display.wrapper,\"CodeMirror-focused\"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Sr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,\"blur\",e,t),e.state.focused=!1,x(e.display.wrapper,\"CodeMirror-focused\")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function xr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||p<-.005)&&(Ke(i.line,l),Nr(i.line),i.rest))for(var d=0;de.display.sizerWidth){var h=Math.ceil(u/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Nr(e){if(e.widgets)for(var t=0;t=a&&(o=$e(t,Gt(He(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Or(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Cn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+kn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Nn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.leftd+p-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Ar(e,t){null!=t&&(Lr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ir(e){Lr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Dr(e,t,n){null==t&&null==n||Lr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Lr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Mr(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function Mr(e,t,n,r){var i=Or(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Dr(e,i.scrollLeft,i.scrollTop)}function Fr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Rr(e,t,!0),n&&li(e),ri(e,100))}function Rr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function jr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+kn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Vr=function(e,t,n){this.cm=n;var r=this.vert=O(\"div\",[O(\"div\",null,null,\"min-width: 1px\")],\"CodeMirror-vscrollbar\"),i=this.horiz=O(\"div\",[O(\"div\",null,null,\"height: 100%; min-height: 1px\")],\"CodeMirror-hscrollbar\");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,\"scroll\",(function(){r.clientHeight&&t(r.scrollTop,\"vertical\")})),fe(i,\"scroll\",(function(){i.clientWidth&&t(i.scrollLeft,\"horizontal\")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth=\"18px\")};Vr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display=\"block\",this.vert.style.bottom=t?r+\"px\":\"0\";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+\"px\"}else this.vert.style.display=\"\",this.vert.firstChild.style.height=\"0\";if(t){this.horiz.style.display=\"block\",this.horiz.style.right=n?r+\"px\":\"0\",this.horiz.style.left=e.barLeft+\"px\";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+\"px\"}else this.horiz.style.display=\"\",this.horiz.firstChild.style.width=\"0\";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Vr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,\"horiz\")},Vr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,\"vert\")},Vr.prototype.zeroWidthHack=function(){var e=y&&!d?\"12px\":\"18px\";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents=\"none\",this.disableHoriz=new V,this.disableVert=new V},Vr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents=\"auto\",t.set(1e3,(function r(){var i=e.getBoundingClientRect();(\"vert\"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents=\"none\":t.set(1e3,r)}))},Vr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Br(e,t){t||(t=jr(e));var n=e.display.barWidth,r=e.display.barHeight;zr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&xr(e),zr(e,jr(e)),n=e.display.barWidth,r=e.display.barHeight}function zr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+\"px\",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+\"px\",n.heightForcer.style.borderBottom=r.bottom+\"px solid transparent\",r.right&&r.bottom?(n.scrollbarFiller.style.display=\"block\",n.scrollbarFiller.style.height=r.bottom+\"px\",n.scrollbarFiller.style.width=r.right+\"px\"):n.scrollbarFiller.style.display=\"\",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display=\"block\",n.gutterFiller.style.height=r.bottom+\"px\",n.gutterFiller.style.width=t.gutterWidth+\"px\"):n.gutterFiller.style.display=\"\"}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Gr={native:Vr,null:Ur};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&x(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,\"mousedown\",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute(\"cm-not-content\",\"true\")}),(function(t,n){\"horizontal\"==n?Pr(e,t):Fr(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Qr=0;function Hr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Qr,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Wr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Kr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&xr(t),e.barMeasure=jr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Nn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function $r(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+\"px\",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=O(\"div\",\"​\",null,\"position: absolute;\\n top: \"+(t.top-n.viewOffset-_n(e.display))+\"px;\\n height: \"+(t.bottom-t.top+xn(e)+n.barHeight)+\"px;\\n left: \"+t.left+\"px; width: \"+Math.max(2,t.right-t.left)+\"px;\");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n=\"before\"==t.sticky?et(t.line,t.ch+1,\"before\"):t,t=t.ch?et(t.line,\"before\"==t.sticky?t.ch-1:t.ch,\"after\"):t);for(var o=0;o<5;o++){var a=!1,s=Wn(e,t),l=n&&n!=t?Wn(e,n):s,u=Or(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Fr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Pr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?ze(t.mode,r.state):null,l=ft(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!f&&pn)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Xr(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;pi(e)&&(dr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Tt&&(o=Vt(e.doc,o),a=Ut(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Gt(He(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+\"px\";var u=mr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=D();if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display=\"none\"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display=\"none\":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(d=!1),cn(e,p,c,n)),d&&(N(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(Xe(e.options,c)))),a=p.node.nextSibling}else{var h=gn(e,p,c,n);o.insertBefore(h,a)}c+=p.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=\"\"),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=D()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Nn(e))r&&(t.visible=Cr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+kn(e.display)-Cn(e),n.top)}),t.visible=Cr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;xr(e);var i=jr(e);vr(e),Br(e,i),ci(e,i),t.force=!1}t.signal(e,\"update\",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,\"viewportChange\",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new oi(e,t);if(ai(e,n)){xr(e),si(e,n);var r=jr(e);vr(e),Br(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+\"px\",ln(e,\"gutterChanged\",e)}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+\"px\",e.display.heightForcer.style.top=t.docHeight+\"px\",e.display.gutters.style.height=t.docHeight+e.display.barHeight+xn(e)+\"px\"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+\"px\",a=0;as.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&l)e:for(var p=t.target,d=a.view;p!=s;p=p.parentNode)for(var h=0;h=0&&tt(e,r.to())<=0)return n}return-1};var _i=function(e,t){this.anchor=e,this.head=t};function ki(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=U(t,i);for(var o=1;o0:l>=0){var u=ot(s.from(),a.from()),c=it(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new _i(f?c:u,f?u:c))}}return new Ti(t,n)}function Si(e,t){return new Ti([new _i(e,t||e)],0)}function xi(e){return e.text?et(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ni(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return xi(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=xi(t).ch-t.to.ch),et(n,r)}function Ci(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}ln(e,\"change\",e,t)}function Mi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||\"*\"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Vi(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}(i,i.lastOp==r)))a=Z(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=xi(t):o.changes.push(ji(e,t));else{var l=Z(i.done);for(l&&l.ranges||zi(e.sel,i.done),o={changes:[ji(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,\"historyAdded\")}function Bi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return\"*\"==i||\"+\"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Z(i.done),t))?i.done[i.done.length-1]=t:zi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Vi(i.undone)}function zi(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Gi(e,t,n,r){var i=t[\"spans_\"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t[\"spans_\"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n-1&&(Z(s)[f]=u[f],delete u[f])}}}return r}function Wi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new _i(i,t)}return new _i(n||t,t)}function Zi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Xi(e,new Ti([Wi(e.sel.primary(),t,n,i)],0),r)}function Ki(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(he(l,\"beforeCursorEnter\"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),p=void 0;if((r<0?c:u)&&(f=ao(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=tt(f,n))&&(r<0?p<0:p>0))return io(e,f,t,r,i)}var d=l.find(r<0?-1:1);return(r<0?u:c)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1;return io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0)||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||He(e,t.line)).text.length?t.line0)){var c=[l,1],f=tt(u.from,s.from),p=tt(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(p>0||!a.inclusiveRight&&!p)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[\"\"]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||\"\"!=t.text[0]||0!=tt(t.from,t.to)){var n=Ci(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,xt(e,t));var r=[];Mi(e,(function(e,n){n||-1!=U(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,xt(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s=\"undo\"==t?o.done:o.undone,l=\"undo\"==t?o.undone:o.done,u=0;u=0;--d){var h=p(d);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(K(e.sel.ranges,(function(e){return new _i(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:et(o,He(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=We(e,t.from,t.to),n||(n=Ci(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Ye(jt(He(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Li(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=qt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=He(e,r).stateAfter;if(i&&(!(i instanceof ut)||r+i.lookAhead1||!(this.children[0]instanceof Eo))){var s=[];this.collapse(s),this.children=[new Eo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A(\"span\",[o.replacedWith],\"CodeMirror-widget\"),r.handleMouseEvents||o.widgetNode.setAttribute(\"cm-ignore-events\",\"true\"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Pt(e,t.line,t,n,o)||t.line!=n.line&&Pt(e,n.line,t,n,o))throw new Error(\"Inserting collapsed marker partially overlapping an existing one\");Tt=!0}o.addToHistory&&Ui(e,{from:t,to:n,origin:\"markText\"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&jt(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ke(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.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)}(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Bt(e,t)&&Ke(t,0)})),o.clearOnEnter&&fe(o,\"beforeCursorEnter\",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ko,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)pr(u,c,\"text\");o.atomic&&no(u.doc),ln(u,\"markerAdded\",u,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Hr(e),ge(this,\"clear\")){var n=this.find();n&&ln(this,\"clear\",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,\"markerCleared\",e,this,r,i),t&&Wr(e),this.parent&&this.parent.clear()}},So.prototype.find=function(e,t){var n,r;null==e&&\"bookmark\"==this.type&&(e=1);for(var i=0;i=0;l--)uo(this,r[l]);s?Ji(this,s):this.cm&&Ir(this.cm)})),undo:ni((function(){fo(this,\"undo\")})),redo:ni((function(){fo(this,\"redo\")})),undoSelection:ni((function(){fo(this,\"undo\",!0)})),redoSelection:ni((function(){fo(this,\"redo\",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData(\"Text\");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),eo(t.doc,Si(n,n)),p)for(var d=0;d=0;t--)mo(e.doc,\"\",r[t].from,r[t].to,\"+delete\");Ir(e)}))}function Jo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xo(e,t,n){var r=Jo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?\"after\":\"before\")}function ea(e,t,n,r,i){if(e){\"rtl\"==t.doc.direction&&(i=-i);var o=ue(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?\"after\":\"before\";if(s.level>0||\"rtl\"==t.doc.direction){var u=Dn(t,n);a=i<0?n.text.length-1:0;var c=Ln(t,u,a).top;a=oe((function(e){return Ln(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),\"before\"==l&&(a=Jo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?\"before\":\"after\")}Go.basic={Left:\"goCharLeft\",Right:\"goCharRight\",Up:\"goLineUp\",Down:\"goLineDown\",End:\"goLineEnd\",Home:\"goLineStartSmart\",PageUp:\"goPageUp\",PageDown:\"goPageDown\",Delete:\"delCharAfter\",Backspace:\"delCharBefore\",\"Shift-Backspace\":\"delCharBefore\",Tab:\"defaultTab\",\"Shift-Tab\":\"indentAuto\",Enter:\"newlineAndIndent\",Insert:\"toggleOverwrite\",Esc:\"singleSelection\"},Go.pcDefault={\"Ctrl-A\":\"selectAll\",\"Ctrl-D\":\"deleteLine\",\"Ctrl-Z\":\"undo\",\"Shift-Ctrl-Z\":\"redo\",\"Ctrl-Y\":\"redo\",\"Ctrl-Home\":\"goDocStart\",\"Ctrl-End\":\"goDocEnd\",\"Ctrl-Up\":\"goLineUp\",\"Ctrl-Down\":\"goLineDown\",\"Ctrl-Left\":\"goGroupLeft\",\"Ctrl-Right\":\"goGroupRight\",\"Alt-Left\":\"goLineStart\",\"Alt-Right\":\"goLineEnd\",\"Ctrl-Backspace\":\"delGroupBefore\",\"Ctrl-Delete\":\"delGroupAfter\",\"Ctrl-S\":\"save\",\"Ctrl-F\":\"find\",\"Ctrl-G\":\"findNext\",\"Shift-Ctrl-G\":\"findPrev\",\"Shift-Ctrl-F\":\"replace\",\"Shift-Ctrl-R\":\"replaceAll\",\"Ctrl-[\":\"indentLess\",\"Ctrl-]\":\"indentMore\",\"Ctrl-U\":\"undoSelection\",\"Shift-Ctrl-U\":\"redoSelection\",\"Alt-U\":\"redoSelection\",fallthrough:\"basic\"},Go.emacsy={\"Ctrl-F\":\"goCharRight\",\"Ctrl-B\":\"goCharLeft\",\"Ctrl-P\":\"goLineUp\",\"Ctrl-N\":\"goLineDown\",\"Ctrl-A\":\"goLineStart\",\"Ctrl-E\":\"goLineEnd\",\"Ctrl-V\":\"goPageDown\",\"Shift-Ctrl-V\":\"goPageUp\",\"Ctrl-D\":\"delCharAfter\",\"Ctrl-H\":\"delCharBefore\",\"Alt-Backspace\":\"delWordBefore\",\"Ctrl-K\":\"killLine\",\"Ctrl-T\":\"transposeChars\",\"Ctrl-O\":\"openLine\"},Go.macDefault={\"Cmd-A\":\"selectAll\",\"Cmd-D\":\"deleteLine\",\"Cmd-Z\":\"undo\",\"Shift-Cmd-Z\":\"redo\",\"Cmd-Y\":\"redo\",\"Cmd-Home\":\"goDocStart\",\"Cmd-Up\":\"goDocStart\",\"Cmd-End\":\"goDocEnd\",\"Cmd-Down\":\"goDocEnd\",\"Alt-Left\":\"goGroupLeft\",\"Alt-Right\":\"goGroupRight\",\"Cmd-Left\":\"goLineLeft\",\"Cmd-Right\":\"goLineRight\",\"Alt-Backspace\":\"delGroupBefore\",\"Ctrl-Alt-Backspace\":\"delGroupAfter\",\"Alt-Delete\":\"delGroupAfter\",\"Cmd-S\":\"save\",\"Cmd-F\":\"find\",\"Cmd-G\":\"findNext\",\"Shift-Cmd-G\":\"findPrev\",\"Cmd-Alt-F\":\"replace\",\"Shift-Cmd-Alt-F\":\"replaceAll\",\"Cmd-[\":\"indentLess\",\"Cmd-]\":\"indentMore\",\"Cmd-Backspace\":\"delWrappedLineLeft\",\"Cmd-Delete\":\"delWrappedLineRight\",\"Cmd-U\":\"undoSelection\",\"Shift-Cmd-U\":\"redoSelection\",\"Ctrl-Up\":\"goDocStart\",\"Ctrl-Down\":\"goDocEnd\",fallthrough:[\"basic\",\"emacsy\"]},Go.default=y?Go.macDefault:Go.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor(\"anchor\"),e.getCursor(\"head\"),z)},killLine:function(e){return $o(e,(function(t){if(t.empty()){var n=He(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,\"+transpose\");else if(i.line>e.doc.first){var a=He(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,\"+transpose\"))}n.push(new _i(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Xr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,\"+input\");t=e.listSelections();for(var r=0;r-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_r(e)),de(i.wrapper.ownerDocument,\"mouseup\",u),de(i.wrapper.ownerDocument,\"mousemove\",c),de(i.scroller,\"dragstart\",f),de(i.scroller,\"drop\",u),o||(be(t),r.addNew||Zi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,fe(i.wrapper.ownerDocument,\"mouseup\",u),fe(i.wrapper.ownerDocument,\"mousemove\",c),fe(i.scroller,\"dragstart\",f),fe(i.scroller,\"drop\",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&_r(e);var i=e.display,o=e.doc;be(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new _i(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),\"rectangle\"==r.unit)r.addNew||(s=new _i(n,n)),n=ur(e,t,!0,!0),l=-1;else{var f=ga(e,n,r.unit);s=r.extend?Wi(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,Xi(o,ki(e,c.concat([s]),l),{scroll:!1,origin:\"*mouse\"})):c.length>1&&c[l].empty()&&\"char\"==r.unit&&!r.extend?(Xi(o,ki(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:\"*mouse\"}),u=o.sel):Yi(o,l,s,G):(l=0,Xi(o,new Ti([s],0),G),u=o.sel);var p=n;function d(t){if(0!=tt(p,t))if(p=t,\"rectangle\"==r.unit){for(var i=[],a=e.options.tabSize,c=j(He(o,n.line).text,n.ch,a),f=j(He(o,t.line).text,t.ch,a),d=Math.min(c,f),h=Math.max(c,f),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=He(o,m).text,y=Q(g,d,a);d==h?i.push(new _i(et(m,y),et(m,y))):g.length>y&&i.push(new _i(et(m,y),et(m,Q(g,h,a))))}i.length||i.push(new _i(n,n)),Xi(o,ki(e,u.ranges.slice(0,l).concat(i),l),{origin:\"*mouse\",scroll:!1}),e.scrollIntoView(t)}else{var b,E=s,w=ga(e,t,r.unit),T=E.anchor;tt(w.anchor,T)>0?(b=w.head,T=ot(E.from(),w.anchor)):(b=w.anchor,T=it(E.to(),w.head));var _=u.ranges.slice(0);_[l]=function(e,t){var n=t.anchor,r=t.head,i=He(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ue(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*(\"ltr\"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var p=o[u+(l?-1:0)],d=l==(1==p.level),h=d?p.from:p.to,m=d?\"after\":\"before\";return n.ch==h&&n.sticky==m?t:new _i(new et(n.line,h,m),r)}(e,new _i(st(o,T),b)),Xi(o,ki(e,_,l),G)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,a=ur(e,t,!0,\"rectangle\"==r.unit);if(a)if(0!=tt(a,p)){e.curOp.focus=D(),d(a);var s=Cr(i,o);(a.line>=s.to||a.lineh.bottom?20:0;l&&setTimeout(ei(e,(function(){m==n&&(i.scroller.scrollTop+=l,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(be(t),i.input.focus()),de(i.wrapper.ownerDocument,\"mousemove\",y),de(i.wrapper.ownerDocument,\"mouseup\",b),o.history.lastSelOrigin=null}var y=ei(e,(function(e){0!==e.buttons&&ke(e)?v(e):g(e)})),b=ei(e,g);e.state.selectingText=b,fe(i.wrapper.ownerDocument,\"mousemove\",y),fe(i.wrapper.ownerDocument,\"mouseup\",b)}(e,r,t,o)}(t,r,o,e):_e(e)==n.scroller&&be(e):2==i?(r&&Zi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?t.display.input.onContextMenu(e):_r(t)))}}function ga(e,t,n){if(\"char\"==n)return new _i(t,t);if(\"word\"==n)return e.findWordAt(t);if(\"line\"==n)return new _i(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new _i(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ge(e,n))return we(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return he(e,n,e,$e(e.doc,o),e.display.gutterSpecs[l].className,t),we(t)}}function ba(e,t){return ya(e,t,\"gutterClick\",!0)}function Ea(e,t){Tn(e.display,t)||function(e,t){return!!ge(e,\"gutterContextMenu\")&&ya(e,t,\"gutterContextMenu\",!1)}(e,t)||me(e,t,\"contextmenu\")||_||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\\s*cm-s-\\S+/g,\"\")+e.options.theme.replace(/(^|\\s)\\s*/g,\" cm-s-\"),Un(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Ta={toString:function(){return\"CodeMirror.Init\"}},_a={},ka={};function Sa(e,t,n){if(!t!=!(n&&n!=Ta)){var r=e.display.dragFunctions,i=t?fe:de;i(e.display.scroller,\"dragstart\",r.start),i(e.display.scroller,\"dragenter\",r.enter),i(e.display.scroller,\"dragover\",r.over),i(e.display.scroller,\"dragleave\",r.leave),i(e.display.scroller,\"drop\",r.drop)}}function xa(e){e.options.lineWrapping?(L(e.display.wrapper,\"CodeMirror-wrap\"),e.display.sizer.style.minWidth=\"\",e.display.sizerWidth=null):(x(e.display.wrapper,\"CodeMirror-wrap\"),Qt(e)),lr(e),fr(e),Un(e),setTimeout((function(){return Br(e)}),100)}function Na(e,t){var n=this;if(!(this instanceof Na))return new Na(e,t);this.options=t=t?P(t):{},P(_a,t,!1);var r=t.value;\"string\"==typeof r?r=new Io(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Na.inputStyles[t.inputStyle](this),o=this.display=new vi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=\" CodeMirror-wrap\"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,\"mousedown\",ei(e,va)),fe(t.scroller,\"dblclick\",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!ba(e,t)&&!Tn(e.display,t)){be(t);var r=e.findWordAt(n);Zi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),fe(t.scroller,\"contextmenu\",(function(t){return Ea(e,t)})),fe(t.input.getField(),\"contextmenu\",(function(n){t.scroller.contains(n.target)||Ea(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,\"touchstart\",(function(i){if(!me(e,i)&&!o(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,\"touchmove\",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,\"touchend\",(function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,\"page\");o=!r.prev||l(r,r.prev)?new _i(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new _i(et(a.line,0),st(e.doc,et(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),be(n)}i()})),fe(t.scroller,\"touchcancel\",i),fe(t.scroller,\"scroll\",(function(){t.scroller.clientHeight&&(Fr(e,t.scroller.scrollTop),Pr(e,t.scroller.scrollLeft,!0),he(e,\"scroll\",e))})),fe(t.scroller,\"mousewheel\",(function(t){return wi(e,t)})),fe(t.scroller,\"DOMMouseScroll\",(function(t){return wi(e,t)})),fe(t.wrapper,\"scroll\",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Te(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O(\"div\",null,\"CodeMirror-cursors CodeMirror-dragcursors\"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),C(e.display.dragCursor,r)}}(e,t),Te(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Do<100))Te(t);else if(!me(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData(\"Text\",e.getSelection()),t.dataTransfer.effectAllowed=\"copyMove\",t.dataTransfer.setDragImage&&!p)){var n=O(\"img\",null,null,\"position: fixed; left: 0; top: 0;\");n.src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Lo),leave:function(t){me(e,t)||Mo(e)}};var u=t.input.getField();fe(u,\"keyup\",(function(t){return fa.call(e,t)})),fe(u,\"keydown\",ei(e,ca)),fe(u,\"keypress\",ei(e,pa)),fe(u,\"focus\",(function(t){return kr(e,t)})),fe(u,\"blur\",(function(t){return Sr(e,t)}))}(this),Po(),Hr(this),this.curOp.forceUpdate=!0,Fi(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&kr(n)}),20):Sr(this),ka)ka.hasOwnProperty(u)&&ka[u](this,t[u],Ta);pi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n=\"prev\"}}else u=0,n=\"not\";\"prev\"==n?u=t>o.first?j(He(o,t-1).text,null,a):0:\"add\"==n?u=l+e.options.indentUnit:\"subtract\"==n?u=l-e.options.indentUnit:\"number\"==typeof n&&(u=l+n),u=Math.max(0,u);var f=\"\",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)p+=a,f+=\"\\t\";if(pa,l=Ie(t),u=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join(\"\\n\")==t){if(r.ranges.length%Aa.text.length==0){u=[];for(var c=0;c=0;p--){var d=r.ranges[p],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(He(o,m.line).text.length,m.ch+Z(l).length)):s&&Aa&&Aa.lineWise&&Aa.text.join(\"\\n\")==l.join(\"\\n\")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:u?u[p%u.length]:l,origin:i||(s?\"paste\":e.state.cutIncoming>a?\"cut\":\"+input\")};uo(e.doc,v),ln(e,\"inputRead\",e,v)}t&&!s&&Ma(e,t),Ir(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData(\"Text\");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Xr(t,(function(){return Da(t,n,0,null,\"paste\")})),!0}function Ma(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Oa(e,i.head.line,\"smart\");break}}else o.electricInput&&o.electricInput.test(He(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Oa(e,i.head.line,\"smart\"));a&&ln(e,\"electricInput\",e,i.head.line)}}}function Fa(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?function(e,t,n,r){var i=ue(t,e.doc.direction);if(!i)return Xo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky=\"before\"):n.ch<=0&&(n.ch=0,n.sticky=\"after\");var o=se(i,n.ch,n.sticky),a=i[o];if(\"ltr\"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=c.begin)){var d=f?\"before\":\"after\";return new et(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),\"before\"):new et(n.line,e,\"after\")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,u(v)))?null:m}(e.cm,s,t,n):Xo(s,t,n);if(null==a){if(o||((u=t.line+l)=e.first+e.size||(t=new et(u,t.ch,t.sticky),!(s=He(e,u)))))return!1;t=ea(i,e.cm,s,t.line,l)}else t=a;return!0}if(\"char\"==r||\"codepoint\"==r)u();else if(\"column\"==r)u(!0);else if(\"word\"==r||\"group\"==r)for(var c=null,f=\"group\"==r,p=e.cm&&e.cm.getHelper(t,\"wordChars\"),d=!0;!(n<0)||u(!d);d=!1){var h=s.text.charAt(t.ch)||\"\\n\",m=ee(h,p)?\"w\":f&&\"\\n\"==h?\"n\":!f||/\\s/.test(h)?null:\"p\";if(!f||d||m||(m=\"s\"),c&&c!=m){n<0&&(n=1,u(),t.sticky=\"after\");break}if(m&&(c=m),n>0&&!u(!d))break}var v=oo(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Va(e,t,n,r){var i,o,a=e.doc,s=t.left;if(\"page\"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else\"line\"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Yn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(e,t){var n=In(e,t.line);if(!n||n.hidden)return null;var r=He(e.doc,t.line),i=On(n,r,t.line),o=ue(r,e.doc.direction),a=\"left\";o&&(a=se(o,t.ch)%2?\"right\":\"left\");var s=Rn(i.map,t.ch,a);return s.offset=\"right\"==s.collapse?s.end:s.start,s}function za(e,t){return t&&(e.bad=!0),e}function Ga(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return za(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ba(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=et(a.line-1,He(r.doc,a.line-1).length)),s.ch==He(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Ye(i.view[0].line),n=i.view[0].node):(t=Ye(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=cr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Ye(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o=\"\",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute(\"cm-text\");if(n)return void c(n);var o,p=t.getAttribute(\"cm-marker\");if(p){var d=e.findMarks(et(r,0),et(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&c(We(e.doc,o.from,o.to).join(s)))}if(\"false\"==t.getAttribute(\"contenteditable\"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m1&&p.length>1;)if(Z(f)==Z(p))f.pop(),p.pop(),l--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,m=f[0],v=p[0],g=Math.min(m.length,v.length);da.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)d--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\\u200b+/,\"\"),f[0]=f[0].slice(d).replace(/\\u200b+$/,\"\");var w=et(t,d),T=et(l,p.length?Z(p).length-h:0);return f.length>1||f[0]||tt(w,T)?(mo(r.doc,f,w,T,\"+input\"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Xr(this.cm,(function(){return fr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable=\"false\"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Da)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(\"nocursor\"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var Qa=function(e){this.cm=e,this.prevInput=\"\",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Qa.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Fa(r);Ia({lineWise:!0,text:t.text}),\"cut\"==e.type?r.setSelections(t.ranges,null,z):(n.prevInput=\"\",i.value=t.text.join(\"\\n\"),F(i))}\"cut\"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width=\"0px\"),fe(i,\"input\",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,\"paste\",(function(e){me(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,\"cut\",o),fe(i,\"copy\",o),fe(e.scroller,\"paste\",(function(t){if(!Tn(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event(\"paste\");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,\"selectstart\",(function(t){Tn(e,t)||be(t)})),fe(i,\"compositionstart\",(function(){var e=r.getCursor(\"from\");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor(\"to\"),{className:\"CodeMirror-composing\"})}})),fe(i,\"compositionend\",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Qa.prototype.createField=function(e){this.wrapper=Pa(),this.textarea=this.wrapper.firstChild},Qa.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute(\"aria-label\",e):this.textarea.removeAttribute(\"aria-label\")},Qa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Wn(e,n.sel.primary().head,\"div\"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Qa.prototype.showSelection=function(e){var t=this.cm.display;C(t.cursorDiv,e.cursors),C(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+\"px\",this.wrapper.style.left=e.teLeft+\"px\")},Qa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput=\"\";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value=\"\",a&&s>=9&&(this.hasSelection=null))}},Qa.prototype.getField=function(){return this.textarea},Qa.prototype.supportsTouch=function(){return!1},Qa.prototype.focus=function(){if(\"nocursor\"!=this.cm.options.readOnly&&(!g||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},Qa.prototype.blur=function(){this.textarea.blur()},Qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qa.prototype.receivedFocus=function(){this.slowPoll()},Qa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Qa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Qa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\\uf700-\\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=\"​\"),8666==o)return this.reset(),this.cm.execCommand(\"undo\")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf(\"\\n\")>-1?n.value=e.prevInput=\"\":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor(\"to\"),{className:\"CodeMirror-composing\"}))})),!0},Qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Qa.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Xi)(n.doc,Si(o),z);var c,p=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText=\"position: static\",i.style.cssText=\"position: absolute; width: 30px; height: 30px;\\n top: \"+(e.clientY-h.top-5)+\"px; left: \"+(e.clientX-h.left-5)+\"px;\\n z-index: 1000; background: \"+(a?\"rgba(255, 255, 255, .05)\":\"transparent\")+\";\\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);\",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=\" \"),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),_){Te(e);var m=function(){de(window,\"mouseup\",m),setTimeout(g,20)};fe(window,\"mouseup\",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=\"​\"+(e?i.value:\"\");i.value=\"⇚\",i.value=o,t.prevInput=e?\"\":\"​\",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&\"​\"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Qa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=\"nocursor\"==e,this.textarea.readOnly=!!e},Qa.prototype.setUneditable=function(){},Qa.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ta&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ta,n(\"value\",\"\",(function(e,t){return e.setValue(t)}),!0),n(\"mode\",null,(function(e,t){e.doc.modeOption=t,Ai(e)}),!0),n(\"indentUnit\",2,Ai,!0),n(\"indentWithTabs\",!1),n(\"smartIndent\",!0),n(\"tabSize\",4,(function(e){Ii(e),Un(e),fr(e)}),!0),n(\"lineSeparator\",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n(\"specialChars\",/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b\\u200e\\u200f\\u2028\\u2029\\ufeff\\ufff9-\\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test(\"\\t\")?\"\":\"|\\t\"),\"g\"),n!=Ta&&e.refresh()})),n(\"specialCharPlaceholder\",Jt,(function(e){return e.refresh()}),!0),n(\"electricChars\",!0),n(\"inputStyle\",g?\"contenteditable\":\"textarea\",(function(){throw new Error(\"inputStyle can not (yet) be changed in a running editor\")}),!0),n(\"spellcheck\",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n(\"autocorrect\",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n(\"autocapitalize\",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n(\"rtlMoveVisually\",!E),n(\"wholeLineUpdateBefore\",!0),n(\"theme\",\"default\",(function(e){wa(e),mi(e)}),!0),n(\"keyMap\",\"default\",(function(e,t,n){var r=Yo(t),i=n!=Ta&&Yo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n(\"extraKeys\",null),n(\"configureMouse\",null),n(\"lineWrapping\",!1,xa,!0),n(\"gutters\",[],(function(e,t){e.display.gutterSpecs=di(t,e.options.lineNumbers),mi(e)}),!0),n(\"fixedGutter\",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+\"px\":\"0\",e.refresh()}),!0),n(\"coverGutterNextToScrollbar\",!1,(function(e){return Br(e)}),!0),n(\"scrollbarStyle\",\"native\",(function(e){qr(e),Br(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n(\"lineNumbers\",!1,(function(e,t){e.display.gutterSpecs=di(e.options.gutters,t),mi(e)}),!0),n(\"firstLineNumber\",1,mi,!0),n(\"lineNumberFormatter\",(function(e){return e}),mi,!0),n(\"showCursorWhenSelecting\",!1,vr,!0),n(\"resetSelectionOnContextMenu\",!0),n(\"lineWiseCopyCut\",!0),n(\"pasteLinesPerSelection\",!0),n(\"selectionsMayTouch\",!1),n(\"readOnly\",!1,(function(e,t){\"nocursor\"==t&&(Sr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n(\"screenReaderLabel\",null,(function(e,t){t=\"\"===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n(\"disableInput\",!1,(function(e,t){t||e.display.input.reset()}),!0),n(\"dragDrop\",!0,Sa),n(\"allowDropFileTypes\",null),n(\"cursorBlinkRate\",530),n(\"cursorScrollMargin\",0),n(\"cursorHeight\",1,vr,!0),n(\"singleCursorHeightPerLine\",!0,vr,!0),n(\"workTime\",100),n(\"workDelay\",100),n(\"flattenSpans\",!0,Ii,!0),n(\"addModeClass\",!1,Ii,!0),n(\"pollInterval\",100),n(\"undoDepth\",200,(function(e,t){return e.doc.history.undoDepth=t})),n(\"historyEventDelay\",1250),n(\"viewportMargin\",10,(function(e){return e.refresh()}),!0),n(\"maxHighlightLength\",1e4,Ii,!0),n(\"moveInputWithCursor\",!0,(function(e,t){t||e.display.input.resetPosition()})),n(\"tabindex\",null,(function(e,t){return e.display.input.getField().tabIndex=t||\"\"})),n(\"autofocus\",null),n(\"direction\",\"ltr\",(function(e,t){return e.doc.setDirection(t)}),!0),n(\"phrases\",null)}(Na),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&\"mode\"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,\"optionChange\",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?\"push\":\"unshift\"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Oa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ir(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Yi(this.doc,r,new _i(o,u[r].to()),z)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=pt(this,He(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=He(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||\"page\",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=Wn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position=\"absolute\",t.setAttribute(\"cm-ignore-events\",\"true\"),this.display.input.setUneditable(t),l.sizer.appendChild(t),\"over\"==r)u=e.top;else if(\"above\"==r||\"near\"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),p=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);(\"above\"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>p&&(c=p-t.offsetWidth)}t.style.top=u+\"px\",t.style.left=t.style.right=\"\",\"right\"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right=\"0px\"):(\"left\"==i?c=0:\"middle\"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+\"px\"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Or(o,a)).scrollTop&&Fr(o,s.scrollTop),null!=s.scrollLeft&&Pr(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(pa),triggerOnKeyUp:fa,triggerOnMouseDown:ti(va),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ma(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&lr(this),he(this,\"refresh\",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Fi(this,e),Un(this),this.display.input.reset(),Dr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,\"swapDoc\",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Na);var Ha=\"iter insert remove copy getEditor constructor\".split(\" \");for(var Wa in Io.prototype)Io.prototype.hasOwnProperty(Wa)&&U(Ha,Wa)<0&&(Na.prototype[Wa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Io.prototype[Wa]));return ye(Io),Na.inputStyles={textarea:Qa,contenteditable:Ua},Na.defineMode=function(e){Na.defaults.mode||\"null\"==e||(Na.defaults.mode=e),Pe.apply(this,arguments)},Na.defineMIME=function(e,t){Re[e]=t},Na.defineMode(\"null\",(function(){return{token:function(e){return e.skipToEnd()}}})),Na.defineMIME(\"text/plain\",\"null\"),Na.defineExtension=function(e,t){Na.prototype[e]=t},Na.defineDocExtension=function(e,t){Io.prototype[e]=t},Na.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute(\"autofocus\")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,\"submit\",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display=\"\",e.form&&(de(e.form,\"submit\",r),t.leaveSubmitMethodAlone||\"function\"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display=\"none\";var s=Na((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=fe,e.wheelEventPixels=Ei,e.Doc=Io,e.splitLines=Ie,e.countColumn=j,e.findColumn=Q,e.isWordChar=X,e.Pass=B,e.signal=he,e.Line=Ht,e.changeEnd=xi,e.scrollbarModel=Gr,e.Pos=et,e.cmpPos=tt,e.modes=Fe,e.mimeModes=Re,e.resolveMode=je,e.getMode=Ve,e.modeExtensions=Ue,e.extendMode=Be,e.copyState=ze,e.startState=qe,e.innerMode=Ge,e.commands=ta,e.keyMap=Go,e.keyName=Ko,e.isModifierKey=Wo,e.lookupKey=Ho,e.normalizeKeyMap=Qo,e.StringStream=Qe,e.SharedTextMarker=No,e.TextMarker=So,e.LineWidget=To,e.e_preventDefault=be,e.e_stopPropagation=Ee,e.e_stop=Te,e.addClass=L,e.contains=I,e.rmClass=x,e.keyNames=Vo}(Na),Na.version=\"5.62.0\",Na}()},4864:(e,t,n)=>{!function(e){\"use strict\";e.defineMode(\"javascript\",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\\w$\\xa1-\\uffff]/,p=function(){function e(e){return{type:e,style:\"keyword\"}}var t=e(\"keyword a\"),n=e(\"keyword b\"),r=e(\"keyword c\"),i=e(\"keyword d\"),o=e(\"operator\"),a={type:\"atom\",style:\"atom\"};return{if:e(\"if\"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e(\"new\"),delete:r,void:r,throw:r,debugger:e(\"debugger\"),var:e(\"var\"),const:e(\"var\"),let:e(\"var\"),function:e(\"function\"),catch:e(\"catch\"),for:e(\"for\"),switch:e(\"switch\"),case:e(\"case\"),default:e(\"default\"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e(\"this\"),class:e(\"class\"),super:e(\"atom\"),yield:r,export:e(\"export\"),import:e(\"import\"),extends:r,await:r}}(),d=/[+\\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)\"/;function m(e,t,n){return r=e,i=n,t}function v(e,t){var n,r=e.next();if('\"'==r||\"'\"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&\"@\"==e.peek()&&e.match(h))return t.tokenize=v,m(\"jsonld-keyword\",\"meta\");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&\"\\\\\"==r;return i||(t.tokenize=v),m(\"string\",\"string\")}),t.tokenize(e,t);if(\".\"==r&&e.match(/^\\d[\\d_]*(?:[eE][+\\-]?[\\d_]+)?/))return m(\"number\",\"number\");if(\".\"==r&&e.match(\"..\"))return m(\"spread\",\"meta\");if(/[\\[\\]{}\\(\\),;\\:\\.]/.test(r))return m(r);if(\"=\"==r&&e.eat(\">\"))return m(\"=>\",\"operator\");if(\"0\"==r&&e.match(/^(?:x[\\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m(\"number\",\"number\");if(/\\d/.test(r))return e.match(/^[\\d_]*(?:n|(?:\\.[\\d_]*)?(?:[eE][+\\-]?[\\d_]+)?)?/),m(\"number\",\"number\");if(\"/\"==r)return e.eat(\"*\")?(t.tokenize=g,g(e,t)):e.eat(\"/\")?(e.skipToEnd(),m(\"comment\",\"comment\")):Xe(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if(\"/\"==t&&!r)return;\"[\"==t?r=!0:r&&\"]\"==t&&(r=!1)}n=!n&&\"\\\\\"==t}}(e),e.match(/^\\b(([gimyus])(?![gimyus]*\\2))+\\b/),m(\"regexp\",\"string-2\")):(e.eat(\"=\"),m(\"operator\",\"operator\",e.current()));if(\"`\"==r)return t.tokenize=y,y(e,t);if(\"#\"==r&&\"!\"==e.peek())return e.skipToEnd(),m(\"meta\",\"meta\");if(\"#\"==r&&e.eatWhile(f))return m(\"variable\",\"property\");if(\"<\"==r&&e.match(\"!--\")||\"-\"==r&&e.match(\"->\")&&!/\\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m(\"comment\",\"comment\");if(d.test(r))return\">\"==r&&t.lexical&&\">\"==t.lexical.type||(e.eat(\"=\")?\"!\"!=r&&\"=\"!=r||e.eat(\"=\"):/[<>*+\\-|&?]/.test(r)&&(e.eat(r),\">\"==r&&e.eat(r))),\"?\"==r&&e.eat(\".\")?m(\".\"):m(\"operator\",\"operator\",e.current());if(f.test(r)){e.eatWhile(f);var i=e.current();if(\".\"!=t.lastType){if(p.propertyIsEnumerable(i)){var o=p[i];return m(o.type,o.style,i)}if(\"async\"==i&&e.match(/^(\\s|\\/\\*([^*]|\\*(?!\\/))*?\\*\\/)*[\\[\\(\\w]/,!1))return m(\"async\",\"keyword\",i)}return m(\"variable\",\"variable\",i)}}function g(e,t){for(var n,r=!1;n=e.next();){if(\"/\"==n&&r){t.tokenize=v;break}r=\"*\"==n}return m(\"comment\",\"comment\")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&(\"`\"==n||\"$\"==n&&e.eat(\"{\"))){t.tokenize=v;break}r=!r&&\"\\\\\"==n}return m(\"quasi\",\"string-2\",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf(\"=>\",e.start);if(!(n<0)){if(c){var r=/:\\s*(?:\\w+(?:<[^>]*>|\\[\\])?|\\{[^}]*\\})\\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=\"([{}])\".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){\"(\"==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/[\"'\\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&\"\\\\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var E={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,\"jsonld-keyword\":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function T(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function _(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty(\"align\")||(e.lexical.align=!0);;)if((o.length?o.pop():l?z:U)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:\"variable\"==n&&T(e,r)?\"variable-2\":t}}var k={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function x(){return S.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function C(e){var t=k.state;if(k.marked=\"def\",u){if(t.context)if(\"var\"==t.lexical.info&&t.context&&t.context.block){var r=O(e,t.context);if(null!=r)return void(t.context=r)}else if(!N(e,t.localVars))return void(t.localVars=new D(e,t.localVars));n.globalVars&&!N(e,t.globalVars)&&(t.globalVars=new D(e,t.globalVars))}}function O(e,t){if(t){if(t.block){var n=O(e,t.prev);return n?n==t.prev?t:new I(n,t.vars,!0):null}return N(e,t.vars)?t:new I(t.prev,new D(e,t.vars),!1)}return null}function A(e){return\"public\"==e||\"private\"==e||\"protected\"==e||\"abstract\"==e||\"readonly\"==e}function I(e,t,n){this.prev=e,this.vars=t,this.block=n}function D(e,t){this.name=e,this.next=t}var L=new D(\"this\",new D(\"arguments\",null));function M(){k.state.context=new I(k.state.context,k.state.localVars,!1),k.state.localVars=L}function F(){k.state.context=new I(k.state.context,k.state.localVars,!0),k.state.localVars=null}function R(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function P(e,t){var n=function(){var n=k.state,r=n.indented;if(\"stat\"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&\")\"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=k.state;e.lexical.prev&&(\")\"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?x():\";\"==e||\"}\"==n||\")\"==n||\"]\"==n?S():x(t)}}function U(e,t){return\"var\"==e?x(P(\"vardef\",t),ke,V(\";\"),j):\"keyword a\"==e?x(P(\"form\"),q,U,j):\"keyword b\"==e?x(P(\"form\"),U,j):\"keyword d\"==e?k.stream.match(/^\\s*$/,!1)?x():x(P(\"stat\"),H,V(\";\"),j):\"debugger\"==e?x(V(\";\")):\"{\"==e?x(P(\"}\"),F,le,j,R):\";\"==e?x():\"if\"==e?(\"else\"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==j&&k.state.cc.pop()(),x(P(\"form\"),q,U,j,Ae)):\"function\"==e?x(Me):\"for\"==e?x(P(\"form\"),F,Ie,U,R,j):\"class\"==e||c&&\"interface\"==t?(k.marked=\"keyword\",x(P(\"form\",\"class\"==e?e:t),Ve,j)):\"variable\"==e?c&&\"declare\"==t?(k.marked=\"keyword\",x(U)):c&&(\"module\"==t||\"enum\"==t||\"type\"==t)&&k.stream.match(/^\\s*\\w/,!1)?(k.marked=\"keyword\",\"enum\"==t?x($e):\"type\"==t?x(Re,V(\"operator\"),de,V(\";\")):x(P(\"form\"),Se,V(\"{\"),P(\"}\"),le,j,j)):c&&\"namespace\"==t?(k.marked=\"keyword\",x(P(\"form\"),z,U,j)):c&&\"abstract\"==t?(k.marked=\"keyword\",x(U)):x(P(\"stat\"),te):\"switch\"==e?x(P(\"form\"),q,V(\"{\"),P(\"}\",\"switch\"),F,le,j,j,R):\"case\"==e?x(z,V(\":\")):\"default\"==e?x(V(\":\")):\"catch\"==e?x(P(\"form\"),M,B,U,j,R):\"export\"==e?x(P(\"stat\"),Ge,j):\"import\"==e?x(P(\"stat\"),Qe,j):\"async\"==e?x(U):\"@\"==t?x(z,U):S(P(\"stat\"),z,V(\";\"),j)}function B(e){if(\"(\"==e)return x(Pe,V(\")\"))}function z(e,t){return Q(e,t,!1)}function G(e,t){return Q(e,t,!0)}function q(e){return\"(\"!=e?S():x(P(\")\"),H,V(\")\"),j)}function Q(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?J:$;if(\"(\"==e)return x(M,P(\")\"),ae(Pe,\")\"),j,V(\"=>\"),r,R);if(\"variable\"==e)return S(M,Se,V(\"=>\"),r,R)}var i=n?Z:W;return E.hasOwnProperty(e)?x(i):\"function\"==e?x(Me,i):\"class\"==e||c&&\"interface\"==t?(k.marked=\"keyword\",x(P(\"form\"),je,j)):\"keyword c\"==e||\"async\"==e?x(n?G:z):\"(\"==e?x(P(\")\"),H,V(\")\"),j,i):\"operator\"==e||\"spread\"==e?x(n?G:z):\"[\"==e?x(P(\"]\"),Ye,j,i):\"{\"==e?se(re,\"}\",null,i):\"quasi\"==e?S(K,i):\"new\"==e?x(function(e){return function(t){return\".\"==t?x(e?ee:X):\"variable\"==t&&c?x(we,e?Z:W):S(e?G:z)}}(n)):x()}function H(e){return e.match(/[;\\}\\)\\],]/)?S():S(z)}function W(e,t){return\",\"==e?x(H):Z(e,t,!1)}function Z(e,t,n){var r=0==n?W:Z,i=0==n?z:G;return\"=>\"==e?x(M,n?J:$,R):\"operator\"==e?/\\+\\+|--/.test(t)||c&&\"!\"==t?x(r):c&&\"<\"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\\s*\\(/,!1)?x(P(\">\"),ae(de,\">\"),j,r):\"?\"==t?x(z,V(\":\"),i):x(i):\"quasi\"==e?S(K,r):\";\"!=e?\"(\"==e?se(G,\")\",\"call\",r):\".\"==e?x(ne,r):\"[\"==e?x(P(\"]\"),H,V(\"]\"),j,r):c&&\"as\"==t?(k.marked=\"keyword\",x(de,r)):\"regexp\"==e?(k.state.lastType=k.marked=\"operator\",k.stream.backUp(k.stream.pos-k.stream.start-1),x(i)):void 0:void 0}function K(e,t){return\"quasi\"!=e?S():\"${\"!=t.slice(t.length-2)?x(K):x(H,Y)}function Y(e){if(\"}\"==e)return k.marked=\"string-2\",k.state.tokenize=y,x(K)}function $(e){return b(k.stream,k.state),S(\"{\"==e?U:z)}function J(e){return b(k.stream,k.state),S(\"{\"==e?U:G)}function X(e,t){if(\"target\"==t)return k.marked=\"keyword\",x(W)}function ee(e,t){if(\"target\"==t)return k.marked=\"keyword\",x(Z)}function te(e){return\":\"==e?x(j,U):S(W,V(\";\"),j)}function ne(e){if(\"variable\"==e)return k.marked=\"property\",x()}function re(e,t){return\"async\"==e?(k.marked=\"property\",x(re)):\"variable\"==e||\"keyword\"==k.style?(k.marked=\"property\",\"get\"==t||\"set\"==t?x(ie):(c&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\\s*:\\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),x(oe))):\"number\"==e||\"string\"==e?(k.marked=s?\"property\":k.style+\" property\",x(oe)):\"jsonld-keyword\"==e?x(oe):c&&A(t)?(k.marked=\"keyword\",x(re)):\"[\"==e?x(z,ue,V(\"]\"),oe):\"spread\"==e?x(G,oe):\"*\"==t?(k.marked=\"keyword\",x(re)):\":\"==e?S(oe):void 0;var n}function ie(e){return\"variable\"!=e?S(oe):(k.marked=\"property\",x(Me))}function oe(e){return\":\"==e?x(G):\"(\"==e?S(Me):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:\",\"==i){var a=k.state.lexical;return\"call\"==a.info&&(a.pos=(a.pos||0)+1),x((function(n,r){return n==t||r==t?S():S(e)}),r)}return i==t||o==t?x():n&&n.indexOf(\";\")>-1?S(e):x(V(t))}return function(n,i){return n==t||i==t?x():S(e,r)}}function se(e,t,n){for(var r=3;r\"),de):\"quasi\"==e?S(ge,Ee):void 0}function he(e){if(\"=>\"==e)return x(de)}function me(e){return e.match(/[\\}\\)\\]]/)?x():\",\"==e||\";\"==e?x(me):S(ve,me)}function ve(e,t){return\"variable\"==e||\"keyword\"==k.style?(k.marked=\"property\",x(ve)):\"?\"==t||\"number\"==e||\"string\"==e?x(ve):\":\"==e?x(de):\"[\"==e?x(V(\"variable\"),ce,V(\"]\"),ve):\"(\"==e?S(Fe,ve):e.match(/[;\\}\\)\\],]/)?void 0:x()}function ge(e,t){return\"quasi\"!=e?S():\"${\"!=t.slice(t.length-2)?x(ge):x(de,ye)}function ye(e){if(\"}\"==e)return k.marked=\"string-2\",k.state.tokenize=y,x(ge)}function be(e,t){return\"variable\"==e&&k.stream.match(/^\\s*[?:]/,!1)||\"?\"==t?x(be):\":\"==e?x(de):\"spread\"==e?x(be):S(de)}function Ee(e,t){return\"<\"==t?x(P(\">\"),ae(de,\">\"),j,Ee):\"|\"==t||\".\"==e||\"&\"==t?x(de):\"[\"==e?x(de,V(\"]\"),Ee):\"extends\"==t||\"implements\"==t?(k.marked=\"keyword\",x(de)):\"?\"==t?x(de,V(\":\"),de):void 0}function we(e,t){if(\"<\"==t)return x(P(\">\"),ae(de,\">\"),j,Ee)}function Te(){return S(de,_e)}function _e(e,t){if(\"=\"==t)return x(de)}function ke(e,t){return\"enum\"==t?(k.marked=\"keyword\",x($e)):S(Se,ue,Ce,Oe)}function Se(e,t){return c&&A(t)?(k.marked=\"keyword\",x(Se)):\"variable\"==e?(C(t),x()):\"spread\"==e?x(Se):\"[\"==e?se(Ne,\"]\"):\"{\"==e?se(xe,\"}\"):void 0}function xe(e,t){return\"variable\"!=e||k.stream.match(/^\\s*:/,!1)?(\"variable\"==e&&(k.marked=\"property\"),\"spread\"==e?x(Se):\"}\"==e?S():\"[\"==e?x(z,V(\"]\"),V(\":\"),xe):x(V(\":\"),Se,Ce)):(C(t),x(Ce))}function Ne(){return S(Se,Ce)}function Ce(e,t){if(\"=\"==t)return x(G)}function Oe(e){if(\",\"==e)return x(ke)}function Ae(e,t){if(\"keyword b\"==e&&\"else\"==t)return x(P(\"form\",\"else\"),U,j)}function Ie(e,t){return\"await\"==t?x(Ie):\"(\"==e?x(P(\")\"),De,j):void 0}function De(e){return\"var\"==e?x(ke,Le):\"variable\"==e?x(Le):S(Le)}function Le(e,t){return\")\"==e?x():\";\"==e?x(Le):\"in\"==t||\"of\"==t?(k.marked=\"keyword\",x(z,Le)):S(z,Le)}function Me(e,t){return\"*\"==t?(k.marked=\"keyword\",x(Me)):\"variable\"==e?(C(t),x(Me)):\"(\"==e?x(M,P(\")\"),ae(Pe,\")\"),j,fe,U,R):c&&\"<\"==t?x(P(\">\"),ae(Te,\">\"),j,Me):void 0}function Fe(e,t){return\"*\"==t?(k.marked=\"keyword\",x(Fe)):\"variable\"==e?(C(t),x(Fe)):\"(\"==e?x(M,P(\")\"),ae(Pe,\")\"),j,fe,R):c&&\"<\"==t?x(P(\">\"),ae(Te,\">\"),j,Fe):void 0}function Re(e,t){return\"keyword\"==e||\"variable\"==e?(k.marked=\"type\",x(Re)):\"<\"==t?x(P(\">\"),ae(Te,\">\"),j):void 0}function Pe(e,t){return\"@\"==t&&x(z,Pe),\"spread\"==e?x(Pe):c&&A(t)?(k.marked=\"keyword\",x(Pe)):c&&\"this\"==e?x(ue,Ce):S(Se,ue,Ce)}function je(e,t){return\"variable\"==e?Ve(e,t):Ue(e,t)}function Ve(e,t){if(\"variable\"==e)return C(t),x(Ue)}function Ue(e,t){return\"<\"==t?x(P(\">\"),ae(Te,\">\"),j,Ue):\"extends\"==t||\"implements\"==t||c&&\",\"==e?(\"implements\"==t&&(k.marked=\"keyword\"),x(c?de:z,Ue)):\"{\"==e?x(P(\"}\"),Be,j):void 0}function Be(e,t){return\"async\"==e||\"variable\"==e&&(\"static\"==t||\"get\"==t||\"set\"==t||c&&A(t))&&k.stream.match(/^\\s+[\\w$\\xa1-\\uffff]/,!1)?(k.marked=\"keyword\",x(Be)):\"variable\"==e||\"keyword\"==k.style?(k.marked=\"property\",x(ze,Be)):\"number\"==e||\"string\"==e?x(ze,Be):\"[\"==e?x(z,ue,V(\"]\"),ze,Be):\"*\"==t?(k.marked=\"keyword\",x(Be)):c&&\"(\"==e?S(Fe,Be):\";\"==e||\",\"==e?x(Be):\"}\"==e?x():\"@\"==t?x(z,Be):void 0}function ze(e,t){if(\"!\"==t)return x(ze);if(\"?\"==t)return x(ze);if(\":\"==e)return x(de,Ce);if(\"=\"==t)return x(G);var n=k.state.lexical.prev;return S(n&&\"interface\"==n.info?Fe:Me)}function Ge(e,t){return\"*\"==t?(k.marked=\"keyword\",x(Ke,V(\";\"))):\"default\"==t?(k.marked=\"keyword\",x(z,V(\";\"))):\"{\"==e?x(ae(qe,\"}\"),Ke,V(\";\")):S(U)}function qe(e,t){return\"as\"==t?(k.marked=\"keyword\",x(V(\"variable\"))):\"variable\"==e?S(G,qe):void 0}function Qe(e){return\"string\"==e?x():\"(\"==e?S(z):\".\"==e?S(W):S(He,We,Ke)}function He(e,t){return\"{\"==e?se(He,\"}\"):(\"variable\"==e&&C(t),\"*\"==t&&(k.marked=\"keyword\"),x(Ze))}function We(e){if(\",\"==e)return x(He,We)}function Ze(e,t){if(\"as\"==t)return k.marked=\"keyword\",x(He)}function Ke(e,t){if(\"from\"==t)return k.marked=\"keyword\",x(z)}function Ye(e){return\"]\"==e?x():S(ae(G,\"]\"))}function $e(){return S(P(\"form\"),Se,V(\"{\"),P(\"}\"),ae(Je,\"}\"),j,j)}function Je(){return S(Se,Ce)}function Xe(e,t,n){return t.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\\[{}\\(,;:]|=>)$/.test(t.lastType)||\"quasi\"==t.lastType&&/\\{\\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return R.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:v,lastType:\"sof\",cc:[],lexical:new w((e||0)-o,0,\"block\",!1),localVars:n.localVars,context:n.localVars&&new I(null,null,!1),indented:e||0};return n.globalVars&&\"object\"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty(\"align\")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=g&&e.eatSpace())return null;var n=t.tokenize(e,t);return\"comment\"==r?n:(t.lastType=\"operator\"!=r||\"++\"!=i&&\"--\"!=i?r:\"incdec\",_(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==g||t.tokenize==y)return e.Pass;if(t.tokenize!=v)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\\s*else\\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)l=l.prev;else if(c!=Ae&&c!=R)break}for(;(\"stat\"==l.type||\"form\"==l.type)&&(\"}\"==s||(i=t.cc[t.cc.length-1])&&(i==W||i==Z)&&!/^[,\\.=+\\-*:?[\\(]/.test(r));)l=l.prev;a&&\")\"==l.type&&\"stat\"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return\"vardef\"==f?l.indented+(\"operator\"==t.lastType||\",\"==t.lastType?l.info.length+1:0):\"form\"==f&&\"{\"==s?l.indented:\"form\"==f?l.indented+o:\"stat\"==f?l.indented+(function(e,t){return\"operator\"==e.lastType||\",\"==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):\"switch\"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\\b/.test(r)?o:2*o)},electricInput:/^\\s*(?:case .*?:|default:|\\{|\\})$/,blockCommentStart:l?null:\"/*\",blockCommentEnd:l?null:\"*/\",blockCommentContinue:l?null:\" * \",lineComment:l?null:\"//\",fold:\"brace\",closeBrackets:\"()[]{}''\\\"\\\"``\",helperType:l?\"json\":\"javascript\",jsonldMode:s,jsonMode:l,expressionAllowed:Xe,skipExpression:function(t){_(t,\"atom\",\"atom\",\"true\",new e.StringStream(\"\",2,null))}}})),e.registerHelper(\"wordChars\",\"javascript\",/[\\w$]/),e.defineMIME(\"text/javascript\",\"javascript\"),e.defineMIME(\"text/ecmascript\",\"javascript\"),e.defineMIME(\"application/javascript\",\"javascript\"),e.defineMIME(\"application/x-javascript\",\"javascript\"),e.defineMIME(\"application/ecmascript\",\"javascript\"),e.defineMIME(\"application/json\",{name:\"javascript\",json:!0}),e.defineMIME(\"application/x-json\",{name:\"javascript\",json:!0}),e.defineMIME(\"application/manifest+json\",{name:\"javascript\",json:!0}),e.defineMIME(\"application/ld+json\",{name:\"javascript\",jsonld:!0}),e.defineMIME(\"text/typescript\",{name:\"javascript\",typescript:!0}),e.defineMIME(\"application/typescript\",{name:\"javascript\",typescript:!0})}(n(3326))},381:(e,t,n)=>{\"use strict\";var r=n(1706),i={\"text/plain\":\"Text\",\"text/html\":\"Url\",default:\"Text\"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement(\"span\")).textContent=e,u.style.all=\"unset\",u.style.position=\"fixed\",u.style.top=0,u.style.clip=\"rect(0, 0, 0, 0)\",u.style.whiteSpace=\"pre\",u.style.webkitUserSelect=\"text\",u.style.MozUserSelect=\"text\",u.style.msUserSelect=\"text\",u.style.userSelect=\"text\",u.addEventListener(\"copy\",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn(\"unable to use e.clipboardData\"),n&&console.warn(\"trying IE specific stuff\"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand(\"copy\"))throw new Error(\"copy command was unsuccessful\");c=!0}catch(r){n&&console.error(\"unable to copy using execCommand: \",r),n&&console.warn(\"trying IE specific stuff\");try{window.clipboardData.setData(t.format||\"text\",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error(\"unable to copy using clipboardData: \",r),n&&console.error(\"falling back to prompt\"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?\"⌘\":\"Ctrl\")+\"+C\";return e.replace(/#{\\s*key\\s*}/g,t)}(\"message\"in t?t.message:\"Copy to clipboard: #{key}, Enter\"),window.prompt(o,e)}}finally{l&&(\"function\"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},6279:function(e,t){var n=\"undefined\"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n=\"URLSearchParams\"in e,r=\"Symbol\"in e&&\"iterator\"in Symbol,i=\"FileReader\"in e&&\"Blob\"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o=\"FormData\"in e,a=\"ArrayBuffer\"in e;if(a)var s=[\"[object Int8Array]\",\"[object Uint8Array]\",\"[object Uint8ClampedArray]\",\"[object Int16Array]\",\"[object Uint16Array]\",\"[object Int32Array]\",\"[object Uint32Array]\",\"[object Float32Array]\",\"[object Float64Array]\"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if(\"string\"!=typeof e&&(e=String(e)),/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError(\"Invalid character in header field name\");return e.toLowerCase()}function c(e){return\"string\"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError(\"Already read\"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?\"string\"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText=\"\",this.headers.get(\"content-type\")||(\"string\"==typeof e?this.headers.set(\"content-type\",\"text/plain;charset=UTF-8\"):this._bodyBlob&&this._bodyBlob.type?this.headers.set(\"content-type\",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(\"content-type\",\"application/x-www-form-urlencoded;charset=UTF-8\"))},i&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error(\"could not read FormData body as blob\");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(\"GET\"===this.method||\"HEAD\"===this.method)&&i)throw new TypeError(\"Body not allowed for GET or HEAD requests\");this._initBody(i)}function E(e){var t=new FormData;return e.trim().split(\"&\").forEach((function(e){if(e){var n=e.split(\"=\"),r=n.shift().replace(/\\+/g,\" \"),i=n.join(\"=\").replace(/\\+/g,\" \");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function w(e,t){t||(t={}),this.type=\"default\",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=\"statusText\"in t?t.statusText:\"OK\",this.headers=new p(t.headers),this.url=t.url||\"\",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},g.call(b.prototype),g.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:\"\"});return e.type=\"error\",e};var T=[301,302,303,307,308];w.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError(\"Invalid status code\");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,n){return new Promise((function(r,o){var a=new b(e,n);if(a.signal&&a.signal.aborted)return o(new t.DOMException(\"Aborted\",\"AbortError\"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||\"\",t=new p,e.replace(/\\r?\\n[\\t ]+/g,\" \").split(/\\r?\\n/).forEach((function(e){var n=e.split(\":\"),r=n.shift().trim();if(r){var i=n.join(\":\").trim();t.append(r,i)}})),t)};n.url=\"responseURL\"in s?s.responseURL:n.headers.get(\"X-Request-URL\");var i=\"response\"in s?s.response:s.responseText;r(new w(i,n))},s.onerror=function(){o(new TypeError(\"Network request failed\"))},s.ontimeout=function(){o(new TypeError(\"Network request failed\"))},s.onabort=function(){o(new t.DOMException(\"Aborted\",\"AbortError\"))},s.open(a.method,a.url,!0),\"include\"===a.credentials?s.withCredentials=!0:\"omit\"===a.credentials&&(s.withCredentials=!1),\"responseType\"in s&&i&&(s.responseType=\"blob\"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener(\"abort\",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener(\"abort\",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=p,e.Request=b,e.Response=w),t.Headers=p,t.Request=b,t.Response=w,t.fetch=_,Object.defineProperty(t,\"__esModule\",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},1537:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>y});var r=n(2609),i=n.n(r),o=n(8991),a=n.n(o),s=new URL(n(6089),n.b),l=new URL(n(7735),n.b),u=new URL(n(1090),n.b),c=new URL(n(6050),n.b),f=new URL(n(6192),n.b),p=i()((function(e){return e[1]})),d=a()(s),h=a()(l),m=a()(u),v=a()(c),g=a()(f);p.push([e.id,\".graphiql-container,\\n.graphiql-container button,\\n.graphiql-container input {\\n color: #141823;\\n font-family:\\n system,\\n -apple-system,\\n 'San Francisco',\\n '.SFNSDisplay-Regular',\\n 'Segoe UI',\\n Segoe,\\n 'Segoe WP',\\n 'Helvetica Neue',\\n helvetica,\\n 'Lucida Grande',\\n arial,\\n sans-serif;\\n font-size: 14px;\\n}\\n\\n.graphiql-container {\\n display: flex;\\n flex-direction: row;\\n height: 100%;\\n margin: 0;\\n overflow: hidden;\\n width: 100%;\\n}\\n\\n.graphiql-container .editorWrap {\\n display: flex;\\n flex-direction: column;\\n flex: 1;\\n overflow-x: hidden;\\n}\\n\\n.graphiql-container .title {\\n font-size: 18px;\\n}\\n\\n.graphiql-container .title em {\\n font-family: georgia;\\n font-size: 19px;\\n}\\n\\n.graphiql-container .topBarWrap {\\n display: flex;\\n flex-direction: row;\\n}\\n\\n.graphiql-container .topBar {\\n align-items: center;\\n background: linear-gradient(#f7f7f7, #e2e2e2);\\n border-bottom: 1px solid #d0d0d0;\\n cursor: default;\\n display: flex;\\n flex-direction: row;\\n flex: 1;\\n height: 34px;\\n overflow-y: visible;\\n padding: 7px 14px 6px;\\n user-select: none;\\n}\\n\\n.graphiql-container .toolbar {\\n overflow-x: visible;\\n display: flex;\\n}\\n\\n.graphiql-container .docExplorerShow,\\n.graphiql-container .historyShow {\\n background: linear-gradient(#f7f7f7, #e2e2e2);\\n border-radius: 0;\\n border-bottom: 1px solid #d0d0d0;\\n border-right: none;\\n border-top: none;\\n color: #3B5998;\\n cursor: pointer;\\n font-size: 14px;\\n margin: 0;\\n padding: 2px 20px 0 18px;\\n}\\n\\n.graphiql-container .docExplorerShow {\\n border-left: 1px solid rgba(0, 0, 0, 0.2);\\n}\\n\\n.graphiql-container .historyShow {\\n border-right: 1px solid rgba(0, 0, 0, 0.2);\\n border-left: 0;\\n}\\n\\n.graphiql-container .docExplorerShow:before {\\n border-left: 2px solid #3B5998;\\n border-top: 2px solid #3B5998;\\n content: '';\\n display: inline-block;\\n height: 9px;\\n margin: 0 3px -1px 0;\\n position: relative;\\n transform: rotate(-45deg);\\n width: 9px;\\n}\\n\\n.graphiql-container .editorBar {\\n display: flex;\\n flex-direction: row;\\n flex: 1;\\n}\\n\\n.graphiql-container .queryWrap {\\n display: flex;\\n flex-direction: column;\\n flex: 1;\\n}\\n\\n.graphiql-container .resultWrap {\\n border-left: solid 1px #e0e0e0;\\n display: flex;\\n flex-direction: column;\\n flex: 1;\\n flex-basis: 1em;\\n position: relative;\\n}\\n\\n.graphiql-container .docExplorerWrap,\\n.graphiql-container .historyPaneWrap {\\n background: white;\\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);\\n position: relative;\\n z-index: 3;\\n}\\n\\n.graphiql-container .historyPaneWrap {\\n min-width: 230px;\\n z-index: 5;\\n}\\n\\n.graphiql-container .docExplorerResizer {\\n cursor: col-resize;\\n height: 100%;\\n left: -5px;\\n position: absolute;\\n top: 0;\\n width: 10px;\\n z-index: 10;\\n}\\n\\n.graphiql-container .docExplorerHide {\\n cursor: pointer;\\n font-size: 18px;\\n margin: -7px -8px -6px 0;\\n padding: 18px 16px 15px 12px;\\n background: 0;\\n border: 0;\\n line-height: 14px;\\n}\\n\\n.graphiql-container div .query-editor {\\n flex: 1;\\n position: relative;\\n}\\n\\n.graphiql-container .secondary-editor {\\n display: flex;\\n flex-direction: column;\\n height: 30px;\\n position: relative;\\n}\\n\\n.graphiql-container .secondary-editor-title {\\n background: #eeeeee;\\n border-bottom: 1px solid #d6d6d6;\\n border-top: 1px solid #e0e0e0;\\n color: #777;\\n font-variant: small-caps;\\n font-weight: bold;\\n letter-spacing: 1px;\\n line-height: 14px;\\n padding: 6px 0 8px 43px;\\n text-transform: lowercase;\\n user-select: none;\\n}\\n\\n.graphiql-container .codemirrorWrap {\\n flex: 1;\\n height: 100%;\\n position: relative;\\n}\\n\\n.graphiql-container .result-window {\\n flex: 1;\\n height: 100%;\\n position: relative;\\n}\\n\\n.graphiql-container .footer {\\n background: #f6f7f8;\\n border-left: 1px solid #e0e0e0;\\n border-top: 1px solid #e0e0e0;\\n margin-left: 12px;\\n position: relative;\\n}\\n\\n.graphiql-container .footer:before {\\n background: #eeeeee;\\n bottom: 0;\\n content: \\\" \\\";\\n left: -13px;\\n position: absolute;\\n top: -1px;\\n width: 12px;\\n}\\n\\n/* No `.graphiql-container` here so themes can overwrite */\\n\\n.result-window .CodeMirror {\\n background: #f6f7f8;\\n}\\n\\n.graphiql-container .result-window .CodeMirror-gutters {\\n background-color: #eeeeee;\\n border-color: #e0e0e0;\\n cursor: col-resize;\\n}\\n\\n.graphiql-container .result-window .CodeMirror-foldgutter,\\n.graphiql-container .result-window .CodeMirror-foldgutter-open:after,\\n.graphiql-container .result-window .CodeMirror-foldgutter-folded:after {\\n padding-left: 3px;\\n}\\n\\n.graphiql-container .toolbar-button {\\n background: #fdfdfd;\\n background: linear-gradient(#f9f9f9, #ececec);\\n border: 0;\\n border-radius: 3px;\\n box-shadow:\\n inset 0 0 0 1px rgba(0,0,0,0.20),\\n 0 1px 0 rgba(255,255,255, 0.7),\\n inset 0 1px #fff;\\n color: #555;\\n cursor: pointer;\\n display: inline-block;\\n margin: 0 5px;\\n padding: 3px 11px 5px;\\n text-decoration: none;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n max-width: 150px;\\n}\\n\\n.graphiql-container .toolbar-button:active {\\n background: linear-gradient(#ececec, #d5d5d5);\\n box-shadow:\\n 0 1px 0 rgba(255, 255, 255, 0.7),\\n inset 0 0 0 1px rgba(0,0,0,0.10),\\n inset 0 1px 1px 1px rgba(0, 0, 0, 0.12),\\n inset 0 0 5px rgba(0, 0, 0, 0.1);\\n}\\n\\n.graphiql-container .toolbar-button.error {\\n background: linear-gradient(#fdf3f3, #e6d6d7);\\n color: #b00;\\n}\\n\\n.graphiql-container .toolbar-button-group {\\n margin: 0 5px;\\n white-space: nowrap;\\n}\\n\\n.graphiql-container .toolbar-button-group > * {\\n margin: 0;\\n}\\n\\n.graphiql-container .toolbar-button-group > *:not(:last-child) {\\n border-top-right-radius: 0;\\n border-bottom-right-radius: 0;\\n}\\n\\n.graphiql-container .toolbar-button-group > *:not(:first-child) {\\n border-top-left-radius: 0;\\n border-bottom-left-radius: 0;\\n margin-left: -1px;\\n}\\n\\n.graphiql-container .execute-button-wrap {\\n height: 34px;\\n margin: 0 14px 0 28px;\\n position: relative;\\n}\\n\\n.graphiql-container .execute-button {\\n background: linear-gradient(#fdfdfd, #d2d3d6);\\n border-radius: 17px;\\n border: 1px solid rgba(0,0,0,0.25);\\n box-shadow: 0 1px 0 #fff;\\n cursor: pointer;\\n fill: #444;\\n height: 34px;\\n margin: 0;\\n padding: 0;\\n width: 34px;\\n}\\n\\n.graphiql-container .execute-button svg {\\n pointer-events: none;\\n}\\n\\n.graphiql-container .execute-button:active {\\n background: linear-gradient(#e6e6e6, #c3c3c3);\\n box-shadow:\\n 0 1px 0 #fff,\\n inset 0 0 2px rgba(0, 0, 0, 0.2),\\n inset 0 0 6px rgba(0, 0, 0, 0.1);\\n}\\n\\n.graphiql-container .toolbar-menu,\\n.graphiql-container .toolbar-select {\\n position: relative;\\n}\\n\\n.graphiql-container .execute-options,\\n.graphiql-container .toolbar-menu-items,\\n.graphiql-container .toolbar-select-options {\\n background: #fff;\\n box-shadow:\\n 0 0 0 1px rgba(0,0,0,0.1),\\n 0 2px 4px rgba(0,0,0,0.25);\\n margin: 0;\\n padding: 6px 0;\\n position: absolute;\\n z-index: 100;\\n}\\n\\n.graphiql-container .execute-options {\\n min-width: 100px;\\n top: 37px;\\n left: -1px;\\n}\\n\\n.graphiql-container .toolbar-menu-items {\\n left: 1px;\\n margin-top: -1px;\\n min-width: 110%;\\n top: 100%;\\n visibility: hidden;\\n}\\n\\n.graphiql-container .toolbar-menu-items.open {\\n visibility: visible;\\n}\\n\\n.graphiql-container .toolbar-select-options {\\n left: 0;\\n min-width: 100%;\\n top: -5px;\\n visibility: hidden;\\n}\\n\\n.graphiql-container .toolbar-select-options.open {\\n visibility: visible;\\n}\\n\\n.graphiql-container .execute-options > li,\\n.graphiql-container .toolbar-menu-items > li,\\n.graphiql-container .toolbar-select-options > li {\\n cursor: pointer;\\n display: block;\\n margin: none;\\n max-width: 300px;\\n overflow: hidden;\\n padding: 2px 20px 4px 11px;\\n white-space: nowrap;\\n}\\n\\n.graphiql-container .execute-options > li.selected,\\n.graphiql-container .toolbar-menu-items > li.hover,\\n.graphiql-container .toolbar-menu-items > li:active,\\n.graphiql-container .toolbar-menu-items > li:hover,\\n.graphiql-container .toolbar-select-options > li.hover,\\n.graphiql-container .toolbar-select-options > li:active,\\n.graphiql-container .toolbar-select-options > li:hover,\\n.graphiql-container .history-contents > li:hover,\\n.graphiql-container .history-contents > li:active {\\n background: #e10098;\\n color: #fff;\\n}\\n\\n.graphiql-container .toolbar-select-options > li > svg {\\n display: inline;\\n fill: #666;\\n margin: 0 -6px 0 6px;\\n pointer-events: none;\\n vertical-align: middle;\\n}\\n\\n.graphiql-container .toolbar-select-options > li.hover > svg,\\n.graphiql-container .toolbar-select-options > li:active > svg,\\n.graphiql-container .toolbar-select-options > li:hover > svg {\\n fill: #fff;\\n}\\n\\n.graphiql-container .CodeMirror-scroll {\\n overflow-scrolling: touch;\\n}\\n\\n.graphiql-container .CodeMirror {\\n color: #141823;\\n font-family:\\n 'Consolas',\\n 'Inconsolata',\\n 'Droid Sans Mono',\\n 'Monaco',\\n monospace;\\n font-size: 13px;\\n height: 100%;\\n left: 0;\\n position: absolute;\\n top: 0;\\n width: 100%;\\n}\\n\\n.graphiql-container .CodeMirror-lines {\\n padding: 20px 0;\\n}\\n\\n.CodeMirror-hint-information .content {\\n box-orient: vertical;\\n color: #141823;\\n display: flex;\\n font-family: system, -apple-system, 'San Francisco', '.SFNSDisplay-Regular', 'Segoe UI', Segoe, 'Segoe WP', 'Helvetica Neue', helvetica, 'Lucida Grande', arial, sans-serif;\\n font-size: 13px;\\n line-clamp: 3;\\n line-height: 16px;\\n max-height: 48px;\\n overflow: hidden;\\n text-overflow: -o-ellipsis-lastline;\\n}\\n\\n.CodeMirror-hint-information .content p:first-child {\\n margin-top: 0;\\n}\\n\\n.CodeMirror-hint-information .content p:last-child {\\n margin-bottom: 0;\\n}\\n\\n.CodeMirror-hint-information .infoType {\\n color: #CA9800;\\n cursor: pointer;\\n display: inline;\\n margin-right: 0.5em;\\n}\\n\\n.autoInsertedLeaf.cm-property {\\n animation-duration: 6s;\\n animation-name: insertionFade;\\n border-bottom: 2px solid rgba(255, 255, 255, 0);\\n border-radius: 2px;\\n margin: -2px -4px -1px;\\n padding: 2px 4px 1px;\\n}\\n\\n@keyframes insertionFade {\\n from, to {\\n background: rgba(255, 255, 255, 0);\\n border-color: rgba(255, 255, 255, 0);\\n }\\n\\n 15%, 85% {\\n background: #fbffc9;\\n border-color: #f0f3c0;\\n }\\n}\\n\\ndiv.CodeMirror-lint-tooltip {\\n background-color: white;\\n border-radius: 2px;\\n border: 0;\\n color: #141823;\\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\\n font-size: 13px;\\n line-height: 16px;\\n max-width: 430px;\\n opacity: 0;\\n padding: 8px 10px;\\n transition: opacity 0.15s;\\n white-space: pre-wrap;\\n}\\n\\ndiv.CodeMirror-lint-tooltip > * {\\n padding-left: 23px;\\n}\\n\\ndiv.CodeMirror-lint-tooltip > * + * {\\n margin-top: 12px;\\n}\\n\\n/* COLORS */\\n\\n.graphiql-container .CodeMirror-foldmarker {\\n border-radius: 4px;\\n background: #08f;\\n background: linear-gradient(#43A8FF, #0F83E8);\\n box-shadow:\\n 0 1px 1px rgba(0, 0, 0, 0.2),\\n inset 0 0 0 1px rgba(0, 0, 0, 0.1);\\n color: white;\\n font-family: arial;\\n font-size: 12px;\\n line-height: 0;\\n margin: 0 3px;\\n padding: 0px 4px 1px;\\n text-shadow: 0 -1px rgba(0, 0, 0, 0.1);\\n}\\n\\n.graphiql-container div.CodeMirror span.CodeMirror-matchingbracket {\\n color: #555;\\n text-decoration: underline;\\n}\\n\\n.graphiql-container div.CodeMirror span.CodeMirror-nonmatchingbracket {\\n color: #f00;\\n}\\n\\n/* Comment */\\n\\n.cm-comment {\\n color: #999;\\n}\\n\\n/* Punctuation */\\n\\n.cm-punctuation {\\n color: #555;\\n}\\n\\n/* Keyword */\\n\\n.cm-keyword {\\n color: #B11A04;\\n}\\n\\n/* OperationName, FragmentName */\\n\\n.cm-def {\\n color: #D2054E;\\n}\\n\\n/* FieldName */\\n\\n.cm-property {\\n color: #1F61A0;\\n}\\n\\n/* FieldAlias */\\n\\n.cm-qualifier {\\n color: #1C92A9;\\n}\\n\\n/* ArgumentName and ObjectFieldName */\\n\\n.cm-attribute {\\n color: #8B2BB9;\\n}\\n\\n/* Number */\\n\\n.cm-number {\\n color: #2882F9;\\n}\\n\\n/* String */\\n\\n.cm-string {\\n color: #D64292;\\n}\\n\\n/* Boolean */\\n\\n.cm-builtin {\\n color: #D47509;\\n}\\n\\n/* EnumValue */\\n\\n.cm-string-2 {\\n color: #0B7FC7;\\n}\\n\\n/* Variable */\\n\\n.cm-variable {\\n color: #397D13;\\n}\\n\\n/* Directive */\\n\\n.cm-meta {\\n color: #B33086;\\n}\\n\\n/* Type */\\n\\n.cm-atom {\\n color: #CA9800;\\n}\\n\\n/* BASICS */\\n\\n.CodeMirror {\\n /* Set height, width, borders, and global font properties here */\\n color: black;\\n font-family: monospace;\\n height: 300px;\\n}\\n\\n/* PADDING */\\n\\n.CodeMirror-lines {\\n padding: 4px 0; /* Vertical padding around content */\\n}\\n\\n.CodeMirror pre {\\n padding: 0 4px; /* Horizontal padding of content */\\n}\\n\\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\\n background-color: white; /* The little square between H and V scrollbars */\\n}\\n\\n/* GUTTER */\\n\\n.CodeMirror-gutters {\\n border-right: 1px solid #ddd;\\n background-color: #f7f7f7;\\n white-space: nowrap;\\n}\\n\\n.CodeMirror-linenumbers {}\\n\\n.CodeMirror-linenumber {\\n color: #999;\\n min-width: 20px;\\n padding: 0 3px 0 5px;\\n text-align: right;\\n white-space: nowrap;\\n}\\n\\n.CodeMirror-guttermarker { color: black; }\\n\\n.CodeMirror-guttermarker-subtle { color: #999; }\\n\\n/* CURSOR */\\n\\n.CodeMirror .CodeMirror-cursor {\\n border-left: 1px solid black;\\n}\\n\\n/* Shown when moving in bi-directional text */\\n\\n.CodeMirror div.CodeMirror-secondarycursor {\\n border-left: 1px solid silver;\\n}\\n\\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {\\n background: #7e7;\\n border: 0;\\n width: auto;\\n}\\n\\n.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {\\n z-index: 1;\\n}\\n\\n.cm-animate-fat-cursor {\\n animation: blink 1.06s steps(1) infinite;\\n border: 0;\\n width: auto;\\n}\\n\\n@keyframes blink {\\n 0% { background: #7e7; }\\n 50% { background: none; }\\n 100% { background: #7e7; }\\n}\\n\\n/* Can style cursor different in overwrite (non-insert) mode */\\n\\ndiv.CodeMirror-overwrite div.CodeMirror-cursor {}\\n\\n.cm-tab { display: inline-block; text-decoration: inherit; }\\n\\n.CodeMirror-ruler {\\n border-left: 1px solid #ccc;\\n position: absolute;\\n}\\n\\n/* DEFAULT THEME */\\n\\n.cm-s-default .cm-keyword {color: #708;}\\n\\n.cm-s-default .cm-atom {color: #219;}\\n\\n.cm-s-default .cm-number {color: #164;}\\n\\n.cm-s-default .cm-def {color: #00f;}\\n\\n.cm-s-default .cm-variable,\\n.cm-s-default .cm-punctuation,\\n.cm-s-default .cm-property,\\n.cm-s-default .cm-operator {}\\n\\n.cm-s-default .cm-variable-2 {color: #05a;}\\n\\n.cm-s-default .cm-variable-3 {color: #085;}\\n\\n.cm-s-default .cm-comment {color: #a50;}\\n\\n.cm-s-default .cm-string {color: #a11;}\\n\\n.cm-s-default .cm-string-2 {color: #f50;}\\n\\n.cm-s-default .cm-meta {color: #555;}\\n\\n.cm-s-default .cm-qualifier {color: #555;}\\n\\n.cm-s-default .cm-builtin {color: #30a;}\\n\\n.cm-s-default .cm-bracket {color: #997;}\\n\\n.cm-s-default .cm-tag {color: #170;}\\n\\n.cm-s-default .cm-attribute {color: #00c;}\\n\\n.cm-s-default .cm-header {color: blue;}\\n\\n.cm-s-default .cm-quote {color: #090;}\\n\\n.cm-s-default .cm-hr {color: #999;}\\n\\n.cm-s-default .cm-link {color: #00c;}\\n\\n.cm-negative {color: #d44;}\\n\\n.cm-positive {color: #292;}\\n\\n.cm-header, .cm-strong {font-weight: bold;}\\n\\n.cm-em {font-style: italic;}\\n\\n.cm-link {text-decoration: underline;}\\n\\n.cm-strikethrough {text-decoration: line-through;}\\n\\n.cm-s-default .cm-error {color: #f00;}\\n\\n.cm-invalidchar {color: #f00;}\\n\\n.CodeMirror-composing { border-bottom: 2px solid; }\\n\\n/* Default styles for common addons */\\n\\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}\\n\\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}\\n\\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\\n\\n.CodeMirror-activeline-background {background: #e8f2ff;}\\n\\n/* STOP */\\n\\n/* The rest of this file contains styles related to the mechanics of\\n the editor. You probably shouldn't touch them. */\\n\\n.CodeMirror {\\n background: white;\\n overflow: hidden;\\n position: relative;\\n}\\n\\n.CodeMirror-scroll {\\n height: 100%;\\n /* 30px is the magic margin used to hide the element's real scrollbars */\\n /* See overflow: hidden in .CodeMirror */\\n margin-bottom: -30px; margin-right: -30px;\\n outline: none; /* Prevent dragging from highlighting the element */\\n overflow: scroll !important; /* Things will break if this is overridden */\\n padding-bottom: 30px;\\n position: relative;\\n}\\n\\n.CodeMirror-sizer {\\n border-right: 30px solid transparent;\\n position: relative;\\n}\\n\\n/* The fake, visible scrollbars. Used to force redraw during scrolling\\n before actual scrolling happens, thus preventing shaking and\\n flickering artifacts. */\\n\\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\\n display: none;\\n position: absolute;\\n z-index: 6;\\n}\\n\\n.CodeMirror-vscrollbar {\\n overflow-x: hidden;\\n overflow-y: scroll;\\n right: 0; top: 0;\\n}\\n\\n.CodeMirror-hscrollbar {\\n bottom: 0; left: 0;\\n overflow-x: scroll;\\n overflow-y: hidden;\\n}\\n\\n.CodeMirror-scrollbar-filler {\\n right: 0; bottom: 0;\\n}\\n\\n.CodeMirror-gutter-filler {\\n left: 0; bottom: 0;\\n}\\n\\n.CodeMirror-gutters {\\n min-height: 100%;\\n position: absolute; left: 0; top: 0;\\n z-index: 3;\\n}\\n\\n.CodeMirror-gutter {\\n display: inline-block;\\n height: 100%;\\n margin-bottom: -30px;\\n vertical-align: top;\\n white-space: normal;\\n /* Hack to make IE7 behave */\\n *zoom:1;\\n *display:inline;\\n}\\n\\n.CodeMirror-gutter-wrapper {\\n background: none !important;\\n border: none !important;\\n position: absolute;\\n z-index: 4;\\n}\\n\\n.CodeMirror-gutter-background {\\n position: absolute;\\n top: 0; bottom: 0;\\n z-index: 4;\\n}\\n\\n.CodeMirror-gutter-elt {\\n cursor: default;\\n position: absolute;\\n z-index: 4;\\n}\\n\\n.CodeMirror-gutter-wrapper {\\n user-select: none;\\n}\\n\\n.CodeMirror-lines {\\n cursor: text;\\n min-height: 1px; /* prevents collapsing before first draw */\\n}\\n\\n.CodeMirror pre {\\n -webkit-tap-highlight-color: transparent;\\n /* Reset some styles that the rest of the page might have set */\\n background: transparent;\\n border-radius: 0;\\n border-width: 0;\\n color: inherit;\\n font-family: inherit;\\n font-size: inherit;\\n font-variant-ligatures: none;\\n line-height: inherit;\\n margin: 0;\\n overflow: visible;\\n position: relative;\\n white-space: pre;\\n word-wrap: normal;\\n z-index: 2;\\n}\\n\\n.CodeMirror-wrap pre {\\n word-wrap: break-word;\\n white-space: pre-wrap;\\n word-break: normal;\\n}\\n\\n.CodeMirror-linebackground {\\n position: absolute;\\n left: 0; right: 0; top: 0; bottom: 0;\\n z-index: 0;\\n}\\n\\n.CodeMirror-linewidget {\\n overflow: auto;\\n position: relative;\\n z-index: 2;\\n}\\n\\n.CodeMirror-widget {}\\n\\n.CodeMirror-code {\\n outline: none;\\n}\\n\\n/* Force content-box sizing for the elements where we expect it */\\n\\n.CodeMirror-scroll,\\n.CodeMirror-sizer,\\n.CodeMirror-gutter,\\n.CodeMirror-gutters,\\n.CodeMirror-linenumber {\\n box-sizing: content-box;\\n}\\n\\n.CodeMirror-measure {\\n height: 0;\\n overflow: hidden;\\n position: absolute;\\n visibility: hidden;\\n width: 100%;\\n}\\n\\n.CodeMirror-cursor { position: absolute; }\\n\\n.CodeMirror-measure pre { position: static; }\\n\\ndiv.CodeMirror-cursors {\\n position: relative;\\n visibility: hidden;\\n z-index: 3;\\n}\\n\\ndiv.CodeMirror-dragcursors {\\n visibility: visible;\\n}\\n\\n.CodeMirror-focused div.CodeMirror-cursors {\\n visibility: visible;\\n}\\n\\n.CodeMirror-selected { background: #d9d9d9; }\\n\\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\\n\\n.CodeMirror-crosshair { cursor: crosshair; }\\n\\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\\n\\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\\n\\n.cm-searching {\\n background: #ffa;\\n background: rgba(255, 255, 0, .4);\\n}\\n\\n/* IE7 hack to prevent it from returning funny offsetTops on the spans */\\n\\n.CodeMirror span { *vertical-align: text-bottom; }\\n\\n/* Used to force a border model for a node */\\n\\n.cm-force-border { padding-right: .1px; }\\n\\n@media print {\\n /* Hide the cursor when printing */\\n .CodeMirror div.CodeMirror-cursors {\\n visibility: hidden;\\n }\\n}\\n\\n/* See issue #2901 */\\n\\n.cm-tab-wrap-hack:after { content: ''; }\\n\\n/* Help users use markselection to safely style text background */\\n\\nspan.CodeMirror-selectedtext { background: none; }\\n\\n.CodeMirror-dialog {\\n background: inherit;\\n color: inherit;\\n left: 0; right: 0;\\n overflow: hidden;\\n padding: .1em .8em;\\n position: absolute;\\n z-index: 15;\\n}\\n\\n.CodeMirror-dialog-top {\\n border-bottom: 1px solid #eee;\\n top: 0;\\n}\\n\\n.CodeMirror-dialog-bottom {\\n border-top: 1px solid #eee;\\n bottom: 0;\\n}\\n\\n.CodeMirror-dialog input {\\n background: transparent;\\n border: 1px solid #d3d6db;\\n color: inherit;\\n font-family: monospace;\\n outline: none;\\n width: 20em;\\n}\\n\\n.CodeMirror-dialog button {\\n font-size: 70%;\\n}\\n\\n.CodeMirror-foldmarker {\\n color: blue;\\n cursor: pointer;\\n font-family: arial;\\n line-height: .3;\\n text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\\n}\\n.CodeMirror-foldgutter {\\n width: .7em;\\n}\\n.CodeMirror-foldgutter-open,\\n.CodeMirror-foldgutter-folded {\\n cursor: pointer;\\n}\\n.CodeMirror-foldgutter-open:after {\\n content: \\\"\\\\25BE\\\";\\n}\\n.CodeMirror-foldgutter-folded:after {\\n content: \\\"\\\\25B8\\\";\\n}\\n\\n.CodeMirror-info {\\n background: white;\\n border-radius: 2px;\\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\\n box-sizing: border-box;\\n color: #555;\\n font-family:\\n system,\\n -apple-system,\\n 'San Francisco',\\n '.SFNSDisplay-Regular',\\n 'Segoe UI',\\n Segoe,\\n 'Segoe WP',\\n 'Helvetica Neue',\\n helvetica,\\n 'Lucida Grande',\\n arial,\\n sans-serif;\\n font-size: 13px;\\n line-height: 16px;\\n margin: 8px -8px;\\n max-width: 400px;\\n opacity: 0;\\n overflow: hidden;\\n padding: 8px 8px;\\n position: fixed;\\n transition: opacity 0.15s;\\n z-index: 50;\\n}\\n\\n.CodeMirror-info :first-child {\\n margin-top: 0;\\n}\\n\\n.CodeMirror-info :last-child {\\n margin-bottom: 0;\\n}\\n\\n.CodeMirror-info p {\\n margin: 1em 0;\\n}\\n\\n.CodeMirror-info .info-description {\\n color: #777;\\n line-height: 16px;\\n margin-top: 1em;\\n max-height: 80px;\\n overflow: hidden;\\n}\\n\\n.CodeMirror-info .info-deprecation {\\n background: #fffae8;\\n box-shadow: inset 0 1px 1px -1px #bfb063;\\n color: #867F70;\\n line-height: 16px;\\n margin: -8px;\\n margin-top: 8px;\\n max-height: 80px;\\n overflow: hidden;\\n padding: 8px;\\n}\\n\\n.CodeMirror-info .info-deprecation-label {\\n color: #c79b2e;\\n cursor: default;\\n display: block;\\n font-size: 9px;\\n font-weight: bold;\\n letter-spacing: 1px;\\n line-height: 1;\\n padding-bottom: 5px;\\n text-transform: uppercase;\\n user-select: none;\\n}\\n\\n.CodeMirror-info .info-deprecation-label + * {\\n margin-top: 0;\\n}\\n\\n.CodeMirror-info a {\\n text-decoration: none;\\n}\\n\\n.CodeMirror-info a:hover {\\n text-decoration: underline;\\n}\\n\\n.CodeMirror-info .type-name {\\n color: #CA9800;\\n}\\n\\n.CodeMirror-info .field-name {\\n color: #1F61A0;\\n}\\n\\n.CodeMirror-info .enum-value {\\n color: #0B7FC7;\\n}\\n\\n.CodeMirror-info .arg-name {\\n color: #8B2BB9;\\n}\\n\\n.CodeMirror-info .directive-name {\\n color: #B33086;\\n}\\n\\n.CodeMirror-jump-token {\\n text-decoration: underline;\\n cursor: pointer;\\n}\\n\\n/* The lint marker gutter */\\n.CodeMirror-lint-markers {\\n width: 16px;\\n}\\n.CodeMirror-lint-tooltip {\\n background-color: infobackground;\\n border-radius: 4px 4px 4px 4px;\\n border: 1px solid black;\\n color: infotext;\\n font-family: monospace;\\n font-size: 10pt;\\n max-width: 600px;\\n opacity: 0;\\n overflow: hidden;\\n padding: 2px 5px;\\n position: fixed;\\n transition: opacity .4s;\\n white-space: pre-wrap;\\n z-index: 100;\\n}\\n.CodeMirror-lint-mark-error, .CodeMirror-lint-mark-warning {\\n background-position: left bottom;\\n background-repeat: repeat-x;\\n}\\n.CodeMirror-lint-mark-error {\\n background-image:\\n url(\"+d+\")\\n ;\\n}\\n.CodeMirror-lint-mark-warning {\\n background-image: url(\"+h+\");\\n}\\n.CodeMirror-lint-marker-error, .CodeMirror-lint-marker-warning {\\n background-position: center center;\\n background-repeat: no-repeat;\\n cursor: pointer;\\n display: inline-block;\\n height: 16px;\\n position: relative;\\n vertical-align: middle;\\n width: 16px;\\n}\\n.CodeMirror-lint-message-error, .CodeMirror-lint-message-warning {\\n background-position: top left;\\n background-repeat: no-repeat;\\n padding-left: 18px;\\n}\\n.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {\\n background-image: url(\"+m+\");\\n}\\n.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {\\n background-image: url(\"+v+\");\\n}\\n.CodeMirror-lint-marker-multiple {\\n background-image: url(\"+g+\");\\n background-position: right bottom;\\n background-repeat: no-repeat;\\n width: 100%; height: 100%;\\n}\\n\\n.graphiql-container .spinner-container {\\n height: 36px;\\n left: 50%;\\n position: absolute;\\n top: 50%;\\n transform: translate(-50%, -50%);\\n width: 36px;\\n z-index: 10;\\n}\\n\\n.graphiql-container .spinner {\\n animation: rotation .6s infinite linear;\\n border-bottom: 6px solid rgba(150, 150, 150, .15);\\n border-left: 6px solid rgba(150, 150, 150, .15);\\n border-radius: 100%;\\n border-right: 6px solid rgba(150, 150, 150, .15);\\n border-top: 6px solid rgba(150, 150, 150, .8);\\n display: inline-block;\\n height: 24px;\\n position: absolute;\\n vertical-align: middle;\\n width: 24px;\\n}\\n\\n@keyframes rotation {\\n from { transform: rotate(0deg); }\\n to { transform: rotate(359deg); }\\n}\\n\\n.CodeMirror-hints {\\n background: white;\\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);\\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\\n font-size: 13px;\\n list-style: none;\\n margin-left: -6px;\\n margin: 0;\\n max-height: 14.5em;\\n overflow: hidden;\\n overflow-y: auto;\\n padding: 0;\\n position: absolute;\\n z-index: 10;\\n}\\n\\n.CodeMirror-hint {\\n border-top: solid 1px #f7f7f7;\\n color: #141823;\\n cursor: pointer;\\n margin: 0;\\n max-width: 300px;\\n overflow: hidden;\\n padding: 2px 6px;\\n white-space: pre;\\n}\\n\\nli.CodeMirror-hint-active {\\n background-color: #08f;\\n border-top-color: white;\\n color: white;\\n}\\n\\n.CodeMirror-hint-information {\\n border-top: solid 1px #c0c0c0;\\n max-width: 300px;\\n padding: 4px 6px;\\n position: relative;\\n z-index: 1;\\n}\\n\\n.CodeMirror-hint-information:first-child {\\n border-bottom: solid 1px #c0c0c0;\\n border-top: none;\\n margin-bottom: -1px;\\n}\\n\\n.CodeMirror-hint-deprecation {\\n background: #fffae8;\\n box-shadow: inset 0 1px 1px -1px #bfb063;\\n color: #867F70;\\n font-family:\\n system,\\n -apple-system,\\n 'San Francisco',\\n '.SFNSDisplay-Regular',\\n 'Segoe UI',\\n Segoe,\\n 'Segoe WP',\\n 'Helvetica Neue',\\n helvetica,\\n 'Lucida Grande',\\n arial,\\n sans-serif;\\n font-size: 13px;\\n line-height: 16px;\\n margin-top: 4px;\\n max-height: 80px;\\n overflow: hidden;\\n padding: 6px;\\n}\\n\\n.CodeMirror-hint-deprecation .deprecation-label {\\n color: #c79b2e;\\n cursor: default;\\n display: block;\\n font-size: 9px;\\n font-weight: bold;\\n letter-spacing: 1px;\\n line-height: 1;\\n padding-bottom: 5px;\\n text-transform: uppercase;\\n user-select: none;\\n}\\n\\n.CodeMirror-hint-deprecation .deprecation-label + * {\\n margin-top: 0;\\n}\\n\\n.CodeMirror-hint-deprecation :last-child {\\n margin-bottom: 0;\\n}\\n\\n.graphiql-container .doc-explorer {\\n background: white;\\n}\\n\\n.graphiql-container .doc-explorer-title-bar,\\n.graphiql-container .history-title-bar {\\n cursor: default;\\n display: flex;\\n height: 34px;\\n line-height: 14px;\\n padding: 8px 8px 5px;\\n position: relative;\\n user-select: none;\\n}\\n\\n.graphiql-container .doc-explorer-title,\\n.graphiql-container .history-title {\\n flex: 1;\\n font-weight: bold;\\n overflow-x: hidden;\\n padding: 10px 0 10px 10px;\\n text-align: center;\\n text-overflow: ellipsis;\\n user-select: text;\\n white-space: nowrap;\\n}\\n\\n.graphiql-container .doc-explorer-back {\\n color: #3B5998;\\n cursor: pointer;\\n margin: -7px 0 -6px -8px;\\n overflow-x: hidden;\\n padding: 17px 12px 16px 16px;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n background: 0;\\n border: 0;\\n line-height: 14px;\\n}\\n\\n.doc-explorer-narrow .doc-explorer-back {\\n width: 0;\\n}\\n\\n.graphiql-container .doc-explorer-back:before {\\n border-left: 2px solid #3B5998;\\n border-top: 2px solid #3B5998;\\n content: '';\\n display: inline-block;\\n height: 9px;\\n margin: 0 3px -1px 0;\\n position: relative;\\n transform: rotate(-45deg);\\n width: 9px;\\n}\\n\\n.graphiql-container .doc-explorer-rhs {\\n position: relative;\\n}\\n\\n.graphiql-container .doc-explorer-contents,\\n.graphiql-container .history-contents {\\n background-color: #ffffff;\\n border-top: 1px solid #d6d6d6;\\n bottom: 0;\\n left: 0;\\n overflow-y: auto;\\n padding: 20px 15px;\\n position: absolute;\\n right: 0;\\n top: 47px;\\n}\\n\\n.graphiql-container .doc-explorer-contents {\\n min-width: 300px;\\n}\\n\\n.graphiql-container .doc-type-description p:first-child ,\\n.graphiql-container .doc-type-description blockquote:first-child {\\n margin-top: 0;\\n}\\n\\n.graphiql-container .doc-explorer-contents a {\\n cursor: pointer;\\n text-decoration: none;\\n}\\n\\n.graphiql-container .doc-explorer-contents a:hover {\\n text-decoration: underline;\\n}\\n\\n.graphiql-container .doc-value-description > :first-child {\\n margin-top: 4px;\\n}\\n\\n.graphiql-container .doc-value-description > :last-child {\\n margin-bottom: 4px;\\n}\\n\\n.graphiql-container .doc-type-description code,\\n.graphiql-container .doc-type-description pre,\\n.graphiql-container .doc-category code,\\n.graphiql-container .doc-category pre {\\n --saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);\\n font-size: 12px;\\n line-height: 1.50001;\\n font-variant-ligatures: none;\\n white-space: pre;\\n white-space: pre-wrap;\\n word-wrap: break-word;\\n word-break: normal;\\n -webkit-tab-size: 4;\\n -moz-tab-size: 4;\\n tab-size: 4;\\n}\\n\\n.graphiql-container .doc-type-description code,\\n.graphiql-container .doc-category code {\\n padding: 2px 3px 1px;\\n border: 1px solid var(--saf-0);\\n border-radius: 3px;\\n background-color: rgba(var(--sk_foreground_min,29,28,29),.04);\\n color: #e01e5a;\\n background-color: white;\\n}\\n\\n.graphiql-container .doc-category {\\n margin: 20px 0;\\n}\\n\\n.graphiql-container .doc-category-title {\\n border-bottom: 1px solid #e0e0e0;\\n color: #777;\\n cursor: default;\\n font-size: 14px;\\n font-variant: small-caps;\\n font-weight: bold;\\n letter-spacing: 1px;\\n margin: 0 -15px 10px 0;\\n padding: 10px 0;\\n user-select: none;\\n}\\n\\n.graphiql-container .doc-category-item {\\n margin: 12px 0;\\n color: #555;\\n}\\n\\n.graphiql-container .keyword {\\n color: #B11A04;\\n}\\n\\n.graphiql-container .type-name {\\n color: #CA9800;\\n}\\n\\n.graphiql-container .field-name {\\n color: #1F61A0;\\n}\\n\\n.graphiql-container .field-short-description {\\n color: #999;\\n margin-left: 5px;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n.graphiql-container .enum-value {\\n color: #0B7FC7;\\n}\\n\\n.graphiql-container .arg-name {\\n color: #8B2BB9;\\n}\\n\\n.graphiql-container .arg {\\n display: block;\\n margin-left: 1em;\\n}\\n\\n.graphiql-container .arg:first-child:last-child,\\n.graphiql-container .arg:first-child:nth-last-child(2),\\n.graphiql-container .arg:first-child:nth-last-child(2) ~ .arg {\\n display: inherit;\\n margin: inherit;\\n}\\n\\n.graphiql-container .arg:first-child:nth-last-child(2):after {\\n content: ', ';\\n}\\n\\n.graphiql-container .arg-default-value {\\n color: #43A047;\\n}\\n\\n.graphiql-container .doc-deprecation {\\n background: #fffae8;\\n box-shadow: inset 0 0 1px #bfb063;\\n color: #867F70;\\n line-height: 16px;\\n margin: 8px -8px;\\n max-height: 80px;\\n overflow: hidden;\\n padding: 8px;\\n border-radius: 3px;\\n}\\n\\n.graphiql-container .doc-deprecation:before {\\n content: 'Deprecated:';\\n color: #c79b2e;\\n cursor: default;\\n display: block;\\n font-size: 9px;\\n font-weight: bold;\\n letter-spacing: 1px;\\n line-height: 1;\\n padding-bottom: 5px;\\n text-transform: uppercase;\\n user-select: none;\\n}\\n\\n.graphiql-container .doc-deprecation > :first-child {\\n margin-top: 0;\\n}\\n\\n.graphiql-container .doc-deprecation > :last-child {\\n margin-bottom: 0;\\n}\\n\\n.graphiql-container .show-btn {\\n -webkit-appearance: initial;\\n display: block;\\n border-radius: 3px;\\n border: solid 1px #ccc;\\n text-align: center;\\n padding: 8px 12px 10px;\\n width: 100%;\\n box-sizing: border-box;\\n background: #fbfcfc;\\n color: #555;\\n cursor: pointer;\\n}\\n\\n.graphiql-container .search-box {\\n border-bottom: 1px solid #d3d6db;\\n display: flex;\\n align-items: center;\\n font-size: 14px;\\n margin: -15px -15px 12px 0;\\n position: relative;\\n}\\n\\n.graphiql-container .search-box-icon {\\n cursor: pointer;\\n display: block;\\n font-size: 24px;\\n transform: rotate(-45deg);\\n user-select: none;\\n}\\n\\n.graphiql-container .search-box .search-box-clear {\\n background-color: #d0d0d0;\\n border-radius: 12px;\\n color: #fff;\\n cursor: pointer;\\n font-size: 11px;\\n padding: 1px 5px 2px;\\n position: absolute;\\n right: 3px;\\n user-select: none;\\n border: 0;\\n}\\n\\n.graphiql-container .search-box .search-box-clear:hover {\\n background-color: #b9b9b9;\\n}\\n\\n.graphiql-container .search-box > input {\\n border: none;\\n box-sizing: border-box;\\n font-size: 14px;\\n outline: none;\\n padding: 6px 24px 8px 20px;\\n width: 100%;\\n}\\n\\n.graphiql-container .error-container {\\n font-weight: bold;\\n left: 0;\\n letter-spacing: 1px;\\n opacity: 0.5;\\n position: absolute;\\n right: 0;\\n text-align: center;\\n text-transform: uppercase;\\n top: 50%;\\n transform: translate(0, -50%);\\n}\\n\\n.graphiql-container .history-contents {\\n font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace;\\n}\\n\\n.graphiql-container .history-contents {\\n margin: 0;\\n padding: 0;\\n}\\n\\n.graphiql-container .history-contents li {\\n align-items: center;\\n display: flex;\\n font-size: 12px;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n margin: 0;\\n padding: 8px;\\n border-bottom: 1px solid #e0e0e0;\\n}\\n\\n.graphiql-container .history-contents li button:not(.history-label) {\\n display: none;\\n margin-left: 10px;\\n}\\n\\n.graphiql-container .history-contents li:hover button:not(.history-label),\\n.graphiql-container .history-contents li:focus-within button:not(.history-label) {\\n display: inline-block;\\n}\\n\\n.graphiql-container .history-contents input,\\n.graphiql-container .history-contents button {\\n padding: 0;\\n background: 0;\\n border: 0;\\n font-size: inherit;\\n font-family: inherit;\\n line-height: 14px;\\n color: inherit;\\n}\\n\\n.graphiql-container .history-contents input {\\n flex-grow: 1;\\n}\\n\\n.graphiql-container .history-contents input::placeholder {\\n color: inherit;\\n}\\n\\n.graphiql-container .history-contents button {\\n cursor: pointer;\\n text-align: left;\\n}\\n\\n.graphiql-container .history-contents .history-label {\\n flex-grow: 1;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n}\\n\\n\",\"\"]);const y=p},9574:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>o});var r=n(2609),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,\".graphiql-container {\\n height: 100vh;\\n width: 100vw;\\n}\\n\\n\",\"\"]);const o=i},9055:(e,t,n)=>{\"use strict\";n.d(t,{Z:()=>o});var r=n(2609),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,'body {\\n margin: 0;\\n padding: 0;\\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\",\\n \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\\n sans-serif;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\ncode {\\n font-family: source-code-pro, Menlo, Monaco, Consolas, \"Courier New\",\\n monospace;\\n}\\n',\"\"]);const o=i},2609:e=>{\"use strict\";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?\"@media \".concat(t[2],\" {\").concat(n,\"}\"):n})).join(\"\")},t.i=function(e,n,r){\"string\"==typeof e&&(e=[[null,e,\"\"]]);var i={};if(r)for(var o=0;o{\"use strict\";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['\"].*['\"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/[\"'() \\t\\n]|(%20)/.test(e)||t.needQuotes?'\"'.concat(e.replace(/\"/g,'\\\\\"').replace(/\\n/g,\"\\\\n\"),'\"'):e):e}},9798:e=>{\"use strict\";var t,n=function(){function e(e,t){if(\"function\"!=typeof e)throw new TypeError(\"DataLoader must be constructed with a function which accepts Array and returns Promise>, but got: \"+e+\".\");this._batchLoadFn=e,this._maxBatchSize=function(e){if(e&&!1===e.batch)return 1;var t=e&&e.maxBatchSize;if(void 0===t)return 1/0;if(\"number\"!=typeof t||t<1)throw new TypeError(\"maxBatchSize must be a positive number: \"+t);return t}(t),this._batchScheduleFn=function(e){var t=e&&e.batchScheduleFn;if(void 0===t)return r;if(\"function\"!=typeof t)throw new TypeError(\"batchScheduleFn must be a function: \"+t);return t}(t),this._cacheKeyFn=function(e){var t=e&&e.cacheKeyFn;if(void 0===t)return function(e){return e};if(\"function\"!=typeof t)throw new TypeError(\"cacheKeyFn must be a function: \"+t);return t}(t),this._cacheMap=function(e){if(e&&!1===e.cache)return null;var t=e&&e.cacheMap;if(void 0===t)return new Map;if(null!==t){var n=[\"get\",\"set\",\"delete\",\"clear\"].filter((function(e){return t&&\"function\"!=typeof t[e]}));if(0!==n.length)throw new TypeError(\"Custom cacheMap missing methods: \"+n.join(\", \"))}return t}(t),this._batch=null}var t=e.prototype;return t.load=function(e){if(null==e)throw new TypeError(\"The loader.load() function must be called with a value,but got: \"+String(e)+\".\");var t=function(e){var t=e._batch;if(null!==t&&!t.hasDispatched&&t.keys.length and returns Promise>, but the function did not return a Promise: \"+String(n)+\".\"));n.then((function(e){if(!a(e))throw new TypeError(\"DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array: \"+String(e)+\".\");if(e.length!==t.keys.length)throw new TypeError(\"DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys.\\n\\nKeys:\\n\"+String(t.keys)+\"\\n\\nValues:\\n\"+String(e));o(t);for(var n=0;n but got: \"+e+\".\");for(var t=[],n=0;n0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}e.exports=n},161:e=>{\"use strict\";var t=Object.prototype.hasOwnProperty,n=\"~\";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if(\"function\"!=typeof r)throw new TypeError(\"The listener must be a function\");var s=new i(r,o||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")},o=Object.assign||function(e){for(var t=1;t0?\"\"+a+s:a;var c=r.type.toString(),f={kind:\"VariableDefinition\",variable:{kind:\"Variable\",name:{kind:\"Name\",value:t}},type:(0,l.parseType)(c),directives:[]},p=void 0,d={};if(null!=n){var h=(0,l.visit)(n,{Variable:function(t){var n,r=t.name.value,i=(n=r,(e.props.definition.variableDefinitions||[]).find((function(e){return e.variable.name.value===n})));if(d[r]=d[r]+1||1,i)return i.defaultValue}}),m=\"NonNullType\"===f.type.kind?o({},f,{type:f.type.type}):f;p=o({},m,{defaultValue:h})}else p=f;var v=Object.entries(d).filter((function(e){var t=i(e,2);return t[0],t[1]<2})).map((function(e){var t=i(e,2),n=t[0];return t[1],n}));if(p){var g=e.props.setArgValue(p,!1);if(g){var y=g.definitions.find((function(t){return!!(t.operation&&t.name&&t.name.value&&e.props.definition.name&&e.props.definition.name.value)&&t.name.value===e.props.definition.name.value})),b=[].concat(u(y.variableDefinitions||[]),[p]).filter((function(e){return-1===v.indexOf(e.variable.name.value)})),E=o({},y,{variableDefinitions:b}),w=g.definitions.map((function(e){return y===e?E:e})),T=o({},g,{definitions:w});e.props.onCommit(T)}}}()},style:a.styles.actionButtonStyle},s.createElement(\"span\",{style:{color:a.colors.variable}},\"$\")):null;return s.createElement(\"div\",{style:{cursor:\"pointer\",minHeight:\"16px\",WebkitUserSelect:\"none\",userSelect:\"none\"},\"data-arg-name\":r.name,\"data-arg-type\":c.name,className:\"graphiql-explorer-\"+r.name},s.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:function(t){var r=!n;r?e.props.addArg(!0):e.props.removeArg(!0),e.setState({displayArgActions:r})}},(0,l.isInputObjectType)(c)?s.createElement(\"span\",null,n?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):s.createElement(b,{checked:!!n,styleConfig:this.props.styleConfig}),s.createElement(\"span\",{style:{color:a.colors.attribute},title:r.description,onMouseEnter:function(){null!=n&&e.setState({displayArgActions:!0})},onMouseLeave:function(){return e.setState({displayArgActions:!1})}},r.name,w(r)?\"*\":\"\",\": \",h,\" \"),\" \"),f||s.createElement(\"span\",null),\" \")}}]),t}(s.PureComponent),D=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,o=Array(i),a=0;a0&&e.setState({displayFieldActions:!0})},onMouseLeave:function(){return e.setState({displayFieldActions:!1})}},(0,l.isObjectType)(p)?s.createElement(\"span\",null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)(p)?null:s.createElement(b,{checked:!!f,styleConfig:this.props.styleConfig}),s.createElement(\"span\",{style:{color:c.colors.property},className:\"graphiql-explorer-field-view\"},r.name),this.state.displayFieldActions?s.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",title:\"Extract selections into a new reusable fragment\",onClick:function(t){t.preventDefault(),t.stopPropagation();var n=p.name+\"Fragment\",r=(m||[]).filter((function(e){return e.name.value.startsWith(n)})).length;r>0&&(n=\"\"+n+r);var i=f&&f.selectionSet?f.selectionSet.selections:[],a=[{kind:\"FragmentSpread\",name:{kind:\"Name\",value:n},directives:[]}],s={kind:\"FragmentDefinition\",name:{kind:\"Name\",value:n},typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:p.name}},directives:[],selectionSet:{kind:\"SelectionSet\",selections:i}},l=e._modifyChildSelections(a,!1);if(l){var c=o({},l,{definitions:[].concat(u(l.definitions),[s])});e.props.onCommit(c)}else console.warn(\"Unable to complete extractFragment operation\")},style:o({},c.styles.actionButtonStyle)},s.createElement(\"span\",null,\"…\")):null),f&&d.length?s.createElement(\"div\",{style:{marginLeft:16},className:\"graphiql-explorer-graphql-arguments\"},d.map((function(t){return s.createElement(N,{key:t.name,parentField:r,arg:t,selection:f,modifyArguments:e._setArguments,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})}))):null);if(f&&((0,l.isObjectType)(p)||(0,l.isInterfaceType)(p)||(0,l.isUnionType)(p))){var g=(0,l.isUnionType)(p)?{}:p.getFields(),y=f&&f.selectionSet?f.selectionSet.selections:[];return s.createElement(\"div\",{className:\"graphiql-explorer-\"+r.name},v,s.createElement(\"div\",{style:{marginLeft:16}},m?m.map((function(t){var n=i.getType(t.typeCondition.name.value),r=t.name.value;return n?s.createElement(L,{key:r,fragment:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit}):null})):null,Object.keys(g).sort().map((function(n){return s.createElement(t,{key:n,field:g[n],selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition,availableFragments:e.props.availableFragments})})),(0,l.isInterfaceType)(p)||(0,l.isUnionType)(p)?i.getPossibleTypes(p).map((function(t){return s.createElement(D,{key:t.name,implementingType:t,selections:y,modifySelections:e._modifyChildSelections,schema:i,getDefaultFieldNames:a,getDefaultScalarArgValue:e.props.getDefaultScalarArgValue,makeDefaultArg:e.props.makeDefaultArg,onRunOperation:e.props.onRunOperation,styleConfig:e.props.styleConfig,onCommit:e.props.onCommit,definition:e.props.definition})})):null))}return v}}]),t}(s.PureComponent),P={kind:\"Document\",definitions:[{kind:\"OperationDefinition\",operation:\"query\",variableDefinitions:[],name:{kind:\"Name\",value:\"MyQuery\"},directives:[],selectionSet:{kind:\"SelectionSet\",selections:[]}}]},j=null;var V={buttonStyle:{fontSize:\"1.2em\",padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"5px 0px\",height:\"40px\",width:\"100%\",display:\"block\",maxWidth:\"none\"},actionButtonStyle:{padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"0px\",maxWidth:\"none\",height:\"15px\",width:\"15px\",display:\"inline-block\",fontSize:\"smaller\"},explorerActionsStyle:{margin:\"4px -8px -8px\",paddingLeft:\"8px\",bottom:\"0px\",width:\"100%\",textAlign:\"center\",background:\"none\",borderTop:\"none\",borderBottom:\"none\"}},U=function(e){function t(){var e,n,r;c(this,t);for(var i=arguments.length,a=Array(i),s=0;s{\"use strict\";var r,i=(r=n(3176))&&r.__esModule?r:{default:r};i.default,t.ZP=i.default},4409:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{DIAGNOSTIC_SEVERITY:()=>He,GraphQLLanguageService:()=>At,LANGUAGE:()=>Fe,SEVERITY:()=>Qe,canUseDirective:()=>Ie,forEachState:()=>L,getAutocompleteSuggestions:()=>xe,getDefinitionQueryResultForDefinitionNode:()=>Be,getDefinitionQueryResultForFragmentSpread:()=>Ue,getDefinitionQueryResultForNamedType:()=>Ve,getDefinitionState:()=>I,getDiagnostics:()=>Ze,getFieldDef:()=>D,getFragmentDefinitions:()=>Ce,getHoverInformation:()=>rt,getOutline:()=>tt,getRange:()=>Je,getTokenAtPosition:()=>Oe,getTypeInfo:()=>De,getVariableCompletions:()=>Ne,hintList:()=>F,objectValues:()=>M,runOnlineParser:()=>Ae,validateQuery:()=>Ke});var r,i,o,a,s,l,u,c,f,p,d,h,m,v,g,y,b,E,w,T,_,k,S,x,N,C,O=n(6136),A=n(4378);function I(e){let t;return L(e,(e=>{switch(e.kind){case\"Query\":case\"ShortQuery\":case\"Mutation\":case\"Subscription\":case\"FragmentDefinition\":t=e}})),t}function D(e,t,n){return n===A.SchemaMetaFieldDef.name&&e.getQueryType()===t?A.SchemaMetaFieldDef:n===A.TypeMetaFieldDef.name&&e.getQueryType()===t?A.TypeMetaFieldDef:n===A.TypeNameMetaFieldDef.name&&(0,O.Gv)(t)?A.TypeNameMetaFieldDef:\"getFields\"in t?t.getFields()[n]:null}function L(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function M(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:j(P(e.label),t),entry:e}))),(e=>e.proximity<=2)),(e=>!e.entry.isDeprecated)).sort(((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length)).map((e=>e.entry)):R(e,(e=>!e.isDeprecated))}(t,P(e.string))}function R(e,t){const n=e.filter(t);return 0===n.length?e:n}function P(e){return e.toLowerCase().replace(/\\W/g,\"\")}function j(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}!function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(r||(r={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647}(i||(i={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=i.MAX_VALUE),t===Number.MAX_VALUE&&(t=i.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return ye.objectLiteral(t)&&ye.uinteger(t.line)&&ye.uinteger(t.character)}}(o||(o={})),function(e){e.create=function(e,t,n,r){if(ye.uinteger(e)&&ye.uinteger(t)&&ye.uinteger(n)&&ye.uinteger(r))return{start:o.create(e,t),end:o.create(n,r)};if(o.is(e)&&o.is(t))return{start:e,end:t};throw new Error(\"Range#create called with invalid arguments[\"+e+\", \"+t+\", \"+n+\", \"+r+\"]\")},e.is=function(e){var t=e;return ye.objectLiteral(t)&&o.is(t.start)&&o.is(t.end)}}(a||(a={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return ye.defined(t)&&a.is(t.range)&&(ye.string(t.uri)||ye.undefined(t.uri))}}(s||(s={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return ye.defined(t)&&a.is(t.targetRange)&&ye.string(t.targetUri)&&(a.is(t.targetSelectionRange)||ye.undefined(t.targetSelectionRange))&&(a.is(t.originSelectionRange)||ye.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return ye.numberRange(t.red,0,1)&&ye.numberRange(t.green,0,1)&&ye.numberRange(t.blue,0,1)&&ye.numberRange(t.alpha,0,1)}}(u||(u={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return a.is(t.range)&&u.is(t.color)}}(c||(c={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return ye.string(t.label)&&(ye.undefined(t.textEdit)||E.is(t))&&(ye.undefined(t.additionalTextEdits)||ye.typedArray(t.additionalTextEdits,E.is))}}(f||(f={})),function(e){e.Comment=\"comment\",e.Imports=\"imports\",e.Region=\"region\"}(p||(p={})),function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return ye.defined(n)&&(o.startCharacter=n),ye.defined(r)&&(o.endCharacter=r),ye.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return ye.uinteger(t.startLine)&&ye.uinteger(t.startLine)&&(ye.undefined(t.startCharacter)||ye.uinteger(t.startCharacter))&&(ye.undefined(t.endCharacter)||ye.uinteger(t.endCharacter))&&(ye.undefined(t.kind)||ye.string(t.kind))}}(d||(d={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return ye.defined(t)&&s.is(t.location)&&ye.string(t.message)}}(h||(h={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(m||(m={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return null!=t&&ye.string(t.href)}}(g||(g={})),function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return ye.defined(n)&&(a.severity=n),ye.defined(r)&&(a.code=r),ye.defined(i)&&(a.source=i),ye.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t,n=e;return ye.defined(n)&&a.is(n.range)&&ye.string(n.message)&&(ye.number(n.severity)||ye.undefined(n.severity))&&(ye.integer(n.code)||ye.string(n.code)||ye.undefined(n.code))&&(ye.undefined(n.codeDescription)||ye.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ye.string(n.source)||ye.undefined(n.source))&&(ye.undefined(n.relatedInformation)||ye.typedArray(n.relatedInformation,h.is))}}(y||(y={})),function(e){e.create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},e.is=function(e){var t=e;return ye.defined(t)&&ye.string(t.title)&&ye.string(t.command)}}(b||(b={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:\"\"}},e.is=function(e){var t=e;return ye.objectLiteral(t)&&ye.string(t.newText)&&a.is(t.range)}}(E||(E={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return void 0!==t&&ye.objectLiteral(t)&&ye.string(t.label)&&(ye.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ye.string(t.description)||void 0===t.description)}}(w||(w={})),function(e){e.is=function(e){return\"string\"==typeof e}}(T||(T={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:\"\",annotationId:t}},e.is=function(e){var t=e;return E.is(t)&&(w.is(t.annotationId)||T.is(t.annotationId))}}(_||(_={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return ye.defined(t)&&B.is(t.textDocument)&&Array.isArray(t.edits)}}(k||(k={})),function(e){e.create=function(e,t,n){var r={kind:\"create\",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&\"create\"===t.kind&&ye.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ye.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ye.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(S||(S={})),function(e){e.create=function(e,t,n,r){var i={kind:\"rename\",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){var t=e;return t&&\"rename\"===t.kind&&ye.string(t.oldUri)&&ye.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ye.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ye.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(x||(x={})),function(e){e.create=function(e,t,n){var r={kind:\"delete\",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){var t=e;return t&&\"delete\"===t.kind&&ye.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ye.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ye.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(N||(N={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return ye.string(e.kind)?S.is(e)||x.is(e)||N.is(e):k.is(e)})))}}(C||(C={}));var V,U,B,z,G,q,Q,H,W,Z,K,Y,$,J,X,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,fe,pe,de,he,me,ve=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=E.insert(e,t):T.is(n)?(i=n,r=_.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=_.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=E.replace(e,t):T.is(n)?(i=n,r=_.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=_.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=E.del(e):T.is(t)?(r=t,n=_.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=_.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error(\"Text edit change is not configured to manage change annotations.\")},e}(),ge=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,\"size\",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(T.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(\"Id \"+n+\" is already in use.\");if(void 0===t)throw new Error(\"No annotation provided for id \"+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ge(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(k.is(e)){var n=new ve(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ve(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,\"edit\",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(B.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ve(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error(\"Workspace edit is not configured for normal text edit changes.\");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ve(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ge,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var r,i,o;if(w.is(t)||T.is(t)?r=t:n=t,void 0===r?i=S.create(e,n):(o=T.is(r)?r:this._changeAnnotations.manage(r),i=S.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var i,o,a;if(w.is(n)||T.is(n)?i=n:r=n,void 0===i?o=x.create(e,t,r):(a=T.is(i)?i:this._changeAnnotations.manage(i),o=x.create(e,t,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var r,i,o;if(w.is(t)||T.is(t)?r=t:n=t,void 0===r?i=N.create(e,n):(o=T.is(r)?r:this._changeAnnotations.manage(r),i=N.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return ye.defined(t)&&ye.string(t.uri)}}(V||(V={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ye.defined(t)&&ye.string(t.uri)&&ye.integer(t.version)}}(U||(U={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return ye.defined(t)&&ye.string(t.uri)&&(null===t.version||ye.integer(t.version))}}(B||(B={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return ye.defined(t)&&ye.string(t.uri)&&ye.string(t.languageId)&&ye.integer(t.version)&&ye.string(t.text)}}(z||(z={})),function(e){e.PlainText=\"plaintext\",e.Markdown=\"markdown\"}(G||(G={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(G||(G={})),function(e){e.is=function(e){var t=e;return ye.objectLiteral(e)&&G.is(t.kind)&&ye.string(t.value)}}(q||(q={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Q||(Q={})),function(e){e.PlainText=1,e.Snippet=2}(H||(H={})),function(e){e.Deprecated=1}(W||(W={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&ye.string(t.newText)&&a.is(t.insert)&&a.is(t.replace)}}(Z||(Z={})),function(e){e.asIs=1,e.adjustIndentation=2}(K||(K={})),function(e){e.create=function(e){return{label:e}}}(Y||(Y={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}($||($={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,\"\\\\$&\")},e.is=function(e){var t=e;return ye.string(t)||ye.objectLiteral(t)&&ye.string(t.language)&&ye.string(t.value)}}(J||(J={})),function(e){e.is=function(e){var t=e;return!!t&&ye.objectLiteral(t)&&(q.is(t.contents)||J.is(t.contents)||ye.typedArray(t.contents,J.is))&&(void 0===e.range||a.is(e.range))}}(X||(X={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(ee||(ee={})),function(e){e.create=function(e,t){for(var n=[],r=2;r=0;a--){var s=i[a],l=e.offsetAt(s.range.start),u=e.offsetAt(s.range.end);if(!(u<=o))throw new Error(\"Overlapping edit\");r=r.substring(0,l)+s.newText+r.substring(u,r.length),o=l}return r}}(me||(me={}));var ye,be=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,\"uri\",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"languageId\",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return o.create(0,e);for(;ne?r=i:n=i+1}var a=n-1;return o.create(a,e-t[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1e)),s=new Set;Ae(r,((e,t)=>{var r,o,l,u,c;if(t.name&&(t.kind!==Se.RuleKinds.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===Se.RuleKinds.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===Se.RuleKinds.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new O.oW(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new O.oW({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find((({name:e})=>e===t.name)))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new O.h6(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new O.oW({name:t.name,fields:{}})]}))}}));const l=i.interfaceDef||i.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map((({name:e})=>e));return F(e,o.concat([...s].map((e=>({name:e})))).filter((({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e))).map((e=>{const t={label:e.name,kind:Q.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t})))}(a,s,e,t,c);if(l===Se.RuleKinds.SELECTION_SET||l===Se.RuleKinds.FIELD||l===Se.RuleKinds.ALIASED_FIELD)return function(e,t,n){if(t.parentType){const r=t.parentType;let i=[];return\"getFields\"in r&&(i=M(r.getFields())),(0,O.Gv)(r)&&i.push(Te.hU),r===n.getQueryType()&&i.push(Te.Az,Te.tF),F(e,i.map(((e,t)=>{var n;return{sortText:String(t)+e.name,label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:Q.Field,type:e.type}})))}return[]}(a,c,e);if(l===Se.RuleKinds.ARGUMENTS||l===Se.RuleKinds.ARGUMENT&&0===u){const e=c.argDefs;if(e)return F(a,e.map((e=>{var t;return{label:e.name,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Q.Variable,type:e.type}})))}if((l===Se.RuleKinds.OBJECT_VALUE||l===Se.RuleKinds.OBJECT_FIELD&&0===u)&&c.objectFieldDefs){const e=M(c.objectFieldDefs),t=l===Se.RuleKinds.OBJECT_VALUE?Q.Value:Q.Field;return F(a,e.map((e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t,type:e.type}})))}if(l===Se.RuleKinds.ENUM_VALUE||l===Se.RuleKinds.LIST_VALUE&&1===u||l===Se.RuleKinds.OBJECT_FIELD&&2===u||l===Se.RuleKinds.ARGUMENT&&2===u)return function(e,t,n,r){const i=(0,O.xC)(t.inputType),o=Ne(n,r,!0).filter((e=>e.detail===i.name));return i instanceof O.mR?F(e,i.getValues().map((e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:e.isDeprecated,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason,kind:Q.EnumMember,type:i}})).concat(o)):i===_e.EZ?F(e,o.concat([{label:\"true\",detail:String(_e.EZ),documentation:\"Not false.\",kind:Q.Variable,type:_e.EZ},{label:\"false\",detail:String(_e.EZ),documentation:\"Not true.\",kind:Q.Variable,type:_e.EZ}])):o}(a,c,t,e);if(l===Se.RuleKinds.VARIABLE&&1===u){const n=(0,O.xC)(c.inputType);return F(a,Ne(t,e).filter((e=>e.detail===(null==n?void 0:n.name))))}return l===Se.RuleKinds.TYPE_CONDITION&&1===u||l===Se.RuleKinds.NAMED_TYPE&&null!=s.prevState&&s.prevState.kind===Se.RuleKinds.TYPE_CONDITION?function(e,t,n,r){let i;if(t.parentType)if((0,O.m0)(t.parentType)){const e=(0,O.fU)(t.parentType),r=n.getPossibleTypes(e),o=Object.create(null);r.forEach((e=>{e.getInterfaces().forEach((e=>{o[e.name]=e}))})),i=r.concat(M(o))}else i=[t.parentType];else i=M(n.getTypeMap()).filter(O.Gv);return F(e,i.map((e=>{const t=(0,O.xC)(e);return{label:String(e),documentation:t&&t.description||\"\",kind:Q.Field}})))}(a,c,e):l===Se.RuleKinds.FRAGMENT_SPREAD&&1===u?function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=I(e.state),s=Ce(r);i&&i.length>0&&s.push(...i);return F(e,s.filter((e=>o[e.typeCondition.name.value]&&!(a&&a.kind===Se.RuleKinds.FRAGMENT_DEFINITION&&a.name===e.name.value)&&(0,O.Gv)(t.parentType)&&(0,O.Gv)(o[e.typeCondition.name.value])&&(0,ke.zR)(n,t.parentType,o[e.typeCondition.name.value]))).map((e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:Q.Field,type:o[e.typeCondition.name.value]}))))}(a,c,e,t,Array.isArray(i)?i:(e=>{const t=[];return e&&(0,Ee.Vn)((0,we.Qc)(e,{experimentalFragmentVariables:!0}),{FragmentDefinition(e){t.push(e)}}),t})(i)):l===Se.RuleKinds.VARIABLE_DEFINITION&&2===u||l===Se.RuleKinds.LIST_TYPE&&1===u||l===Se.RuleKinds.NAMED_TYPE&&s.prevState&&(s.prevState.kind===Se.RuleKinds.VARIABLE_DEFINITION||s.prevState.kind===Se.RuleKinds.LIST_TYPE||s.prevState.kind===Se.RuleKinds.NON_NULL_TYPE)?function(e,t,n){return F(e,M(t.getTypeMap()).filter(O.j$).map((e=>({label:e.name,documentation:e.description,kind:Q.Variable}))))}(a,e):l===Se.RuleKinds.DIRECTIVE?function(e,t,n,r){return t.prevState&&t.prevState.kind?F(e,n.getDirectives().filter((e=>Ie(t.prevState,e))).map((e=>({label:e.name,documentation:e.description||\"\",kind:Q.Function})))):[]}(a,s,e):[]}function Ne(e,t,n=!1){let r,i;const o=Object.create({});return Ae(e,((e,a)=>{if(a.kind===Se.RuleKinds.VARIABLE&&a.name&&(r=a.name),a.kind===Se.RuleKinds.NAMED_TYPE&&r){const e=((e,t)=>{var n,r,i,o,a,s,l,u,c,f;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(f=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===f?void 0:f.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(a,Se.RuleKinds.TYPE);(null==e?void 0:e.type)&&(i=t.getType(null==e?void 0:e.type))}r&&i&&(o[r]||(o[r]={detail:i.toString(),label:`$${r}`,type:i,kind:Q.Variable},n&&(o[r].insertText=`$${r}`),r=null,i=null))})),M(o)}function Ce(e){const t=[];return Ae(e,((e,n)=>{n.kind===Se.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Se.RuleKinds.FRAGMENT_DEFINITION,name:{kind:\"Name\",value:n.name},selectionSet:{kind:Se.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:Se.RuleKinds.NAMED_TYPE,name:{kind:\"Name\",value:n.type}}})})),t}function Oe(e,t){let n=null,r=null,i=null;const o=Ae(e,((e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),\"BREAK\"}));return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function Ae(e,t){const n=e.split(\"\\n\"),r=(0,Se.onlineParser)();let i=r.startState(),o=\"\",a=new Se.CharacterStream(\"\");for(let e=0;e{switch(t.kind){case Se.RuleKinds.QUERY:case\"ShortQuery\":f=e.getQueryType();break;case Se.RuleKinds.MUTATION:f=e.getMutationType();break;case Se.RuleKinds.SUBSCRIPTION:f=e.getSubscriptionType();break;case Se.RuleKinds.INLINE_FRAGMENT:case Se.RuleKinds.FRAGMENT_DEFINITION:t.type&&(f=e.getType(t.type));break;case Se.RuleKinds.FIELD:case Se.RuleKinds.ALIASED_FIELD:f&&t.name?(a=c?D(e,c,t.name):null,f=a?a.type:null):a=null;break;case Se.RuleKinds.SELECTION_SET:c=(0,O.xC)(f);break;case Se.RuleKinds.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case Se.RuleKinds.INTERFACE_DEF:t.name&&(l=null,p=new O.oW({name:t.name,interfaces:[],fields:{}}));break;case Se.RuleKinds.OBJECT_TYPE_DEF:t.name&&(p=null,l=new O.h6({name:t.name,interfaces:[],fields:{}}));break;case Se.RuleKinds.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Se.RuleKinds.FIELD:r=a&&a.args;break;case Se.RuleKinds.DIRECTIVE:r=i&&i.args;break;case Se.RuleKinds.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){r=null;break}const i=c?D(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case Se.RuleKinds.ARGUMENT:if(r)for(let e=0;ee.name&&e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL type ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>function(e,t,n){const r=n.name;return Re(r,\"Expected ASTNode to have a Name.\"),{path:e,position:je(t,n),range:Pe(t,n),name:r.value||\"\",language:Fe,projectRoot:e}}(e||\"\",t,n)));return{definitions:o,queryRange:o.map((n=>Pe(e,t)))}}))}function Ue(e,t,n){return Me(this,void 0,void 0,(function*(){const r=t.name.value,i=n.filter((({definition:e})=>e.name.value===r));if(0===i.length)throw Error(`Definition not found for GraphQL fragment ${r}`);const o=i.map((({filePath:e,content:t,definition:n})=>ze(e||\"\",t,n)));return{definitions:o,queryRange:o.map((n=>Pe(e,t)))}}))}function Be(e,t,n){return{definitions:[ze(e,t,n)],queryRange:n.name?[Pe(t,n.name)]:[]}}function ze(e,t,n){const r=n.name;if(!r)throw Error(\"Expected ASTNode to have a Name.\");return{path:e,position:je(t,n),range:Pe(t,n),name:r.value||\"\",language:Fe,projectRoot:e}}var Ge=n(9054),qe=n(5825);const Qe={Error:\"Error\",Warning:\"Warning\",Information:\"Information\",Hint:\"Hint\"},He={[Qe.Error]:1,[Qe.Warning]:2,[Qe.Information]:3,[Qe.Hint]:4},We=(e,t)=>{if(!e)throw new Error(t)};function Ze(e,t=null,n,r,i){let o=null;i&&(e+=\"string\"==typeof i?\"\\n\\n\"+i:\"\\n\\n\"+i.reduce(((e,t)=>e+((0,Ge.S)(t)+\"\\n\\n\")),\"\"));try{o=(0,we.Qc)(e)}catch(t){const n=Je(t.locations[0],e);return[{severity:He.Error,message:t.message,source:\"GraphQL: Syntax\",range:n}]}return Ke(o,t,n,r)}function Ke(e,t=null,n,r){if(!t)return[];const i=Ye((0,Le.validateWithCustomRules)(t,e,n,r),(e=>$e(e,He.Error,\"Validation\"))),o=Ye((0,qe.Z)(t,e),(e=>$e(e,He.Warning,\"Deprecation\")));return i.concat(o)}function Ye(e,t){return Array.prototype.concat.apply([],e.map(t))}function $e(e,t,n){if(!e.nodes)return[];const r=[];return e.nodes.forEach((i=>{const o=\"Variable\"!==i.kind&&\"name\"in i&&void 0!==i.name?i.name:\"variable\"in i&&void 0!==i.variable?i.variable:i;if(o){We(e.locations,\"GraphQL validation error requires locations.\");const i=e.locations[0],a=function(e){const t=e.loc;return We(t,\"Expected ASTNode to have a location.\"),t}(o),s=i.column+(a.end-a.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new Le.Range(new Le.Position(i.line-1,i.column-1),new Le.Position(i.line-1,s))})}})),r}function Je(e,t){const n=(0,Se.onlineParser)(),r=n.startState(),i=t.split(\"\\n\");We(i.length>=e.line,\"Query text must have more lines than where the error happened\");let o=null;for(let t=0;t({representativeName:t.name,startPosition:(0,Le.offsetToPosition)(e,t.loc.start),endPosition:(0,Le.offsetToPosition)(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[nt(\"plain\",e.alias),nt(\"plain\",\": \")]:[];return n.push(nt(\"plain\",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",e.operation),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let t=0;te.value,FragmentDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",\"fragment\"),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",\"interface\"),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",\"enum\"),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[nt(\"plain\",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",\"type\"),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[nt(\"keyword\",\"input\"),nt(\"whitespace\",\" \"),nt(\"class-name\",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[nt(\"plain\",\"...\"),nt(\"class-name\",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[nt(\"plain\",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[nt(\"plain\",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,Ee.Vn)(t,{leave:e=>void 0!==n&&e.kind in n?n[e.kind](e):null})}}function nt(e,t){return{kind:e,value:t}}function rt(e,t,n,r){const i=r||Oe(t,n);if(!e||!i||!i.state)return\"\";const o=i.state,a=o.kind,s=o.step,l=De(e,i.state),u={schema:e};if(\"Field\"===a&&0===s&&l.fieldDef||\"AliasedField\"===a&&2===s&&l.fieldDef){const e=[];return function(e,t,n){it(e,t,n),at(e,t,n,t.type)}(e,l,u),lt(e,0,l.fieldDef),e.join(\"\").trim()}if(\"Directive\"===a&&1===s&&l.directiveDef){const e=[];return ot(e,l),lt(e,0,l.directiveDef),e.join(\"\").trim()}if(\"Argument\"===a&&0===s&&l.argDef){const e=[];return function(e,t,n){if(t.directiveDef?ot(e,t):t.fieldDef&&it(e,t,n),!t.argDef)return;const r=t.argDef.name;ut(e,\"(\"),ut(e,r),at(e,t,n,t.inputType),ut(e,\")\")}(e,l,u),lt(e,0,l.argDef),e.join(\"\").trim()}if(\"EnumValue\"===a&&l.enumValue&&\"description\"in l.enumValue){const e=[];return function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;st(e,t,n,t.inputType),ut(e,\".\"),ut(e,r)}(e,l,u),lt(e,0,l.enumValue),e.join(\"\").trim()}if(\"NamedType\"===a&&l.type&&\"description\"in l.type){const e=[];return st(e,l,u,l.type),lt(e,0,l.type),e.join(\"\").trim()}return\"\"}function it(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;\"__\"!==r.slice(0,2)&&(st(e,t,n,t.parentType),ut(e,\".\")),ut(e,r)}function ot(e,t,n){t.directiveDef&&ut(e,\"@\"+t.directiveDef.name)}function at(e,t,n,r){ut(e,\": \"),st(e,t,n,r)}function st(e,t,n,r){r&&(r instanceof O.bM?(st(e,t,n,r.ofType),ut(e,\"!\")):r instanceof O.p2?(ut(e,\"[\"),st(e,t,n,r.ofType),ut(e,\"]\")):ut(e,r.name))}function lt(e,t,n){if(!n)return;const r=\"string\"==typeof n.description?n.description:null;r&&(ut(e,\"\\n\\n\"),ut(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;r&&(ut(e,\"\\n\\n\"),ut(e,\"Deprecated: \"),ut(e,r))}(e,0,n)}function ut(e,t){e.push(t)}var ct=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const{FRAGMENT_DEFINITION:ft,OBJECT_TYPE_DEFINITION:pt,INTERFACE_TYPE_DEFINITION:dt,ENUM_TYPE_DEFINITION:ht,UNION_TYPE_DEFINITION:mt,SCALAR_TYPE_DEFINITION:vt,INPUT_OBJECT_TYPE_DEFINITION:gt,SCALAR_TYPE_EXTENSION:yt,OBJECT_TYPE_EXTENSION:bt,INTERFACE_TYPE_EXTENSION:Et,UNION_TYPE_EXTENSION:wt,ENUM_TYPE_EXTENSION:Tt,INPUT_OBJECT_TYPE_EXTENSION:_t,DIRECTIVE_DEFINITION:kt,FRAGMENT_SPREAD:St,OPERATION_DEFINITION:xt,NAMED_TYPE:Nt}=Xe.h,Ct={[Xe.h.FIELD]:ie.Field,[Xe.h.OPERATION_DEFINITION]:ie.Class,[Xe.h.FRAGMENT_DEFINITION]:ie.Class,[Xe.h.FRAGMENT_SPREAD]:ie.Struct,[Xe.h.OBJECT_TYPE_DEFINITION]:ie.Class,[Xe.h.ENUM_TYPE_DEFINITION]:ie.Enum,[Xe.h.ENUM_VALUE_DEFINITION]:ie.EnumMember,[Xe.h.INPUT_OBJECT_TYPE_DEFINITION]:ie.Class,[Xe.h.INPUT_VALUE_DEFINITION]:ie.Field,[Xe.h.FIELD_DEFINITION]:ie.Field,[Xe.h.INTERFACE_TYPE_DEFINITION]:ie.Interface,[Xe.h.DOCUMENT]:ie.File,FieldWithArguments:ie.Method};function Ot(e){return\"FieldDefinition\"===e.kind&&e.children&&e.children.length>0?Ct.FieldWithArguments:Ct[e.kind]}class At{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error(`No config found for uri: ${e}`)}getDiagnostics(e,t,n){return ct(this,void 0,void 0,(function*(){let r=!1;const i=this.getConfigForURI(t);if(!i)return[];const{schema:o,name:a,extensions:s}=i;try{const n=(0,we.Qc)(e);o&&t===o||(r=n.definitions.some((e=>{switch(e.kind){case pt:case dt:case ht:case mt:case vt:case gt:case yt:case bt:case Et:case wt:case Tt:case _t:case kt:return!0}return!1})))}catch(t){const n=Je(t.locations[0],e);return[{severity:He.Error,message:t.message,source:\"GraphQL: Syntax\",range:n}]}let l=e;const u=yield this._graphQLCache.getFragmentDefinitions(i);l=`${l} ${(yield this._graphQLCache.getFragmentDependencies(e,u)).reduce(((e,t)=>`${e} ${(0,Ge.S)(t.definition)}`),\"\")}`;let c=null;try{c=(0,we.Qc)(l)}catch(e){return[]}let f=null;(null==s?void 0:s.customValidationRules)&&\"function\"==typeof s.customValidationRules&&(f=s.customValidationRules(this._graphQLConfig));const p=yield this._graphQLCache.getSchema(a,r);return p?Ke(c,p,f,n):[]}))}getAutocompleteSuggestions(e,t,n){return ct(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name),o=yield this._graphQLCache.getFragmentDefinitions(r),a=Array.from(o).map((([,e])=>e.definition));return i?xe(i,e,t,void 0,a):[]}))}getHoverInformation(e,t,n){return ct(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n),i=yield this._graphQLCache.getSchema(r.name);return i?rt(i,e,t):\"\"}))}getDefinition(e,t,n){return ct(this,void 0,void 0,(function*(){const r=this.getConfigForURI(n);let i;try{i=(0,we.Qc)(e)}catch(e){return null}const o=(0,Le.getASTNodeAtPosition)(e,i,t);if(o)switch(o.kind){case St:return this._getDefinitionForFragmentSpread(e,i,o,n,r);case ft:case xt:return Be(n,e,o);case Nt:return this._getDefinitionForNamedType(e,i,o,n,r)}return null}))}getDocumentSymbols(e,t){return ct(this,void 0,void 0,(function*(){const n=yield this.getOutline(e);if(!n)return[];const r=[],i=n.outlineTrees.map((e=>[null,e]));for(;i.length>0;){const e=i.pop();if(!e)return[];const[n,o]=e;if(!o)return[];r.push({name:o.representativeName,kind:Ot(o),location:{uri:t,range:{start:o.startPosition,end:o.endPosition}},containerName:n?n.representativeName:void 0}),i.push(...o.children.map((e=>[o,e])))}return r}))}_getDefinitionForNamedType(e,t,n,r,i){return ct(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),a=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===pt||e.kind===gt||e.kind===ht||e.kind===vt||e.kind===dt)).map((t=>({filePath:r,content:e,definition:t})));return yield Ve(e,n,a.concat(s))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return ct(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),a=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),s=t.definitions.filter((e=>e.kind===ft)).map((t=>({filePath:r,content:e,definition:t})));return yield Ue(e,n,a.concat(s))}))}getOutline(e){return ct(this,void 0,void 0,(function*(){return tt(e)}))}}},3099:(e,t,n)=>{\"use strict\";n.r(t),n.d(t,{AdditionalRuleKinds:()=>_,CharacterStream:()=>r,LexRules:()=>c,ParseRules:()=>f,RuleKinds:()=>k,butNot:()=>a,isIgnored:()=>u,list:()=>o,onlineParser:()=>h,opt:()=>i,p:()=>l,t:()=>s});class r{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\\s\\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return\"string\"==typeof e?(i=new RegExp(e,n?\"i\":\"g\").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]),!(null==i||!(\"string\"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n=\"string\"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}function i(e){return{ofRule:e}}function o(e,t){return{ofRule:e,isList:!0,separator:t}}function a(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every((t=>t.match&&!t.match(e)))},e}function s(e,t){return{style:t,match:t=>t.kind===e}}function l(e,t){return{style:t||\"punctuation\",match:t=>\"Punctuation\"===t.kind&&t.value===e}}const u=e=>\" \"===e||\"\\t\"===e||\",\"===e||\"\\n\"===e||\"\\r\"===e||\"\\ufeff\"===e||\" \"===e,c={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\\$|\\(|\\)|\\.\\.\\.|:|=|&|@|\\[|]|\\{|\\||\\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:\"\"\"(?:\\\\\"\"\"|[^\"]|\"[^\"]|\"\"[^\"])*(?:\"\"\")?|\"(?:[^\"\\\\]|\\\\(?:\"|\\/|\\\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*\"?)/,Comment:/^#.*/},f={Document:[o(\"Definition\")],Definition(e){switch(e.value){case\"{\":return\"ShortQuery\";case\"query\":return\"Query\";case\"mutation\":return\"Mutation\";case\"subscription\":return\"Subscription\";case\"fragment\":return\"FragmentDefinition\";case\"schema\":return\"SchemaDef\";case\"scalar\":return\"ScalarDef\";case\"type\":return\"ObjectTypeDef\";case\"interface\":return\"InterfaceDef\";case\"union\":return\"UnionDef\";case\"enum\":return\"EnumDef\";case\"input\":return\"InputDef\";case\"extend\":return\"ExtendDef\";case\"directive\":return\"DirectiveDef\"}},ShortQuery:[\"SelectionSet\"],Query:[p(\"query\"),i(d(\"def\")),i(\"VariableDefinitions\"),o(\"Directive\"),\"SelectionSet\"],Mutation:[p(\"mutation\"),i(d(\"def\")),i(\"VariableDefinitions\"),o(\"Directive\"),\"SelectionSet\"],Subscription:[p(\"subscription\"),i(d(\"def\")),i(\"VariableDefinitions\"),o(\"Directive\"),\"SelectionSet\"],VariableDefinitions:[l(\"(\"),o(\"VariableDefinition\"),l(\")\")],VariableDefinition:[\"Variable\",l(\":\"),\"Type\",i(\"DefaultValue\")],Variable:[l(\"$\",\"variable\"),d(\"variable\")],DefaultValue:[l(\"=\"),\"Value\"],SelectionSet:[l(\"{\"),o(\"Selection\"),l(\"}\")],Selection:(e,t)=>\"...\"===e.value?t.match(/[\\s\\u00a0,]*(on\\b|@|{)/,!1)?\"InlineFragment\":\"FragmentSpread\":t.match(/[\\s\\u00a0,]*:/,!1)?\"AliasedField\":\"Field\",AliasedField:[d(\"property\"),l(\":\"),d(\"qualifier\"),i(\"Arguments\"),o(\"Directive\"),i(\"SelectionSet\")],Field:[d(\"property\"),i(\"Arguments\"),o(\"Directive\"),i(\"SelectionSet\")],Arguments:[l(\"(\"),o(\"Argument\"),l(\")\")],Argument:[d(\"attribute\"),l(\":\"),\"Value\"],FragmentSpread:[l(\"...\"),d(\"def\"),o(\"Directive\")],InlineFragment:[l(\"...\"),i(\"TypeCondition\"),o(\"Directive\"),\"SelectionSet\"],FragmentDefinition:[p(\"fragment\"),i(a(d(\"def\"),[p(\"on\")])),\"TypeCondition\",o(\"Directive\"),\"SelectionSet\"],TypeCondition:[p(\"on\"),\"NamedType\"],Value(e){switch(e.kind){case\"Number\":return\"NumberValue\";case\"String\":return\"StringValue\";case\"Punctuation\":switch(e.value){case\"[\":return\"ListValue\";case\"{\":return\"ObjectValue\";case\"$\":return\"Variable\";case\"&\":return\"NamedType\"}return null;case\"Name\":switch(e.value){case\"true\":case\"false\":return\"BooleanValue\"}return\"null\"===e.value?\"NullValue\":\"EnumValue\"}},NumberValue:[s(\"Number\",\"number\")],StringValue:[s(\"String\",\"string\")],BooleanValue:[s(\"Name\",\"builtin\")],NullValue:[s(\"Name\",\"keyword\")],EnumValue:[d(\"string-2\")],ListValue:[l(\"[\"),o(\"Value\"),l(\"]\")],ObjectValue:[l(\"{\"),o(\"ObjectField\"),l(\"}\")],ObjectField:[d(\"attribute\"),l(\":\"),\"Value\"],Type:e=>\"[\"===e.value?\"ListType\":\"NonNullType\",ListType:[l(\"[\"),\"Type\",l(\"]\"),i(l(\"!\"))],NonNullType:[\"NamedType\",i(l(\"!\"))],NamedType:[(\"atom\",{style:\"atom\",match:e=>\"Name\"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[l(\"@\",\"meta\"),d(\"meta\"),i(\"Arguments\")],DirectiveDef:[p(\"directive\"),l(\"@\",\"meta\"),d(\"meta\"),i(\"ArgumentsDef\"),p(\"on\"),o(\"DirectiveLocation\",l(\"|\"))],InterfaceDef:[p(\"interface\"),d(\"atom\"),i(\"Implements\"),o(\"Directive\"),l(\"{\"),o(\"FieldDef\"),l(\"}\")],Implements:[p(\"implements\"),o(\"NamedType\",l(\"&\"))],DirectiveLocation:[d(\"string-2\")],SchemaDef:[p(\"schema\"),o(\"Directive\"),l(\"{\"),o(\"OperationTypeDef\"),l(\"}\")],OperationTypeDef:[d(\"keyword\"),l(\":\"),d(\"atom\")],ScalarDef:[p(\"scalar\"),d(\"atom\"),o(\"Directive\")],ObjectTypeDef:[p(\"type\"),d(\"atom\"),i(\"Implements\"),o(\"Directive\"),l(\"{\"),o(\"FieldDef\"),l(\"}\")],FieldDef:[d(\"property\"),i(\"ArgumentsDef\"),l(\":\"),\"Type\",o(\"Directive\")],ArgumentsDef:[l(\"(\"),o(\"InputValueDef\"),l(\")\")],InputValueDef:[d(\"attribute\"),l(\":\"),\"Type\",i(\"DefaultValue\"),o(\"Directive\")],UnionDef:[p(\"union\"),d(\"atom\"),o(\"Directive\"),l(\"=\"),o(\"UnionMember\",l(\"|\"))],UnionMember:[\"NamedType\"],EnumDef:[p(\"enum\"),d(\"atom\"),o(\"Directive\"),l(\"{\"),o(\"EnumValueDef\"),l(\"}\")],EnumValueDef:[d(\"string-2\"),o(\"Directive\")],InputDef:[p(\"input\"),d(\"atom\"),o(\"Directive\"),l(\"{\"),o(\"InputValueDef\"),l(\"}\")],ExtendDef:[p(\"extend\"),\"ObjectTypeDef\"]};function p(e){return{style:\"keyword\",match:t=>\"Name\"===t.kind&&t.value===e}}function d(e){return{style:e,match:e=>\"Name\"===e.kind,update(e,t){e.name=t.value}}}function h(e={eatWhitespace:e=>e.eatWhile(u),lexRules:c,parseRules:f,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return g(e.parseRules,t,\"Document\"),t},token:(t,n)=>function(e,t,n){const{lexRules:r,parseRules:i,eatWhitespace:o,editorConfig:a}=n;if(t.rule&&0===t.rule.length?y(t):t.needsAdvance&&(t.needsAdvance=!1,b(t,!0)),e.sol()){const n=a&&a.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(o(e))return\"ws\";const s=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e[e.length-1]{\"use strict\";n.r(t),n.d(t,{Position:()=>p,Range:()=>f,getASTNodeAtPosition:()=>u,getFragmentDependencies:()=>s,getFragmentDependenciesForAST:()=>l,locToRange:()=>h,offsetToPosition:()=>d,pointToOffset:()=>c,validateWithCustomRules:()=>w});var r=n(5390),i=n(8867),o=n(750),a=n.n(o);const s=(e,t)=>{if(!t)return[];let n;try{n=(0,r.Qc)(e,{allowLegacySDLImplementsInterfaces:!0,allowLegacySDLEmptyFields:!0})}catch(e){return[]}return l(n,t)},l=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;(0,i.Vn)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const o=new Set;r.forEach((e=>{!n.has(e)&&t.has(e)&&o.add(a()(t.get(e)))}));const s=[];return o.forEach((e=>{(0,i.Vn)(e,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(o.add(a()(t.get(e.name.value))),r.add(e.name.value))}}),n.has(e.name.value)||s.push(e)})),s};function u(e,t,n){const r=c(e,n);let o;return(0,i.Vn)(t,{enter(e){if(!(\"Name\"!==e.kind&&e.loc&&e.loc.start<=r&&r<=e.loc.end))return!1;o=e},leave(e){if(e.loc&&e.loc.start<=r&&r<=e.loc.end)return!1}}),o}function c(e,t){const n=e.split(\"\\n\").slice(0,t.line);return t.character+n.map((e=>e.length+1)).reduce(((e,t)=>e+t),0)}class f{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new p(e,t)}setEnd(e,t){this.end=new p(e,t)}}class p{constructor(e,t){this.lessThanOrEqualTo=e=>this.linee!==v.J&&e!==E.Z&&(!r||e!==g.a)));return n&&Array.prototype.push.apply(i,n),(0,y.Gu)(e,t,i).filter((e=>{if(-1!==e.message.indexOf(\"Unknown directive\")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===b.h.DIRECTIVE){const e=t.name.value;if(\"arguments\"===e||\"argumentDefinitions\"===e)return!1}}return!0}))}},6583:(e,t,n)=>{\"use strict\";function r(e){return(r=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.printError=y,t.GraphQLError=void 0;var i,o=(i=n(8648))&&i.__esModule?i:{default:i},a=n(7682),s=n(7447),l=n(9941);function u(e,t){for(var n=0;n{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.locatedError=function(e,t,n){var r,a=e instanceof Error?e:new Error(\"Unexpected error value: \"+(0,i.default)(e));return Array.isArray(a.path)?a:new o.GraphQLError(a.message,null!==(r=a.nodes)&&void 0!==r?r:t,a.source,a.positions,n,a)};var r,i=(r=n(8048))&&r.__esModule?r:{default:r},o=n(6583)},7378:(e,t,n)=>{\"use strict\";t.gd=c;u(n(8048));var r=u(n(5792)),i=(u(n(5006)),u(n(1914)),u(n(6017)),u(n(8648)),u(n(184)),u(n(6400)),u(n(6576)),n(1154),n(6583),n(6528),n(5325)),o=(n(8784),n(4378),n(5230)),a=n(6751),s=n(5910),l=(n(5275),n(1391));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n,r,o){for(var a=0,s=n.selections;a{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getVariableValues=function(e,t,n,r){var i=[],l=null==r?void 0:r.maxErrors;try{var h=function(e,t,n,r){for(var i={},l=function(l){var h=t[l],m=h.variable.name.value,g=(0,f.typeFromAST)(e,h.type);if(!(0,c.isInputType)(g)){var y=(0,u.print)(h.type);return r(new s.GraphQLError('Variable \"$'.concat(m,'\" expected value of type \"').concat(y,'\" which cannot be used as an input type.'),h.type)),\"continue\"}if(!v(n,m)){if(h.defaultValue)i[m]=(0,p.valueFromAST)(h.defaultValue,g);else if((0,c.isNonNullType)(g)){var b=(0,o.default)(g);r(new s.GraphQLError('Variable \"$'.concat(m,'\" of required type \"').concat(b,'\" was not provided.'),h))}return\"continue\"}var E=n[m];if(null===E&&(0,c.isNonNullType)(g)){var w=(0,o.default)(g);return r(new s.GraphQLError('Variable \"$'.concat(m,'\" of non-null type \"').concat(w,'\" must not be null.'),h)),\"continue\"}i[m]=(0,d.coerceInputValue)(E,g,(function(e,t,n){var i='Variable \"$'.concat(m,'\" got invalid value ')+(0,o.default)(t);e.length>0&&(i+=' at \"'.concat(m).concat((0,a.default)(e),'\"')),r(new s.GraphQLError(i+\"; \"+n.message,h,void 0,void 0,void 0,n.originalError))}))},h=0;h=l)throw new s.GraphQLError(\"Too many errors processing variables, error limit reached. Execution aborted.\");i.push(e)}));if(0===i.length)return{coerced:h}}catch(e){i.push(e)}return{errors:i}},t.getArgumentValues=m,t.getDirectiveValues=function(e,t,n){var i=t.directives&&(0,r.default)(t.directives,(function(t){return t.name.value===e.name}));if(i)return m(e,i,n)};var r=h(n(9035)),i=h(n(3271)),o=h(n(8048)),a=h(n(6452)),s=n(6583),l=n(5325),u=n(3083),c=n(6751),f=n(5910),p=n(745),d=n(4314);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){for(var r,a={},f=null!==(r=t.arguments)&&void 0!==r?r:[],d=(0,i.default)(f,(function(e){return e.name.value})),h=0,m=e.args;h{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.addPath=function(e,t,n){return{prev:e,key:t,typename:n}},t.pathToArray=function(e){for(var t=[],n=e;n;)t.push(n.key),n=n.prev;return t.reverse()}},2678:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;\"function\"==typeof t||(0,r.default)(0),e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r=o(n(5006)),i=o(n(8019));function o(e){return e&&e.__esModule?e:{default:e}}},1914:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(t)}},2490:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){var n=\"string\"==typeof e?[e,t]:[void 0,e],r=n[0],i=\" Did you mean \";r&&(i+=r+\" \");var o=n[1].map((function(e){return'\"'.concat(e,'\"')}));switch(o.length){case 0:return\"\";case 1:return i+o[0]+\"?\";case 2:return i+o[0]+\" or \"+o[1]+\"?\"}var a=o.slice(0,5),s=a.pop();return i+a.join(\", \")+\", or \"+s+\"?\"}},2990:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){return e}},8048:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){return a(e,[])};var r,i=(r=n(8019))&&r.__esModule?r:{default:r};function o(e){return(o=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function a(e,t){switch(o(e)){case\"string\":return JSON.stringify(e);case\"function\":return e.name?\"[function \".concat(e.name,\"]\"):\"[function]\";case\"object\":return null===e?\"null\":function(e,t){if(-1!==t.indexOf(e))return\"[Circular]\";var n=[].concat(t,[e]),r=function(e){var t=e[String(i.default)];return\"function\"==typeof t?t:\"function\"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var o=r.call(e);if(o!==e)return\"string\"==typeof o?o:a(o,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return\"[]\";if(t.length>2)return\"[Array]\";for(var n=Math.min(10,e.length),r=e.length-n,i=[],o=0;o1&&i.push(\"... \".concat(r,\" more items\")),\"[\"+i.join(\", \")+\"]\"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?\"{}\":t.length>2?\"[\"+function(e){var t=Object.prototype.toString.call(e).replace(/^\\[object /,\"\").replace(/]$/,\"\");if(\"Object\"===t&&\"function\"==typeof e.constructor){var n=e.constructor.name;if(\"string\"==typeof n&&\"\"!==n)return n}return t}(e)+\"]\":\"{ \"+n.map((function(n){return n+\": \"+a(e[n],t)})).join(\", \")+\" }\"}(e,n)}(e,t);default:return String(e)}}},882:(e,t,n)=>{\"use strict\";var r;Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0,(r=n(8048))&&r.__esModule;t.default=function(e,t){return e instanceof t}},5006:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:\"Unexpected invariant triggered.\")}},8648:(e,t)=>{\"use strict\";function n(e){return(n=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){return\"object\"==n(e)&&null!==e}},6017:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){return\"function\"==typeof(null==e?void 0:e.then)}},3271:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))}},2347:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n){return e.reduce((function(e,r){return e[t(r)]=n(r),e}),Object.create(null))}},5177:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){for(var n=Object.create(null),r=0,o=(0,i.default)(e);r{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t;return function(n,r,i){t||(t=new WeakMap);var o,a=t.get(n);if(a){if(o=a.get(r)){var s=o.get(i);if(void 0!==s)return s}}else a=new WeakMap,t.set(n,a);o||(o=new WeakMap,a.set(r,o));var l=e(n,r,i);return o.set(i,l),l}}},2328:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){for(var i=0,o=0;i0);var u=0;do{++o,u=10*u+s-n,s=t.charCodeAt(o)}while(r(s)&&u>0);if(lu)return 1}else{if(as)return 1;++i,++o}}return e.length-t.length};var n=48;function r(e){return!isNaN(e)&&n<=e&&e<=57}},8019:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):void 0;t.default=n},6452:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){return e.map((function(e){return\"number\"==typeof e?\"[\"+e.toString()+\"]\":\".\"+e})).join(\"\")}},6576:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=Object.keys(e),n=t.map((function(t){return e[t]}));return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return e[t[r]]=n,e}),Object.create(null))}))}},6400:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t,n){return e.reduce((function(e,n){return(0,i.default)(e)?e.then((function(e){return t(e,n)})):t(e,n)}),n)};var r,i=(r=n(6017))&&r.__esModule?r:{default:r}},184:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};if(null==e||\"object\"!==i(e))return null;if(Array.isArray(e))return e.map(t);var n=e[r.SYMBOL_ITERATOR];if(\"function\"==typeof n){for(var o,a=n.call(e),s=[],l=0;!(o=a.next()).done;++l)s.push(t(o.value,l));return s}var u=e.length;if(\"number\"==typeof u&&u>=0&&u%1==0){for(var c=[],f=0;f{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e,t){for(var n=Object.create(null),r=new o(e),a=Math.floor(.4*e.length)+1,s=0;st)){for(var u=this._rows,c=0;c<=l;c++)u[0][c]=c;for(var f=1;f<=s;f++){for(var p=u[(f-1)%3],d=u[f%3],h=d[0]=f,m=1;m<=l;m++){var v=r[f-1]===i[m-1]?0:1,g=Math.min(p[m]+1,d[m-1]+1,p[m-1]+v);if(f>1&&m>1&&r[f-1]===i[m-2]&&r[f-2]===i[m-1]){var y=u[(f-2)%3][m-2];g=Math.min(g,y+1)}gt)return}var b=u[s%3][l];return b<=t?b:void 0}},e}();function a(e){for(var t=e.length,n=new Array(t),r=0;r{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=function(e){if(null===Object.getPrototypeOf(e))return e;for(var t=Object.create(null),n=0,r=(0,i.default)(e);n{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isNode=function(e){return null!=e&&\"string\"==typeof e.kind},t.Token=t.Location=void 0;var r,i=(r=n(2678))&&r.__esModule?r:{default:r},o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},9501:(e,t)=>{\"use strict\";function n(e){for(var t=0;ta&&n(t[s-1]);)--s;return t.slice(a,s).join(\"\\n\")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf(\"\\n\"),i=\" \"===e[0]||\"\\t\"===e[0],o='\"'===e[e.length-1],a=\"\\\\\"===e[e.length-1],s=!r||o||a||n,l=\"\";return!s||r&&i||(l+=\"\\n\"+t),l+=t?e.replace(/\\n/g,\"\\n\"+t):e,s&&(l+=\"\\n\"),'\"\"\"'+l.replace(/\"\"\"/g,'\\\\\"\"\"')+'\"\"\"'}},9496:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.DirectiveLocation=void 0;var n=Object.freeze({QUERY:\"QUERY\",MUTATION:\"MUTATION\",SUBSCRIPTION:\"SUBSCRIPTION\",FIELD:\"FIELD\",FRAGMENT_DEFINITION:\"FRAGMENT_DEFINITION\",FRAGMENT_SPREAD:\"FRAGMENT_SPREAD\",INLINE_FRAGMENT:\"INLINE_FRAGMENT\",VARIABLE_DEFINITION:\"VARIABLE_DEFINITION\",SCHEMA:\"SCHEMA\",SCALAR:\"SCALAR\",OBJECT:\"OBJECT\",FIELD_DEFINITION:\"FIELD_DEFINITION\",ARGUMENT_DEFINITION:\"ARGUMENT_DEFINITION\",INTERFACE:\"INTERFACE\",UNION:\"UNION\",ENUM:\"ENUM\",ENUM_VALUE:\"ENUM_VALUE\",INPUT_OBJECT:\"INPUT_OBJECT\",INPUT_FIELD_DEFINITION:\"INPUT_FIELD_DEFINITION\"});t.DirectiveLocation=n},5325:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.Kind=void 0;var n=Object.freeze({NAME:\"Name\",DOCUMENT:\"Document\",OPERATION_DEFINITION:\"OperationDefinition\",VARIABLE_DEFINITION:\"VariableDefinition\",SELECTION_SET:\"SelectionSet\",FIELD:\"Field\",ARGUMENT:\"Argument\",FRAGMENT_SPREAD:\"FragmentSpread\",INLINE_FRAGMENT:\"InlineFragment\",FRAGMENT_DEFINITION:\"FragmentDefinition\",VARIABLE:\"Variable\",INT:\"IntValue\",FLOAT:\"FloatValue\",STRING:\"StringValue\",BOOLEAN:\"BooleanValue\",NULL:\"NullValue\",ENUM:\"EnumValue\",LIST:\"ListValue\",OBJECT:\"ObjectValue\",OBJECT_FIELD:\"ObjectField\",DIRECTIVE:\"Directive\",NAMED_TYPE:\"NamedType\",LIST_TYPE:\"ListType\",NON_NULL_TYPE:\"NonNullType\",SCHEMA_DEFINITION:\"SchemaDefinition\",OPERATION_TYPE_DEFINITION:\"OperationTypeDefinition\",SCALAR_TYPE_DEFINITION:\"ScalarTypeDefinition\",OBJECT_TYPE_DEFINITION:\"ObjectTypeDefinition\",FIELD_DEFINITION:\"FieldDefinition\",INPUT_VALUE_DEFINITION:\"InputValueDefinition\",INTERFACE_TYPE_DEFINITION:\"InterfaceTypeDefinition\",UNION_TYPE_DEFINITION:\"UnionTypeDefinition\",ENUM_TYPE_DEFINITION:\"EnumTypeDefinition\",ENUM_VALUE_DEFINITION:\"EnumValueDefinition\",INPUT_OBJECT_TYPE_DEFINITION:\"InputObjectTypeDefinition\",DIRECTIVE_DEFINITION:\"DirectiveDefinition\",SCHEMA_EXTENSION:\"SchemaExtension\",SCALAR_TYPE_EXTENSION:\"ScalarTypeExtension\",OBJECT_TYPE_EXTENSION:\"ObjectTypeExtension\",INTERFACE_TYPE_EXTENSION:\"InterfaceTypeExtension\",UNION_TYPE_EXTENSION:\"UnionTypeExtension\",ENUM_TYPE_EXTENSION:\"EnumTypeExtension\",INPUT_OBJECT_TYPE_EXTENSION:\"InputObjectTypeExtension\"});t.Kind=n},7447:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getLocation=function(e,t){for(var n,r=/\\r\\n|[\\n\\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isDefinitionNode=function(e){return i(e)||o(e)||s(e)},t.isExecutableDefinitionNode=i,t.isSelectionNode=function(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT},t.isValueNode=function(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT},t.isTypeNode=function(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=o,t.isTypeDefinitionNode=a,t.isTypeSystemExtensionNode=s,t.isTypeExtensionNode=l;var r=n(5325);function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===r.Kind.SCHEMA_DEFINITION||a(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function a(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function s(e){return e.kind===r.Kind.SCHEMA_EXTENSION||l(e)}function l(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}},9941:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(7447);function i(e,t){var n=e.locationOffset.column-1,r=a(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,l=t.line+s,u=1===t.line?n:0,c=t.column+u,f=\"\".concat(e.name,\":\").concat(l,\":\").concat(c,\"\\n\"),p=r.split(/\\r\\n|[\\n\\r]/g),d=p[i];if(d.length>120){for(var h=Math.floor(c/80),m=c%80,v=[],g=0;g{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:o})};var r=n(2624),i=n(9501),o={Name:function(e){return e.value},Variable:function(e){return\"$\"+e.name},Document:function(e){return s(e.definitions,\"\\n\\n\")+\"\\n\"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u(\"(\",s(e.variableDefinitions,\", \"),\")\"),i=s(e.directives,\" \"),o=e.selectionSet;return n||i||r||\"query\"!==t?s([t,s([n,r]),i,o],\" \"):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+\": \"+n+u(\" = \",r)+u(\" \",s(i,\" \"))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=u(\"\",t,\": \")+n,l=a+u(\"(\",s(r,\", \"),\")\");return l.length>80&&(l=a+u(\"(\\n\",c(s(r,\"\\n\")),\"\\n)\")),s([l,s(i,\" \"),o],\" \")},Argument:function(e){return e.name+\": \"+e.value},FragmentSpread:function(e){return\"...\"+e.name+u(\" \",s(e.directives,\" \"))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s([\"...\",u(\"on \",t),s(n,\" \"),r],\" \")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return\"fragment \".concat(t).concat(u(\"(\",s(r,\", \"),\")\"),\" \")+\"on \".concat(n,\" \").concat(u(\"\",s(i,\" \"),\" \"))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,\"description\"===t?\"\":\" \"):JSON.stringify(n)},BooleanValue:function(e){return e.value?\"true\":\"false\"},NullValue:function(){return\"null\"},EnumValue:function(e){return e.value},ListValue:function(e){return\"[\"+s(e.values,\", \")+\"]\"},ObjectValue:function(e){return\"{\"+s(e.fields,\", \")+\"}\"},ObjectField:function(e){return e.name+\": \"+e.value},Directive:function(e){return\"@\"+e.name+u(\"(\",s(e.arguments,\", \"),\")\")},NamedType:function(e){return e.name},ListType:function(e){return\"[\"+e.type+\"]\"},NonNullType:function(e){return e.type+\"!\"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s([\"schema\",s(t,\" \"),l(n)],\" \")})),OperationTypeDefinition:function(e){return e.operation+\": \"+e.type},ScalarTypeDefinition:a((function(e){return s([\"scalar\",e.name,s(e.directives,\" \")],\" \")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s([\"type\",t,u(\"implements \",s(n,\" & \")),s(r,\" \"),l(i)],\" \")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(p(n)?u(\"(\\n\",c(s(n,\"\\n\")),\"\\n)\"):u(\"(\",s(n,\", \"),\")\"))+\": \"+r+u(\" \",s(i,\" \"))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+\": \"+n,u(\"= \",r),s(i,\" \")],\" \")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s([\"interface\",t,u(\"implements \",s(n,\" & \")),s(r,\" \"),l(i)],\" \")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s([\"union\",t,s(n,\" \"),r&&0!==r.length?\"= \"+s(r,\" | \"):\"\"],\" \")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s([\"enum\",t,s(n,\" \"),l(r)],\" \")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives,\" \")],\" \")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s([\"input\",t,s(n,\" \"),l(r)],\" \")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return\"directive @\"+t+(p(n)?u(\"(\\n\",c(s(n,\"\\n\")),\"\\n)\"):u(\"(\",s(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+s(i,\" | \")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s([\"extend schema\",s(t,\" \"),l(n)],\" \")},ScalarTypeExtension:function(e){return s([\"extend scalar\",e.name,s(e.directives,\" \")],\" \")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s([\"extend type\",t,u(\"implements \",s(n,\" & \")),s(r,\" \"),l(i)],\" \")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s([\"extend interface\",t,u(\"implements \",s(n,\" & \")),s(r,\" \"),l(i)],\" \")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s([\"extend union\",t,s(n,\" \"),r&&0!==r.length?\"= \"+s(r,\" | \"):\"\"],\" \")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s([\"extend enum\",t,s(n,\" \"),l(r)],\" \")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s([\"extend input\",t,s(n,\" \"),l(r)],\" \")}};function a(e){return function(t){return s([t.description,e(t)],\"\\n\")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:\"\"}function l(e){return u(\"{\\n\",c(s(e,\"\\n\")),\"\\n}\")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"\";return null!=t&&\"\"!==t?e+t+n:\"\"}function c(e){return u(\" \",e.replace(/\\n/g,\"\\n \"))}function f(e){return-1!==e.indexOf(\"\\n\")}function p(e){return null!=e&&e.some(f)}},2624:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],f=-1,p=[],d=void 0,h=void 0,m=void 0,v=[],g=[],y=e;do{var b=++f===c.length,E=b&&0!==p.length;if(b){if(h=0===g.length?void 0:v[v.length-1],d=m,m=g.pop(),E){if(u)d=d.slice();else{for(var w={},T=0,_=Object.keys(d);T<_.length;T++){var k=_[T];w[k]=d[k]}d=w}for(var S=0,x=0;x{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var r=n(7682),i=Array.from||function(e,t,n){if(null==e)throw new TypeError(\"Array.from requires an array-like object - not null or undefined\");var i=e[r.SYMBOL_ITERATOR];if(\"function\"==typeof i){for(var o,a=i.call(e),s=[],l=0;!(o=a.next()).done;++l)if(s.push(t.call(n,o.value,l)),l>9999999)throw new TypeError(\"Near-infinite iteration.\");return s}var u=e.length;if(\"number\"==typeof u&&u>=0&&u%1==0){for(var c=[],f=0;f{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var n=0;n{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=Number.isFinite||function(e){return\"number\"==typeof e&&isFinite(e)};t.default=n},2745:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=Number.isInteger||function(e){return\"number\"==typeof e&&isFinite(e)&&Math.floor(e)===e};t.default=n},6200:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=Object.entries||function(e){return Object.keys(e).map((function(t){return[t,e[t]]}))};t.default=n},252:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var n=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))};t.default=n},7682:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.SYMBOL_TO_STRING_TAG=t.SYMBOL_ASYNC_ITERATOR=t.SYMBOL_ITERATOR=void 0;var n=\"function\"==typeof Symbol&&null!=Symbol.iterator?Symbol.iterator:\"@@iterator\";t.SYMBOL_ITERATOR=n;var r=\"function\"==typeof Symbol&&null!=Symbol.asyncIterator?Symbol.asyncIterator:\"@@asyncIterator\";t.SYMBOL_ASYNC_ITERATOR=r;var i=\"function\"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:\"@@toStringTag\";t.SYMBOL_TO_STRING_TAG=i},6751:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isType=k,t.assertType=S,t.isScalarType=x,t.assertScalarType=function(e){if(!x(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Scalar type.\"));return e},t.isObjectType=N,t.assertObjectType=function(e){if(!N(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Object type.\"));return e},t.isInterfaceType=C,t.assertInterfaceType=function(e){if(!C(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Interface type.\"));return e},t.isUnionType=O,t.assertUnionType=function(e){if(!O(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Union type.\"));return e},t.isEnumType=A,t.assertEnumType=function(e){if(!A(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Enum type.\"));return e},t.isInputObjectType=I,t.assertInputObjectType=function(e){if(!I(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Input Object type.\"));return e},t.isListType=D,t.assertListType=function(e){if(!D(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL List type.\"));return e},t.isNonNullType=L,t.assertNonNullType=function(e){if(!L(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL Non-Null type.\"));return e},t.isInputType=M,t.assertInputType=function(e){if(!M(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL input type.\"));return e},t.isOutputType=F,t.assertOutputType=function(e){if(!F(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL output type.\"));return e},t.isLeafType=R,t.assertLeafType=function(e){if(!R(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL leaf type.\"));return e},t.isCompositeType=P,t.assertCompositeType=function(e){if(!P(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL composite type.\"));return e},t.isAbstractType=j,t.assertAbstractType=function(e){if(!j(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL abstract type.\"));return e},t.GraphQLList=V,t.GraphQLNonNull=U,t.isWrappingType=B,t.assertWrappingType=function(e){if(!B(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL wrapping type.\"));return e},t.isNullableType=z,t.assertNullableType=G,t.getNullableType=function(e){if(e)return L(e)?e.ofType:e},t.isNamedType=q,t.assertNamedType=function(e){if(!q(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL named type.\"));return e},t.getNamedType=function(e){if(e){for(var t=e;B(t);)t=t.ofType;return t}},t.argsToArgsConfig=X,t.isRequiredArgument=function(e){return L(e.type)&&void 0===e.defaultValue},t.isRequiredInputField=function(e){return L(e.type)&&void 0===e.defaultValue},t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var r=w(n(6200)),i=n(7682),o=w(n(8048)),a=w(n(3271)),s=w(n(5177)),l=w(n(8944)),u=w(n(1914)),c=w(n(2347)),f=w(n(882)),p=w(n(2490)),d=w(n(8648)),h=w(n(2990)),m=w(n(2678)),v=w(n(9575)),g=n(6583),y=n(5325),b=n(3083),E=n(5033);function w(e){return e&&e.__esModule?e:{default:e}}function T(e,t){for(var n=0;n0?e:void 0}V.prototype.toString=function(){return\"[\"+String(this.ofType)+\"]\"},V.prototype.toJSON=function(){return this.toString()},Object.defineProperty(V.prototype,i.SYMBOL_TO_STRING_TAG,{get:function(){return\"GraphQLList\"}}),(0,m.default)(V),U.prototype.toString=function(){return String(this.ofType)+\"!\"},U.prototype.toJSON=function(){return this.toString()},Object.defineProperty(U.prototype,i.SYMBOL_TO_STRING_TAG,{get:function(){return\"GraphQLNonNull\"}}),(0,m.default)(U);var W=function(){function e(e){var t,n,r,i=null!==(t=e.parseValue)&&void 0!==t?t:h.default;this.name=e.name,this.description=e.description,this.specifiedByUrl=e.specifiedByUrl,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:h.default,this.parseValue=i,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:function(e,t){return i((0,E.valueFromASTUntyped)(e,t))},this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\"),null==e.specifiedByUrl||\"string\"==typeof e.specifiedByUrl||(0,u.default)(0,\"\".concat(this.name,' must provide \"specifiedByUrl\" as a string, ')+\"but got: \".concat((0,o.default)(e.specifiedByUrl),\".\")),null==e.serialize||\"function\"==typeof e.serialize||(0,u.default)(0,\"\".concat(this.name,' must provide \"serialize\" function. If this custom Scalar is also used as an input type, ensure \"parseValue\" and \"parseLiteral\" functions are also provided.')),e.parseLiteral&&(\"function\"==typeof e.parseValue&&\"function\"==typeof e.parseLiteral||(0,u.default)(0,\"\".concat(this.name,' must provide both \"parseValue\" and \"parseLiteral\" functions.')))}var t=e.prototype;return t.toConfig=function(){var e;return{name:this.name,description:this.description,specifiedByUrl:this.specifiedByUrl,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLScalarType\"}}]),e}();t.GraphQLScalarType=W,(0,m.default)(W);var Z=function(){function e(e){this.name=e.name,this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=Y.bind(void 0,e),this._interfaces=K.bind(void 0,e),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\"),null==e.isTypeOf||\"function\"==typeof e.isTypeOf||(0,u.default)(0,\"\".concat(this.name,' must provide \"isTypeOf\" as a function, ')+\"but got: \".concat((0,o.default)(e.isTypeOf),\".\"))}var t=e.prototype;return t.getFields=function(){return\"function\"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return\"function\"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:J(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLObjectType\"}}]),e}();function K(e){var t,n=null!==(t=Q(e.interfaces))&&void 0!==t?t:[];return Array.isArray(n)||(0,u.default)(0,\"\".concat(e.name,\" interfaces must be an Array or a function which returns an Array.\")),n}function Y(e){var t=Q(e.fields);return $(t)||(0,u.default)(0,\"\".concat(e.name,\" fields must be an object with field names as keys or a function which returns such an object.\")),(0,s.default)(t,(function(t,n){var i;$(t)||(0,u.default)(0,\"\".concat(e.name,\".\").concat(n,\" field config must be an object.\")),!(\"isDeprecated\"in t)||(0,u.default)(0,\"\".concat(e.name,\".\").concat(n,' should provide \"deprecationReason\" instead of \"isDeprecated\".')),null==t.resolve||\"function\"==typeof t.resolve||(0,u.default)(0,\"\".concat(e.name,\".\").concat(n,\" field resolver must be a function if \")+\"provided, but got: \".concat((0,o.default)(t.resolve),\".\"));var a=null!==(i=t.args)&&void 0!==i?i:{};$(a)||(0,u.default)(0,\"\".concat(e.name,\".\").concat(n,\" args must be an object with argument names as keys.\"));var s=(0,r.default)(a).map((function(e){var t=e[0],n=e[1];return{name:t,description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions&&(0,l.default)(n.extensions),astNode:n.astNode}}));return{name:n,description:t.description,type:t.type,args:s,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:null!=t.deprecationReason,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,l.default)(t.extensions),astNode:t.astNode}}))}function $(e){return(0,d.default)(e)&&!Array.isArray(e)}function J(e){return(0,s.default)(e,(function(e){return{description:e.description,type:e.type,args:X(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}function X(e){return(0,c.default)(e,(function(e){return e.name}),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}))}t.GraphQLObjectType=Z,(0,m.default)(Z);var ee=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=Y.bind(void 0,e),this._interfaces=K.bind(void 0,e),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\"),null==e.resolveType||\"function\"==typeof e.resolveType||(0,u.default)(0,\"\".concat(this.name,' must provide \"resolveType\" as a function, ')+\"but got: \".concat((0,o.default)(e.resolveType),\".\"))}var t=e.prototype;return t.getFields=function(){return\"function\"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return\"function\"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var e;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:J(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLInterfaceType\"}}]),e}();t.GraphQLInterfaceType=ee,(0,m.default)(ee);var te=function(){function e(e){this.name=e.name,this.description=e.description,this.resolveType=e.resolveType,this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._types=ne.bind(void 0,e),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\"),null==e.resolveType||\"function\"==typeof e.resolveType||(0,u.default)(0,\"\".concat(this.name,' must provide \"resolveType\" as a function, ')+\"but got: \".concat((0,o.default)(e.resolveType),\".\"))}var t=e.prototype;return t.getTypes=function(){return\"function\"==typeof this._types&&(this._types=this._types()),this._types},t.toConfig=function(){var e;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLUnionType\"}}]),e}();function ne(e){var t=Q(e.types);return Array.isArray(t)||(0,u.default)(0,\"Must provide Array of types or a function which returns such an array for Union \".concat(e.name,\".\")),t}t.GraphQLUnionType=te,(0,m.default)(te);var re=function(){function e(e){var t,n;this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._values=(t=this.name,$(n=e.values)||(0,u.default)(0,\"\".concat(t,\" values must be an object with value names as keys.\")),(0,r.default)(n).map((function(e){var n=e[0],r=e[1];return $(r)||(0,u.default)(0,\"\".concat(t,\".\").concat(n,' must refer to an object with a \"value\" key ')+\"representing an internal value but got: \".concat((0,o.default)(r),\".\")),!(\"isDeprecated\"in r)||(0,u.default)(0,\"\".concat(t,\".\").concat(n,' should provide \"deprecationReason\" instead of \"isDeprecated\".')),{name:n,description:r.description,value:void 0!==r.value?r.value:n,isDeprecated:null!=r.deprecationReason,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,l.default)(r.extensions),astNode:r.astNode}}))),this._valueLookup=new Map(this._values.map((function(e){return[e.value,e]}))),this._nameLookup=(0,a.default)(this._values,(function(e){return e.name})),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(e){return this._nameLookup[e]},t.serialize=function(e){var t=this._valueLookup.get(e);if(void 0===t)throw new g.GraphQLError('Enum \"'.concat(this.name,'\" cannot represent value: ').concat((0,o.default)(e)));return t.name},t.parseValue=function(e){if(\"string\"!=typeof e){var t=(0,o.default)(e);throw new g.GraphQLError('Enum \"'.concat(this.name,'\" cannot represent non-string value: ').concat(t,\".\")+ie(this,t))}var n=this.getValue(e);if(null==n)throw new g.GraphQLError('Value \"'.concat(e,'\" does not exist in \"').concat(this.name,'\" enum.')+ie(this,e));return n.value},t.parseLiteral=function(e,t){if(e.kind!==y.Kind.ENUM){var n=(0,b.print)(e);throw new g.GraphQLError('Enum \"'.concat(this.name,'\" cannot represent non-enum value: ').concat(n,\".\")+ie(this,n),e)}var r=this.getValue(e.value);if(null==r){var i=(0,b.print)(e);throw new g.GraphQLError('Value \"'.concat(i,'\" does not exist in \"').concat(this.name,'\" enum.')+ie(this,i),e)}return r.value},t.toConfig=function(){var e,t=(0,c.default)(this.getValues(),(function(e){return e.name}),(function(e){return{description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLEnumType\"}}]),e}();function ie(e,t){var n=e.getValues().map((function(e){return e.name})),r=(0,v.default)(t,n);return(0,p.default)(\"the enum value\",r)}t.GraphQLEnumType=re,(0,m.default)(re);var oe=function(){function e(e){this.name=e.name,this.description=e.description,this.extensions=e.extensions&&(0,l.default)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=H(e.extensionASTNodes),this._fields=ae.bind(void 0,e),\"string\"==typeof e.name||(0,u.default)(0,\"Must provide name.\")}var t=e.prototype;return t.getFields=function(){return\"function\"==typeof this._fields&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var e,t=(0,s.default)(this.getFields(),(function(e){return{description:e.description,type:e.type,defaultValue:e.defaultValue,extensions:e.extensions,astNode:e.astNode}}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:null!==(e=this.extensionASTNodes)&&void 0!==e?e:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},_(e,[{key:i.SYMBOL_TO_STRING_TAG,get:function(){return\"GraphQLInputObjectType\"}}]),e}();function ae(e){var t=Q(e.fields);return $(t)||(0,u.default)(0,\"\".concat(e.name,\" fields must be an object with field names as keys or a function which returns such an object.\")),(0,s.default)(t,(function(t,n){return!(\"resolve\"in t)||(0,u.default)(0,\"\".concat(e.name,\".\").concat(n,\" field has a resolve property, but Input Types cannot define resolvers.\")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&(0,l.default)(t.extensions),astNode:t.astNode}}))}t.GraphQLInputObjectType=oe,(0,m.default)(oe)},5230:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isDirective=v,t.assertDirective=function(e){if(!v(e))throw new Error(\"Expected \".concat((0,o.default)(e),\" to be a GraphQL directive.\"));return e},t.isSpecifiedDirective=function(e){return _.some((function(t){return t.name===e.name}))},t.specifiedDirectives=t.GraphQLSpecifiedByDirective=t.GraphQLDeprecatedDirective=t.DEFAULT_DEPRECATION_REASON=t.GraphQLSkipDirective=t.GraphQLIncludeDirective=t.GraphQLDirective=void 0;var r=h(n(6200)),i=n(7682),o=h(n(8048)),a=h(n(8944)),s=h(n(1914)),l=h(n(882)),u=h(n(8648)),c=h(n(2678)),f=n(9496),p=n(8170),d=n(6751);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){for(var n=0;n{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isIntrospectionType=function(e){return k.some((function(t){var n=t.name;return e.name===n}))},t.introspectionTypes=t.TypeNameMetaFieldDef=t.TypeMetaFieldDef=t.SchemaMetaFieldDef=t.__TypeKind=t.TypeKind=t.__EnumValue=t.__InputValue=t.__Field=t.__Type=t.__DirectiveLocation=t.__Directive=t.__Schema=void 0;var r=f(n(252)),i=f(n(8048)),o=f(n(5006)),a=n(3083),s=n(9496),l=n(8167),u=n(8170),c=n(6751);function f(e){return e&&e.__esModule?e:{default:e}}var p=new c.GraphQLObjectType({name:\"__Schema\",description:\"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.\",fields:function(){return{description:{type:u.GraphQLString,resolve:function(e){return e.description}},types:{description:\"A list of all types supported by this server.\",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(m))),resolve:function(e){return(0,r.default)(e.getTypeMap())}},queryType:{description:\"The type that query operations will be rooted at.\",type:new c.GraphQLNonNull(m),resolve:function(e){return e.getQueryType()}},mutationType:{description:\"If this server supports mutation, the type that mutation operations will be rooted at.\",type:m,resolve:function(e){return e.getMutationType()}},subscriptionType:{description:\"If this server support subscription, the type that subscription operations will be rooted at.\",type:m,resolve:function(e){return e.getSubscriptionType()}},directives:{description:\"A list of all directives supported by this server.\",type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(d))),resolve:function(e){return e.getDirectives()}}}}});t.__Schema=p;var d=new c.GraphQLObjectType({name:\"__Directive\",description:\"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\\n\\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.\",fields:function(){return{name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},isRepeatable:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:function(e){return e.isRepeatable}},locations:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(h))),resolve:function(e){return e.locations}},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(g))),resolve:function(e){return e.args}}}}});t.__Directive=d;var h=new c.GraphQLEnumType({name:\"__DirectiveLocation\",description:\"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.\",values:{QUERY:{value:s.DirectiveLocation.QUERY,description:\"Location adjacent to a query operation.\"},MUTATION:{value:s.DirectiveLocation.MUTATION,description:\"Location adjacent to a mutation operation.\"},SUBSCRIPTION:{value:s.DirectiveLocation.SUBSCRIPTION,description:\"Location adjacent to a subscription operation.\"},FIELD:{value:s.DirectiveLocation.FIELD,description:\"Location adjacent to a field.\"},FRAGMENT_DEFINITION:{value:s.DirectiveLocation.FRAGMENT_DEFINITION,description:\"Location adjacent to a fragment definition.\"},FRAGMENT_SPREAD:{value:s.DirectiveLocation.FRAGMENT_SPREAD,description:\"Location adjacent to a fragment spread.\"},INLINE_FRAGMENT:{value:s.DirectiveLocation.INLINE_FRAGMENT,description:\"Location adjacent to an inline fragment.\"},VARIABLE_DEFINITION:{value:s.DirectiveLocation.VARIABLE_DEFINITION,description:\"Location adjacent to a variable definition.\"},SCHEMA:{value:s.DirectiveLocation.SCHEMA,description:\"Location adjacent to a schema definition.\"},SCALAR:{value:s.DirectiveLocation.SCALAR,description:\"Location adjacent to a scalar definition.\"},OBJECT:{value:s.DirectiveLocation.OBJECT,description:\"Location adjacent to an object type definition.\"},FIELD_DEFINITION:{value:s.DirectiveLocation.FIELD_DEFINITION,description:\"Location adjacent to a field definition.\"},ARGUMENT_DEFINITION:{value:s.DirectiveLocation.ARGUMENT_DEFINITION,description:\"Location adjacent to an argument definition.\"},INTERFACE:{value:s.DirectiveLocation.INTERFACE,description:\"Location adjacent to an interface definition.\"},UNION:{value:s.DirectiveLocation.UNION,description:\"Location adjacent to a union definition.\"},ENUM:{value:s.DirectiveLocation.ENUM,description:\"Location adjacent to an enum definition.\"},ENUM_VALUE:{value:s.DirectiveLocation.ENUM_VALUE,description:\"Location adjacent to an enum value definition.\"},INPUT_OBJECT:{value:s.DirectiveLocation.INPUT_OBJECT,description:\"Location adjacent to an input object type definition.\"},INPUT_FIELD_DEFINITION:{value:s.DirectiveLocation.INPUT_FIELD_DEFINITION,description:\"Location adjacent to an input object field definition.\"}}});t.__DirectiveLocation=h;var m=new c.GraphQLObjectType({name:\"__Type\",description:\"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\\n\\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByUrl`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.\",fields:function(){return{kind:{type:new c.GraphQLNonNull(E),resolve:function(e){return(0,c.isScalarType)(e)?b.SCALAR:(0,c.isObjectType)(e)?b.OBJECT:(0,c.isInterfaceType)(e)?b.INTERFACE:(0,c.isUnionType)(e)?b.UNION:(0,c.isEnumType)(e)?b.ENUM:(0,c.isInputObjectType)(e)?b.INPUT_OBJECT:(0,c.isListType)(e)?b.LIST:(0,c.isNonNullType)(e)?b.NON_NULL:void(0,o.default)(0,'Unexpected type: \"'.concat((0,i.default)(e),'\".'))}},name:{type:u.GraphQLString,resolve:function(e){return void 0!==e.name?e.name:void 0}},description:{type:u.GraphQLString,resolve:function(e){return void 0!==e.description?e.description:void 0}},specifiedByUrl:{type:u.GraphQLString,resolve:function(e){return void 0!==e.specifiedByUrl?e.specifiedByUrl:void 0}},fields:{type:new c.GraphQLList(new c.GraphQLNonNull(v)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e)){var i=(0,r.default)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},interfaces:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),resolve:function(e){if((0,c.isObjectType)(e)||(0,c.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new c.GraphQLList(new c.GraphQLNonNull(m)),resolve:function(e,t,n,r){var i=r.schema;if((0,c.isAbstractType)(e))return i.getPossibleTypes(e)}},enumValues:{type:new c.GraphQLList(new c.GraphQLNonNull(y)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.isEnumType)(e)){var r=e.getValues();return n?r:r.filter((function(e){return null==e.deprecationReason}))}}},inputFields:{type:new c.GraphQLList(new c.GraphQLNonNull(g)),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){var n=t.includeDeprecated;if((0,c.isInputObjectType)(e)){var i=(0,r.default)(e.getFields());return n?i:i.filter((function(e){return null==e.deprecationReason}))}}},ofType:{type:m,resolve:function(e){return void 0!==e.ofType?e.ofType:void 0}}}}});t.__Type=m;var v=new c.GraphQLObjectType({name:\"__Field\",description:\"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.\",fields:function(){return{name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},args:{type:new c.GraphQLNonNull(new c.GraphQLList(new c.GraphQLNonNull(g))),args:{includeDeprecated:{type:u.GraphQLBoolean,defaultValue:!1}},resolve:function(e,t){return t.includeDeprecated?e.args:e.args.filter((function(e){return null==e.deprecationReason}))}},type:{type:new c.GraphQLNonNull(m),resolve:function(e){return e.type}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__Field=v;var g=new c.GraphQLObjectType({name:\"__InputValue\",description:\"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.\",fields:function(){return{name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},type:{type:new c.GraphQLNonNull(m),resolve:function(e){return e.type}},defaultValue:{type:u.GraphQLString,description:\"A GraphQL-formatted string representing the default value for this input value.\",resolve:function(e){var t=e.type,n=e.defaultValue,r=(0,l.astFromValue)(n,t);return r?(0,a.print)(r):null}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__InputValue=g;var y=new c.GraphQLObjectType({name:\"__EnumValue\",description:\"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.\",fields:function(){return{name:{type:new c.GraphQLNonNull(u.GraphQLString),resolve:function(e){return e.name}},description:{type:u.GraphQLString,resolve:function(e){return e.description}},isDeprecated:{type:new c.GraphQLNonNull(u.GraphQLBoolean),resolve:function(e){return null!=e.deprecationReason}},deprecationReason:{type:u.GraphQLString,resolve:function(e){return e.deprecationReason}}}}});t.__EnumValue=y;var b=Object.freeze({SCALAR:\"SCALAR\",OBJECT:\"OBJECT\",INTERFACE:\"INTERFACE\",UNION:\"UNION\",ENUM:\"ENUM\",INPUT_OBJECT:\"INPUT_OBJECT\",LIST:\"LIST\",NON_NULL:\"NON_NULL\"});t.TypeKind=b;var E=new c.GraphQLEnumType({name:\"__TypeKind\",description:\"An enum describing what kind of type a given `__Type` is.\",values:{SCALAR:{value:b.SCALAR,description:\"Indicates this type is a scalar.\"},OBJECT:{value:b.OBJECT,description:\"Indicates this type is an object. `fields` and `interfaces` are valid fields.\"},INTERFACE:{value:b.INTERFACE,description:\"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.\"},UNION:{value:b.UNION,description:\"Indicates this type is a union. `possibleTypes` is a valid field.\"},ENUM:{value:b.ENUM,description:\"Indicates this type is an enum. `enumValues` is a valid field.\"},INPUT_OBJECT:{value:b.INPUT_OBJECT,description:\"Indicates this type is an input object. `inputFields` is a valid field.\"},LIST:{value:b.LIST,description:\"Indicates this type is a list. `ofType` is a valid field.\"},NON_NULL:{value:b.NON_NULL,description:\"Indicates this type is a non-null. `ofType` is a valid field.\"}}});t.__TypeKind=E;var w={name:\"__schema\",type:new c.GraphQLNonNull(p),description:\"Access the current type schema of this server.\",args:[],resolve:function(e,t,n,r){return r.schema},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};t.SchemaMetaFieldDef=w;var T={name:\"__type\",type:m,description:\"Request the type information of a single type.\",args:[{name:\"name\",description:void 0,type:new c.GraphQLNonNull(u.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(e,t,n,r){var i=t.name;return r.schema.getType(i)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};t.TypeMetaFieldDef=T;var _={name:\"__typename\",type:new c.GraphQLNonNull(u.GraphQLString),description:\"The name of the current Object type at runtime.\",args:[],resolve:function(e,t,n,r){return r.parentType.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};t.TypeNameMetaFieldDef=_;var k=Object.freeze([p,d,h,m,v,g,y,E]);t.introspectionTypes=k},8170:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isSpecifiedScalarType=function(e){return E.some((function(t){var n=t.name;return e.name===n}))},t.specifiedScalarTypes=t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var r=f(n(7699)),i=f(n(2745)),o=f(n(8048)),a=f(n(8648)),s=n(5325),l=n(3083),u=n(6583),c=n(6751);function f(e){return e&&e.__esModule?e:{default:e}}var p=2147483647,d=-2147483648,h=new c.GraphQLScalarType({name:\"Int\",description:\"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.\",serialize:function(e){var t=v(e);if(\"boolean\"==typeof t)return t?1:0;var n=t;if(\"string\"==typeof t&&\"\"!==t&&(n=Number(t)),!(0,i.default)(n))throw new u.GraphQLError(\"Int cannot represent non-integer value: \".concat((0,o.default)(t)));if(n>p||np||ep||t{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isSchema=g,t.assertSchema=function(e){if(!g(e))throw new Error(\"Expected \".concat((0,s.default)(e),\" to be a GraphQL schema.\"));return e},t.GraphQLSchema=void 0;var r=m(n(9035)),i=m(n(2238)),o=m(n(252)),a=n(7682),s=m(n(8048)),l=m(n(8944)),u=m(n(1914)),c=m(n(882)),f=m(n(8648)),p=n(4378),d=n(5230),h=n(6751);function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){for(var n=0;n{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.validateSchema=m,t.assertValidSchema=function(e){var t=m(e);if(0!==t.length)throw new Error(t.map((function(e){return e.message})).join(\"\\n\\n\"))};var r=h(n(9035)),i=h(n(252)),o=h(n(8048)),a=n(6583),s=n(6528),l=n(9495),u=n(7839),c=n(1185),f=n(4378),p=n(5230),d=n(6751);function h(e){return e&&e.__esModule?e:{default:e}}function m(e){if((0,c.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new v(e);!function(e){var t=e.schema,n=t.getQueryType();if(n){if(!(0,d.isObjectType)(n)){var r;e.reportError(\"Query root type must be Object type, it cannot be \".concat((0,o.default)(n),\".\"),null!==(r=g(t,\"query\"))&&void 0!==r?r:n.astNode)}}else e.reportError(\"Query root type must be provided.\",t.astNode);var i,a=t.getMutationType();a&&!(0,d.isObjectType)(a)&&e.reportError(\"Mutation root type must be Object type if provided, it cannot be \"+\"\".concat((0,o.default)(a),\".\"),null!==(i=g(t,\"mutation\"))&&void 0!==i?i:a.astNode);var s,l=t.getSubscriptionType();l&&!(0,d.isObjectType)(l)&&e.reportError(\"Subscription root type must be Object type if provided, it cannot be \"+\"\".concat((0,o.default)(l),\".\"),null!==(s=g(t,\"subscription\"))&&void 0!==s?s:l.astNode)}(t),function(e){for(var t=0,n=e.schema.getDirectives();t{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.assertValidName=function(e){var t=s(e);if(t)throw t;return e},t.isValidNameError=s;var r,i=(r=n(1914))&&r.__esModule?r:{default:r},o=n(6583),a=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function s(e){return\"string\"==typeof e||(0,i.default)(0,\"Expected name to be a string.\"),e.length>1&&\"_\"===e[0]&&\"_\"===e[1]?new o.GraphQLError('Name \"'.concat(e,'\" must not begin with \"__\", which is reserved by GraphQL introspection.')):a.test(e)?void 0:new o.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but \"'.concat(e,'\" does not.'))}},8167:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.astFromValue=function e(t,n){if((0,f.isNonNullType)(n)){var p=e(t,n.ofType);return(null==p?void 0:p.kind)===u.Kind.NULL?null:p}if(null===t)return{kind:u.Kind.NULL};if(void 0===t)return null;if((0,f.isListType)(n)){var h=n.ofType,m=(0,l.default)(t);if(null!=m){for(var v=[],g=0;g{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.coerceInputValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return v(e,t,n)};var r=h(n(252)),i=h(n(8048)),o=h(n(5006)),a=h(n(2490)),s=h(n(8648)),l=h(n(184)),u=h(n(9575)),c=h(n(6452)),f=n(1154),p=n(6583),d=n(6751);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){var r=\"Invalid value \"+(0,i.default)(t);throw e.length>0&&(r+=' at \"value'.concat((0,c.default)(e),'\"')),n.message=r+\": \"+n.message,n}function v(e,t,n,c){if((0,d.isNonNullType)(t))return null!=e?v(e,t.ofType,n,c):void n((0,f.pathToArray)(c),e,new p.GraphQLError('Expected non-nullable type \"'.concat((0,i.default)(t),'\" not to be null.')));if(null==e)return null;if((0,d.isListType)(t)){var h=t.ofType,m=(0,l.default)(e,(function(e,t){var r=(0,f.addPath)(c,t,void 0);return v(e,h,n,r)}));return null!=m?m:[v(e,h,n,c)]}if((0,d.isInputObjectType)(t)){if(!(0,s.default)(e))return void n((0,f.pathToArray)(c),e,new p.GraphQLError('Expected type \"'.concat(t.name,'\" to be an object.')));for(var g={},y=t.getFields(),b=0,E=(0,r.default)(y);b{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getOperationAST=function(e,t){for(var n=null,i=0,o=e.definitions;i{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.getOperationRootType=function(e,t){if(\"query\"===t.operation){var n=e.getQueryType();if(!n)throw new r.GraphQLError(\"Schema does not define the required query root type.\",t);return n}if(\"mutation\"===t.operation){var i=e.getMutationType();if(!i)throw new r.GraphQLError(\"Schema is not configured for mutations.\",t);return i}if(\"subscription\"===t.operation){var o=e.getSubscriptionType();if(!o)throw new r.GraphQLError(\"Schema is not configured for subscriptions.\",t);return o}throw new r.GraphQLError(\"Can only have query, mutation and subscription operations.\",t)};var r=n(6583)},7839:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.isEqualType=function e(t,n){return t===n||((0,r.isNonNullType)(t)&&(0,r.isNonNullType)(n)||!(!(0,r.isListType)(t)||!(0,r.isListType)(n)))&&e(t.ofType,n.ofType)},t.isTypeSubTypeOf=function e(t,n,i){return n===i||((0,r.isNonNullType)(i)?!!(0,r.isNonNullType)(n)&&e(t,n.ofType,i.ofType):(0,r.isNonNullType)(n)?e(t,n.ofType,i):(0,r.isListType)(i)?!!(0,r.isListType)(n)&&e(t,n.ofType,i.ofType):!(0,r.isListType)(n)&&((0,r.isAbstractType)(i)&&((0,r.isInterfaceType)(n)||(0,r.isObjectType)(n))&&t.isSubType(i,n)))},t.doTypesOverlap=function(e,t,n){return t===n||((0,r.isAbstractType)(t)?(0,r.isAbstractType)(n)?e.getPossibleTypes(t).some((function(t){return e.isSubType(n,t)})):e.isSubType(t,n):!!(0,r.isAbstractType)(n)&&e.isSubType(n,t))};var r=n(6751)},5910:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.typeFromAST=function e(t,n){var s;return n.kind===o.Kind.LIST_TYPE?(s=e(t,n.type))&&new a.GraphQLList(s):n.kind===o.Kind.NON_NULL_TYPE?(s=e(t,n.type))&&new a.GraphQLNonNull(s):n.kind===o.Kind.NAMED_TYPE?t.getType(n.name.value):void(0,i.default)(0,\"Unexpected type node: \"+(0,r.default)(n))};var r=s(n(8048)),i=s(n(5006)),o=n(5325),a=n(6751);function s(e){return e&&e.__esModule?e:{default:e}}},745:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.valueFromAST=function e(t,n,u){if(t){if(t.kind===s.Kind.VARIABLE){var f=t.name.value;if(null==u||void 0===u[f])return;var p=u[f];if(null===p&&(0,l.isNonNullType)(n))return;return p}if((0,l.isNonNullType)(n)){if(t.kind===s.Kind.NULL)return;return e(t,n.ofType,u)}if(t.kind===s.Kind.NULL)return null;if((0,l.isListType)(n)){var d=n.ofType;if(t.kind===s.Kind.LIST){for(var h=[],m=0,v=t.values;m{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.valueFromASTUntyped=function e(t,n){switch(t.kind){case a.Kind.NULL:return null;case a.Kind.INT:return parseInt(t.value,10);case a.Kind.FLOAT:return parseFloat(t.value);case a.Kind.STRING:case a.Kind.ENUM:case a.Kind.BOOLEAN:return t.value;case a.Kind.LIST:return t.values.map((function(t){return e(t,n)}));case a.Kind.OBJECT:return(0,o.default)(t.fields,(function(e){return e.name.value}),(function(t){return e(t.value,n)}));case a.Kind.VARIABLE:return null==n?void 0:n[t.name.value]}(0,i.default)(0,\"Unexpected value node: \"+(0,r.default)(t))};var r=s(n(8048)),i=s(n(5006)),o=s(n(2347)),a=n(5325);function s(e){return e&&e.__esModule?e:{default:e}}},9542:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"Z\",{enumerable:!0,get:function(){return r.ExecutableDefinitionsRule}});var r=n(9220)},9220:(e,t,n)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.ExecutableDefinitionsRule=function(e){return{Document:function(t){for(var n=0,a=t.definitions;n{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?p/l:p*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*m}},7475:(e,t,n)=>{var r=null;\"undefined\"!=typeof WebSocket?r=WebSocket:\"undefined\"!=typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:\"undefined\"!=typeof window?r=window.WebSocket||window.MozWebSocket:\"undefined\"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),e.exports=r},251:(e,t,n)=>{\"use strict\";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return\"[object Function]\"===i(e)}function a(e){return e.replace(/[.?*+^$[\\]\\\\(){}|-]/g,\"\\\\$&\")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={\"http:\":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp(\"^\\\\/\\\\/\"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,\"i\")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},\"https:\":\"http:\",\"ftp:\":\"http:\",\"//\":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp(\"^\"+n.re.src_auth+\"(?:localhost|(?:(?:\"+n.re.src_domain+\")\\\\.)+\"+n.re.src_domain_root+\")\"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,\"i\")),n.re.no_http.test(r)?t>=3&&\":\"===e[t-3]||t>=3&&\"/\"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},\"mailto:\":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(\"^\"+n.re.src_email_name+\"@\"+n.re.src_host_strict,\"i\")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u=\"biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф\".split(\"|\");function c(e){var t=e.re=n(7998)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace(\"%TLDS%\",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(\"a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]\"),r.push(t.src_xn),t.src_tlds=r.join(\"|\"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),\"i\"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),\"i\"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),\"i\"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),\"i\");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema \"'+e+'\": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,\"[object Object]\"===i(n))return\"[object RegExp]\"!==i(n.validate)?o(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(o(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return\"[object String]\"===i(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[\"\"]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(a).join(\"|\");e.re.schema_test=RegExp(\"(^|(?!_)(?:[><|]|\"+t.src_ZPCc+\"))(\"+c+\")\",\"i\"),e.re.schema_search=RegExp(\"(^|(?!_)(?:[><|]|\"+t.src_ZPCc+\"))(\"+c+\")\",\"ig\"),e.re.pretest=RegExp(\"(\"+e.re.schema_test.source+\")|(\"+e.re.host_fuzzy_test.source+\")|@\",\"i\"),function(e){e.__index__=-1,e.__text_cache__=\"\"}(e)}function f(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function p(e,t){var n=new f(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,t){if(!(this instanceof d))return new d(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=\"\",this.__text_cache__=\"\",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},d.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__[\"http:\"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__=\"mailto:\",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(p(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(p(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},d.prototype.normalize=function(e){e.schema||(e.url=\"http://\"+e.url),\"mailto:\"!==e.schema||/^mailto:/i.test(e.url)||(e.url=\"mailto:\"+e.url)},d.prototype.onCompile=function(){},e.exports=d},7998:(e,t,n)=>{\"use strict\";e.exports=function(e){var t={};return t.src_Any=n(3530).source,t.src_Cc=n(6889).source,t.src_Z=n(8442).source,t.src_P=n(7062).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(\"|\"),t.src_ZCc=[t.src_Z,t.src_Cc].join(\"|\"),t.src_pseudo_letter=\"(?:(?![><|]|\"+t.src_ZPCc+\")\"+t.src_Any+\")\",t.src_ip4=\"(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\",t.src_auth=\"(?:(?:(?!\"+t.src_ZCc+\"|[@/\\\\[\\\\]()]).)+@)?\",t.src_port=\"(?::(?:6(?:[0-4]\\\\d{3}|5(?:[0-4]\\\\d{2}|5(?:[0-2]\\\\d|3[0-5])))|[1-5]?\\\\d{1,4}))?\",t.src_host_terminator=\"(?=$|[><|]|\"+t.src_ZPCc+\")(?!-|_|:\\\\d|\\\\.-|\\\\.(?!$|\"+t.src_ZPCc+\"))\",t.src_path=\"(?:[/?#](?:(?!\"+t.src_ZCc+\"|[><|]|[()[\\\\]{}.,\\\"'?!\\\\-]).|\\\\[(?:(?!\"+t.src_ZCc+\"|\\\\]).)*\\\\]|\\\\((?:(?!\"+t.src_ZCc+\"|[)]).)*\\\\)|\\\\{(?:(?!\"+t.src_ZCc+'|[}]).)*\\\\}|\\\\\"(?:(?!'+t.src_ZCc+'|[\"]).)+\\\\\"|\\\\\\'(?:(?!'+t.src_ZCc+\"|[']).)+\\\\'|\\\\'(?=\"+t.src_pseudo_letter+\"|[-]).|\\\\.{2,4}[a-zA-Z0-9%/]|\\\\.(?!\"+t.src_ZCc+\"|[.]).|\"+(e&&e[\"---\"]?\"\\\\-(?!--(?:[^-]|$))(?:-*)|\":\"\\\\-+|\")+\"\\\\,(?!\"+t.src_ZCc+\").|\\\\!(?!\"+t.src_ZCc+\"|[!]).|\\\\?(?!\"+t.src_ZCc+\"|[?]).)+|\\\\/)?\",t.src_email_name='[\\\\-;:&=\\\\+\\\\$,\\\\.a-zA-Z0-9_][\\\\-;:&=\\\\+\\\\$,\\\\\"\\\\.a-zA-Z0-9_]*',t.src_xn=\"xn--[a-z0-9\\\\-]{1,59}\",t.src_domain_root=\"(?:\"+t.src_xn+\"|\"+t.src_pseudo_letter+\"{1,63})\",t.src_domain=\"(?:\"+t.src_xn+\"|(?:\"+t.src_pseudo_letter+\")|(?:\"+t.src_pseudo_letter+\"(?:-|\"+t.src_pseudo_letter+\"){0,61}\"+t.src_pseudo_letter+\"))\",t.src_host=\"(?:(?:(?:(?:\"+t.src_domain+\")\\\\.)*\"+t.src_domain+\"))\",t.tpl_host_fuzzy=\"(?:\"+t.src_ip4+\"|(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%)))\",t.tpl_host_no_ip_fuzzy=\"(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%))\",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=\"localhost|www\\\\.|\\\\.\\\\d{1,3}\\\\.|(?:\\\\.(?:%TLDS%)(?:\"+t.src_ZPCc+\"|>|$))\",t.tpl_email_fuzzy='(^|[><|]|\"|\\\\(|'+t.src_ZCc+\")(\"+t.src_email_name+\"@\"+t.tpl_host_fuzzy_strict+\")\",t.tpl_link_fuzzy=\"(^|(?![.:/\\\\-_@])(?:[$+<=>^`||]|\"+t.src_ZPCc+\"))((?![$+<=>^`||])\"+t.tpl_host_port_fuzzy_strict+t.src_path+\")\",t.tpl_link_no_ip_fuzzy=\"(^|(?![.:/\\\\-_@])(?:[$+<=>^`||]|\"+t.src_ZPCc+\"))((?![$+<=>^`||])\"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+\")\",t}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o=\"Expected a function\",a=\"__lodash_hash_undefined__\",s=\"__lodash_placeholder__\",l=32,u=128,c=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[[\"ary\",u],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",16],[\"flip\",512],[\"partial\",l],[\"partialRight\",64],[\"rearg\",256]],m=\"[object Arguments]\",v=\"[object Array]\",g=\"[object Boolean]\",y=\"[object Date]\",b=\"[object Error]\",E=\"[object Function]\",w=\"[object GeneratorFunction]\",T=\"[object Map]\",_=\"[object Number]\",k=\"[object Object]\",S=\"[object Promise]\",x=\"[object RegExp]\",N=\"[object Set]\",C=\"[object String]\",O=\"[object Symbol]\",A=\"[object WeakMap]\",I=\"[object ArrayBuffer]\",D=\"[object DataView]\",L=\"[object Float32Array]\",M=\"[object Float64Array]\",F=\"[object Int8Array]\",R=\"[object Int16Array]\",P=\"[object Int32Array]\",j=\"[object Uint8Array]\",V=\"[object Uint8ClampedArray]\",U=\"[object Uint16Array]\",B=\"[object Uint32Array]\",z=/\\b__p \\+= '';/g,G=/\\b(__p \\+=) '' \\+/g,q=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>\"']/g,W=RegExp(Q.source),Z=RegExp(H.source),K=/<%-([\\s\\S]+?)%>/g,Y=/<%([\\s\\S]+?)%>/g,$=/<%=([\\s\\S]+?)%>/g,J=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,X=/^\\w*$/,ee=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,te=/[\\\\^$.*+?()[\\]{}|]/g,ne=RegExp(te.source),re=/^\\s+/,ie=/\\s/,oe=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ae=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,se=/,? & /,le=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,ue=/[()=,{}\\[\\]\\/\\s]/,ce=/\\\\(\\\\)?/g,fe=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,pe=/\\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\\[object .+?Constructor\\]$/,ve=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\\d*)$/,ye=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,be=/($^)/,Ee=/['\\n\\r\\u2028\\u2029\\\\]/g,we=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Te=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",_e=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",ke=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Se=\"[\"+ke+\"]\",xe=\"[\"+we+\"]\",Ne=\"\\\\d+\",Ce=\"[\"+Te+\"]\",Oe=\"[^\\\\ud800-\\\\udfff\"+ke+Ne+\"\\\\u2700-\\\\u27bf\"+Te+_e+\"]\",Ae=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",Ie=\"[^\\\\ud800-\\\\udfff]\",De=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",Le=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",Me=\"[\"+_e+\"]\",Fe=\"(?:\"+Ce+\"|\"+Oe+\")\",Re=\"(?:\"+Me+\"|\"+Oe+\")\",Pe=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",je=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",Ve=\"(?:\"+xe+\"|\"+Ae+\")?\",Ue=\"[\\\\ufe0e\\\\ufe0f]?\",Be=Ue+Ve+\"(?:\\\\u200d(?:\"+[Ie,De,Le].join(\"|\")+\")\"+Ue+Ve+\")*\",ze=\"(?:\"+[\"[\\\\u2700-\\\\u27bf]\",De,Le].join(\"|\")+\")\"+Be,Ge=\"(?:\"+[Ie+xe+\"?\",xe,De,Le,\"[\\\\ud800-\\\\udfff]\"].join(\"|\")+\")\",qe=RegExp(\"['’]\",\"g\"),Qe=RegExp(xe,\"g\"),He=RegExp(Ae+\"(?=\"+Ae+\")|\"+Ge+Be,\"g\"),We=RegExp([Me+\"?\"+Ce+\"+\"+Pe+\"(?=\"+[Se,Me,\"$\"].join(\"|\")+\")\",Re+\"+\"+je+\"(?=\"+[Se,Me+Fe,\"$\"].join(\"|\")+\")\",Me+\"?\"+Fe+\"+\"+Pe,Me+\"+\"+je,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",Ne,ze].join(\"|\"),\"g\"),Ze=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\"+we+\"\\\\ufe0e\\\\ufe0f]\"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],$e=-1,Je={};Je[L]=Je[M]=Je[F]=Je[R]=Je[P]=Je[j]=Je[V]=Je[U]=Je[B]=!0,Je[m]=Je[v]=Je[I]=Je[g]=Je[D]=Je[y]=Je[b]=Je[E]=Je[T]=Je[_]=Je[k]=Je[x]=Je[N]=Je[C]=Je[A]=!1;var Xe={};Xe[m]=Xe[v]=Xe[I]=Xe[D]=Xe[g]=Xe[y]=Xe[L]=Xe[M]=Xe[F]=Xe[R]=Xe[P]=Xe[T]=Xe[_]=Xe[k]=Xe[x]=Xe[N]=Xe[C]=Xe[O]=Xe[j]=Xe[V]=Xe[U]=Xe[B]=!0,Xe[b]=Xe[E]=Xe[A]=!1;var et={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},tt=parseFloat,nt=parseInt,rt=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it=\"object\"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function(\"return this\")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,lt=st&&st.exports===at,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require(\"util\").types||ut&&ut.binding&&ut.binding(\"util\")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,pt=ct&&ct.isDate,dt=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,vt=ct&&ct.isTypedArray;function gt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function kt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=jt({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",IJ:\"IJ\",ij:\"ij\",Œ:\"Oe\",œ:\"oe\",ʼn:\"'n\",ſ:\"s\"}),Yt=jt({\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\",\"'\":\"'\"});function $t(e){return\"\\\\\"+et[e]}function Jt(e){return Ze.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n\",\""\":'\"',\"'\":\"'\"}),un=function e(t){var n,r=(t=null==t?ot:un.defaults(ot.Object(),t,un.pick(ot,Ye))).Array,ie=t.Date,we=t.Error,Te=t.Function,_e=t.Math,ke=t.Object,Se=t.RegExp,xe=t.String,Ne=t.TypeError,Ce=r.prototype,Oe=Te.prototype,Ae=ke.prototype,Ie=t[\"__core-js_shared__\"],De=Oe.toString,Le=Ae.hasOwnProperty,Me=0,Fe=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",Re=Ae.toString,Pe=De.call(ke),je=ot._,Ve=Se(\"^\"+De.call(Le).replace(te,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Ue=lt?t.Buffer:i,Be=t.Symbol,ze=t.Uint8Array,Ge=Ue?Ue.allocUnsafe:i,He=en(ke.getPrototypeOf,ke),Ze=ke.create,et=Ae.propertyIsEnumerable,rt=Ce.splice,it=Be?Be.isConcatSpreadable:i,at=Be?Be.iterator:i,st=Be?Be.toStringTag:i,ut=function(){try{var e=uo(ke,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),ct=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,At=ie&&ie.now!==ot.Date.now&&ie.now,jt=t.setTimeout!==ot.setTimeout&&t.setTimeout,cn=_e.ceil,fn=_e.floor,pn=ke.getOwnPropertySymbols,dn=Ue?Ue.isBuffer:i,hn=t.isFinite,mn=Ce.join,vn=en(ke.keys,ke),gn=_e.max,yn=_e.min,bn=ie.now,En=t.parseInt,wn=_e.random,Tn=Ce.reverse,_n=uo(t,\"DataView\"),kn=uo(t,\"Map\"),Sn=uo(t,\"Promise\"),xn=uo(t,\"Set\"),Nn=uo(t,\"WeakMap\"),Cn=uo(ke,\"create\"),On=Nn&&new Nn,An={},In=Vo(_n),Dn=Vo(kn),Ln=Vo(Sn),Mn=Vo(xn),Fn=Vo(Nn),Rn=Be?Be.prototype:i,Pn=Rn?Rn.valueOf:i,jn=Rn?Rn.toString:i;function Vn(e){if(ns(e)&&!Qa(e)&&!(e instanceof Gn)){if(e instanceof zn)return e;if(Le.call(e,\"__wrapped__\"))return Uo(e)}return new zn(e)}var Un=function(){function e(){}return function(t){if(!ts(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Gn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,n,r,o,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!ts(e))return e;var f=Qa(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&Le.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ni(e,s)}else{var p=po(e),d=p==E||p==w;if(Ka(e))return wi(e,l);if(p==k||p==m||d&&!o){if(s=u||d?{}:mo(e),!l)return u?function(e,t){return Ci(e,fo(e),t)}(e,function(e,t){return e&&Ci(t,Ls(t),e)}(s,e)):function(e,t){return Ci(e,co(e),t)}(e,rr(s,e))}else{if(!Xe[p])return o?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case I:return Ti(e);case g:case y:return new i(+e);case D:return function(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case M:case F:case R:case P:case j:case V:case U:case B:return _i(e,n);case T:return new i;case _:case C:return new i(e);case x:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new i;case O:return r=e,Pn?ke(Pn.call(r)):{}}}(e,p,l)}}a||(a=new Zn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,a))}));var v=f?i:(c?u?no:to:u?Ls:Ds)(e);return bt(v||e,(function(r,i){v&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function ur(e,t,n){if(\"function\"!=typeof e)throw new Ne(o);return Ao((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=_t,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=St(t,Gt(n))),r?(o=kt,a=!1):t.length>=200&&(o=Qt,a=!1,t=new Wn(t));e:for(;++i-1},Qn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(kn||Qn),string:new qn}},Hn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return so(this,e).get(e)},Hn.prototype.has=function(e){return so(this,e).has(e)},Hn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Wn.prototype.add=Wn.prototype.push=function(e){return this.__data__.set(e,a),this},Wn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ii(br),pr=Ii(Er,!0);function dr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?vr(s,t-1,n,r,i):xt(i,s):r||(i[i.length]=s)}return i}var gr=Di(),yr=Di(!0);function br(e,t){return e&&gr(e,t,Ds)}function Er(e,t){return e&&yr(e,t,Ds)}function wr(e,t){return Tt(t,(function(t){return Ja(e[t])}))}function Tr(e,t){for(var n=0,r=(t=gi(t,e)).length;null!=e&&nt}function xr(e,t){return null!=e&&Le.call(e,t)}function Nr(e,t){return null!=e&&t in ke(e)}function Cr(e,t,n){for(var o=n?kt:_t,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var p=e[l];l&&t&&(p=St(p,Gt(t))),c=yn(p.length,c),u[l]=!n&&(t||a>=120&&p.length>=120)?new Wn(l&&p):i}p=e[0];var d=-1,h=u[0];e:for(;++d=s?l:l*(\"desc\"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(Pr(e,(function(e,n,i){return{criteria:St(t,(function(t){return t(e)})),index:++r,value:e}})))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;go(i)?rt.call(e,i,1):ui(e,i)}}return e}function Hr(e,t){return e+fn(wn()*(t-e+1))}function Wr(e,t){var n=\"\";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Io(So(e,t,il),e+\"\")}function Kr(e){return Yn(Bs(e))}function Yr(e,t){var n=Bs(e);return Mo(n,ar(t,0,n.length))}function $r(e,t,n,r){if(!ts(e))return e;for(var o=-1,a=(t=gi(t,e)).length,s=a-1,l=e;null!=l&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!us(a)&&(n?a<=t:a=200){var u=t?null:Wi(e);if(u)return nn(u);a=!1,i=Qt,l=new Wn}else l=t?[]:s;e:for(;++r=r?e:ti(e,t,n)}var Ei=ct||function(e){return ot.clearTimeout(e)};function wi(e,t){if(t)return e.slice();var n=e.length,r=Ge?Ge(n):new e.constructor(n);return e.copy(r),r}function Ti(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function _i(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=us(e),s=t!==i,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&\"function\"==typeof a?(o--,a):i,s&&yo(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=ke(t);++r-1?o[a?t[s]:s]:i}}function Pi(e){return eo((function(t){var n=t.length,r=n,a=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(\"function\"!=typeof s)throw new Ne(o);if(a&&!l&&\"wrapper\"==io(s))var l=new zn([],!0)}for(r=l?r:n;++r1&&b.reverse(),d&&fl))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var p=-1,d=!0,h=2&n?new Wn:i;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?\"& \":\"\")+t[r],t=t.join(n>2?\", \":\" \"),e.replace(oe,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(r,function(e,t){return bt(h,(function(n){var r=\"_.\"+n[0];t&n[1]&&!_t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Lo(e){var t=0,n=0;return function(){var r=bn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Mo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n=\"function\"==typeof n?(e.pop(),n):i,aa(e,n)}));function da(e){var t=Vn(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Gn&&go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[o],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),va=Oi((function(e,t,n){Le.call(e,n)?++e[n]:ir(e,n,1)})),ga=Ri(qo),ya=Ri(Qo);function ba(e,t){return(Qa(e)?bt:fr)(e,ao(t,3))}function Ea(e,t){return(Qa(e)?Et:pr)(e,ao(t,3))}var wa=Oi((function(e,t,n){Le.call(e,n)?e[n].push(t):ir(e,n,[t])})),Ta=Zr((function(e,t,n){var i=-1,o=\"function\"==typeof t,a=Wa(e)?r(e.length):[];return fr(e,(function(e){a[++i]=o?gt(t,e,n):Or(e,t,n)})),a})),_a=Oi((function(e,t,n){ir(e,n,t)}));function ka(e,t){return(Qa(e)?St:Pr)(e,ao(t,3))}var Sa=Oi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xa=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,vr(t,1),[])})),Na=At||function(){return ot.Date.now()};function Ca(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function Oa(e,t){var n;if(\"function\"!=typeof t)throw new Ne(o);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=Zr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Aa));r|=l}return Ki(e,r,t,n,i)})),Ia=Zr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ia));r|=l}return Ki(t,r,e,n,i)}));function Da(e,t,n){var r,a,s,l,u,c,f=0,p=!1,d=!1,h=!0;if(\"function\"!=typeof e)throw new Ne(o);function m(t){var n=r,o=a;return r=a=i,f=t,l=e.apply(o,n)}function v(e){return f=e,u=Ao(y,t),p?m(e):l}function g(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=s}function y(){var e=Na();if(g(e))return b(e);u=Ao(y,function(e){var n=t-(e-c);return d?yn(n,s-(e-f)):n}(e))}function b(e){return u=i,h&&r?m(e):(r=a=i,l)}function E(){var e=Na(),n=g(e);if(r=arguments,a=this,c=e,n){if(u===i)return v(c);if(d)return Ei(u),u=Ao(y,t),m(c)}return u===i&&(u=Ao(y,t)),l}return t=gs(t)||0,ts(n)&&(p=!!n.leading,s=(d=\"maxWait\"in n)?gn(gs(n.maxWait)||0,t):s,h=\"trailing\"in n?!!n.trailing:h),E.cancel=function(){u!==i&&Ei(u),f=0,r=c=a=u=i},E.flush=function(){return u===i?l:b(Na())},E}var La=Zr((function(e,t){return ur(e,1,t)})),Ma=Zr((function(e,t,n){return ur(e,gs(t)||0,n)}));function Fa(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new Ne(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fa.Cache||Hn),n}function Ra(e){if(\"function\"!=typeof e)throw new Ne(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fa.Cache=Hn;var Pa=yi((function(e,t){var n=(t=1==t.length&&Qa(t[0])?St(t[0],Gt(ao())):St(vr(t,1),Gt(ao()))).length;return Zr((function(r){for(var i=-1,o=yn(r.length,n);++i=t})),qa=Ar(function(){return arguments}())?Ar:function(e){return ns(e)&&Le.call(e,\"callee\")&&!et.call(e,\"callee\")},Qa=r.isArray,Ha=ft?Gt(ft):function(e){return ns(e)&&kr(e)==I};function Wa(e){return null!=e&&es(e.length)&&!Ja(e)}function Za(e){return ns(e)&&Wa(e)}var Ka=dn||gl,Ya=pt?Gt(pt):function(e){return ns(e)&&kr(e)==y};function $a(e){if(!ns(e))return!1;var t=kr(e);return t==b||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!os(e)}function Ja(e){if(!ts(e))return!1;var t=kr(e);return t==E||t==w||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function Xa(e){return\"number\"==typeof e&&e==ms(e)}function es(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function ns(e){return null!=e&&\"object\"==typeof e}var rs=dt?Gt(dt):function(e){return ns(e)&&po(e)==T};function is(e){return\"number\"==typeof e||ns(e)&&kr(e)==_}function os(e){if(!ns(e)||kr(e)!=k)return!1;var t=He(e);if(null===t)return!0;var n=Le.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&De.call(n)==Pe}var as=ht?Gt(ht):function(e){return ns(e)&&kr(e)==x},ss=mt?Gt(mt):function(e){return ns(e)&&po(e)==N};function ls(e){return\"string\"==typeof e||!Qa(e)&&ns(e)&&kr(e)==C}function us(e){return\"symbol\"==typeof e||ns(e)&&kr(e)==O}var cs=vt?Gt(vt):function(e){return ns(e)&&es(e.length)&&!!Je[kr(e)]},fs=qi(Rr),ps=qi((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Wa(e))return ls(e)?an(e):Ni(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=po(e);return(t==T?Xt:t==N?nn:Bs)(e)}function hs(e){return e?(e=gs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function vs(e){return e?ar(ms(e),0,d):0}function gs(e){if(\"number\"==typeof e)return e;if(us(e))return p;if(ts(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=zt(e);var n=he.test(e);return n||ve.test(e)?nt(e.slice(2),n?2:8):de.test(e)?p:+e}function ys(e){return Ci(e,Ls(e))}function bs(e){return null==e?\"\":si(e)}var Es=Ai((function(e,t){if(To(t)||Wa(t))Ci(t,Ds(t),e);else for(var n in t)Le.call(t,n)&&er(e,n,t[n])})),ws=Ai((function(e,t){Ci(t,Ls(t),e)})),Ts=Ai((function(e,t,n,r){Ci(t,Ls(t),e,r)})),_s=Ai((function(e,t,n,r){Ci(t,Ds(t),e,r)})),ks=eo(or),Ss=Zr((function(e,t){e=ke(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n1),t})),Ci(e,no(e),n),r&&(n=sr(n,7,Ji));for(var i=t.length;i--;)ui(n,t[i]);return n})),Ps=eo((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=St(no(e),(function(e){return[e]}));return t=ao(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Vs=Zi(Ds),Us=Zi(Ls);function Bs(e){return null==e?[]:qt(e,Ds(e))}var zs=Mi((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return $s(bs(e).toLowerCase())}function qs(e){return(e=bs(e))&&e.replace(ye,Kt).replace(Qe,\"\")}var Qs=Mi((function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()})),Hs=Mi((function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()})),Ws=Li(\"toLowerCase\"),Zs=Mi((function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()})),Ks=Mi((function(e,t,n){return e+(n?\" \":\"\")+$s(t)})),Ys=Mi((function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()})),$s=Li(\"toUpperCase\");function Js(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(We)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Zr((function(e,t){try{return gt(e,i,t)}catch(e){return $a(e)?e:new we(e)}})),el=eo((function(e,t){return bt(t,(function(t){t=jo(t),ir(e,t,Aa(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Pi(),rl=Pi(!0);function il(e){return e}function ol(e){return Mr(\"function\"==typeof e?e:sr(e,1))}var al=Zr((function(e,t){return function(n){return Or(n,e,t)}})),sl=Zr((function(e,t){return function(n){return Or(e,n,t)}}));function ll(e,t,n){var r=Ds(t),i=wr(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=wr(t,Ds(t)));var o=!(ts(n)&&\"chain\"in n&&!n.chain),a=Ja(e);return bt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ni(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,xt([this.value()],arguments))})})),e}function ul(){}var cl=Bi(St),fl=Bi(wt),pl=Bi(Ot);function dl(e){return bo(e)?Pt(jo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var hl=Gi(),ml=Gi(!0);function vl(){return[]}function gl(){return!1}var yl,bl=Ui((function(e,t){return e+t}),0),El=Hi(\"ceil\"),wl=Ui((function(e,t){return e/t}),1),Tl=Hi(\"floor\"),_l=Ui((function(e,t){return e*t}),1),kl=Hi(\"round\"),Sl=Ui((function(e,t){return e-t}),0);return Vn.after=function(e,t){if(\"function\"!=typeof t)throw new Ne(o);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Ca,Vn.assign=Es,Vn.assignIn=ws,Vn.assignInWith=Ts,Vn.assignWith=_s,Vn.at=ks,Vn.before=Oa,Vn.bind=Aa,Vn.bindAll=el,Vn.bindKey=Ia,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qa(e)?e:[e]},Vn.chain=da,Vn.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:gn(ms(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,l=r(cn(o/t));ao?0:o+n),(r=r===i||r>o?o:ms(r))<0&&(r+=o),r=n>r?0:vs(r);n>>0)?(e=bs(e))&&(\"string\"==typeof t||null!=t&&!as(t))&&!(t=si(t))&&Jt(e)?bi(an(e),0,n):e.split(t,n):[]},Vn.spread=function(e,t){if(\"function\"!=typeof e)throw new Ne(o);return t=null==t?0:gn(ms(t),0),Zr((function(n){var r=n[t],i=bi(n,0,t);return r&&xt(i,r),gt(e,this,i)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Vn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ms(t))<0?0:t):[]},Vn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ms(t)))<0?0:t,r):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?fi(e,ao(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?fi(e,ao(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var r=!0,i=!0;if(\"function\"!=typeof e)throw new Ne(o);return ts(n)&&(r=\"leading\"in n?!!n.leading:r,i=\"trailing\"in n?!!n.trailing:i),Da(e,t,{leading:r,maxWait:t,trailing:i})},Vn.thru=ha,Vn.toArray=ds,Vn.toPairs=Vs,Vn.toPairsIn=Us,Vn.toPath=function(e){return Qa(e)?St(e,jo):us(e)?[e]:Ni(Po(bs(e)))},Vn.toPlainObject=ys,Vn.transform=function(e,t,n){var r=Qa(e),i=r||Ka(e)||cs(e);if(t=ao(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ts(e)&&Ja(o)?Un(He(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Vn.unary=function(e){return Ca(e,1)},Vn.union=na,Vn.unionBy=ra,Vn.unionWith=ia,Vn.uniq=function(e){return e&&e.length?li(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?li(e,ao(t,2)):[]},Vn.uniqWith=function(e,t){return t=\"function\"==typeof t?t:i,e&&e.length?li(e,i,t):[]},Vn.unset=function(e,t){return null==e||ui(e,t)},Vn.unzip=oa,Vn.unzipWith=aa,Vn.update=function(e,t,n){return null==e?e:ci(e,t,vi(n))},Vn.updateWith=function(e,t,n,r){return r=\"function\"==typeof r?r:i,null==e?e:ci(e,t,vi(n),r)},Vn.values=Bs,Vn.valuesIn=function(e){return null==e?[]:qt(e,Ls(e))},Vn.without=sa,Vn.words=Js,Vn.wrap=function(e,t){return ja(vi(t),e)},Vn.xor=la,Vn.xorBy=ua,Vn.xorWith=ca,Vn.zip=fa,Vn.zipObject=function(e,t){return hi(e||[],t||[],er)},Vn.zipObjectDeep=function(e,t){return hi(e||[],t||[],$r)},Vn.zipWith=pa,Vn.entries=Vs,Vn.entriesIn=Us,Vn.extend=ws,Vn.extendWith=Ts,ll(Vn,Vn),Vn.add=bl,Vn.attempt=Xs,Vn.camelCase=zs,Vn.capitalize=Gs,Vn.ceil=El,Vn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=gs(n))==n?n:0),t!==i&&(t=(t=gs(t))==t?t:0),ar(gs(e),t,n)},Vn.clone=function(e){return sr(e,4)},Vn.cloneDeep=function(e){return sr(e,5)},Vn.cloneDeepWith=function(e,t){return sr(e,5,t=\"function\"==typeof t?t:i)},Vn.cloneWith=function(e,t){return sr(e,4,t=\"function\"==typeof t?t:i)},Vn.conformsTo=function(e,t){return null==t||lr(e,t,Ds(t))},Vn.deburr=qs,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=wl,Vn.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,o=n=n===i?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Vn.eq=Ba,Vn.escape=function(e){return(e=bs(e))&&Z.test(e)?e.replace(H,Yt):e},Vn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,\"\\\\$&\"):e},Vn.every=function(e,t,n){var r=Qa(e)?wt:dr;return n&&yo(e,t,n)&&(t=i),r(e,ao(t,3))},Vn.find=ga,Vn.findIndex=qo,Vn.findKey=function(e,t){return It(e,ao(t,3),br)},Vn.findLast=ya,Vn.findLastIndex=Qo,Vn.findLastKey=function(e,t){return It(e,ao(t,3),Er)},Vn.floor=Tl,Vn.forEach=ba,Vn.forEachRight=Ea,Vn.forIn=function(e,t){return null==e?e:gr(e,ao(t,3),Ls)},Vn.forInRight=function(e,t){return null==e?e:yr(e,ao(t,3),Ls)},Vn.forOwn=function(e,t){return e&&br(e,ao(t,3))},Vn.forOwnRight=function(e,t){return e&&Er(e,ao(t,3))},Vn.get=Ns,Vn.gt=za,Vn.gte=Ga,Vn.has=function(e,t){return null!=e&&ho(e,t,xr)},Vn.hasIn=Cs,Vn.head=Wo,Vn.identity=il,Vn.includes=function(e,t,n,r){e=Wa(e)?e:Bs(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=gn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Lt(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=gn(r+i,0)),Lt(e,t,i)},Vn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=f},Vn.isSet=ss,Vn.isString=ls,Vn.isSymbol=us,Vn.isTypedArray=cs,Vn.isUndefined=function(e){return e===i},Vn.isWeakMap=function(e){return ns(e)&&po(e)==A},Vn.isWeakSet=function(e){return ns(e)&&\"[object WeakSet]\"==kr(e)},Vn.join=function(e,t){return null==e?\"\":mn.call(e,t)},Vn.kebabCase=Qs,Vn.last=$o,Vn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ms(n))<0?gn(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Dt(e,Ft,o,!0)},Vn.lowerCase=Hs,Vn.lowerFirst=Ws,Vn.lt=fs,Vn.lte=ps,Vn.max=function(e){return e&&e.length?hr(e,il,Sr):i},Vn.maxBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Sr):i},Vn.mean=function(e){return Rt(e,il)},Vn.meanBy=function(e,t){return Rt(e,ao(t,2))},Vn.min=function(e){return e&&e.length?hr(e,il,Rr):i},Vn.minBy=function(e,t){return e&&e.length?hr(e,ao(t,2),Rr):i},Vn.stubArray=vl,Vn.stubFalse=gl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return\"\"},Vn.stubTrue=function(){return!0},Vn.multiply=_l,Vn.nth=function(e,t){return e&&e.length?Br(e,ms(t)):i},Vn.noConflict=function(){return ot._===this&&(ot._=je),this},Vn.noop=ul,Vn.now=Na,Vn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(fn(i),n)+e+zi(cn(i),n)},Vn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?on(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=wn();return yn(e+o*(t-e+tt(\"1e-\"+((o+\"\").length-1))),t)}return Hr(e,t)},Vn.reduce=function(e,t,n){var r=Qa(e)?Nt:Vt,i=arguments.length<3;return r(e,ao(t,4),n,i,fr)},Vn.reduceRight=function(e,t,n){var r=Qa(e)?Ct:Vt,i=arguments.length<3;return r(e,ao(t,4),n,i,pr)},Vn.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ms(t),Wr(bs(e),t)},Vn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,n){var r=-1,o=(t=gi(t,e)).length;for(o||(o=1,e=i);++rf)return[];var n=d,r=yn(e,d);t=ao(t),e-=d;for(var i=Bt(r,t);++n=a)return e;var l=n-on(r);if(l<1)return r;var u=s?bi(s,0,l).join(\"\"):e.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),as(o)){if(e.slice(l).search(o)){var c,f=u;for(o.global||(o=Se(o.source,bs(pe.exec(o))+\"g\")),o.lastIndex=0;c=o.exec(f);)var p=c.index;u=u.slice(0,p===i?l:p)}}else if(e.indexOf(si(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+r},Vn.unescape=function(e){return(e=bs(e))&&W.test(e)?e.replace(Q,ln):e},Vn.uniqueId=function(e){var t=++Me;return bs(e)+t},Vn.upperCase=Ys,Vn.upperFirst=$s,Vn.each=ba,Vn.eachRight=Ea,Vn.first=Wo,ll(Vn,(yl={},br(Vn,(function(e,t){Le.call(Vn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),Vn.VERSION=\"4.17.21\",bt([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],(function(e){Vn[e].placeholder=Vn})),bt([\"drop\",\"take\"],(function(e,t){Gn.prototype[e]=function(n){n=n===i?1:gn(ms(n),0);var r=this.__filtered__&&!t?new Gn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?\"Right\":\"\")}),r},Gn.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}})),bt([\"filter\",\"map\",\"takeWhile\"],(function(e,t){var n=t+1,r=1==n||3==n;Gn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ao(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt([\"head\",\"last\"],(function(e,t){var n=\"take\"+(t?\"Right\":\"\");Gn.prototype[e]=function(){return this[n](1).value()[0]}})),bt([\"initial\",\"tail\"],(function(e,t){var n=\"drop\"+(t?\"\":\"Right\");Gn.prototype[e]=function(){return this.__filtered__?new Gn(this):this[n](1)}})),Gn.prototype.compact=function(){return this.filter(il)},Gn.prototype.find=function(e){return this.filter(e).head()},Gn.prototype.findLast=function(e){return this.reverse().find(e)},Gn.prototype.invokeMap=Zr((function(e,t){return\"function\"==typeof e?new Gn(this):this.map((function(n){return Or(n,e,t)}))})),Gn.prototype.reject=function(e){return this.filter(Ra(ao(e)))},Gn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Gn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Gn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gn.prototype.toArray=function(){return this.take(d)},br(Gn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Vn[r?\"take\"+(\"last\"==t?\"Right\":\"\"):t],a=r||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Gn,u=s[0],c=l||Qa(t),f=function(e){var t=o.apply(Vn,xt([e],s));return r&&p?t[0]:t};c&&n&&\"function\"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=l&&!d;if(!a&&c){t=m?t:new Gn(this);var v=e.apply(t,s);return v.__actions__.push({func:ha,args:[f],thisArg:i}),new zn(v,p)}return h&&m?e.apply(this,s):(v=this.thru(f),h?r?v.value()[0]:v.value():v)})})),bt([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Qa(i)?i:[],e)}return this[n]((function(n){return t.apply(Qa(n)?n:[],e)}))}})),br(Gn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+\"\";Le.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[ji(i,2).name]=[{name:\"wrapper\",func:i}],Gn.prototype.clone=function(){var e=new Gn(this.__wrapped__);return e.__actions__=Ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ni(this.__views__),e},Gn.prototype.reverse=function(){if(this.__filtered__){var e=new Gn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qa(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Uo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gn){var t=e;return this.__actions__.length&&(t=new Gn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:i}),new zn(t,this.__chain__)}return this.thru(ta)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,at&&(Vn.prototype[at]=function(){return this}),Vn}();ot._=un,(r=function(){return un}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},3054:(e,t,n)=>{\"use strict\";e.exports=n(1671)},3906:(e,t,n)=>{\"use strict\";e.exports=n(2059)},5373:e=>{\"use strict\";e.exports=[\"address\",\"article\",\"aside\",\"base\",\"basefont\",\"blockquote\",\"body\",\"caption\",\"center\",\"col\",\"colgroup\",\"dd\",\"details\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"frame\",\"frameset\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hr\",\"html\",\"iframe\",\"legend\",\"li\",\"link\",\"main\",\"menu\",\"menuitem\",\"meta\",\"nav\",\"noframes\",\"ol\",\"optgroup\",\"option\",\"p\",\"param\",\"section\",\"source\",\"summary\",\"table\",\"tbody\",\"td\",\"tfoot\",\"th\",\"thead\",\"title\",\"tr\",\"track\",\"ul\"]},9372:e=>{\"use strict\";var t=\"<[A-Za-z][A-Za-z0-9\\\\-]*(?:\\\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\\\s*=\\\\s*(?:[^\\\"'=<>`\\\\x00-\\\\x20]+|'[^']*'|\\\"[^\\\"]*\\\"))?)*\\\\s*\\\\/?>\",n=\"<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>\",r=new RegExp(\"^(?:\"+t+\"|\"+n+\"|\\x3c!----\\x3e|\\x3c!--(?:-?[^>-])(?:-?[^-])*--\\x3e|<[?].*?[?]>|]*>|)\"),i=new RegExp(\"^(?:\"+t+\"|\"+n+\")\");e.exports.n=r,e.exports.q=i},5292:(e,t,n)=>{\"use strict\";var r=Object.prototype.hasOwnProperty;function i(e,t){return r.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function a(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var s=/\\\\([!\"#$%&'()*+,\\-.\\/:;<=>?@[\\\\\\]^_`{|}~])/g,l=new RegExp(s.source+\"|\"+/&([a-z#][a-z0-9]{1,31});/gi.source,\"gi\"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=n(3906),f=/[&<>\"]/,p=/[&<>\"]/g,d={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\"};function h(e){return d[e]}var m=/[.?*+^$[\\]\\\\(){}|-]/g,v=n(7062);t.lib={},t.lib.mdurl=n(4976),t.lib.ucmicro=n(8579),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if(\"object\"!=typeof t)throw new TypeError(t+\"must be object\");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return\"[object String]\"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf(\"\\\\\")<0?e:e.replace(s,\"$1\")},t.unescapeAll=function(e){return e.indexOf(\"\\\\\")<0&&e.indexOf(\"&\")<0?e:e.replace(l,(function(e,t,n){return t||function(e,t){var n=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&u.test(t)&&o(n=\"x\"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?a(n):e}(e,n)}))},t.isValidEntityCode=o,t.fromCodePoint=a,t.escapeHtml=function(e){return f.test(e)?e.replace(p,h):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return v.test(e)},t.escapeRE=function(e){return e.replace(m,\"\\\\$&\")},t.normalizeReference=function(e){return e=e.trim().replace(/\\s+/g,\" \"),\"Ṿ\"===\"ẞ\".toLowerCase()&&(e=e.replace(/ẞ/g,\"ß\")),e.toLowerCase().toUpperCase()}},4960:(e,t,n)=>{\"use strict\";t.parseLinkLabel=n(1519),t.parseLinkDestination=n(5361),t.parseLinkTitle=n(5477)},5361:(e,t,n)=>{\"use strict\";var r=n(5292).unescapeAll;e.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:\"\"};if(60===e.charCodeAt(t)){for(t++;t{\"use strict\";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos{\"use strict\";var r=n(5292).unescapeAll;e.exports=function(e,t,n){var i,o,a=0,s=t,l={ok:!1,pos:0,lines:0,str:\"\"};if(t>=n)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t{\"use strict\";var r=n(5292),i=n(4960),o=n(3931),a=n(8777),s=n(9101),l=n(4197),u=n(251),c=n(4976),f=n(8058),p={default:n(1602),zero:n(8373),commonmark:n(5112)},d=/^(vbscript|javascript|file|data):/,h=/^data:image\\/(gif|png|jpeg|webp);/;function m(e){var t=e.trim().toLowerCase();return!d.test(t)||!!h.test(t)}var v=[\"http:\",\"https:\",\"mailto:\"];function g(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function y(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||v.indexOf(t.protocol)>=0))try{t.hostname=f.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t))}function b(e,t){if(!(this instanceof b))return new b(e,t);t||r.isString(e)||(t=e||{},e=\"default\"),this.inline=new l,this.block=new s,this.core=new a,this.renderer=new o,this.linkify=new u,this.validateLink=m,this.normalizeLink=g,this.normalizeLinkText=y,this.utils=r,this.helpers=r.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return r.assign(this.options,e),this},b.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=p[t=e]))throw new Error('Wrong `markdown-it` preset \"'+t+'\", check name');if(!e)throw new Error(\"Wrong `markdown-it` preset, can't be empty\");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),[\"core\",\"block\",\"inline\"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error(\"MarkdownIt. Failed to enable unknown rule(s): \"+r);return this},b.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),[\"core\",\"block\",\"inline\"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error(\"MarkdownIt. Failed to disable unknown rule(s): \"+r);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if(\"string\"!=typeof e)throw new Error(\"Input data should be a String\");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},9101:(e,t,n)=>{\"use strict\";var r=n(1390),i=[[\"table\",n(3031),[\"paragraph\",\"reference\"]],[\"code\",n(1094)],[\"fence\",n(5883),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"blockquote\",n(4261),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"hr\",n(1208),[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"list\",n(1551),[\"paragraph\",\"reference\",\"blockquote\"]],[\"reference\",n(4600)],[\"heading\",n(4758),[\"paragraph\",\"reference\",\"blockquote\"]],[\"lheading\",n(8971)],[\"html_block\",n(5231),[\"paragraph\",\"reference\",\"blockquote\"]],[\"paragraph\",n(2248)]];function o(){this.ruler=new r;for(var e=0;e=n))&&!(e.sCount[a]=l){e.line=n;break}for(r=0;r{\"use strict\";var r=n(1390),i=[[\"normalize\",n(7244)],[\"block\",n(2304)],[\"inline\",n(4059)],[\"linkify\",n(9357)],[\"replacements\",n(8919)],[\"smartquotes\",n(3616)]];function o(){this.ruler=new r;for(var e=0;e{\"use strict\";var r=n(1390),i=[[\"text\",n(1414)],[\"newline\",n(4537)],[\"escape\",n(8199)],[\"backticks\",n(8706)],[\"strikethrough\",n(338).w],[\"emphasis\",n(7147).w],[\"link\",n(6267)],[\"image\",n(2641)],[\"autolink\",n(1858)],[\"html_inline\",n(3095)],[\"entity\",n(5796)]],o=[[\"balance_pairs\",n(2877)],[\"strikethrough\",n(338).g],[\"emphasis\",n(7147).g],[\"text_collapse\",n(3659)]];function a(){var e;for(this.ruler=new r,e=0;e=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},a.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules(\"\")).length,i=0;i{\"use strict\";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"blockquote\",\"code\",\"fence\",\"heading\",\"hr\",\"html_block\",\"lheading\",\"list\",\"reference\",\"paragraph\"]},inline:{rules:[\"autolink\",\"backticks\",\"emphasis\",\"entity\",\"escape\",\"html_inline\",\"image\",\"link\",\"newline\",\"text\"],rules2:[\"balance_pairs\",\"emphasis\",\"text_collapse\"]}}}},1602:e=>{\"use strict\";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},8373:e=>{\"use strict\";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"paragraph\"]},inline:{rules:[\"text\"],rules2:[\"balance_pairs\",\"text_collapse\"]}}}},3931:(e,t,n)=>{\"use strict\";var r=n(5292).assign,i=n(5292).unescapeAll,o=n(5292).escapeHtml,a={};function s(){this.rules=r({},a)}a.code_inline=function(e,t,n,r,i){var a=e[t];return\"\"+o(e[t].content)+\"\"},a.code_block=function(e,t,n,r,i){var a=e[t];return\"\"+o(e[t].content)+\"\\n\"},a.fence=function(e,t,n,r,a){var s,l,u,c,f=e[t],p=f.info?i(f.info).trim():\"\",d=\"\";return p&&(d=p.split(/\\s+/g)[0]),0===(s=n.highlight&&n.highlight(f.content,d)||o(f.content)).indexOf(\"\"+s+\"\\n\"):\"
\"+s+\"
\\n\"},a.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex(\"alt\")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},a.hardbreak=function(e,t,n){return n.xhtmlOut?\"
\\n\":\"
\\n\"},a.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?\"
\\n\":\"
\\n\":\"\\n\"},a.text=function(e,t){return o(e[t].content)},a.html_block=function(e,t){return e[t].content},a.html_inline=function(e,t){return e[t].content},s.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return\"\";for(r=\"\",t=0,n=e.attrs.length;t\\n\":\">\")},s.prototype.renderInline=function(e,t,n){for(var r,i=\"\",o=this.rules,a=0,s=e.length;a{\"use strict\";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t{\"use strict\";var r=n(5292).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u,c,f,p,d,h,m,v,g,y,b,E,w,T,_,k,S=e.lineMax,x=e.bMarks[t]+e.tShift[t],N=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(i)return!0;for(l=d=e.sCount[t]+x-(e.bMarks[t]+e.tShift[t]),32===e.src.charCodeAt(x)?(x++,l++,d++,o=!1,E=!0):9===e.src.charCodeAt(x)?(E=!0,(e.bsCount[t]+d)%4==3?(x++,l++,d++,o=!1):o=!0):E=!1,h=[e.bMarks[t]],e.bMarks[t]=x;x=N,y=[e.sCount[t]],e.sCount[t]=d-l,b=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],T=e.md.block.ruler.getRules(\"blockquote\"),g=e.parentType,e.parentType=\"blockquote\",k=!1,p=t+1;p=(N=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(x++)||k){if(c)break;for(w=!1,s=0,u=T.length;s=N,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(E?1:0),y.push(e.sCount[p]),e.sCount[p]=d-l,b.push(e.tShift[p]),e.tShift[p]=x-e.bMarks[p]}for(v=e.blkIndent,e.blkIndent=0,(_=e.push(\"blockquote_open\",\"blockquote\",1)).markup=\">\",_.map=f=[t,0],e.md.block.tokenize(e,t,p),(_=e.push(\"blockquote_close\",\"blockquote\",-1)).markup=\">\",e.lineMax=S,e.parentType=g,f[1]=e.line,s=0;s{\"use strict\";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r=4))break;i=++r}return e.line=i,(o=e.push(\"code_block\",\"code\",0)).content=e.getLines(t,i,4+e.blkIndent,!0),o.map=[t,e.line],!0}},5883:e=>{\"use strict\";e.exports=function(e,t,n,r){var i,o,a,s,l,u,c,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(l=p,(o=(p=e.skipChars(p,i))-l)<3)return!1;if(c=e.src.slice(l,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(p=l=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]=4||(p=e.skipChars(p,i))-l{\"use strict\";var r=n(5292).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(u))||u>=c)return!1;for(a=1,o=e.src.charCodeAt(++u);35===o&&u6||uu&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(l=e.push(\"heading_open\",\"h\"+String(a),1)).markup=\"########\".slice(0,a),l.map=[t,e.line],(l=e.push(\"inline\",\"\",0)).content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push(\"heading_close\",\"h\"+String(a),-1)).markup=\"########\".slice(0,a)),0))}},1208:(e,t,n)=>{\"use strict\";var r=n(5292).isSpace;e.exports=function(e,t,n,i){var o,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(a=1;u{\"use strict\";var r=n(5373),i=n(9372).q,o=[[/^<(script|pre|style)(?=(\\s|>|$))/i,/<\\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\\?/,/\\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(\"^|$))\",\"i\"),/^$/,!0],[new RegExp(i.source+\"\\\\s*$\"),/^$/,!1]];e.exports=function(e,t,n,r){var i,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(l=e.src.slice(u,c),i=0;i{\"use strict\";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,f,p,d=t+1,h=e.md.block.ruler.getRules(\"paragraph\");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType=\"paragraph\";d3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d])<(u=e.eMarks[d])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=u)){c=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o{\"use strict\";var r=n(5292).isSpace;function i(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(M=!0),(C=o(e,t))>=0){if(p=!0,A=e.bMarks[t]+e.tShift[t],y=Number(e.src.substr(A,C-A-1)),M&&1!==y)return!1}else{if(!((C=i(e,t))>=0))return!1;p=!1}if(M&&e.skipSpaces(C)>=e.eMarks[t])return!1;if(g=e.src.charCodeAt(C-1),r)return!0;for(v=e.tokens.length,p?(L=e.push(\"ordered_list_open\",\"ol\",1),1!==y&&(L.attrs=[[\"start\",y]])):L=e.push(\"bullet_list_open\",\"ul\",1),L.map=m=[t,0],L.markup=String.fromCharCode(g),E=t,O=!1,D=e.md.block.ruler.getRules(\"list\"),_=e.parentType,e.parentType=\"list\";E=b?1:w-f)>4&&(c=1),u=f+c,(L=e.push(\"list_item_open\",\"li\",1)).markup=String.fromCharCode(g),L.map=d=[t,0],x=e.tight,S=e.tShift[t],k=e.sCount[t],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=w,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!O||(F=!1),O=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[t]=S,e.sCount[t]=k,e.tight=x,(L=e.push(\"list_item_close\",\"li\",-1)).markup=String.fromCharCode(g),E=t=e.line,d[1]=E,s=e.bMarks[t],E>=n)break;if(e.sCount[E]=4)break;for(I=!1,l=0,h=D.length;l{\"use strict\";e.exports=function(e,t){var n,r,i,o,a,s,l=t+1,u=e.md.block.ruler.getRules(\"paragraph\"),c=e.lineMax;for(s=e.parentType,e.parentType=\"paragraph\";l3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i{\"use strict\";var r=n(5292).normalizeReference,i=n(5292).isSpace;e.exports=function(e,t,n,o){var a,s,l,u,c,f,p,d,h,m,v,g,y,b,E,w,T=0,_=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],S=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_3||e.sCount[S]<0)){for(b=!1,f=0,p=E.length;f{\"use strict\";var r=n(9147),i=n(5292).isSpace;function o(e,t,n,r){var o,a,s,l,u,c,f,p;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=\"root\",this.level=0,this.result=\"\",p=!1,s=l=c=f=0,u=(a=this.src).length;l0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,n,r){var o,a,s,l,u,c,f,p=e;if(e>=t)return\"\";for(c=new Array(t-e),o=0;pn?new Array(a-n+1).join(\" \")+this.src.slice(l,u):this.src.slice(l,u)}return c.join(\"\")},o.prototype.Token=r,e.exports=o},3031:(e,t,n)=>{\"use strict\";var r=n(5292).isSpace;function i(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function o(e){var t,n=[],r=0,i=e.length,o=0,a=0,s=!1,l=0;for(t=e.charCodeAt(r);rn)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((u=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(s=e.src.charCodeAt(u++))&&45!==s&&58!==s)return!1;for(;u=4)return!1;if((d=(p=o(l.replace(/^\\||\\|$/g,\"\"))).length)>m.length)return!1;if(a)return!0;for((h=e.push(\"table_open\",\"table\",1)).map=g=[t,0],(h=e.push(\"thead_open\",\"thead\",1)).map=[t,t+1],(h=e.push(\"tr_open\",\"tr\",1)).map=[t,t+1],c=0;c=4);f++){for(p=o(l.replace(/^\\||\\|$/g,\"\")),h=e.push(\"tr_open\",\"tr\",1),c=0;c{\"use strict\";e.exports=function(e){var t;e.inlineMode?((t=new e.Token(\"inline\",\"\",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},4059:e=>{\"use strict\";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n{\"use strict\";var r=n(5292).arrayReplaceAt;function i(e){return/^<\\/a\\s*>/i.test(e)}e.exports=function(e){var t,n,o,a,s,l,u,c,f,p,d,h,m,v,g,y,b,E,w=e.tokens;if(e.md.options.linkify)for(n=0,o=w.length;n=0;t--)if(\"link_close\"!==(l=a[t]).type){if(\"html_inline\"===l.type&&(E=l.content,/^\\s]/i.test(E)&&m>0&&m--,i(l.content)&&m++),!(m>0)&&\"text\"===l.type&&e.md.linkify.test(l.content)){for(f=l.content,b=e.md.linkify.match(f),u=[],h=l.level,d=0,c=0;cd&&((s=new e.Token(\"text\",\"\",0)).content=f.slice(d,p),s.level=h,u.push(s)),(s=new e.Token(\"link_open\",\"a\",1)).attrs=[[\"href\",g]],s.level=h++,s.markup=\"linkify\",s.info=\"auto\",u.push(s),(s=new e.Token(\"text\",\"\",0)).content=y,s.level=h,u.push(s),(s=new e.Token(\"link_close\",\"a\",-1)).level=--h,s.markup=\"linkify\",s.info=\"auto\",u.push(s),d=b[c].lastIndex);d{\"use strict\";var t=/\\r\\n?|\\n/g,n=/\\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,\"\\n\")).replace(n,\"�\"),e.src=r}},8919:e=>{\"use strict\";var t=/\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/,n=/\\((c|tm|r|p)\\)/i,r=/\\((c|tm|r|p)\\)/gi,i={c:\"©\",r:\"®\",p:\"§\",tm:\"™\"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)\"text\"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),\"link_open\"===n.type&&\"auto\"===n.info&&i--,\"link_close\"===n.type&&\"auto\"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)\"text\"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\\+-/g,\"±\").replace(/\\.{2,}/g,\"…\").replace(/([?!])…/g,\"$1..\").replace(/([?!]){4,}/g,\"$1$1$1\").replace(/,{2,}/g,\",\").replace(/(^|[^-])---([^-]|$)/gm,\"$1—$2\").replace(/(^|\\s)--(\\s|$)/gm,\"$1–$2\").replace(/(^|[^-\\s])--([^-\\s]|$)/gm,\"$1–$2\")),\"link_open\"===r.type&&\"auto\"===r.info&&i--,\"link_close\"===r.type&&\"auto\"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)\"inline\"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}},3616:(e,t,n)=>{\"use strict\";var r=n(5292).isWhiteSpace,i=n(5292).isPunctChar,o=n(5292).isMdAsciiPunct,a=/['\"]/,s=/['\"]/g;function l(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function u(e,t){var n,a,u,c,f,p,d,h,m,v,g,y,b,E,w,T,_,k,S,x,N;for(S=[],n=0;n=0&&!(S[_].level<=d);_--);if(S.length=_+1,\"text\"===a.type){f=0,p=(u=a.content).length;e:for(;f=0)m=u.charCodeAt(c.index-1);else for(_=n-1;_>=0&&\"softbreak\"!==e[_].type&&\"hardbreak\"!==e[_].type;_--)if(\"text\"===e[_].type){m=e[_].content.charCodeAt(e[_].content.length-1);break}if(v=32,f=48&&m<=57&&(T=w=!1),w&&T&&(w=!1,T=y),w||T){if(T)for(_=S.length-1;_>=0&&(h=S[_],!(S[_].level=0;t--)\"inline\"===e.tokens[t].type&&a.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},7811:(e,t,n)=>{\"use strict\";var r=n(9147);function i(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=r,e.exports=i},1858:e=>{\"use strict\";var t=/^<([a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,n=/^<([a-zA-Z][a-zA-Z0-9+.\\-]{1,31}):([^<>\\x00-\\x20]*)>/;e.exports=function(e,r){var i,o,a,s,l,u,c=e.pos;return!(60!==e.src.charCodeAt(c)||(i=e.src.slice(c)).indexOf(\">\")<0||(n.test(i)?(s=(o=i.match(n))[0].slice(1,-1),l=e.md.normalizeLink(s),!e.md.validateLink(l)||(r||((u=e.push(\"link_open\",\"a\",1)).attrs=[[\"href\",l]],u.markup=\"autolink\",u.info=\"auto\",(u=e.push(\"text\",\"\",0)).content=e.md.normalizeLinkText(s),(u=e.push(\"link_close\",\"a\",-1)).markup=\"autolink\",u.info=\"auto\"),e.pos+=o[0].length,0)):!t.test(i)||(s=(a=i.match(t))[0].slice(1,-1),l=e.md.normalizeLink(\"mailto:\"+s),!e.md.validateLink(l)||(r||((u=e.push(\"link_open\",\"a\",1)).attrs=[[\"href\",l]],u.markup=\"autolink\",u.info=\"auto\",(u=e.push(\"text\",\"\",0)).content=e.md.normalizeLinkText(s),(u=e.push(\"link_close\",\"a\",-1)).markup=\"autolink\",u.info=\"auto\"),e.pos+=a[0].length,0))))}},8706:e=>{\"use strict\";e.exports=function(e,t){var n,r,i,o,a,s,l=e.pos;if(96!==e.src.charCodeAt(l))return!1;for(n=l,l++,r=e.posMax;l{\"use strict\";function t(e,t){var n,r,i,o,a,s,l,u,c={},f=t.length;for(n=0;na;r-=o.jump+1)if((o=t[r]).marker===i.marker&&(-1===s&&(s=r),o.open&&o.end<0&&o.level===i.level&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l))){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,s=-1;break}-1!==s&&(c[i.marker][(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n{\"use strict\";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?\"strong_open\":\"em_open\",o.tag=s?\"strong\":\"em\",o.nesting=1,o.markup=s?a+a:a,o.content=\"\",(o=e.tokens[i.token]).type=s?\"strong_close\":\"em_close\",o.tag=s?\"strong\":\"em\",o.nesting=-1,o.markup=s?a+a:a,o.content=\"\",s&&(e.tokens[t[n-1].token].content=\"\",e.tokens[t[r.end+1].token].content=\"\",n--))}e.exports.w=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n{\"use strict\";var r=n(3906),i=n(5292).has,o=n(5292).isValidEntityCode,a=n(5292).fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var n,u,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1{\"use strict\";for(var r=n(5292).isSpace,i=[],o=0;o<256;o++)i.push(0);\"\\\\!\\\"#$%&'()*+,./:;<=>?@[]^_`{|}~-\".split(\"\").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var n,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o{\"use strict\";var r=n(9372).n;e.exports=function(e,t){var n,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n)||!(i=e.src.slice(a).match(r))||(t||(e.push(\"html_inline\",\"\",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}},2641:(e,t,n)=>{\"use strict\";var r=n(5292).normalizeReference,i=n(5292).isSpace;e.exports=function(e,t){var n,o,a,s,l,u,c,f,p,d,h,m,v,g=\"\",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+1)=b)return!1;for(v=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(g=e.md.normalizeLink(p.str),e.md.validateLink(g)?c=p.pos:g=\"\"),v=c;c=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c=0?s=e.src.slice(v,c++):c=l+1):c=l+1,s||(s=e.src.slice(u,l)),!(f=e.env.references[r(s)]))return e.pos=y,!1;g=f.href,d=f.title}return t||(a=e.src.slice(u,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push(\"image\",\"img\",0)).attrs=n=[[\"src\",g],[\"alt\",\"\"]],h.children=m,h.content=a,d&&n.push([\"title\",d])),e.pos=c,e.posMax=b,!0}},6267:(e,t,n)=>{\"use strict\";var r=n(5292).normalizeReference,i=n(5292).isSpace;e.exports=function(e,t){var n,o,a,s,l,u,c,f,p,d=\"\",h=e.pos,m=e.posMax,v=e.pos,g=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=s+1)=m)return!1;for(v=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d=\"\"),v=u;u=m||41!==e.src.charCodeAt(u))&&(g=!0),u++}if(g){if(void 0===e.env.references)return!1;if(u=0?a=e.src.slice(v,u++):u=s+1):u=s+1,a||(a=e.src.slice(l,s)),!(f=e.env.references[r(a)]))return e.pos=h,!1;d=f.href,p=f.title}return t||(e.pos=l,e.posMax=s,e.push(\"link_open\",\"a\",1).attrs=n=[[\"href\",d]],p&&n.push([\"title\",p]),e.md.inline.tokenize(e),e.push(\"link_close\",\"a\",-1)),e.pos=u,e.posMax=m,!0}},4537:(e,t,n)=>{\"use strict\";var r=n(5292).isSpace;e.exports=function(e,t){var n,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(n=e.pending.length-1,i=e.posMax,t||(n>=0&&32===e.pending.charCodeAt(n)?n>=1&&32===e.pending.charCodeAt(n-1)?(e.pending=e.pending.replace(/ +$/,\"\"),e.push(\"hardbreak\",\"br\",0)):(e.pending=e.pending.slice(0,-1),e.push(\"softbreak\",\"br\",0)):e.push(\"softbreak\",\"br\",0)),o++;o{\"use strict\";var r=n(9147),i=n(5292).isWhiteSpace,o=n(5292).isPunctChar,a=n(5292).isMdAsciiPunct;function s(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=\"\",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}s.prototype.pushPending=function(){var e=new r(\"text\",\"\",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=\"\",e},s.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},s.prototype.scanDelims=function(e,t){var n,r,s,l,u,c,f,p,d,h=e,m=!0,v=!0,g=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h{\"use strict\";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n{\"use strict\";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r{\"use strict\";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t0&&r++,\"text\"===i[t].type&&t+1{\"use strict\";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content=\"\",this.markup=\"\",this.info=\"\",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+\" \"+t},e.exports=t},3771:e=>{\"use strict\";var t={};function n(e,r){var i;return\"string\"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n=55296&&l<=57343?\"���\":String.fromCharCode(l),t+=6):240==(248&r)&&t+91114111?u+=\"����\":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+=\"�\";return u}))}n.defaultChars=\";/?:@&=+$,#\",n.componentChars=\"\",e.exports=n},1737:e=>{\"use strict\";var t={};function n(e,r,i){var o,a,s,l,u,c=\"\";for(\"string\"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push(\"%\"+(\"0\"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+=\"%EF%BF%BD\"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=\";/?:@&=+$,-_.!~*'()#\",n.componentChars=\"-_.!~*'()\",e.exports=n},5024:e=>{\"use strict\";e.exports=function(e){var t=\"\";return t+=e.protocol||\"\",t+=e.slashes?\"//\":\"\",t+=e.auth?e.auth+\"@\":\"\",e.hostname&&-1!==e.hostname.indexOf(\":\")?t+=\"[\"+e.hostname+\"]\":t+=e.hostname||\"\",t+=e.port?\":\"+e.port:\"\",t+=e.pathname||\"\",(t+=e.search||\"\")+(e.hash||\"\")}},4976:(e,t,n)=>{\"use strict\";e.exports.encode=n(1737),e.exports.decode=n(3771),e.exports.format=n(5024),e.exports.parse=n(2084)},2084:e=>{\"use strict\";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,o=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat([\"<\",\">\",'\"',\"`\",\" \",\"\\r\",\"\\n\",\"\\t\"]),a=[\"'\"].concat(o),s=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(a),l=[\"/\",\"?\",\"#\"],u=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,\"javascript:\":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0};t.prototype.parse=function(e,t){var r,o,a,d,h,m=e;if(m=m.trim(),!t&&1===e.split(\"#\").length){var v=i.exec(m);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var g=n.exec(m);if(g&&(a=(g=g[0]).toLowerCase(),this.protocol=g,m=m.substr(g.length)),(t||g||m.match(/^\\/\\/[^@\\/]+@[^@\\/]+/))&&(!(h=\"//\"===m.substr(0,2))||g&&f[g]||(m=m.substr(2),this.slashes=!0)),!f[g]&&(h||g&&!p[g])){var y,b,E=-1;for(r=0;r127?S+=\"x\":S+=k[x];if(!S.match(u)){var C=_.slice(0,r),O=_.slice(r+1),A=k.match(c);A&&(C.push(A[1]),O.unshift(A[2])),O.length&&(m=O.join(\".\")+m),this.hostname=C.join(\".\");break}}}}this.hostname.length>255&&(this.hostname=\"\"),T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var I=m.indexOf(\"#\");-1!==I&&(this.hash=m.substr(I),m=m.slice(0,I));var D=m.indexOf(\"?\");return-1!==D&&(this.search=m.substr(D),m=m.slice(0,D)),m&&(this.pathname=m),p[a]&&this.hostname&&!this.pathname&&(this.pathname=\"\"),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(\":\"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}},675:(e,t)=>{const n=\"\\r\\n\\r\\n\",r=new TextDecoder;t.O=async function(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const i=e.headers.get(\"content-type\");if(!i||!~i.indexOf(\"multipart/mixed\"))return e;const o=i.indexOf(\"boundary=\");return async function*(e,t,i){const o=e.getReader(),a=!i||!i.multiple;let s=\"\",l=!0,u=[];try{let e;e:for(;!(e=await o.read()).done;){const i=r.decode(e.value),o=i.indexOf(t);let c=s.length;for(s+=i,~o?c+=o:c=s.indexOf(t),u=[];~c;){const e=s.substring(0,c),r=s.substring(c+t.length);if(l)l=!1;else{const t={},i=e.indexOf(n),o=s.slice(0,i).toString().trim().split(/\\r\\n/);let l;for(;l=o.shift();)l=l.split(\": \"),t[l.shift().toLowerCase()]=l.join(\": \");let c=e.substring(i+n.length,e.lastIndexOf(\"\\r\\n\")),f=!1;if(l=t[\"content-type\"],l&&~l.indexOf(\"application/json\"))try{c=JSON.parse(c),f=!0}catch(e){}if(l={headers:t,body:c,json:f},a?yield l:u.push(l),\"--\"===r.substring(0,2))break e}s=r,c=s.indexOf(t)}u.length&&(yield u)}}finally{u.length&&(yield u),o.releaseLock()}}(e.body,`--${~o?i.substring(o+9).trim().replace(/['\"]/g,\"\"):\"-\"}`,t)}},750:e=>{\"use strict\";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:\"Got unexpected \"+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,\"__esModule\",{value:!0})},7320:e=>{\"use strict\";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach((function(e){r[e]=e})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u{\"use strict\";n.r(t),n.d(t,{ucs2decode:()=>d,ucs2encode:()=>h,decode:()=>g,encode:()=>y,toASCII:()=>E,toUnicode:()=>b,default:()=>w});const r=2147483647,i=36,o=/^xn--/,a=/[^\\0-\\x7E]/,s=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,l={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},u=Math.floor,c=String.fromCharCode;function f(e){throw new RangeError(l[e])}function p(e,t){const n=e.split(\"@\");let r=\"\";n.length>1&&(r=n[0]+\"@\",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,\".\")).split(\".\"),t).join(\".\");return r+i}function d(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&nString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},v=function(e,t,n){let r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;r+=i)e=u(e/35);return u(r+36*e/(e+38))},g=function(e){const t=[],n=e.length;let o=0,a=128,s=72,l=e.lastIndexOf(\"-\");l<0&&(l=0);for(let n=0;n=128&&f(\"not-basic\"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p=n&&f(\"invalid-input\");const l=(c=e.charCodeAt(p++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:i;(l>=i||l>u((r-o)/t))&&f(\"overflow\"),o+=l*t;const d=a<=s?1:a>=s+26?26:a-s;if(lu(r/h)&&f(\"overflow\"),t*=h}const d=t.length+1;s=v(o-l,d,0==l),u(o/d)>r-a&&f(\"overflow\"),a+=u(o/d),o%=d,t.splice(o++,0,a)}var c;return String.fromCodePoint(...t)},y=function(e){const t=[];let n=(e=d(e)).length,o=128,a=0,s=72;for(const n of e)n<128&&t.push(c(n));let l=t.length,p=l;for(l&&t.push(\"-\");p=o&&tu((r-a)/d)&&f(\"overflow\"),a+=(n-o)*d,o=n;for(const n of e)if(nr&&f(\"overflow\"),n==o){let e=a;for(let n=i;;n+=i){const r=n<=s?1:n>=s+26?26:n-s;if(e{\"use strict\";var r=n(2784),i=n(7320),o=n(4616);function a(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n