(()=>{var eV=Object.create;var Uy=Object.defineProperty;var tV=Object.getOwnPropertyDescriptor;var rV=Object.getOwnPropertyNames;var nV=Object.getPrototypeOf,iV=Object.prototype.hasOwnProperty;var aV=e=>Uy(e,"__esModule",{value:!0});var PC=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var oV=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of rV(t))!iV.call(e,n)&&n!=="default"&&Uy(e,n,{get:()=>t[n],enumerable:!(r=tV(t,n))||r.enumerable});return e},ze=e=>oV(aV(Uy(e!=null?eV(nV(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Gy=U((qee,MC)=>{"use strict";var jC=Object.getOwnPropertySymbols,uV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable;function lV(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function cV(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(o){a[o]=o}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}MC.exports=cV()?Object.assign:function(e,t){for(var r,n=lV(e),a,o=1;o{"use strict";var Qy=Gy(),js=60103,qC=60106;dt.Fragment=60107;dt.StrictMode=60108;dt.Profiler=60114;var BC=60109,VC=60110,UC=60112;dt.Suspense=60113;var GC=60115,QC=60116;typeof Symbol=="function"&&Symbol.for&&(di=Symbol.for,js=di("react.element"),qC=di("react.portal"),dt.Fragment=di("react.fragment"),dt.StrictMode=di("react.strict_mode"),dt.Profiler=di("react.profiler"),BC=di("react.provider"),VC=di("react.context"),UC=di("react.forward_ref"),dt.Suspense=di("react.suspense"),GC=di("react.memo"),QC=di("react.lazy"));var di,KC=typeof Symbol=="function"&&Symbol.iterator;function fV(e){return e===null||typeof e!="object"?null:(e=KC&&e[KC]||e["@@iterator"],typeof e=="function"?e:null)}function tf(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{"use strict";t2.exports=e2()});var u2=U(Ct=>{"use strict";var qs,rf,hh,Jy;typeof performance=="object"&&typeof performance.now=="function"?(r2=performance,Ct.unstable_now=function(){return r2.now()}):(Xy=Date,n2=Xy.now(),Ct.unstable_now=function(){return Xy.now()-n2});var r2,Xy,n2;typeof window=="undefined"||typeof MessageChannel!="function"?(Bs=null,Zy=null,$y=function(){if(Bs!==null)try{var e=Ct.unstable_now();Bs(!0,e),Bs=null}catch(t){throw setTimeout($y,0),t}},qs=function(e){Bs!==null?setTimeout(qs,0,e):(Bs=e,setTimeout($y,0))},rf=function(e,t){Zy=setTimeout(e,t)},hh=function(){clearTimeout(Zy)},Ct.unstable_shouldYield=function(){return!1},Jy=Ct.unstable_forceFrameRate=function(){}):(i2=window.setTimeout,a2=window.clearTimeout,typeof console!="undefined"&&(o2=window.cancelAnimationFrame,typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof o2!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")),nf=!1,af=null,vh=-1,e0=5,t0=0,Ct.unstable_shouldYield=function(){return Ct.unstable_now()>=t0},Jy=function(){},Ct.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[n];if(a!==void 0&&0yh(s,r))d!==void 0&&0>yh(d,s)?(e[n]=d,e[c]=r,n=c):(e[n]=s,e[o]=r,n=o);else if(d!==void 0&&0>yh(d,r))e[n]=d,e[c]=r,n=c;else break e}}return t}return null}function yh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}var oa=[],mo=[],gV=1,pi=null,en=3,bh=!1,_u=!1,of=!1;function i0(e){for(var t=Bi(mo);t!==null;){if(t.callback===null)mh(mo);else if(t.startTime<=e)mh(mo),t.sortIndex=t.expirationTime,n0(oa,t);else break;t=Bi(mo)}}function a0(e){if(of=!1,i0(e),!_u)if(Bi(oa)!==null)_u=!0,qs(o0);else{var t=Bi(mo);t!==null&&rf(a0,t.startTime-e)}}function o0(e,t){_u=!1,of&&(of=!1,hh()),bh=!0;var r=en;try{for(i0(t),pi=Bi(oa);pi!==null&&(!(pi.expirationTime>t)||e&&!Ct.unstable_shouldYield());){var n=pi.callback;if(typeof n=="function"){pi.callback=null,en=pi.priorityLevel;var a=n(pi.expirationTime<=t);t=Ct.unstable_now(),typeof a=="function"?pi.callback=a:pi===Bi(oa)&&mh(oa),i0(t)}else mh(oa);pi=Bi(oa)}if(pi!==null)var o=!0;else{var s=Bi(mo);s!==null&&rf(a0,s.startTime-t),o=!1}return o}finally{pi=null,en=r,bh=!1}}var mV=Jy;Ct.unstable_IdlePriority=5;Ct.unstable_ImmediatePriority=1;Ct.unstable_LowPriority=4;Ct.unstable_NormalPriority=3;Ct.unstable_Profiling=null;Ct.unstable_UserBlockingPriority=2;Ct.unstable_cancelCallback=function(e){e.callback=null};Ct.unstable_continueExecution=function(){_u||bh||(_u=!0,qs(o0))};Ct.unstable_getCurrentPriorityLevel=function(){return en};Ct.unstable_getFirstCallbackNode=function(){return Bi(oa)};Ct.unstable_next=function(e){switch(en){case 1:case 2:case 3:var t=3;break;default:t=en}var r=en;en=t;try{return e()}finally{en=r}};Ct.unstable_pauseExecution=function(){};Ct.unstable_requestPaint=mV;Ct.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=en;en=e;try{return t()}finally{en=r}};Ct.unstable_scheduleCallback=function(e,t,r){var n=Ct.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0n?(e.sortIndex=r,n0(mo,e),Bi(oa)===null&&e===Bi(mo)&&(of?hh():of=!0,rf(a0,r-n))):(e.sortIndex=a,n0(oa,e),_u||bh||(_u=!0,qs(o0))),e};Ct.unstable_wrapCallback=function(e){var t=en;return function(){var r=en;en=t;try{return e.apply(this,arguments)}finally{en=r}}}});var l2=U((Gee,s2)=>{"use strict";s2.exports=u2()});var Yw=U(bi=>{"use strict";var Eh=Ft(),Yt=Gy(),Pr=l2();function de(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;rt}return!1}function En(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Qr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qr[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qr[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qr[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qr[e]=new En(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qr[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qr[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qr[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qr[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qr[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var u0=/[\-:]([a-z])/g;function s0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(u0,s0);Qr[t]=new En(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(u0,s0);Qr[t]=new En(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(u0,s0);Qr[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qr[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});Qr.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qr[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function l0(e,t,r,n){var a=Qr.hasOwnProperty(t)?Qr[t]:null,o=a!==null?a.type===0:n?!1:!(!(2c||a[s]!==o[c])return` `+a[s].replace(" at new "," at ");while(1<=s&&0<=c);break}}}finally{b0=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?df(e):""}function _V(e){switch(e.tag){case 5:return df(e.type);case 16:return df("Lazy");case 13:return df("Suspense");case 19:return df("SuspenseList");case 0:case 2:case 15:return e=Dh(e.type,!1),e;case 11:return e=Dh(e.type.render,!1),e;case 22:return e=Dh(e.type._render,!1),e;case 1:return e=Dh(e.type,!0),e;default:return""}}function Us(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yo:return"Fragment";case ku:return"Portal";case lf:return"Profiler";case c0:return"StrictMode";case cf:return"Suspense";case _h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d0:return(e.displayName||"Context")+".Consumer";case f0:return(e._context.displayName||"Context")+".Provider";case Th:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Sh:return Us(e.type);case h0:return Us(e._render);case p0:t=e._payload,e=e._init;try{return Us(e(t))}catch(r){}}return null}function bo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function g2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function SV(e){var t=g2(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kh(e){e._valueTracker||(e._valueTracker=SV(e))}function m2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=g2(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ch(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function E0(e,t){var r=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function y2(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=bo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b2(e,t){t=t.checked,t!=null&&l0(e,"checked",t,!1)}function T0(e,t){b2(e,t);var r=bo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?_0(e,t.type,r):t.hasOwnProperty("defaultValue")&&_0(e,t.type,bo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function E2(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function _0(e,t,r){(t!=="number"||Ch(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function DV(e){var t="";return Eh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function S0(e,t){return e=Yt({children:void 0},t),(t=DV(t.children))&&(e.children=t),e}function Gs(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a=r.length))throw Error(de(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:bo(r)}}function _2(e,t){var r=bo(t.value),n=bo(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function S2(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var k0={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function D2(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function C0(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?D2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Oh,k2=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!==k0.svg||"innerHTML"in e)e.innerHTML=t;else{for(Oh=Oh||document.createElement("div"),Oh.innerHTML=""+t.valueOf().toString()+"",t=Oh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var hf={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kV=["Webkit","ms","Moz","O"];Object.keys(hf).forEach(function(e){kV.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hf[t]=hf[e]})});function C2(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||hf.hasOwnProperty(e)&&hf[e]?(""+t).trim():t+"px"}function O2(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=C2(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var CV=Yt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function O0(e,t){if(t){if(CV[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(de(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(de(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(de(61))}if(t.style!=null&&typeof t.style!="object")throw Error(de(62))}}function w0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function N0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var A0=null,Qs=null,Ks=null;function w2(e){if(e=xf(e)){if(typeof A0!="function")throw Error(de(280));var t=e.stateNode;t&&(t=Wh(t),A0(e.stateNode,e.type,t))}}function N2(e){Qs?Ks?Ks.push(e):Ks=[e]:Qs=e}function A2(){if(Qs){var e=Qs,t=Ks;if(Ks=Qs=null,w2(e),t)for(e=0;en?0:1<r;r++)t.push(e);return t}function Rh(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-So(t),e[t]=r}var So=Math.clz32?Math.clz32:UV,BV=Math.log,VV=Math.LN2;function UV(e){return e===0?32:31-(BV(e)/VV|0)|0}var GV=Pr.unstable_UserBlockingPriority,QV=Pr.unstable_runWithPriority,Fh=!0;function KV(e,t,r,n){Cu||x0();var a=Q0,o=Cu;Cu=!0;try{L2(a,e,t,r,n)}finally{(Cu=o)||R0()}}function HV(e,t,r,n){QV(GV,Q0.bind(null,e,t,r,n))}function Q0(e,t,r,n){if(Fh){var a;if((a=(t&4)==0)&&0=kf),nO=String.fromCharCode(32),iO=!1;function aO(e,t){switch(e){case"keyup":return vU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xs=!1;function mU(e,t){switch(e){case"compositionend":return oO(t);case"keypress":return t.which!==32?null:(iO=!0,nO);case"textInput":return e=t.data,e===nO&&iO?null:e;default:return null}}function yU(e,t){if(Xs)return e==="compositionend"||!Z0&&aO(e,t)?(e=X2(),Ph=H0=Do=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dO(r)}}function hO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vO(){for(var e=window,t=Ch();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=Ch(e.document)}return t}function eb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wU=Va&&"documentMode"in document&&11>=document.documentMode,Zs=null,tb=null,Nf=null,rb=!1;function gO(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;rb||Zs==null||Zs!==Ch(n)||(n=Zs,"selectionStart"in n&&eb(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Nf&&wf(Nf,n)||(Nf=n,n=Qh(tb,"onSelect"),0nl||(e.current=lb[nl],lb[nl]=null,nl--)}function ar(e,t){nl++,lb[nl]=e.current,e.current=t}var Oo={},tn=Co(Oo),In=Co(!1),Nu=Oo;function il(e,t){var r=e.type.contextTypes;if(!r)return Oo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rn(e){return e=e.childContextTypes,e!=null}function Yh(){Kt(In),Kt(tn)}function LO(e,t,r){if(tn.current!==Oo)throw Error(de(168));ar(tn,t),ar(In,r)}function xO(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in e))throw Error(de(108,Us(t)||"Unknown",a));return Yt({},r,n)}function Jh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Nu=tn.current,ar(tn,e),ar(In,In.current),!0}function IO(e,t,r){var n=e.stateNode;if(!n)throw Error(de(169));r?(e=xO(e,t,Nu),n.__reactInternalMemoizedMergedChildContext=e,Kt(In),Kt(tn),ar(tn,e)):Kt(In),ar(In,r)}var cb=null,Au=null,LU=Pr.unstable_runWithPriority,fb=Pr.unstable_scheduleCallback,db=Pr.unstable_cancelCallback,xU=Pr.unstable_shouldYield,RO=Pr.unstable_requestPaint,pb=Pr.unstable_now,IU=Pr.unstable_getCurrentPriorityLevel,Xh=Pr.unstable_ImmediatePriority,FO=Pr.unstable_UserBlockingPriority,PO=Pr.unstable_NormalPriority,jO=Pr.unstable_LowPriority,MO=Pr.unstable_IdlePriority,hb={},RU=RO!==void 0?RO:function(){},Ua=null,Zh=null,vb=!1,qO=pb(),rn=1e4>qO?pb:function(){return pb()-qO};function al(){switch(IU()){case Xh:return 99;case FO:return 98;case PO:return 97;case jO:return 96;case MO:return 95;default:throw Error(de(332))}}function BO(e){switch(e){case 99:return Xh;case 98:return FO;case 97:return PO;case 96:return jO;case 95:return MO;default:throw Error(de(332))}}function Lu(e,t){return e=BO(e),LU(e,t)}function If(e,t,r){return e=BO(e),fb(e,t,r)}function sa(){if(Zh!==null){var e=Zh;Zh=null,db(e)}VO()}function VO(){if(!vb&&Ua!==null){vb=!0;var e=0;try{var t=Ua;Lu(99,function(){for(;eF?(P=D,D=null):P=D.sibling;var B=b(y,D,g[F],k);if(B===null){D===null&&(D=P);break}e&&D&&B.alternate===null&&t(y,D),_=o(B,_,F),w===null?N=B:w.sibling=B,w=B,D=P}if(F===g.length)return r(y,D),N;if(D===null){for(;FF?(P=D,D=null):P=D.sibling;var z=b(y,D,B.value,k);if(z===null){D===null&&(D=P);break}e&&D&&z.alternate===null&&t(y,D),_=o(z,_,F),w===null?N=z:w.sibling=z,w=z,D=P}if(B.done)return r(y,D),N;if(D===null){for(;!B.done;F++,B=g.next())B=T(y,B.value,k),B!==null&&(_=o(B,_,F),w===null?N=B:w.sibling=B,w=B);return N}for(D=n(y,D);!B.done;F++,B=g.next())B=C(D,y,F,B.value,k),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?F:B.key),_=o(B,_,F),w===null?N=B:w.sibling=B,w=B);return e&&D.forEach(function(G){return t(y,G)}),N}return function(y,_,g,k){var N=typeof g=="object"&&g!==null&&g.type===yo&&g.key===null;N&&(g=g.props.children);var w=typeof g=="object"&&g!==null;if(w)switch(g.$$typeof){case sf:e:{for(w=g.key,N=_;N!==null;){if(N.key===w){switch(N.tag){case 7:if(g.type===yo){r(y,N.sibling),_=a(N,g.props.children),_.return=y,y=_;break e}break;default:if(N.elementType===g.type){r(y,N.sibling),_=a(N,g.props),_.ref=Ff(y,N,g),_.return=y,y=_;break e}}r(y,N);break}else t(y,N);N=N.sibling}g.type===yo?(_=vl(g.props.children,y.mode,k,g.key),_.return=y,y=_):(k=Sv(g.type,g.key,g.props,null,y.mode,k),k.ref=Ff(y,_,g),k.return=y,y=k)}return s(y);case ku:e:{for(N=g.key;_!==null;){if(_.key===N)if(_.tag===4&&_.stateNode.containerInfo===g.containerInfo&&_.stateNode.implementation===g.implementation){r(y,_.sibling),_=a(_,g.children||[]),_.return=y,y=_;break e}else{r(y,_);break}else t(y,_);_=_.sibling}_=rE(g,y.mode,k),_.return=y,y=_}return s(y)}if(typeof g=="string"||typeof g=="number")return g=""+g,_!==null&&_.tag===6?(r(y,_.sibling),_=a(_,g),_.return=y,y=_):(r(y,_),_=tE(g,y.mode,k),_.return=y,y=_),s(y);if(iv(g))return L(y,_,g,k);if(ff(g))return S(y,_,g,k);if(w&&av(y,g),typeof g=="undefined"&&!N)switch(y.tag){case 1:case 22:case 0:case 11:case 15:throw Error(de(152,Us(y.type)||"Component"))}return r(y,_)}}var ov=JO(!0),XO=JO(!1),Pf={},la=Co(Pf),jf=Co(Pf),Mf=Co(Pf);function xu(e){if(e===Pf)throw Error(de(174));return e}function Eb(e,t){switch(ar(Mf,t),ar(jf,e),ar(la,Pf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:C0(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=C0(t,e)}Kt(la),ar(la,t)}function sl(){Kt(la),Kt(jf),Kt(Mf)}function ZO(e){xu(Mf.current);var t=xu(la.current),r=C0(t,e.type);t!==r&&(ar(jf,e),ar(la,r))}function Tb(e){jf.current===e&&(Kt(la),Kt(jf))}var or=Co(0);function uv(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!=0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ga=null,Lo=null,ca=!1;function $O(e,t){var r=yi(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function ew(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function _b(e){if(ca){var t=Lo;if(t){var r=t;if(!ew(e,t)){if(t=el(r.nextSibling),!t||!ew(e,t)){e.flags=e.flags&-1025|2,ca=!1,Ga=e;return}$O(Ga,r)}Ga=e,Lo=el(t.firstChild)}else e.flags=e.flags&-1025|2,ca=!1,Ga=e}}function tw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ga=e}function sv(e){if(e!==Ga)return!1;if(!ca)return tw(e),ca=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ob(t,e.memoizedProps))for(t=Lo;t;)$O(e,t),t=el(t.nextSibling);if(tw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(de(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Lo=el(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Lo=null}}else Lo=Ga?el(e.stateNode.nextSibling):null;return!0}function Sb(){Lo=Ga=null,ca=!1}var ll=[];function Db(){for(var e=0;eo))throw Error(de(301));o+=1,Kr=nn=null,t.updateQueue=null,qf.current=qU,e=r(n,a)}while(Vf)}if(qf.current=pv,t=nn!==null&&nn.next!==null,Bf=0,Kr=nn=dr=null,lv=!1,t)throw Error(de(300));return e}function Iu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?dr.memoizedState=Kr=e:Kr=Kr.next=e,Kr}function Ru(){if(nn===null){var e=dr.alternate;e=e!==null?e.memoizedState:null}else e=nn.next;var t=Kr===null?dr.memoizedState:Kr.next;if(t!==null)Kr=t,nn=e;else{if(e===null)throw Error(de(310));nn=e,e={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},Kr===null?dr.memoizedState=Kr=e:Kr=Kr.next=e}return Kr}function fa(e,t){return typeof t=="function"?t(e):t}function Uf(e){var t=Ru(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=nn,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){a=a.next,n=n.baseState;var c=s=o=null,d=a;do{var h=d.lane;if((Bf&h)===h)c!==null&&(c=c.next={lane:0,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null}),n=d.eagerReducer===e?d.eagerState:e(n,d.action);else{var m={lane:h,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null};c===null?(s=c=m,o=n):c=c.next=m,dr.lanes|=h,Hf|=h}d=d.next}while(d!==null&&d!==a);c===null?o=n:c.next=s,hi(n,t.memoizedState)||(Ui=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=c,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Gf(e){var t=Ru(),r=t.queue;if(r===null)throw Error(de(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);hi(o,t.memoizedState)||(Ui=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function rw(e,t,r){var n=t._getVersion;n=n(t._source);var a=t._workInProgressVersionPrimary;if(a!==null?e=a===n:(e=e.mutableReadLanes,(e=(Bf&e)===e)&&(t._workInProgressVersionPrimary=n,ll.push(t))),e)return r(t._source);throw ll.push(t),Error(de(350))}function nw(e,t,r,n){var a=Tn;if(a===null)throw Error(de(349));var o=t._getVersion,s=o(t._source),c=qf.current,d=c.useState(function(){return rw(a,t,r)}),h=d[1],m=d[0];d=Kr;var T=e.memoizedState,b=T.refs,C=b.getSnapshot,L=T.source;T=T.subscribe;var S=dr;return e.memoizedState={refs:b,source:t,subscribe:n},c.useEffect(function(){b.getSnapshot=r,b.setSnapshot=h;var y=o(t._source);if(!hi(s,y)){y=r(t._source),hi(m,y)||(h(y),y=Io(S),a.mutableReadLanes|=y&a.pendingLanes),y=a.mutableReadLanes,a.entangledLanes|=y;for(var _=a.entanglements,g=y;0r?98:r,function(){e(!0)}),Lu(97<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[ko]=t,e[zh]=n,Dw(e,t,!1,!1),t.stateNode=e,s=w0(r,n),r){case"dialog":Qt("cancel",e),Qt("close",e),a=n;break;case"iframe":case"object":case"embed":Qt("load",e),a=n;break;case"video":case"audio":for(a=0;aHb&&(t.flags|=64,o=!0,Kf(n,!1),t.lanes=33554432)}else{if(!o)if(e=uv(s),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Kf(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ca)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*rn()-n.renderingStartTime>Hb&&r!==1073741824&&(t.flags|=64,o=!0,Kf(n,!1),t.lanes=33554432);n.isBackwards?(s.sibling=t.child,t.child=s):(r=n.last,r!==null?r.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=rn(),r.sibling=null,t=or.current,ar(or,o?t&1|2:t&1),r):null;case 23:case 24:return Zb(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(de(156,t.tag))}function UU(e){switch(e.tag){case 1:Rn(e.type)&&Yh();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(sl(),Kt(In),Kt(tn),Db(),t=e.flags,(t&64)!=0)throw Error(de(285));return e.flags=t&-4097|64,e;case 5:return Tb(e),null;case 13:return Kt(or),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Kt(or),null;case 4:return sl(),null;case 10:return mb(e),null;case 23:case 24:return Zb(),null;default:return null}}function Pb(e,t){try{var r="",n=t;do r+=_V(n),n=n.return;while(n);var a=r}catch(o){a=` Error generating stack: `+o.message+` `+o.stack}return{value:e,source:t,stack:a}}function jb(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var GU=typeof WeakMap=="function"?WeakMap:Map;function Ow(e,t,r){r=No(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){mv||(mv=!0,zb=n),jb(e,t)},r}function ww(e,t,r){r=No(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return jb(e,t),n(a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(da===null?da=new Set([this]):da.add(this),jb(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var QU=typeof WeakSet=="function"?WeakSet:Set;function Nw(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Po(e,r)}else t.current=null}function KU(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Vi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ub(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(de(163))}function HU(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)==3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var a=e;n=a.next,a=a.tag,(a&4)!=0&&(a&1)!=0&&(Qw(r,e),eG(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Vi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&KO(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}KO(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&CO(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&G2(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(de(163))}function Aw(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var a=r.memoizedProps.style;a=a!=null&&a.hasOwnProperty("display")?a.display:null,n.style.display=C2("display",a)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function Lw(e,t){if(Au&&typeof Au.onCommitFiberUnmount=="function")try{Au.onCommitFiberUnmount(cb,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,a=n.destroy;if(n=n.tag,a!==void 0)if((n&4)!=0)Qw(t,r);else{n=t;try{a()}catch(o){Po(n,o)}}r=r.next}while(r!==e)}break;case 1:if(Nw(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Po(t,o)}break;case 5:Nw(t);break;case 4:Fw(e,t)}}function xw(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Iw(e){return e.tag===5||e.tag===3||e.tag===4}function Rw(e){e:{for(var t=e.return;t!==null;){if(Iw(t))break e;t=t.return}throw Error(de(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(de(161))}r.flags&16&&(pf(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Iw(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Mb(e,r,t):qb(e,r,t)}function Mb(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Kh));else if(n!==4&&(e=e.child,e!==null))for(Mb(e,t,r),e=e.sibling;e!==null;)Mb(e,t,r),e=e.sibling}function qb(e,t,r){var n=e.tag,a=n===5||n===6;if(a)e=a?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(qb(e,t,r),e=e.sibling;e!==null;)qb(e,t,r),e=e.sibling}function Fw(e,t){for(var r=t,n=!1,a,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(de(160));switch(a=n.stateNode,n.tag){case 5:o=!1;break e;case 3:a=a.containerInfo,o=!0;break e;case 4:a=a.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var s=e,c=r,d=c;;)if(Lw(s,d),d.child!==null&&d.tag!==4)d.child.return=d,d=d.child;else{if(d===c)break e;for(;d.sibling===null;){if(d.return===null||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(s=a,c=r.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){a=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(Lw(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function Bb(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)==3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var a=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[zh]=n,e==="input"&&n.type==="radio"&&n.name!=null&&b2(r,n),w0(e,a),t=w0(e,n),a=0;aa&&(a=s),r&=~o}if(r=a,r=rn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WU(r/1960))-r,10 component higher in the tree to provide a loading indicator or placeholder to display.`)}Hr!==5&&(Hr=2),d=Pb(d,c),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var w=Ow(b,o,t);QO(b,w);break e;case 1:o=d;var D=b.type,F=b.stateNode;if((b.flags&64)==0&&(typeof D.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(da===null||!da.has(F)))){b.flags|=4096,t&=-t,b.lanes|=t;var P=ww(b,o,t);QO(b,P);break e}}b=b.return}while(b!==null)}Gw(r)}catch(B){t=B,Or===r&&r!==null&&(Or=r=r.return);continue}break}while(1)}function Vw(){var e=vv.current;return vv.current=pv,e===null?pv:e}function Xf(e,t){var r=Ke;Ke|=16;var n=Vw();Tn===e&&an===t||hl(e,t);do try{JU();break}catch(a){Bw(e,a)}while(1);if(gb(),Ke=r,vv.current=n,Or!==null)throw Error(de(261));return Tn=null,an=0,Hr}function JU(){for(;Or!==null;)Uw(Or)}function XU(){for(;Or!==null&&!xU();)Uw(Or)}function Uw(e){var t=Hw(e.alternate,e,Fu);e.memoizedProps=e.pendingProps,t===null?Gw(e):Or=t,Vb.current=null}function Gw(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=VU(r,t,Fu),r!==null){Or=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(Fu&1073741824)!=0||(r.mode&4)==0){for(var n=0,a=r.child;a!==null;)n|=a.lanes|a.childLanes,a=a.sibling;r.childLanes=n}e!==null&&(e.flags&2048)==0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1s&&(c=s,s=w,w=c),c=pO(g,w),o=pO(g,s),c&&o&&(N.rangeCount!==1||N.anchorNode!==c.node||N.anchorOffset!==c.offset||N.focusNode!==o.node||N.focusOffset!==o.offset)&&(k=k.createRange(),k.setStart(c.node,c.offset),N.removeAllRanges(),w>s?(N.addRange(k),N.extend(o.node,o.offset)):(k.setEnd(o.node,o.offset),N.addRange(k)))))),k=[],N=g;N=N.parentNode;)N.nodeType===1&&k.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;grn()-Kb?hl(e,0):Gb|=r),mi(e,t)}function nG(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,(t&2)==0?t=1:(t&4)==0?t=al()===99?1:2:(Ha===0&&(Ha=cl),t=Ys(62914560&~Ha),t===0&&(t=4194304))),r=Xn(),e=Tv(e,t),e!==null&&(Rh(e,t,r),mi(e,r))}var Hw;Hw=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||In.current)Ui=!0;else if((r&n)!=0)Ui=(e.flags&16384)!=0;else{switch(Ui=!1,t.tag){case 3:mw(t),Sb();break;case 5:ZO(t);break;case 1:Rn(t.type)&&Jh(t);break;case 4:Eb(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var a=t.type._context;ar($h,a._currentValue),a._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!=0?yw(e,t,r):(ar(or,or.current&1),t=Qa(e,t,r),t!==null?t.sibling:null);ar(or,or.current&1);break;case 19:if(n=(r&t.childLanes)!=0,(e.flags&64)!=0){if(n)return Sw(e,t,r);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ar(or,or.current),n)break;return null;case 23:case 24:return t.lanes=0,Lb(e,t,r)}return Qa(e,t,r)}else Ui=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=il(t,tn.current),ul(t,r),a=Cb(null,t,n,e,a,r),t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Rn(n)){var o=!0;Jh(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,yb(t);var s=n.getDerivedStateFromProps;typeof s=="function"&&rv(t,n,s,e),a.updater=nv,t.stateNode=a,a._reactInternals=t,bb(t,n,e,r),t=Ib(null,t,n,!0,o,r)}else t.tag=0,Pn(null,t,a,r),t=t.child;return t;case 16:a=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=aG(a),e=Vi(a,e),o){case 0:t=xb(null,t,a,e,r);break e;case 1:t=gw(null,t,a,e,r);break e;case 11:t=dw(null,t,a,e,r);break e;case 14:t=pw(null,t,a,Vi(a.type,e),n,r);break e}throw Error(de(306,a,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),xb(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:Vi(n,a),gw(e,t,n,a,r);case 3:if(mw(t),n=t.updateQueue,e===null||n===null)throw Error(de(282));if(n=t.pendingProps,a=t.memoizedState,a=a!==null?a.element:null,GO(e,t),Rf(t,n,null,r),n=t.memoizedState.element,n===a)Sb(),t=Qa(e,t,r);else{if(a=t.stateNode,(o=a.hydrate)&&(Lo=el(t.stateNode.containerInfo.firstChild),Ga=t,o=ca=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a{"use strict";function Jw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jw)}catch(e){console.error(e)}}Jw(),Xw.exports=Yw()});var Zw=U(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.versionInfo=gl.version=void 0;var dG="15.5.0";gl.version=dG;var pG=Object.freeze({major:15,minor:5,patch:0,preReleaseTag:null});gl.versionInfo=pG});var Cv=U(uE=>{"use strict";Object.defineProperty(uE,"__esModule",{value:!0});uE.default=hG;function hG(e){return typeof(e==null?void 0:e.then)=="function"}});var pa=U(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.default=vG;function Ov(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ov=function(r){return typeof r}:Ov=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ov(e)}function vG(e){return Ov(e)=="object"&&e!==null}});var ha=U(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.SYMBOL_TO_STRING_TAG=Mo.SYMBOL_ASYNC_ITERATOR=Mo.SYMBOL_ITERATOR=void 0;var gG=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";Mo.SYMBOL_ITERATOR=gG;var mG=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";Mo.SYMBOL_ASYNC_ITERATOR=mG;var yG=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";Mo.SYMBOL_TO_STRING_TAG=yG});var wv=U(lE=>{"use strict";Object.defineProperty(lE,"__esModule",{value:!0});lE.getLocation=bG;function bG(e,t){for(var r=/\r\n|[\n\r]/g,n=1,a=t+1,o;(o=r.exec(e.body))&&o.index{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.printLocation=TG;Av.printSourceLocation=$w;var EG=wv();function TG(e){return $w(e.source,(0,EG.getLocation)(e.source,e.start))}function $w(e,t){var r=e.locationOffset.column-1,n=Nv(r)+e.body,a=t.line-1,o=e.locationOffset.line-1,s=t.line+o,c=t.line===1?r:0,d=t.column+c,h="".concat(e.name,":").concat(s,":").concat(d,` `),m=n.split(/\r\n|[\n\r]/g),T=m[a];if(T.length>120){for(var b=Math.floor(d/80),C=d%80,L=[],S=0;S{"use strict";function Lv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lv=function(r){return typeof r}:Lv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Lv(e)}Object.defineProperty(id,"__esModule",{value:!0});id.printError=oN;id.GraphQLError=void 0;var SG=kG(pa()),DG=ha(),tN=wv(),rN=cE();function kG(e){return e&&e.__esModule?e:{default:e}}function CG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nN(e,t){for(var r=0;r{"use strict";Object.defineProperty(dE,"__esModule",{value:!0});dE.syntaxError=IG;var xG=Ve();function IG(e,t,r){return new xG.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Pt=U(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});Rv.Kind=void 0;var RG=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"});Rv.Kind=RG});var zr=U(pE=>{"use strict";Object.defineProperty(pE,"__esModule",{value:!0});pE.default=FG;function FG(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var hE=U(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.default=void 0;var PG=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,jG=PG;Fv.default=jG});var Pv=U(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.default=qG;var MG=sN(zr()),uN=sN(hE());function sN(e){return e&&e.__esModule?e:{default:e}}function qG(e){var t=e.prototype.toJSON;typeof t=="function"||(0,MG.default)(0),e.prototype.inspect=t,uN.default&&(e.prototype[uN.default]=t)}});var ml=U(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.isNode=VG;ju.Token=ju.Location=void 0;var lN=BG(Pv());function BG(e){return e&&e.__esModule?e:{default:e}}var cN=function(){function e(r,n,a){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=a}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();ju.Location=cN;(0,lN.default)(cN);var fN=function(){function e(r,n,a,o,s,c,d){this.kind=r,this.start=n,this.end=a,this.line=o,this.column=s,this.value=d,this.prev=c,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();ju.Token=fN;(0,lN.default)(fN);function VG(e){return e!=null&&typeof e.kind=="string"}});var yl=U(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.TokenKind=void 0;var UG=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});jv.TokenKind=UG});var _t=U(gE=>{"use strict";Object.defineProperty(gE,"__esModule",{value:!0});gE.default=HG;var GG=QG(hE());function QG(e){return e&&e.__esModule?e:{default:e}}function Mv(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mv=function(r){return typeof r}:Mv=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mv(e)}var KG=10,dN=2;function HG(e){return qv(e,[])}function qv(e,t){switch(Mv(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":zG(e,t);default:return String(e)}}function zG(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var r=[].concat(t,[e]),n=JG(e);if(n!==void 0){var a=n.call(e);if(a!==e)return typeof a=="string"?a:qv(a,r)}else if(Array.isArray(e))return YG(e,r);return WG(e,r)}function WG(e,t){var r=Object.keys(e);if(r.length===0)return"{}";if(t.length>dN)return"["+XG(e)+"]";var n=r.map(function(a){var o=qv(e[a],t);return a+": "+o});return"{ "+n.join(", ")+" }"}function YG(e,t){if(e.length===0)return"[]";if(t.length>dN)return"[Array]";for(var r=Math.min(KG,e.length),n=e.length-r,a=[],o=0;o1&&a.push("... ".concat(n," more items")),"["+a.join(", ")+"]"}function JG(e){var t=e[String(GG.default)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function XG(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){var r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}});var Ei=U(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.default=ZG;function ZG(e,t){var r=Boolean(e);if(!r)throw new Error(t)}});var ad=U(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.default=void 0;var $G=function(t,r){return t instanceof r};Bv.default=$G});var Vv=U(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.isSource=i5;od.Source=void 0;var e5=ha(),t5=bE(_t()),yE=bE(Ei()),r5=bE(ad());function bE(e){return e&&e.__esModule?e:{default:e}}function pN(e,t){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||(0,yE.default)(0,"Body must be a string. Received: ".concat((0,t5.default)(t),".")),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,yE.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,yE.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return n5(e,[{key:e5.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();od.Source=hN;function i5(e){return(0,r5.default)(e,hN)}});var bl=U(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});Uv.DirectiveLocation=void 0;var a5=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"});Uv.DirectiveLocation=a5});var El=U(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.dedentBlockStringValue=o5;ud.getBlockStringIndentation=gN;ud.printBlockString=u5;function o5(e){var t=e.split(/\r\n|[\n\r]/g),r=gN(e);if(r!==0)for(var n=1;na&&vN(t[o-1]);)--o;return t.slice(a,o).join(` `)}function vN(e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(` `)===-1,a=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",c=!n||o||s||r,d="";return c&&!(n&&a)&&(d+=` `+t),d+=t?e.replace(/\n/g,` `+t):e,c&&(d+=` `),'"""'+d.replace(/"""/g,'\\"""')+'"""'}});var Qv=U(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.isPunctuatorTokenKind=c5;sd.Lexer=void 0;var va=Iv(),pr=ml(),nt=yl(),s5=El(),l5=function(){function e(r){var n=new pr.Token(nt.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},t.lookahead=function(){var n=this.token;if(n.kind!==nt.TokenKind.EOF)do{var a;n=(a=n.next)!==null&&a!==void 0?a:n.next=f5(this,n)}while(n.kind===nt.TokenKind.COMMENT);return n},e}();sd.Lexer=l5;function c5(e){return e===nt.TokenKind.BANG||e===nt.TokenKind.DOLLAR||e===nt.TokenKind.AMP||e===nt.TokenKind.PAREN_L||e===nt.TokenKind.PAREN_R||e===nt.TokenKind.SPREAD||e===nt.TokenKind.COLON||e===nt.TokenKind.EQUALS||e===nt.TokenKind.AT||e===nt.TokenKind.BRACKET_L||e===nt.TokenKind.BRACKET_R||e===nt.TokenKind.BRACE_L||e===nt.TokenKind.PIPE||e===nt.TokenKind.BRACE_R}function Mu(e){return isNaN(e)?nt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function f5(e,t){for(var r=e.source,n=r.body,a=n.length,o=t.end;o31||s===9));return new pr.Token(nt.TokenKind.COMMENT,t,c,r,n,a,o.slice(t+1,c))}function h5(e,t,r,n,a,o){var s=e.body,c=r,d=t,h=!1;if(c===45&&(c=s.charCodeAt(++d)),c===48){if(c=s.charCodeAt(++d),c>=48&&c<=57)throw(0,va.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(Mu(c),"."))}else d=EE(e,d,c),c=s.charCodeAt(d);if(c===46&&(h=!0,c=s.charCodeAt(++d),d=EE(e,d,c),c=s.charCodeAt(d)),(c===69||c===101)&&(h=!0,c=s.charCodeAt(++d),(c===43||c===45)&&(c=s.charCodeAt(++d)),d=EE(e,d,c),c=s.charCodeAt(d)),c===46||b5(c))throw(0,va.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(Mu(c),"."));return new pr.Token(h?nt.TokenKind.FLOAT:nt.TokenKind.INT,t,d,n,a,o,s.slice(t,d))}function EE(e,t,r){var n=e.body,a=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++a);while(o>=48&&o<=57);return a}throw(0,va.syntaxError)(e,a,"Invalid number, expected digit but got: ".concat(Mu(o),"."))}function v5(e,t,r,n,a){for(var o=e.body,s=t+1,c=s,d=0,h="";s=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y5(e,t,r,n,a){for(var o=e.body,s=o.length,c=t+1,d=0;c!==s&&!isNaN(d=o.charCodeAt(c))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++c;return new pr.Token(nt.TokenKind.NAME,t,c,r,n,a,o.slice(t,c))}function b5(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var Tl=U(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.parse=_5;qu.parseValue=S5;qu.parseType=D5;qu.Parser=void 0;var TE=Iv(),Ge=Pt(),E5=ml(),Te=yl(),mN=Vv(),T5=bl(),yN=Qv();function _5(e,t){var r=new Kv(e,t);return r.parseDocument()}function S5(e,t){var r=new Kv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(Te.TokenKind.EOF),n}function D5(e,t){var r=new Kv(e,t);r.expectToken(Te.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(Te.TokenKind.EOF),n}var Kv=function(){function e(r,n){var a=(0,mN.isSource)(r)?r:new mN.Source(r);this._lexer=new yN.Lexer(a),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(Te.TokenKind.NAME);return{kind:Ge.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:Ge.Kind.DOCUMENT,definitions:this.many(Te.TokenKind.SOF,this.parseDefinition,Te.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(Te.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Te.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(Te.TokenKind.BRACE_L))return{kind:Ge.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),o;return this.peek(Te.TokenKind.NAME)&&(o=this.parseName()),{kind:Ge.Kind.OPERATION_DEFINITION,operation:a,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(Te.TokenKind.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(Te.TokenKind.PAREN_L,this.parseVariableDefinition,Te.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Ge.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Te.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Te.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(Te.TokenKind.DOLLAR),{kind:Ge.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:Ge.Kind.SELECTION_SET,selections:this.many(Te.TokenKind.BRACE_L,this.parseSelection,Te.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(Te.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n=this._lexer.token,a=this.parseName(),o,s;return this.expectOptionalToken(Te.TokenKind.COLON)?(o=a,s=this.parseName()):s=a,{kind:Ge.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Te.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(n){var a=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(Te.TokenKind.PAREN_L,a,Te.TokenKind.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,a=this.parseName();return this.expectToken(Te.TokenKind.COLON),{kind:Ge.Kind.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:Ge.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(Te.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(Te.TokenKind.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(Te.TokenKind.NAME)?{kind:Ge.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:Ge.Kind.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,a=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:Ge.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:Ge.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var a=this._lexer.token;switch(a.kind){case Te.TokenKind.BRACKET_L:return this.parseList(n);case Te.TokenKind.BRACE_L:return this.parseObject(n);case Te.TokenKind.INT:return this._lexer.advance(),{kind:Ge.Kind.INT,value:a.value,loc:this.loc(a)};case Te.TokenKind.FLOAT:return this._lexer.advance(),{kind:Ge.Kind.FLOAT,value:a.value,loc:this.loc(a)};case Te.TokenKind.STRING:case Te.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Te.TokenKind.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:Ge.Kind.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:Ge.Kind.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:Ge.Kind.NULL,loc:this.loc(a)};default:return{kind:Ge.Kind.ENUM,value:a.value,loc:this.loc(a)}}case Te.TokenKind.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:Ge.Kind.STRING,value:n.value,block:n.kind===Te.TokenKind.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var a=this,o=this._lexer.token,s=function(){return a.parseValueLiteral(n)};return{kind:Ge.Kind.LIST,values:this.any(Te.TokenKind.BRACKET_L,s,Te.TokenKind.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(n){var a=this,o=this._lexer.token,s=function(){return a.parseObjectField(n)};return{kind:Ge.Kind.OBJECT,fields:this.any(Te.TokenKind.BRACE_L,s,Te.TokenKind.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(n){var a=this._lexer.token,o=this.parseName();return this.expectToken(Te.TokenKind.COLON),{kind:Ge.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(a)}},t.parseDirectives=function(n){for(var a=[];this.peek(Te.TokenKind.AT);)a.push(this.parseDirective(n));return a},t.parseDirective=function(n){var a=this._lexer.token;return this.expectToken(Te.TokenKind.AT),{kind:Ge.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(a)}},t.parseTypeReference=function(){var n=this._lexer.token,a;return this.expectOptionalToken(Te.TokenKind.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(Te.TokenKind.BRACKET_R),a={kind:Ge.Kind.LIST_TYPE,type:a,loc:this.loc(n)}):a=this.parseNamedType(),this.expectOptionalToken(Te.TokenKind.BANG)?{kind:Ge.Kind.NON_NULL_TYPE,type:a,loc:this.loc(n)}:a},t.parseNamedType=function(){var n=this._lexer.token;return{kind:Ge.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===Te.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},t.peekDescription=function(){return this.peek(Te.TokenKind.STRING)||this.peek(Te.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(Te.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Te.TokenKind.BRACE_R);return{kind:Ge.Kind.SCHEMA_DEFINITION,description:a,directives:o,operationTypes:s,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,a=this.parseOperationType();this.expectToken(Te.TokenKind.COLON);var o=this.parseNamedType();return{kind:Ge.Kind.OPERATION_TYPE_DEFINITION,operation:a,type:o,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:Ge.Kind.SCALAR_TYPE_DEFINITION,description:a,name:o,directives:s,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:Ge.Kind.OBJECT_TYPE_DEFINITION,description:a,name:o,interfaces:s,directives:c,fields:d,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(Te.TokenKind.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(Te.TokenKind.AMP)||this.peek(Te.TokenKind.NAME));return a}return this.delimitedMany(Te.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(Te.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===Te.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Te.TokenKind.BRACE_L,this.parseFieldDefinition,Te.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(Te.TokenKind.COLON);var c=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:Ge.Kind.FIELD_DEFINITION,description:a,name:o,arguments:s,type:c,directives:d,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(Te.TokenKind.PAREN_L,this.parseInputValueDef,Te.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName();this.expectToken(Te.TokenKind.COLON);var s=this.parseTypeReference(),c;this.expectOptionalToken(Te.TokenKind.EQUALS)&&(c=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:Ge.Kind.INPUT_VALUE_DEFINITION,description:a,name:o,type:s,defaultValue:c,directives:d,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),c=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:Ge.Kind.INTERFACE_TYPE_DEFINITION,description:a,name:o,interfaces:s,directives:c,fields:d,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseUnionMemberTypes();return{kind:Ge.Kind.UNION_TYPE_DEFINITION,description:a,name:o,directives:s,types:c,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Te.TokenKind.EQUALS)?this.delimitedMany(Te.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseEnumValuesDefinition();return{kind:Ge.Kind.ENUM_TYPE_DEFINITION,description:a,name:o,directives:s,values:c,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Te.TokenKind.BRACE_L,this.parseEnumValueDefinition,Te.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:Ge.Kind.ENUM_VALUE_DEFINITION,description:a,name:o,directives:s,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),c=this.parseInputFieldsDefinition();return{kind:Ge.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:o,directives:s,fields:c,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Te.TokenKind.BRACE_L,this.parseInputValueDef,Te.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===Te.TokenKind.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),o=this.optionalMany(Te.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Te.TokenKind.BRACE_R);if(a.length===0&&o.length===0)throw this.unexpected();return{kind:Ge.Kind.SCHEMA_EXTENSION,directives:a,operationTypes:o,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:Ge.Kind.SCALAR_TYPE_EXTENSION,name:a,directives:o,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&c.length===0)throw this.unexpected();return{kind:Ge.Kind.OBJECT_TYPE_EXTENSION,name:a,interfaces:o,directives:s,fields:c,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),c=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&c.length===0)throw this.unexpected();return{kind:Ge.Kind.INTERFACE_TYPE_EXTENSION,name:a,interfaces:o,directives:s,fields:c,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.UNION_TYPE_EXTENSION,name:a,directives:o,types:s,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.ENUM_TYPE_EXTENSION,name:a,directives:o,values:s,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:o,fields:s,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Te.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:Ge.Kind.DIRECTIVE_DEFINITION,description:a,name:o,arguments:s,repeatable:c,locations:d,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Te.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,a=this.parseName();if(T5.DirectiveLocation[a.value]!==void 0)return a;throw this.unexpected(n)},t.loc=function(n){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new E5.Location(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a;throw(0,TE.syntaxError)(this._lexer.source,a.start,"Expected ".concat(bN(n),", found ").concat(_E(a),"."))},t.expectOptionalToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a},t.expectKeyword=function(n){var a=this._lexer.token;if(a.kind===Te.TokenKind.NAME&&a.value===n)this._lexer.advance();else throw(0,TE.syntaxError)(this._lexer.source,a.start,'Expected "'.concat(n,'", found ').concat(_E(a),"."))},t.expectOptionalKeyword=function(n){var a=this._lexer.token;return a.kind===Te.TokenKind.NAME&&a.value===n?(this._lexer.advance(),!0):!1},t.unexpected=function(n){var a=n!=null?n:this._lexer.token;return(0,TE.syntaxError)(this._lexer.source,a.start,"Unexpected ".concat(_E(a),"."))},t.any=function(n,a,o){this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(a.call(this));return s},t.optionalMany=function(n,a,o){if(this.expectOptionalToken(n)){var s=[];do s.push(a.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(n,a,o){this.expectToken(n);var s=[];do s.push(a.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(n,a){this.expectOptionalToken(n);var o=[];do o.push(a.call(this));while(this.expectOptionalToken(n));return o},e}();qu.Parser=Kv;function _E(e){var t=e.value;return bN(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function bN(e){return(0,yN.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}});var qo=U(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.visit=O5;za.visitInParallel=w5;za.getVisitFn=Hv;za.BREAK=za.QueryDocumentKeys=void 0;var k5=C5(_t()),EN=ml();function C5(e){return e&&e.__esModule?e:{default:e}}var TN={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};za.QueryDocumentKeys=TN;var _l=Object.freeze({});za.BREAK=_l;function O5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:TN,n=void 0,a=Array.isArray(e),o=[e],s=-1,c=[],d=void 0,h=void 0,m=void 0,T=[],b=[],C=e;do{s++;var L=s===o.length,S=L&&c.length!==0;if(L){if(h=b.length===0?void 0:T[T.length-1],d=m,m=b.pop(),S){if(a)d=d.slice();else{for(var y={},_=0,g=Object.keys(d);_{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});zv.default=void 0;var N5=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var r=0;r{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=void 0;var L5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},x5=L5;Wv.default=x5});var ld=U(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.locatedError=P5;var I5=F5(_t()),R5=Ve();function F5(e){return e&&e.__esModule?e:{default:e}}function P5(e,t,r){var n,a=e instanceof Error?e:new Error("Unexpected error value: "+(0,I5.default)(e));return Array.isArray(a.path)?a:new R5.GraphQLError(a.message,(n=a.nodes)!==null&&n!==void 0?n:t,a.source,a.positions,r,a)}});var DE=U(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.assertValidName=B5;Yv.isValidNameError=SN;var j5=M5(Ei()),_N=Ve();function M5(e){return e&&e.__esModule?e:{default:e}}var q5=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function B5(e){var t=SN(e);if(t)throw t;return e}function SN(e){if(typeof e=="string"||(0,j5.default)(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new _N.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!q5.test(e))return new _N.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}});var Dl=U(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.default=void 0;var V5=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},U5=V5;Jv.default=U5});var Bo=U(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.default=G5;function G5(e,t){return e.reduce(function(r,n){return r[t(n)]=n,r},Object.create(null))}});var OE=U(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.default=H5;var Q5=K5(Dl());function K5(e){return e&&e.__esModule?e:{default:e}}function H5(e,t){for(var r=Object.create(null),n=0,a=(0,Q5.default)(e);n{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.default=Y5;var z5=W5(Dl());function W5(e){return e&&e.__esModule?e:{default:e}}function Y5(e){if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,z5.default)(e);r{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.default=J5;function J5(e,t,r){return e.reduce(function(n,a){return n[t(a)]=r(a),n},Object.create(null))}});var Vo=U(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.default=Z5;var X5=5;function Z5(e,t){var r=typeof e=="string"?[e,t]:[void 0,e],n=r[0],a=r[1],o=" Did you mean ";n&&(o+=n+" ");var s=a.map(function(h){return'"'.concat(h,'"')});switch(s.length){case 0:return"";case 1:return o+s[0]+"?";case 2:return o+s[0]+" or "+s[1]+"?"}var c=s.slice(0,X5),d=c.pop();return o+c.join(", ")+", or "+d+"?"}});var DN=U(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.default=$5;function $5(e){return e}});var fd=U(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.default=eQ;function eQ(e,t){for(var r=0,n=0;r0);var c=0;do++n,c=c*10+o-xE,o=t.charCodeAt(n);while(Zv(o)&&c>0);if(sc)return 1}else{if(ao)return 1;++r,++n}}return e.length-t.length}var xE=48,tQ=57;function Zv(e){return!isNaN(e)&&xE<=e&&e<=tQ}});var Uo=U(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.default=iQ;var rQ=nQ(fd());function nQ(e){return e&&e.__esModule?e:{default:e}}function iQ(e,t){for(var r=Object.create(null),n=new aQ(e),a=Math.floor(e.length*.4)+1,o=0;oa)){for(var T=this._rows,b=0;b<=m;b++)T[0][b]=b;for(var C=1;C<=h;C++){for(var L=T[(C-1)%3],S=T[C%3],y=S[0]=C,_=1;_<=m;_++){var g=s[C-1]===c[_-1]?0:1,k=Math.min(L[_]+1,S[_-1]+1,L[_-1]+g);if(C>1&&_>1&&s[C-1]===c[_-2]&&s[C-2]===c[_-1]){var N=T[(C-2)%3][_-2];k=Math.min(k,N+1)}ka)return}var w=T[h%3][m];return w<=a?w:void 0}},e}();function kN(e){for(var t=e.length,r=new Array(t),n=0;n{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.print=sQ;var oQ=qo(),uQ=El();function sQ(e){return(0,oQ.visit)(e,{leave:cQ})}var lQ=80,cQ={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return Ie(t.definitions,` `)+` `},OperationDefinition:function(t){var r=t.operation,n=t.name,a=tr("(",Ie(t.variableDefinitions,", "),")"),o=Ie(t.directives," "),s=t.selectionSet;return!n&&!o&&!a&&r==="query"?s:Ie([r,Ie([n,a]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,a=t.defaultValue,o=t.directives;return r+": "+n+tr(" = ",a)+tr(" ",Ie(o," "))},SelectionSet:function(t){var r=t.selections;return Qi(r)},Field:function(t){var r=t.alias,n=t.name,a=t.arguments,o=t.directives,s=t.selectionSet,c=tr("",r,": ")+n,d=c+tr("(",Ie(a,", "),")");return d.length>lQ&&(d=c+tr(`( `,$v(Ie(a,` `)),` )`)),Ie([d,Ie(o," "),s]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+tr(" ",Ie(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,a=t.selectionSet;return Ie(["...",tr("on ",r),Ie(n," "),a]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,a=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(tr("(",Ie(a,", "),")")," ")+"on ".concat(n," ").concat(tr("",Ie(o," ")," "))+s},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,a=t.block;return a?(0,uQ.printBlockString)(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+Ie(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+Ie(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+tr("(",Ie(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:Gi(function(e){var t=e.directives,r=e.operationTypes;return Ie(["schema",Ie(t," "),Qi(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie(["scalar",t,Ie(r," ")]," ")}),ObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["type",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),FieldDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.type,a=e.directives;return t+(CN(r)?tr(`( `,$v(Ie(r,` `)),` )`):tr("(",Ie(r,", "),")"))+": "+n+tr(" ",Ie(a," "))}),InputValueDefinition:Gi(function(e){var t=e.name,r=e.type,n=e.defaultValue,a=e.directives;return Ie([t+": "+r,tr("= ",n),Ie(a," ")]," ")}),InterfaceTypeDefinition:Gi(function(e){var t=e.name,r=e.interfaces,n=e.directives,a=e.fields;return Ie(["interface",t,tr("implements ",Ie(r," & ")),Ie(n," "),Qi(a)]," ")}),UnionTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.types;return Ie(["union",t,Ie(r," "),n&&n.length!==0?"= "+Ie(n," | "):""]," ")}),EnumTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.values;return Ie(["enum",t,Ie(r," "),Qi(n)]," ")}),EnumValueDefinition:Gi(function(e){var t=e.name,r=e.directives;return Ie([t,Ie(r," ")]," ")}),InputObjectTypeDefinition:Gi(function(e){var t=e.name,r=e.directives,n=e.fields;return Ie(["input",t,Ie(r," "),Qi(n)]," ")}),DirectiveDefinition:Gi(function(e){var t=e.name,r=e.arguments,n=e.repeatable,a=e.locations;return"directive @"+t+(CN(r)?tr(`( `,$v(Ie(r,` `)),` )`):tr("(",Ie(r,", "),")"))+(n?" repeatable":"")+" on "+Ie(a," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return Ie(["extend schema",Ie(r," "),Qi(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return Ie(["extend scalar",r,Ie(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend type",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,a=t.directives,o=t.fields;return Ie(["extend interface",r,tr("implements ",Ie(n," & ")),Ie(a," "),Qi(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,a=t.types;return Ie(["extend union",r,Ie(n," "),a&&a.length!==0?"= "+Ie(a," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,a=t.values;return Ie(["extend enum",r,Ie(n," "),Qi(a)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,a=t.fields;return Ie(["extend input",r,Ie(n," "),Qi(a)]," ")}};function Gi(e){return function(t){return Ie([t.description,e(t)],` `)}}function Ie(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(n){return n}).join(r))!==null&&t!==void 0?t:""}function Qi(e){return tr(`{ `,$v(Ie(e,` `)),` }`)}function tr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function $v(e){return tr(" ",e.replace(/\n/g,` `))}function fQ(e){return e.indexOf(` `)!==-1}function CN(e){return e!=null&&e.some(fQ)}});var qE=U(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.valueFromASTUntyped=jE;var dQ=PE(_t()),pQ=PE(zr()),hQ=PE(cd()),Wa=Pt();function PE(e){return e&&e.__esModule?e:{default:e}}function jE(e,t){switch(e.kind){case Wa.Kind.NULL:return null;case Wa.Kind.INT:return parseInt(e.value,10);case Wa.Kind.FLOAT:return parseFloat(e.value);case Wa.Kind.STRING:case Wa.Kind.ENUM:case Wa.Kind.BOOLEAN:return e.value;case Wa.Kind.LIST:return e.values.map(function(r){return jE(r,t)});case Wa.Kind.OBJECT:return(0,hQ.default)(e.fields,function(r){return r.name.value},function(r){return jE(r.value,t)});case Wa.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,pQ.default)(0,"Unexpected value node: "+(0,dQ.default)(e))}});var lt=U(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isType=BE;Me.assertType=xN;Me.isScalarType=Bu;Me.assertScalarType=TQ;Me.isObjectType=Cl;Me.assertObjectType=_Q;Me.isInterfaceType=Vu;Me.assertInterfaceType=SQ;Me.isUnionType=Uu;Me.assertUnionType=DQ;Me.isEnumType=Gu;Me.assertEnumType=kQ;Me.isInputObjectType=pd;Me.assertInputObjectType=CQ;Me.isListType=tg;Me.assertListType=OQ;Me.isNonNullType=Ho;Me.assertNonNullType=wQ;Me.isInputType=VE;Me.assertInputType=NQ;Me.isOutputType=UE;Me.assertOutputType=AQ;Me.isLeafType=IN;Me.assertLeafType=LQ;Me.isCompositeType=RN;Me.assertCompositeType=xQ;Me.isAbstractType=FN;Me.assertAbstractType=IQ;Me.GraphQLList=zo;Me.GraphQLNonNull=Wo;Me.isWrappingType=hd;Me.assertWrappingType=RQ;Me.isNullableType=PN;Me.assertNullableType=jN;Me.getNullableType=FQ;Me.isNamedType=MN;Me.assertNamedType=PQ;Me.getNamedType=jQ;Me.argsToArgsConfig=UN;Me.isRequiredArgument=MQ;Me.isRequiredInputField=UQ;Me.GraphQLInputObjectType=Me.GraphQLEnumType=Me.GraphQLUnionType=Me.GraphQLInterfaceType=Me.GraphQLObjectType=Me.GraphQLScalarType=void 0;var ON=$n(Dl()),Go=ha(),Ht=$n(_t()),vQ=$n(Bo()),eg=$n(OE()),ga=$n(Xv()),Jt=$n(Ei()),wN=$n(cd()),Qo=$n(ad()),gQ=$n(Vo()),mQ=$n(pa()),NN=$n(DN()),Ko=$n(Pv()),yQ=$n(Uo()),dd=Ve(),bQ=Pt(),AN=jn(),EQ=qE();function $n(e){return e&&e.__esModule?e:{default:e}}function LN(e,t){for(var r=0;r0?e:void 0}var GE=function(){function e(r){var n,a,o,s=(n=r.parseValue)!==null&&n!==void 0?n:NN.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(a=r.serialize)!==null&&a!==void 0?a:NN.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(c,d){return s((0,EQ.valueFromASTUntyped)(c,d))},this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.specifiedByUrl==null||typeof r.specifiedByUrl=="string"||(0,Jt.default)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,Ht.default)(r.specifiedByUrl),".")),r.serialize==null||typeof r.serialize=="function"||(0,Jt.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.')),r.parseLiteral&&(typeof r.parseValue=="function"&&typeof r.parseLiteral=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var t=e.prototype;return t.toConfig=function(){var n;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:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),e}();Me.GraphQLScalarType=GE;(0,Ko.default)(GE);var QE=function(){function e(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=BN.bind(void 0,r),this._interfaces=qN.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,Ht.default)(r.isTypeOf),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:VN(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()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),e}();Me.GraphQLObjectType=QE;(0,Ko.default)(QE);function qN(e){var t,r=(t=rg(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,Jt.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),r}function BN(e){var t=rg(e.fields);return wl(t)||(0,Jt.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,eg.default)(t,function(r,n){var a;wl(r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=="function"||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,Ht.default)(r.resolve),"."));var o=(a=r.args)!==null&&a!==void 0?a:{};wl(o)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,ON.default)(o).map(function(c){var d=c[0],h=c[1];return{name:d,description:h.description,type:h.type,defaultValue:h.defaultValue,deprecationReason:h.deprecationReason,extensions:h.extensions&&(0,ga.default)(h.extensions),astNode:h.astNode}});return{name:n,description:r.description,type:r.type,args:s,resolve:r.resolve,subscribe:r.subscribe,isDeprecated:r.deprecationReason!=null,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ga.default)(r.extensions),astNode:r.astNode}})}function wl(e){return(0,mQ.default)(e)&&!Array.isArray(e)}function VN(e){return(0,eg.default)(e,function(t){return{description:t.description,type:t.type,args:UN(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function UN(e){return(0,wN.default)(e,function(t){return t.name},function(t){return{description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function MQ(e){return Ho(e.type)&&e.defaultValue===void 0}var KE=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=BN.bind(void 0,r),this._interfaces=qN.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,Ht.default)(r.resolveType),"."))}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},t.toConfig=function(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:VN(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),e}();Me.GraphQLInterfaceType=KE;(0,Ko.default)(KE);var HE=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._types=qQ.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,Jt.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,Ht.default)(r.resolveType),"."))}var t=e.prototype;return t.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},t.toConfig=function(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),e}();Me.GraphQLUnionType=HE;(0,Ko.default)(HE);function qQ(e){var t=rg(e.types);return Array.isArray(t)||(0,Jt.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var zE=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._values=BQ(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=(0,vQ.default)(this._values,function(n){return n.name}),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name.")}var t=e.prototype;return t.getValues=function(){return this._values},t.getValue=function(n){return this._nameLookup[n]},t.serialize=function(n){var a=this._valueLookup.get(n);if(a===void 0)throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,Ht.default)(n)));return a.name},t.parseValue=function(n){if(typeof n!="string"){var a=(0,Ht.default)(n);throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(a,".")+ng(this,a))}var o=this.getValue(n);if(o==null)throw new dd.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+ng(this,n));return o.value},t.parseLiteral=function(n,a){if(n.kind!==bQ.Kind.ENUM){var o=(0,AN.print)(n);throw new dd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+ng(this,o),n)}var s=this.getValue(n.value);if(s==null){var c=(0,AN.print)(n);throw new dd.GraphQLError('Value "'.concat(c,'" does not exist in "').concat(this.name,'" enum.')+ng(this,c),n)}return s.value},t.toConfig=function(){var n,a=(0,wN.default)(this.getValues(),function(o){return o.name},function(o){return{description:o.description,value:o.value,deprecationReason:o.deprecationReason,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,values:a,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),e}();Me.GraphQLEnumType=zE;(0,Ko.default)(zE);function ng(e,t){var r=e.getValues().map(function(a){return a.name}),n=(0,yQ.default)(t,r);return(0,gQ.default)("the enum value",n)}function BQ(e,t){return wl(t)||(0,Jt.default)(0,"".concat(e," values must be an object with value names as keys.")),(0,ON.default)(t).map(function(r){var n=r[0],a=r[1];return wl(a)||(0,Jt.default)(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,Ht.default)(a),".")),!("isDeprecated"in a)||(0,Jt.default)(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:a.description,value:a.value!==void 0?a.value:n,isDeprecated:a.deprecationReason!=null,deprecationReason:a.deprecationReason,extensions:a.extensions&&(0,ga.default)(a.extensions),astNode:a.astNode}})}var WE=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,ga.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=Ol(r.extensionASTNodes),this._fields=VQ.bind(void 0,r),typeof r.name=="string"||(0,Jt.default)(0,"Must provide name.")}var t=e.prototype;return t.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},t.toConfig=function(){var n,a=(0,eg.default)(this.getFields(),function(o){return{description:o.description,type:o.type,defaultValue:o.defaultValue,extensions:o.extensions,astNode:o.astNode}});return{name:this.name,description:this.description,fields:a,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},t.toString=function(){return this.name},t.toJSON=function(){return this.toString()},kl(e,[{key:Go.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),e}();Me.GraphQLInputObjectType=WE;(0,Ko.default)(WE);function VQ(e){var t=rg(e.fields);return wl(t)||(0,Jt.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,eg.default)(t,function(r,n){return!("resolve"in r)||(0,Jt.default)(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions&&(0,ga.default)(r.extensions),astNode:r.astNode}})}function UQ(e){return Ho(e.type)&&e.defaultValue===void 0}});var gd=U(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.isEqualType=YE;vd.isTypeSubTypeOf=ig;vd.doTypesOverlap=GQ;var on=lt();function YE(e,t){return e===t?!0:(0,on.isNonNullType)(e)&&(0,on.isNonNullType)(t)||(0,on.isListType)(e)&&(0,on.isListType)(t)?YE(e.ofType,t.ofType):!1}function ig(e,t,r){return t===r?!0:(0,on.isNonNullType)(r)?(0,on.isNonNullType)(t)?ig(e,t.ofType,r.ofType):!1:(0,on.isNonNullType)(t)?ig(e,t.ofType,r):(0,on.isListType)(r)?(0,on.isListType)(t)?ig(e,t.ofType,r.ofType):!1:(0,on.isListType)(t)?!1:(0,on.isAbstractType)(r)&&((0,on.isInterfaceType)(t)||(0,on.isObjectType)(t))&&e.isSubType(r,t)}function GQ(e,t,r){return t===r?!0:(0,on.isAbstractType)(t)?(0,on.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){return e.isSubType(r,n)}):e.isSubType(t,r):(0,on.isAbstractType)(r)?e.isSubType(r,t):!1}});var JE=U(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.default=void 0;var QQ=ha(),KQ=Array.from||function(e,t,r){if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n=e[QQ.SYMBOL_ITERATOR];if(typeof n=="function"){for(var a=n.call(e),o=[],s,c=0;!(s=a.next()).done;++c)if(o.push(t.call(r,s.value,c)),c>9999999)throw new TypeError("Near-infinite iteration.");return o}var d=e.length;if(typeof d=="number"&&d>=0&&d%1==0){for(var h=[],m=0;m{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.default=void 0;var zQ=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},WQ=zQ;og.default=WQ});var sg=U(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.default=JQ;var YQ=ha();function ug(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ug=function(r){return typeof r}:ug=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ug(e)}function JQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(m){return m};if(e==null||ug(e)!=="object")return null;if(Array.isArray(e))return e.map(t);var r=e[YQ.SYMBOL_ITERATOR];if(typeof r=="function"){for(var n=r.call(e),a=[],o,s=0;!(o=n.next()).done;++s)a.push(t(o.value,s));return a}var c=e.length;if(typeof c=="number"&&c>=0&&c%1==0){for(var d=[],h=0;h{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});lg.default=void 0;var XQ=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ZQ=XQ;lg.default=ZQ});var ma=U(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.isSpecifiedScalarType=l9;_n.specifiedScalarTypes=_n.GraphQLID=_n.GraphQLBoolean=_n.GraphQLString=_n.GraphQLFloat=_n.GraphQLInt=void 0;var cg=dg(XE()),fg=dg(GN()),Ki=dg(_t()),QN=dg(pa()),Qu=Pt(),md=jn(),jr=Ve(),yd=lt();function dg(e){return e&&e.__esModule?e:{default:e}}var $E=2147483647,eT=-2147483648;function $Q(e){var t=bd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,fg.default)(r))throw new jr.GraphQLError("Int cannot represent non-integer value: ".concat((0,Ki.default)(t)));if(r>$E||r$E||e$E||r{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.astFromValue=Td;var c9=Nl(XE()),f9=Nl(Zn()),XN=Nl(_t()),d9=Nl(zr()),p9=Nl(pa()),h9=Nl(sg()),Ti=Pt(),v9=ma(),Ed=lt();function Nl(e){return e&&e.__esModule?e:{default:e}}function Td(e,t){if((0,Ed.isNonNullType)(t)){var r=Td(e,t.ofType);return(r==null?void 0:r.kind)===Ti.Kind.NULL?null:r}if(e===null)return{kind:Ti.Kind.NULL};if(e===void 0)return null;if((0,Ed.isListType)(t)){var n=t.ofType,a=(0,h9.default)(e);if(a!=null){for(var o=[],s=0;s{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.isIntrospectionType=S9;Ot.introspectionTypes=Ot.TypeNameMetaFieldDef=Ot.TypeMetaFieldDef=Ot.SchemaMetaFieldDef=Ot.__TypeKind=Ot.TypeKind=Ot.__EnumValue=Ot.__InputValue=Ot.__Field=Ot.__Type=Ot.__DirectiveLocation=Ot.__Directive=Ot.__Schema=void 0;var rT=nT(Zn()),g9=nT(_t()),m9=nT(zr()),y9=jn(),wr=bl(),b9=_d(),Bt=ma(),Re=lt();function nT(e){return e&&e.__esModule?e:{default:e}}var iT=new Re.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:Bt.GraphQLString,resolve:function(r){return r.description}},types:{description:"A list of all types supported by this server.",type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(_i))),resolve:function(r){return(0,rT.default)(r.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:_i,resolve:function(r){return r.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:_i,resolve:function(r){return r.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(aT))),resolve:function(r){return r.getDirectives()}}}}});Ot.__Schema=iT;var aT=new Re.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:function(){return{name:{type:new Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(oT))),resolve:function(r){return r.locations}},args:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(Sd))),resolve:function(r){return r.args}}}}});Ot.__Directive=aT;var oT=new Re.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:wr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:wr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:wr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:wr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:wr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:wr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:wr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:wr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:wr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:wr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:wr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:wr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:wr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:wr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:wr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:wr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:wr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:wr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:wr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Ot.__DirectiveLocation=oT;var _i=new Re.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 Re.GraphQLNonNull(lT),resolve:function(r){if((0,Re.isScalarType)(r))return Wr.SCALAR;if((0,Re.isObjectType)(r))return Wr.OBJECT;if((0,Re.isInterfaceType)(r))return Wr.INTERFACE;if((0,Re.isUnionType)(r))return Wr.UNION;if((0,Re.isEnumType)(r))return Wr.ENUM;if((0,Re.isInputObjectType)(r))return Wr.INPUT_OBJECT;if((0,Re.isListType)(r))return Wr.LIST;if((0,Re.isNonNullType)(r))return Wr.NON_NULL;(0,m9.default)(0,'Unexpected type: "'.concat((0,g9.default)(r),'".'))}},name:{type:Bt.GraphQLString,resolve:function(r){return r.name!==void 0?r.name:void 0}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description!==void 0?r.description:void 0}},specifiedByUrl:{type:Bt.GraphQLString,resolve:function(r){return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0}},fields:{type:new Re.GraphQLList(new Re.GraphQLNonNull(uT)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isObjectType)(r)||(0,Re.isInterfaceType)(r)){var o=(0,rT.default)(r.getFields());return a?o:o.filter(function(s){return s.deprecationReason==null})}}},interfaces:{type:new Re.GraphQLList(new Re.GraphQLNonNull(_i)),resolve:function(r){if((0,Re.isObjectType)(r)||(0,Re.isInterfaceType)(r))return r.getInterfaces()}},possibleTypes:{type:new Re.GraphQLList(new Re.GraphQLNonNull(_i)),resolve:function(r,n,a,o){var s=o.schema;if((0,Re.isAbstractType)(r))return s.getPossibleTypes(r)}},enumValues:{type:new Re.GraphQLList(new Re.GraphQLNonNull(sT)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isEnumType)(r)){var o=r.getValues();return a?o:o.filter(function(s){return s.deprecationReason==null})}}},inputFields:{type:new Re.GraphQLList(new Re.GraphQLNonNull(Sd)),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;if((0,Re.isInputObjectType)(r)){var o=(0,rT.default)(r.getFields());return a?o:o.filter(function(s){return s.deprecationReason==null})}}},ofType:{type:_i,resolve:function(r){return r.ofType!==void 0?r.ofType:void 0}}}}});Ot.__Type=_i;var uT=new Re.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 Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},args:{type:new Re.GraphQLNonNull(new Re.GraphQLList(new Re.GraphQLNonNull(Sd))),args:{includeDeprecated:{type:Bt.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var a=n.includeDeprecated;return a?r.args:r.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.type}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__Field=uT;var Sd=new Re.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 Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},type:{type:new Re.GraphQLNonNull(_i),resolve:function(r){return r.type}},defaultValue:{type:Bt.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(r){var n=r.type,a=r.defaultValue,o=(0,b9.astFromValue)(a,n);return o?(0,y9.print)(o):null}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__InputValue=Sd;var sT=new Re.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 Re.GraphQLNonNull(Bt.GraphQLString),resolve:function(r){return r.name}},description:{type:Bt.GraphQLString,resolve:function(r){return r.description}},isDeprecated:{type:new Re.GraphQLNonNull(Bt.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:Bt.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Ot.__EnumValue=sT;var Wr=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});Ot.TypeKind=Wr;var lT=new Re.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Wr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Wr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Wr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Wr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Wr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Wr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Wr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Wr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Ot.__TypeKind=lT;var E9={name:"__schema",type:new Re.GraphQLNonNull(iT),description:"Access the current type schema of this server.",args:[],resolve:function(t,r,n,a){var o=a.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.SchemaMetaFieldDef=E9;var T9={name:"__type",type:_i,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Re.GraphQLNonNull(Bt.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,a){var o=r.name,s=a.schema;return s.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.TypeMetaFieldDef=T9;var _9={name:"__typename",type:new Re.GraphQLNonNull(Bt.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,r,n,a){var o=a.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Ot.TypeNameMetaFieldDef=_9;var $N=Object.freeze([iT,aT,oT,_i,uT,Sd,sT,lT]);Ot.introspectionTypes=$N;function S9(e){return $N.some(function(t){var r=t.name;return e.name===r})}});var qn=U(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.isDirective=rA;Nr.assertDirective=L9;Nr.isSpecifiedDirective=x9;Nr.specifiedDirectives=Nr.GraphQLSpecifiedByDirective=Nr.GraphQLDeprecatedDirective=Nr.DEFAULT_DEPRECATION_REASON=Nr.GraphQLSkipDirective=Nr.GraphQLIncludeDirective=Nr.GraphQLDirective=void 0;var D9=Ku(Dl()),k9=ha(),C9=Ku(_t()),eA=Ku(Xv()),cT=Ku(Ei()),O9=Ku(ad()),w9=Ku(pa()),N9=Ku(Pv()),Hi=bl(),pg=ma(),hg=lt();function Ku(e){return e&&e.__esModule?e:{default:e}}function tA(e,t){for(var r=0;r{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.isSchema=fA;Al.assertSchema=V9;Al.GraphQLSchema=void 0;var I9=Yo(Sl()),R9=Yo(JE()),fT=Yo(Zn()),F9=ha(),dT=Yo(_t()),P9=Yo(Xv()),vg=Yo(Ei()),j9=Yo(ad()),M9=Yo(pa()),q9=Mn(),lA=qn(),zi=lt();function Yo(e){return e&&e.__esModule?e:{default:e}}function cA(e,t){for(var r=0;r{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.validateSchema=gA;gg.assertValidSchema=z9;var pA=pT(Sl()),Dd=pT(Zn()),un=pT(_t()),U9=Ve(),G9=ld(),Q9=DE(),hA=gd(),K9=zu(),H9=Mn(),vA=qn(),hr=lt();function pT(e){return e&&e.__esModule?e:{default:e}}function gA(e){if((0,K9.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new W9(e);Y9(t),J9(t),X9(t);var r=t.getErrors();return e.__validationErrors=r,r}function z9(e){var t=gA(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` `))}var W9=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,a){var o=Array.isArray(a)?a.filter(Boolean):a;this.addError(new U9.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function Y9(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,hr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,un.default)(r),"."),(n=hT(t,"query"))!==null&&n!==void 0?n:r.astNode)}var a=t.getMutationType();if(a&&!(0,hr.isObjectType)(a)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(a),"."),(o=hT(t,"mutation"))!==null&&o!==void 0?o:a.astNode)}var s=t.getSubscriptionType();if(s&&!(0,hr.isObjectType)(s)){var c;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,un.default)(s),"."),(c=hT(t,"subscription"))!==null&&c!==void 0?c:s.astNode)}}function hT(e,t){for(var r=vT(e,function(o){return o.operationTypes}),n=0;n{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});bT.typeFromAST=yT;var i4=TA(_t()),a4=TA(zr()),mT=Pt(),EA=lt();function TA(e){return e&&e.__esModule?e:{default:e}}function yT(e,t){var r;if(t.kind===mT.Kind.LIST_TYPE)return r=yT(e,t.type),r&&new EA.GraphQLList(r);if(t.kind===mT.Kind.NON_NULL_TYPE)return r=yT(e,t.type),r&&new EA.GraphQLNonNull(r);if(t.kind===mT.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,a4.default)(0,"Unexpected type node: "+(0,i4.default)(t))}});var mg=U(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.visitWithTypeInfo=f4;Od.TypeInfo=void 0;var o4=s4(Sl()),ur=Pt(),u4=ml(),_A=qo(),sr=lt(),xl=Mn(),SA=ya();function s4(e){return e&&e.__esModule?e:{default:e}}var l4=function(){function e(r,n,a){this._schema=r,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=n!=null?n:c4,a&&((0,sr.isInputType)(a)&&this._inputTypeStack.push(a),(0,sr.isCompositeType)(a)&&this._parentTypeStack.push(a),(0,sr.isOutputType)(a)&&this._typeStack.push(a))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(n){var a=this._schema;switch(n.kind){case ur.Kind.SELECTION_SET:{var o=(0,sr.getNamedType)(this.getType());this._parentTypeStack.push((0,sr.isCompositeType)(o)?o:void 0);break}case ur.Kind.FIELD:{var s=this.getParentType(),c,d;s&&(c=this._getFieldDef(a,s,n),c&&(d=c.type)),this._fieldDefStack.push(c),this._typeStack.push((0,sr.isOutputType)(d)?d:void 0);break}case ur.Kind.DIRECTIVE:this._directive=a.getDirective(n.name.value);break;case ur.Kind.OPERATION_DEFINITION:{var h;switch(n.operation){case"query":h=a.getQueryType();break;case"mutation":h=a.getMutationType();break;case"subscription":h=a.getSubscriptionType();break}this._typeStack.push((0,sr.isObjectType)(h)?h:void 0);break}case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:{var m=n.typeCondition,T=m?(0,SA.typeFromAST)(a,m):(0,sr.getNamedType)(this.getType());this._typeStack.push((0,sr.isOutputType)(T)?T:void 0);break}case ur.Kind.VARIABLE_DEFINITION:{var b=(0,SA.typeFromAST)(a,n.type);this._inputTypeStack.push((0,sr.isInputType)(b)?b:void 0);break}case ur.Kind.ARGUMENT:{var C,L,S,y=(C=this.getDirective())!==null&&C!==void 0?C:this.getFieldDef();y&&(L=(0,o4.default)(y.args,function(P){return P.name===n.name.value}),L&&(S=L.type)),this._argument=L,this._defaultValueStack.push(L?L.defaultValue:void 0),this._inputTypeStack.push((0,sr.isInputType)(S)?S:void 0);break}case ur.Kind.LIST:{var _=(0,sr.getNullableType)(this.getInputType()),g=(0,sr.isListType)(_)?_.ofType:_;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,sr.isInputType)(g)?g:void 0);break}case ur.Kind.OBJECT_FIELD:{var k=(0,sr.getNamedType)(this.getInputType()),N,w;(0,sr.isInputObjectType)(k)&&(w=k.getFields()[n.name.value],w&&(N=w.type)),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push((0,sr.isInputType)(N)?N:void 0);break}case ur.Kind.ENUM:{var D=(0,sr.getNamedType)(this.getInputType()),F;(0,sr.isEnumType)(D)&&(F=D.getValue(n.value)),this._enumValue=F;break}}},t.leave=function(n){switch(n.kind){case ur.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case ur.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ur.Kind.DIRECTIVE:this._directive=null;break;case ur.Kind.OPERATION_DEFINITION:case ur.Kind.INLINE_FRAGMENT:case ur.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ur.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ur.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.LIST:case ur.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ur.Kind.ENUM:this._enumValue=null;break}},e}();Od.TypeInfo=l4;function c4(e,t,r){var n=r.name.value;if(n===xl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return xl.SchemaMetaFieldDef;if(n===xl.TypeMetaFieldDef.name&&e.getQueryType()===t)return xl.TypeMetaFieldDef;if(n===xl.TypeNameMetaFieldDef.name&&(0,sr.isCompositeType)(t))return xl.TypeNameMetaFieldDef;if((0,sr.isObjectType)(t)||(0,sr.isInterfaceType)(t))return t.getFields()[n]}function f4(e,t){return{enter:function(n){e.enter(n);var a=(0,_A.getVisitFn)(t,n.kind,!1);if(a){var o=a.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,u4.isNode)(o)&&e.enter(o)),o}},leave:function(n){var a=(0,_A.getVisitFn)(t,n.kind,!0),o;return a&&(o=a.apply(t,arguments)),e.leave(n),o}}}});var Yu=U(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isDefinitionNode=d4;Yi.isExecutableDefinitionNode=DA;Yi.isSelectionNode=p4;Yi.isValueNode=h4;Yi.isTypeNode=v4;Yi.isTypeSystemDefinitionNode=kA;Yi.isTypeDefinitionNode=CA;Yi.isTypeSystemExtensionNode=OA;Yi.isTypeExtensionNode=wA;var yt=Pt();function d4(e){return DA(e)||kA(e)||OA(e)}function DA(e){return e.kind===yt.Kind.OPERATION_DEFINITION||e.kind===yt.Kind.FRAGMENT_DEFINITION}function p4(e){return e.kind===yt.Kind.FIELD||e.kind===yt.Kind.FRAGMENT_SPREAD||e.kind===yt.Kind.INLINE_FRAGMENT}function h4(e){return e.kind===yt.Kind.VARIABLE||e.kind===yt.Kind.INT||e.kind===yt.Kind.FLOAT||e.kind===yt.Kind.STRING||e.kind===yt.Kind.BOOLEAN||e.kind===yt.Kind.NULL||e.kind===yt.Kind.ENUM||e.kind===yt.Kind.LIST||e.kind===yt.Kind.OBJECT}function v4(e){return e.kind===yt.Kind.NAMED_TYPE||e.kind===yt.Kind.LIST_TYPE||e.kind===yt.Kind.NON_NULL_TYPE}function kA(e){return e.kind===yt.Kind.SCHEMA_DEFINITION||CA(e)||e.kind===yt.Kind.DIRECTIVE_DEFINITION}function CA(e){return e.kind===yt.Kind.SCALAR_TYPE_DEFINITION||e.kind===yt.Kind.OBJECT_TYPE_DEFINITION||e.kind===yt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===yt.Kind.UNION_TYPE_DEFINITION||e.kind===yt.Kind.ENUM_TYPE_DEFINITION||e.kind===yt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function OA(e){return e.kind===yt.Kind.SCHEMA_EXTENSION||wA(e)}function wA(e){return e.kind===yt.Kind.SCALAR_TYPE_EXTENSION||e.kind===yt.Kind.OBJECT_TYPE_EXTENSION||e.kind===yt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===yt.Kind.UNION_TYPE_EXTENSION||e.kind===yt.Kind.ENUM_TYPE_EXTENSION||e.kind===yt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var yg=U(ET=>{"use strict";Object.defineProperty(ET,"__esModule",{value:!0});ET.ExecutableDefinitionsRule=y4;var g4=Ve(),NA=Pt(),m4=Yu();function y4(e){return{Document:function(r){for(var n=0,a=r.definitions;n{"use strict";Object.defineProperty(TT,"__esModule",{value:!0});TT.UniqueOperationNamesRule=E4;var b4=Ve();function E4(e){var t=Object.create(null);return{OperationDefinition:function(n){var a=n.name;return a&&(t[a.value]?e.reportError(new b4.GraphQLError('There can be only one operation named "'.concat(a.value,'".'),[t[a.value],a])):t[a.value]=a),!1},FragmentDefinition:function(){return!1}}}});var DT=U(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0});ST.LoneAnonymousOperationRule=S4;var T4=Ve(),_4=Pt();function S4(e){var t=0;return{Document:function(n){t=n.definitions.filter(function(a){return a.kind===_4.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new T4.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}});var CT=U(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.SingleFieldSubscriptionsRule=k4;var D4=Ve();function k4(e){return{OperationDefinition:function(r){r.operation==="subscription"&&r.selectionSet.selections.length!==1&&e.reportError(new D4.GraphQLError(r.name?'Subscription "'.concat(r.name.value,'" must select only one top level field.'):"Anonymous Subscription must select only one top level field.",r.selectionSet.selections.slice(1)))}}}});var NT=U(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0});wT.KnownTypeNamesRule=L4;var C4=AA(Vo()),O4=AA(Uo()),w4=Ve(),OT=Yu(),N4=ma(),A4=Mn();function AA(e){return e&&e.__esModule?e:{default:e}}function L4(e){for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),a=0,o=e.getDocument().definitions;a{"use strict";Object.defineProperty(AT,"__esModule",{value:!0});AT.FragmentsOnCompositeTypesRule=R4;var xA=Ve(),IA=jn(),RA=lt(),FA=ya();function R4(e){return{InlineFragment:function(r){var n=r.typeCondition;if(n){var a=(0,FA.typeFromAST)(e.getSchema(),n);if(a&&!(0,RA.isCompositeType)(a)){var o=(0,IA.print)(n);e.reportError(new xA.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n))}}},FragmentDefinition:function(r){var n=(0,FA.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,RA.isCompositeType)(n)){var a=(0,IA.print)(r.typeCondition);e.reportError(new xA.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(a,'".'),r.typeCondition))}}}}});var IT=U(xT=>{"use strict";Object.defineProperty(xT,"__esModule",{value:!0});xT.VariablesAreInputTypesRule=q4;var F4=Ve(),P4=jn(),j4=lt(),M4=ya();function q4(e){return{VariableDefinition:function(r){var n=(0,M4.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,j4.isInputType)(n)){var a=r.variable.name.value,o=(0,P4.print)(r.type);e.reportError(new F4.GraphQLError('Variable "$'.concat(a,'" cannot be non-input type "').concat(o,'".'),r.type))}}}}});var FT=U(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.ScalarLeafsRule=V4;var PA=B4(_t()),jA=Ve(),MA=lt();function B4(e){return e&&e.__esModule?e:{default:e}}function V4(e){return{Field:function(r){var n=e.getType(),a=r.selectionSet;if(n){if((0,MA.isLeafType)((0,MA.getNamedType)(n))){if(a){var o=r.name.value,s=(0,PA.default)(n);e.reportError(new jA.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),a))}}else if(!a){var c=r.name.value,d=(0,PA.default)(n);e.reportError(new jA.GraphQLError('Field "'.concat(c,'" of type "').concat(d,'" must have a selection of subfields. Did you mean "').concat(c,' { ... }"?'),r))}}}}}});var jT=U(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0});PT.FieldsOnCorrectTypeRule=H4;var U4=bg(JE()),qA=bg(Vo()),G4=bg(Uo()),Q4=bg(fd()),K4=Ve(),wd=lt();function bg(e){return e&&e.__esModule?e:{default:e}}function H4(e){return{Field:function(r){var n=e.getParentType();if(n){var a=e.getFieldDef();if(!a){var o=e.getSchema(),s=r.name.value,c=(0,qA.default)("to use an inline fragment on",z4(o,n,s));c===""&&(c=(0,qA.default)(W4(n,s))),e.reportError(new K4.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+c,r))}}}}}function z4(e,t,r){if(!(0,wd.isAbstractType)(t))return[];for(var n=new Set,a=Object.create(null),o=0,s=e.getPossibleTypes(t);o{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.UniqueFragmentNamesRule=J4;var Y4=Ve();function J4(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var a=n.name.value;return t[a]?e.reportError(new Y4.GraphQLError('There can be only one fragment named "'.concat(a,'".'),[t[a],n.name])):t[a]=n.name,!1}}}});var VT=U(BT=>{"use strict";Object.defineProperty(BT,"__esModule",{value:!0});BT.KnownFragmentNamesRule=Z4;var X4=Ve();function Z4(e){return{FragmentSpread:function(r){var n=r.name.value,a=e.getFragment(n);a||e.reportError(new X4.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name))}}}});var GT=U(UT=>{"use strict";Object.defineProperty(UT,"__esModule",{value:!0});UT.NoUnusedFragmentsRule=eK;var $4=Ve();function eK(e){var t=[],r=[];return{OperationDefinition:function(a){return t.push(a),!1},FragmentDefinition:function(a){return r.push(a),!1},Document:{leave:function(){for(var a=Object.create(null),o=0;o{"use strict";Object.defineProperty(KT,"__esModule",{value:!0});KT.PossibleFragmentSpreadsRule=nK;var Eg=rK(_t()),BA=Ve(),QT=lt(),tK=ya(),VA=gd();function rK(e){return e&&e.__esModule?e:{default:e}}function nK(e){return{InlineFragment:function(r){var n=e.getType(),a=e.getParentType();if((0,QT.isCompositeType)(n)&&(0,QT.isCompositeType)(a)&&!(0,VA.doTypesOverlap)(e.getSchema(),n,a)){var o=(0,Eg.default)(a),s=(0,Eg.default)(n);e.reportError(new BA.GraphQLError('Fragment cannot be spread here as objects of type "'.concat(o,'" can never be of type "').concat(s,'".'),r))}},FragmentSpread:function(r){var n=r.name.value,a=iK(e,n),o=e.getParentType();if(a&&o&&!(0,VA.doTypesOverlap)(e.getSchema(),a,o)){var s=(0,Eg.default)(o),c=(0,Eg.default)(a);e.reportError(new BA.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(c,'".'),r))}}}}function iK(e,t){var r=e.getFragment(t);if(r){var n=(0,tK.typeFromAST)(e.getSchema(),r.typeCondition);if((0,QT.isCompositeType)(n))return n}}});var WT=U(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0});zT.NoFragmentCyclesRule=oK;var aK=Ve();function oK(e){var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return a(s),!1}};function a(o){if(!t[o.name.value]){var s=o.name.value;t[s]=!0;var c=e.getFragmentSpreads(o.selectionSet);if(c.length!==0){n[s]=r.length;for(var d=0;d{"use strict";Object.defineProperty(YT,"__esModule",{value:!0});YT.UniqueVariableNamesRule=sK;var uK=Ve();function sK(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var a=n.variable.name.value;t[a]?e.reportError(new uK.GraphQLError('There can be only one variable named "$'.concat(a,'".'),[t[a],n.variable.name])):t[a]=n.variable.name}}}});var ZT=U(XT=>{"use strict";Object.defineProperty(XT,"__esModule",{value:!0});XT.NoUndefinedVariablesRule=cK;var lK=Ve();function cK(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var a=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty($T,"__esModule",{value:!0});$T.NoUnusedVariablesRule=dK;var fK=Ve();function dK(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var a=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.KnownDirectivesRule=vK;var pK=QA(_t()),UA=QA(zr()),GA=Ve(),zt=Pt(),Ar=bl(),hK=qn();function QA(e){return e&&e.__esModule?e:{default:e}}function vK(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():hK.specifiedDirectives,a=0;a{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.UniqueDirectivesPerLocationRule=EK;var yK=Ve(),n_=Pt(),KA=Yu(),bK=qn();function EK(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():bK.specifiedDirectives,a=0;a{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});Tg.KnownArgumentNamesRule=DK;Tg.KnownArgumentNamesOnDirectivesRule=ZA;var HA=YA(Vo()),zA=YA(Uo()),WA=Ve(),TK=Pt(),_K=qn();function YA(e){return e&&e.__esModule?e:{default:e}}function JA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function XA(e){for(var t=1;t{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.UniqueArgumentNamesRule=CK;var kK=Ve();function CK(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var a=n.name.value;return t[a]?e.reportError(new kK.GraphQLError('There can be only one argument named "'.concat(a,'".'),[t[a],n.name])):t[a]=n.name,!1}}}});var c_=U(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.ValuesOfCorrectTypeRule=LK;var OK=Ad(Zn()),wK=Ad(Bo()),Nd=Ad(_t()),NK=Ad(Vo()),AK=Ad(Uo()),Ju=Ve(),_g=jn(),ba=lt();function Ad(e){return e&&e.__esModule?e:{default:e}}function LK(e){return{ListValue:function(r){var n=(0,ba.getNullableType)(e.getParentInputType());if(!(0,ba.isListType)(n))return Xu(e,r),!1},ObjectValue:function(r){var n=(0,ba.getNamedType)(e.getInputType());if(!(0,ba.isInputObjectType)(n))return Xu(e,r),!1;for(var a=(0,wK.default)(r.fields,function(m){return m.name.value}),o=0,s=(0,OK.default)(n.getFields());o{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.ProvidedRequiredArgumentsRule=FK;Dg.ProvidedRequiredArgumentsOnDirectivesRule=aL;var $A=rL(_t()),Sg=rL(Bo()),eL=Ve(),tL=Pt(),xK=jn(),IK=qn(),f_=lt();function rL(e){return e&&e.__esModule?e:{default:e}}function nL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iL(e){for(var t=1;t{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.VariablesInAllowedPositionRule=VK;var oL=BK(_t()),jK=Ve(),MK=Pt(),uL=lt(),qK=ya(),sL=gd();function BK(e){return e&&e.__esModule?e:{default:e}}function VK(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var a=e.getRecursiveVariableUsages(n),o=0;o{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.OverlappingFieldsCanBeMergedRule=HK;var GK=g_(Sl()),QK=g_(Dl()),lL=g_(_t()),KK=Ve(),v_=Pt(),cL=jn(),Bn=lt(),fL=ya();function g_(e){return e&&e.__esModule?e:{default:e}}function dL(e){return Array.isArray(e)?e.map(function(t){var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+dL(n)}).join(" and "):e}function HK(e){var t=new $K,r=new Map;return{SelectionSet:function(a){for(var o=zK(e,r,t,e.getParentType(),a),s=0;s1)for(var m=0;m0)return[[t,e.map(function(a){var o=a[0];return o})],e.reduce(function(a,o){var s=o[1];return a.concat(s)},[r]),e.reduce(function(a,o){var s=o[2];return a.concat(s)},[n])]}var $K=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(n,a,o){var s=this._data[n],c=s&&s[a];return c===void 0?!1:o===!1?c===!1:!0},t.add=function(n,a,o){this._pairSetAdd(n,a,o),this._pairSetAdd(a,n,o)},t._pairSetAdd=function(n,a,o){var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[a]=o},e}()});var S_=U(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.UniqueInputFieldNamesRule=t8;var e8=Ve();function t8(e){var t=[],r=Object.create(null);return{ObjectValue:{enter:function(){t.push(r),r=Object.create(null)},leave:function(){r=t.pop()}},ObjectField:function(a){var o=a.name.value;r[o]?e.reportError(new e8.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],a.name])):r[o]=a.name}}}});var k_=U(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.LoneSchemaDefinitionRule=r8;var vL=Ve();function r8(e){var t,r,n,a=e.getSchema(),o=(t=(r=(n=a==null?void 0:a.astNode)!==null&&n!==void 0?n:a==null?void 0:a.getQueryType())!==null&&r!==void 0?r:a==null?void 0:a.getMutationType())!==null&&t!==void 0?t:a==null?void 0:a.getSubscriptionType(),s=0;return{SchemaDefinition:function(d){if(o){e.reportError(new vL.GraphQLError("Cannot define a new schema within a schema extension.",d));return}s>0&&e.reportError(new vL.GraphQLError("Must provide only one schema definition.",d)),++s}}}});var O_=U(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.UniqueOperationTypesRule=n8;var gL=Ve();function n8(e){var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:a,SchemaExtension:a};function a(o){for(var s,c=(s=o.operationTypes)!==null&&s!==void 0?s:[],d=0;d{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.UniqueTypeNamesRule=i8;var mL=Ve();function i8(e){var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(a){var o=a.name.value;if(r!=null&&r.getType(o)){e.reportError(new mL.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),a.name));return}return t[o]?e.reportError(new mL.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],a.name])):t[o]=a.name,!1}}});var L_=U(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.UniqueEnumValueNamesRule=o8;var yL=Ve(),a8=lt();function o8(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:a,EnumTypeExtension:a};function a(o){var s,c=o.name.value;n[c]||(n[c]=Object.create(null));for(var d=(s=o.values)!==null&&s!==void 0?s:[],h=n[c],m=0;m{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.UniqueFieldDefinitionNamesRule=u8;var bL=Ve(),x_=lt();function u8(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:a,InputObjectTypeExtension:a,InterfaceTypeDefinition:a,InterfaceTypeExtension:a,ObjectTypeDefinition:a,ObjectTypeExtension:a};function a(o){var s,c=o.name.value;n[c]||(n[c]=Object.create(null));for(var d=(s=o.fields)!==null&&s!==void 0?s:[],h=n[c],m=0;m{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.UniqueDirectiveNamesRule=l8;var EL=Ve();function l8(e){var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(a){var o=a.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new EL.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),a.name));return}return t[o]?e.reportError(new EL.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],a.name])):t[o]=a.name,!1}}}});var M_=U(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});j_.PossibleTypeExtensionsRule=p8;var TL=wg(_t()),_L=wg(zr()),c8=wg(Vo()),f8=wg(Uo()),SL=Ve(),Xt=Pt(),d8=Yu(),Il=lt(),Jo;function wg(e){return e&&e.__esModule?e:{default:e}}function Rl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p8(e){for(var t=e.getSchema(),r=Object.create(null),n=0,a=e.getDocument().definitions;n{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.specifiedSDLRules=Fl.specifiedRules=void 0;var m8=yg(),y8=_T(),b8=DT(),E8=CT(),DL=NT(),T8=LT(),_8=IT(),S8=FT(),D8=jT(),k8=qT(),C8=VT(),O8=GT(),w8=HT(),N8=WT(),A8=JT(),L8=ZT(),x8=e_(),kL=r_(),CL=a_(),OL=o_(),wL=s_(),I8=c_(),NL=d_(),R8=h_(),F8=T_(),AL=S_(),P8=k_(),j8=O_(),M8=N_(),q8=L_(),B8=R_(),V8=P_(),U8=M_(),G8=Object.freeze([m8.ExecutableDefinitionsRule,y8.UniqueOperationNamesRule,b8.LoneAnonymousOperationRule,E8.SingleFieldSubscriptionsRule,DL.KnownTypeNamesRule,T8.FragmentsOnCompositeTypesRule,_8.VariablesAreInputTypesRule,S8.ScalarLeafsRule,D8.FieldsOnCorrectTypeRule,k8.UniqueFragmentNamesRule,C8.KnownFragmentNamesRule,O8.NoUnusedFragmentsRule,w8.PossibleFragmentSpreadsRule,N8.NoFragmentCyclesRule,A8.UniqueVariableNamesRule,L8.NoUndefinedVariablesRule,x8.NoUnusedVariablesRule,kL.KnownDirectivesRule,CL.UniqueDirectivesPerLocationRule,OL.KnownArgumentNamesRule,wL.UniqueArgumentNamesRule,I8.ValuesOfCorrectTypeRule,NL.ProvidedRequiredArgumentsRule,R8.VariablesInAllowedPositionRule,F8.OverlappingFieldsCanBeMergedRule,AL.UniqueInputFieldNamesRule]);Fl.specifiedRules=G8;var Q8=Object.freeze([P8.LoneSchemaDefinitionRule,j8.UniqueOperationTypesRule,M8.UniqueTypeNamesRule,q8.UniqueEnumValueNamesRule,B8.UniqueFieldDefinitionNamesRule,V8.UniqueDirectiveNamesRule,DL.KnownTypeNamesRule,kL.KnownDirectivesRule,CL.UniqueDirectivesPerLocationRule,U8.PossibleTypeExtensionsRule,OL.KnownArgumentNamesOnDirectivesRule,wL.UniqueArgumentNamesRule,AL.UniqueInputFieldNamesRule,NL.ProvidedRequiredArgumentsOnDirectivesRule]);Fl.specifiedSDLRules=Q8});var V_=U(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.ValidationContext=Xo.SDLValidationContext=Xo.ASTValidationContext=void 0;var LL=Pt(),K8=qo(),xL=mg();function IL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var B_=function(){function e(r,n){this._ast=r,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}var t=e.prototype;return t.reportError=function(n){this._onError(n)},t.getDocument=function(){return this._ast},t.getFragment=function(n){var a=this._fragments;return a||(this._fragments=a=this.getDocument().definitions.reduce(function(o,s){return s.kind===LL.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o},Object.create(null))),a[n]},t.getFragmentSpreads=function(n){var a=this._fragmentSpreads.get(n);if(!a){a=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),c=0,d=s.selections;c{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.validate=Z8;Pl.validateSDL=U_;Pl.assertValidSDL=$8;Pl.assertValidSDLExtension=e6;var W8=X8(Ei()),Y8=Ve(),Ng=qo(),J8=Cd(),RL=mg(),FL=q_(),PL=V_();function X8(e){return e&&e.__esModule?e:{default:e}}function Z8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:FL.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new RL.TypeInfo(e),a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,W8.default)(0,"Must provide document."),(0,J8.assertValidSchema)(e);var o=Object.freeze({}),s=[],c=new PL.ValidationContext(e,t,n,function(h){if(a.maxErrors!=null&&s.length>=a.maxErrors)throw s.push(new Y8.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(h)}),d=(0,Ng.visitInParallel)(r.map(function(h){return h(c)}));try{(0,Ng.visit)(t,(0,RL.visitWithTypeInfo)(n,d))}catch(h){if(h!==o)throw h}return s}function U_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:FL.specifiedSDLRules,n=[],a=new PL.SDLValidationContext(e,t,function(s){n.push(s)}),o=r.map(function(s){return s(a)});return(0,Ng.visit)(e,(0,Ng.visitInParallel)(o)),n}function $8(e){var t=U_(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(` `))}function e6(e,t){var r=U_(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join(` `))}});var jL=U(G_=>{"use strict";Object.defineProperty(G_,"__esModule",{value:!0});G_.default=t6;function t6(e){var t;return function(n,a,o){t||(t=new WeakMap);var s=t.get(n),c;if(s){if(c=s.get(a),c){var d=c.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);c||(c=new WeakMap,s.set(a,c));var h=e(n,a,o);return c.set(o,h),h}}});var ML=U(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.default=i6;var r6=n6(Cv());function n6(e){return e&&e.__esModule?e:{default:e}}function i6(e,t,r){return e.reduce(function(n,a){return(0,r6.default)(n)?n.then(function(o){return t(o,a)}):t(n,a)},r)}});var qL=U(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.default=a6;function a6(e){var t=Object.keys(e),r=t.map(function(n){return e[n]});return Promise.all(r).then(function(n){return n.reduce(function(a,o,s){return a[t[s]]=o,a},Object.create(null))})}});var Ld=U(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.addPath=o6;Ag.pathToArray=u6;function o6(e,t,r){return{prev:e,key:t,typename:r}}function u6(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var xg=U(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.getOperationRootType=s6;var Lg=Ve();function s6(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new Lg.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var n=e.getMutationType();if(!n)throw new Lg.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var a=e.getSubscriptionType();if(!a)throw new Lg.GraphQLError("Schema is not configured for subscriptions.",t);return a}throw new Lg.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var W_=U(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.default=l6;function l6(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var Id=U(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});Y_.valueFromAST=xd;var c6=Ig(Zn()),f6=Ig(Bo()),d6=Ig(_t()),p6=Ig(zr()),Ml=Pt(),Zu=lt();function Ig(e){return e&&e.__esModule?e:{default:e}}function xd(e,t,r){if(!!e){if(e.kind===Ml.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var a=r[n];return a===null&&(0,Zu.isNonNullType)(t)?void 0:a}if((0,Zu.isNonNullType)(t))return e.kind===Ml.Kind.NULL?void 0:xd(e,t.ofType,r);if(e.kind===Ml.Kind.NULL)return null;if((0,Zu.isListType)(t)){var o=t.ofType;if(e.kind===Ml.Kind.LIST){for(var s=[],c=0,d=e.values;c{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.coerceInputValue=T6;var h6=Zo(Zn()),Rg=Zo(_t()),v6=Zo(zr()),g6=Zo(Vo()),m6=Zo(pa()),y6=Zo(sg()),b6=Zo(Uo()),E6=Zo(W_()),Ya=Ld(),$u=Ve(),Rd=lt();function Zo(e){return e&&e.__esModule?e:{default:e}}function T6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_6;return Fd(e,t,r)}function _6(e,t,r){var n="Invalid value "+(0,Rg.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,E6.default)(e),'"')),r.message=n+": "+r.message,r}function Fd(e,t,r,n){if((0,Rd.isNonNullType)(t)){if(e!=null)return Fd(e,t.ofType,r,n);r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected non-nullable type "'.concat((0,Rg.default)(t),'" not to be null.')));return}if(e==null)return null;if((0,Rd.isListType)(t)){var a=t.ofType,o=(0,y6.default)(e,function(g,k){var N=(0,Ya.addPath)(n,k,void 0);return Fd(g,a,r,N)});return o!=null?o:[Fd(e,a,r,n)]}if((0,Rd.isInputObjectType)(t)){if(!(0,m6.default)(e)){r((0,Ya.pathToArray)(n),e,new $u.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return}for(var s={},c=t.getFields(),d=0,h=(0,h6.default)(c);d{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getVariableValues=w6;Pd.getArgumentValues=QL;Pd.getDirectiveValues=A6;var S6=Fg(Sl()),D6=Fg(Bo()),ql=Fg(_t()),k6=Fg(W_()),Ja=Ve(),VL=Pt(),UL=jn(),Bl=lt(),C6=ya(),GL=Id(),O6=X_();function Fg(e){return e&&e.__esModule?e:{default:e}}function w6(e,t,r,n){var a=[],o=n==null?void 0:n.maxErrors;try{var s=N6(e,t,r,function(c){if(o!=null&&a.length>=o)throw new Ja.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");a.push(c)});if(a.length===0)return{coerced:s}}catch(c){a.push(c)}return{errors:a}}function N6(e,t,r,n){for(var a={},o=function(h){var m=t[h],T=m.variable.name.value,b=(0,C6.typeFromAST)(e,m.type);if(!(0,Bl.isInputType)(b)){var C=(0,UL.print)(m.type);return n(new Ja.GraphQLError('Variable "$'.concat(T,'" expected value of type "').concat(C,'" which cannot be used as an input type.'),m.type)),"continue"}if(!KL(r,T)){if(m.defaultValue)a[T]=(0,GL.valueFromAST)(m.defaultValue,b);else if((0,Bl.isNonNullType)(b)){var L=(0,ql.default)(b);n(new Ja.GraphQLError('Variable "$'.concat(T,'" of required type "').concat(L,'" was not provided.'),m))}return"continue"}var S=r[T];if(S===null&&(0,Bl.isNonNullType)(b)){var y=(0,ql.default)(b);return n(new Ja.GraphQLError('Variable "$'.concat(T,'" of non-null type "').concat(y,'" must not be null.'),m)),"continue"}a[T]=(0,O6.coerceInputValue)(S,b,function(_,g,k){var N='Variable "$'.concat(T,'" got invalid value ')+(0,ql.default)(g);_.length>0&&(N+=' at "'.concat(T).concat((0,k6.default)(_),'"')),n(new Ja.GraphQLError(N+"; "+k.message,m,void 0,void 0,void 0,k.originalError))})},s=0;s{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.execute=q6;ei.executeSync=B6;ei.assertValidExecutionArguments=YL;ei.buildExecutionContext=JL;ei.collectFields=qd;ei.buildResolveInfo=ex;ei.getFieldDef=ox;ei.defaultFieldResolver=ei.defaultTypeResolver=void 0;var Vl=Za(_t()),L6=Za(jL()),x6=Za(zr()),HL=Za(Ei()),Si=Za(Cv()),Z_=Za(pa()),I6=Za(sg()),R6=Za(ML()),F6=Za(qL()),es=Ld(),Ea=Ve(),Pg=ld(),Md=Pt(),P6=Cd(),Ul=Mn(),zL=qn(),Xa=lt(),j6=ya(),M6=xg(),jg=jd();function Za(e){return e&&e.__esModule?e:{default:e}}function q6(e,t,r,n,a,o,s,c){return arguments.length===1?$_(e):$_({schema:e,document:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c})}function B6(e){var t=$_(e);if((0,Si.default)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function $_(e){var t=e.schema,r=e.document,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.typeResolver;YL(t,r,o);var h=JL(t,r,n,a,o,s,c,d);if(Array.isArray(h))return{errors:h};var m=V6(h,h.operation,n);return WL(h,m)}function WL(e,t){return(0,Si.default)(t)?t.then(function(r){return WL(e,r)}):e.errors.length===0?{data:t}:{errors:e.errors,data:t}}function YL(e,t,r){t||(0,HL.default)(0,"Must provide document."),(0,P6.assertValidSchema)(e),r==null||(0,Z_.default)(r)||(0,HL.default)(0,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function JL(e,t,r,n,a,o,s,c){for(var d,h,m,T=Object.create(null),b=0,C=t.definitions;b{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.graphql=tH;Bg.graphqlSync=rH;var Y6=eH(Cv()),J6=Tl(),X6=jl(),Z6=Cd(),$6=Vd();function eH(e){return e&&e.__esModule?e:{default:e}}function tH(e,t,r,n,a,o,s,c){var d=arguments;return new Promise(function(h){return h(d.length===1?qg(e):qg({schema:e,source:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c}))})}function rH(e,t,r,n,a,o,s,c){var d=arguments.length===1?qg(e):qg({schema:e,source:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,typeResolver:c});if((0,Y6.default)(d))throw new Error("GraphQL execution failed to complete synchronously.");return d}function qg(e){var t=e.schema,r=e.source,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.typeResolver,h=(0,Z6.validateSchema)(t);if(h.length>0)return{errors:h};var m;try{m=(0,J6.parse)(r)}catch(b){return{errors:[b]}}var T=(0,X6.validate)(t,m);return T.length>0?{errors:T}:(0,$6.execute)({schema:t,document:m,rootValue:n,contextValue:a,variableValues:o,operationName:s,fieldResolver:c,typeResolver:d})}});var lx=U(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});Object.defineProperty(ge,"isSchema",{enumerable:!0,get:function(){return rS.isSchema}});Object.defineProperty(ge,"assertSchema",{enumerable:!0,get:function(){return rS.assertSchema}});Object.defineProperty(ge,"GraphQLSchema",{enumerable:!0,get:function(){return rS.GraphQLSchema}});Object.defineProperty(ge,"isType",{enumerable:!0,get:function(){return He.isType}});Object.defineProperty(ge,"isScalarType",{enumerable:!0,get:function(){return He.isScalarType}});Object.defineProperty(ge,"isObjectType",{enumerable:!0,get:function(){return He.isObjectType}});Object.defineProperty(ge,"isInterfaceType",{enumerable:!0,get:function(){return He.isInterfaceType}});Object.defineProperty(ge,"isUnionType",{enumerable:!0,get:function(){return He.isUnionType}});Object.defineProperty(ge,"isEnumType",{enumerable:!0,get:function(){return He.isEnumType}});Object.defineProperty(ge,"isInputObjectType",{enumerable:!0,get:function(){return He.isInputObjectType}});Object.defineProperty(ge,"isListType",{enumerable:!0,get:function(){return He.isListType}});Object.defineProperty(ge,"isNonNullType",{enumerable:!0,get:function(){return He.isNonNullType}});Object.defineProperty(ge,"isInputType",{enumerable:!0,get:function(){return He.isInputType}});Object.defineProperty(ge,"isOutputType",{enumerable:!0,get:function(){return He.isOutputType}});Object.defineProperty(ge,"isLeafType",{enumerable:!0,get:function(){return He.isLeafType}});Object.defineProperty(ge,"isCompositeType",{enumerable:!0,get:function(){return He.isCompositeType}});Object.defineProperty(ge,"isAbstractType",{enumerable:!0,get:function(){return He.isAbstractType}});Object.defineProperty(ge,"isWrappingType",{enumerable:!0,get:function(){return He.isWrappingType}});Object.defineProperty(ge,"isNullableType",{enumerable:!0,get:function(){return He.isNullableType}});Object.defineProperty(ge,"isNamedType",{enumerable:!0,get:function(){return He.isNamedType}});Object.defineProperty(ge,"isRequiredArgument",{enumerable:!0,get:function(){return He.isRequiredArgument}});Object.defineProperty(ge,"isRequiredInputField",{enumerable:!0,get:function(){return He.isRequiredInputField}});Object.defineProperty(ge,"assertType",{enumerable:!0,get:function(){return He.assertType}});Object.defineProperty(ge,"assertScalarType",{enumerable:!0,get:function(){return He.assertScalarType}});Object.defineProperty(ge,"assertObjectType",{enumerable:!0,get:function(){return He.assertObjectType}});Object.defineProperty(ge,"assertInterfaceType",{enumerable:!0,get:function(){return He.assertInterfaceType}});Object.defineProperty(ge,"assertUnionType",{enumerable:!0,get:function(){return He.assertUnionType}});Object.defineProperty(ge,"assertEnumType",{enumerable:!0,get:function(){return He.assertEnumType}});Object.defineProperty(ge,"assertInputObjectType",{enumerable:!0,get:function(){return He.assertInputObjectType}});Object.defineProperty(ge,"assertListType",{enumerable:!0,get:function(){return He.assertListType}});Object.defineProperty(ge,"assertNonNullType",{enumerable:!0,get:function(){return He.assertNonNullType}});Object.defineProperty(ge,"assertInputType",{enumerable:!0,get:function(){return He.assertInputType}});Object.defineProperty(ge,"assertOutputType",{enumerable:!0,get:function(){return He.assertOutputType}});Object.defineProperty(ge,"assertLeafType",{enumerable:!0,get:function(){return He.assertLeafType}});Object.defineProperty(ge,"assertCompositeType",{enumerable:!0,get:function(){return He.assertCompositeType}});Object.defineProperty(ge,"assertAbstractType",{enumerable:!0,get:function(){return He.assertAbstractType}});Object.defineProperty(ge,"assertWrappingType",{enumerable:!0,get:function(){return He.assertWrappingType}});Object.defineProperty(ge,"assertNullableType",{enumerable:!0,get:function(){return He.assertNullableType}});Object.defineProperty(ge,"assertNamedType",{enumerable:!0,get:function(){return He.assertNamedType}});Object.defineProperty(ge,"getNullableType",{enumerable:!0,get:function(){return He.getNullableType}});Object.defineProperty(ge,"getNamedType",{enumerable:!0,get:function(){return He.getNamedType}});Object.defineProperty(ge,"GraphQLScalarType",{enumerable:!0,get:function(){return He.GraphQLScalarType}});Object.defineProperty(ge,"GraphQLObjectType",{enumerable:!0,get:function(){return He.GraphQLObjectType}});Object.defineProperty(ge,"GraphQLInterfaceType",{enumerable:!0,get:function(){return He.GraphQLInterfaceType}});Object.defineProperty(ge,"GraphQLUnionType",{enumerable:!0,get:function(){return He.GraphQLUnionType}});Object.defineProperty(ge,"GraphQLEnumType",{enumerable:!0,get:function(){return He.GraphQLEnumType}});Object.defineProperty(ge,"GraphQLInputObjectType",{enumerable:!0,get:function(){return He.GraphQLInputObjectType}});Object.defineProperty(ge,"GraphQLList",{enumerable:!0,get:function(){return He.GraphQLList}});Object.defineProperty(ge,"GraphQLNonNull",{enumerable:!0,get:function(){return He.GraphQLNonNull}});Object.defineProperty(ge,"isDirective",{enumerable:!0,get:function(){return Ta.isDirective}});Object.defineProperty(ge,"assertDirective",{enumerable:!0,get:function(){return Ta.assertDirective}});Object.defineProperty(ge,"GraphQLDirective",{enumerable:!0,get:function(){return Ta.GraphQLDirective}});Object.defineProperty(ge,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ta.isSpecifiedDirective}});Object.defineProperty(ge,"specifiedDirectives",{enumerable:!0,get:function(){return Ta.specifiedDirectives}});Object.defineProperty(ge,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ta.GraphQLIncludeDirective}});Object.defineProperty(ge,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ta.GraphQLSkipDirective}});Object.defineProperty(ge,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ta.GraphQLDeprecatedDirective}});Object.defineProperty(ge,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ta.GraphQLSpecifiedByDirective}});Object.defineProperty(ge,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ta.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ge,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ts.isSpecifiedScalarType}});Object.defineProperty(ge,"specifiedScalarTypes",{enumerable:!0,get:function(){return ts.specifiedScalarTypes}});Object.defineProperty(ge,"GraphQLInt",{enumerable:!0,get:function(){return ts.GraphQLInt}});Object.defineProperty(ge,"GraphQLFloat",{enumerable:!0,get:function(){return ts.GraphQLFloat}});Object.defineProperty(ge,"GraphQLString",{enumerable:!0,get:function(){return ts.GraphQLString}});Object.defineProperty(ge,"GraphQLBoolean",{enumerable:!0,get:function(){return ts.GraphQLBoolean}});Object.defineProperty(ge,"GraphQLID",{enumerable:!0,get:function(){return ts.GraphQLID}});Object.defineProperty(ge,"isIntrospectionType",{enumerable:!0,get:function(){return Vn.isIntrospectionType}});Object.defineProperty(ge,"introspectionTypes",{enumerable:!0,get:function(){return Vn.introspectionTypes}});Object.defineProperty(ge,"__Schema",{enumerable:!0,get:function(){return Vn.__Schema}});Object.defineProperty(ge,"__Directive",{enumerable:!0,get:function(){return Vn.__Directive}});Object.defineProperty(ge,"__DirectiveLocation",{enumerable:!0,get:function(){return Vn.__DirectiveLocation}});Object.defineProperty(ge,"__Type",{enumerable:!0,get:function(){return Vn.__Type}});Object.defineProperty(ge,"__Field",{enumerable:!0,get:function(){return Vn.__Field}});Object.defineProperty(ge,"__InputValue",{enumerable:!0,get:function(){return Vn.__InputValue}});Object.defineProperty(ge,"__EnumValue",{enumerable:!0,get:function(){return Vn.__EnumValue}});Object.defineProperty(ge,"__TypeKind",{enumerable:!0,get:function(){return Vn.__TypeKind}});Object.defineProperty(ge,"TypeKind",{enumerable:!0,get:function(){return Vn.TypeKind}});Object.defineProperty(ge,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Vn.SchemaMetaFieldDef}});Object.defineProperty(ge,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Vn.TypeMetaFieldDef}});Object.defineProperty(ge,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Vn.TypeNameMetaFieldDef}});Object.defineProperty(ge,"validateSchema",{enumerable:!0,get:function(){return sx.validateSchema}});Object.defineProperty(ge,"assertValidSchema",{enumerable:!0,get:function(){return sx.assertValidSchema}});var rS=zu(),He=lt(),Ta=qn(),ts=ma(),Vn=Mn(),sx=Cd()});var dx=U(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});Object.defineProperty(wt,"Source",{enumerable:!0,get:function(){return nH.Source}});Object.defineProperty(wt,"getLocation",{enumerable:!0,get:function(){return iH.getLocation}});Object.defineProperty(wt,"printLocation",{enumerable:!0,get:function(){return cx.printLocation}});Object.defineProperty(wt,"printSourceLocation",{enumerable:!0,get:function(){return cx.printSourceLocation}});Object.defineProperty(wt,"Kind",{enumerable:!0,get:function(){return aH.Kind}});Object.defineProperty(wt,"TokenKind",{enumerable:!0,get:function(){return oH.TokenKind}});Object.defineProperty(wt,"Lexer",{enumerable:!0,get:function(){return uH.Lexer}});Object.defineProperty(wt,"parse",{enumerable:!0,get:function(){return nS.parse}});Object.defineProperty(wt,"parseValue",{enumerable:!0,get:function(){return nS.parseValue}});Object.defineProperty(wt,"parseType",{enumerable:!0,get:function(){return nS.parseType}});Object.defineProperty(wt,"print",{enumerable:!0,get:function(){return sH.print}});Object.defineProperty(wt,"visit",{enumerable:!0,get:function(){return Vg.visit}});Object.defineProperty(wt,"visitInParallel",{enumerable:!0,get:function(){return Vg.visitInParallel}});Object.defineProperty(wt,"getVisitFn",{enumerable:!0,get:function(){return Vg.getVisitFn}});Object.defineProperty(wt,"BREAK",{enumerable:!0,get:function(){return Vg.BREAK}});Object.defineProperty(wt,"Location",{enumerable:!0,get:function(){return fx.Location}});Object.defineProperty(wt,"Token",{enumerable:!0,get:function(){return fx.Token}});Object.defineProperty(wt,"isDefinitionNode",{enumerable:!0,get:function(){return $a.isDefinitionNode}});Object.defineProperty(wt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return $a.isExecutableDefinitionNode}});Object.defineProperty(wt,"isSelectionNode",{enumerable:!0,get:function(){return $a.isSelectionNode}});Object.defineProperty(wt,"isValueNode",{enumerable:!0,get:function(){return $a.isValueNode}});Object.defineProperty(wt,"isTypeNode",{enumerable:!0,get:function(){return $a.isTypeNode}});Object.defineProperty(wt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return $a.isTypeSystemDefinitionNode}});Object.defineProperty(wt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return $a.isTypeDefinitionNode}});Object.defineProperty(wt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return $a.isTypeSystemExtensionNode}});Object.defineProperty(wt,"isTypeExtensionNode",{enumerable:!0,get:function(){return $a.isTypeExtensionNode}});Object.defineProperty(wt,"DirectiveLocation",{enumerable:!0,get:function(){return lH.DirectiveLocation}});var nH=Vv(),iH=wv(),cx=cE(),aH=Pt(),oH=yl(),uH=Qv(),nS=Tl(),sH=jn(),Vg=qo(),fx=ml(),$a=Yu(),lH=bl()});var px=U($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});Object.defineProperty($o,"responsePathAsArray",{enumerable:!0,get:function(){return cH.pathToArray}});Object.defineProperty($o,"execute",{enumerable:!0,get:function(){return Ug.execute}});Object.defineProperty($o,"executeSync",{enumerable:!0,get:function(){return Ug.executeSync}});Object.defineProperty($o,"defaultFieldResolver",{enumerable:!0,get:function(){return Ug.defaultFieldResolver}});Object.defineProperty($o,"defaultTypeResolver",{enumerable:!0,get:function(){return Ug.defaultTypeResolver}});Object.defineProperty($o,"getDirectiveValues",{enumerable:!0,get:function(){return fH.getDirectiveValues}});var cH=Ld(),Ug=Vd(),fH=jd()});var hx=U(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.default=pH;var dH=ha();function pH(e){return typeof(e==null?void 0:e[dH.SYMBOL_ASYNC_ITERATOR])=="function"}});var yx=U(aS=>{"use strict";Object.defineProperty(aS,"__esModule",{value:!0});aS.default=vH;var vx=ha();function hH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vH(e,t,r){var n=e[vx.SYMBOL_ASYNC_ITERATOR],a=n.call(e),o,s;typeof a.return=="function"&&(o=a.return,s=function(T){var b=function(){return Promise.reject(T)};return o.call(a).then(b,b)});function c(m){return m.done?m:gx(m.value,t).then(mx,s)}var d;if(r){var h=r;d=function(T){return gx(T,h).then(mx,s)}}return hH({next:function(){return a.next().then(c,d)},return:function(){return o?o.call(a).then(c,d):Promise.resolve({value:void 0,done:!0})},throw:function(T){return typeof a.throw=="function"?a.throw(T).then(c,d):Promise.reject(T).catch(s)}},vx.SYMBOL_ASYNC_ITERATOR,function(){return this})}function gx(e,t){return new Promise(function(r){return r(t(e))})}function mx(e){return{value:e,done:!1}}});var kx=U(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.subscribe=EH;Gg.createSourceEventStream=Dx;var gH=uS(_t()),bx=uS(hx()),oS=Ld(),Ex=Ve(),Tx=ld(),mH=jd(),Gl=Vd(),yH=xg(),bH=uS(yx());function uS(e){return e&&e.__esModule?e:{default:e}}function EH(e,t,r,n,a,o,s,c){return arguments.length===1?Sx(e):Sx({schema:e,document:t,rootValue:r,contextValue:n,variableValues:a,operationName:o,fieldResolver:s,subscribeFieldResolver:c})}function _x(e){if(e instanceof Ex.GraphQLError)return{errors:[e]};throw e}function Sx(e){var t=e.schema,r=e.document,n=e.rootValue,a=e.contextValue,o=e.variableValues,s=e.operationName,c=e.fieldResolver,d=e.subscribeFieldResolver,h=Dx(t,r,n,a,o,s,d),m=function(b){return(0,Gl.execute)({schema:t,document:r,rootValue:b,contextValue:a,variableValues:o,operationName:s,fieldResolver:c})};return h.then(function(T){return(0,bx.default)(T)?(0,bH.default)(T,m,_x):T})}function Dx(e,t,r,n,a,o,s){return(0,Gl.assertValidExecutionArguments)(e,t,a),new Promise(function(c){var d=(0,Gl.buildExecutionContext)(e,t,r,n,a,o,s);c(Array.isArray(d)?{errors:d}:TH(d))}).catch(_x)}function TH(e){var t=e.schema,r=e.operation,n=e.variableValues,a=e.rootValue,o=(0,yH.getOperationRootType)(t,r),s=(0,Gl.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),c=Object.keys(s),d=c[0],h=s[d],m=h[0],T=m.name.value,b=(0,Gl.getFieldDef)(t,o,T);if(!b)throw new Ex.GraphQLError('The subscription field "'.concat(T,'" is not defined.'),h);var C=(0,oS.addPath)(void 0,d,o.name),L=(0,Gl.buildResolveInfo)(e,b,h,o,C);return new Promise(function(S){var y,_=(0,mH.getArgumentValues)(b,h[0],n),g=e.contextValue,k=(y=b.subscribe)!==null&&y!==void 0?y:e.fieldResolver;S(k(a,_,g,L))}).then(function(S){if(S instanceof Error)throw(0,Tx.locatedError)(S,h,(0,oS.pathToArray)(C));if(!(0,bx.default)(S))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,gH.default)(S),"."));return S},function(S){throw(0,Tx.locatedError)(S,h,(0,oS.pathToArray)(C))})}});var Ox=U(Qg=>{"use strict";Object.defineProperty(Qg,"__esModule",{value:!0});Object.defineProperty(Qg,"subscribe",{enumerable:!0,get:function(){return Cx.subscribe}});Object.defineProperty(Qg,"createSourceEventStream",{enumerable:!0,get:function(){return Cx.createSourceEventStream}});var Cx=kx()});var fS=U(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.NoDeprecatedCustomRule=SH;var sS=_H(zr()),Ud=Ve(),lS=lt();function _H(e){return e&&e.__esModule?e:{default:e}}function SH(e){return{Field:function(r){var n=e.getFieldDef(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=e.getParentType();o!=null||(0,sS.default)(0),e.reportError(new Ud.GraphQLError("The field ".concat(o.name,".").concat(n.name," is deprecated. ").concat(a),r))}},Argument:function(r){var n=e.getArgument(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=e.getDirective();if(o!=null)e.reportError(new Ud.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(a),r));else{var s=e.getParentType(),c=e.getFieldDef();s!=null&&c!=null||(0,sS.default)(0),e.reportError(new Ud.GraphQLError('Field "'.concat(s.name,".").concat(c.name,'" argument "').concat(n.name,'" is deprecated. ').concat(a),r))}}},ObjectField:function(r){var n=(0,lS.getNamedType)(e.getParentInputType());if((0,lS.isInputObjectType)(n)){var a=n.getFields()[r.name.value],o=a==null?void 0:a.deprecationReason;o!=null&&e.reportError(new Ud.GraphQLError("The input field ".concat(n.name,".").concat(a.name," is deprecated. ").concat(o),r))}},EnumValue:function(r){var n=e.getEnumValue(),a=n==null?void 0:n.deprecationReason;if(n&&a!=null){var o=(0,lS.getNamedType)(e.getInputType());o!=null||(0,sS.default)(0),e.reportError(new Ud.GraphQLError('The enum value "'.concat(o.name,".").concat(n.name,'" is deprecated. ').concat(a),r))}}}}});var wx=U(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.NoSchemaIntrospectionCustomRule=OH;var DH=Ve(),kH=lt(),CH=Mn();function OH(e){return{Field:function(r){var n=(0,kH.getNamedType)(e.getType());n&&(0,CH.isIntrospectionType)(n)&&e.reportError(new DH.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}});var Nx=U(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});Object.defineProperty(et,"validate",{enumerable:!0,get:function(){return wH.validate}});Object.defineProperty(et,"ValidationContext",{enumerable:!0,get:function(){return NH.ValidationContext}});Object.defineProperty(et,"specifiedRules",{enumerable:!0,get:function(){return AH.specifiedRules}});Object.defineProperty(et,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return LH.ExecutableDefinitionsRule}});Object.defineProperty(et,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return xH.FieldsOnCorrectTypeRule}});Object.defineProperty(et,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return IH.FragmentsOnCompositeTypesRule}});Object.defineProperty(et,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return RH.KnownArgumentNamesRule}});Object.defineProperty(et,"KnownDirectivesRule",{enumerable:!0,get:function(){return FH.KnownDirectivesRule}});Object.defineProperty(et,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return PH.KnownFragmentNamesRule}});Object.defineProperty(et,"KnownTypeNamesRule",{enumerable:!0,get:function(){return jH.KnownTypeNamesRule}});Object.defineProperty(et,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return MH.LoneAnonymousOperationRule}});Object.defineProperty(et,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return qH.NoFragmentCyclesRule}});Object.defineProperty(et,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return BH.NoUndefinedVariablesRule}});Object.defineProperty(et,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return VH.NoUnusedFragmentsRule}});Object.defineProperty(et,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return UH.NoUnusedVariablesRule}});Object.defineProperty(et,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return GH.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(et,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return QH.PossibleFragmentSpreadsRule}});Object.defineProperty(et,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return KH.ProvidedRequiredArgumentsRule}});Object.defineProperty(et,"ScalarLeafsRule",{enumerable:!0,get:function(){return HH.ScalarLeafsRule}});Object.defineProperty(et,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return zH.SingleFieldSubscriptionsRule}});Object.defineProperty(et,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return WH.UniqueArgumentNamesRule}});Object.defineProperty(et,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return YH.UniqueDirectivesPerLocationRule}});Object.defineProperty(et,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return JH.UniqueFragmentNamesRule}});Object.defineProperty(et,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return XH.UniqueInputFieldNamesRule}});Object.defineProperty(et,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ZH.UniqueOperationNamesRule}});Object.defineProperty(et,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return $H.UniqueVariableNamesRule}});Object.defineProperty(et,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ez.ValuesOfCorrectTypeRule}});Object.defineProperty(et,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return tz.VariablesAreInputTypesRule}});Object.defineProperty(et,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return rz.VariablesInAllowedPositionRule}});Object.defineProperty(et,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return nz.LoneSchemaDefinitionRule}});Object.defineProperty(et,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return iz.UniqueOperationTypesRule}});Object.defineProperty(et,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return az.UniqueTypeNamesRule}});Object.defineProperty(et,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return oz.UniqueEnumValueNamesRule}});Object.defineProperty(et,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return uz.UniqueFieldDefinitionNamesRule}});Object.defineProperty(et,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return sz.UniqueDirectiveNamesRule}});Object.defineProperty(et,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return lz.PossibleTypeExtensionsRule}});Object.defineProperty(et,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return cz.NoDeprecatedCustomRule}});Object.defineProperty(et,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return fz.NoSchemaIntrospectionCustomRule}});var wH=jl(),NH=V_(),AH=q_(),LH=yg(),xH=jT(),IH=LT(),RH=o_(),FH=r_(),PH=VT(),jH=NT(),MH=DT(),qH=WT(),BH=ZT(),VH=GT(),UH=e_(),GH=T_(),QH=HT(),KH=d_(),HH=FT(),zH=CT(),WH=s_(),YH=a_(),JH=qT(),XH=S_(),ZH=_T(),$H=JT(),ez=c_(),tz=IT(),rz=h_(),nz=k_(),iz=O_(),az=N_(),oz=L_(),uz=R_(),sz=P_(),lz=M_(),cz=fS(),fz=wx()});var Ax=U(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.formatError=hz;var dz=pz(Ei());function pz(e){return e&&e.__esModule?e:{default:e}}function hz(e){var t;e||(0,dz.default)(0,"Received null or undefined error.");var r=(t=e.message)!==null&&t!==void 0?t:"An unknown error occurred.",n=e.locations,a=e.path,o=e.extensions;return o?{message:r,locations:n,path:a,extensions:o}:{message:r,locations:n,path:a}}});var xx=U(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});Object.defineProperty(rs,"GraphQLError",{enumerable:!0,get:function(){return Lx.GraphQLError}});Object.defineProperty(rs,"printError",{enumerable:!0,get:function(){return Lx.printError}});Object.defineProperty(rs,"syntaxError",{enumerable:!0,get:function(){return vz.syntaxError}});Object.defineProperty(rs,"locatedError",{enumerable:!0,get:function(){return gz.locatedError}});Object.defineProperty(rs,"formatError",{enumerable:!0,get:function(){return mz.formatError}});var Lx=Ve(),vz=Iv(),gz=ld(),mz=Ax()});var vS=U(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.getIntrospectionQuery=Ez;function Ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yz(e){for(var t=1;t{"use strict";Object.defineProperty(gS,"__esModule",{value:!0});gS.getOperationAST=_z;var Tz=Pt();function _z(e,t){for(var r=null,n=0,a=e.definitions;n{"use strict";Object.defineProperty(yS,"__esModule",{value:!0});yS.introspectionFromSchema=Az;var Sz=Oz(zr()),Dz=Tl(),kz=Vd(),Cz=vS();function Oz(e){return e&&e.__esModule?e:{default:e}}function Rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wz(e){for(var t=1;t{"use strict";Object.defineProperty(bS,"__esModule",{value:!0});bS.buildClientSchema=Mz;var Lz=Gd(Zn()),ti=Gd(_t()),xz=Gd(Ei()),Kg=Gd(cd()),Px=Gd(pa()),Iz=Tl(),Rz=zu(),Fz=qn(),Pz=ma(),_a=Mn(),ri=lt(),jz=Id();function Gd(e){return e&&e.__esModule?e:{default:e}}function Mz(e,t){(0,Px.default)(e)&&(0,Px.default)(e.__schema)||(0,xz.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,ti.default)(e),"."));for(var r=e.__schema,n=(0,Kg.default)(r.types,function(M){return M.name},function(M){return S(M)}),a=0,o=[].concat(Pz.specifiedScalarTypes,_a.introspectionTypes);a{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.extendSchema=Hz;Kd.extendSchemaImpl=zx;Kd.getDescription=ns;var qz=Ql(Zn()),Bz=Ql(Bo()),Mx=Ql(_t()),Qd=Ql(OE()),qx=Ql(zr()),Vz=Ql(Ei()),Di=Pt(),Uz=yl(),Gz=El(),Bx=Yu(),Qz=jl(),Vx=jd(),Ux=zu(),Gx=ma(),Qx=Mn(),Hg=qn(),Zt=lt(),Kx=Id();function Ql(e){return e&&e.__esModule?e:{default:e}}function Hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t0?r.reverse().join(` `):void 0}}});var Zx=U(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});Wg.buildASTSchema=Xx;Wg.buildSchema=t7;var Wz=e7(Ei()),Yz=Pt(),Jz=Tl(),Xz=jl(),Zz=zu(),Jx=qn(),$z=ES();function e7(e){return e&&e.__esModule?e:{default:e}}function Xx(e,t){e!=null&&e.kind===Yz.Kind.DOCUMENT||(0,Wz.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Xz.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,$z.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var a=0,o=n.types;a{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});SS.lexicographicSortSchema=f7;var r7=Hd(Zn()),n7=Hd(_t()),i7=Hd(zr()),a7=Hd(cd()),o7=Hd(fd()),u7=zu(),s7=qn(),l7=Mn(),Sn=lt();function Hd(e){return e&&e.__esModule?e:{default:e}}function $x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.printSchema=h7;zd.printIntrospectionSchema=v7;zd.printType=iI;var DS=NS(Zn()),d7=NS(_t()),tI=NS(zr()),kS=jn(),p7=El(),rI=Mn(),CS=ma(),OS=qn(),Kl=lt(),wS=_d();function NS(e){return e&&e.__esModule?e:{default:e}}function h7(e,t){return nI(e,function(r){return!(0,OS.isSpecifiedDirective)(r)},g7,t)}function v7(e,t){return nI(e,OS.isSpecifiedDirective,rI.isIntrospectionType,t)}function g7(e){return!(0,CS.isSpecifiedScalarType)(e)&&!(0,rI.isIntrospectionType)(e)}function nI(e,t,r,n){var a=e.getDirectives().filter(t),o=(0,DS.default)(e.getTypeMap()).filter(r);return[m7(e)].concat(a.map(function(s){return k7(s,n)}),o.map(function(s){return iI(s,n)})).filter(Boolean).join(` `)+` `}function m7(e){if(!(e.description==null&&y7(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var a=e.getSubscriptionType();return a&&t.push(" subscription: ".concat(a.name)),ki({},e)+`schema { `.concat(t.join(` `),` }`)}}function y7(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var n=e.getSubscriptionType();return!(n&&n.name!=="Subscription")}function iI(e,t){if((0,Kl.isScalarType)(e))return b7(e,t);if((0,Kl.isObjectType)(e))return E7(e,t);if((0,Kl.isInterfaceType)(e))return T7(e,t);if((0,Kl.isUnionType)(e))return _7(e,t);if((0,Kl.isEnumType)(e))return S7(e,t);if((0,Kl.isInputObjectType)(e))return D7(e,t);(0,tI.default)(0,"Unexpected type: "+(0,d7.default)(e))}function b7(e,t){return ki(t,e)+"scalar ".concat(e.name)+C7(e)}function aI(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function E7(e,t){return ki(t,e)+"type ".concat(e.name)+aI(e)+oI(t,e)}function T7(e,t){return ki(t,e)+"interface ".concat(e.name)+aI(e)+oI(t,e)}function _7(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return ki(t,e)+"union "+e.name+n}function S7(e,t){var r=e.getValues().map(function(n,a){return ki(t,n," ",!a)+" "+n.name+xS(n.deprecationReason)});return ki(t,e)+"enum ".concat(e.name)+AS(r)}function D7(e,t){var r=(0,DS.default)(e.getFields()).map(function(n,a){return ki(t,n," ",!a)+" "+LS(n)});return ki(t,e)+"input ".concat(e.name)+AS(r)}function oI(e,t){var r=(0,DS.default)(t.getFields()).map(function(n,a){return ki(e,n," ",!a)+" "+n.name+uI(e,n.args," ")+": "+String(n.type)+xS(n.deprecationReason)});return AS(r)}function AS(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function uI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(n){return!n.description})?"("+t.map(LS).join(", ")+")":`( `+t.map(function(n,a){return ki(e,n," "+r,!a)+" "+r+LS(n)}).join(` `)+` `+r+")"}function LS(e){var t=(0,wS.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,kS.print)(t))),r+xS(e.deprecationReason)}function k7(e,t){return ki(t,e)+"directive @"+e.name+uI(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function xS(e){if(e==null)return"";var t=(0,wS.astFromValue)(e,CS.GraphQLString);return t&&e!==OS.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,kS.print)(t)+")":" @deprecated"}function C7(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,wS.astFromValue)(t,CS.GraphQLString);return r||(0,tI.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,kS.print)(r)+")"}function ki(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=t.description;if(a==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return O7(a,r,n);var o=a.length>70,s=(0,p7.printBlockString)(a,"",o),c=r&&!n?` `+r:r;return c+s.replace(/\n/g,` `+r)+` `}function O7(e,t,r){var n=t&&!r?` `:"",a=e.split(` `).map(function(o){return t+(o!==""?"# "+o:"#")}).join(` `);return n+a+` `}});var lI=U(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.concatAST=w7;function w7(e){for(var t=[],r=0;r{"use strict";Object.defineProperty(RS,"__esModule",{value:!0});RS.separateOperations=A7;var Jg=Pt(),N7=qo();function A7(e){for(var t=[],r=Object.create(null),n=0,a=e.definitions;n{"use strict";Object.defineProperty(PS,"__esModule",{value:!0});PS.stripIgnoredCharacters=L7;var pI=Vv(),FS=yl(),hI=Qv(),vI=El();function L7(e){for(var t=(0,pI.isSource)(e)?e:new pI.Source(e),r=t.body,n=new hI.Lexer(t),a="",o=!1;n.advance().kind!==FS.TokenKind.EOF;){var s=n.token,c=s.kind,d=!(0,hI.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===FS.TokenKind.SPREAD)&&(a+=" ");var h=r.slice(s.start,s.end);c===FS.TokenKind.BLOCK_STRING?a+=x7(h):a+=h,o=d}return a}function x7(e){var t=e.slice(3,-3),r=(0,vI.dedentBlockStringValue)(t);(0,vI.getBlockStringIndentation)(r)>0&&(r=` `+r);var n=r[r.length-1],a=n==='"'&&r.slice(-4)!=='\\"""';return(a||n==="\\")&&(r+=` `),'"""'+r+'"""'}});var CI=U(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.findBreakingChanges=B7;eu.findDangerousChanges=V7;eu.DangerousChangeType=eu.BreakingChangeType=void 0;var Hl=Wd(Zn()),mI=Wd(Bo()),I7=Wd(_t()),yI=Wd(zr()),R7=Wd(fd()),F7=jn(),P7=qo(),j7=ma(),Et=lt(),M7=_d();function Wd(e){return e&&e.__esModule?e:{default:e}}function bI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function EI(e){for(var t=1;t{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.findDeprecatedUsages=J7;var W7=jl(),Y7=fS();function J7(e,t){return(0,W7.validate)(e,t,[Y7.NoDeprecatedCustomRule])}});var xI=U(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});Object.defineProperty(ut,"getIntrospectionQuery",{enumerable:!0,get:function(){return X7.getIntrospectionQuery}});Object.defineProperty(ut,"getOperationAST",{enumerable:!0,get:function(){return Z7.getOperationAST}});Object.defineProperty(ut,"getOperationRootType",{enumerable:!0,get:function(){return $7.getOperationRootType}});Object.defineProperty(ut,"introspectionFromSchema",{enumerable:!0,get:function(){return eW.introspectionFromSchema}});Object.defineProperty(ut,"buildClientSchema",{enumerable:!0,get:function(){return tW.buildClientSchema}});Object.defineProperty(ut,"buildASTSchema",{enumerable:!0,get:function(){return wI.buildASTSchema}});Object.defineProperty(ut,"buildSchema",{enumerable:!0,get:function(){return wI.buildSchema}});Object.defineProperty(ut,"extendSchema",{enumerable:!0,get:function(){return NI.extendSchema}});Object.defineProperty(ut,"getDescription",{enumerable:!0,get:function(){return NI.getDescription}});Object.defineProperty(ut,"lexicographicSortSchema",{enumerable:!0,get:function(){return rW.lexicographicSortSchema}});Object.defineProperty(ut,"printSchema",{enumerable:!0,get:function(){return MS.printSchema}});Object.defineProperty(ut,"printType",{enumerable:!0,get:function(){return MS.printType}});Object.defineProperty(ut,"printIntrospectionSchema",{enumerable:!0,get:function(){return MS.printIntrospectionSchema}});Object.defineProperty(ut,"typeFromAST",{enumerable:!0,get:function(){return nW.typeFromAST}});Object.defineProperty(ut,"valueFromAST",{enumerable:!0,get:function(){return iW.valueFromAST}});Object.defineProperty(ut,"valueFromASTUntyped",{enumerable:!0,get:function(){return aW.valueFromASTUntyped}});Object.defineProperty(ut,"astFromValue",{enumerable:!0,get:function(){return oW.astFromValue}});Object.defineProperty(ut,"TypeInfo",{enumerable:!0,get:function(){return AI.TypeInfo}});Object.defineProperty(ut,"visitWithTypeInfo",{enumerable:!0,get:function(){return AI.visitWithTypeInfo}});Object.defineProperty(ut,"coerceInputValue",{enumerable:!0,get:function(){return uW.coerceInputValue}});Object.defineProperty(ut,"concatAST",{enumerable:!0,get:function(){return sW.concatAST}});Object.defineProperty(ut,"separateOperations",{enumerable:!0,get:function(){return lW.separateOperations}});Object.defineProperty(ut,"stripIgnoredCharacters",{enumerable:!0,get:function(){return cW.stripIgnoredCharacters}});Object.defineProperty(ut,"isEqualType",{enumerable:!0,get:function(){return qS.isEqualType}});Object.defineProperty(ut,"isTypeSubTypeOf",{enumerable:!0,get:function(){return qS.isTypeSubTypeOf}});Object.defineProperty(ut,"doTypesOverlap",{enumerable:!0,get:function(){return qS.doTypesOverlap}});Object.defineProperty(ut,"assertValidName",{enumerable:!0,get:function(){return LI.assertValidName}});Object.defineProperty(ut,"isValidNameError",{enumerable:!0,get:function(){return LI.isValidNameError}});Object.defineProperty(ut,"BreakingChangeType",{enumerable:!0,get:function(){return Xg.BreakingChangeType}});Object.defineProperty(ut,"DangerousChangeType",{enumerable:!0,get:function(){return Xg.DangerousChangeType}});Object.defineProperty(ut,"findBreakingChanges",{enumerable:!0,get:function(){return Xg.findBreakingChanges}});Object.defineProperty(ut,"findDangerousChanges",{enumerable:!0,get:function(){return Xg.findDangerousChanges}});Object.defineProperty(ut,"findDeprecatedUsages",{enumerable:!0,get:function(){return fW.findDeprecatedUsages}});var X7=vS(),Z7=mS(),$7=xg(),eW=Fx(),tW=jx(),wI=Zx(),NI=ES(),rW=eI(),MS=sI(),nW=ya(),iW=Id(),aW=qE(),oW=_d(),AI=mg(),uW=X_(),sW=lI(),lW=dI(),cW=gI(),qS=gd(),LI=DE(),Xg=CI(),fW=OI()});var Nt=U(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});Object.defineProperty(W,"version",{enumerable:!0,get:function(){return II.version}});Object.defineProperty(W,"versionInfo",{enumerable:!0,get:function(){return II.versionInfo}});Object.defineProperty(W,"graphql",{enumerable:!0,get:function(){return RI.graphql}});Object.defineProperty(W,"graphqlSync",{enumerable:!0,get:function(){return RI.graphqlSync}});Object.defineProperty(W,"GraphQLSchema",{enumerable:!0,get:function(){return Ee.GraphQLSchema}});Object.defineProperty(W,"GraphQLDirective",{enumerable:!0,get:function(){return Ee.GraphQLDirective}});Object.defineProperty(W,"GraphQLScalarType",{enumerable:!0,get:function(){return Ee.GraphQLScalarType}});Object.defineProperty(W,"GraphQLObjectType",{enumerable:!0,get:function(){return Ee.GraphQLObjectType}});Object.defineProperty(W,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Ee.GraphQLInterfaceType}});Object.defineProperty(W,"GraphQLUnionType",{enumerable:!0,get:function(){return Ee.GraphQLUnionType}});Object.defineProperty(W,"GraphQLEnumType",{enumerable:!0,get:function(){return Ee.GraphQLEnumType}});Object.defineProperty(W,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Ee.GraphQLInputObjectType}});Object.defineProperty(W,"GraphQLList",{enumerable:!0,get:function(){return Ee.GraphQLList}});Object.defineProperty(W,"GraphQLNonNull",{enumerable:!0,get:function(){return Ee.GraphQLNonNull}});Object.defineProperty(W,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ee.specifiedScalarTypes}});Object.defineProperty(W,"GraphQLInt",{enumerable:!0,get:function(){return Ee.GraphQLInt}});Object.defineProperty(W,"GraphQLFloat",{enumerable:!0,get:function(){return Ee.GraphQLFloat}});Object.defineProperty(W,"GraphQLString",{enumerable:!0,get:function(){return Ee.GraphQLString}});Object.defineProperty(W,"GraphQLBoolean",{enumerable:!0,get:function(){return Ee.GraphQLBoolean}});Object.defineProperty(W,"GraphQLID",{enumerable:!0,get:function(){return Ee.GraphQLID}});Object.defineProperty(W,"specifiedDirectives",{enumerable:!0,get:function(){return Ee.specifiedDirectives}});Object.defineProperty(W,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ee.GraphQLIncludeDirective}});Object.defineProperty(W,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ee.GraphQLSkipDirective}});Object.defineProperty(W,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ee.GraphQLDeprecatedDirective}});Object.defineProperty(W,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ee.GraphQLSpecifiedByDirective}});Object.defineProperty(W,"TypeKind",{enumerable:!0,get:function(){return Ee.TypeKind}});Object.defineProperty(W,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ee.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(W,"introspectionTypes",{enumerable:!0,get:function(){return Ee.introspectionTypes}});Object.defineProperty(W,"__Schema",{enumerable:!0,get:function(){return Ee.__Schema}});Object.defineProperty(W,"__Directive",{enumerable:!0,get:function(){return Ee.__Directive}});Object.defineProperty(W,"__DirectiveLocation",{enumerable:!0,get:function(){return Ee.__DirectiveLocation}});Object.defineProperty(W,"__Type",{enumerable:!0,get:function(){return Ee.__Type}});Object.defineProperty(W,"__Field",{enumerable:!0,get:function(){return Ee.__Field}});Object.defineProperty(W,"__InputValue",{enumerable:!0,get:function(){return Ee.__InputValue}});Object.defineProperty(W,"__EnumValue",{enumerable:!0,get:function(){return Ee.__EnumValue}});Object.defineProperty(W,"__TypeKind",{enumerable:!0,get:function(){return Ee.__TypeKind}});Object.defineProperty(W,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Ee.SchemaMetaFieldDef}});Object.defineProperty(W,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Ee.TypeMetaFieldDef}});Object.defineProperty(W,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Ee.TypeNameMetaFieldDef}});Object.defineProperty(W,"isSchema",{enumerable:!0,get:function(){return Ee.isSchema}});Object.defineProperty(W,"isDirective",{enumerable:!0,get:function(){return Ee.isDirective}});Object.defineProperty(W,"isType",{enumerable:!0,get:function(){return Ee.isType}});Object.defineProperty(W,"isScalarType",{enumerable:!0,get:function(){return Ee.isScalarType}});Object.defineProperty(W,"isObjectType",{enumerable:!0,get:function(){return Ee.isObjectType}});Object.defineProperty(W,"isInterfaceType",{enumerable:!0,get:function(){return Ee.isInterfaceType}});Object.defineProperty(W,"isUnionType",{enumerable:!0,get:function(){return Ee.isUnionType}});Object.defineProperty(W,"isEnumType",{enumerable:!0,get:function(){return Ee.isEnumType}});Object.defineProperty(W,"isInputObjectType",{enumerable:!0,get:function(){return Ee.isInputObjectType}});Object.defineProperty(W,"isListType",{enumerable:!0,get:function(){return Ee.isListType}});Object.defineProperty(W,"isNonNullType",{enumerable:!0,get:function(){return Ee.isNonNullType}});Object.defineProperty(W,"isInputType",{enumerable:!0,get:function(){return Ee.isInputType}});Object.defineProperty(W,"isOutputType",{enumerable:!0,get:function(){return Ee.isOutputType}});Object.defineProperty(W,"isLeafType",{enumerable:!0,get:function(){return Ee.isLeafType}});Object.defineProperty(W,"isCompositeType",{enumerable:!0,get:function(){return Ee.isCompositeType}});Object.defineProperty(W,"isAbstractType",{enumerable:!0,get:function(){return Ee.isAbstractType}});Object.defineProperty(W,"isWrappingType",{enumerable:!0,get:function(){return Ee.isWrappingType}});Object.defineProperty(W,"isNullableType",{enumerable:!0,get:function(){return Ee.isNullableType}});Object.defineProperty(W,"isNamedType",{enumerable:!0,get:function(){return Ee.isNamedType}});Object.defineProperty(W,"isRequiredArgument",{enumerable:!0,get:function(){return Ee.isRequiredArgument}});Object.defineProperty(W,"isRequiredInputField",{enumerable:!0,get:function(){return Ee.isRequiredInputField}});Object.defineProperty(W,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ee.isSpecifiedScalarType}});Object.defineProperty(W,"isIntrospectionType",{enumerable:!0,get:function(){return Ee.isIntrospectionType}});Object.defineProperty(W,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ee.isSpecifiedDirective}});Object.defineProperty(W,"assertSchema",{enumerable:!0,get:function(){return Ee.assertSchema}});Object.defineProperty(W,"assertDirective",{enumerable:!0,get:function(){return Ee.assertDirective}});Object.defineProperty(W,"assertType",{enumerable:!0,get:function(){return Ee.assertType}});Object.defineProperty(W,"assertScalarType",{enumerable:!0,get:function(){return Ee.assertScalarType}});Object.defineProperty(W,"assertObjectType",{enumerable:!0,get:function(){return Ee.assertObjectType}});Object.defineProperty(W,"assertInterfaceType",{enumerable:!0,get:function(){return Ee.assertInterfaceType}});Object.defineProperty(W,"assertUnionType",{enumerable:!0,get:function(){return Ee.assertUnionType}});Object.defineProperty(W,"assertEnumType",{enumerable:!0,get:function(){return Ee.assertEnumType}});Object.defineProperty(W,"assertInputObjectType",{enumerable:!0,get:function(){return Ee.assertInputObjectType}});Object.defineProperty(W,"assertListType",{enumerable:!0,get:function(){return Ee.assertListType}});Object.defineProperty(W,"assertNonNullType",{enumerable:!0,get:function(){return Ee.assertNonNullType}});Object.defineProperty(W,"assertInputType",{enumerable:!0,get:function(){return Ee.assertInputType}});Object.defineProperty(W,"assertOutputType",{enumerable:!0,get:function(){return Ee.assertOutputType}});Object.defineProperty(W,"assertLeafType",{enumerable:!0,get:function(){return Ee.assertLeafType}});Object.defineProperty(W,"assertCompositeType",{enumerable:!0,get:function(){return Ee.assertCompositeType}});Object.defineProperty(W,"assertAbstractType",{enumerable:!0,get:function(){return Ee.assertAbstractType}});Object.defineProperty(W,"assertWrappingType",{enumerable:!0,get:function(){return Ee.assertWrappingType}});Object.defineProperty(W,"assertNullableType",{enumerable:!0,get:function(){return Ee.assertNullableType}});Object.defineProperty(W,"assertNamedType",{enumerable:!0,get:function(){return Ee.assertNamedType}});Object.defineProperty(W,"getNullableType",{enumerable:!0,get:function(){return Ee.getNullableType}});Object.defineProperty(W,"getNamedType",{enumerable:!0,get:function(){return Ee.getNamedType}});Object.defineProperty(W,"validateSchema",{enumerable:!0,get:function(){return Ee.validateSchema}});Object.defineProperty(W,"assertValidSchema",{enumerable:!0,get:function(){return Ee.assertValidSchema}});Object.defineProperty(W,"Token",{enumerable:!0,get:function(){return jt.Token}});Object.defineProperty(W,"Source",{enumerable:!0,get:function(){return jt.Source}});Object.defineProperty(W,"Location",{enumerable:!0,get:function(){return jt.Location}});Object.defineProperty(W,"getLocation",{enumerable:!0,get:function(){return jt.getLocation}});Object.defineProperty(W,"printLocation",{enumerable:!0,get:function(){return jt.printLocation}});Object.defineProperty(W,"printSourceLocation",{enumerable:!0,get:function(){return jt.printSourceLocation}});Object.defineProperty(W,"Lexer",{enumerable:!0,get:function(){return jt.Lexer}});Object.defineProperty(W,"TokenKind",{enumerable:!0,get:function(){return jt.TokenKind}});Object.defineProperty(W,"parse",{enumerable:!0,get:function(){return jt.parse}});Object.defineProperty(W,"parseValue",{enumerable:!0,get:function(){return jt.parseValue}});Object.defineProperty(W,"parseType",{enumerable:!0,get:function(){return jt.parseType}});Object.defineProperty(W,"print",{enumerable:!0,get:function(){return jt.print}});Object.defineProperty(W,"visit",{enumerable:!0,get:function(){return jt.visit}});Object.defineProperty(W,"visitInParallel",{enumerable:!0,get:function(){return jt.visitInParallel}});Object.defineProperty(W,"getVisitFn",{enumerable:!0,get:function(){return jt.getVisitFn}});Object.defineProperty(W,"BREAK",{enumerable:!0,get:function(){return jt.BREAK}});Object.defineProperty(W,"Kind",{enumerable:!0,get:function(){return jt.Kind}});Object.defineProperty(W,"DirectiveLocation",{enumerable:!0,get:function(){return jt.DirectiveLocation}});Object.defineProperty(W,"isDefinitionNode",{enumerable:!0,get:function(){return jt.isDefinitionNode}});Object.defineProperty(W,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return jt.isExecutableDefinitionNode}});Object.defineProperty(W,"isSelectionNode",{enumerable:!0,get:function(){return jt.isSelectionNode}});Object.defineProperty(W,"isValueNode",{enumerable:!0,get:function(){return jt.isValueNode}});Object.defineProperty(W,"isTypeNode",{enumerable:!0,get:function(){return jt.isTypeNode}});Object.defineProperty(W,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return jt.isTypeSystemDefinitionNode}});Object.defineProperty(W,"isTypeDefinitionNode",{enumerable:!0,get:function(){return jt.isTypeDefinitionNode}});Object.defineProperty(W,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return jt.isTypeSystemExtensionNode}});Object.defineProperty(W,"isTypeExtensionNode",{enumerable:!0,get:function(){return jt.isTypeExtensionNode}});Object.defineProperty(W,"execute",{enumerable:!0,get:function(){return zl.execute}});Object.defineProperty(W,"executeSync",{enumerable:!0,get:function(){return zl.executeSync}});Object.defineProperty(W,"defaultFieldResolver",{enumerable:!0,get:function(){return zl.defaultFieldResolver}});Object.defineProperty(W,"defaultTypeResolver",{enumerable:!0,get:function(){return zl.defaultTypeResolver}});Object.defineProperty(W,"responsePathAsArray",{enumerable:!0,get:function(){return zl.responsePathAsArray}});Object.defineProperty(W,"getDirectiveValues",{enumerable:!0,get:function(){return zl.getDirectiveValues}});Object.defineProperty(W,"subscribe",{enumerable:!0,get:function(){return FI.subscribe}});Object.defineProperty(W,"createSourceEventStream",{enumerable:!0,get:function(){return FI.createSourceEventStream}});Object.defineProperty(W,"validate",{enumerable:!0,get:function(){return it.validate}});Object.defineProperty(W,"ValidationContext",{enumerable:!0,get:function(){return it.ValidationContext}});Object.defineProperty(W,"specifiedRules",{enumerable:!0,get:function(){return it.specifiedRules}});Object.defineProperty(W,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return it.ExecutableDefinitionsRule}});Object.defineProperty(W,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return it.FieldsOnCorrectTypeRule}});Object.defineProperty(W,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return it.FragmentsOnCompositeTypesRule}});Object.defineProperty(W,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return it.KnownArgumentNamesRule}});Object.defineProperty(W,"KnownDirectivesRule",{enumerable:!0,get:function(){return it.KnownDirectivesRule}});Object.defineProperty(W,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return it.KnownFragmentNamesRule}});Object.defineProperty(W,"KnownTypeNamesRule",{enumerable:!0,get:function(){return it.KnownTypeNamesRule}});Object.defineProperty(W,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return it.LoneAnonymousOperationRule}});Object.defineProperty(W,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return it.NoFragmentCyclesRule}});Object.defineProperty(W,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return it.NoUndefinedVariablesRule}});Object.defineProperty(W,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return it.NoUnusedFragmentsRule}});Object.defineProperty(W,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return it.NoUnusedVariablesRule}});Object.defineProperty(W,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return it.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(W,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return it.PossibleFragmentSpreadsRule}});Object.defineProperty(W,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return it.ProvidedRequiredArgumentsRule}});Object.defineProperty(W,"ScalarLeafsRule",{enumerable:!0,get:function(){return it.ScalarLeafsRule}});Object.defineProperty(W,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return it.SingleFieldSubscriptionsRule}});Object.defineProperty(W,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return it.UniqueArgumentNamesRule}});Object.defineProperty(W,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return it.UniqueDirectivesPerLocationRule}});Object.defineProperty(W,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return it.UniqueFragmentNamesRule}});Object.defineProperty(W,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return it.UniqueInputFieldNamesRule}});Object.defineProperty(W,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return it.UniqueOperationNamesRule}});Object.defineProperty(W,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return it.UniqueVariableNamesRule}});Object.defineProperty(W,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return it.ValuesOfCorrectTypeRule}});Object.defineProperty(W,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return it.VariablesAreInputTypesRule}});Object.defineProperty(W,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return it.VariablesInAllowedPositionRule}});Object.defineProperty(W,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return it.LoneSchemaDefinitionRule}});Object.defineProperty(W,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return it.UniqueOperationTypesRule}});Object.defineProperty(W,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return it.UniqueTypeNamesRule}});Object.defineProperty(W,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return it.UniqueEnumValueNamesRule}});Object.defineProperty(W,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return it.UniqueFieldDefinitionNamesRule}});Object.defineProperty(W,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return it.UniqueDirectiveNamesRule}});Object.defineProperty(W,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return it.PossibleTypeExtensionsRule}});Object.defineProperty(W,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return it.NoDeprecatedCustomRule}});Object.defineProperty(W,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return it.NoSchemaIntrospectionCustomRule}});Object.defineProperty(W,"GraphQLError",{enumerable:!0,get:function(){return Xd.GraphQLError}});Object.defineProperty(W,"syntaxError",{enumerable:!0,get:function(){return Xd.syntaxError}});Object.defineProperty(W,"locatedError",{enumerable:!0,get:function(){return Xd.locatedError}});Object.defineProperty(W,"printError",{enumerable:!0,get:function(){return Xd.printError}});Object.defineProperty(W,"formatError",{enumerable:!0,get:function(){return Xd.formatError}});Object.defineProperty(W,"getIntrospectionQuery",{enumerable:!0,get:function(){return pt.getIntrospectionQuery}});Object.defineProperty(W,"getOperationAST",{enumerable:!0,get:function(){return pt.getOperationAST}});Object.defineProperty(W,"getOperationRootType",{enumerable:!0,get:function(){return pt.getOperationRootType}});Object.defineProperty(W,"introspectionFromSchema",{enumerable:!0,get:function(){return pt.introspectionFromSchema}});Object.defineProperty(W,"buildClientSchema",{enumerable:!0,get:function(){return pt.buildClientSchema}});Object.defineProperty(W,"buildASTSchema",{enumerable:!0,get:function(){return pt.buildASTSchema}});Object.defineProperty(W,"buildSchema",{enumerable:!0,get:function(){return pt.buildSchema}});Object.defineProperty(W,"getDescription",{enumerable:!0,get:function(){return pt.getDescription}});Object.defineProperty(W,"extendSchema",{enumerable:!0,get:function(){return pt.extendSchema}});Object.defineProperty(W,"lexicographicSortSchema",{enumerable:!0,get:function(){return pt.lexicographicSortSchema}});Object.defineProperty(W,"printSchema",{enumerable:!0,get:function(){return pt.printSchema}});Object.defineProperty(W,"printType",{enumerable:!0,get:function(){return pt.printType}});Object.defineProperty(W,"printIntrospectionSchema",{enumerable:!0,get:function(){return pt.printIntrospectionSchema}});Object.defineProperty(W,"typeFromAST",{enumerable:!0,get:function(){return pt.typeFromAST}});Object.defineProperty(W,"valueFromAST",{enumerable:!0,get:function(){return pt.valueFromAST}});Object.defineProperty(W,"valueFromASTUntyped",{enumerable:!0,get:function(){return pt.valueFromASTUntyped}});Object.defineProperty(W,"astFromValue",{enumerable:!0,get:function(){return pt.astFromValue}});Object.defineProperty(W,"TypeInfo",{enumerable:!0,get:function(){return pt.TypeInfo}});Object.defineProperty(W,"visitWithTypeInfo",{enumerable:!0,get:function(){return pt.visitWithTypeInfo}});Object.defineProperty(W,"coerceInputValue",{enumerable:!0,get:function(){return pt.coerceInputValue}});Object.defineProperty(W,"concatAST",{enumerable:!0,get:function(){return pt.concatAST}});Object.defineProperty(W,"separateOperations",{enumerable:!0,get:function(){return pt.separateOperations}});Object.defineProperty(W,"stripIgnoredCharacters",{enumerable:!0,get:function(){return pt.stripIgnoredCharacters}});Object.defineProperty(W,"isEqualType",{enumerable:!0,get:function(){return pt.isEqualType}});Object.defineProperty(W,"isTypeSubTypeOf",{enumerable:!0,get:function(){return pt.isTypeSubTypeOf}});Object.defineProperty(W,"doTypesOverlap",{enumerable:!0,get:function(){return pt.doTypesOverlap}});Object.defineProperty(W,"assertValidName",{enumerable:!0,get:function(){return pt.assertValidName}});Object.defineProperty(W,"isValidNameError",{enumerable:!0,get:function(){return pt.isValidNameError}});Object.defineProperty(W,"BreakingChangeType",{enumerable:!0,get:function(){return pt.BreakingChangeType}});Object.defineProperty(W,"DangerousChangeType",{enumerable:!0,get:function(){return pt.DangerousChangeType}});Object.defineProperty(W,"findBreakingChanges",{enumerable:!0,get:function(){return pt.findBreakingChanges}});Object.defineProperty(W,"findDangerousChanges",{enumerable:!0,get:function(){return pt.findDangerousChanges}});Object.defineProperty(W,"findDeprecatedUsages",{enumerable:!0,get:function(){return pt.findDeprecatedUsages}});var II=Zw(),RI=ux(),Ee=lx(),jt=dx(),zl=px(),FI=Ox(),it=Nx(),Xd=xx(),pt=xI()});var jI=U((fne,PI)=>{PI.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n{"use strict";var dW=jI(),MI={"text/plain":"Text","text/html":"Url",default:"Text"},pW="Copy to clipboard: #{key}, Enter";function hW(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function vW(e,t){var r,n,a,o,s,c,d=!1;t||(t={}),r=t.debug||!1;try{a=dW(),o=document.createRange(),s=document.getSelection(),c=document.createElement("span"),c.textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",function(m){if(m.stopPropagation(),t.format)if(m.preventDefault(),typeof m.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=MI[t.format]||MI.default;window.clipboardData.setData(T,e)}else m.clipboardData.clearData(),m.clipboardData.setData(t.format,e);t.onCopy&&(m.preventDefault(),t.onCopy(m.clipboardData))}),document.body.appendChild(c),o.selectNodeContents(c),s.addRange(o);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(m){r&&console.error("unable to copy using execCommand: ",m),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(T){r&&console.error("unable to copy using clipboardData: ",T),r&&console.error("falling back to prompt"),n=hW("message"in t?t.message:pW),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return d}qI.exports=vW});var UI=U((pne,Zg)=>{"use strict";function VI(e,t){if(e!=null)return e;var r=new Error(t!==void 0?t:"Got unexpected "+e);throw r.framesToPop=1,r}Zg.exports=VI;Zg.exports.default=VI;Object.defineProperty(Zg.exports,"__esModule",{value:!0})});var QI=U(ro=>{"use strict";var gW=ro&&ro.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ro,"__esModule",{value:!0});ro.getFragmentDependenciesForAST=ro.getFragmentDependencies=void 0;var BS=Nt(),GI=gW(UI()),mW=(e,t)=>{if(!t)return[];let r;try{r=BS.parse(e,{allowLegacySDLImplementsInterfaces:!0,allowLegacySDLEmptyFields:!0})}catch(n){return[]}return ro.getFragmentDependenciesForAST(r,t)};ro.getFragmentDependencies=mW;var yW=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;BS.visit(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let a=new Set;n.forEach(s=>{!r.has(s)&&t.has(s)&&a.add(GI.default(t.get(s)))});let o=[];return a.forEach(s=>{BS.visit(s,{FragmentSpread(c){!n.has(c.name.value)&&t.get(c.name.value)&&(a.add(GI.default(t.get(c.name.value))),n.add(c.name.value))}}),r.has(s.name.value)||o.push(s)}),o};ro.getFragmentDependenciesForAST=yW});var HI=U(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.pointToOffset=Wl.getASTNodeAtPosition=void 0;var bW=Nt();function EW(e,t,r){let n=KI(e,r),a;return bW.visit(t,{enter(o){if(o.kind!=="Name"&&o.loc&&o.loc.start<=n&&n<=o.loc.end)a=o;else return!1},leave(o){if(o.loc&&o.loc.start<=n&&n<=o.loc.end)return!1}}),a}Wl.getASTNodeAtPosition=EW;function KI(e,t){let r=e.split(` `).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,a)=>n+a,0)}Wl.pointToOffset=KI});var zI=U(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.locToRange=Sa.offsetToPosition=Sa.Position=Sa.Range=void 0;var VS=class{constructor(t,r){this.containsPosition=n=>this.start.line===n.line?this.start.character<=n.character:this.end.line===n.line?this.end.character>=n.character:this.start.line<=n.line&&this.end.line>=n.line,this.start=t,this.end=r}setStart(t,r){this.start=new Zd(t,r)}setEnd(t,r){this.end=new Zd(t,r)}};Sa.Range=VS;var Zd=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});Object.defineProperty(GS,"ExecutableDefinitions",{enumerable:!0,get:function(){return _W.ExecutableDefinitionsRule}});var _W=yg()});var YI=U($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.validateWithCustomRules=void 0;var $d=Nt(),SW=WI();function DW(e,t,r,n){let a=$d.specifiedRules.filter(s=>!(s===$d.NoUnusedFragmentsRule||s===SW.ExecutableDefinitions||n&&s===$d.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(a,r),$d.validate(e,t,a).filter(s=>{if(s.message.indexOf("Unknown directive")!==-1&&s.nodes){let c=s.nodes[0];if(c&&c.kind===$d.Kind.DIRECTIVE){let d=c.name.value;if(d==="arguments"||d==="argumentDefinitions")return!1}}return!0})}$g.validateWithCustomRules=DW});var is=U(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.validateWithCustomRules=Er.offsetToPosition=Er.locToRange=Er.Range=Er.Position=Er.pointToOffset=Er.getASTNodeAtPosition=Er.getFragmentDependenciesForAST=Er.getFragmentDependencies=void 0;var JI=QI();Object.defineProperty(Er,"getFragmentDependencies",{enumerable:!0,get:function(){return JI.getFragmentDependencies}});Object.defineProperty(Er,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return JI.getFragmentDependenciesForAST}});var XI=HI();Object.defineProperty(Er,"getASTNodeAtPosition",{enumerable:!0,get:function(){return XI.getASTNodeAtPosition}});Object.defineProperty(Er,"pointToOffset",{enumerable:!0,get:function(){return XI.pointToOffset}});var em=zI();Object.defineProperty(Er,"Position",{enumerable:!0,get:function(){return em.Position}});Object.defineProperty(Er,"Range",{enumerable:!0,get:function(){return em.Range}});Object.defineProperty(Er,"locToRange",{enumerable:!0,get:function(){return em.locToRange}});Object.defineProperty(Er,"offsetToPosition",{enumerable:!0,get:function(){return em.offsetToPosition}});var kW=YI();Object.defineProperty(Er,"validateWithCustomRules",{enumerable:!0,get:function(){return kW.validateWithCustomRules}})});var nR=U((kne,LW)=>{LW.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var WS=U((Cne,iR)=>{"use strict";iR.exports=nR()});var tm=U((One,aR)=>{aR.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var sR=U((wne,uR)=>{"use strict";var oR={};function xW(e){var t,r,n=oR[e];if(n)return n;for(n=oR[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1=56320&&s<=57343)){d+=encodeURIComponent(e[n]+e[n+1]),n++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[n])}return d}rm.defaultChars=";/?:@&=+$,-_.!~*'()#";rm.componentChars="-_.!~*'()";uR.exports=rm});var fR=U((Nne,cR)=>{"use strict";var lR={};function IW(e){var t,r,n=lR[e];if(n)return n;for(n=lR[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t=55296&&m<=57343?T+="\uFFFD\uFFFD\uFFFD":T+=String.fromCharCode(m),a+=6;continue}if((s&248)==240&&a+91114111?T+="\uFFFD\uFFFD\uFFFD\uFFFD":(m-=65536,T+=String.fromCharCode(55296+(m>>10),56320+(m&1023))),a+=9;continue}T+="\uFFFD"}return T})}nm.defaultChars=";/?:@&=+$,#";nm.componentChars="";cR.exports=nm});var pR=U((Ane,dR)=>{"use strict";dR.exports=function(t){var r="";return r+=t.protocol||"",r+=t.slashes?"//":"",r+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?r+="["+t.hostname+"]":r+=t.hostname||"",r+=t.port?":"+t.port:"",r+=t.pathname||"",r+=t.search||"",r+=t.hash||"",r}});var ER=U((Lne,bR)=>{"use strict";function im(){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 RW=/^([a-z0-9.+-]+:)/i,FW=/:[0-9]*$/,PW=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jW=["<",">",'"',"`"," ","\r",` `," "],MW=["{","}","|","\\","^","`"].concat(jW),qW=["'"].concat(MW),hR=["%","/","?",";","#"].concat(qW),vR=["/","?","#"],BW=255,gR=/^[+a-z0-9A-Z_-]{0,63}$/,VW=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mR={javascript:!0,"javascript:":!0},yR={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function UW(e,t){if(e&&e instanceof im)return e;var r=new im;return r.parse(e,t),r}im.prototype.parse=function(e,t){var r,n,a,o,s,c=e;if(c=c.trim(),!t&&e.split("#").length===1){var d=PW.exec(c);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=RW.exec(c);if(h&&(h=h[0],a=h.toLowerCase(),this.protocol=h,c=c.substr(h.length)),(t||h||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=c.substr(0,2)==="//",s&&!(h&&mR[h])&&(c=c.substr(2),this.slashes=!0)),!mR[h]&&(s||h&&!yR[h])){var m=-1;for(r=0;r127?_+="x":_+=y[g];if(!_.match(gR)){var N=S.slice(0,r),w=S.slice(r+1),D=y.match(VW);D&&(N.push(D[1]),w.unshift(D[2])),w.length&&(c=w.join(".")+c),this.hostname=N.join(".");break}}}}this.hostname.length>BW&&(this.hostname=""),L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var F=c.indexOf("#");F!==-1&&(this.hash=c.substr(F),c=c.slice(0,F));var P=c.indexOf("?");return P!==-1&&(this.search=c.substr(P),c=c.slice(0,P)),c&&(this.pathname=c),yR[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this};im.prototype.parseHost=function(e){var t=FW.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};bR.exports=UW});var YS=U((xne,tp)=>{"use strict";tp.exports.encode=sR();tp.exports.decode=fR();tp.exports.format=pR();tp.exports.parse=ER()});var JS=U((Ine,TR)=>{TR.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var XS=U((Rne,_R)=>{_R.exports=/[\0-\x1F\x7F-\x9F]/});var DR=U((Fne,SR)=>{SR.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ZS=U((Pne,kR)=>{kR.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var CR=U(Yl=>{"use strict";Yl.Any=JS();Yl.Cc=XS();Yl.Cf=DR();Yl.P=tm();Yl.Z=ZS()});var St=U(Lr=>{"use strict";function GW(e){return Object.prototype.toString.call(e)}function QW(e){return GW(e)==="[object String]"}var KW=Object.prototype.hasOwnProperty;function OR(e,t){return KW.call(e,t)}function HW(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){if(!!r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function zW(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function wR(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function NR(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var AR=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,WW=/&([a-z#][a-z0-9]{1,31});/gi,YW=new RegExp(AR.source+"|"+WW.source,"gi"),JW=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,LR=WS();function XW(e,t){var r=0;return OR(LR,t)?LR[t]:t.charCodeAt(0)===35&&JW.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),wR(r))?NR(r):e}function ZW(e){return e.indexOf("\\")<0?e:e.replace(AR,"$1")}function $W(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(YW,function(t,r,n){return r||XW(t,n)})}var eY=/[&<>"]/,tY=/[&<>"]/g,rY={"&":"&","<":"<",">":">",'"':"""};function nY(e){return rY[e]}function iY(e){return eY.test(e)?e.replace(tY,nY):e}var aY=/[.?*+^$[\]\\(){}|-]/g;function oY(e){return e.replace(aY,"\\$&")}function uY(e){switch(e){case 9:case 32:return!0}return!1}function sY(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}var lY=tm();function cY(e){return lY.test(e)}function fY(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}}function dY(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}Lr.lib={};Lr.lib.mdurl=YS();Lr.lib.ucmicro=CR();Lr.assign=HW;Lr.isString=QW;Lr.has=OR;Lr.unescapeMd=ZW;Lr.unescapeAll=$W;Lr.isValidEntityCode=wR;Lr.fromCodePoint=NR;Lr.escapeHtml=iY;Lr.arrayReplaceAt=zW;Lr.isSpace=uY;Lr.isWhiteSpace=sY;Lr.isMdAsciiPunct=fY;Lr.isPunctChar=cY;Lr.escapeRE=oY;Lr.normalizeReference=dY});var IR=U((qne,xR)=>{"use strict";xR.exports=function(t,r,n){var a,o,s,c,d=-1,h=t.posMax,m=t.pos;for(t.pos=r+1,a=1;t.pos{"use strict";var RR=St().unescapeAll;FR.exports=function(t,r,n){var a,o,s=0,c=r,d={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r{"use strict";var pY=St().unescapeAll;jR.exports=function(t,r,n){var a,o,s=0,c=r,d={ok:!1,pos:0,lines:0,str:""};if(r>=n||(o=t.charCodeAt(r),o!==34&&o!==39&&o!==40))return d;for(r++,o===40&&(o=41);r{"use strict";am.parseLinkLabel=IR();am.parseLinkDestination=PR();am.parseLinkTitle=MR()});var VR=U((Gne,BR)=>{"use strict";var hY=St().assign,vY=St().unescapeAll,os=St().escapeHtml,Da={};Da.code_inline=function(e,t,r,n,a){var o=e[t];return""+os(e[t].content)+""};Da.code_block=function(e,t,r,n,a){var o=e[t];return""+os(e[t].content)+` `};Da.fence=function(e,t,r,n,a){var o=e[t],s=o.info?vY(o.info).trim():"",c="",d,h,m,T;return s&&(c=s.split(/\s+/g)[0]),r.highlight?d=r.highlight(o.content,c)||os(o.content):d=os(o.content),d.indexOf(""+d+` `):"
"+d+`
`};Da.image=function(e,t,r,n,a){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=a.renderInlineAsText(o.children,r,n),a.renderToken(e,t,r)};Da.hardbreak=function(e,t,r){return r.xhtmlOut?`
`:`
`};Da.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
`:`
`:` `};Da.text=function(e,t){return os(e[t].content)};Da.html_block=function(e,t){return e[t].content};Da.html_inline=function(e,t){return e[t].content};function Jl(){this.rules=hY({},Da)}Jl.prototype.renderAttrs=function(t){var r,n,a;if(!t.attrs)return"";for(a="",r=0,n=t.attrs.length;r `:">",o)};Jl.prototype.renderInline=function(e,t,r){for(var n,a="",o=this.rules,s=0,c=e.length;s{"use strict";function Ji(){this.__rules__=[],this.__cache__=null}Ji.prototype.__find__=function(e){for(var t=0;t{"use strict";var gY=/\r\n?|\n/g,mY=/\0/g;GR.exports=function(t){var r;r=t.src.replace(gY,` `),r=r.replace(mY,"\uFFFD"),t.src=r}});var HR=U((Hne,KR)=>{"use strict";KR.exports=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var WR=U((zne,zR)=>{"use strict";zR.exports=function(t){var r=t.tokens,n,a,o;for(a=0,o=r.length;a{"use strict";var yY=St().arrayReplaceAt;function bY(e){return/^\s]/i.test(e)}function EY(e){return/^<\/a\s*>/i.test(e)}YR.exports=function(t){var r,n,a,o,s,c,d,h,m,T,b,C,L,S,y,_,g=t.tokens,k;if(!!t.md.options.linkify){for(n=0,a=g.length;n=0;r--){if(c=o[r],c.type==="link_close"){for(r--;o[r].level!==c.level&&o[r].type!=="link_open";)r--;continue}if(c.type==="html_inline"&&(bY(c.content)&&L>0&&L--,EY(c.content)&&L++),!(L>0)&&c.type==="text"&&t.md.linkify.test(c.content)){for(m=c.content,k=t.md.linkify.match(m),d=[],C=c.level,b=0,h=0;hb&&(s=new t.Token("text","",0),s.content=m.slice(b,T),s.level=C,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",y]],s.level=C++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=_,s.level=C,d.push(s),s=new t.Token("link_close","a",-1),s.level=--C,s.markup="linkify",s.info="auto",d.push(s),b=k[h].lastIndex);b{"use strict";var XR=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,TY=/\((c|tm|r|p)\)/i,_Y=/\((c|tm|r|p)\)/ig,SY={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function DY(e,t){return SY[t.toLowerCase()]}function kY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&(r.content=r.content.replace(_Y,DY)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function CY(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&XR.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1\u2014$2").replace(/(^|\s)--(\s|$)/mg,"$1\u2013$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1\u2013$2")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}ZR.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(TY.test(t.tokens[r].content)&&kY(t.tokens[r].children),XR.test(t.tokens[r].content)&&CY(t.tokens[r].children))}});var oF=U((Jne,aF)=>{"use strict";var eF=St().isWhiteSpace,tF=St().isPunctChar,rF=St().isMdAsciiPunct,OY=/['"]/,nF=/['"]/g,iF="\u2019";function um(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wY(e,t){var r,n,a,o,s,c,d,h,m,T,b,C,L,S,y,_,g,k,N,w,D;for(N=[],r=0;r=0&&!(N[g].level<=d);g--);if(N.length=g+1,n.type!=="text")continue;a=n.content,s=0,c=a.length;e:for(;s=0)m=a.charCodeAt(o.index-1);else for(g=r-1;g>=0&&!(e[g].type==="softbreak"||e[g].type==="hardbreak");g--)if(e[g].type==="text"){m=e[g].content.charCodeAt(e[g].content.length-1);break}if(T=32,s=48&&m<=57&&(_=y=!1),y&&_&&(y=!1,_=C),!y&&!_){k&&(n.content=um(n.content,o.index,iF));continue}if(_){for(g=N.length-1;g>=0&&(h=N[g],!(N[g].level=0;r--)t.tokens[r].type!=="inline"||!OY.test(t.tokens[r].content)||wY(t.tokens[r].children,t)}});var sm=U((Xne,uF)=>{"use strict";function Xl(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Xl.prototype.attrIndex=function(t){var r,n,a;if(!this.attrs)return-1;for(r=this.attrs,n=0,a=r.length;n=0&&(n=this.attrs[r][1]),n};Xl.prototype.attrJoin=function(t,r){var n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};uF.exports=Xl});var cF=U((Zne,lF)=>{"use strict";var NY=sm();function sF(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}sF.prototype.Token=NY;lF.exports=sF});var dF=U(($ne,fF)=>{"use strict";var AY=om(),$S=[["normalize",QR()],["block",HR()],["inline",WR()],["linkify",JR()],["replacements",$R()],["smartquotes",oF()]];function e1(){this.ruler=new AY;for(var e=0;e<$S.length;e++)this.ruler.push($S[e][0],$S[e][1])}e1.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t{"use strict";var LY=St().isSpace;function t1(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function pF(e){var t=[],r=0,n=e.length,a,o=0,s=0,c=!1,d=0;for(a=e.charCodeAt(r);rn||(h=r+1,t.sCount[h]=4||(c=t.bMarks[h]+t.tShift[h],c>=t.eMarks[h])||(o=t.src.charCodeAt(c++),o!==124&&o!==45&&o!==58))return!1;for(;c=4||(m=pF(s.replace(/^\||\|$/g,"")),T=m.length,T>C.length))return!1;if(a)return!0;for(b=t.push("table_open","table",1),b.map=S=[r,0],b=t.push("thead_open","thead",1),b.map=[r,r+1],b=t.push("tr_open","tr",1),b.map=[r,r+1],d=0;d=4);h++){for(m=pF(s.replace(/^\||\|$/g,"")),b=t.push("tr_open","tr",1),d=0;d{"use strict";gF.exports=function(t,r,n){var a,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=a=r+1;a=4){a++,o=a;continue}break}return t.line=o,s=t.push("code_block","code",0),s.content=t.getLines(r,o,4+t.blkIndent,!0),s.map=[r,t.line],!0}});var bF=U((rie,yF)=>{"use strict";yF.exports=function(t,r,n,a){var o,s,c,d,h,m,T,b=!1,C=t.bMarks[r]+t.tShift[r],L=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||C+3>L||(o=t.src.charCodeAt(C),o!==126&&o!==96)||(h=C,C=t.skipChars(C,o),s=C-h,s<3)||(T=t.src.slice(h,C),c=t.src.slice(C,L),o===96&&c.indexOf(String.fromCharCode(o))>=0))return!1;if(a)return!0;for(d=r;d++,!(d>=n||(C=h=t.bMarks[d]+t.tShift[d],L=t.eMarks[d],C=4)&&(C=t.skipChars(C,o),!(C-h{"use strict";var EF=St().isSpace;TF.exports=function(t,r,n,a){var o,s,c,d,h,m,T,b,C,L,S,y,_,g,k,N,w,D,F,P,B=t.lineMax,z=t.bMarks[r]+t.tShift[r],G=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(z++)!==62)return!1;if(a)return!0;for(d=C=t.sCount[r]+z-(t.bMarks[r]+t.tShift[r]),t.src.charCodeAt(z)===32?(z++,d++,C++,o=!1,N=!0):t.src.charCodeAt(z)===9?(N=!0,(t.bsCount[r]+C)%4==3?(z++,d++,C++,o=!1):o=!0):N=!1,L=[t.bMarks[r]],t.bMarks[r]=z;z=G,g=[t.sCount[r]],t.sCount[r]=C-d,k=[t.tShift[r]],t.tShift[r]=z-t.bMarks[r],D=t.md.block.ruler.getRules("blockquote"),_=t.parentType,t.parentType="blockquote",P=!1,b=r+1;b=G));b++){if(t.src.charCodeAt(z++)===62&&!P){for(d=C=t.sCount[b]+z-(t.bMarks[b]+t.tShift[b]),t.src.charCodeAt(z)===32?(z++,d++,C++,o=!1,N=!0):t.src.charCodeAt(z)===9?(N=!0,(t.bsCount[b]+C)%4==3?(z++,d++,C++,o=!1):o=!0):N=!1,L.push(t.bMarks[b]),t.bMarks[b]=z;z=G,S.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(N?1:0),g.push(t.sCount[b]),t.sCount[b]=C-d,k.push(t.tShift[b]),t.tShift[b]=z-t.bMarks[b];continue}if(m)break;for(w=!1,c=0,h=D.length;c",F.map=T=[r,0],t.md.block.tokenize(t,r,b),F=t.push("blockquote_close","blockquote",-1),F.markup=">",t.lineMax=B,t.parentType=_,T[1]=t.line,c=0;c{"use strict";var xY=St().isSpace;SF.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h{"use strict";var kF=St().isSpace;function CF(e,t){var r,n,a,o;return n=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n=o||(r=e.src.charCodeAt(a++),r<48||r>57))return-1;for(;;){if(a>=o)return-1;if(r=e.src.charCodeAt(a++),r>=48&&r<=57){if(a-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return a=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]=t.blkIndent&&(we=!0),(G=OF(t,r))>=0){if(T=!0,j=t.bMarks[r]+t.tShift[r],_=Number(t.src.substr(j,G-j-1)),we&&_!==1)return!1}else if((G=CF(t,r))>=0)T=!1;else return!1;if(we&&t.skipSpaces(G)>=t.eMarks[r])return!1;if(y=t.src.charCodeAt(G-1),a)return!0;for(S=t.tokens.length,T?(pe=t.push("ordered_list_open","ol",1),_!==1&&(pe.attrs=[["start",_]])):pe=t.push("bullet_list_open","ul",1),pe.map=L=[r,0],pe.markup=String.fromCharCode(y),k=r,M=!1,ke=t.md.block.ruler.getRules("list"),D=t.parentType,t.parentType="list";k=g?h=1:h=N-m,h>4&&(h=1),d=m+h,pe=t.push("list_item_open","li",1),pe.markup=String.fromCharCode(y),pe.map=b=[r,0],B=t.tight,P=t.tShift[r],F=t.sCount[r],w=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=d,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=N,s>=g&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||M)&&(Ne=!1),M=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=w,t.tShift[r]=P,t.sCount[r]=F,t.tight=B,pe=t.push("list_item_close","li",-1),pe.markup=String.fromCharCode(y),k=r=t.line,b[1]=k,s=t.bMarks[r],k>=n||t.sCount[k]=4)break;for(ce=!1,c=0,C=ke.length;c{"use strict";var RY=St().normalizeReference,lm=St().isSpace;AF.exports=function(t,r,n,a){var o,s,c,d,h,m,T,b,C,L,S,y,_,g,k,N,w=0,D=t.bMarks[r]+t.tShift[r],F=t.eMarks[r],P=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(D)!==91)return!1;for(;++D3)&&!(t.sCount[P]<0)){for(g=!1,m=0,T=k.length;m{"use strict";var xF=St().isSpace;IF.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h),o!==35||h>=m))return!1;for(s=1,o=t.src.charCodeAt(++h);o===35&&h6||hh&&xF(t.src.charCodeAt(c-1))&&(m=c),t.line=r+1,d=t.push("heading_open","h"+String(s),1),d.markup="########".slice(0,s),d.map=[r,t.line],d=t.push("inline","",0),d.content=t.src.slice(h,m).trim(),d.map=[r,t.line],d.children=[],d=t.push("heading_close","h"+String(s),-1),d.markup="########".slice(0,s)),!0)}});var PF=U((sie,FF)=>{"use strict";FF.exports=function(t,r,n){var a,o,s,c,d,h,m,T,b,C=r+1,L,S=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(L=t.parentType,t.parentType="paragraph";C3)){if(t.sCount[C]>=t.blkIndent&&(h=t.bMarks[C]+t.tShift[C],m=t.eMarks[C],h=m)))){T=b===61?1:2;break}if(!(t.sCount[C]<0)){for(o=!1,s=0,c=S.length;s{"use strict";jF.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"]});var n1=U((cie,r1)=>{"use strict";var FY="[a-zA-Z_:][a-zA-Z0-9:._-]*",PY="[^\"'=<>`\\x00-\\x20]+",jY="'[^']*'",MY='"[^"]*"',qY="(?:"+PY+"|"+jY+"|"+MY+")",BY="(?:\\s+"+FY+"(?:\\s*=\\s*"+qY+")?)",qF="<[A-Za-z][A-Za-z0-9\\-]*"+BY+"*\\s*\\/?>",BF="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",VY="|",UY="<[?].*?[?]>",GY="]*>",QY="",KY=new RegExp("^(?:"+qF+"|"+BF+"|"+VY+"|"+UY+"|"+GY+"|"+QY+")"),HY=new RegExp("^(?:"+qF+"|"+BF+")");r1.exports.HTML_TAG_RE=KY;r1.exports.HTML_OPEN_CLOSE_TAG_RE=HY});var UF=U((fie,VF)=>{"use strict";var zY=MF(),WY=n1().HTML_OPEN_CLOSE_TAG_RE,Zl=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(WY.source+"\\s*$"),/^$/,!1]];VF.exports=function(t,r,n,a){var o,s,c,d,h=t.bMarks[r]+t.tShift[r],m=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(h)!==60)return!1;for(d=t.src.slice(h,m),o=0;o{"use strict";GF.exports=function(t,r){var n,a,o,s,c,d,h=r+1,m=t.md.block.ruler.getRules("paragraph"),T=t.lineMax;for(d=t.parentType,t.parentType="paragraph";h3)&&!(t.sCount[h]<0)){for(a=!1,o=0,s=m.length;o{"use strict";var KF=sm(),cm=St().isSpace;function ka(e,t,r,n){var a,o,s,c,d,h,m,T;for(this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,T=!1,s=c=h=m=0,d=o.length;c0&&this.level++,this.tokens.push(n),n};ka.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};ka.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;tr;)if(!cm(this.src.charCodeAt(--t)))return t+1;return t};ka.prototype.skipChars=function(t,r){for(var n=this.src.length;tn;)if(r!==this.src.charCodeAt(--t))return t+1;return t};ka.prototype.getLines=function(t,r,n,a){var o,s,c,d,h,m,T,b=t;if(t>=r)return"";for(m=new Array(r-t),o=0;bn?m[o]=new Array(s-n+1).join(" ")+this.src.slice(d,h):m[o]=this.src.slice(d,h)}return m.join("")};ka.prototype.Token=KF;HF.exports=ka});var YF=U((hie,WF)=>{"use strict";var YY=om(),fm=[["table",vF(),["paragraph","reference"]],["code",mF()],["fence",bF(),["paragraph","reference","blockquote","list"]],["blockquote",_F(),["paragraph","reference","blockquote","list"]],["hr",DF(),["paragraph","reference","blockquote","list"]],["list",NF(),["paragraph","reference","blockquote"]],["reference",LF()],["heading",RF(),["paragraph","reference","blockquote"]],["lheading",PF()],["html_block",UF(),["paragraph","reference","blockquote"]],["paragraph",QF()]];function dm(){this.ruler=new YY;for(var e=0;e=r||e.sCount[c]=h){e.line=r;break}for(a=0;a{"use strict";function JY(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}}JF.exports=function(t,r){for(var n=t.pos;n{"use strict";var XY=St().isSpace;ZF.exports=function(t,r){var n,a,o=t.pos;if(t.src.charCodeAt(o)!==10)return!1;for(n=t.pending.length-1,a=t.posMax,r||(n>=0&&t.pending.charCodeAt(n)===32?n>=1&&t.pending.charCodeAt(n-1)===32?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),o++;o{"use strict";var ZY=St().isSpace,i1=[];for(a1=0;a1<256;a1++)i1.push(0);var a1;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){i1[e.charCodeAt(0)]=1});eP.exports=function(t,r){var n,a=t.pos,o=t.posMax;if(t.src.charCodeAt(a)!==92)return!1;if(a++,a{"use strict";rP.exports=function(t,r){var n,a,o,s,c,d,h=t.pos,m=t.src.charCodeAt(h);if(m!==96)return!1;for(n=h,h++,a=t.posMax;h{"use strict";o1.exports.tokenize=function(t,r){var n,a,o,s,c,d=t.pos,h=t.src.charCodeAt(d);if(r||h!==126||(a=t.scanDelims(t.pos,!0),s=a.length,c=String.fromCharCode(h),s<2))return!1;for(s%2&&(o=t.push("text","",0),o.content=c,s--),n=0;n{"use strict";s1.exports.tokenize=function(t,r){var n,a,o,s=t.pos,c=t.src.charCodeAt(s);if(r||c!==95&&c!==42)return!1;for(a=t.scanDelims(t.pos,c===42),n=0;n=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(a=t[n.end],c=r>0&&t[r-1].end===n.end+1&&t[r-1].token===n.token-1&&t[n.end+1].token===a.token+1&&t[r-1].marker===n.marker,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?s+s:s,o.content="",o=e.tokens[a.token],o.type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?s+s:s,o.content="",c&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}s1.exports.postProcess=function(t){var r,n=t.tokens_meta,a=t.tokens_meta.length;for(aP(t,t.delimiters),r=0;r{"use strict";var $Y=St().normalizeReference,c1=St().isSpace;oP.exports=function(t,r){var n,a,o,s,c,d,h,m,T,b,C="",L=t.pos,S=t.posMax,y=t.pos,_=!0;if(t.src.charCodeAt(t.pos)!==91||(c=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(d=s+1,d=S)return!1;for(y=d,h=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),h.ok&&(C=t.md.normalizeLink(h.str),t.md.validateLink(C)?d=h.pos:C=""),y=d;d=S||t.src.charCodeAt(d)!==41)&&(_=!0),d++}if(_){if(typeof t.env.references=="undefined")return!1;if(d=0?o=t.src.slice(y,d++):d=s+1):d=s+1,o||(o=t.src.slice(c,s)),m=t.env.references[$Y(o)],!m)return t.pos=L,!1;C=m.href,T=m.title}return r||(t.pos=c,t.posMax=s,b=t.push("link_open","a",1),b.attrs=n=[["href",C]],T&&n.push(["title",T]),t.md.inline.tokenize(t),b=t.push("link_close","a",-1)),t.pos=d,t.posMax=S,!0}});var lP=U((_ie,sP)=>{"use strict";var eJ=St().normalizeReference,f1=St().isSpace;sP.exports=function(t,r){var n,a,o,s,c,d,h,m,T,b,C,L,S,y="",_=t.pos,g=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(d=t.pos+2,c=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),c<0))return!1;if(h=c+1,h=g)return!1;for(S=h,T=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),T.ok&&(y=t.md.normalizeLink(T.str),t.md.validateLink(y)?h=T.pos:y=""),S=h;h=g||t.src.charCodeAt(h)!==41)return t.pos=_,!1;h++}else{if(typeof t.env.references=="undefined")return!1;if(h=0?s=t.src.slice(S,h++):h=c+1):h=c+1,s||(s=t.src.slice(d,c)),m=t.env.references[eJ(s)],!m)return t.pos=_,!1;y=m.href,b=m.title}return r||(o=t.src.slice(d,c),t.md.inline.parse(o,t.md,t.env,L=[]),C=t.push("image","img",0),C.attrs=n=[["src",y],["alt",""]],C.children=L,C.content=o,b&&n.push(["title",b])),t.pos=h,t.posMax=g,!0}});var pP=U((Sie,dP)=>{"use strict";var cP=/^<([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])?)*)>/,fP=/^<([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)>/;dP.exports=function(t,r){var n,a,o,s,c,d,h=t.pos;return t.src.charCodeAt(h)!==60||(n=t.src.slice(h),n.indexOf(">")<0)?!1:fP.test(n)?(a=n.match(fP),s=a[0].slice(1,-1),c=t.md.normalizeLink(s),t.md.validateLink(c)?(r||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(s),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=a[0].length,!0):!1):cP.test(n)?(o=n.match(cP),s=o[0].slice(1,-1),c=t.md.normalizeLink("mailto:"+s),t.md.validateLink(c)?(r||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(s),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=o[0].length,!0):!1):!1}});var vP=U((Die,hP)=>{"use strict";var tJ=n1().HTML_TAG_RE;function rJ(e){var t=e|32;return t>=97&&t<=122}hP.exports=function(t,r){var n,a,o,s,c=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(c)!==60||c+2>=o)||(n=t.src.charCodeAt(c+1),n!==33&&n!==63&&n!==47&&!rJ(n))||(a=t.src.slice(c).match(tJ),!a)?!1:(r||(s=t.push("html_inline","",0),s.content=t.src.slice(c,c+a[0].length)),t.pos+=a[0].length,!0)}});var bP=U((kie,yP)=>{"use strict";var gP=WS(),nJ=St().has,iJ=St().isValidEntityCode,mP=St().fromCodePoint,aJ=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,oJ=/^&([a-z][a-z0-9]{1,31});/i;yP.exports=function(t,r){var n,a,o,s=t.pos,c=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1{"use strict";function EP(e,t){var r,n,a,o,s,c,d,h,m={},T=t.length;for(r=0;rs;n-=o.jump+1)if(o=t[n],o.marker===a.marker&&(c===-1&&(c=n),o.open&&o.end<0&&o.level===a.level&&(d=!1,(o.close||a.open)&&(o.length+a.length)%3==0&&(o.length%3!=0||a.length%3!=0)&&(d=!0),!d))){h=n>0&&!t[n-1].open?t[n-1].jump+1:0,a.jump=r-n+h,a.open=!1,o.end=r,o.jump=h,o.close=!1,c=-1;break}c!==-1&&(m[a.marker][(a.length||0)%3]=c)}}TP.exports=function(t){var r,n=t.tokens_meta,a=t.tokens_meta.length;for(EP(t,t.delimiters),r=0;r{"use strict";SP.exports=function(t){var r,n,a=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r0&&a++,o[r].type==="text"&&r+1{"use strict";var d1=sm(),kP=St().isWhiteSpace,CP=St().isPunctChar,OP=St().isMdAsciiPunct;function rp(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[]}rp.prototype.pushPending=function(){var e=new d1("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};rp.prototype.push=function(e,t,r){this.pending&&this.pushPending();var n=new d1(e,t,r),a=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],a={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(a),n};rp.prototype.scanDelims=function(e,t){var r=e,n,a,o,s,c,d,h,m,T,b=!0,C=!0,L=this.posMax,S=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r{"use strict";var AP=om(),p1=[["text",XF()],["newline",$F()],["escape",tP()],["backticks",nP()],["strikethrough",u1().tokenize],["emphasis",l1().tokenize],["link",uP()],["image",lP()],["autolink",pP()],["html_inline",vP()],["entity",bP()]],h1=[["balance_pairs",_P()],["strikethrough",u1().postProcess],["emphasis",l1().postProcess],["text_collapse",DP()]];function np(){var e;for(this.ruler=new AP,e=0;e=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};np.prototype.parse=function(e,t,r,n){var a,o,s,c=new this.State(e,t,r,n);for(this.tokenize(c),o=this.ruler2.getRules(""),s=o.length,a=0;a{"use strict";IP.exports=function(e){var t={};t.src_Any=JS().source,t.src_Cc=XS().source,t.src_Z=ZS().source,t.src_P=tm().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+r+"|"+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="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+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="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var BP=U((Lie,qP)=>{"use strict";function v1(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(r){!r||Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function pm(e){return Object.prototype.toString.call(e)}function uJ(e){return pm(e)==="[object String]"}function sJ(e){return pm(e)==="[object Object]"}function lJ(e){return pm(e)==="[object RegExp]"}function FP(e){return pm(e)==="[object Function]"}function cJ(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var PP={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function fJ(e){return Object.keys(e||{}).reduce(function(t,r){return t||PP.hasOwnProperty(r)},!1)}var dJ={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},pJ="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]",hJ="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function vJ(e){e.__index__=-1,e.__text_cache__=""}function gJ(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function jP(){return function(e,t){t.normalize(e)}}function hm(e){var t=e.re=RP()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(pJ),r.push(t.src_xn),t.src_tlds=r.join("|");function n(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");var a=[];e.__compiled__={};function o(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(e.__schemas__).forEach(function(c){var d=e.__schemas__[c];if(d!==null){var h={validate:null,link:null};if(e.__compiled__[c]=h,sJ(d)){lJ(d.validate)?h.validate=gJ(d.validate):FP(d.validate)?h.validate=d.validate:o(c,d),FP(d.normalize)?h.normalize=d.normalize:d.normalize?o(c,d):h.normalize=jP();return}if(uJ(d)){a.push(c);return}o(c,d)}}),a.forEach(function(c){!e.__compiled__[e.__schemas__[c]]||(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:jP()};var s=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(cJ).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),vJ(e)}function mJ(e,t){var r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function MP(e,t){var r=new mJ(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Ci(e,t){if(!(this instanceof Ci))return new Ci(e,t);t||fJ(e)&&(t=e,e={}),this.__opts__=v1({},PP,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=v1({},dJ,e),this.__compiled__={},this.__tlds__=hJ,this.__tlds_replaced__=!1,this.re={},hm(this)}Ci.prototype.add=function(t,r){return this.__schemas__[t]=r,hm(this),this};Ci.prototype.set=function(t){return this.__opts__=v1(this.__opts__,t),this};Ci.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,a,o,s,c,d,h,m;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(r=d.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],d.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h=0&&(a=t.match(this.re.email_fuzzy))!==null&&(s=a.index+a[1].length,c=a.index+a[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=c))),this.__index__>=0};Ci.prototype.pretest=function(t){return this.re.pretest.test(t)};Ci.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Ci.prototype.match=function(t){var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(MP(this,r)),r=this.__last_index__);for(var a=r?t.slice(r):t;this.test(a);)n.push(MP(this,r)),a=a.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Ci.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,o){return n!==o[a-1]}).reverse(),hm(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,hm(this),this)};Ci.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Ci.prototype.onCompile=function(){};qP.exports=Ci});var XP=U((xie,JP)=>{"use strict";var $l=2147483647,Ca=36,g1=1,ip=26,yJ=38,bJ=700,VP=72,UP=128,GP="-",EJ=/^xn--/,TJ=/[^\0-\x7E]/,_J=/[\x2E\u3002\uFF0E\uFF61]/g,SJ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m1=Ca-g1,Oa=Math.floor,y1=String.fromCharCode;function us(e){throw new RangeError(SJ[e])}function DJ(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function QP(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(_J,".");let a=e.split("."),o=DJ(a,t).join(".");return n+o}function KP(e){let t=[],r=0,n=e.length;for(;r=55296&&a<=56319&&rString.fromCodePoint(...e),CJ=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Ca},HP=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},zP=function(e,t,r){let n=0;for(e=r?Oa(e/bJ):e>>1,e+=Oa(e/t);e>m1*ip>>1;n+=Ca)e=Oa(e/m1);return Oa(n+(m1+1)*e/(e+yJ))},WP=function(e){let t=[],r=e.length,n=0,a=UP,o=VP,s=e.lastIndexOf(GP);s<0&&(s=0);for(let c=0;c=128&&us("not-basic"),t.push(e.charCodeAt(c));for(let c=s>0?s+1:0;c=r&&us("invalid-input");let b=CJ(e.charCodeAt(c++));(b>=Ca||b>Oa(($l-n)/m))&&us("overflow"),n+=b*m;let C=T<=o?g1:T>=o+ip?ip:T-o;if(bOa($l/L)&&us("overflow"),m*=L}let h=t.length+1;o=zP(n-d,h,d==0),Oa(n/h)>$l-a&&us("overflow"),a+=Oa(n/h),n%=h,t.splice(n++,0,a)}return String.fromCodePoint(...t)},YP=function(e){let t=[];e=KP(e);let r=e.length,n=UP,a=0,o=VP;for(let d of e)d<128&&t.push(y1(d));let s=t.length,c=s;for(s&&t.push(GP);c=n&&mOa(($l-a)/h)&&us("overflow"),a+=(d-n)*h,n=d;for(let m of e)if(m$l&&us("overflow"),m==n){let T=a;for(let b=Ca;;b+=Ca){let C=b<=o?g1:b>=o+ip?ip:b-o;if(T{"use strict";ZP.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var tj=U((Rie,ej)=>{"use strict";ej.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var nj=U((Fie,rj)=>{"use strict";rj.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var uj=U((Pie,oj)=>{"use strict";var ap=St(),AJ=qR(),LJ=VR(),xJ=dF(),IJ=YF(),RJ=xP(),FJ=BP(),ec=YS(),ij=XP(),PJ={default:$P(),zero:tj(),commonmark:nj()},jJ=/^(vbscript|javascript|file|data):/,MJ=/^data:image\/(gif|png|jpeg|webp);/;function qJ(e){var t=e.trim().toLowerCase();return jJ.test(t)?!!MJ.test(t):!0}var aj=["http:","https:","mailto:"];function BJ(e){var t=ec.parse(e,!0);if(t.hostname&&(!t.protocol||aj.indexOf(t.protocol)>=0))try{t.hostname=ij.toASCII(t.hostname)}catch(r){}return ec.encode(ec.format(t))}function VJ(e){var t=ec.parse(e,!0);if(t.hostname&&(!t.protocol||aj.indexOf(t.protocol)>=0))try{t.hostname=ij.toUnicode(t.hostname)}catch(r){}return ec.decode(ec.format(t))}function Oi(e,t){if(!(this instanceof Oi))return new Oi(e,t);t||ap.isString(e)||(t=e||{},e="default"),this.inline=new RJ,this.block=new IJ,this.core=new xJ,this.renderer=new LJ,this.linkify=new FJ,this.validateLink=qJ,this.normalizeLink=BJ,this.normalizeLinkText=VJ,this.utils=ap,this.helpers=ap.assign({},AJ),this.options={},this.configure(e),t&&this.set(t)}Oi.prototype.set=function(e){return ap.assign(this.options,e),this};Oi.prototype.configure=function(e){var t=this,r;if(ap.isString(e)&&(r=e,e=PJ[r],!e))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Oi.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Oi.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(a){r=r.concat(this[a].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(a){return r.indexOf(a)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Oi.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Oi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};Oi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Oi.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Oi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};oj.exports=Oi});var vm=U((jie,sj)=>{"use strict";sj.exports=uj()});var ct=U((b1,E1)=>{(function(e,t){typeof b1=="object"&&typeof E1!="undefined"?E1.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(b1,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=n||a||o,c=s&&(n?document.documentMode||6:+(o||a)[1]),d=!o&&/WebKit\//.test(e),h=d&&/Qt\/\d+\.\d+/.test(e),m=!o&&/Chrome\//.test(e),T=/Opera\//.test(e),b=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),L=/PhantomJS/.test(e),S=b&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),y=/Android/.test(e),_=S||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=S||/Mac/.test(t),k=/\bCrOS\b/.test(e),N=/win/i.test(t),w=T&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(T=!1,d=!0);var D=g&&(h||T&&(w==null||w<12.11)),F=r||s&&c>=9;function P(i){return new RegExp("(^|\\s)"+i+"(?:$|\\s)\\s*")}var B=function(i,u){var f=i.className,l=P(u).exec(f);if(l){var p=f.slice(l.index+l[0].length);i.className=f.slice(0,l.index)+(p?l[1]+p:"")}};function z(i){for(var u=i.childNodes.length;u>0;--u)i.removeChild(i.firstChild);return i}function G(i,u){return z(i).appendChild(u)}function M(i,u,f,l){var p=document.createElement(i);if(f&&(p.className=f),l&&(p.style.cssText=l),typeof u=="string")p.appendChild(document.createTextNode(u));else if(u)for(var v=0;v=u)return E+(u-v);E+=O-v,E+=f-E%f,v=O+1}}var vt=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};vt.prototype.onTimeout=function(i){i.id=0,i.time<=+new Date?i.f():setTimeout(i.handler,i.time-+new Date)},vt.prototype.set=function(i,u){this.f=u;var f=+new Date+i;(!this.id||f=u)return l+Math.min(E,u-p);if(p+=v-l,p+=f-p%f,l=v+1,p>=u)return l}}var Xr=[""];function pn(i){for(;Xr.length<=i;)Xr.push(ee(Xr)+" ");return Xr[i]}function ee(i){return i[i.length-1]}function De(i,u){for(var f=[],l=0;l"\x80"&&(i.toUpperCase()!=i.toLowerCase()||$e.test(i))}function rt(i,u){return u?u.source.indexOf("\\w")>-1&&We(i)?!0:u.test(i):We(i)}function li(i){for(var u in i)if(i.hasOwnProperty(u)&&i[u])return!1;return!0}var ao=/[\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 xa(i){return i.charCodeAt(0)>=768&&ao.test(i)}function Ia(i,u,f){for(;(f<0?u>0:uf?-1:1;;){if(u==f)return u;var p=(u+f)/2,v=l<0?Math.ceil(p):Math.floor(p);if(v==u)return i(v)?u:f;i(v)?f=v:u=v+l}}function cu(i,u,f,l){if(!i)return l(u,f,"ltr",0);for(var p=!1,v=0;vu||u==f&&E.to==u)&&(l(Math.max(E.from,u),Math.min(E.to,f),E.level==1?"rtl":"ltr",v),p=!0)}p||l(u,f,"ltr")}var te=null;function q(i,u,f){var l;te=null;for(var p=0;pu)return p;v.to==u&&(v.from!=v.to&&f=="before"?l=p:te=p),v.from==u&&(v.from!=v.to&&f!="before"?l=p:te=p)}return l!=null?l:te}var X=function(){var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(x){return x<=247?i.charAt(x):1424<=x&&x<=1524?"R":1536<=x&&x<=1785?u.charAt(x-1536):1774<=x&&x<=2220?"r":8192<=x&&x<=8203?"w":x==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,v=/[LRr]/,E=/[Lb1n]/,O=/[1n]/;function A(x,V,Q){this.level=x,this.from=V,this.to=Q}return function(x,V){var Q=V=="ltr"?"L":"R";if(x.length==0||V=="ltr"&&!l.test(x))return!1;for(var J=x.length,Y=[],re=0;re-1&&(l[u]=p.slice(0,v).concat(p.slice(v+1)))}}}function fe(i,u){var f=$(i,u);if(!!f.length)for(var l=Array.prototype.slice.call(arguments,2),p=0;p0}function nr(i){i.prototype.on=function(u,f){R(this,u,f)},i.prototype.off=function(u,f){ie(this,u,f)}}function Rt(i){i.preventDefault?i.preventDefault():i.returnValue=!1}function Ye(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0}function gr(i){return i.defaultPrevented!=null?i.defaultPrevented:i.returnValue==!1}function ci(i){Rt(i),Ye(i)}function Ri(i){return i.target||i.srcElement}function xp(i){var u=i.which;return u==null&&(i.button&1?u=1:i.button&2?u=3:i.button&4&&(u=2)),g&&i.ctrlKey&&u==1&&(u=3),u}var Ec=function(){if(s&&c<9)return!1;var i=M("div");return"draggable"in i||"dragDrop"in i}(),hn;function Ip(i){if(hn==null){var u=M("span","\u200B");G(i,M("span",[u,document.createTextNode("x")])),i.firstChild.offsetHeight!=0&&(hn=u.offsetWidth<=1&&u.offsetHeight>2&&!(s&&c<8))}var f=hn?M("span","\u200B"):M("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var Tc;function Zi(i){if(Tc!=null)return Tc;var u=G(i,document.createTextNode("A\u062EA")),f=ce(u,0,1).getBoundingClientRect(),l=ce(u,1,2).getBoundingClientRect();return z(i),!f||f.left==f.right?!1:Tc=l.right-f.right<3}var _c=` b`.split(/\n/).length!=3?function(i){for(var u=0,f=[],l=i.length;u<=l;){var p=i.indexOf(` `,u);p==-1&&(p=i.length);var v=i.slice(u,i.charAt(p-1)=="\r"?p-1:p),E=v.indexOf("\r");E!=-1?(f.push(v.slice(0,E)),u+=E+1):(f.push(v),u=p+1)}return f}:function(i){return i.split(/\r\n?|\n/)},Rp=window.getSelection?function(i){try{return i.selectionStart!=i.selectionEnd}catch(u){return!1}}:function(i){var u;try{u=i.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=i?!1:u.compareEndPoints("StartToEnd",u)!=0},Fp=function(){var i=M("div");return"oncopy"in i?!0:(i.setAttribute("oncopy","return;"),typeof i.oncopy=="function")}(),Sc=null;function oo(i){if(Sc!=null)return Sc;var u=G(i,M("span","x")),f=u.getBoundingClientRect(),l=ce(u,0,1).getBoundingClientRect();return Sc=Math.abs(f.left-l.left)>1}var fi={},Kn={};function Pp(i,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),fi[i]=u}function Ra(i,u){Kn[i]=u}function vs(i){if(typeof i=="string"&&Kn.hasOwnProperty(i))i=Kn[i];else if(i&&typeof i.name=="string"&&Kn.hasOwnProperty(i.name)){var u=Kn[i.name];typeof u=="string"&&(u={name:u}),i=je(u,i),i.name=u.name}else{if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(i))return vs("application/xml");if(typeof i=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(i))return vs("application/json")}return typeof i=="string"?{name:i}:i||{name:"null"}}function gs(i,u){u=vs(u);var f=fi[u.name];if(!f)return gs(i,"text/plain");var l=f(i,u);if(Fi.hasOwnProperty(u.name)){var p=Fi[u.name];for(var v in p)!p.hasOwnProperty(v)||(l.hasOwnProperty(v)&&(l["_"+v]=l[v]),l[v]=p[v])}if(l.name=u.name,u.helperType&&(l.helperType=u.helperType),u.modeProps)for(var E in u.modeProps)l[E]=u.modeProps[E];return l}var Fi={};function Pi(i,u){var f=Fi.hasOwnProperty(i)?Fi[i]:Fi[i]={};at(u,f)}function Hn(i,u){if(u===!0)return u;if(i.copyState)return i.copyState(u);var f={};for(var l in u){var p=u[l];p instanceof Array&&(p=p.concat([])),f[l]=p}return f}function Dc(i,u){for(var f;i.innerMode&&(f=i.innerMode(u),!(!f||f.mode==i));)u=f.state,i=f.mode;return f||{mode:i,state:u}}function kc(i,u,f){return i.startState?i.startState(u,f):!0}var $t=function(i,u,f){this.pos=this.start=0,this.string=i,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.posu},$t.prototype.eatSpace=function(){for(var i=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>i},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(i){var u=this.string.indexOf(i,this.pos);if(u>-1)return this.pos=u,!0},$t.prototype.backUp=function(i){this.pos-=i},$t.prototype.column=function(){return this.lastColumnPos0?null:(v&&u!==!1&&(this.pos+=v[0].length),v)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(i,u){this.lineStart+=i;try{return u()}finally{this.lineStart-=i}},$t.prototype.lookAhead=function(i){var u=this.lineOracle;return u&&u.lookAhead(i)},$t.prototype.baseToken=function(){var i=this.lineOracle;return i&&i.baseToken(this.pos)};function Ae(i,u){if(u-=i.first,u<0||u>=i.size)throw new Error("There is no line "+(u+i.first)+" in the document.");for(var f=i;!f.lines;)for(var l=0;;++l){var p=f.children[l],v=p.chunkSize();if(u=i.first&&uf?oe(f,Ae(i,f).text.length):Vr(u,Ae(i,u.line).text.length)}function Vr(i,u){var f=i.ch;return f==null||f>u?oe(i.line,u):f<0?oe(i.line,0):i}function zn(i,u){for(var f=[],l=0;lthis.maxLookAhead&&(this.maxLookAhead=i),u},ta.prototype.baseToken=function(i){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=i;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-i}},ta.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ta.fromSaved=function(i,u,f){return u instanceof ms?new ta(i,Hn(i.mode,u.state),f,u.lookAhead):new ta(i,Hn(i.mode,u),f)},ta.prototype.save=function(i){var u=i!==!1?Hn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ms(u,this.maxLookAhead):u};function jD(i,u,f,l){var p=[i.state.modeGen],v={};GD(i,u.text,i.doc.mode,f,function(x,V){return p.push(x,V)},v,l);for(var E=f.state,O=function(x){f.baseTokens=p;var V=i.state.overlays[x],Q=1,J=0;f.state=!0,GD(i,u.text,V.mode,f,function(Y,re){for(var ae=Q;JY&&p.splice(Q,1,Y,p[Q+1],le),Q+=2,J=Math.min(Y,le)}if(!!re)if(V.opaque)p.splice(ae,Q-ae,Y,"overlay "+re),Q=ae+2;else for(;aei.options.maxHighlightLength&&Hn(i.doc.mode,l.state),v=jD(i,u,l);p&&(l.state=p),u.stateAfter=l.save(!p),u.styles=v.styles,v.classes?u.styleClasses=v.classes:u.styleClasses&&(u.styleClasses=null),f===i.doc.highlightFrontier&&(i.doc.modeFrontier=Math.max(i.doc.modeFrontier,++i.doc.highlightFrontier))}return u.styles}function wc(i,u,f){var l=i.doc,p=i.display;if(!l.mode.startState)return new ta(l,!0,u);var v=r3(i,u,f),E=v>l.first&&Ae(l,v-1).stateAfter,O=E?ta.fromSaved(l,E,v):new ta(l,kc(l.mode),v);return l.iter(v,u,function(A){Xm(i,A.text,O);var x=O.line;A.stateAfter=x==u-1||x%5==0||x>=p.viewFrom&&xu.start)return v}throw new Error("Mode "+i.name+" failed to advance stream.")}var BD=function(i,u,f){this.start=i.start,this.end=i.pos,this.string=i.current(),this.type=u||null,this.state=f};function VD(i,u,f,l){var p=i.doc,v=p.mode,E;u=_e(p,u);var O=Ae(p,u.line),A=wc(i,u.line,f),x=new $t(O.text,i.options.tabSize,A),V;for(l&&(V=[]);(l||x.posi.options.maxHighlightLength?(O=!1,E&&Xm(i,u,l,V.pos),V.pos=u.length,Q=null):Q=UD(Zm(f,V,l.state,J),v),J){var Y=J[0].name;Y&&(Q="m-"+(Q?Y+" "+Q:Y))}if(!O||x!=Q){for(;AE;--O){if(O<=v.first)return v.first;var A=Ae(v,O-1),x=A.stateAfter;if(x&&(!f||O+(x instanceof ms?x.lookAhead:0)<=v.modeFrontier))return O;var V=st(A.text,null,i.options.tabSize);(p==null||l>V)&&(p=O-1,l=V)}return p}function n3(i,u){if(i.modeFrontier=Math.min(i.modeFrontier,u),!(i.highlightFrontierf;l--){var p=Ae(i,l).stateAfter;if(p&&(!(p instanceof ms)||l+p.lookAhead=u:v.to>u);(l||(l=[])).push(new jp(E,v.from,A?null:v.to))}}return l}function l3(i,u,f){var l;if(i)for(var p=0;p=u:v.to>u);if(O||v.from==u&&E.type=="bookmark"&&(!f||v.marker.insertLeft)){var A=v.from==null||(E.inclusiveLeft?v.from<=u:v.from0&&O)for(var Ce=0;Ce0)){var V=[A,1],Q=I(x.from,O.from),J=I(x.to,O.to);(Q<0||!E.inclusiveLeft&&!Q)&&V.push({from:x.from,to:O.from}),(J>0||!E.inclusiveRight&&!J)&&V.push({from:O.to,to:x.to}),p.splice.apply(p,V),A+=V.length-3}}return p}function HD(i){var u=i.markedSpans;if(!!u){for(var f=0;fu)&&(!l||ey(l,v.marker)<0)&&(l=v.marker)}return l}function JD(i,u,f,l,p){var v=Ae(i,u),E=Fa&&v.markedSpans;if(E)for(var O=0;O=0&&Q<=0||V<=0&&Q>=0)&&(V<=0&&(A.marker.inclusiveRight&&p.inclusiveLeft?I(x.to,f)>=0:I(x.to,f)>0)||V>=0&&(A.marker.inclusiveRight&&p.inclusiveLeft?I(x.from,l)<=0:I(x.from,l)<0)))return!0}}}function ra(i){for(var u;u=YD(i);)i=u.find(-1,!0).line;return i}function d3(i){for(var u;u=Bp(i);)i=u.find(1,!0).line;return i}function p3(i){for(var u,f;u=Bp(i);)i=u.find(1,!0).line,(f||(f=[])).push(i);return f}function ty(i,u){var f=Ae(i,u),l=ra(f);return f==l?u:gt(l)}function XD(i,u){if(u>i.lastLine())return u;var f=Ae(i,u),l;if(!uo(i,f))return u;for(;l=Bp(f);)f=l.find(1,!0).line;return gt(f)+1}function uo(i,u){var f=Fa&&u.markedSpans;if(f){for(var l=void 0,p=0;pu.maxLineLength&&(u.maxLineLength=p,u.maxLine=l)})}var ys=function(i,u,f){this.text=i,zD(this,u),this.height=f?f(this):1};ys.prototype.lineNo=function(){return gt(this)},nr(ys);function h3(i,u,f,l){i.text=u,i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null),i.order!=null&&(i.order=null),HD(i),zD(i,f);var p=l?l(i):1;p!=i.height&&An(i,p)}function v3(i){i.parent=null,HD(i)}var g3={},m3={};function ZD(i,u){if(!i||/^\s*$/.test(i))return null;var f=u.addModeClass?m3:g3;return f[i]||(f[i]=i.replace(/\S+/g,"cm-$&"))}function $D(i,u){var f=j("span",null,null,d?"padding-right: .1px":null),l={pre:j("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:i,trailingSpace:!1,splitSpaces:i.getOption("lineWrapping")};u.measure={};for(var p=0;p<=(u.rest?u.rest.length:0);p++){var v=p?u.rest[p-1]:u.line,E=void 0;l.pos=0,l.addToken=b3,Zi(i.display.measure)&&(E=Z(v,i.doc.direction))&&(l.addToken=T3(l.addToken,E)),l.map=[];var O=u!=i.display.externalMeasured&>(v);_3(v,l,MD(i,v,O)),v.styleClasses&&(v.styleClasses.bgClass&&(l.bgClass=Ne(v.styleClasses.bgClass,l.bgClass||"")),v.styleClasses.textClass&&(l.textClass=Ne(v.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ip(i.display.measure))),p==0?(u.measure.map=l.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(l.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var A=l.content.lastChild;(/\bcm-tab\b/.test(A.className)||A.querySelector&&A.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return fe(i,"renderLine",i,u.line,l.pre),l.pre.className&&(l.textClass=Ne(l.pre.className,l.textClass||"")),l}function y3(i){var u=M("span","\u2022","cm-invalidchar");return u.title="\\u"+i.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function b3(i,u,f,l,p,v,E){if(!!u){var O=i.splitSpaces?E3(u,i.trailingSpace):u,A=i.cm.state.specialChars,x=!1,V;if(!A.test(u))i.col+=u.length,V=document.createTextNode(O),i.map.push(i.pos,i.pos+u.length,V),s&&c<9&&(x=!0),i.pos+=u.length;else{V=document.createDocumentFragment();for(var Q=0;;){A.lastIndex=Q;var J=A.exec(u),Y=J?J.index-Q:u.length-Q;if(Y){var re=document.createTextNode(O.slice(Q,Q+Y));s&&c<9?V.appendChild(M("span",[re])):V.appendChild(re),i.map.push(i.pos,i.pos+Y,re),i.col+=Y,i.pos+=Y}if(!J)break;Q+=Y+1;var ae=void 0;if(J[0]==" "){var le=i.cm.options.tabSize,he=le-i.col%le;ae=V.appendChild(M("span",pn(he),"cm-tab")),ae.setAttribute("role","presentation"),ae.setAttribute("cm-text"," "),i.col+=he}else J[0]=="\r"||J[0]==` `?(ae=V.appendChild(M("span",J[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ae.setAttribute("cm-text",J[0]),i.col+=1):(ae=i.cm.options.specialCharPlaceholder(J[0]),ae.setAttribute("cm-text",J[0]),s&&c<9?V.appendChild(M("span",[ae])):V.appendChild(ae),i.col+=1);i.map.push(i.pos,i.pos+1,ae),i.pos++}}if(i.trailingSpace=O.charCodeAt(u.length-1)==32,f||l||p||x||v||E){var Se=f||"";l&&(Se+=l),p&&(Se+=p);var ve=M("span",[V],Se,v);if(E)for(var Ce in E)E.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&ve.setAttribute(Ce,E[Ce]);return i.content.appendChild(ve)}i.content.appendChild(V)}}function E3(i,u){if(i.length>1&&!/ /.test(i))return i;for(var f=u,l="",p=0;px&&Q.from<=x));J++);if(Q.to>=V)return i(f,l,p,v,E,O,A);i(f,l.slice(0,Q.to-x),p,v,null,O,A),v=null,l=l.slice(Q.to-x),x=Q.to}}}function ek(i,u,f,l){var p=!l&&f.widgetNode;p&&i.map.push(i.pos,i.pos+u,p),!l&&i.cm.display.input.needsContentAttribute&&(p||(p=i.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(i.cm.display.input.setUneditable(p),i.content.appendChild(p)),i.pos+=u,i.trailingSpace=!1}function _3(i,u,f){var l=i.markedSpans,p=i.text,v=0;if(!l){for(var E=1;EA||Je.collapsed&&Fe.to==A&&Fe.from==A)){if(Fe.to!=null&&Fe.to!=A&&Y>Fe.to&&(Y=Fe.to,ae=""),Je.className&&(re+=" "+Je.className),Je.css&&(J=(J?J+";":"")+Je.css),Je.startStyle&&Fe.from==A&&(le+=" "+Je.startStyle),Je.endStyle&&Fe.to==Y&&(Ce||(Ce=[])).push(Je.endStyle,Fe.to),Je.title&&((Se||(Se={})).title=Je.title),Je.attributes)for(var xt in Je.attributes)(Se||(Se={}))[xt]=Je.attributes[xt];Je.collapsed&&(!he||ey(he.marker,Je)<0)&&(he=Fe)}else Fe.from>A&&Y>Fe.from&&(Y=Fe.from)}if(Ce)for(var Dr=0;Dr=O)break;for(var xn=Math.min(O,Y);;){if(V){var mn=A+V.length;if(!he){var cr=mn>xn?V.slice(0,xn-A):V;u.addToken(u,cr,Q?Q+re:re,le,A+cr.length==Y?ae:"",J,Se)}if(mn>=xn){V=V.slice(xn-A),A=xn;break}A=mn,le=""}V=p.slice(v,v=f[x++]),Q=ZD(f[x++],u.cm.options)}}}function tk(i,u,f){this.line=u,this.rest=p3(u),this.size=this.rest?gt(ee(this.rest))-f+1:1,this.node=this.text=null,this.hidden=uo(i,u)}function Up(i,u,f){for(var l=[],p,v=u;v2&&v.push((A.bottom+x.top)/2-f.top)}}v.push(f.bottom-f.top)}}function sk(i,u,f){if(i.line==u)return{map:i.measure.map,cache:i.measure.cache};for(var l=0;lf)return{map:i.measure.maps[p],cache:i.measure.caches[p],before:!0}}function I3(i,u){u=ra(u);var f=gt(u),l=i.display.externalMeasured=new tk(i.doc,u,f);l.lineN=f;var p=l.built=$D(i,l);return l.text=p.pre,G(i.display.lineMeasure,p.pre),l}function lk(i,u,f,l){return ia(i,Es(i,u),f,l)}function uy(i,u){if(u>=i.display.viewFrom&&u=f.lineN&&uu)&&(v=A-O,p=v-1,u>=A&&(E="right")),p!=null){if(l=i[x+2],O==A&&f==(l.insertLeft?"left":"right")&&(E=f),f=="left"&&p==0)for(;x&&i[x-2]==i[x-3]&&i[x-1].insertLeft;)l=i[(x-=3)+2],E="left";if(f=="right"&&p==A-O)for(;x=0&&(f=i[p]).left==f.right;p--);return f}function F3(i,u,f,l){var p=fk(u.map,f,l),v=p.node,E=p.start,O=p.end,A=p.collapse,x;if(v.nodeType==3){for(var V=0;V<4;V++){for(;E&&xa(u.line.text.charAt(p.coverStart+E));)--E;for(;p.coverStart+O0&&(A=l="right");var Q;i.options.lineWrapping&&(Q=v.getClientRects()).length>1?x=Q[l=="right"?Q.length-1:0]:x=v.getBoundingClientRect()}if(s&&c<9&&!E&&(!x||!x.left&&!x.right)){var J=v.parentNode.getClientRects()[0];J?x={left:J.left,right:J.left+_s(i.display),top:J.top,bottom:J.bottom}:x=ck}for(var Y=x.top-u.rect.top,re=x.bottom-u.rect.top,ae=(Y+re)/2,le=u.view.measure.heights,he=0;he=l.text.length?(A=l.text.length,x="before"):A<=0&&(A=0,x="after"),!O)return E(x=="before"?A-1:A,x=="before");function V(re,ae,le){var he=O[ae],Se=he.level==1;return E(le?re-1:re,Se!=le)}var Q=q(O,A,x),J=te,Y=V(A,Q,x=="before");return J!=null&&(Y.other=V(A,J,x!="before")),Y}function mk(i,u){var f=0;u=_e(i.doc,u),i.options.lineWrapping||(f=_s(i.display)*u.ch);var l=Ae(i.doc,u.line),p=Pa(l)+Gp(i.display);return{left:f,right:f,top:p,bottom:p+l.height}}function ly(i,u,f,l,p){var v=oe(i,u,f);return v.xRel=p,l&&(v.outside=l),v}function cy(i,u,f){var l=i.doc;if(f+=i.display.viewOffset,f<0)return ly(l.first,0,null,-1,-1);var p=ea(l,f),v=l.first+l.size-1;if(p>v)return ly(l.first+l.size-1,Ae(l,v).text.length,null,1,1);u<0&&(u=0);for(var E=Ae(l,p);;){var O=j3(i,E,p,u,f),A=f3(E,O.ch+(O.xRel>0||O.outside>0?1:0));if(!A)return O;var x=A.find(1);if(x.line==p)return x;E=Ae(l,p=x.line)}}function yk(i,u,f,l){l-=sy(u);var p=u.text.length,v=Nn(function(E){return ia(i,f,E-1).bottom<=l},p,0);return p=Nn(function(E){return ia(i,f,E).top>l},v,p),{begin:v,end:p}}function bk(i,u,f,l){f||(f=Es(i,u));var p=Qp(i,u,ia(i,f,l),"line").top;return yk(i,u,f,p)}function fy(i,u,f,l){return i.bottom<=f?!1:i.top>f?!0:(l?i.left:i.right)>u}function j3(i,u,f,l,p){p-=Pa(u);var v=Es(i,u),E=sy(u),O=0,A=u.text.length,x=!0,V=Z(u,i.doc.direction);if(V){var Q=(i.options.lineWrapping?q3:M3)(i,u,f,v,V,l,p);x=Q.level!=1,O=x?Q.from:Q.to-1,A=x?Q.to:Q.from-1}var J=null,Y=null,re=Nn(function(Pe){var Fe=ia(i,v,Pe);return Fe.top+=E,Fe.bottom+=E,fy(Fe,l,p,!1)?(Fe.top<=p&&Fe.left<=l&&(J=Pe,Y=Fe),!0):!1},O,A),ae,le,he=!1;if(Y){var Se=l-Y.left=Ce.bottom?1:0}return re=Ia(u.text,re,1),ly(f,re,le,he,l-ae)}function M3(i,u,f,l,p,v,E){var O=Nn(function(Q){var J=p[Q],Y=J.level!=1;return fy(ji(i,oe(f,Y?J.to:J.from,Y?"before":"after"),"line",u,l),v,E,!0)},0,p.length-1),A=p[O];if(O>0){var x=A.level!=1,V=ji(i,oe(f,x?A.from:A.to,x?"after":"before"),"line",u,l);fy(V,v,E,!0)&&V.top>E&&(A=p[O-1])}return A}function q3(i,u,f,l,p,v,E){var O=yk(i,u,l,E),A=O.begin,x=O.end;/\s/.test(u.text.charAt(x-1))&&x--;for(var V=null,Q=null,J=0;J=x||Y.to<=A)){var re=Y.level!=1,ae=ia(i,l,re?Math.min(x,Y.to)-1:Math.max(A,Y.from)).right,le=aele)&&(V=Y,Q=le)}}return V||(V=p[p.length-1]),V.fromx&&(V={from:V.from,to:x,level:V.level}),V}var pu;function Ts(i){if(i.cachedTextHeight!=null)return i.cachedTextHeight;if(pu==null){pu=M("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)pu.appendChild(document.createTextNode("x")),pu.appendChild(M("br"));pu.appendChild(document.createTextNode("x"))}G(i.measure,pu);var f=pu.offsetHeight/50;return f>3&&(i.cachedTextHeight=f),z(i.measure),f||1}function _s(i){if(i.cachedCharWidth!=null)return i.cachedCharWidth;var u=M("span","xxxxxxxxxx"),f=M("pre",[u],"CodeMirror-line-like");G(i.measure,f);var l=u.getBoundingClientRect(),p=(l.right-l.left)/10;return p>2&&(i.cachedCharWidth=p),p||10}function dy(i){for(var u=i.display,f={},l={},p=u.gutters.clientLeft,v=u.gutters.firstChild,E=0;v;v=v.nextSibling,++E){var O=i.display.gutterSpecs[E].className;f[O]=v.offsetLeft+v.clientLeft+p,l[O]=v.clientWidth}return{fixedPos:py(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:f,gutterWidth:l,wrapperWidth:u.wrapper.clientWidth}}function py(i){return i.scroller.getBoundingClientRect().left-i.sizer.getBoundingClientRect().left}function Ek(i){var u=Ts(i.display),f=i.options.lineWrapping,l=f&&Math.max(5,i.display.scroller.clientWidth/_s(i.display)-3);return function(p){if(uo(i.doc,p))return 0;var v=0;if(p.widgets)for(var E=0;E0&&(x=Ae(i.doc,A.line).text).length==A.ch){var V=st(x,x.length,i.options.tabSize)-x.length;A=oe(A.line,Math.max(0,Math.round((v-uk(i.display).left)/_s(i.display))-V))}return A}function vu(i,u){if(u>=i.display.viewTo||(u-=i.display.viewFrom,u<0))return null;for(var f=i.display.view,l=0;lu)&&(p.updateLineNumbers=u),i.curOp.viewChanged=!0,u>=p.viewTo)Fa&&ty(i.doc,u)p.viewFrom?lo(i):(p.viewFrom+=l,p.viewTo+=l);else if(u<=p.viewFrom&&f>=p.viewTo)lo(i);else if(u<=p.viewFrom){var v=Hp(i,f,f+l,1);v?(p.view=p.view.slice(v.index),p.viewFrom=v.lineN,p.viewTo+=l):lo(i)}else if(f>=p.viewTo){var E=Hp(i,u,u,-1);E?(p.view=p.view.slice(0,E.index),p.viewTo=E.lineN):lo(i)}else{var O=Hp(i,u,u,-1),A=Hp(i,f,f+l,1);O&&A?(p.view=p.view.slice(0,O.index).concat(Up(i,O.lineN,A.lineN)).concat(p.view.slice(A.index)),p.viewTo+=l):lo(i)}var x=p.externalMeasured;x&&(f=p.lineN&&u=l.viewTo)){var v=l.view[vu(i,u)];if(v.node!=null){var E=v.changes||(v.changes=[]);Oe(E,f)==-1&&E.push(f)}}}function lo(i){i.display.viewFrom=i.display.viewTo=i.doc.first,i.display.view=[],i.display.viewOffset=0}function Hp(i,u,f,l){var p=vu(i,u),v,E=i.display.view;if(!Fa||f==i.doc.first+i.doc.size)return{index:p,lineN:f};for(var O=i.display.viewFrom,A=0;A0){if(p==E.length-1)return null;v=O+E[p].size-u,p++}else v=O-u;u+=v,f+=v}for(;ty(i.doc,f)!=f;){if(p==(l<0?0:E.length-1))return null;f+=l*E[p-(l<0?1:0)].size,p+=l}return{index:p,lineN:f}}function B3(i,u,f){var l=i.display,p=l.view;p.length==0||u>=l.viewTo||f<=l.viewFrom?(l.view=Up(i,u,f),l.viewFrom=u):(l.viewFrom>u?l.view=Up(i,u,l.viewFrom).concat(l.view):l.viewFromf&&(l.view=l.view.slice(0,vu(i,f)))),l.viewTo=f}function Tk(i){for(var u=i.display.view,f=0,l=0;l=i.display.viewTo||O.to().line0?u.blinker=setInterval(function(){i.hasFocus()||Ss(i),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},i.options.cursorBlinkRate):i.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function Dk(i){i.hasFocus()||(i.display.input.focus(),i.state.focused||my(i))}function gy(i){i.state.delayingBlurEvent=!0,setTimeout(function(){i.state.delayingBlurEvent&&(i.state.delayingBlurEvent=!1,i.state.focused&&Ss(i))},100)}function my(i,u){i.state.delayingBlurEvent&&!i.state.draggingText&&(i.state.delayingBlurEvent=!1),i.options.readOnly!="nocursor"&&(i.state.focused||(fe(i,"focus",i,u),i.state.focused=!0,we(i.display.wrapper,"CodeMirror-focused"),!i.curOp&&i.display.selForContextMenu!=i.doc.sel&&(i.display.input.reset(),d&&setTimeout(function(){return i.display.input.reset(!0)},20)),i.display.input.receivedFocus()),vy(i))}function Ss(i,u){i.state.delayingBlurEvent||(i.state.focused&&(fe(i,"blur",i,u),i.state.focused=!1,B(i.display.wrapper,"CodeMirror-focused")),clearInterval(i.display.blinker),setTimeout(function(){i.state.focused||(i.display.shift=!1)},150))}function Wp(i){for(var u=i.display,f=u.lineDiv.offsetTop,l=0;l.005||V<-.005)&&(An(p.line,E),kk(p.line),p.rest))for(var Q=0;Qi.display.sizerWidth){var J=Math.ceil(O/_s(i.display));J>i.display.maxLineLength&&(i.display.maxLineLength=J,i.display.maxLine=p.line,i.display.maxLineChanged=!0)}}}}function kk(i){if(i.widgets)for(var u=0;u=E&&(v=ea(u,Pa(Ae(u,A))-i.wrapper.clientHeight),E=A)}return{from:v,to:Math.max(E,v+1)}}function U3(i,u){if(!Qe(i,"scrollCursorIntoView")){var f=i.display,l=f.sizer.getBoundingClientRect(),p=null;if(u.top+l.top<0?p=!0:u.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(p=!1),p!=null&&!L){var v=M("div","\u200B",null,`position: absolute; top: `+(u.top-f.viewOffset-Gp(i.display))+`px; height: `+(u.bottom-u.top+na(i)+f.barHeight)+`px; left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");i.display.lineSpace.appendChild(v),v.scrollIntoView(p),i.display.lineSpace.removeChild(v)}}}function G3(i,u,f,l){l==null&&(l=0);var p;!i.options.lineWrapping&&u==f&&(f=u.sticky=="before"?oe(u.line,u.ch+1,"before"):u,u=u.ch?oe(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var v=0;v<5;v++){var E=!1,O=ji(i,u),A=!f||f==u?O:ji(i,f);p={left:Math.min(O.left,A.left),top:Math.min(O.top,A.top)-l,right:Math.max(O.left,A.left),bottom:Math.max(O.bottom,A.bottom)+l};var x=yy(i,p),V=i.doc.scrollTop,Q=i.doc.scrollLeft;if(x.scrollTop!=null&&(Pc(i,x.scrollTop),Math.abs(i.doc.scrollTop-V)>1&&(E=!0)),x.scrollLeft!=null&&(gu(i,x.scrollLeft),Math.abs(i.doc.scrollLeft-Q)>1&&(E=!0)),!E)break}return p}function Q3(i,u){var f=yy(i,u);f.scrollTop!=null&&Pc(i,f.scrollTop),f.scrollLeft!=null&&gu(i,f.scrollLeft)}function yy(i,u){var f=i.display,l=Ts(i.display);u.top<0&&(u.top=0);var p=i.curOp&&i.curOp.scrollTop!=null?i.curOp.scrollTop:f.scroller.scrollTop,v=oy(i),E={};u.bottom-u.top>v&&(u.bottom=u.top+v);var O=i.doc.height+ay(f),A=u.topO-l;if(u.topp+v){var V=Math.min(u.top,(x?O:u.bottom)-v);V!=p&&(E.scrollTop=V)}var Q=i.options.fixedGutter?0:f.gutters.offsetWidth,J=i.curOp&&i.curOp.scrollLeft!=null?i.curOp.scrollLeft:f.scroller.scrollLeft-Q,Y=du(i)-f.gutters.offsetWidth,re=u.right-u.left>Y;return re&&(u.right=u.left+Y),u.left<10?E.scrollLeft=0:u.leftY+J-3&&(E.scrollLeft=u.right+(re?0:10)-Y),E}function by(i,u){u!=null&&(Jp(i),i.curOp.scrollTop=(i.curOp.scrollTop==null?i.doc.scrollTop:i.curOp.scrollTop)+u)}function Ds(i){Jp(i);var u=i.getCursor();i.curOp.scrollToPos={from:u,to:u,margin:i.options.cursorScrollMargin}}function Fc(i,u,f){(u!=null||f!=null)&&Jp(i),u!=null&&(i.curOp.scrollLeft=u),f!=null&&(i.curOp.scrollTop=f)}function K3(i,u){Jp(i),i.curOp.scrollToPos=u}function Jp(i){var u=i.curOp.scrollToPos;if(u){i.curOp.scrollToPos=null;var f=mk(i,u.from),l=mk(i,u.to);Ck(i,f,l,u.margin)}}function Ck(i,u,f,l){var p=yy(i,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-l,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+l});Fc(i,p.scrollLeft,p.scrollTop)}function Pc(i,u){Math.abs(i.doc.scrollTop-u)<2||(r||Ty(i,{top:u}),Ok(i,u,!0),r&&Ty(i),qc(i,100))}function Ok(i,u,f){u=Math.max(0,Math.min(i.display.scroller.scrollHeight-i.display.scroller.clientHeight,u)),!(i.display.scroller.scrollTop==u&&!f)&&(i.doc.scrollTop=u,i.display.scrollbars.setScrollTop(u),i.display.scroller.scrollTop!=u&&(i.display.scroller.scrollTop=u))}function gu(i,u,f,l){u=Math.max(0,Math.min(u,i.display.scroller.scrollWidth-i.display.scroller.clientWidth)),!((f?u==i.doc.scrollLeft:Math.abs(i.doc.scrollLeft-u)<2)&&!l)&&(i.doc.scrollLeft=u,xk(i),i.display.scroller.scrollLeft!=u&&(i.display.scroller.scrollLeft=u),i.display.scrollbars.setScrollLeft(u))}function jc(i){var u=i.display,f=u.gutters.offsetWidth,l=Math.round(i.doc.height+ay(i.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:i.options.fixedGutter?f:0,docHeight:l,scrollHeight:l+na(i)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var mu=function(i,u,f){this.cm=f;var l=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=p.tabIndex=-1,i(l),i(p),R(l,"scroll",function(){l.clientHeight&&u(l.scrollTop,"vertical")}),R(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mu.prototype.update=function(i){var u=i.scrollWidth>i.clientWidth+1,f=i.scrollHeight>i.clientHeight+1,l=i.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?l+"px":"0";var p=i.viewHeight-(u?l:0);this.vert.firstChild.style.height=Math.max(0,i.scrollHeight-i.clientHeight+p)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=f?l+"px":"0",this.horiz.style.left=i.barLeft+"px";var v=i.viewWidth-i.barLeft-(f?l:0);this.horiz.firstChild.style.width=Math.max(0,i.scrollWidth-i.clientWidth+v)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&i.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:f?l:0,bottom:u?l:0}},mu.prototype.setScrollLeft=function(i){this.horiz.scrollLeft!=i&&(this.horiz.scrollLeft=i),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mu.prototype.setScrollTop=function(i){this.vert.scrollTop!=i&&(this.vert.scrollTop=i),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mu.prototype.zeroWidthHack=function(){var i=g&&!C?"12px":"18px";this.horiz.style.height=this.vert.style.width=i,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new vt,this.disableVert=new vt},mu.prototype.enableZeroWidthBar=function(i,u,f){i.style.pointerEvents="auto";function l(){var p=i.getBoundingClientRect(),v=f=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);v!=i?i.style.pointerEvents="none":u.set(1e3,l)}u.set(1e3,l)},mu.prototype.clear=function(){var i=this.horiz.parentNode;i.removeChild(this.horiz),i.removeChild(this.vert)};var Mc=function(){};Mc.prototype.update=function(){return{bottom:0,right:0}},Mc.prototype.setScrollLeft=function(){},Mc.prototype.setScrollTop=function(){},Mc.prototype.clear=function(){};function ks(i,u){u||(u=jc(i));var f=i.display.barWidth,l=i.display.barHeight;wk(i,u);for(var p=0;p<4&&f!=i.display.barWidth||l!=i.display.barHeight;p++)f!=i.display.barWidth&&i.options.lineWrapping&&Wp(i),wk(i,jc(i)),f=i.display.barWidth,l=i.display.barHeight}function wk(i,u){var f=i.display,l=f.scrollbars.update(u);f.sizer.style.paddingRight=(f.barWidth=l.right)+"px",f.sizer.style.paddingBottom=(f.barHeight=l.bottom)+"px",f.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(f.scrollbarFiller.style.display="block",f.scrollbarFiller.style.height=l.bottom+"px",f.scrollbarFiller.style.width=l.right+"px"):f.scrollbarFiller.style.display="",l.bottom&&i.options.coverGutterNextToScrollbar&&i.options.fixedGutter?(f.gutterFiller.style.display="block",f.gutterFiller.style.height=l.bottom+"px",f.gutterFiller.style.width=u.gutterWidth+"px"):f.gutterFiller.style.display=""}var Nk={native:mu,null:Mc};function Ak(i){i.display.scrollbars&&(i.display.scrollbars.clear(),i.display.scrollbars.addClass&&B(i.display.wrapper,i.display.scrollbars.addClass)),i.display.scrollbars=new Nk[i.options.scrollbarStyle](function(u){i.display.wrapper.insertBefore(u,i.display.scrollbarFiller),R(u,"mousedown",function(){i.state.focused&&setTimeout(function(){return i.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,f){f=="horizontal"?gu(i,u):Pc(i,u)},i),i.display.scrollbars.addClass&&we(i.display.wrapper,i.display.scrollbars.addClass)}var H3=0;function yu(i){i.curOp={cm:i,viewChanged:!1,startHeight:i.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:++H3,markArrays:null},S3(i.curOp)}function bu(i){var u=i.curOp;u&&k3(u,function(f){for(var l=0;l=f.viewTo)||f.maxLineChanged&&u.options.lineWrapping,i.update=i.mustUpdate&&new Xp(u,i.mustUpdate&&{top:i.scrollTop,ensure:i.scrollToPos},i.forceUpdate)}function Y3(i){i.updatedDisplay=i.mustUpdate&&Ey(i.cm,i.update)}function J3(i){var u=i.cm,f=u.display;i.updatedDisplay&&Wp(u),i.barMeasure=jc(u),f.maxLineChanged&&!u.options.lineWrapping&&(i.adjustWidthTo=lk(u,f.maxLine,f.maxLine.text.length).left+3,u.display.sizerWidth=i.adjustWidthTo,i.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+i.adjustWidthTo+na(u)+u.display.barWidth),i.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+i.adjustWidthTo-du(u))),(i.updatedDisplay||i.selectionChanged)&&(i.preparedSelection=f.input.prepareSelection())}function X3(i){var u=i.cm;i.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=i.adjustWidthTo+"px",i.maxScrollLeft=i.display.viewTo)){var f=+new Date+i.options.workTime,l=wc(i,u.highlightFrontier),p=[];u.iter(l.line,Math.min(u.first+u.size,i.display.viewTo+500),function(v){if(l.line>=i.display.viewFrom){var E=v.styles,O=v.text.length>i.options.maxHighlightLength?Hn(u.mode,l.state):null,A=jD(i,v,l,!0);O&&(l.state=O),v.styles=A.styles;var x=v.styleClasses,V=A.classes;V?v.styleClasses=V:x&&(v.styleClasses=null);for(var Q=!E||E.length!=v.styles.length||x!=V&&(!x||!V||x.bgClass!=V.bgClass||x.textClass!=V.textClass),J=0;!Q&&Jf)return qc(i,i.options.workDelay),!0}),u.highlightFrontier=l.line,u.modeFrontier=Math.max(u.modeFrontier,l.line),p.length&&Ln(i,function(){for(var v=0;v=f.viewFrom&&u.visible.to<=f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo)&&f.renderedView==f.view&&Tk(i)==0)return!1;Ik(i)&&(lo(i),u.dims=dy(i));var p=l.first+l.size,v=Math.max(u.visible.from-i.options.viewportMargin,l.first),E=Math.min(p,u.visible.to+i.options.viewportMargin);f.viewFromE&&f.viewTo-E<20&&(E=Math.min(p,f.viewTo)),Fa&&(v=ty(i.doc,v),E=XD(i.doc,E));var O=v!=f.viewFrom||E!=f.viewTo||f.lastWrapHeight!=u.wrapperHeight||f.lastWrapWidth!=u.wrapperWidth;B3(i,v,E),f.viewOffset=Pa(Ae(i.doc,f.viewFrom)),i.display.mover.style.top=f.viewOffset+"px";var A=Tk(i);if(!O&&A==0&&!u.force&&f.renderedView==f.view&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo))return!1;var x=tB(i);return A>4&&(f.lineDiv.style.display="none"),nB(i,f.updateLineNumbers,u.dims),A>4&&(f.lineDiv.style.display=""),f.renderedView=f.view,rB(x),z(f.cursorDiv),z(f.selectionDiv),f.gutters.style.height=f.sizer.style.minHeight=0,O&&(f.lastWrapHeight=u.wrapperHeight,f.lastWrapWidth=u.wrapperWidth,qc(i,400)),f.updateLineNumbers=null,!0}function Lk(i,u){for(var f=u.viewport,l=!0;;l=!1){if(!l||!i.options.lineWrapping||u.oldDisplayWidth==du(i)){if(f&&f.top!=null&&(f={top:Math.min(i.doc.height+ay(i.display)-oy(i),f.top)}),u.visible=Yp(i.display,i.doc,f),u.visible.from>=i.display.viewFrom&&u.visible.to<=i.display.viewTo)break}else l&&(u.visible=Yp(i.display,i.doc,f));if(!Ey(i,u))break;Wp(i);var p=jc(i);Rc(i),ks(i,p),Sy(i,p),u.force=!1}u.signal(i,"update",i),(i.display.viewFrom!=i.display.reportedViewFrom||i.display.viewTo!=i.display.reportedViewTo)&&(u.signal(i,"viewportChange",i,i.display.viewFrom,i.display.viewTo),i.display.reportedViewFrom=i.display.viewFrom,i.display.reportedViewTo=i.display.viewTo)}function Ty(i,u){var f=new Xp(i,u);if(Ey(i,f)){Wp(i),Lk(i,f);var l=jc(i);Rc(i),ks(i,l),Sy(i,l),f.finish()}}function nB(i,u,f){var l=i.display,p=i.options.lineNumbers,v=l.lineDiv,E=v.firstChild;function O(re){var ae=re.nextSibling;return d&&g&&i.display.currentWheelTarget==re?re.style.display="none":re.parentNode.removeChild(re),ae}for(var A=l.view,x=l.viewFrom,V=0;V-1&&(Y=!1),rk(i,Q,x,f)),Y&&(z(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(Oc(i.options,x)))),E=Q.node.nextSibling}x+=Q.size}for(;E;)E=O(E)}function _y(i){var u=i.gutters.offsetWidth;i.sizer.style.marginLeft=u+"px",Tr(i,"gutterChanged",i)}function Sy(i,u){i.display.sizer.style.minHeight=u.docHeight+"px",i.display.heightForcer.style.top=u.docHeight+"px",i.display.gutters.style.height=u.docHeight+i.display.barHeight+na(i)+"px"}function xk(i){var u=i.display,f=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!i.options.fixedGutter))){for(var l=py(u)-u.scroller.scrollLeft+i.doc.scrollLeft,p=u.gutters.offsetWidth,v=l+"px",E=0;EE.clientWidth,A=E.scrollHeight>E.clientHeight;if(!!(l&&O||p&&A)){if(p&&g&&d){e:for(var x=u.target,V=v.view;x!=E;x=x.parentNode)for(var Q=0;Q=0&&I(i,l.to())<=0)return f}return-1};var mt=function(i,u){this.anchor=i,this.head=u};mt.prototype.from=function(){return Be(this.anchor,this.head)},mt.prototype.to=function(){return se(this.anchor,this.head)},mt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Mi(i,u,f){var l=i&&i.options.selectionsMayTouch,p=u[f];u.sort(function(J,Y){return I(J.from(),Y.from())}),f=Oe(u,p);for(var v=1;v0:A>=0){var x=Be(O.from(),E.from()),V=se(O.to(),E.to()),Q=O.empty()?E.from()==E.head:O.from()==O.head;v<=f&&--f,u.splice(--v,2,new mt(Q?V:x,Q?x:V))}}return new Yn(u,f)}function co(i,u){return new Yn([new mt(i,u||i)],0)}function fo(i){return i.text?oe(i.from.line+i.text.length-1,ee(i.text).length+(i.text.length==1?i.from.ch:0)):i.to}function jk(i,u){if(I(i,u.from)<0)return i;if(I(i,u.to)<=0)return fo(u);var f=i.line+u.text.length-(u.to.line-u.from.line)-1,l=i.ch;return i.line==u.to.line&&(l+=fo(u).ch-u.to.ch),oe(f,l)}function ky(i,u){for(var f=[],l=0;l1&&i.remove(O.line+1,re-1),i.insert(O.line+1,he)}Tr(i,"change",i,u)}function po(i,u,f){function l(p,v,E){if(p.linked)for(var O=0;O1&&!i.done[i.done.length-2].ranges)return i.done.pop(),ee(i.done)}function Gk(i,u,f,l){var p=i.history;p.undone.length=0;var v=+new Date,E,O;if((p.lastOp==l||p.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&p.lastModTime>v-(i.cm?i.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(E=sB(p,p.lastOp==l)))O=ee(E.changes),I(u.from,u.to)==0&&I(u.from,O.to)==0?O.to=fo(u):E.changes.push(wy(i,u));else{var A=ee(p.done);for((!A||!A.ranges)&&eh(i.sel,p.done),E={changes:[wy(i,u)],generation:p.generation},p.done.push(E);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(f),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=v,p.lastOp=p.lastSelOp=l,p.lastOrigin=p.lastSelOrigin=u.origin,O||fe(i,"historyAdded")}function lB(i,u,f,l){var p=u.charAt(0);return p=="*"||p=="+"&&f.ranges.length==l.ranges.length&&f.somethingSelected()==l.somethingSelected()&&new Date-i.history.lastSelTime<=(i.cm?i.cm.options.historyEventDelay:500)}function cB(i,u,f,l){var p=i.history,v=l&&l.origin;f==p.lastSelOp||v&&p.lastSelOrigin==v&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==v||lB(i,v,ee(p.done),u))?p.done[p.done.length-1]=u:eh(u,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=v,p.lastSelOp=f,l&&l.clearRedo!==!1&&Uk(p.undone)}function eh(i,u){var f=ee(u);f&&f.ranges&&f.equals(i)||u.push(i)}function Qk(i,u,f,l){var p=u["spans_"+i.id],v=0;i.iter(Math.max(i.first,f),Math.min(i.first+i.size,l),function(E){E.markedSpans&&((p||(p=u["spans_"+i.id]={}))[v]=E.markedSpans),++v})}function fB(i){if(!i)return null;for(var u,f=0;f-1&&(ee(O)[Q]=x[Q],delete x[Q])}}return l}function Ny(i,u,f,l){if(l){var p=i.anchor;if(f){var v=I(u,p)<0;v!=I(f,p)<0?(p=u,u=f):v!=I(u,f)<0&&(u=f)}return new mt(p,u)}else return new mt(f||u,u)}function th(i,u,f,l,p){p==null&&(p=i.cm&&(i.cm.display.shift||i.extend)),Ur(i,new Yn([Ny(i.sel.primary(),u,f,p)],0),l)}function Hk(i,u,f){for(var l=[],p=i.cm&&(i.cm.display.shift||i.extend),v=0;v=u.ch:O.to>u.ch))){if(p&&(fe(A,"beforeCursorEnter"),A.explicitlyCleared))if(v.markedSpans){--E;continue}else break;if(!A.atomic)continue;if(f){var Q=A.find(l<0?1:-1),J=void 0;if((l<0?V:x)&&(Q=Zk(i,Q,-l,Q&&Q.line==u.line?v:null)),Q&&Q.line==u.line&&(J=I(Q,f))&&(l<0?J<0:J>0))return Os(i,Q,u,l,p)}var Y=A.find(l<0?-1:1);return(l<0?x:V)&&(Y=Zk(i,Y,l,Y.line==u.line?v:null)),Y?Os(i,Y,u,l,p):null}}return u}function nh(i,u,f,l,p){var v=l||1,E=Os(i,u,f,v,p)||!p&&Os(i,u,f,v,!0)||Os(i,u,f,-v,p)||!p&&Os(i,u,f,-v,!0);return E||(i.cantEdit=!0,oe(i.first,0))}function Zk(i,u,f,l){return f<0&&u.ch==0?u.line>i.first?_e(i,oe(u.line-1)):null:f>0&&u.ch==(l||Ae(i,u.line)).text.length?u.line=0;--p)tC(i,{from:l[p].from,to:l[p].to,text:p?[""]:u.text,origin:u.origin});else tC(i,u)}}function tC(i,u){if(!(u.text.length==1&&u.text[0]==""&&I(u.from,u.to)==0)){var f=ky(i,u);Gk(i,u,f,i.cm?i.cm.curOp.id:NaN),Uc(i,u,f,$m(i,u));var l=[];po(i,function(p,v){!v&&Oe(l,p.history)==-1&&(aC(p.history,u),l.push(p.history)),Uc(p,u,null,$m(p,u))})}}function ih(i,u,f){var l=i.cm&&i.cm.state.suppressEdits;if(!(l&&!f)){for(var p=i.history,v,E=i.sel,O=u=="undo"?p.done:p.undone,A=u=="undo"?p.undone:p.done,x=0;x=0;--Y){var re=J(Y);if(re)return re.v}}}}function rC(i,u){if(u!=0&&(i.first+=u,i.sel=new Yn(De(i.sel.ranges,function(p){return new mt(oe(p.anchor.line+u,p.anchor.ch),oe(p.head.line+u,p.head.ch))}),i.sel.primIndex),i.cm)){vn(i.cm,i.first,i.first-u,u);for(var f=i.cm.display,l=f.viewFrom;li.lastLine())){if(u.from.linev&&(u={from:u.from,to:oe(v,Ae(i,v).text.length),text:[u.text[0]],origin:u.origin}),u.removed=$i(i,u.from,u.to),f||(f=ky(i,u)),i.cm?hB(i.cm,u,l):Oy(i,u,l),rh(i,f,Ze),i.cantEdit&&nh(i,oe(i.firstLine(),0))&&(i.cantEdit=!1)}}function hB(i,u,f){var l=i.doc,p=i.display,v=u.from,E=u.to,O=!1,A=v.line;i.options.lineWrapping||(A=gt(ra(Ae(l,v.line))),l.iter(A,E.line+1,function(Y){if(Y==p.maxLine)return O=!0,!0})),l.sel.contains(u.from,u.to)>-1&&It(i),Oy(l,u,f,Ek(i)),i.options.lineWrapping||(l.iter(A,v.line+u.text.length,function(Y){var re=Vp(Y);re>p.maxLineLength&&(p.maxLine=Y,p.maxLineLength=re,p.maxLineChanged=!0,O=!1)}),O&&(i.curOp.updateMaxLine=!0)),n3(l,v.line),qc(i,400);var x=u.text.length-(E.line-v.line)-1;u.full?vn(i):v.line==E.line&&u.text.length==1&&!qk(i.doc,u)?so(i,v.line,"text"):vn(i,v.line,E.line+1,x);var V=Dt(i,"changes"),Q=Dt(i,"change");if(Q||V){var J={from:v,to:E,text:u.text,removed:u.removed,origin:u.origin};Q&&Tr(i,"change",i,J),V&&(i.curOp.changeObjs||(i.curOp.changeObjs=[])).push(J)}i.display.selForContextMenu=null}function Ns(i,u,f,l,p){var v;l||(l=f),I(l,f)<0&&(v=[l,f],f=v[0],l=v[1]),typeof u=="string"&&(u=i.splitLines(u)),ws(i,{from:f,to:l,text:u,origin:p})}function nC(i,u,f,l){f1||!(this.children[0]instanceof Qc))){var O=[];this.collapse(O),this.children=[new Qc(O)],this.children[0].parent=this}},collapse:function(i){for(var u=0;u50){for(var E=p.lines.length%25+25,O=E;O10);i.parent.maybeSpill()}},iterN:function(i,u,f){for(var l=0;li.display.maxLineLength&&(i.display.maxLine=x,i.display.maxLineLength=V,i.display.maxLineChanged=!0)}l!=null&&i&&this.collapsed&&vn(i,l,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,i&&Jk(i.doc)),i&&Tr(i,"markerCleared",i,this,l,p),u&&bu(i),this.parent&&this.parent.clear()}},ho.prototype.find=function(i,u){i==null&&this.type=="bookmark"&&(i=1);for(var f,l,p=0;p0||E==0&&v.clearWhenEmpty!==!1)return v;if(v.replacedWith&&(v.collapsed=!0,v.widgetNode=j("span",[v.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||v.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(v.widgetNode.insertLeft=!0)),v.collapsed){if(JD(i,u.line,u,f,v)||u.line!=f.line&&JD(i,f.line,u,f,v))throw new Error("Inserting collapsed marker partially overlapping an existing one");a3()}v.addToHistory&&Gk(i,{from:u,to:f,origin:"markText"},i.sel,NaN);var O=u.line,A=i.cm,x;if(i.iter(O,f.line+1,function(Q){A&&v.collapsed&&!A.options.lineWrapping&&ra(Q)==A.display.maxLine&&(x=!0),v.collapsed&&O!=u.line&&An(Q,0),u3(Q,new jp(v,O==u.line?u.ch:null,O==f.line?f.ch:null),i.cm&&i.cm.curOp),++O}),v.collapsed&&i.iter(u.line,f.line+1,function(Q){uo(i,Q)&&An(Q,0)}),v.clearOnEnter&&R(v,"beforeCursorEnter",function(){return v.clear()}),v.readOnly&&(i3(),(i.history.done.length||i.history.undone.length)&&i.clearHistory()),v.collapsed&&(v.id=++uC,v.atomic=!0),A){if(x&&(A.curOp.updateMaxLine=!0),v.collapsed)vn(A,u.line,f.line+1);else if(v.className||v.startStyle||v.endStyle||v.css||v.attributes||v.title)for(var V=u.line;V<=f.line;V++)so(A,V,"text");v.atomic&&Jk(A.doc),Tr(A,"markerAdded",A,v)}return v}var zc=function(i,u){this.markers=i,this.primary=u;for(var f=0;f=0;A--)ws(this,l[A]);O?Wk(this,O):this.cm&&Ds(this.cm)}),undo:Sr(function(){ih(this,"undo")}),redo:Sr(function(){ih(this,"redo")}),undoSelection:Sr(function(){ih(this,"undo",!0)}),redoSelection:Sr(function(){ih(this,"redo",!0)}),setExtending:function(i){this.extend=i},getExtending:function(){return this.extend},historySize:function(){for(var i=this.history,u=0,f=0,l=0;l=i.ch)&&u.push(p.marker.parent||p.marker)}return u},findMarks:function(i,u,f){i=_e(this,i),u=_e(this,u);var l=[],p=i.line;return this.iter(i.line,u.line+1,function(v){var E=v.markedSpans;if(E)for(var O=0;O=A.to||A.from==null&&p!=i.line||A.from!=null&&p==u.line&&A.from>=u.ch)&&(!f||f(A.marker))&&l.push(A.marker.parent||A.marker)}++p}),l},getAllMarks:function(){var i=[];return this.iter(function(u){var f=u.markedSpans;if(f)for(var l=0;li)return u=i,!0;i-=v,++f}),_e(this,oe(f,u))},indexFromPos:function(i){i=_e(this,i);var u=i.ch;if(i.lineu&&(u=i.from),i.to!=null&&i.to-1){u.state.draggingText(i),setTimeout(function(){return u.display.input.focus()},20);return}try{var V=i.dataTransfer.getData("Text");if(V){var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),rh(u.doc,co(f,f)),Q)for(var J=0;J=0;O--)Ns(i.doc,"",l[O].from,l[O].to,"+delete");Ds(i)})}function Ly(i,u,f){var l=Ia(i.text,u+f,f);return l<0||l>i.text.length?null:l}function xy(i,u,f){var l=Ly(i,u.ch,f);return l==null?null:new oe(u.line,l,f<0?"after":"before")}function Iy(i,u,f,l,p){if(i){u.doc.direction=="rtl"&&(p=-p);var v=Z(f,u.doc.direction);if(v){var E=p<0?ee(v):v[0],O=p<0==(E.level==1),A=O?"after":"before",x;if(E.level>0||u.doc.direction=="rtl"){var V=Es(u,f);x=p<0?f.text.length-1:0;var Q=ia(u,V,x).top;x=Nn(function(J){return ia(u,V,J).top==Q},p<0==(E.level==1)?E.from:E.to-1,x),A=="before"&&(x=Ly(f,x,1))}else x=p<0?E.to:E.from;return new oe(l,x,A)}}return new oe(l,p<0?f.text.length:0,p<0?"before":"after")}function wB(i,u,f,l){var p=Z(u,i.doc.direction);if(!p)return xy(u,f,l);f.ch>=u.text.length?(f.ch=u.text.length,f.sticky="before"):f.ch<=0&&(f.ch=0,f.sticky="after");var v=q(p,f.ch,f.sticky),E=p[v];if(i.doc.direction=="ltr"&&E.level%2==0&&(l>0?E.to>f.ch:E.from=E.from&&J>=V.begin)){var Y=Q?"before":"after";return new oe(f.line,J,Y)}}var re=function(he,Se,ve){for(var Ce=function(xt,Dr){return Dr?new oe(f.line,O(xt,1),"before"):new oe(f.line,xt,"after")};he>=0&&he0==(Pe.level!=1),Je=Fe?ve.begin:O(ve.end,-1);if(Pe.from<=Je&&Je0?V.end:O(V.begin,-1);return le!=null&&!(l>0&&le==u.text.length)&&(ae=re(l>0?0:p.length-1,l,x(le)),ae)?ae:null}var Jc={selectAll:$k,singleSelection:function(i){return i.setSelection(i.getCursor("anchor"),i.getCursor("head"),Ze)},killLine:function(i){return xs(i,function(u){if(u.empty()){var f=Ae(i.doc,u.head.line).text.length;return u.head.ch==f&&u.head.line0)p=new oe(p.line,p.ch+1),i.replaceRange(v.charAt(p.ch-1)+v.charAt(p.ch-2),oe(p.line,p.ch-2),p,"+transpose");else if(p.line>i.doc.first){var E=Ae(i.doc,p.line-1).text;E&&(p=new oe(p.line,1),i.replaceRange(v.charAt(0)+i.doc.lineSeparator()+E.charAt(E.length-1),oe(p.line-1,E.length-1),p,"+transpose"))}}f.push(new mt(p,p))}i.setSelections(f)})},newlineAndIndent:function(i){return Ln(i,function(){for(var u=i.listSelections(),f=u.length-1;f>=0;f--)i.replaceRange(i.doc.lineSeparator(),u[f].anchor,u[f].head,"+input");u=i.listSelections();for(var l=0;li&&I(u,this.pos)==0&&f==this.button};var Zc,$c;function FB(i,u){var f=+new Date;return $c&&$c.compare(f,i,u)?(Zc=$c=null,"triple"):Zc&&Zc.compare(f,i,u)?($c=new Fy(f,i,u),Zc=null,"double"):(Zc=new Fy(f,i,u),$c=null,"single")}function SC(i){var u=this,f=u.display;if(!(Qe(u,i)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=i.shiftKey,ja(f,i)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!Py(u,i)){var l=hu(u,i),p=xp(i),v=l?FB(l,p):"single";window.focus(),p==1&&u.state.selectingText&&u.state.selectingText(i),!(l&&PB(u,p,l,v,i))&&(p==1?l?MB(u,l,v,i):Ri(i)==f.scroller&&Rt(i):p==2?(l&&th(u.doc,l),setTimeout(function(){return f.input.focus()},20)):p==3&&(F?u.display.input.onContextMenu(i):gy(u)))}}}function PB(i,u,f,l,p){var v="Click";return l=="double"?v="Double"+v:l=="triple"&&(v="Triple"+v),v=(u==1?"Left":u==2?"Middle":"Right")+v,Xc(i,hC(v,p),p,function(E){if(typeof E=="string"&&(E=Jc[E]),!E)return!1;var O=!1;try{i.isReadOnly()&&(i.state.suppressEdits=!0),O=E(i,f)!=Ue}finally{i.state.suppressEdits=!1}return O})}function jB(i,u,f){var l=i.getOption("configureMouse"),p=l?l(i,u,f):{};if(p.unit==null){var v=k?f.shiftKey&&f.metaKey:f.altKey;p.unit=v?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(p.extend==null||i.doc.extend)&&(p.extend=i.doc.extend||f.shiftKey),p.addNew==null&&(p.addNew=g?f.metaKey:f.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(g?f.altKey:f.ctrlKey)),p}function MB(i,u,f,l){s?setTimeout(ht(Dk,i),0):i.curOp.focus=pe();var p=jB(i,f,l),v=i.doc.sel,E;i.options.dragDrop&&Ec&&!i.isReadOnly()&&f=="single"&&(E=v.contains(u))>-1&&(I((E=v.ranges[E]).from(),u)<0||u.xRel>0)&&(I(E.to(),u)>0||u.xRel<0)?qB(i,l,u,p):BB(i,l,u,p)}function qB(i,u,f,l){var p=i.display,v=!1,E=_r(i,function(x){d&&(p.scroller.draggable=!1),i.state.draggingText=!1,i.state.delayingBlurEvent&&(i.hasFocus()?i.state.delayingBlurEvent=!1:gy(i)),ie(p.wrapper.ownerDocument,"mouseup",E),ie(p.wrapper.ownerDocument,"mousemove",O),ie(p.scroller,"dragstart",A),ie(p.scroller,"drop",E),v||(Rt(x),l.addNew||th(i.doc,f,null,null,l.extend),d&&!b||s&&c==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),O=function(x){v=v||Math.abs(u.clientX-x.clientX)+Math.abs(u.clientY-x.clientY)>=10},A=function(){return v=!0};d&&(p.scroller.draggable=!0),i.state.draggingText=E,E.copy=!l.moveOnDrag,R(p.wrapper.ownerDocument,"mouseup",E),R(p.wrapper.ownerDocument,"mousemove",O),R(p.scroller,"dragstart",A),R(p.scroller,"drop",E),i.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function DC(i,u,f){if(f=="char")return new mt(u,u);if(f=="word")return i.findWordAt(u);if(f=="line")return new mt(oe(u.line,0),_e(i.doc,oe(u.line+1,0)));var l=f(i,u);return new mt(l.from,l.to)}function BB(i,u,f,l){s&&gy(i);var p=i.display,v=i.doc;Rt(u);var E,O,A=v.sel,x=A.ranges;if(l.addNew&&!l.extend?(O=v.sel.contains(f),O>-1?E=x[O]:E=new mt(f,f)):(E=v.sel.primary(),O=v.sel.primIndex),l.unit=="rectangle")l.addNew||(E=new mt(f,f)),f=hu(i,u,!0,!0),O=-1;else{var V=DC(i,f,l.unit);l.extend?E=Ny(E,V.anchor,V.head,l.extend):E=V}l.addNew?O==-1?(O=x.length,Ur(v,Mi(i,x.concat([E]),O),{scroll:!1,origin:"*mouse"})):x.length>1&&x[O].empty()&&l.unit=="char"&&!l.extend?(Ur(v,Mi(i,x.slice(0,O).concat(x.slice(O+1)),0),{scroll:!1,origin:"*mouse"}),A=v.sel):Ay(v,O,E,wn):(O=0,Ur(v,new Yn([E],0),wn),A=v.sel);var Q=f;function J(ve){if(I(Q,ve)!=0)if(Q=ve,l.unit=="rectangle"){for(var Ce=[],Pe=i.options.tabSize,Fe=st(Ae(v,f.line).text,f.ch,Pe),Je=st(Ae(v,ve.line).text,ve.ch,Pe),xt=Math.min(Fe,Je),Dr=Math.max(Fe,Je),Wt=Math.min(f.line,ve.line),xn=Math.min(i.lastLine(),Math.max(f.line,ve.line));Wt<=xn;Wt++){var mn=Ae(v,Wt).text,cr=Mt(mn,xt,Pe);xt==Dr?Ce.push(new mt(oe(Wt,cr),oe(Wt,cr))):mn.length>cr&&Ce.push(new mt(oe(Wt,cr),oe(Wt,Mt(mn,Dr,Pe))))}Ce.length||Ce.push(new mt(f,f)),Ur(v,Mi(i,A.ranges.slice(0,O).concat(Ce),O),{origin:"*mouse",scroll:!1}),i.scrollIntoView(ve)}else{var yn=E,Fr=DC(i,ve,l.unit),mr=yn.anchor,fr;I(Fr.anchor,mr)>0?(fr=Fr.head,mr=Be(yn.from(),Fr.anchor)):(fr=Fr.anchor,mr=se(yn.to(),Fr.head));var er=A.ranges.slice(0);er[O]=VB(i,new mt(_e(v,mr),fr)),Ur(v,Mi(i,er,O),wn)}}var Y=p.wrapper.getBoundingClientRect(),re=0;function ae(ve){var Ce=++re,Pe=hu(i,ve,!0,l.unit=="rectangle");if(!!Pe)if(I(Pe,Q)!=0){i.curOp.focus=pe(),J(Pe);var Fe=Yp(p,v);(Pe.line>=Fe.to||Pe.lineY.bottom?20:0;Je&&setTimeout(_r(i,function(){re==Ce&&(p.scroller.scrollTop+=Je,ae(ve))}),50)}}function le(ve){i.state.selectingText=!1,re=1/0,ve&&(Rt(ve),p.input.focus()),ie(p.wrapper.ownerDocument,"mousemove",he),ie(p.wrapper.ownerDocument,"mouseup",Se),v.history.lastSelOrigin=null}var he=_r(i,function(ve){ve.buttons===0||!xp(ve)?le(ve):ae(ve)}),Se=_r(i,le);i.state.selectingText=Se,R(p.wrapper.ownerDocument,"mousemove",he),R(p.wrapper.ownerDocument,"mouseup",Se)}function VB(i,u){var f=u.anchor,l=u.head,p=Ae(i.doc,f.line);if(I(f,l)==0&&f.sticky==l.sticky)return u;var v=Z(p);if(!v)return u;var E=q(v,f.ch,f.sticky),O=v[E];if(O.from!=f.ch&&O.to!=f.ch)return u;var A=E+(O.from==f.ch==(O.level!=1)?0:1);if(A==0||A==v.length)return u;var x;if(l.line!=f.line)x=(l.line-f.line)*(i.doc.direction=="ltr"?1:-1)>0;else{var V=q(v,l.ch,l.sticky),Q=V-E||(l.ch-f.ch)*(O.level==1?-1:1);V==A-1||V==A?x=Q<0:x=Q>0}var J=v[A+(x?-1:0)],Y=x==(J.level==1),re=Y?J.from:J.to,ae=Y?"after":"before";return f.ch==re&&f.sticky==ae?u:new mt(new oe(f.line,re,ae),l)}function kC(i,u,f,l){var p,v;if(u.touches)p=u.touches[0].clientX,v=u.touches[0].clientY;else try{p=u.clientX,v=u.clientY}catch(J){return!1}if(p>=Math.floor(i.display.gutters.getBoundingClientRect().right))return!1;l&&Rt(u);var E=i.display,O=E.lineDiv.getBoundingClientRect();if(v>O.bottom||!Dt(i,f))return gr(u);v-=O.top-E.viewOffset;for(var A=0;A=p){var V=ea(i.doc,v),Q=i.display.gutterSpecs[A];return fe(i,f,i,V,Q.className,u),gr(u)}}}function Py(i,u){return kC(i,u,"gutterClick",!0)}function CC(i,u){ja(i.display,u)||UB(i,u)||Qe(i,u,"contextmenu")||F||i.display.input.onContextMenu(u)}function UB(i,u){return Dt(i,"gutterContextMenu")?kC(i,u,"gutterContextMenu",!1):!1}function OC(i){i.display.wrapper.className=i.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+i.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ic(i)}var Is={toString:function(){return"CodeMirror.Init"}},wC={},sh={};function GB(i){var u=i.optionHandlers;function f(l,p,v,E){i.defaults[l]=p,v&&(u[l]=E?function(O,A,x){x!=Is&&v(O,A,x)}:v)}i.defineOption=f,i.Init=Is,f("value","",function(l,p){return l.setValue(p)},!0),f("mode",null,function(l,p){l.doc.modeOption=p,Cy(l)},!0),f("indentUnit",2,Cy,!0),f("indentWithTabs",!1),f("smartIndent",!0),f("tabSize",4,function(l){Vc(l),Ic(l),vn(l)},!0),f("lineSeparator",null,function(l,p){if(l.doc.lineSep=p,!!p){var v=[],E=l.doc.first;l.doc.iter(function(A){for(var x=0;;){var V=A.text.indexOf(p,x);if(V==-1)break;x=V+p.length,v.push(oe(E,V))}E++});for(var O=v.length-1;O>=0;O--)Ns(l.doc,p,v[O],oe(v[O].line,v[O].ch+p.length))}}),f("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,p,v){l.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),v!=Is&&l.refresh()}),f("specialCharPlaceholder",y3,function(l){return l.refresh()},!0),f("electricChars",!0),f("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),f("spellcheck",!1,function(l,p){return l.getInputField().spellcheck=p},!0),f("autocorrect",!1,function(l,p){return l.getInputField().autocorrect=p},!0),f("autocapitalize",!1,function(l,p){return l.getInputField().autocapitalize=p},!0),f("rtlMoveVisually",!N),f("wholeLineUpdateBefore",!0),f("theme","default",function(l){OC(l),Bc(l)},!0),f("keyMap","default",function(l,p,v){var E=oh(p),O=v!=Is&&oh(v);O&&O.detach&&O.detach(l,E),E.attach&&E.attach(l,O||null)}),f("extraKeys",null),f("configureMouse",null),f("lineWrapping",!1,KB,!0),f("gutters",[],function(l,p){l.display.gutterSpecs=Dy(p,l.options.lineNumbers),Bc(l)},!0),f("fixedGutter",!0,function(l,p){l.display.gutters.style.left=p?py(l.display)+"px":"0",l.refresh()},!0),f("coverGutterNextToScrollbar",!1,function(l){return ks(l)},!0),f("scrollbarStyle","native",function(l){Ak(l),ks(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),f("lineNumbers",!1,function(l,p){l.display.gutterSpecs=Dy(l.options.gutters,p),Bc(l)},!0),f("firstLineNumber",1,Bc,!0),f("lineNumberFormatter",function(l){return l},Bc,!0),f("showCursorWhenSelecting",!1,Rc,!0),f("resetSelectionOnContextMenu",!0),f("lineWiseCopyCut",!0),f("pasteLinesPerSelection",!0),f("selectionsMayTouch",!1),f("readOnly",!1,function(l,p){p=="nocursor"&&(Ss(l),l.display.input.blur()),l.display.input.readOnlyChanged(p)}),f("screenReaderLabel",null,function(l,p){p=p===""?null:p,l.display.input.screenReaderLabelChanged(p)}),f("disableInput",!1,function(l,p){p||l.display.input.reset()},!0),f("dragDrop",!0,QB),f("allowDropFileTypes",null),f("cursorBlinkRate",530),f("cursorScrollMargin",0),f("cursorHeight",1,Rc,!0),f("singleCursorHeightPerLine",!0,Rc,!0),f("workTime",100),f("workDelay",100),f("flattenSpans",!0,Vc,!0),f("addModeClass",!1,Vc,!0),f("pollInterval",100),f("undoDepth",200,function(l,p){return l.doc.history.undoDepth=p}),f("historyEventDelay",1250),f("viewportMargin",10,function(l){return l.refresh()},!0),f("maxHighlightLength",1e4,Vc,!0),f("moveInputWithCursor",!0,function(l,p){p||l.display.input.resetPosition()}),f("tabindex",null,function(l,p){return l.display.input.getField().tabIndex=p||""}),f("autofocus",null),f("direction","ltr",function(l,p){return l.doc.setDirection(p)},!0),f("phrases",null)}function QB(i,u,f){var l=f&&f!=Is;if(!u!=!l){var p=i.display.dragFunctions,v=u?R:ie;v(i.display.scroller,"dragstart",p.start),v(i.display.scroller,"dragenter",p.enter),v(i.display.scroller,"dragover",p.over),v(i.display.scroller,"dragleave",p.leave),v(i.display.scroller,"drop",p.drop)}}function KB(i){i.options.lineWrapping?(we(i.display.wrapper,"CodeMirror-wrap"),i.display.sizer.style.minWidth="",i.display.sizerWidth=null):(B(i.display.wrapper,"CodeMirror-wrap"),ny(i)),hy(i),vn(i),Ic(i),setTimeout(function(){return ks(i)},100)}function Gt(i,u){var f=this;if(!(this instanceof Gt))return new Gt(i,u);this.options=u=u?at(u):{},at(wC,u,!1);var l=u.value;typeof l=="string"?l=new gn(l,u.mode,null,u.lineSeparator,u.direction):u.mode&&(l.modeOption=u.mode),this.doc=l;var p=new Gt.inputStyles[u.inputStyle](this),v=this.display=new iB(i,l,p,u);v.wrapper.CodeMirror=this,OC(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ak(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 vt,keySeq:null,specialChars:null},u.autofocus&&!_&&v.input.focus(),s&&c<11&&setTimeout(function(){return f.display.input.reset(!0)},20),HB(this),SB(),yu(this),this.curOp.forceUpdate=!0,Bk(this,l),u.autofocus&&!_||this.hasFocus()?setTimeout(function(){f.hasFocus()&&!f.state.focused&&my(f)},20):Ss(this);for(var E in sh)sh.hasOwnProperty(E)&&sh[E](this,u[E],Is);Ik(this),u.finishInit&&u.finishInit(this);for(var O=0;O20*20}R(u.scroller,"touchstart",function(A){if(!Qe(i,A)&&!v(A)&&!Py(i,A)){u.input.ensurePolled(),clearTimeout(f);var x=+new Date;u.activeTouch={start:x,moved:!1,prev:x-l.end<=300?l:null},A.touches.length==1&&(u.activeTouch.left=A.touches[0].pageX,u.activeTouch.top=A.touches[0].pageY)}}),R(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),R(u.scroller,"touchend",function(A){var x=u.activeTouch;if(x&&!ja(u,A)&&x.left!=null&&!x.moved&&new Date-x.start<300){var V=i.coordsChar(u.activeTouch,"page"),Q;!x.prev||E(x,x.prev)?Q=new mt(V,V):!x.prev.prev||E(x,x.prev.prev)?Q=i.findWordAt(V):Q=new mt(oe(V.line,0),_e(i.doc,oe(V.line+1,0))),i.setSelection(Q.anchor,Q.head),i.focus(),Rt(A)}p()}),R(u.scroller,"touchcancel",p),R(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Pc(i,u.scroller.scrollTop),gu(i,u.scroller.scrollLeft,!0),fe(i,"scroll",i))}),R(u.scroller,"mousewheel",function(A){return Pk(i,A)}),R(u.scroller,"DOMMouseScroll",function(A){return Pk(i,A)}),R(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(A){Qe(i,A)||ci(A)},over:function(A){Qe(i,A)||(_B(i,A),ci(A))},start:function(A){return TB(i,A)},drop:_r(i,EB),leave:function(A){Qe(i,A)||cC(i)}};var O=u.input.getField();R(O,"keyup",function(A){return TC.call(i,A)}),R(O,"keydown",_r(i,EC)),R(O,"keypress",_r(i,_C)),R(O,"focus",function(A){return my(i,A)}),R(O,"blur",function(A){return Ss(i,A)})}var jy=[];Gt.defineInitHook=function(i){return jy.push(i)};function ef(i,u,f,l){var p=i.doc,v;f==null&&(f="add"),f=="smart"&&(p.mode.indent?v=wc(i,u).state:f="prev");var E=i.options.tabSize,O=Ae(p,u),A=st(O.text,null,E);O.stateAfter&&(O.stateAfter=null);var x=O.text.match(/^\s*/)[0],V;if(!l&&!/\S/.test(O.text))V=0,f="not";else if(f=="smart"&&(V=p.mode.indent(v,O.text.slice(x.length),O.text),V==Ue||V>150)){if(!l)return;f="prev"}f=="prev"?u>p.first?V=st(Ae(p,u-1).text,null,E):V=0:f=="add"?V=A+i.options.indentUnit:f=="subtract"?V=A-i.options.indentUnit:typeof f=="number"&&(V=A+f),V=Math.max(0,V);var Q="",J=0;if(i.options.indentWithTabs)for(var Y=Math.floor(V/E);Y;--Y)J+=E,Q+=" ";if(JE,A=_c(u),x=null;if(O&&l.ranges.length>1)if(qi&&qi.text.join(` `)==u){if(l.ranges.length%qi.text.length==0){x=[];for(var V=0;V=0;J--){var Y=l.ranges[J],re=Y.from(),ae=Y.to();Y.empty()&&(f&&f>0?re=oe(re.line,re.ch-f):i.state.overwrite&&!O?ae=oe(ae.line,Math.min(Ae(v,ae.line).text.length,ae.ch+ee(A).length)):O&&qi&&qi.lineWise&&qi.text.join(` `)==A.join(` `)&&(re=ae=oe(re.line,0)));var le={from:re,to:ae,text:x?x[J%x.length]:A,origin:p||(O?"paste":i.state.cutIncoming>E?"cut":"+input")};ws(i.doc,le),Tr(i,"inputRead",i,le)}u&&!O&&AC(i,u),Ds(i),i.curOp.updateInput<2&&(i.curOp.updateInput=Q),i.curOp.typing=!0,i.state.pasteIncoming=i.state.cutIncoming=-1}function NC(i,u){var f=i.clipboardData&&i.clipboardData.getData("Text");if(f)return i.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ln(u,function(){return My(u,f,0,null,"paste")}),!0}function AC(i,u){if(!(!i.options.electricChars||!i.options.smartIndent))for(var f=i.doc.sel,l=f.ranges.length-1;l>=0;l--){var p=f.ranges[l];if(!(p.head.ch>100||l&&f.ranges[l-1].head.line==p.head.line)){var v=i.getModeAt(p.head),E=!1;if(v.electricChars){for(var O=0;O-1){E=ef(i,p.head.line,"smart");break}}else v.electricInput&&v.electricInput.test(Ae(i.doc,p.head.line).text.slice(0,p.head.ch))&&(E=ef(i,p.head.line,"smart"));E&&Tr(i,"electricInput",i,p.head.line)}}}function LC(i){for(var u=[],f=[],l=0;lv&&(ef(this,O.head.line,l,!0),v=O.head.line,E==this.doc.sel.primIndex&&Ds(this));else{var A=O.from(),x=O.to(),V=Math.max(v,A.line);v=Math.min(this.lastLine(),x.line-(x.ch?0:1))+1;for(var Q=V;Q0&&Ay(this.doc,E,new mt(A,J[E].to()),Ze)}}}),getTokenAt:function(l,p){return VD(this,l,p)},getLineTokens:function(l,p){return VD(this,oe(l),p,!0)},getTokenTypeAt:function(l){l=_e(this.doc,l);var p=MD(this,Ae(this.doc,l.line)),v=0,E=(p.length-1)/2,O=l.ch,A;if(O==0)A=p[2];else for(;;){var x=v+E>>1;if((x?p[x*2-1]:0)>=O)E=x;else if(p[x*2+1]A&&(l=A,E=!0),O=Ae(this.doc,l)}else O=l;return Qp(this,O,{top:0,left:0},p||"page",v||E).top+(E?this.doc.height-Pa(O):0)},defaultTextHeight:function(){return Ts(this.display)},defaultCharWidth:function(){return _s(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,p,v,E,O){var A=this.display;l=ji(this,_e(this.doc,l));var x=l.bottom,V=l.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),A.sizer.appendChild(p),E=="over")x=l.top;else if(E=="above"||E=="near"){var Q=Math.max(A.wrapper.clientHeight,this.doc.height),J=Math.max(A.sizer.clientWidth,A.lineSpace.clientWidth);(E=="above"||l.bottom+p.offsetHeight>Q)&&l.top>p.offsetHeight?x=l.top-p.offsetHeight:l.bottom+p.offsetHeight<=Q&&(x=l.bottom),V+p.offsetWidth>J&&(V=J-p.offsetWidth)}p.style.top=x+"px",p.style.left=p.style.right="",O=="right"?(V=A.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(O=="left"?V=0:O=="middle"&&(V=(A.sizer.clientWidth-p.offsetWidth)/2),p.style.left=V+"px"),v&&Q3(this,{left:V,top:x,right:V+p.offsetWidth,bottom:x+p.offsetHeight})},triggerOnKeyDown:Zr(EC),triggerOnKeyPress:Zr(_C),triggerOnKeyUp:TC,triggerOnMouseDown:Zr(SC),execCommand:function(l){if(Jc.hasOwnProperty(l))return Jc[l].call(null,this)},triggerElectric:Zr(function(l){AC(this,l)}),findPosH:function(l,p,v,E){var O=1;p<0&&(O=-1,p=-p);for(var A=_e(this.doc,l),x=0;x0&&V(v.charAt(E-1));)--E;for(;O.5||this.options.lineWrapping)&&hy(this),fe(this,"refresh",this)}),swapDoc:Zr(function(l){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Bk(this,l),Ic(this),this.display.input.reset(),Fc(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,p),p}),phrase:function(l){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,l)?p[l]:l},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}},nr(i),i.registerHelper=function(l,p,v){f.hasOwnProperty(l)||(f[l]=i[l]={_global:[]}),f[l][p]=v},i.registerGlobalHelper=function(l,p,v,E){i.registerHelper(l,p,E),f[l]._global.push({pred:v,val:E})}}function qy(i,u,f,l,p){var v=u,E=f,O=Ae(i,u.line),A=p&&i.direction=="rtl"?-f:f;function x(){var Se=u.line+A;return Se=i.first+i.size?!1:(u=new oe(Se,u.ch,u.sticky),O=Ae(i,Se))}function V(Se){var ve;if(l=="codepoint"){var Ce=O.text.charCodeAt(u.ch+(f>0?0:-1));if(isNaN(Ce))ve=null;else{var Pe=f>0?Ce>=55296&&Ce<56320:Ce>=56320&&Ce<57343;ve=new oe(u.line,Math.max(0,Math.min(O.text.length,u.ch+f*(Pe?2:1))),-f)}}else p?ve=wB(i.cm,O,u,f):ve=xy(O,u,f);if(ve==null)if(!Se&&x())u=Iy(p,i.cm,O,u.line,A);else return!1;else u=ve;return!0}if(l=="char"||l=="codepoint")V();else if(l=="column")V(!0);else if(l=="word"||l=="group")for(var Q=null,J=l=="group",Y=i.cm&&i.cm.getHelper(u,"wordChars"),re=!0;!(f<0&&!V(!re));re=!1){var ae=O.text.charAt(u.ch)||` `,le=rt(ae,Y)?"w":J&&ae==` `?"n":!J||/\s/.test(ae)?null:"p";if(J&&!re&&!le&&(le="s"),Q&&Q!=le){f<0&&(f=1,V(),u.sticky="after");break}if(le&&(Q=le),f>0&&!V(!re))break}var he=nh(i,u,v,E,!0);return K(v,he)&&(he.hitSide=!0),he}function RC(i,u,f,l){var p=i.doc,v=u.left,E;if(l=="page"){var O=Math.min(i.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),A=Math.max(O-.5*Ts(i.display),3);E=(f>0?u.bottom:u.top)+f*A}else l=="line"&&(E=f>0?u.bottom+3:u.top-3);for(var x;x=cy(i,v,E),!!x.outside;){if(f<0?E<=0:E>=p.height){x.hitSide=!0;break}E+=f*5}return x}var kt=function(i){this.cm=i,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new vt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};kt.prototype.init=function(i){var u=this,f=this,l=f.cm,p=f.div=i.lineDiv;p.contentEditable=!0,xC(p,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function v(O){for(var A=O.target;A;A=A.parentNode){if(A==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(A.className))break}return!1}R(p,"paste",function(O){!v(O)||Qe(l,O)||NC(O,l)||c<=11&&setTimeout(_r(l,function(){return u.updateFromDOM()}),20)}),R(p,"compositionstart",function(O){u.composing={data:O.data,done:!1}}),R(p,"compositionupdate",function(O){u.composing||(u.composing={data:O.data,done:!1})}),R(p,"compositionend",function(O){u.composing&&(O.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),R(p,"touchstart",function(){return f.forceCompositionEnd()}),R(p,"input",function(){u.composing||u.readFromDOMSoon()});function E(O){if(!(!v(O)||Qe(l,O))){if(l.somethingSelected())lh({lineWise:!1,text:l.getSelections()}),O.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var A=LC(l);lh({lineWise:!0,text:A.text}),O.type=="cut"&&l.operation(function(){l.setSelections(A.ranges,0,Ze),l.replaceSelection("",null,"cut")})}else return;if(O.clipboardData){O.clipboardData.clearData();var x=qi.text.join(` `);if(O.clipboardData.setData("Text",x),O.clipboardData.getData("Text")==x){O.preventDefault();return}}var V=IC(),Q=V.firstChild;l.display.lineSpace.insertBefore(V,l.display.lineSpace.firstChild),Q.value=qi.text.join(` `);var J=pe();qe(Q),setTimeout(function(){l.display.lineSpace.removeChild(V),J.focus(),J==p&&f.showPrimarySelection()},50)}}R(p,"copy",E),R(p,"cut",E)},kt.prototype.screenReaderLabelChanged=function(i){i?this.div.setAttribute("aria-label",i):this.div.removeAttribute("aria-label")},kt.prototype.prepareSelection=function(){var i=_k(this.cm,!1);return i.focus=pe()==this.div,i},kt.prototype.showSelection=function(i,u){!i||!this.cm.display.view.length||((i.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(i))},kt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},kt.prototype.showPrimarySelection=function(){var i=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),l=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||l.line>=u.display.viewTo||p.line=u.display.viewFrom&&FC(u,l)||{node:O[0].measure.map[2],offset:0},x=p.linei.firstLine()&&(l=oe(l.line-1,Ae(i.doc,l.line-1).length)),p.ch==Ae(i.doc,p.line).text.length&&p.lineu.viewTo-1)return!1;var v,E,O;l.line==u.viewFrom||(v=vu(i,l.line))==0?(E=gt(u.view[0].line),O=u.view[0].node):(E=gt(u.view[v].line),O=u.view[v-1].node.nextSibling);var A=vu(i,p.line),x,V;if(A==u.view.length-1?(x=u.viewTo-1,V=u.lineDiv.lastChild):(x=gt(u.view[A+1].line)-1,V=u.view[A+1].node.previousSibling),!O)return!1;for(var Q=i.doc.splitLines(YB(i,O,V,E,x)),J=$i(i.doc,oe(E,0),oe(x,Ae(i.doc,x).text.length));Q.length>1&&J.length>1;)if(ee(Q)==ee(J))Q.pop(),J.pop(),x--;else if(Q[0]==J[0])Q.shift(),J.shift(),E++;else break;for(var Y=0,re=0,ae=Q[0],le=J[0],he=Math.min(ae.length,le.length);Yl.ch&&Se.charCodeAt(Se.length-re-1)==ve.charCodeAt(ve.length-re-1);)Y--,re++;Q[Q.length-1]=Se.slice(0,Se.length-re).replace(/^\u200b+/,""),Q[0]=Q[0].slice(Y).replace(/\u200b+$/,"");var Pe=oe(E,Y),Fe=oe(x,J.length?ee(J).length-re:0);if(Q.length>1||Q[0]||I(Pe,Fe))return Ns(i.doc,Q,Pe,Fe,"+input"),!0},kt.prototype.ensurePolled=function(){this.forceCompositionEnd()},kt.prototype.reset=function(){this.forceCompositionEnd()},kt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},kt.prototype.readFromDOMSoon=function(){var i=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(i.readDOMTimeout=null,i.composing)if(i.composing.done)i.composing=null;else return;i.updateFromDOM()},80))},kt.prototype.updateFromDOM=function(){var i=this;(this.cm.isReadOnly()||!this.pollContent())&&Ln(this.cm,function(){return vn(i.cm)})},kt.prototype.setUneditable=function(i){i.contentEditable="false"},kt.prototype.onKeyPress=function(i){i.charCode==0||this.composing||(i.preventDefault(),this.cm.isReadOnly()||_r(this.cm,My)(this.cm,String.fromCharCode(i.charCode==null?i.keyCode:i.charCode),0))},kt.prototype.readOnlyChanged=function(i){this.div.contentEditable=String(i!="nocursor")},kt.prototype.onContextMenu=function(){},kt.prototype.resetPosition=function(){},kt.prototype.needsContentAttribute=!0;function FC(i,u){var f=uy(i,u.line);if(!f||f.hidden)return null;var l=Ae(i.doc,u.line),p=sk(f,l,u.line),v=Z(l,i.doc.direction),E="left";if(v){var O=q(v,u.ch);E=O%2?"right":"left"}var A=fk(p.map,u.ch,E);return A.offset=A.collapse=="right"?A.end:A.start,A}function WB(i){for(var u=i;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function Rs(i,u){return u&&(i.bad=!0),i}function YB(i,u,f,l,p){var v="",E=!1,O=i.doc.lineSeparator(),A=!1;function x(Y){return function(re){return re.id==Y}}function V(){E&&(v+=O,A&&(v+=O),E=A=!1)}function Q(Y){Y&&(V(),v+=Y)}function J(Y){if(Y.nodeType==1){var re=Y.getAttribute("cm-text");if(re){Q(re);return}var ae=Y.getAttribute("cm-marker"),le;if(ae){var he=i.findMarks(oe(l,0),oe(p+1,0),x(+ae));he.length&&(le=he[0].find(0))&&Q($i(i.doc,le.from,le.to).join(O));return}if(Y.getAttribute("contenteditable")=="false")return;var Se=/^(pre|div|p|li|table|br)$/i.test(Y.nodeName);if(!/^br$/i.test(Y.nodeName)&&Y.textContent.length==0)return;Se&&V();for(var ve=0;ve=9&&u.hasSelection&&(u.hasSelection=null),f.poll()}),R(p,"paste",function(E){Qe(l,E)||NC(E,l)||(l.state.pasteIncoming=+new Date,f.fastPoll())});function v(E){if(!Qe(l,E)){if(l.somethingSelected())lh({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var O=LC(l);lh({lineWise:!0,text:O.text}),E.type=="cut"?l.setSelections(O.ranges,null,Ze):(f.prevInput="",p.value=O.text.join(` `),qe(p))}else return;E.type=="cut"&&(l.state.cutIncoming=+new Date)}}R(p,"cut",v),R(p,"copy",v),R(i.scroller,"paste",function(E){if(!(ja(i,E)||Qe(l,E))){if(!p.dispatchEvent){l.state.pasteIncoming=+new Date,f.focus();return}var O=new Event("paste");O.clipboardData=E.clipboardData,p.dispatchEvent(O)}}),R(i.lineSpace,"selectstart",function(E){ja(i,E)||Rt(E)}),R(p,"compositionstart",function(){var E=l.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:E,range:l.markText(E,l.getCursor("to"),{className:"CodeMirror-composing"})}}),R(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},ir.prototype.createField=function(i){this.wrapper=IC(),this.textarea=this.wrapper.firstChild},ir.prototype.screenReaderLabelChanged=function(i){i?this.textarea.setAttribute("aria-label",i):this.textarea.removeAttribute("aria-label")},ir.prototype.prepareSelection=function(){var i=this.cm,u=i.display,f=i.doc,l=_k(i);if(i.options.moveInputWithCursor){var p=ji(i,f.sel.primary().head,"div"),v=u.wrapper.getBoundingClientRect(),E=u.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+E.top-v.top)),l.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+E.left-v.left))}return l},ir.prototype.showSelection=function(i){var u=this.cm,f=u.display;G(f.cursorDiv,i.cursors),G(f.selectionDiv,i.selection),i.teTop!=null&&(this.wrapper.style.top=i.teTop+"px",this.wrapper.style.left=i.teLeft+"px")},ir.prototype.reset=function(i){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&qe(this.textarea),s&&c>=9&&(this.hasSelection=f)}else i||(this.prevInput=this.textarea.value="",s&&c>=9&&(this.hasSelection=null))}},ir.prototype.getField=function(){return this.textarea},ir.prototype.supportsTouch=function(){return!1},ir.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||pe()!=this.textarea))try{this.textarea.focus()}catch(i){}},ir.prototype.blur=function(){this.textarea.blur()},ir.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ir.prototype.receivedFocus=function(){this.slowPoll()},ir.prototype.slowPoll=function(){var i=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){i.poll(),i.cm.state.focused&&i.slowPoll()})},ir.prototype.fastPoll=function(){var i=!1,u=this;u.pollingFast=!0;function f(){var l=u.poll();!l&&!i?(i=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},ir.prototype.poll=function(){var i=this,u=this.cm,f=this.textarea,l=this.prevInput;if(this.contextMenuPending||!u.state.focused||Rp(f)&&!l&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==l&&!u.somethingSelected())return!1;if(s&&c>=9&&this.hasSelection===p||g&&/[\uf700-\uf7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var v=p.charCodeAt(0);if(v==8203&&!l&&(l="\u200B"),v==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,O=Math.min(l.length,p.length);E1e3||p.indexOf(` `)>-1?f.value=i.prevInput="":i.prevInput=p,i.composing&&(i.composing.range.clear(),i.composing.range=u.markText(i.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ir.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ir.prototype.onKeyPress=function(){s&&c>=9&&(this.hasSelection=null),this.fastPoll()},ir.prototype.onContextMenu=function(i){var u=this,f=u.cm,l=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var v=hu(f,i),E=l.scroller.scrollTop;if(!v||T)return;var O=f.options.resetSelectionOnContextMenu;O&&f.doc.sel.contains(v)==-1&&_r(f,Ur)(f.doc,co(v),Ze);var A=p.style.cssText,x=u.wrapper.style.cssText,V=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(i.clientY-V.top-5)+"px; left: "+(i.clientX-V.left-5)+`px; z-index: 1000; background: `+(s?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;d&&(Q=window.scrollY),l.input.focus(),d&&window.scrollTo(null,Q),l.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=Y,l.selForContextMenu=f.doc.sel,clearTimeout(l.detectingSelectAll);function J(){if(p.selectionStart!=null){var ae=f.somethingSelected(),le="\u200B"+(ae?p.value:"");p.value="\u21DA",p.value=le,u.prevInput=ae?"":"\u200B",p.selectionStart=1,p.selectionEnd=le.length,l.selForContextMenu=f.doc.sel}}function Y(){if(u.contextMenuPending==Y&&(u.contextMenuPending=!1,u.wrapper.style.cssText=x,p.style.cssText=A,s&&c<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=E),p.selectionStart!=null)){(!s||s&&c<9)&&J();var ae=0,le=function(){l.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput=="\u200B"?_r(f,$k)(f):ae++<10?l.detectingSelectAll=setTimeout(le,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(le,200)}}if(s&&c>=9&&J(),F){ci(i);var re=function(){ie(window,"mouseup",re),setTimeout(Y,20)};R(window,"mouseup",re)}else setTimeout(Y,50)},ir.prototype.readOnlyChanged=function(i){i||this.reset(),this.textarea.disabled=i=="nocursor",this.textarea.readOnly=!!i},ir.prototype.setUneditable=function(){},ir.prototype.needsContentAttribute=!1;function XB(i,u){if(u=u?at(u):{},u.value=i.value,!u.tabindex&&i.tabIndex&&(u.tabindex=i.tabIndex),!u.placeholder&&i.placeholder&&(u.placeholder=i.placeholder),u.autofocus==null){var f=pe();u.autofocus=f==i||i.getAttribute("autofocus")!=null&&f==document.body}function l(){i.value=O.getValue()}var p;if(i.form&&(R(i.form,"submit",l),!u.leaveSubmitMethodAlone)){var v=i.form;p=v.submit;try{var E=v.submit=function(){l(),v.submit=p,v.submit(),v.submit=E}}catch(A){}}u.finishInit=function(A){A.save=l,A.getTextArea=function(){return i},A.toTextArea=function(){A.toTextArea=isNaN,l(),i.parentNode.removeChild(A.getWrapperElement()),i.style.display="",i.form&&(ie(i.form,"submit",l),!u.leaveSubmitMethodAlone&&typeof i.form.submit=="function"&&(i.form.submit=p))}},i.style.display="none";var O=Gt(function(A){return i.parentNode.insertBefore(A,i.nextSibling)},u);return O}function ZB(i){i.off=ie,i.on=R,i.wheelEventPixels=aB,i.Doc=gn,i.splitLines=_c,i.countColumn=st,i.findColumn=Mt,i.isWordChar=We,i.Pass=Ue,i.signal=fe,i.Line=ys,i.changeEnd=fo,i.scrollbarModel=Nk,i.Pos=oe,i.cmpPos=I,i.modes=fi,i.mimeModes=Kn,i.resolveMode=vs,i.getMode=gs,i.modeExtensions=Fi,i.extendMode=Pi,i.copyState=Hn,i.startState=kc,i.innerMode=Dc,i.commands=Jc,i.keyMap=Ma,i.keyName=vC,i.isModifierKey=pC,i.lookupKey=Ls,i.normalizeKeyMap=OB,i.StringStream=$t,i.SharedTextMarker=zc,i.TextMarker=ho,i.LineWidget=Hc,i.e_preventDefault=Rt,i.e_stopPropagation=Ye,i.e_stop=ci,i.addClass=we,i.contains=ke,i.rmClass=B,i.keyNames=vo}GB(Gt),zB(Gt);var $B="iter insert remove copy getEditor constructor".split(" ");for(var fh in gn.prototype)gn.prototype.hasOwnProperty(fh)&&Oe($B,fh)<0&&(Gt.prototype[fh]=function(i){return function(){return i.apply(this.doc,arguments)}}(gn.prototype[fh]));return nr(gn),Gt.inputStyles={textarea:ir,contenteditable:kt},Gt.defineMode=function(i){!Gt.defaults.mode&&i!="null"&&(Gt.defaults.mode=i),Pp.apply(this,arguments)},Gt.defineMIME=Ra,Gt.defineMode("null",function(){return{token:function(i){return i.skipToEnd()}}}),Gt.defineMIME("text/plain","null"),Gt.defineExtension=function(i,u){Gt.prototype[i]=u},Gt.defineDocExtension=function(i,u){gn.prototype[i]=u},Gt.fromTextArea=XB,ZB(Gt),Gt.version="5.62.3",Gt})});var op=U((pj,hj)=>{(function(e){typeof pj=="object"&&typeof hj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";e.showHint=function(S,y,_){if(!y)return S.showHint(_);_&&_.async&&(y.async=!0);var g={hint:y};if(_)for(var k in _)g[k]=_[k];return S.showHint(g)},e.defineExtension("showHint",function(S){S=s(this,this.getCursor("start"),S);var y=this.listSelections();if(!(y.length>1)){if(this.somethingSelected()){if(!S.hint.supportsSelection)return;for(var _=0;_w.clientHeight+1:!1,Ze;setTimeout(function(){Ze=g.getScrollInfo()});var wn=xe.bottom-Oe;if(wn>0){var tt=xe.bottom-xe.top,Mt=j.top-(j.bottom-xe.top);if(Mt-tt>0)w.style.top=(ke=j.top-tt-Ne)+"px",pe=!1;else if(tt>Oe){w.style.height=Oe-5+"px",w.style.top=(ke=j.bottom-xe.top-Ne)+"px";var Xr=g.getCursor();y.from.ch!=Xr.ch&&(j=g.cursorCoords(Xr),w.style.left=(ce=j.left-we)+"px",xe=w.getBoundingClientRect())}}var pn=xe.right-vt;if(Ue&&(pn+=g.display.nativeBarWidth),pn>0&&(xe.right-xe.left>vt&&(w.style.width=vt-5+"px",pn-=xe.right-xe.left-vt),w.style.left=(ce=j.left-pn-we)+"px"),Ue)for(var ee=w.firstChild;ee;ee=ee.nextSibling)ee.style.paddingRight=g.display.nativeBarWidth+"px";if(g.addKeyMap(this.keyMap=d(S,{moveFocus:function(me,je){_.changeActive(_.selectedHint+me,je)},setFocus:function(me){_.changeActive(me)},menuSize:function(){return _.screenAmount()},length:F.length,close:function(){S.close()},pick:function(){_.pick()},data:y})),S.options.closeOnUnfocus){var De;g.on("blur",this.onBlur=function(){De=setTimeout(function(){S.close()},100)}),g.on("focus",this.onFocus=function(){clearTimeout(De)})}g.on("scroll",this.onScroll=function(){var me=g.getScrollInfo(),je=g.getWrapperElement().getBoundingClientRect();Ze||(Ze=g.getScrollInfo());var $e=ke+Ze.top-me.top,We=$e-(N.pageYOffset||(k.documentElement||k.body).scrollTop);if(pe||(We+=w.offsetHeight),We<=je.top||We>=je.bottom)return S.close();w.style.top=$e+"px",w.style.left=ce+Ze.left-me.left+"px"}),e.on(w,"dblclick",function(me){var je=h(w,me.target||me.srcElement);je&&je.hintId!=null&&(_.changeActive(je.hintId),_.pick())}),e.on(w,"click",function(me){var je=h(w,me.target||me.srcElement);je&&je.hintId!=null&&(_.changeActive(je.hintId),S.options.completeOnSingleClick&&_.pick())}),e.on(w,"mousedown",function(){setTimeout(function(){g.focus()},20)});var be=this.getSelectedHintRange();return(be.from!==0||be.to!==0)&&this.scrollToActive(),e.signal(y,"select",F[this.selectedHint],w.childNodes[this.selectedHint]),!0}m.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var S=this.completion.cm.getInputField();S.removeAttribute("aria-activedescendant"),S.removeAttribute("aria-owns");var y=this.completion.cm;this.completion.options.closeOnUnfocus&&(y.off("blur",this.onBlur),y.off("focus",this.onFocus)),y.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var S=this;this.keyMap={Enter:function(){S.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(S,y){if(S>=this.data.list.length?S=y?this.data.list.length-1:0:S<0&&(S=y?0:this.data.list.length-1),this.selectedHint!=S){var _=this.hints.childNodes[this.selectedHint];_&&(_.className=_.className.replace(" "+r,""),_.removeAttribute("aria-selected")),_=this.hints.childNodes[this.selectedHint=S],_.className+=" "+r,_.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",_.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],_)}},scrollToActive:function(){var S=this.getSelectedHintRange(),y=this.hints.childNodes[S.from],_=this.hints.childNodes[S.to],g=this.hints.firstChild;y.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=_.offsetTop+_.offsetHeight-this.hints.clientHeight+g.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var S=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-S),to:Math.min(this.data.list.length-1,this.selectedHint+S)}}};function T(S,y){if(!S.somethingSelected())return y;for(var _=[],g=0;g0?w(z):P(B+1)})}P(0)};return k.async=!0,k.supportsSelection=!0,k}else return(g=S.getHelper(S.getCursor(),"hintWords"))?function(N){return e.hint.fromList(N,{words:g})}:e.hint.anyword?function(N,w){return e.hint.anyword(N,w)}:function(){}}e.registerHelper("hint","auto",{resolve:C}),e.registerHelper("hint","fromList",function(S,y){var _=S.getCursor(),g=S.getTokenAt(_),k,N=e.Pos(_.line,g.start),w=_;g.start<_.ch&&/\w/.test(g.string.charAt(_.ch-g.start-1))?k=g.string.substr(0,_.ch-g.start):(k="",N=_);for(var D=[],F=0;F,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)})});var mj=U((vj,gj)=>{(function(e){typeof vj=="object"&&typeof gj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t={},r=/[^\s\u00a0]/,n=e.Pos,a=e.cmpPos;function o(d){var h=d.search(r);return h==-1?0:h}e.commands.toggleComment=function(d){d.toggleComment()},e.defineExtension("toggleComment",function(d){d||(d=t);for(var h=this,m=1/0,T=this.listSelections(),b=null,C=T.length-1;C>=0;C--){var L=T[C].from(),S=T[C].to();L.line>=m||(S.line>=m&&(S=n(m,0)),m=L.line,b==null?h.uncomment(L,S,d)?b="un":(h.lineComment(L,S,d),b="line"):b=="un"?h.uncomment(L,S,d):h.lineComment(L,S,d))}});function s(d,h,m){return/\bstring\b/.test(d.getTokenTypeAt(n(h.line,0)))&&!/^[\'\"\`]/.test(m)}function c(d,h){var m=d.getMode();return m.useInnerComments===!1||!m.innerMode?m:d.getModeAt(h)}e.defineExtension("lineComment",function(d,h,m){m||(m=t);var T=this,b=c(T,d),C=T.getLine(d.line);if(!(C==null||s(T,d,C))){var L=m.lineComment||b.lineComment;if(!L){(m.blockCommentStart||b.blockCommentStart)&&(m.fullLines=!0,T.blockComment(d,h,m));return}var S=Math.min(h.ch!=0||h.line==d.line?h.line+1:h.line,T.lastLine()+1),y=m.padding==null?" ":m.padding,_=m.commentBlankLines||d.line==h.line;T.operation(function(){if(m.indent){for(var g=null,k=d.line;kw.length)&&(g=w)}for(var k=d.line;kS||T.operation(function(){if(m.fullLines!=!1){var _=r.test(T.getLine(S));T.replaceRange(y+L,n(S)),T.replaceRange(C+y,n(d.line,0));var g=m.blockCommentLead||b.blockCommentLead;if(g!=null)for(var k=d.line+1;k<=S;++k)(k!=S||_)&&T.replaceRange(g+y,n(k,0))}else{var N=a(T.getCursor("to"),h)==0,w=!T.somethingSelected();T.replaceRange(L,h),N&&T.setSelection(w?h:T.getCursor("from"),h),T.replaceRange(C,d)}})}}),e.defineExtension("uncomment",function(d,h,m){m||(m=t);var T=this,b=c(T,d),C=Math.min(h.ch!=0||h.line==d.line?h.line:h.line-1,T.lastLine()),L=Math.min(d.line,C),S=m.lineComment||b.lineComment,y=[],_=m.padding==null?" ":m.padding,g;e:{if(!S)break e;for(var k=L;k<=C;++k){var N=T.getLine(k),w=N.indexOf(S);if(w>-1&&!/comment/.test(T.getTokenTypeAt(n(k,w+1)))&&(w=-1),w==-1&&r.test(N)||w>-1&&r.test(N.slice(0,w)))break e;y.push(N)}if(T.operation(function(){for(var Ne=L;Ne<=C;++Ne){var qe=y[Ne-L],ht=qe.indexOf(S),at=ht+S.length;ht<0||(qe.slice(at,at+_.length)==_&&(at+=_.length),g=!0,T.replaceRange("",n(Ne,ht),n(Ne,at)))}}),g)return!0}var D=m.blockCommentStart||b.blockCommentStart,F=m.blockCommentEnd||b.blockCommentEnd;if(!D||!F)return!1;var P=m.blockCommentLead||b.blockCommentLead,B=T.getLine(L),z=B.indexOf(D);if(z==-1)return!1;var G=C==L?B:T.getLine(C),M=G.indexOf(F,C==L?z+D.length:0),j=n(L,z+1),ce=n(C,M+1);if(M==-1||!/comment/.test(T.getTokenTypeAt(j))||!/comment/.test(T.getTokenTypeAt(ce))||T.getRange(j,ce,` `).indexOf(F)>-1)return!1;var ke=B.lastIndexOf(D,d.ch),pe=ke==-1?-1:B.slice(0,d.ch).indexOf(F,ke+D.length);if(ke!=-1&&pe!=-1&&pe+F.length!=d.ch)return!1;pe=G.indexOf(F,h.ch);var we=G.slice(h.ch).lastIndexOf(D,pe-h.ch);return ke=pe==-1||we==-1?-1:h.ch+we,pe!=-1&&ke!=-1&&ke!=h.ch?!1:(T.operation(function(){T.replaceRange("",n(C,M-(_&&G.slice(M-_.length,M)==_?_.length:0)),n(C,M+F.length));var Ne=z+D.length;if(_&&B.slice(Ne,Ne+_.length)==_&&(Ne+=_.length),T.replaceRange("",n(L,z),n(L,Ne)),P)for(var qe=L+1;qe<=C;++qe){var ht=T.getLine(qe),at=ht.indexOf(P);if(!(at==-1||r.test(ht.slice(0,at)))){var st=at+P.length;_&&ht.slice(st,st+_.length)==_&&(st+=_.length),T.replaceRange("",n(qe,at),n(qe,st))}}}),!0)})})});var up=U((yj,bj)=>{(function(e){typeof yj=="object"&&typeof bj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(m){return m&&m.bracketRegex||/[(){}[\]]/}function o(m,T,b){var C=m.getLineHandle(T.line),L=T.ch-1,S=b&&b.afterCursor;S==null&&(S=/(^| )cm-fat-cursor($| )/.test(m.getWrapperElement().className));var y=a(b),_=!S&&L>=0&&y.test(C.text.charAt(L))&&n[C.text.charAt(L)]||y.test(C.text.charAt(L+1))&&n[C.text.charAt(++L)];if(!_)return null;var g=_.charAt(1)==">"?1:-1;if(b&&b.strict&&g>0!=(L==T.ch))return null;var k=m.getTokenTypeAt(r(T.line,L+1)),N=s(m,r(T.line,L+(g>0?1:0)),g,k,b);return N==null?null:{from:r(T.line,L),to:N&&N.pos,match:N&&N.ch==_.charAt(0),forward:g>0}}function s(m,T,b,C,L){for(var S=L&&L.maxScanLineLength||1e4,y=L&&L.maxScanLines||1e3,_=[],g=a(L),k=b>0?Math.min(T.line+y,m.lastLine()+1):Math.max(m.firstLine()-1,T.line-y),N=T.line;N!=k;N+=b){var w=m.getLine(N);if(!!w){var D=b>0?0:w.length-1,F=b>0?w.length:-1;if(!(w.length>S))for(N==T.line&&(D=T.ch-(b<0?1:0));D!=F;D+=b){var P=w.charAt(D);if(g.test(P)&&(C===void 0||(m.getTokenTypeAt(r(N,D+1))||"")==(C||""))){var B=n[P];if(B&&B.charAt(1)==">"==b>0)_.push(P);else if(_.length)_.pop();else return{pos:r(N,D),ch:P}}}}}return N-b==(b>0?m.lastLine():m.firstLine())?!1:null}function c(m,T,b){for(var C=m.state.matchBrackets.maxHighlightLineLength||1e3,L=b&&b.highlightNonMatching,S=[],y=m.listSelections(),_=0;_{(function(e){typeof Ej=="object"&&typeof Tj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var t={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},r=e.Pos;e.defineOption("autoCloseBrackets",!1,function(S,y,_){_&&_!=e.Init&&(S.removeKeyMap(a),S.state.closeBrackets=null),y&&(o(n(y,"pairs")),S.state.closeBrackets=y,S.addKeyMap(a))});function n(S,y){return y=="pairs"&&typeof S=="string"?S:typeof S=="object"&&S[y]!=null?S[y]:t[y]}var a={Backspace:d,Enter:h};function o(S){for(var y=0;y=0;k--){var w=g[k].head;S.replaceRange("",r(w.line,w.ch-1),r(w.line,w.ch+1),"+delete")}}function h(S){var y=c(S),_=y&&n(y,"explode");if(!_||S.getOption("disableInput"))return e.Pass;for(var g=S.listSelections(),k=0;k0?{line:w.head.line,ch:w.head.ch+y}:{line:w.head.line-1};_.push({anchor:D,head:D})}S.setSelections(_,k)}function T(S){var y=e.cmpPos(S.anchor,S.head)>0;return{anchor:new r(S.anchor.line,S.anchor.ch+(y?-1:1)),head:new r(S.head.line,S.head.ch+(y?1:-1))}}function b(S,y){var _=c(S);if(!_||S.getOption("disableInput"))return e.Pass;var g=n(_,"pairs"),k=g.indexOf(y);if(k==-1)return e.Pass;for(var N=n(_,"closeBefore"),w=n(_,"triples"),D=g.charAt(k+1)==y,F=S.listSelections(),P=k%2==0,B,z=0;z=0&&S.getRange(M,r(M.line,M.ch+3))==y+y+y?j="skipThree":j="skip";else if(D&&M.ch>1&&w.indexOf(y)>=0&&S.getRange(r(M.line,M.ch-2),M)==y+y){if(M.ch>2&&/\bstring/.test(S.getTokenTypeAt(r(M.line,M.ch-2))))return e.Pass;j="addFour"}else if(D){var ke=M.ch==0?" ":S.getRange(r(M.line,M.ch-1),M);if(!e.isWordChar(ce)&&ke!=y&&!e.isWordChar(ke))j="both";else return e.Pass}else if(P&&(ce.length===0||/\s/.test(ce)||N.indexOf(ce)>-1))j="both";else return e.Pass;if(!B)B=j;else if(B!=j)return e.Pass}var pe=k%2?g.charAt(k-1):y,we=k%2?y:g.charAt(k+1);S.operation(function(){if(B=="skip")m(S,1);else if(B=="skipThree")m(S,3);else if(B=="surround"){for(var Ne=S.getSelections(),qe=0;qe{(function(e){typeof _j=="object"&&typeof Sj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(o,s,c,d){if(c&&c.call){var h=c;c=null}else var h=a(o,c,"rangeFinder");typeof s=="number"&&(s=e.Pos(s,0));var m=a(o,c,"minFoldSize");function T(S){var y=h(o,s);if(!y||y.to.line-y.from.lineo.firstLine();)s=e.Pos(s.line-1,0),b=T(!1);if(!(!b||b.cleared||d==="unfold")){var C=r(o,c,b);e.on(C,"mousedown",function(S){L.clear(),e.e_preventDefault(S)});var L=o.markText(b.from,b.to,{replacedWith:C,clearOnEnter:a(o,c,"clearOnEnter"),__isFold:!0});L.on("clear",function(S,y){e.signal(o,"unfold",o,S,y)}),e.signal(o,"fold",o,b.from,b.to)}}function r(o,s,c){var d=a(o,s,"widget");if(typeof d=="function"&&(d=d(c.from,c.to)),typeof d=="string"){var h=document.createTextNode(d);d=document.createElement("span"),d.appendChild(h),d.className="CodeMirror-foldmarker"}else d&&(d=d.cloneNode(!0));return d}e.newFoldFunction=function(o,s){return function(c,d){t(c,d,{rangeFinder:o,widget:s})}},e.defineExtension("foldCode",function(o,s,c){t(this,o,s,c)}),e.defineExtension("isFolded",function(o){for(var s=this.findMarksAt(o),c=0;c{(function(e){typeof kj=="object"&&typeof Cj=="object"?e(ct(),Dj()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("foldGutter",!1,function(C,L,S){S&&S!=e.Init&&(C.clearGutter(C.state.foldGutter.options.gutter),C.state.foldGutter=null,C.off("gutterClick",h),C.off("changes",m),C.off("viewportChange",T),C.off("fold",b),C.off("unfold",b),C.off("swapDoc",m)),L&&(C.state.foldGutter=new r(n(L)),d(C),C.on("gutterClick",h),C.on("changes",m),C.on("viewportChange",T),C.on("fold",b),C.on("unfold",b),C.on("swapDoc",m))});var t=e.Pos;function r(C){this.options=C,this.from=this.to=0}function n(C){return C===!0&&(C={}),C.gutter==null&&(C.gutter="CodeMirror-foldgutter"),C.indicatorOpen==null&&(C.indicatorOpen="CodeMirror-foldgutter-open"),C.indicatorFolded==null&&(C.indicatorFolded="CodeMirror-foldgutter-folded"),C}function a(C,L){for(var S=C.findMarks(t(L,0),t(L+1,0)),y=0;y=g){if(w&&P&&w.test(P.className))return;F=o(y.indicatorOpen)}}!F&&!P||C.setGutterMarker(D,y.gutter,F)})}function c(C){return new RegExp("(^|\\s)"+C+"(?:$|\\s)\\s*")}function d(C){var L=C.getViewport(),S=C.state.foldGutter;!S||(C.operation(function(){s(C,L.from,L.to)}),S.from=L.from,S.to=L.to)}function h(C,L,S){var y=C.state.foldGutter;if(!!y){var _=y.options;if(S==_.gutter){var g=a(C,L);g?g.clear():C.foldCode(t(L,0),_)}}}function m(C){var L=C.state.foldGutter;if(!!L){var S=L.options;L.from=L.to=0,clearTimeout(L.changeUpdate),L.changeUpdate=setTimeout(function(){d(C)},S.foldOnChangeTimeSpan||600)}}function T(C){var L=C.state.foldGutter;if(!!L){var S=L.options;clearTimeout(L.changeUpdate),L.changeUpdate=setTimeout(function(){var y=C.getViewport();L.from==L.to||y.from-L.to>20||L.from-y.to>20?d(C):C.operation(function(){y.fromL.to&&(s(C,L.to,y.to),L.to=y.to)})},S.updateViewportTimeSpan||400)}}function b(C,L){var S=C.state.foldGutter;if(!!S){var y=L.line;y>=S.from&&y{(function(e){typeof Oj=="object"&&typeof wj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.registerHelper("fold","brace",function(t,r){var n=r.line,a=t.getLine(n),o;function s(w){for(var D=r.ch,F=0;;){var P=D<=0?-1:a.lastIndexOf(w,D-1);if(P==-1){if(F==1)break;F=1,D=a.length;continue}if(F==1&&Pc))T=c,h="{",m="}";else if(d!=null)T=d,h="[",m="]";else return;var b=1,C=t.lastLine(),L,S;e:for(var y=n;y<=C;++y)for(var _=t.getLine(y),g=y==n?T:0;;){var k=_.indexOf(h,g),N=_.indexOf(m,g);if(k<0&&(k=_.length),N<0&&(N=_.length),g=Math.min(k,N),g==_.length)break;if(t.getTokenTypeAt(e.Pos(y,g+1))==o){if(g==k)++b;else if(!--b){L=y,S=g;break e}}++g}if(!(L==null||n==L))return{from:e.Pos(n,T),to:e.Pos(L,S)}}),e.registerHelper("fold","import",function(t,r){function n(h){if(ht.lastLine())return null;var m=t.getTokenAt(e.Pos(h,1));if(/\S/.test(m.string)||(m=t.getTokenAt(e.Pos(h,m.end+1))),m.type!="keyword"||m.string!="import")return null;for(var T=h,b=Math.min(t.lastLine(),h+10);T<=b;++T){var C=t.getLine(T),L=C.indexOf(";");if(L!=-1)return{startCh:m.end,end:e.Pos(T,L)}}}var a=r.line,o=n(a),s;if(!o||n(a-1)||(s=n(a-2))&&s.end.line==a-1)return null;for(var c=o.end;;){var d=n(c.line+1);if(d==null)break;c=d.end}return{from:t.clipPos(e.Pos(a,o.startCh+1)),to:c}}),e.registerHelper("fold","include",function(t,r){function n(d){if(dt.lastLine())return null;var h=t.getTokenAt(e.Pos(d,1));if(/\S/.test(h.string)||(h=t.getTokenAt(e.Pos(d,h.end+1))),h.type=="meta"&&h.string.slice(0,8)=="#include")return h.start+8}var a=r.line,o=n(a);if(o==null||n(a-1)!=null)return null;for(var s=a;;){var c=n(s+1);if(c==null)break;++s}return{from:e.Pos(a,o+1),to:t.clipPos(e.Pos(s))}})})});var ss=U((Nj,Aj)=>{(function(e){typeof Nj=="object"&&typeof Aj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t=e.Pos;function r(y){var _=y.flags;return _!=null?_:(y.ignoreCase?"i":"")+(y.global?"g":"")+(y.multiline?"m":"")}function n(y,_){for(var g=r(y),k=g,N=0;N<_.length;N++)k.indexOf(_.charAt(N))==-1&&(k+=_.charAt(N));return g==k?y:new RegExp(y.source,k)}function a(y){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(y.source)}function o(y,_,g){_=n(_,"g");for(var k=g.line,N=g.ch,w=y.lastLine();k<=w;k++,N=0){_.lastIndex=N;var D=y.getLine(k),F=_.exec(D);if(F)return{from:t(k,F.index),to:t(k,F.index+F[0].length),match:F}}}function s(y,_,g){if(!a(_))return o(y,_,g);_=n(_,"gm");for(var k,N=1,w=g.line,D=y.lastLine();w<=D;){for(var F=0;FD);F++){var P=y.getLine(w++);k=k==null?P:k+` `+P}N=N*2,_.lastIndex=g.ch;var B=_.exec(k);if(B){var z=k.slice(0,B.index).split(` `),G=B[0].split(` `),M=g.line+z.length-1,j=z[z.length-1].length;return{from:t(M,j),to:t(M+G.length-1,G.length==1?j+G[0].length:G[G.length-1].length),match:B}}}}function c(y,_,g){for(var k,N=0;N<=y.length;){_.lastIndex=N;var w=_.exec(y);if(!w)break;var D=w.index+w[0].length;if(D>y.length-g)break;(!k||D>k.index+k[0].length)&&(k=w),N=w.index+1}return k}function d(y,_,g){_=n(_,"g");for(var k=g.line,N=g.ch,w=y.firstLine();k>=w;k--,N=-1){var D=y.getLine(k),F=c(D,_,N<0?0:D.length-N);if(F)return{from:t(k,F.index),to:t(k,F.index+F[0].length),match:F}}}function h(y,_,g){if(!a(_))return d(y,_,g);_=n(_,"gm");for(var k,N=1,w=y.getLine(g.line).length-g.ch,D=g.line,F=y.firstLine();D>=F;){for(var P=0;P=F;P++){var B=y.getLine(D--);k=k==null?B:B+` `+k}N*=2;var z=c(k,_,w);if(z){var G=k.slice(0,z.index).split(` `),M=z[0].split(` `),j=D+G.length,ce=G[G.length-1].length;return{from:t(j,ce),to:t(j+M.length-1,M.length==1?ce+M[0].length:M[M.length-1].length),match:z}}}}var m,T;String.prototype.normalize?(m=function(y){return y.normalize("NFD").toLowerCase()},T=function(y){return y.normalize("NFD")}):(m=function(y){return y.toLowerCase()},T=function(y){return y});function b(y,_,g,k){if(y.length==_.length)return g;for(var N=0,w=g+Math.max(0,y.length-_.length);;){if(N==w)return N;var D=N+w>>1,F=k(y.slice(0,D)).length;if(F==g)return D;F>g?w=D:N=D+1}}function C(y,_,g,k){if(!_.length)return null;var N=k?m:T,w=N(_).split(/\r|\n\r?/);e:for(var D=g.line,F=g.ch,P=y.lastLine()+1-w.length;D<=P;D++,F=0){var B=y.getLine(D).slice(F),z=N(B);if(w.length==1){var G=z.indexOf(w[0]);if(G==-1)continue e;var g=b(B,z,G,N)+F;return{from:t(D,b(B,z,G,N)+F),to:t(D,b(B,z,G+w[0].length,N)+F)}}else{var M=z.length-w[0].length;if(z.slice(M)!=w[0])continue e;for(var j=1;j=P;D--,F=-1){var B=y.getLine(D);F>-1&&(B=B.slice(0,F));var z=N(B);if(w.length==1){var G=z.lastIndexOf(w[0]);if(G==-1)continue e;return{from:t(D,b(B,z,G,N)),to:t(D,b(B,z,G+w[0].length,N))}}else{var M=w[w.length-1];if(z.slice(0,M.length)!=M)continue e;for(var j=1,g=D-w.length+1;j0);)g.push({anchor:k.from(),head:k.to()});g.length&&this.setSelections(g,0)})})});var ls=U((Lj,xj)=>{(function(e){typeof Lj=="object"&&typeof xj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,a,o){var s=n.getWrapperElement(),c;return c=s.appendChild(document.createElement("div")),o?c.className="CodeMirror-dialog CodeMirror-dialog-bottom":c.className="CodeMirror-dialog CodeMirror-dialog-top",typeof a=="string"?c.innerHTML=a:c.appendChild(a),e.addClass(s,"dialog-opened"),c}function r(n,a){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=a}e.defineExtension("openDialog",function(n,a,o){o||(o={}),r(this,null);var s=t(this,n,o.bottom),c=!1,d=this;function h(b){if(typeof b=="string")m.value=b;else{if(c)return;c=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),d.focus(),o.onClose&&o.onClose(s)}}var m=s.getElementsByTagName("input")[0],T;return m?(m.focus(),o.value&&(m.value=o.value,o.selectValueOnOpen!==!1&&m.select()),o.onInput&&e.on(m,"input",function(b){o.onInput(b,m.value,h)}),o.onKeyUp&&e.on(m,"keyup",function(b){o.onKeyUp(b,m.value,h)}),e.on(m,"keydown",function(b){o&&o.onKeyDown&&o.onKeyDown(b,m.value,h)||((b.keyCode==27||o.closeOnEnter!==!1&&b.keyCode==13)&&(m.blur(),e.e_stop(b),h()),b.keyCode==13&&a(m.value,b))}),o.closeOnBlur!==!1&&e.on(s,"focusout",function(b){b.relatedTarget!==null&&h()})):(T=s.getElementsByTagName("button")[0])&&(e.on(T,"click",function(){h(),d.focus()}),o.closeOnBlur!==!1&&e.on(T,"blur",h),T.focus()),h}),e.defineExtension("openConfirm",function(n,a,o){r(this,null);var s=t(this,n,o&&o.bottom),c=s.getElementsByTagName("button"),d=!1,h=this,m=1;function T(){d||(d=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),h.focus())}c[0].focus();for(var b=0;b{(function(e){typeof Ij=="object"&&typeof Rj=="object"?e(ct(),ss(),ls()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(D,F){return typeof D=="string"?D=new RegExp(D.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),F?"gi":"g"):D.global||(D=new RegExp(D.source,D.ignoreCase?"gi":"g")),{token:function(P){D.lastIndex=P.pos;var B=D.exec(P.string);if(B&&B.index==P.pos)return P.pos+=B[0].length||1,"searching";B?P.pos=B.index:P.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(D){return D.state.search||(D.state.search=new r)}function a(D){return typeof D=="string"&&D==D.toLowerCase()}function o(D,F,P){return D.getSearchCursor(F,P,{caseFold:a(F),multiline:!0})}function s(D,F,P,B,z){D.openDialog(F,B,{value:P,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){L(D)},onKeyDown:z,bottom:D.options.search.bottom})}function c(D,F,P,B,z){D.openDialog?D.openDialog(F,z,{value:B,selectValueOnOpen:!0,bottom:D.options.search.bottom}):z(prompt(P,B))}function d(D,F,P,B){D.openConfirm?D.openConfirm(F,B):confirm(P)&&B[0]()}function h(D){return D.replace(/\\([nrt\\])/g,function(F,P){return P=="n"?` `:P=="r"?"\r":P=="t"?" ":P=="\\"?"\\":F})}function m(D){var F=D.match(/^\/(.*)\/([a-z]*)$/);if(F)try{D=new RegExp(F[1],F[2].indexOf("i")==-1?"":"i")}catch(P){}else D=h(D);return(typeof D=="string"?D=="":D.test(""))&&(D=/x^/),D}function T(D,F,P){F.queryText=P,F.query=m(P),D.removeOverlay(F.overlay,a(F.query)),F.overlay=t(F.query,a(F.query)),D.addOverlay(F.overlay),D.showMatchesOnScrollbar&&(F.annotate&&(F.annotate.clear(),F.annotate=null),F.annotate=D.showMatchesOnScrollbar(F.query,a(F.query)))}function b(D,F,P,B){var z=n(D);if(z.query)return C(D,F);var G=D.getSelection()||z.lastQuery;if(G instanceof RegExp&&G.source=="x^"&&(G=null),P&&D.openDialog){var M=null,j=function(ce,ke){e.e_stop(ke),!!ce&&(ce!=z.queryText&&(T(D,z,ce),z.posFrom=z.posTo=D.getCursor()),M&&(M.style.opacity=1),C(D,ke.shiftKey,function(pe,we){var Ne;we.line<3&&document.querySelector&&(Ne=D.display.wrapper.querySelector(".CodeMirror-dialog"))&&Ne.getBoundingClientRect().bottom-4>D.cursorCoords(we,"window").top&&((M=Ne).style.opacity=.4)}))};s(D,y(D),G,j,function(ce,ke){var pe=e.keyName(ce),we=D.getOption("extraKeys"),Ne=we&&we[pe]||e.keyMap[D.getOption("keyMap")][pe];Ne=="findNext"||Ne=="findPrev"||Ne=="findPersistentNext"||Ne=="findPersistentPrev"?(e.e_stop(ce),T(D,n(D),ke),D.execCommand(Ne)):(Ne=="find"||Ne=="findPersistent")&&(e.e_stop(ce),j(ke,ce))}),B&&G&&(T(D,z,G),C(D,F))}else c(D,y(D),"Search for:",G,function(ce){ce&&!z.query&&D.operation(function(){T(D,z,ce),z.posFrom=z.posTo=D.getCursor(),C(D,F)})})}function C(D,F,P){D.operation(function(){var B=n(D),z=o(D,B.query,F?B.posFrom:B.posTo);!z.find(F)&&(z=o(D,B.query,F?e.Pos(D.lastLine()):e.Pos(D.firstLine(),0)),!z.find(F))||(D.setSelection(z.from(),z.to()),D.scrollIntoView({from:z.from(),to:z.to()},20),B.posFrom=z.from(),B.posTo=z.to(),P&&P(z.from(),z.to()))})}function L(D){D.operation(function(){var F=n(D);F.lastQuery=F.query,!!F.query&&(F.query=F.queryText=null,D.removeOverlay(F.overlay),F.annotate&&(F.annotate.clear(),F.annotate=null))})}function S(D,F){var P=D?document.createElement(D):document.createDocumentFragment();for(var B in F)P[B]=F[B];for(var z=2;z{(function(e){typeof Fj=="object"&&typeof Pj=="object"?e(ct(),ls()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(a,o,s,c,d){a.openDialog?a.openDialog(o,d,{value:c,selectValueOnOpen:!0,bottom:a.options.search.bottom}):d(prompt(s,c))}function r(a){return a.phrase("Jump to line:")+' '+a.phrase("(Use line:column or scroll% syntax)")+""}function n(a,o){var s=Number(o);return/^[-+]/.test(o)?a.getCursor().line+s:s-1}e.commands.jumpToLine=function(a){var o=a.getCursor();t(a,r(a),a.phrase("Jump to line:"),o.line+1+":"+o.ch,function(s){if(!!s){var c;if(c=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(s))a.setCursor(n(a,c[1]),Number(c[2]));else if(c=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(s)){var d=Math.round(a.lineCount()*Number(c[1])/100);/^[-+]/.test(c[1])&&(d=o.line+d+1),a.setCursor(d-1,o.ch)}else(c=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(s))&&a.setCursor(n(a,c[1]),o.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})});var ym=U((jj,Mj)=>{(function(e){typeof jj=="object"&&typeof Mj=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t="CodeMirror-lint-markers",r="CodeMirror-lint-line-";function n(w,D,F){var P=document.createElement("div");P.className="CodeMirror-lint-tooltip cm-s-"+w.options.theme,P.appendChild(F.cloneNode(!0)),w.state.lint.options.selfContain?w.getWrapperElement().appendChild(P):document.body.appendChild(P);function B(z){if(!P.parentNode)return e.off(document,"mousemove",B);P.style.top=Math.max(0,z.clientY-P.offsetHeight-5)+"px",P.style.left=z.clientX+5+"px"}return e.on(document,"mousemove",B),B(D),P.style.opacity!=null&&(P.style.opacity=1),P}function a(w){w.parentNode&&w.parentNode.removeChild(w)}function o(w){!w.parentNode||(w.style.opacity==null&&a(w),w.style.opacity=0,setTimeout(function(){a(w)},600))}function s(w,D,F,P){var B=n(w,D,F);function z(){e.off(P,"mouseout",z),B&&(o(B),B=null)}var G=setInterval(function(){if(B)for(var M=P;;M=M.parentNode){if(M&&M.nodeType==11&&(M=M.host),M==document.body)return;if(!M){z();break}}if(!B)return clearInterval(G)},400);e.on(P,"mouseout",z)}function c(w,D,F){this.marked=[],D instanceof Function&&(D={getAnnotations:D}),(!D||D===!0)&&(D={}),this.options={},this.linterOptions=D.options||{};for(var P in d)this.options[P]=d[P];for(var P in D)d.hasOwnProperty(P)?D[P]!=null&&(this.options[P]=D[P]):D.options||(this.linterOptions[P]=D[P]);this.timeout=null,this.hasGutter=F,this.onMouseOver=function(B){N(w,B)},this.waitingFor=0}var d={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function h(w){var D=w.state.lint;D.hasGutter&&w.clearGutter(t),D.options.highlightLines&&m(w);for(var F=0;F-1?!1:M.push(Ne.message)});for(var j=null,ce=F.hasGutter&&document.createDocumentFragment(),ke=0;ke1,P.tooltips)),P.highlightLines&&w.addLineClass(z,"wrap",r+j)}}P.onUpdateLinting&&P.onUpdateLinting(D,B,w)}}function g(w){var D=w.state.lint;!D||(clearTimeout(D.timeout),D.timeout=setTimeout(function(){y(w)},D.options.delay))}function k(w,D,F){for(var P=F.target||F.srcElement,B=document.createDocumentFragment(),z=0;z{(function(e){typeof qj=="object"&&typeof Bj=="object"?e(ct(),ss(),up()):typeof define=="function"&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)})(function(e){"use strict";var t=e.commands,r=e.Pos;function n(g,k,N){if(N<0&&k.ch==0)return g.clipPos(r(k.line-1));var w=g.getLine(k.line);if(N>0&&k.ch>=w.length)return g.clipPos(r(k.line+1,0));for(var D="start",F,P=k.ch,B=P,z=N<0?0:w.length,G=0;B!=z;B+=N,G++){var M=w.charAt(N<0?B-1:B),j=M!="_"&&e.isWordChar(M)?"w":"o";if(j=="w"&&M.toUpperCase()==M&&(j="W"),D=="start")j!="o"?(D="in",F=j):P=B+N;else if(D=="in"&&F!=j){if(F=="w"&&j=="W"&&N<0&&B--,F=="W"&&j=="w"&&N>0)if(B==P+1){F="w";continue}else B--;break}}return r(k.line,B)}function a(g,k){g.extendSelectionsBy(function(N){return g.display.shift||g.doc.extend||N.empty()?n(g.doc,N.head,k):k<0?N.from():N.to()})}t.goSubwordLeft=function(g){a(g,-1)},t.goSubwordRight=function(g){a(g,1)},t.scrollLineUp=function(g){var k=g.getScrollInfo();if(!g.somethingSelected()){var N=g.lineAtHeight(k.top+k.clientHeight,"local");g.getCursor().line>=N&&g.execCommand("goLineUp")}g.scrollTo(null,k.top-g.defaultTextHeight())},t.scrollLineDown=function(g){var k=g.getScrollInfo();if(!g.somethingSelected()){var N=g.lineAtHeight(k.top,"local")+1;g.getCursor().line<=N&&g.execCommand("goLineDown")}g.scrollTo(null,k.top+g.defaultTextHeight())},t.splitSelectionByLine=function(g){for(var k=g.listSelections(),N=[],w=0;wD.line&&P==F.line&&F.ch==0||N.push({anchor:P==D.line?D:r(P,0),head:P==F.line?F:r(P)});g.setSelections(N,0)},t.singleSelectionTop=function(g){var k=g.listSelections()[0];g.setSelection(k.anchor,k.head,{scroll:!1})},t.selectLine=function(g){for(var k=g.listSelections(),N=[],w=0;ww?N.push(B,z):N.length&&(N[N.length-1]=z),w=z}g.operation(function(){for(var G=0;Gg.lastLine()?g.replaceRange(` `+ce,r(g.lastLine()),null,"+swapLine"):g.replaceRange(ce+` `,r(j,0),null,"+swapLine")}g.setSelections(D),g.scrollIntoView()})},t.swapLineDown=function(g){if(g.isReadOnly())return e.Pass;for(var k=g.listSelections(),N=[],w=g.lastLine()+1,D=k.length-1;D>=0;D--){var F=k[D],P=F.to().line+1,B=F.from().line;F.to().ch==0&&!F.empty()&&P--,P=0;z-=2){var G=N[z],M=N[z+1],j=g.getLine(G);G==g.lastLine()?g.replaceRange("",r(G-1),r(G),"+swapLine"):g.replaceRange("",r(G,0),r(G+1,0),"+swapLine"),g.replaceRange(j+` `,r(M,0),null,"+swapLine")}g.scrollIntoView()})},t.toggleCommentIndented=function(g){g.toggleComment({indent:!0})},t.joinLines=function(g){for(var k=g.listSelections(),N=[],w=0;w=0;F--){var P=N[w[F]];if(!(B&&e.cmpPos(P.head,B)>0)){var z=s(g,P.head);B=z.from,g.replaceRange(k(z.word),z.from,z.to)}}})}t.smartBackspace=function(g){if(g.somethingSelected())return e.Pass;g.operation(function(){for(var k=g.listSelections(),N=g.getOption("indentUnit"),w=k.length-1;w>=0;w--){var D=k[w].head,F=g.getRange({line:D.line,ch:0},D),P=e.countColumn(F,null,g.getOption("tabSize")),B=g.findPosH(D,-1,"char",!1);if(F&&!/\S/.test(F)&&P%N==0){var z=new r(D.line,e.findColumn(F,P-N,N));z.ch!=D.ch&&(B=z)}g.replaceRange("",B,D,"+delete")}})},t.delLineRight=function(g){g.operation(function(){for(var k=g.listSelections(),N=k.length-1;N>=0;N--)g.replaceRange("",k[N].anchor,r(k[N].to().line),"+delete");g.scrollIntoView()})},t.upcaseAtCursor=function(g){C(g,function(k){return k.toUpperCase()})},t.downcaseAtCursor=function(g){C(g,function(k){return k.toLowerCase()})},t.setSublimeMark=function(g){g.state.sublimeMark&&g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor())},t.selectToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&g.setSelection(g.getCursor(),k)},t.deleteToSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();if(k){var N=g.getCursor(),w=k;if(e.cmpPos(N,w)>0){var D=w;w=N,N=D}g.state.sublimeKilled=g.getRange(N,w),g.replaceRange("",N,w)}},t.swapWithSublimeMark=function(g){var k=g.state.sublimeMark&&g.state.sublimeMark.find();k&&(g.state.sublimeMark.clear(),g.state.sublimeMark=g.setBookmark(g.getCursor()),g.setCursor(k))},t.sublimeYank=function(g){g.state.sublimeKilled!=null&&g.replaceSelection(g.state.sublimeKilled,null,"paste")},t.showInCenter=function(g){var k=g.cursorCoords(null,"local");g.scrollTo(null,(k.top+k.bottom)/2-g.getScrollInfo().clientHeight/2)};function L(g){var k=g.getCursor("from"),N=g.getCursor("to");if(e.cmpPos(k,N)==0){var w=s(g,k);if(!w.word)return;k=w.from,N=w.to}return{from:k,to:N,query:g.getRange(k,N),word:w}}function S(g,k){var N=L(g);if(!!N){var w=N.query,D=g.getSearchCursor(w,k?N.to:N.from);(k?D.findNext():D.findPrevious())?g.setSelection(D.from(),D.to()):(D=g.getSearchCursor(w,k?r(g.firstLine(),0):g.clipPos(r(g.lastLine()))),(k?D.findNext():D.findPrevious())?g.setSelection(D.from(),D.to()):N.word&&g.setSelection(N.from,N.to))}}t.findUnder=function(g){S(g,!0)},t.findUnderPrevious=function(g){S(g,!1)},t.findAllUnder=function(g){var k=L(g);if(!!k){for(var N=g.getSearchCursor(k.query),w=[],D=-1;N.findNext();)w.push({anchor:N.from(),head:N.to()}),N.from().line<=k.from.line&&N.from().ch<=k.from.ch&&D++;g.setSelections(w,D)}};var y=e.keyMap;y.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(y.macSublime),y.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(y.pcSublime);var _=y.default==y.macDefault;y.sublime=_?y.macSublime:y.pcSublime})});var D1=U(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.hintList=wi.objectValues=wi.forEachState=wi.getFieldDef=wi.getDefinitionState=void 0;var KJ=Nt(),tc=Mn();function HJ(e){let t;return Vj(e,r=>{switch(r.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=r;break}}),t}wi.getDefinitionState=HJ;function zJ(e,t,r){return r===tc.SchemaMetaFieldDef.name&&e.getQueryType()===t?tc.SchemaMetaFieldDef:r===tc.TypeMetaFieldDef.name&&e.getQueryType()===t?tc.TypeMetaFieldDef:r===tc.TypeNameMetaFieldDef.name&&KJ.isCompositeType(t)?tc.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[r]:null}wi.getFieldDef=zJ;function Vj(e,t){let r=[],n=e;for(;n&&n.kind;)r.push(n),n=n.prevState;for(let a=r.length-1;a>=0;a--)t(r[a])}wi.forEachState=Vj;function WJ(e){let t=Object.keys(e),r=t.length,n=new Array(r);for(let a=0;a!n.isDeprecated);let r=e.map(n=>({proximity:XJ(Uj(n.label),t),entry:n}));return S1(S1(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,a)=>(n.entry.isDeprecated?1:0)-(a.entry.isDeprecated?1:0)||n.proximity-a.proximity||n.entry.label.length-a.entry.label.length).map(n=>n.entry)}function S1(e,t){let r=e.filter(t);return r.length===0?e:r}function Uj(e){return e.toLowerCase().replace(/\W/g,"")}function XJ(e,t){let r=ZJ(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function ZJ(e,t){let r,n,a=[],o=e.length,s=t.length;for(r=0;r<=o;r++)a[r]=[r];for(n=1;n<=s;n++)a[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let c=e[r-1]===t[n-1]?0:1;a[r][n]=Math.min(a[r-1][n]+1,a[r][n-1]+1,a[r-1][n-1]+c),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(a[r][n]=Math.min(a[r][n],a[r-2][n-2]+c))}return a[o][s]}});var k1=U((Gj,bm)=>{(function(e){if(typeof bm=="object"&&typeof bm.exports=="object"){var t=e(PC,Gj);t!==void 0&&(bm.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=t.EOL=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionKind=t.DocumentSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.InsertTextMode=t.InsertReplaceEdit=t.CompletionItemTag=t.InsertTextFormat=t.CompletionItemKind=t.MarkupContent=t.MarkupKind=t.TextDocumentItem=t.OptionalVersionedTextDocumentIdentifier=t.VersionedTextDocumentIdentifier=t.TextDocumentIdentifier=t.WorkspaceChange=t.WorkspaceEdit=t.DeleteFile=t.RenameFile=t.CreateFile=t.TextDocumentEdit=t.AnnotatedTextEdit=t.ChangeAnnotationIdentifier=t.ChangeAnnotation=t.TextEdit=t.Command=t.Diagnostic=t.CodeDescription=t.DiagnosticTag=t.DiagnosticSeverity=t.DiagnosticRelatedInformation=t.FoldingRange=t.FoldingRangeKind=t.ColorPresentation=t.ColorInformation=t.Color=t.LocationLink=t.Location=t.Range=t.Position=t.uinteger=t.integer=void 0;var r;(function(q){q.MIN_VALUE=-2147483648,q.MAX_VALUE=2147483647})(r=t.integer||(t.integer={}));var n;(function(q){q.MIN_VALUE=0,q.MAX_VALUE=2147483647})(n=t.uinteger||(t.uinteger={}));var a;(function(q){function X(H,R){return H===Number.MAX_VALUE&&(H=n.MAX_VALUE),R===Number.MAX_VALUE&&(R=n.MAX_VALUE),{line:H,character:R}}q.create=X;function Z(H){var R=H;return te.objectLiteral(R)&&te.uinteger(R.line)&&te.uinteger(R.character)}q.is=Z})(a=t.Position||(t.Position={}));var o;(function(q){function X(H,R,$,ie){if(te.uinteger(H)&&te.uinteger(R)&&te.uinteger($)&&te.uinteger(ie))return{start:a.create(H,R),end:a.create($,ie)};if(a.is(H)&&a.is(R))return{start:H,end:R};throw new Error("Range#create called with invalid arguments["+H+", "+R+", "+$+", "+ie+"]")}q.create=X;function Z(H){var R=H;return te.objectLiteral(R)&&a.is(R.start)&&a.is(R.end)}q.is=Z})(o=t.Range||(t.Range={}));var s;(function(q){function X(H,R){return{uri:H,range:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.range)&&(te.string(R.uri)||te.undefined(R.uri))}q.is=Z})(s=t.Location||(t.Location={}));var c;(function(q){function X(H,R,$,ie){return{targetUri:H,targetRange:R,targetSelectionRange:$,originSelectionRange:ie}}q.create=X;function Z(H){var R=H;return te.defined(R)&&o.is(R.targetRange)&&te.string(R.targetUri)&&(o.is(R.targetSelectionRange)||te.undefined(R.targetSelectionRange))&&(o.is(R.originSelectionRange)||te.undefined(R.originSelectionRange))}q.is=Z})(c=t.LocationLink||(t.LocationLink={}));var d;(function(q){function X(H,R,$,ie){return{red:H,green:R,blue:$,alpha:ie}}q.create=X;function Z(H){var R=H;return te.numberRange(R.red,0,1)&&te.numberRange(R.green,0,1)&&te.numberRange(R.blue,0,1)&&te.numberRange(R.alpha,0,1)}q.is=Z})(d=t.Color||(t.Color={}));var h;(function(q){function X(H,R){return{range:H,color:R}}q.create=X;function Z(H){var R=H;return o.is(R.range)&&d.is(R.color)}q.is=Z})(h=t.ColorInformation||(t.ColorInformation={}));var m;(function(q){function X(H,R,$){return{label:H,textEdit:R,additionalTextEdits:$}}q.create=X;function Z(H){var R=H;return te.string(R.label)&&(te.undefined(R.textEdit)||k.is(R))&&(te.undefined(R.additionalTextEdits)||te.typedArray(R.additionalTextEdits,k.is))}q.is=Z})(m=t.ColorPresentation||(t.ColorPresentation={}));var T;(function(q){q.Comment="comment",q.Imports="imports",q.Region="region"})(T=t.FoldingRangeKind||(t.FoldingRangeKind={}));var b;(function(q){function X(H,R,$,ie,fe){var Qe={startLine:H,endLine:R};return te.defined($)&&(Qe.startCharacter=$),te.defined(ie)&&(Qe.endCharacter=ie),te.defined(fe)&&(Qe.kind=fe),Qe}q.create=X;function Z(H){var R=H;return te.uinteger(R.startLine)&&te.uinteger(R.startLine)&&(te.undefined(R.startCharacter)||te.uinteger(R.startCharacter))&&(te.undefined(R.endCharacter)||te.uinteger(R.endCharacter))&&(te.undefined(R.kind)||te.string(R.kind))}q.is=Z})(b=t.FoldingRange||(t.FoldingRange={}));var C;(function(q){function X(H,R){return{location:H,message:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&s.is(R.location)&&te.string(R.message)}q.is=Z})(C=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var L;(function(q){q.Error=1,q.Warning=2,q.Information=3,q.Hint=4})(L=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var S;(function(q){q.Unnecessary=1,q.Deprecated=2})(S=t.DiagnosticTag||(t.DiagnosticTag={}));var y;(function(q){function X(Z){var H=Z;return H!=null&&te.string(H.href)}q.is=X})(y=t.CodeDescription||(t.CodeDescription={}));var _;(function(q){function X(H,R,$,ie,fe,Qe){var It={range:H,message:R};return te.defined($)&&(It.severity=$),te.defined(ie)&&(It.code=ie),te.defined(fe)&&(It.source=fe),te.defined(Qe)&&(It.relatedInformation=Qe),It}q.create=X;function Z(H){var R,$=H;return te.defined($)&&o.is($.range)&&te.string($.message)&&(te.number($.severity)||te.undefined($.severity))&&(te.integer($.code)||te.string($.code)||te.undefined($.code))&&(te.undefined($.codeDescription)||te.string((R=$.codeDescription)===null||R===void 0?void 0:R.href))&&(te.string($.source)||te.undefined($.source))&&(te.undefined($.relatedInformation)||te.typedArray($.relatedInformation,C.is))}q.is=Z})(_=t.Diagnostic||(t.Diagnostic={}));var g;(function(q){function X(H,R){for(var $=[],ie=2;ie0&&(fe.arguments=$),fe}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.title)&&te.string(R.command)}q.is=Z})(g=t.Command||(t.Command={}));var k;(function(q){function X($,ie){return{range:$,newText:ie}}q.replace=X;function Z($,ie){return{range:{start:$,end:$},newText:ie}}q.insert=Z;function H($){return{range:$,newText:""}}q.del=H;function R($){var ie=$;return te.objectLiteral(ie)&&te.string(ie.newText)&&o.is(ie.range)}q.is=R})(k=t.TextEdit||(t.TextEdit={}));var N;(function(q){function X(H,R,$){var ie={label:H};return R!==void 0&&(ie.needsConfirmation=R),$!==void 0&&(ie.description=$),ie}q.create=X;function Z(H){var R=H;return R!==void 0&&te.objectLiteral(R)&&te.string(R.label)&&(te.boolean(R.needsConfirmation)||R.needsConfirmation===void 0)&&(te.string(R.description)||R.description===void 0)}q.is=Z})(N=t.ChangeAnnotation||(t.ChangeAnnotation={}));var w;(function(q){function X(Z){var H=Z;return typeof H=="string"}q.is=X})(w=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var D;(function(q){function X($,ie,fe){return{range:$,newText:ie,annotationId:fe}}q.replace=X;function Z($,ie,fe){return{range:{start:$,end:$},newText:ie,annotationId:fe}}q.insert=Z;function H($,ie){return{range:$,newText:"",annotationId:ie}}q.del=H;function R($){var ie=$;return k.is(ie)&&(N.is(ie.annotationId)||w.is(ie.annotationId))}q.is=R})(D=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var F;(function(q){function X(H,R){return{textDocument:H,edits:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&we.is(R.textDocument)&&Array.isArray(R.edits)}q.is=Z})(F=t.TextDocumentEdit||(t.TextDocumentEdit={}));var P;(function(q){function X(H,R,$){var ie={kind:"create",uri:H};return R!==void 0&&(R.overwrite!==void 0||R.ignoreIfExists!==void 0)&&(ie.options=R),$!==void 0&&(ie.annotationId=$),ie}q.create=X;function Z(H){var R=H;return R&&R.kind==="create"&&te.string(R.uri)&&(R.options===void 0||(R.options.overwrite===void 0||te.boolean(R.options.overwrite))&&(R.options.ignoreIfExists===void 0||te.boolean(R.options.ignoreIfExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(P=t.CreateFile||(t.CreateFile={}));var B;(function(q){function X(H,R,$,ie){var fe={kind:"rename",oldUri:H,newUri:R};return $!==void 0&&($.overwrite!==void 0||$.ignoreIfExists!==void 0)&&(fe.options=$),ie!==void 0&&(fe.annotationId=ie),fe}q.create=X;function Z(H){var R=H;return R&&R.kind==="rename"&&te.string(R.oldUri)&&te.string(R.newUri)&&(R.options===void 0||(R.options.overwrite===void 0||te.boolean(R.options.overwrite))&&(R.options.ignoreIfExists===void 0||te.boolean(R.options.ignoreIfExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(B=t.RenameFile||(t.RenameFile={}));var z;(function(q){function X(H,R,$){var ie={kind:"delete",uri:H};return R!==void 0&&(R.recursive!==void 0||R.ignoreIfNotExists!==void 0)&&(ie.options=R),$!==void 0&&(ie.annotationId=$),ie}q.create=X;function Z(H){var R=H;return R&&R.kind==="delete"&&te.string(R.uri)&&(R.options===void 0||(R.options.recursive===void 0||te.boolean(R.options.recursive))&&(R.options.ignoreIfNotExists===void 0||te.boolean(R.options.ignoreIfNotExists)))&&(R.annotationId===void 0||w.is(R.annotationId))}q.is=Z})(z=t.DeleteFile||(t.DeleteFile={}));var G;(function(q){function X(Z){var H=Z;return H&&(H.changes!==void 0||H.documentChanges!==void 0)&&(H.documentChanges===void 0||H.documentChanges.every(function(R){return te.string(R.kind)?P.is(R)||B.is(R)||z.is(R):F.is(R)}))}q.is=X})(G=t.WorkspaceEdit||(t.WorkspaceEdit={}));var M=function(){function q(X,Z){this.edits=X,this.changeAnnotations=Z}return q.prototype.insert=function(X,Z,H){var R,$;if(H===void 0?R=k.insert(X,Z):w.is(H)?($=H,R=D.insert(X,Z,H)):(this.assertChangeAnnotations(this.changeAnnotations),$=this.changeAnnotations.manage(H),R=D.insert(X,Z,$)),this.edits.push(R),$!==void 0)return $},q.prototype.replace=function(X,Z,H){var R,$;if(H===void 0?R=k.replace(X,Z):w.is(H)?($=H,R=D.replace(X,Z,H)):(this.assertChangeAnnotations(this.changeAnnotations),$=this.changeAnnotations.manage(H),R=D.replace(X,Z,$)),this.edits.push(R),$!==void 0)return $},q.prototype.delete=function(X,Z){var H,R;if(Z===void 0?H=k.del(X):w.is(Z)?(R=Z,H=D.del(X,Z)):(this.assertChangeAnnotations(this.changeAnnotations),R=this.changeAnnotations.manage(Z),H=D.del(X,R)),this.edits.push(H),R!==void 0)return R},q.prototype.add=function(X){this.edits.push(X)},q.prototype.all=function(){return this.edits},q.prototype.clear=function(){this.edits.splice(0,this.edits.length)},q.prototype.assertChangeAnnotations=function(X){if(X===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},q}(),j=function(){function q(X){this._annotations=X===void 0?Object.create(null):X,this._counter=0,this._size=0}return q.prototype.all=function(){return this._annotations},Object.defineProperty(q.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),q.prototype.manage=function(X,Z){var H;if(w.is(X)?H=X:(H=this.nextId(),Z=X),this._annotations[H]!==void 0)throw new Error("Id "+H+" is already in use.");if(Z===void 0)throw new Error("No annotation provided for id "+H);return this._annotations[H]=Z,this._size++,H},q.prototype.nextId=function(){return this._counter++,this._counter.toString()},q}(),ce=function(){function q(X){var Z=this;this._textEditChanges=Object.create(null),X!==void 0?(this._workspaceEdit=X,X.documentChanges?(this._changeAnnotations=new j(X.changeAnnotations),X.changeAnnotations=this._changeAnnotations.all(),X.documentChanges.forEach(function(H){if(F.is(H)){var R=new M(H.edits,Z._changeAnnotations);Z._textEditChanges[H.textDocument.uri]=R}})):X.changes&&Object.keys(X.changes).forEach(function(H){var R=new M(X.changes[H]);Z._textEditChanges[H]=R})):this._workspaceEdit={}}return Object.defineProperty(q.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),q.prototype.getTextEditChange=function(X){if(we.is(X)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var Z={uri:X.uri,version:X.version},H=this._textEditChanges[Z.uri];if(!H){var R=[],$={textDocument:Z,edits:R};this._workspaceEdit.documentChanges.push($),H=new M(R,this._changeAnnotations),this._textEditChanges[Z.uri]=H}return H}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var H=this._textEditChanges[X];if(!H){var R=[];this._workspaceEdit.changes[X]=R,H=new M(R),this._textEditChanges[X]=H}return H}},q.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new j,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},q.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},q.prototype.createFile=function(X,Z,H){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var R;N.is(Z)||w.is(Z)?R=Z:H=Z;var $,ie;if(R===void 0?$=P.create(X,H):(ie=w.is(R)?R:this._changeAnnotations.manage(R),$=P.create(X,H,ie)),this._workspaceEdit.documentChanges.push($),ie!==void 0)return ie},q.prototype.renameFile=function(X,Z,H,R){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var $;N.is(H)||w.is(H)?$=H:R=H;var ie,fe;if($===void 0?ie=B.create(X,Z,R):(fe=w.is($)?$:this._changeAnnotations.manage($),ie=B.create(X,Z,R,fe)),this._workspaceEdit.documentChanges.push(ie),fe!==void 0)return fe},q.prototype.deleteFile=function(X,Z,H){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var R;N.is(Z)||w.is(Z)?R=Z:H=Z;var $,ie;if(R===void 0?$=z.create(X,H):(ie=w.is(R)?R:this._changeAnnotations.manage(R),$=z.create(X,H,ie)),this._workspaceEdit.documentChanges.push($),ie!==void 0)return ie},q}();t.WorkspaceChange=ce;var ke;(function(q){function X(H){return{uri:H}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)}q.is=Z})(ke=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var pe;(function(q){function X(H,R){return{uri:H,version:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&te.integer(R.version)}q.is=Z})(pe=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var we;(function(q){function X(H,R){return{uri:H,version:R}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&(R.version===null||te.integer(R.version))}q.is=Z})(we=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var Ne;(function(q){function X(H,R,$,ie){return{uri:H,languageId:R,version:$,text:ie}}q.create=X;function Z(H){var R=H;return te.defined(R)&&te.string(R.uri)&&te.string(R.languageId)&&te.integer(R.version)&&te.string(R.text)}q.is=Z})(Ne=t.TextDocumentItem||(t.TextDocumentItem={}));var qe;(function(q){q.PlainText="plaintext",q.Markdown="markdown"})(qe=t.MarkupKind||(t.MarkupKind={})),function(q){function X(Z){var H=Z;return H===q.PlainText||H===q.Markdown}q.is=X}(qe=t.MarkupKind||(t.MarkupKind={}));var ht;(function(q){function X(Z){var H=Z;return te.objectLiteral(Z)&&qe.is(H.kind)&&te.string(H.value)}q.is=X})(ht=t.MarkupContent||(t.MarkupContent={}));var at;(function(q){q.Text=1,q.Method=2,q.Function=3,q.Constructor=4,q.Field=5,q.Variable=6,q.Class=7,q.Interface=8,q.Module=9,q.Property=10,q.Unit=11,q.Value=12,q.Enum=13,q.Keyword=14,q.Snippet=15,q.Color=16,q.File=17,q.Reference=18,q.Folder=19,q.EnumMember=20,q.Constant=21,q.Struct=22,q.Event=23,q.Operator=24,q.TypeParameter=25})(at=t.CompletionItemKind||(t.CompletionItemKind={}));var st;(function(q){q.PlainText=1,q.Snippet=2})(st=t.InsertTextFormat||(t.InsertTextFormat={}));var vt;(function(q){q.Deprecated=1})(vt=t.CompletionItemTag||(t.CompletionItemTag={}));var Oe;(function(q){function X(H,R,$){return{newText:H,insert:R,replace:$}}q.create=X;function Z(H){var R=H;return R&&te.string(R.newText)&&o.is(R.insert)&&o.is(R.replace)}q.is=Z})(Oe=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var xe;(function(q){q.asIs=1,q.adjustIndentation=2})(xe=t.InsertTextMode||(t.InsertTextMode={}));var Ue;(function(q){function X(Z){return{label:Z}}q.create=X})(Ue=t.CompletionItem||(t.CompletionItem={}));var Ze;(function(q){function X(Z,H){return{items:Z||[],isIncomplete:!!H}}q.create=X})(Ze=t.CompletionList||(t.CompletionList={}));var wn;(function(q){function X(H){return H.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}q.fromPlainText=X;function Z(H){var R=H;return te.string(R)||te.objectLiteral(R)&&te.string(R.language)&&te.string(R.value)}q.is=Z})(wn=t.MarkedString||(t.MarkedString={}));var tt;(function(q){function X(Z){var H=Z;return!!H&&te.objectLiteral(H)&&(ht.is(H.contents)||wn.is(H.contents)||te.typedArray(H.contents,wn.is))&&(Z.range===void 0||o.is(Z.range))}q.is=X})(tt=t.Hover||(t.Hover={}));var Mt;(function(q){function X(Z,H){return H?{label:Z,documentation:H}:{label:Z}}q.create=X})(Mt=t.ParameterInformation||(t.ParameterInformation={}));var Xr;(function(q){function X(Z,H){for(var R=[],$=2;$=0;Dt--){var nr=Qe[Dt],Rt=$.offsetAt(nr.range.start),Ye=$.offsetAt(nr.range.end);if(Ye<=It)fe=fe.substring(0,Rt)+nr.newText+fe.substring(Ye,fe.length);else throw new Error("Overlapping edit");It=Rt}return fe}q.applyEdits=H;function R($,ie){if($.length<=1)return $;var fe=$.length/2|0,Qe=$.slice(0,fe),It=$.slice(fe);R(Qe,ie),R(It,ie);for(var Dt=0,nr=0,Rt=0;Dt0&&X.push(Z.length),this._lineOffsets=X}return this._lineOffsets},q.prototype.positionAt=function(X){X=Math.max(Math.min(X,this._content.length),0);var Z=this.getLineOffsets(),H=0,R=Z.length;if(R===0)return a.create(0,X);for(;HX?R=$:H=$+1}var ie=H-1;return a.create(ie,X-Z[ie])},q.prototype.offsetAt=function(X){var Z=this.getLineOffsets();if(X.line>=Z.length)return this._content.length;if(X.line<0)return 0;var H=Z[X.line],R=X.line+1{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});var Qj=class{constructor(t){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{let r=this._sourceText.charAt(this._pos);return this._pos++,r},this.eat=r=>{if(this._testNextCharacter(r))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=r=>{let n=this._testNextCharacter(r),a=!1;for(n&&(a=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),a=!0;return a},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,a=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,a?"i":"g").test(this._sourceText.substr(this._pos,r.length)),o=r):r instanceof RegExp&&(s=this._sourceText.slice(this._pos).match(r),o=s&&s[0]),s!=null&&(typeof r=="string"||s instanceof Array&&this._sourceText.startsWith(s[0],this._pos))?(n&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),s):!1},this.backUp=r=>{this._pos-=r},this.column=()=>this._pos,this.indentation=()=>{let r=this._sourceText.match(/\s*/),n=0;if(r&&r.length!==0){let a=r[0],o=0;for(;a.length>o;)a.charCodeAt(o)===9?n+=2:n++,o++}return n},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=t}_testNextCharacter(t){let r=this._sourceText.charAt(this._pos),n=!1;return typeof t=="string"?n=r===t:n=t instanceof RegExp?t.test(r):t(r),n}};C1.default=Qj});var O1=U(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.p=Ni.t=Ni.butNot=Ni.list=Ni.opt=void 0;function $J(e){return{ofRule:e}}Ni.opt=$J;function eX(e,t){return{ofRule:e,isList:!0,separator:t}}Ni.list=eX;function tX(e,t){let r=e.match;return e.match=n=>{let a=!1;return r&&(a=r(n)),a&&t.every(o=>o.match&&!o.match(n))},e}Ni.butNot=tX;function rX(e,t){return{style:t,match:r=>r.kind===e}}Ni.t=rX;function nX(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}Ni.p=nX});var w1=U(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ParseRules=iu.LexRules=iu.isIgnored=void 0;var ue=O1(),iX=e=>e===" "||e===" "||e===","||e===` `||e==="\r"||e==="\uFEFF"||e==="\xA0";iu.isIgnored=iX;iu.LexRules={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:/^#.*/};iu.ParseRules={Document:[ue.list("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:[Yr("query"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Mutation:[Yr("mutation"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],Subscription:[Yr("subscription"),ue.opt(Vt("def")),ue.opt("VariableDefinitions"),ue.list("Directive"),"SelectionSet"],VariableDefinitions:[ue.p("("),ue.list("VariableDefinition"),ue.p(")")],VariableDefinition:["Variable",ue.p(":"),"Type",ue.opt("DefaultValue")],Variable:[ue.p("$","variable"),Vt("variable")],DefaultValue:[ue.p("="),"Value"],SelectionSet:[ue.p("{"),ue.list("Selection"),ue.p("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[Vt("property"),ue.p(":"),Vt("qualifier"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Field:[Vt("property"),ue.opt("Arguments"),ue.list("Directive"),ue.opt("SelectionSet")],Arguments:[ue.p("("),ue.list("Argument"),ue.p(")")],Argument:[Vt("attribute"),ue.p(":"),"Value"],FragmentSpread:[ue.p("..."),Vt("def"),ue.list("Directive")],InlineFragment:[ue.p("..."),ue.opt("TypeCondition"),ue.list("Directive"),"SelectionSet"],FragmentDefinition:[Yr("fragment"),ue.opt(ue.butNot(Vt("def"),[Yr("on")])),"TypeCondition",ue.list("Directive"),"SelectionSet"],TypeCondition:[Yr("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 e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[ue.t("Number","number")],StringValue:[ue.t("String","string")],BooleanValue:[ue.t("Name","builtin")],NullValue:[ue.t("Name","keyword")],EnumValue:[Vt("string-2")],ListValue:[ue.p("["),ue.list("Value"),ue.p("]")],ObjectValue:[ue.p("{"),ue.list("ObjectField"),ue.p("}")],ObjectField:[Vt("attribute"),ue.p(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[ue.p("["),"Type",ue.p("]"),ue.opt(ue.p("!"))],NonNullType:["NamedType",ue.opt(ue.p("!"))],NamedType:[aX("atom")],Directive:[ue.p("@","meta"),Vt("meta"),ue.opt("Arguments")],DirectiveDef:[Yr("directive"),ue.p("@","meta"),Vt("meta"),ue.opt("ArgumentsDef"),Yr("on"),ue.list("DirectiveLocation",ue.p("|"))],InterfaceDef:[Yr("interface"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],Implements:[Yr("implements"),ue.list("NamedType",ue.p("&"))],DirectiveLocation:[Vt("string-2")],SchemaDef:[Yr("schema"),ue.list("Directive"),ue.p("{"),ue.list("OperationTypeDef"),ue.p("}")],OperationTypeDef:[Vt("keyword"),ue.p(":"),Vt("atom")],ScalarDef:[Yr("scalar"),Vt("atom"),ue.list("Directive")],ObjectTypeDef:[Yr("type"),Vt("atom"),ue.opt("Implements"),ue.list("Directive"),ue.p("{"),ue.list("FieldDef"),ue.p("}")],FieldDef:[Vt("property"),ue.opt("ArgumentsDef"),ue.p(":"),"Type",ue.list("Directive")],ArgumentsDef:[ue.p("("),ue.list("InputValueDef"),ue.p(")")],InputValueDef:[Vt("attribute"),ue.p(":"),"Type",ue.opt("DefaultValue"),ue.list("Directive")],UnionDef:[Yr("union"),Vt("atom"),ue.list("Directive"),ue.p("="),ue.list("UnionMember",ue.p("|"))],UnionMember:["NamedType"],EnumDef:[Yr("enum"),Vt("atom"),ue.list("Directive"),ue.p("{"),ue.list("EnumValueDef"),ue.p("}")],EnumValueDef:[Vt("string-2"),ue.list("Directive")],InputDef:[Yr("input"),Vt("atom"),ue.list("Directive"),ue.p("{"),ue.list("InputValueDef"),ue.p("}")],ExtendDef:[Yr("extend"),"ObjectTypeDef"]};function Yr(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function Vt(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function aX(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.prevState&&t.prevState.prevState&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}});var Wj=U(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0});var N1=w1();function oX(e={eatWhitespace:t=>t.eatWhile(N1.isIgnored),lexRules:N1.LexRules,parseRules:N1.ParseRules,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return dp(e.parseRules,t,"Document"),t},token(t,r){return uX(t,r,e)}}}I1.default=oX;function uX(e,t,r){let{lexRules:n,parseRules:a,eatWhitespace:o,editorConfig:s}=r;if(t.rule&&t.rule.length===0?L1(t):t.needsAdvance&&(t.needsAdvance=!1,x1(t,!0)),e.sol()){let h=s&&s.tabSize||2;t.indentLevel=Math.floor(e.indentation()/h)}if(o(e))return"ws";let c=lX(n,e);if(!c)return e.match(/\S+/)||e.match(/\s/),dp(A1,t,"Invalid"),"invalidchar";if(c.kind==="Comment")return dp(A1,t,"Comment"),"comment";let d=Hj({},t);if(c.kind==="Punctuation"){if(/^[{([]/.test(c.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(c.value)){let h=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&h.length>0&&h[h.length-1]{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.RuleKinds=cs.AdditionalRuleKinds=void 0;var cX=Nt();cs.AdditionalRuleKinds={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"};cs.RuleKinds=Object.assign(Object.assign({},cX.Kind),cs.AdditionalRuleKinds)});var rc=U(At=>{"use strict";var fX=At&&At.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),dX=At&&At.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fX(t,e,r)},Jj=At&&At.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(At,"__esModule",{value:!0});At.onlineParser=At.t=At.p=At.opt=At.list=At.butNot=At.isIgnored=At.ParseRules=At.LexRules=At.CharacterStream=void 0;var pX=Kj();Object.defineProperty(At,"CharacterStream",{enumerable:!0,get:function(){return Jj(pX).default}});var R1=w1();Object.defineProperty(At,"LexRules",{enumerable:!0,get:function(){return R1.LexRules}});Object.defineProperty(At,"ParseRules",{enumerable:!0,get:function(){return R1.ParseRules}});Object.defineProperty(At,"isIgnored",{enumerable:!0,get:function(){return R1.isIgnored}});var pp=O1();Object.defineProperty(At,"butNot",{enumerable:!0,get:function(){return pp.butNot}});Object.defineProperty(At,"list",{enumerable:!0,get:function(){return pp.list}});Object.defineProperty(At,"opt",{enumerable:!0,get:function(){return pp.opt}});Object.defineProperty(At,"p",{enumerable:!0,get:function(){return pp.p}});Object.defineProperty(At,"t",{enumerable:!0,get:function(){return pp.t}});var hX=Wj();Object.defineProperty(At,"onlineParser",{enumerable:!0,get:function(){return Jj(hX).default}});dX(Yj(),At)});var Em=U(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.getTypeInfo=sn.canUseDirective=sn.runOnlineParser=sn.getTokenAtPosition=sn.getFragmentDefinitions=sn.getVariableCompletions=sn.getAutocompleteSuggestions=void 0;var Mr=k1(),fs=Nt(),Lt=Nt(),ye=rc(),rr=D1(),vX=e=>{let t=[];return e&&Lt.visit(Lt.parse(e,{experimentalFragmentVariables:!0}),{FragmentDefinition(r){t.push(r)}}),t};function gX(e,t,r,n,a){var o;let s=n||Zj(t,r),c=s.state.kind==="Invalid"?s.state.prevState:s.state;if(!c)return[];let d=c.kind,h=c.step,m=eM(e,s.state);if(d===ye.RuleKinds.DOCUMENT)return rr.hintList(s,[{label:"query",kind:Mr.CompletionItemKind.Function},{label:"mutation",kind:Mr.CompletionItemKind.Function},{label:"subscription",kind:Mr.CompletionItemKind.Function},{label:"fragment",kind:Mr.CompletionItemKind.Function},{label:"{",kind:Mr.CompletionItemKind.Constructor}]);if(d===ye.RuleKinds.IMPLEMENTS||d===ye.RuleKinds.NAMED_TYPE&&((o=c.prevState)===null||o===void 0?void 0:o.kind)===ye.RuleKinds.IMPLEMENTS)return bX(s,c,e,t,m);if(d===ye.RuleKinds.SELECTION_SET||d===ye.RuleKinds.FIELD||d===ye.RuleKinds.ALIASED_FIELD)return mX(s,m,e);if(d===ye.RuleKinds.ARGUMENTS||d===ye.RuleKinds.ARGUMENT&&h===0){let T=m.argDefs;if(T)return rr.hintList(s,T.map(b=>{var C;return{label:b.name,detail:String(b.type),documentation:(C=b.description)!==null&&C!==void 0?C:void 0,kind:Mr.CompletionItemKind.Variable,type:b.type}}))}if((d===ye.RuleKinds.OBJECT_VALUE||d===ye.RuleKinds.OBJECT_FIELD&&h===0)&&m.objectFieldDefs){let T=rr.objectValues(m.objectFieldDefs),b=d===ye.RuleKinds.OBJECT_VALUE?Mr.CompletionItemKind.Value:Mr.CompletionItemKind.Field;return rr.hintList(s,T.map(C=>{var L;return{label:C.name,detail:String(C.type),documentation:(L=C.description)!==null&&L!==void 0?L:void 0,kind:b,type:C.type}}))}if(d===ye.RuleKinds.ENUM_VALUE||d===ye.RuleKinds.LIST_VALUE&&h===1||d===ye.RuleKinds.OBJECT_FIELD&&h===2||d===ye.RuleKinds.ARGUMENT&&h===2)return yX(s,m,t,e);if(d===ye.RuleKinds.VARIABLE&&h===1){let T=Lt.getNamedType(m.inputType),b=F1(t,e);return rr.hintList(s,b.filter(C=>C.detail===(T==null?void 0:T.name)))}return d===ye.RuleKinds.TYPE_CONDITION&&h===1||d===ye.RuleKinds.NAMED_TYPE&&c.prevState!=null&&c.prevState.kind===ye.RuleKinds.TYPE_CONDITION?EX(s,m,e,d):d===ye.RuleKinds.FRAGMENT_SPREAD&&h===1?TX(s,m,e,t,Array.isArray(a)?a:vX(a)):d===ye.RuleKinds.VARIABLE_DEFINITION&&h===2||d===ye.RuleKinds.LIST_TYPE&&h===1||d===ye.RuleKinds.NAMED_TYPE&&c.prevState&&(c.prevState.kind===ye.RuleKinds.VARIABLE_DEFINITION||c.prevState.kind===ye.RuleKinds.LIST_TYPE||c.prevState.kind===ye.RuleKinds.NON_NULL_TYPE)?SX(s,e,d):d===ye.RuleKinds.DIRECTIVE?DX(s,c,e,d):[]}sn.getAutocompleteSuggestions=gX;function mX(e,t,r){if(t.parentType){let n=t.parentType,a=[];return"getFields"in n&&(a=rr.objectValues(n.getFields())),Lt.isCompositeType(n)&&a.push(Lt.TypeNameMetaFieldDef),n===r.getQueryType()&&a.push(Lt.SchemaMetaFieldDef,Lt.TypeMetaFieldDef),rr.hintList(e,a.map((o,s)=>{var c;return{sortText:String(s)+o.name,label:o.name,detail:String(o.type),documentation:(c=o.description)!==null&&c!==void 0?c:void 0,deprecated:o.isDeprecated,isDeprecated:o.isDeprecated,deprecationReason:o.deprecationReason,kind:Mr.CompletionItemKind.Field,type:o.type}}))}return[]}function yX(e,t,r,n){let a=Lt.getNamedType(t.inputType),o=F1(r,n,!0).filter(s=>s.detail===a.name);if(a instanceof Lt.GraphQLEnumType){let s=a.getValues();return rr.hintList(e,s.map(c=>{var d;return{label:c.name,detail:String(a),documentation:(d=c.description)!==null&&d!==void 0?d:void 0,deprecated:c.isDeprecated,isDeprecated:c.isDeprecated,deprecationReason:c.deprecationReason,kind:Mr.CompletionItemKind.EnumMember,type:a}}).concat(o))}else if(a===Lt.GraphQLBoolean)return rr.hintList(e,o.concat([{label:"true",detail:String(Lt.GraphQLBoolean),documentation:"Not false.",kind:Mr.CompletionItemKind.Variable,type:Lt.GraphQLBoolean},{label:"false",detail:String(Lt.GraphQLBoolean),documentation:"Not true.",kind:Mr.CompletionItemKind.Variable,type:Lt.GraphQLBoolean}]));return o}function bX(e,t,r,n,a){if(t.needsSeperator)return[];let o=r.getTypeMap(),s=rr.objectValues(o).filter(fs.isInterfaceType),c=s.map(({name:C})=>C),d=new Set;hp(n,(C,L)=>{var S,y,_,g,k;if(L.name&&(L.kind===ye.RuleKinds.INTERFACE_DEF&&!c.includes(L.name)&&d.add(L.name),L.kind===ye.RuleKinds.NAMED_TYPE&&((S=L.prevState)===null||S===void 0?void 0:S.kind)===ye.RuleKinds.IMPLEMENTS)){if(a.interfaceDef){if((y=a.interfaceDef)===null||y===void 0?void 0:y.getInterfaces().find(({name:F})=>F===L.name))return;let w=r.getType(L.name),D=(_=a.interfaceDef)===null||_===void 0?void 0:_.toConfig();a.interfaceDef=new fs.GraphQLInterfaceType(Object.assign(Object.assign({},D),{interfaces:[...D.interfaces,w||new fs.GraphQLInterfaceType({name:L.name,fields:{}})]}))}else if(a.objectTypeDef){if((g=a.objectTypeDef)===null||g===void 0?void 0:g.getInterfaces().find(({name:F})=>F===L.name))return;let w=r.getType(L.name),D=(k=a.objectTypeDef)===null||k===void 0?void 0:k.toConfig();a.objectTypeDef=new fs.GraphQLObjectType(Object.assign(Object.assign({},D),{interfaces:[...D.interfaces,w||new fs.GraphQLInterfaceType({name:L.name,fields:{}})]}))}}});let h=a.interfaceDef||a.objectTypeDef,T=((h==null?void 0:h.getInterfaces())||[]).map(({name:C})=>C),b=s.concat([...d].map(C=>({name:C}))).filter(({name:C})=>C!==(h==null?void 0:h.name)&&!T.includes(C));return rr.hintList(e,b.map(C=>{let L={label:C.name,kind:Mr.CompletionItemKind.Interface,type:C};return(C==null?void 0:C.description)&&(L.documentation=C.description),L}))}function EX(e,t,r,n){let a;if(t.parentType)if(Lt.isAbstractType(t.parentType)){let o=Lt.assertAbstractType(t.parentType),s=r.getPossibleTypes(o),c=Object.create(null);s.forEach(d=>{d.getInterfaces().forEach(h=>{c[h.name]=h})}),a=s.concat(rr.objectValues(c))}else a=[t.parentType];else{let o=r.getTypeMap();a=rr.objectValues(o).filter(Lt.isCompositeType)}return rr.hintList(e,a.map(o=>{let s=Lt.getNamedType(o);return{label:String(o),documentation:s&&s.description||"",kind:Mr.CompletionItemKind.Field}}))}function TX(e,t,r,n,a){if(!n)return[];let o=r.getTypeMap(),s=rr.getDefinitionState(e.state),c=Xj(n);a&&a.length>0&&c.push(...a);let d=c.filter(h=>o[h.typeCondition.name.value]&&!(s&&s.kind===ye.RuleKinds.FRAGMENT_DEFINITION&&s.name===h.name.value)&&Lt.isCompositeType(t.parentType)&&Lt.isCompositeType(o[h.typeCondition.name.value])&&Lt.doTypesOverlap(r,t.parentType,o[h.typeCondition.name.value]));return rr.hintList(e,d.map(h=>({label:h.name.value,detail:String(o[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,kind:Mr.CompletionItemKind.Field,type:o[h.typeCondition.name.value]})))}var _X=(e,t)=>{var r,n,a,o,s,c,d,h,m,T;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((a=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||a===void 0?void 0:a.kind)===t)return e.prevState.prevState;if(((c=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((T=(m=(h=(d=e.prevState)===null||d===void 0?void 0:d.prevState)===null||h===void 0?void 0:h.prevState)===null||m===void 0?void 0:m.prevState)===null||T===void 0?void 0:T.kind)===t)return e.prevState.prevState.prevState.prevState};function F1(e,t,r=!1){let n,a,o=Object.create({});return hp(e,(s,c)=>{if(c.kind===ye.RuleKinds.VARIABLE&&c.name&&(n=c.name),c.kind===ye.RuleKinds.NAMED_TYPE&&n){let d=_X(c,ye.RuleKinds.TYPE);(d==null?void 0:d.type)&&(a=t.getType(d==null?void 0:d.type))}n&&a&&(o[n]||(o[n]={detail:a.toString(),label:`$${n}`,type:a,kind:Mr.CompletionItemKind.Variable},r&&(o[n].insertText=`$${n}`),n=null,a=null))}),rr.objectValues(o)}sn.getVariableCompletions=F1;function Xj(e){let t=[];return hp(e,(r,n)=>{n.kind===ye.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ye.RuleKinds.FRAGMENT_DEFINITION,name:{kind:"Name",value:n.name},selectionSet:{kind:ye.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:ye.RuleKinds.NAMED_TYPE,name:{kind:"Name",value:n.type}}})}),t}sn.getFragmentDefinitions=Xj;function SX(e,t,r){let n=t.getTypeMap(),a=rr.objectValues(n).filter(Lt.isInputType);return rr.hintList(e,a.map(o=>({label:o.name,documentation:o.description,kind:Mr.CompletionItemKind.Variable})))}function DX(e,t,r,n){if(t.prevState&&t.prevState.kind){let a=r.getDirectives().filter(o=>$j(t.prevState,o));return rr.hintList(e,a.map(o=>({label:o.name,documentation:o.description||"",kind:Mr.CompletionItemKind.Function})))}return[]}function Zj(e,t){let r=null,n=null,a=null,o=hp(e,(s,c,d,h)=>{if(h===t.line&&s.getCurrentPosition()>=t.character)return r=d,n=Object.assign({},c),a=s.current(),"BREAK"});return{start:o.start,end:o.end,string:a||o.string,state:n||o.state,style:r||o.style}}sn.getTokenAtPosition=Zj;function hp(e,t){let r=e.split(` `),n=ye.onlineParser(),a=n.startState(),o="",s=new ye.CharacterStream("");for(let c=0;c{switch(C.kind){case ye.RuleKinds.QUERY:case"ShortQuery":T=e.getQueryType();break;case ye.RuleKinds.MUTATION:T=e.getMutationType();break;case ye.RuleKinds.SUBSCRIPTION:T=e.getSubscriptionType();break;case ye.RuleKinds.INLINE_FRAGMENT:case ye.RuleKinds.FRAGMENT_DEFINITION:C.type&&(T=e.getType(C.type));break;case ye.RuleKinds.FIELD:case ye.RuleKinds.ALIASED_FIELD:{!T||!C.name?s=null:(s=m?rr.getFieldDef(e,m,C.name):null,T=s?s.type:null);break}case ye.RuleKinds.SELECTION_SET:m=Lt.getNamedType(T);break;case ye.RuleKinds.DIRECTIVE:a=C.name?e.getDirective(C.name):null;break;case ye.RuleKinds.INTERFACE_DEF:C.name&&(d=null,b=new fs.GraphQLInterfaceType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.OBJECT_TYPE_DEF:C.name&&(b=null,d=new fs.GraphQLObjectType({name:C.name,interfaces:[],fields:{}}));break;case ye.RuleKinds.ARGUMENTS:{if(!C.prevState)n=null;else switch(C.prevState.kind){case ye.RuleKinds.FIELD:n=s&&s.args;break;case ye.RuleKinds.DIRECTIVE:n=a&&a.args;break;case ye.RuleKinds.ALIASED_FIELD:{let g=C.prevState&&C.prevState.name;if(!g){n=null;break}let k=m?rr.getFieldDef(e,m,g):null;if(!k){n=null;break}n=k.args;break}default:n=null;break}break}case ye.RuleKinds.ARGUMENT:if(n){for(let g=0;gg.value===C.name):null;break;case ye.RuleKinds.LIST_VALUE:let S=Lt.getNullableType(c);c=S instanceof Lt.GraphQLList?S.ofType:null;break;case ye.RuleKinds.OBJECT_VALUE:let y=Lt.getNamedType(c);h=y instanceof Lt.GraphQLInputObjectType?y.getFields():null;break;case ye.RuleKinds.OBJECT_FIELD:let _=C.name&&h?h[C.name]:null;c=_&&_.type;break;case ye.RuleKinds.NAMED_TYPE:C.name&&(T=e.getType(C.name));break}}),{argDef:r,argDefs:n,directiveDef:a,enumValue:o,fieldDef:s,inputType:c,objectFieldDefs:h,parentType:m,type:T,interfaceDef:b,objectTypeDef:d}}sn.getTypeInfo=eM;function kX(e,t){for(let r=0;r{"use strict";var tM=Un&&Un.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(T){s(T)}}function d(m){try{h(n.throw(m))}catch(T){s(T)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(Un,"__esModule",{value:!0});Un.getDefinitionQueryResultForDefinitionNode=Un.getDefinitionQueryResultForFragmentSpread=Un.getDefinitionQueryResultForNamedType=Un.LANGUAGE=void 0;var rM=is();Un.LANGUAGE="GraphQL";function P1(e,t){if(!e)throw new Error(t)}function vp(e,t){let r=t.loc;return P1(r,"Expected ASTNode to have a location."),rM.locToRange(e,r)}function nM(e,t){let r=t.loc;return P1(r,"Expected ASTNode to have a location."),rM.offsetToPosition(e,r.start)}function CX(e,t,r){return tM(this,void 0,void 0,function*(){let n=t.name.value,a=r.filter(({definition:s})=>s.name&&s.name.value===n);if(a.length===0)throw Error(`Definition not found for GraphQL type ${n}`);let o=a.map(({filePath:s,content:c,definition:d})=>NX(s||"",c,d));return{definitions:o,queryRange:o.map(s=>vp(e,t))}})}Un.getDefinitionQueryResultForNamedType=CX;function OX(e,t,r){return tM(this,void 0,void 0,function*(){let n=t.name.value,a=r.filter(({definition:s})=>s.name.value===n);if(a.length===0)throw Error(`Definition not found for GraphQL fragment ${n}`);let o=a.map(({filePath:s,content:c,definition:d})=>iM(s||"",c,d));return{definitions:o,queryRange:o.map(s=>vp(e,t))}})}Un.getDefinitionQueryResultForFragmentSpread=OX;function wX(e,t,r){return{definitions:[iM(e,t,r)],queryRange:r.name?[vp(t,r.name)]:[]}}Un.getDefinitionQueryResultForDefinitionNode=wX;function iM(e,t,r){let n=r.name;if(!n)throw Error("Expected ASTNode to have a Name.");return{path:e,position:nM(t,r),range:vp(t,r),name:n.value||"",language:Un.LANGUAGE,projectRoot:e}}function NX(e,t,r){let n=r.name;return P1(n,"Expected ASTNode to have a Name."),{path:e,position:nM(t,r),range:vp(t,r),name:n.value||"",language:Un.LANGUAGE,projectRoot:e}}});var M1=U(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getRange=xr.validateQuery=xr.getDiagnostics=xr.DIAGNOSTIC_SEVERITY=xr.SEVERITY=void 0;var AX=Nt(),aM=Nt(),oM=rc(),ds=is();xr.SEVERITY={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};xr.DIAGNOSTIC_SEVERITY={[xr.SEVERITY.Error]:1,[xr.SEVERITY.Warning]:2,[xr.SEVERITY.Information]:3,[xr.SEVERITY.Hint]:4};var Tm=(e,t)=>{if(!e)throw new Error(t)};function LX(e,t=null,r,n,a){let o=null;a&&(typeof a=="string"?e+=` `+a:e+=` `+a.reduce((s,c)=>(s+=AX.print(c)+` `,s),""));try{o=aM.parse(e)}catch(s){let c=cM(s.locations[0],e);return[{severity:xr.DIAGNOSTIC_SEVERITY.Error,message:s.message,source:"GraphQL: Syntax",range:c}]}return uM(o,t,r,n)}xr.getDiagnostics=LX;function uM(e,t=null,r,n){if(!t)return[];let a=sM(ds.validateWithCustomRules(t,e,r,n),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=sM(aM.findDeprecatedUsages(t,e),s=>lM(s,xr.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return a.concat(o)}xr.validateQuery=uM;function sM(e,t){return Array.prototype.concat.apply([],e.map(t))}function lM(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(a=>{let o=a.kind!=="Variable"&&"name"in a&&a.name!==void 0?a.name:"variable"in a&&a.variable!==void 0?a.variable:a;if(o){Tm(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],c=xX(o),d=s.column+(c.end-c.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new ds.Range(new ds.Position(s.line-1,s.column-1),new ds.Position(s.line-1,d))})}}),n}function cM(e,t){let r=oM.onlineParser(),n=r.startState(),a=t.split(` `);Tm(a.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});_m.getOutline=void 0;var q1=Nt(),fM=is(),{INLINE_FRAGMENT:IX}=q1.Kind;function RX(e){let t;try{t=q1.parse(e)}catch(a){return null}let r=FX(e);return{outlineTrees:q1.visit(t,{leave(a){return r!==void 0&&a.kind in r?r[a.kind](a):null}})}}_m.getOutline=RX;function FX(e){let t=r=>({representativeName:r.name,startPosition:fM.offsetToPosition(e,r.loc.start),endPosition:fM.offsetToPosition(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[Ut("plain",r.alias),Ut("plain",": ")]:[];return n.push(Ut("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[Ut("keyword",r.operation),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>PX(r.selections,n=>n.kind===IX?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","fragment"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","interface"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","enum"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","type"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[Ut("keyword","input"),Ut("whitespace"," "),Ut("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[Ut("plain","..."),Ut("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[Ut("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function Ut(e,t){return{kind:e,value:t}}function PX(e,t){let r=[];for(let n=0;n{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.getHoverInformation=void 0;var dM=Nt(),pM=Em();function jX(e,t,r,n){let a=n||pM.getTokenAtPosition(t,r);if(!e||!a||!a.state)return"";let o=a.state,s=o.kind,c=o.step,d=pM.getTypeInfo(e,a.state),h={schema:e};if(s==="Field"&&c===0&&d.fieldDef||s==="AliasedField"&&c===2&&d.fieldDef){let m=[];return MX(m,d,h),gp(m,h,d.fieldDef),m.join("").trim()}else if(s==="Directive"&&c===1&&d.directiveDef){let m=[];return vM(m,d,h),gp(m,h,d.directiveDef),m.join("").trim()}else if(s==="Argument"&&c===0&&d.argDef){let m=[];return qX(m,d,h),gp(m,h,d.argDef),m.join("").trim()}else if(s==="EnumValue"&&d.enumValue&&"description"in d.enumValue){let m=[];return BX(m,d,h),gp(m,h,d.enumValue),m.join("").trim()}else if(s==="NamedType"&&d.type&&"description"in d.type){let m=[];return nc(m,d,h,d.type),gp(m,h,d.type),m.join("").trim()}return""}Sm.getHoverInformation=jX;function MX(e,t,r){hM(e,t,r),gM(e,t,r,t.type)}function hM(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(nc(e,t,r,t.parentType),qr(e,".")),qr(e,n)}function vM(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;qr(e,n)}function qX(e,t,r){if(t.directiveDef?vM(e,t,r):t.fieldDef&&hM(e,t,r),!t.argDef)return;let n=t.argDef.name;qr(e,"("),qr(e,n),gM(e,t,r,t.inputType),qr(e,")")}function gM(e,t,r,n){qr(e,": "),nc(e,t,r,n)}function BX(e,t,r){if(!t.enumValue)return;let n=t.enumValue.name;nc(e,t,r,t.inputType),qr(e,"."),qr(e,n)}function nc(e,t,r,n){!n||(n instanceof dM.GraphQLNonNull?(nc(e,t,r,n.ofType),qr(e,"!")):n instanceof dM.GraphQLList?(qr(e,"["),nc(e,t,r,n.ofType),qr(e,"]")):qr(e,n.name))}function gp(e,t,r){if(!r)return;let n=typeof r.description=="string"?r.description:null;n&&(qr(e,` `),qr(e,n)),VX(e,t,r)}function VX(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(qr(e,` `),qr(e,"Deprecated: "),qr(e,n))}function qr(e,t){e.push(t)}});var kM=U(ic=>{"use strict";var au=ic&&ic.__awaiter||function(e,t,r,n){function a(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function c(m){try{h(n.next(m))}catch(T){s(T)}}function d(m){try{h(n.throw(m))}catch(T){s(T)}}function h(m){m.done?o(m.value):a(m.value).then(c,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(ic,"__esModule",{value:!0});ic.GraphQLLanguageService=void 0;var ni=k1(),Jr=Nt(),UX=Em(),GX=V1(),U1=M1(),G1=j1(),QX=B1(),KX=is(),{FRAGMENT_DEFINITION:mM,OBJECT_TYPE_DEFINITION:yM,INTERFACE_TYPE_DEFINITION:bM,ENUM_TYPE_DEFINITION:EM,UNION_TYPE_DEFINITION:HX,SCALAR_TYPE_DEFINITION:TM,INPUT_OBJECT_TYPE_DEFINITION:_M,SCALAR_TYPE_EXTENSION:zX,OBJECT_TYPE_EXTENSION:WX,INTERFACE_TYPE_EXTENSION:YX,UNION_TYPE_EXTENSION:JX,ENUM_TYPE_EXTENSION:XX,INPUT_OBJECT_TYPE_EXTENSION:ZX,DIRECTIVE_DEFINITION:$X,FRAGMENT_SPREAD:eZ,OPERATION_DEFINITION:tZ,NAMED_TYPE:rZ}=Jr.Kind,SM={[Jr.Kind.FIELD]:ni.SymbolKind.Field,[Jr.Kind.OPERATION_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.FRAGMENT_SPREAD]:ni.SymbolKind.Struct,[Jr.Kind.OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.ENUM_TYPE_DEFINITION]:ni.SymbolKind.Enum,[Jr.Kind.ENUM_VALUE_DEFINITION]:ni.SymbolKind.EnumMember,[Jr.Kind.INPUT_OBJECT_TYPE_DEFINITION]:ni.SymbolKind.Class,[Jr.Kind.INPUT_VALUE_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.FIELD_DEFINITION]:ni.SymbolKind.Field,[Jr.Kind.INTERFACE_TYPE_DEFINITION]:ni.SymbolKind.Interface,[Jr.Kind.DOCUMENT]:ni.SymbolKind.File,FieldWithArguments:ni.SymbolKind.Method};function nZ(e){return e.kind==="FieldDefinition"&&e.children&&e.children.length>0?SM.FieldWithArguments:SM[e.kind]}var DM=class{constructor(t){this._graphQLCache=t,this._graphQLConfig=t.getGraphQLConfig()}getConfigForURI(t){let r=this._graphQLCache.getProjectForFile(t);if(r)return r;throw Error(`No config found for uri: ${t}`)}getDiagnostics(t,r,n){return au(this,void 0,void 0,function*(){let a=!1,o=this.getConfigForURI(r);if(!o)return[];let{schema:s,name:c,extensions:d}=o;try{let y=Jr.parse(t);(!s||r!==s)&&(a=y.definitions.some(_=>{switch(_.kind){case yM:case bM:case EM:case HX:case TM:case _M:case zX:case WX:case YX:case JX:case XX:case ZX:case $X:return!0}return!1}))}catch(y){let _=U1.getRange(y.locations[0],t);return[{severity:U1.DIAGNOSTIC_SEVERITY.Error,message:y.message,source:"GraphQL: Syntax",range:_}]}let h=t,m=yield this._graphQLCache.getFragmentDefinitions(o),b=(yield this._graphQLCache.getFragmentDependencies(t,m)).reduce((y,_)=>`${y} ${Jr.print(_.definition)}`,"");h=`${h} ${b}`;let C=null;try{C=Jr.parse(h)}catch(y){return[]}let L=null;(d==null?void 0:d.customValidationRules)&&typeof d.customValidationRules=="function"&&(L=d.customValidationRules(this._graphQLConfig));let S=yield this._graphQLCache.getSchema(c,a);return S?U1.validateQuery(C,S,L,n):[]})}getAutocompleteSuggestions(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name),s=yield this._graphQLCache.getFragmentDefinitions(a),c=Array.from(s).map(([,d])=>d.definition);return o?UX.getAutocompleteSuggestions(o,t,r,void 0,c):[]})}getHoverInformation(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(a.name);return o?GX.getHoverInformation(o,t,r):""})}getDefinition(t,r,n){return au(this,void 0,void 0,function*(){let a=this.getConfigForURI(n),o;try{o=Jr.parse(t)}catch(c){return null}let s=KX.getASTNodeAtPosition(t,o,r);if(s)switch(s.kind){case eZ:return this._getDefinitionForFragmentSpread(t,o,s,n,a);case mM:case tZ:return G1.getDefinitionQueryResultForDefinitionNode(n,t,s);case rZ:return this._getDefinitionForNamedType(t,o,s,n,a)}return null})}getDocumentSymbols(t,r){return au(this,void 0,void 0,function*(){let n=yield this.getOutline(t);if(!n)return[];let a=[],o=n.outlineTrees.map(s=>[null,s]);for(;o.length>0;){let s=o.pop();if(!s)return[];let[c,d]=s;if(!d)return[];a.push({name:d.representativeName,kind:nZ(d),location:{uri:r,range:{start:d.startPosition,end:d.endPosition}},containerName:c?c.representativeName:void 0}),o.push(...d.children.map(h=>[d,h]))}return a})}_getDefinitionForNamedType(t,r,n,a,o){return au(this,void 0,void 0,function*(){let s=yield this._graphQLCache.getObjectTypeDefinitions(o),c=yield this._graphQLCache.getObjectTypeDependenciesForAST(r,s),m=r.definitions.filter(b=>b.kind===yM||b.kind===_M||b.kind===EM||b.kind===TM||b.kind===bM).map(b=>({filePath:a,content:t,definition:b}));return yield G1.getDefinitionQueryResultForNamedType(t,n,c.concat(m))})}_getDefinitionForFragmentSpread(t,r,n,a,o){return au(this,void 0,void 0,function*(){let s=yield this._graphQLCache.getFragmentDefinitions(o),c=yield this._graphQLCache.getFragmentDependenciesForAST(r,s),m=r.definitions.filter(b=>b.kind===mM).map(b=>({filePath:a,content:t,definition:b}));return yield G1.getDefinitionQueryResultForFragmentSpread(t,n,c.concat(m))})}getOutline(t){return au(this,void 0,void 0,function*(){return QX.getOutline(t)})}};ic.GraphQLLanguageService=DM});var Q1=U(Dn=>{"use strict";var iZ=Dn&&Dn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),mp=Dn&&Dn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&iZ(t,e,r)};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getHoverInformation=Dn.getOutline=void 0;mp(D1(),Dn);mp(Em(),Dn);mp(j1(),Dn);mp(M1(),Dn);var aZ=B1();Object.defineProperty(Dn,"getOutline",{enumerable:!0,get:function(){return aZ.getOutline}});var oZ=V1();Object.defineProperty(Dn,"getHoverInformation",{enumerable:!0,get:function(){return oZ.getHoverInformation}});mp(kM(),Dn)});var CM=U(km=>{"use strict";var uZ=km&&km.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(km,"__esModule",{value:!0});var Dm=uZ(ct());op();var sZ=Q1(),lZ=is();Dm.default.registerHelper("hint","graphql",function(e,t){var r=t.schema;if(!!r){var n=e.getCursor(),a=e.getTokenAt(n),o=a.type!==null&&/"|\w/.test(a.string[0])?a.start:a.end,s=new lZ.Position(n.line,o),c=sZ.getAutocompleteSuggestions(r,e.getValue(),s,a,t.externalFragments),d={list:c.map(function(h){return{text:h.label,type:h.type,description:h.documentation,isDeprecated:h.isDeprecated,deprecationReason:h.deprecationReason}}),from:{line:n.line,ch:o},to:{line:n.line,ch:a.end}};return d&&d.list&&d.list.length>0&&(d.from=Dm.default.Pos(d.from.line,d.from.ch),d.to=Dm.default.Pos(d.to.line,d.to.ch),Dm.default.signal(e,"hasCompletion",e,d,a)),d}})});var wM=U(Cm=>{"use strict";var cZ=Cm&&Cm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cm,"__esModule",{value:!0});var K1=cZ(ct()),fZ=Q1(),OM=["error","warning","information","hint"],dZ={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};K1.default.registerHelper("lint","graphql",function(e,t){var r=t.schema,n=fZ.getDiagnostics(e,r,t.validationRules,void 0,t.externalFragments),a=n.map(function(o){return{message:o.message,severity:o.severity?OM[o.severity-1]:OM[0],type:o.source?dZ[o.source]:void 0,from:K1.default.Pos(o.range.start.line,o.range.start.character),to:K1.default.Pos(o.range.end.line,o.range.end.character)}});return a})});var z1=U(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0});function pZ(e,t){for(var r=[],n=e;n&&n.kind;)r.push(n),n=n.prevState;for(var a=r.length-1;a>=0;a--)t(r[a])}H1.default=pZ});var W1=U(yp=>{"use strict";var hZ=yp&&yp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yp,"__esModule",{value:!0});var ou=Nt(),ac=Mn(),vZ=hZ(z1());function gZ(e,t){var r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return vZ.default(t,function(n){switch(n.kind){case"Query":case"ShortQuery":r.type=e.getQueryType();break;case"Mutation":r.type=e.getMutationType();break;case"Subscription":r.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":n.type&&(r.type=e.getType(n.type));break;case"Field":case"AliasedField":r.fieldDef=r.type&&n.name?NM(e,r.parentType,n.name):null,r.type=r.fieldDef&&r.fieldDef.type;break;case"SelectionSet":r.parentType=r.type?ou.getNamedType(r.type):null;break;case"Directive":r.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":var a=n.prevState?n.prevState.kind==="Field"?r.fieldDef:n.prevState.kind==="Directive"?r.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&NM(e,r.parentType,n.prevState.name):null:null;r.argDefs=a?a.args:null;break;case"Argument":if(r.argDef=null,r.argDefs){for(var o=0;o{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getTypeReference=Ai.getEnumValueReference=Ai.getArgumentReference=Ai.getDirectiveReference=Ai.getFieldReference=void 0;var yZ=Nt();function bZ(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:AM(e.fieldDef)?null:e.parentType}}Ai.getFieldReference=bZ;function EZ(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}Ai.getDirectiveReference=EZ;function TZ(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:AM(e.fieldDef)?null:e.parentType}}Ai.getArgumentReference=TZ;function _Z(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?yZ.getNamedType(e.inputType):void 0}}Ai.getEnumValueReference=_Z;function SZ(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}Ai.getTypeReference=SZ;function AM(e){return e.name.slice(0,2)==="__"}});var J1=U(Om=>{"use strict";var DZ=Om&&Om.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Om,"__esModule",{value:!0});var ln=DZ(ct());ln.default.defineOption("info",!1,function(e,t,r){if(r&&r!==ln.default.Init){var n=e.state.info.onMouseOver;ln.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=kZ(t);a.onMouseOver=OZ.bind(null,e),ln.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}});function kZ(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function CZ(e){var t=e.state.info.options;return t&&t.hoverTime||500}function OZ(e,t){var r=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&!(n.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var a=n.getBoundingClientRect(),o=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(c,d)},s=function(){ln.default.off(document,"mousemove",o),ln.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},c=function(){ln.default.off(document,"mousemove",o),ln.default.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,wZ(e,a)},d=CZ(e);r.hoverTimeout=setTimeout(c,d),ln.default.on(document,"mousemove",o),ln.default.on(e.getWrapperElement(),"mouseout",s)}}function wZ(e,t){var r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,a=n.options,o=a.render||e.getHelper(r,"info");if(o){var s=e.getTokenAt(r,!0);if(s){var c=o(s,a,e,r);c&&NZ(e,t,c)}}}function NZ(e,t,r){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(r),document.body.appendChild(n);var a=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=a.right-a.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),c=a.bottom-a.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);var h=Math.max(0,window.innerWidth-s-15);h>t.left&&(h=t.left),n.style.opacity="1",n.style.top=d+"px",n.style.left=h+"px";var m,T=function(){clearTimeout(m)},b=function(){clearTimeout(m),m=setTimeout(C,200)},C=function(){ln.default.off(n,"mouseover",T),ln.default.off(n,"mouseout",b),ln.default.off(e.getWrapperElement(),"mouseout",b),n.style.opacity?(n.style.opacity="0",setTimeout(function(){n.parentNode&&n.parentNode.removeChild(n)},600)):n.parentNode&&n.parentNode.removeChild(n)};ln.default.on(n,"mouseover",T),ln.default.on(n,"mouseout",b),ln.default.on(e.getWrapperElement(),"mouseout",b)}});var PM=U(wm=>{"use strict";var LM=wm&&wm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wm,"__esModule",{value:!0});var xM=Nt(),AZ=LM(ct()),LZ=LM(W1()),bp=Y1();J1();AZ.default.registerHelper("info","graphql",function(e,t){if(!(!t.schema||!e.state)){var r=e.state,n=r.kind,a=r.step,o=LZ.default(t.schema,e.state);if(n==="Field"&&a===0&&o.fieldDef||n==="AliasedField"&&a===2&&o.fieldDef){var s=document.createElement("div");return xZ(s,o,t),Ep(s,t,o.fieldDef),s}else if(n==="Directive"&&a===1&&o.directiveDef){var s=document.createElement("div");return RM(s,o,t),Ep(s,t,o.directiveDef),s}else if(n==="Argument"&&a===0&&o.argDef){var s=document.createElement("div");return IZ(s,o,t),Ep(s,t,o.argDef),s}else if(n==="EnumValue"&&o.enumValue&&o.enumValue.description){var s=document.createElement("div");return RZ(s,o,t),Ep(s,t,o.enumValue),s}else if(n==="NamedType"&&o.type&&o.type.description){var s=document.createElement("div");return oc(s,o,t,o.type),Ep(s,t,o.type),s}}});function xZ(e,t,r){IM(e,t,r),FM(e,t,r,t.type)}function IM(e,t,r){var n,a=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||"";a.slice(0,2)!=="__"&&(oc(e,t,r,t.parentType),ii(e,".")),ii(e,a,"field-name",r,bp.getFieldReference(t))}function RM(e,t,r){var n,a="@"+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||"");ii(e,a,"directive-name",r,bp.getDirectiveReference(t))}function IZ(e,t,r){var n;t.directiveDef?RM(e,t,r):t.fieldDef&&IM(e,t,r);var a=((n=t.argDef)===null||n===void 0?void 0:n.name)||"";ii(e,"("),ii(e,a,"arg-name",r,bp.getArgumentReference(t)),FM(e,t,r,t.inputType),ii(e,")")}function FM(e,t,r,n){ii(e,": "),oc(e,t,r,n)}function RZ(e,t,r){var n,a=((n=t.enumValue)===null||n===void 0?void 0:n.name)||"";oc(e,t,r,t.inputType),ii(e,"."),ii(e,a,"enum-value",r,bp.getEnumValueReference(t))}function oc(e,t,r,n){n instanceof xM.GraphQLNonNull?(oc(e,t,r,n.ofType),ii(e,"!")):n instanceof xM.GraphQLList?(ii(e,"["),oc(e,t,r,n.ofType),ii(e,"]")):ii(e,(n==null?void 0:n.name)||"","type-name",r,bp.getTypeReference(t,n))}function Ep(e,t,r){var n=r.description;if(n){var a=document.createElement("div");a.className="info-description",t.renderDescription?a.innerHTML=t.renderDescription(n):a.appendChild(document.createTextNode(n)),e.appendChild(a)}FZ(e,t,r)}function FZ(e,t,r){var n=r.deprecationReason;if(n){var a=document.createElement("div");a.className="info-deprecation",t.renderDescription?a.innerHTML=t.renderDescription(n):a.appendChild(document.createTextNode(n));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),a.insertBefore(o,a.firstChild),e.appendChild(a)}}function ii(e,t,r,n,a){if(r===void 0&&(r=""),n===void 0&&(n={onClick:null}),a===void 0&&(a=null),r){var o=n.onClick,s=void 0;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",function(c){o(a,c)})):s=document.createElement("span"),s.className=r,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}});var qM=U(Nm=>{"use strict";var PZ=Nm&&Nm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nm,"__esModule",{value:!0});var Li=PZ(ct());Li.default.defineOption("jump",!1,function(e,t,r){if(r&&r!==Li.default.Init){var n=e.state.jump.onMouseOver;Li.default.off(e.getWrapperElement(),"mouseover",n);var a=e.state.jump.onMouseOut;Li.default.off(e.getWrapperElement(),"mouseout",a),Li.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var o=e.state.jump={options:t,onMouseOver:jZ.bind(null,e),onMouseOut:MZ.bind(null,e),onKeyDown:qZ.bind(null,e)};Li.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver),Li.default.on(e.getWrapperElement(),"mouseout",o.onMouseOut),Li.default.on(document,"keydown",o.onKeyDown)}});function jZ(e,t){var r=t.target||t.srcElement;if(r instanceof HTMLElement&&(r==null?void 0:r.nodeName)==="SPAN"){var n=r.getBoundingClientRect(),a={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=a,e.state.jump.isHoldingModifier&&jM(e)}}function MZ(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&MM(e)}function qZ(e,t){if(!(e.state.jump.isHoldingModifier||!VZ(t.key))){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&jM(e);var r=function(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&MM(e),Li.default.off(document,"keyup",r),Li.default.off(document,"click",n),e.off("mousedown",a))},n=function(o){var s=e.state.jump.destination;s&&e.state.jump.options.onClick(s,o)},a=function(o,s){e.state.jump.destination&&(s.codemirrorIgnore=!0)};Li.default.on(document,"keyup",r),Li.default.on(document,"click",n),e.on("mousedown",a)}}var BZ=typeof navigator!="undefined"&&navigator&&navigator.appVersion.indexOf("Mac")!==-1;function VZ(e){return e===(BZ?"Meta":"Control")}function jM(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,r=e.coordsChar(t),n=e.getTokenAt(r,!0),a=e.state.jump.options,o=a.getDestination||e.getHelper(r,"jump");if(o){var s=o(n,a,e);if(s){var c=e.markText({line:r.line,ch:n.start},{line:r.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=c,e.state.jump.destination=s}}}}function MM(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}});var VM=U(Am=>{"use strict";var BM=Am&&Am.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Am,"__esModule",{value:!0});var UZ=BM(ct()),GZ=BM(W1()),Tp=Y1();qM();UZ.default.registerHelper("jump","graphql",function(e,t){if(!(!t.schema||!t.onClick||!e.state)){var r=e.state,n=r.kind,a=r.step,o=GZ.default(t.schema,r);if(n==="Field"&&a===0&&o.fieldDef||n==="AliasedField"&&a===2&&o.fieldDef)return Tp.getFieldReference(o);if(n==="Directive"&&a===1&&o.directiveDef)return Tp.getDirectiveReference(o);if(n==="Argument"&&a===0&&o.argDef)return Tp.getArgumentReference(o);if(n==="EnumValue"&&o.enumValue)return Tp.getEnumValueReference(o);if(n==="NamedType"&&o.type)return Tp.getTypeReference(o)}})});var UM=U(xm=>{"use strict";var QZ=xm&&xm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xm,"__esModule",{value:!0});var KZ=QZ(ct()),Lm=rc();KZ.default.defineMode("graphql",function(e){var t=Lm.onlineParser({eatWhitespace:function(r){return r.eatWhile(Lm.isIgnored)},lexRules:Lm.LexRules,parseRules:Lm.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:HZ,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}});function HZ(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}});var KM=U($1=>{"use strict";Object.defineProperty($1,"__esModule",{value:!0});function JZ(e,t,r){var n=XZ(r,QM(t.string));if(!!n){var a=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:a},to:{line:e.line,ch:t.end}}}}$1.default=JZ;function XZ(e,t){if(!t)return Z1(e,function(o){return!o.isDeprecated});var r=e.map(function(o){return{proximity:ZZ(QM(o.text),t),entry:o}}),n=Z1(Z1(r,function(o){return o.proximity<=2}),function(o){return!o.entry.isDeprecated}),a=n.sort(function(o,s){return(o.entry.isDeprecated?1:0)-(s.entry.isDeprecated?1:0)||o.proximity-s.proximity||o.entry.text.length-s.entry.text.length});return a.map(function(o){return o.entry})}function Z1(e,t){var r=e.filter(t);return r.length===0?e:r}function QM(e){return e.toLowerCase().replace(/\W/g,"")}function ZZ(e,t){var r=$Z(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function $Z(e,t){var r,n,a=[],o=e.length,s=t.length;for(r=0;r<=o;r++)a[r]=[r];for(n=1;n<=s;n++)a[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){var c=e[r-1]===t[n-1]?0:1;a[r][n]=Math.min(a[r-1][n]+1,a[r][n-1]+1,a[r-1][n-1]+c),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(a[r][n]=Math.min(a[r][n],a[r-2][n-2]+c))}return a[o][s]}});var HM=U(Pm=>{"use strict";var eD=Pm&&Pm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pm,"__esModule",{value:!0});var Fm=eD(ct()),wa=Nt(),e$=eD(z1()),uc=eD(KM());Fm.default.registerHelper("hint","graphql-variables",function(e,t){var r=e.getCursor(),n=e.getTokenAt(r),a=t$(r,n,t);return a&&a.list&&a.list.length>0&&(a.from=Fm.default.Pos(a.from.line,a.from.ch),a.to=Fm.default.Pos(a.to.line,a.to.ch),Fm.default.signal(e,"hasCompletion",e,a,n)),a});function t$(e,t,r){var n=t.state.kind==="Invalid"?t.state.prevState:t.state,a=n.kind,o=n.step;if(a==="Document"&&o===0)return uc.default(e,t,[{text:"{"}]);var s=r.variableToType;if(!!s){var c=r$(s,t.state);if(a==="Document"||a==="Variable"&&o===0){var d=Object.keys(s);return uc.default(e,t,d.map(function(b){return{text:'"'+b+'": ',type:s[b]}}))}if((a==="ObjectValue"||a==="ObjectField"&&o===0)&&c.fields){var h=Object.keys(c.fields).map(function(b){return c.fields[b]});return uc.default(e,t,h.map(function(b){return{text:'"'+b.name+'": ',type:b.type,description:b.description}}))}if(a==="StringValue"||a==="NumberValue"||a==="BooleanValue"||a==="NullValue"||a==="ListValue"&&o===1||a==="ObjectField"&&o===2||a==="Variable"&&o===2){var m=c.type?wa.getNamedType(c.type):void 0;if(m instanceof wa.GraphQLInputObjectType)return uc.default(e,t,[{text:"{"}]);if(m instanceof wa.GraphQLEnumType){var T=m.getValues();return uc.default(e,t,T.map(function(b){return{text:'"'+b.name+'"',type:m,description:b.description}}))}else if(m===wa.GraphQLBoolean)return uc.default(e,t,[{text:"true",type:wa.GraphQLBoolean,description:"Not false."},{text:"false",type:wa.GraphQLBoolean,description:"Not true."}])}}}function r$(e,t){var r={type:null,fields:null};return e$.default(t,function(n){if(n.kind==="Variable")r.type=e[n.name];else if(n.kind==="ListValue"){var a=r.type?wa.getNullableType(r.type):void 0;r.type=a instanceof wa.GraphQLList?a.ofType:null}else if(n.kind==="ObjectValue"){var o=r.type?wa.getNamedType(r.type):void 0;r.fields=o instanceof wa.GraphQLInputObjectType?o.getFields():null}else if(n.kind==="ObjectField"){var s=n.name&&r.fields?r.fields[n.name]:null;r.type=s&&s.type}}),r}});var JM=U(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});function n$(e){Na=e,jm=e.length,Ir=cn=_p=-1,Rr(),qm();var t=zM();return uu("EOF"),t}rD.default=n$;var Na,jm,Ir,cn,_p,Tt,ai;function zM(){var e=Ir,t=[];if(uu("{"),!Mm("}")){do t.push(i$());while(Mm(","));uu("}")}return{kind:"Object",start:e,end:_p,members:t}}function i$(){var e=Ir,t=ai==="String"?YM():null;uu("String"),uu(":");var r=WM();return{kind:"Member",start:e,end:_p,key:t,value:r}}function a$(){var e=Ir,t=[];if(uu("["),!Mm("]")){do t.push(WM());while(Mm(","));uu("]")}return{kind:"Array",start:e,end:_p,values:t}}function WM(){switch(ai){case"[":return a$();case"{":return zM();case"String":case"Number":case"Boolean":case"Null":var e=YM();return qm(),e}uu("Value")}function YM(){return{kind:ai,start:Ir,end:cn,value:JSON.parse(Na.slice(Ir,cn))}}function uu(e){if(ai===e){qm();return}var t;if(ai==="EOF")t="[end of file]";else if(cn-Ir>1)t="`"+Na.slice(Ir,cn)+"`";else{var r=Na.slice(Ir).match(/^.+?\b/);t="`"+(r?r[0]:Na[Ir])+"`"}throw sc("Expected "+e+" but found "+t+".")}function sc(e){return{message:e,start:Ir,end:cn}}function Mm(e){if(ai===e)return qm(),!0}function Rr(){return cn31;)if(Tt===92)switch(Tt=Rr(),Tt){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Rr();break;case 117:Rr(),Bm(),Bm(),Bm(),Bm();break;default:throw sc("Bad character escape sequence.")}else{if(cn===jm)throw sc("Unterminated string.");Rr()}if(Tt===34){Rr();return}throw sc("Unterminated string.")}function Bm(){if(Tt>=48&&Tt<=57||Tt>=65&&Tt<=70||Tt>=97&&Tt<=102)return Rr();throw sc("Expected hexadecimal digit.")}function u$(){Tt===45&&Rr(),Tt===48?Rr():tD(),Tt===46&&(Rr(),tD()),(Tt===69||Tt===101)&&(Tt=Rr(),(Tt===43||Tt===45)&&Rr(),tD())}function tD(){if(Tt<48||Tt>57)throw sc("Expected decimal digit.");do Rr();while(Tt>=48&&Tt<=57)}});var $M=U(cc=>{"use strict";var s$=cc&&cc.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],s;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){s={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},XM=cc&&cc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cc,"__esModule",{value:!0});var l$=XM(ct()),lc=Nt(),c$=XM(JM());l$.default.registerHelper("lint","graphql-variables",function(e,t,r){if(!e)return[];var n;try{n=c$.default(e)}catch(o){if(o.stack)throw o;return[nD(r,o,o.message)]}var a=t.variableToType;return a?f$(r,a,n):[]});function f$(e,t,r){var n=[];return r.members.forEach(function(a){var o;if(a){var s=(o=a.key)===null||o===void 0?void 0:o.value,c=t[s];c?Sp(c,a.value).forEach(function(d){var h=s$(d,2),m=h[0],T=h[1];n.push(nD(e,m,T))}):n.push(nD(e,a.key,'Variable "$'+s+'" does not appear in any GraphQL query.'))}}),n}function Sp(e,t){if(!e||!t)return[];if(e instanceof lc.GraphQLNonNull)return t.kind==="Null"?[[t,'Type "'+e+'" is non-nullable and cannot be null.']]:Sp(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof lc.GraphQLList){var r=e.ofType;if(t.kind==="Array"){var n=t.values||[];return ZM(n,function(s){return Sp(r,s)})}return Sp(r,t)}if(e instanceof lc.GraphQLInputObjectType){if(t.kind!=="Object")return[[t,'Type "'+e+'" must be an Object.']];var a=Object.create(null),o=ZM(t.members,function(s){var c,d=(c=s==null?void 0:s.key)===null||c===void 0?void 0:c.value;a[d]=!0;var h=e.getFields()[d];if(!h)return[[s.key,'Type "'+e+'" does not have a field "'+d+'".']];var m=h?h.type:void 0;return Sp(m,s.value)});return Object.keys(e.getFields()).forEach(function(s){if(!a[s]){var c=e.getFields()[s].type;c instanceof lc.GraphQLNonNull&&o.push([t,'Object of type "'+e+'" is missing required field "'+s+'".'])}}),o}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,'Expected value of type "'+e+'".']]:(e instanceof lc.GraphQLEnumType||e instanceof lc.GraphQLScalarType)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||d$(e.parseValue(t.value)))?[[t,'Expected value of type "'+e+'".']]:[]}function nD(e,t,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function d$(e){return e==null||e!==e}function ZM(e,t){return Array.prototype.concat.apply([],e.map(t))}});var tq=U(Vm=>{"use strict";var p$=Vm&&Vm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vm,"__esModule",{value:!0});var h$=p$(ct()),lr=rc();h$.default.defineMode("graphql-variables",function(e){var t=lr.onlineParser({eatWhitespace:function(r){return r.eatSpace()},lexRules:g$,parseRules:m$,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:v$,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function v$(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}var g$={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/},m$={Document:[lr.p("{"),lr.list("Variable",lr.opt(lr.p(","))),lr.p("}")],Variable:[eq("variable"),lr.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:[lr.t("Number","number")],StringValue:[lr.t("String","string")],BooleanValue:[lr.t("Keyword","builtin")],NullValue:[lr.t("Keyword","keyword")],ListValue:[lr.p("["),lr.list("Value",lr.opt(lr.p(","))),lr.p("]")],ObjectValue:[lr.p("{"),lr.list("ObjectField",lr.opt(lr.p(","))),lr.p("}")],ObjectField:[eq("attribute"),lr.p(":"),"Value"]};function eq(e){return{style:e,match:function(t){return t.kind==="String"},update:function(t,r){t.name=r.value.slice(1,-1)}}}});var iq=U((rq,nq)=>{(function(e){typeof rq=="object"&&typeof nq=="object"?e(ct()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(t,r){var n=t.indentUnit,a=r.statementIndent,o=r.jsonld,s=r.json||o,c=r.trackScope!==!1,d=r.typescript,h=r.wordCharacters||/[\w$\xa1-\uffff]/,m=function(){function I(Vr){return{type:Vr,style:"keyword"}}var K=I("keyword a"),ne=I("keyword b"),se=I("keyword c"),Be=I("keyword d"),ot=I("operator"),_e={type:"atom",style:"atom"};return{if:I("if"),while:K,with:K,else:ne,do:ne,try:ne,finally:ne,return:Be,break:Be,continue:Be,new:I("new"),delete:se,void:se,throw:se,debugger:I("debugger"),var:I("var"),const:I("var"),let:I("var"),function:I("function"),catch:I("catch"),for:I("for"),switch:I("switch"),case:I("case"),default:I("default"),in:ot,typeof:ot,instanceof:ot,true:_e,false:_e,null:_e,undefined:_e,NaN:_e,Infinity:_e,this:I("this"),class:I("class"),super:I("atom"),yield:se,export:I("export"),import:I("import"),extends:se,await:se}}(),T=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function C(I){for(var K=!1,ne,se=!1;(ne=I.next())!=null;){if(!K){if(ne=="/"&&!se)return;ne=="["?se=!0:se&&ne=="]"&&(se=!1)}K=!K&&ne=="\\"}}var L,S;function y(I,K,ne){return L=I,S=ne,K}function _(I,K){var ne=I.next();if(ne=='"'||ne=="'")return K.tokenize=g(ne),K.tokenize(I,K);if(ne=="."&&I.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(ne=="."&&I.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ne))return y(ne);if(ne=="="&&I.eat(">"))return y("=>","operator");if(ne=="0"&&I.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(ne))return I.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(ne=="/")return I.eat("*")?(K.tokenize=k,k(I,K)):I.eat("/")?(I.skipToEnd(),y("comment","comment")):oe(I,K,1)?(C(I),I.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(I.eat("="),y("operator","operator",I.current()));if(ne=="`")return K.tokenize=N,N(I,K);if(ne=="#"&&I.peek()=="!")return I.skipToEnd(),y("meta","meta");if(ne=="#"&&I.eatWhile(h))return y("variable","property");if(ne=="<"&&I.match("!--")||ne=="-"&&I.match("->")&&!/\S/.test(I.string.slice(0,I.start)))return I.skipToEnd(),y("comment","comment");if(T.test(ne))return(ne!=">"||!K.lexical||K.lexical.type!=">")&&(I.eat("=")?(ne=="!"||ne=="=")&&I.eat("="):/[<>*+\-|&?]/.test(ne)&&(I.eat(ne),ne==">"&&I.eat(ne))),ne=="?"&&I.eat(".")?y("."):y("operator","operator",I.current());if(h.test(ne)){I.eatWhile(h);var se=I.current();if(K.lastType!="."){if(m.propertyIsEnumerable(se)){var Be=m[se];return y(Be.type,Be.style,se)}if(se=="async"&&I.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",se)}return y("variable","variable",se)}}function g(I){return function(K,ne){var se=!1,Be;if(o&&K.peek()=="@"&&K.match(b))return ne.tokenize=_,y("jsonld-keyword","meta");for(;(Be=K.next())!=null&&!(Be==I&&!se);)se=!se&&Be=="\\";return se||(ne.tokenize=_),y("string","string")}}function k(I,K){for(var ne=!1,se;se=I.next();){if(se=="/"&&ne){K.tokenize=_;break}ne=se=="*"}return y("comment","comment")}function N(I,K){for(var ne=!1,se;(se=I.next())!=null;){if(!ne&&(se=="`"||se=="$"&&I.eat("{"))){K.tokenize=_;break}ne=!ne&&se=="\\"}return y("quasi","string-2",I.current())}var w="([{}])";function D(I,K){K.fatArrowAt&&(K.fatArrowAt=null);var ne=I.string.indexOf("=>",I.start);if(!(ne<0)){if(d){var se=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(I.string.slice(I.start,ne));se&&(ne=se.index)}for(var Be=0,ot=!1,_e=ne-1;_e>=0;--_e){var Vr=I.string.charAt(_e),zn=w.indexOf(Vr);if(zn>=0&&zn<3){if(!Be){++_e;break}if(--Be==0){Vr=="("&&(ot=!0);break}}else if(zn>=3&&zn<6)++Be;else if(h.test(Vr))ot=!0;else if(/["'\/`]/.test(Vr))for(;;--_e){if(_e==0)return;var ms=I.string.charAt(_e-1);if(ms==Vr&&I.string.charAt(_e-2)!="\\"){_e--;break}}else if(ot&&!Be){++_e;break}}ot&&!Be&&(K.fatArrowAt=_e)}}var F={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function P(I,K,ne,se,Be,ot){this.indented=I,this.column=K,this.type=ne,this.prev=Be,this.info=ot,se!=null&&(this.align=se)}function B(I,K){if(!c)return!1;for(var ne=I.localVars;ne;ne=ne.next)if(ne.name==K)return!0;for(var se=I.context;se;se=se.prev)for(var ne=se.vars;ne;ne=ne.next)if(ne.name==K)return!0}function z(I,K,ne,se,Be){var ot=I.cc;for(G.state=I,G.stream=Be,G.marked=null,G.cc=ot,G.style=K,I.lexical.hasOwnProperty("align")||(I.lexical.align=!0);;){var _e=ot.length?ot.pop():s?tt:Ze;if(_e(ne,se)){for(;ot.length&&ot[ot.length-1].lex;)ot.pop()();return G.marked?G.marked:ne=="variable"&&B(I,se)?"variable-2":K}}}var G={state:null,column:null,marked:null,cc:null};function M(){for(var I=arguments.length-1;I>=0;I--)G.cc.push(arguments[I])}function j(){return M.apply(null,arguments),!0}function ce(I,K){for(var ne=K;ne;ne=ne.next)if(ne.name==I)return!0;return!1}function ke(I){var K=G.state;if(G.marked="def",!!c){if(K.context){if(K.lexical.info=="var"&&K.context&&K.context.block){var ne=pe(I,K.context);if(ne!=null){K.context=ne;return}}else if(!ce(I,K.localVars)){K.localVars=new qe(I,K.localVars);return}}r.globalVars&&!ce(I,K.globalVars)&&(K.globalVars=new qe(I,K.globalVars))}}function pe(I,K){if(K)if(K.block){var ne=pe(I,K.prev);return ne?ne==K.prev?K:new Ne(ne,K.vars,!0):null}else return ce(I,K.vars)?K:new Ne(K.prev,new qe(I,K.vars),!1);else return null}function we(I){return I=="public"||I=="private"||I=="protected"||I=="abstract"||I=="readonly"}function Ne(I,K,ne){this.prev=I,this.vars=K,this.block=ne}function qe(I,K){this.name=I,this.next=K}var ht=new qe("this",new qe("arguments",null));function at(){G.state.context=new Ne(G.state.context,G.state.localVars,!1),G.state.localVars=ht}function st(){G.state.context=new Ne(G.state.context,G.state.localVars,!0),G.state.localVars=null}function vt(){G.state.localVars=G.state.context.vars,G.state.context=G.state.context.prev}vt.lex=!0;function Oe(I,K){var ne=function(){var se=G.state,Be=se.indented;if(se.lexical.type=="stat")Be=se.lexical.indented;else for(var ot=se.lexical;ot&&ot.type==")"&&ot.align;ot=ot.prev)Be=ot.indented;se.lexical=new P(Be,G.stream.column(),I,null,se.lexical,K)};return ne.lex=!0,ne}function xe(){var I=G.state;I.lexical.prev&&(I.lexical.type==")"&&(I.indented=I.lexical.indented),I.lexical=I.lexical.prev)}xe.lex=!0;function Ue(I){function K(ne){return ne==I?j():I==";"||ne=="}"||ne==")"||ne=="]"?M():j(K)}return K}function Ze(I,K){return I=="var"?j(Oe("vardef",K),Ec,Ue(";"),xe):I=="keyword a"?j(Oe("form"),Xr,Ze,xe):I=="keyword b"?j(Oe("form"),Ze,xe):I=="keyword d"?G.stream.match(/^\s*$/,!1)?j():j(Oe("stat"),ee,Ue(";"),xe):I=="debugger"?j(Ue(";")):I=="{"?j(Oe("}"),st,Z,xe,vt):I==";"?j():I=="if"?(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==xe&&G.state.cc.pop()(),j(Oe("form"),Xr,Ze,xe,Rp)):I=="function"?j(fi):I=="for"?j(Oe("form"),st,Fp,Ze,vt,xe):I=="class"||d&&K=="interface"?(G.marked="keyword",j(Oe("form",I=="class"?I:K),gs,xe)):I=="variable"?d&&K=="declare"?(G.marked="keyword",j(Ze)):d&&(K=="module"||K=="enum"||K=="type")&&G.stream.match(/^\s*\w/,!1)?(G.marked="keyword",K=="enum"?j(ea):K=="type"?j(Pp,Ue("operator"),fe,Ue(";")):j(Oe("form"),hn,Ue("{"),Oe("}"),Z,xe,xe)):d&&K=="namespace"?(G.marked="keyword",j(Oe("form"),tt,Ze,xe)):d&&K=="abstract"?(G.marked="keyword",j(Ze)):j(Oe("stat"),xa):I=="switch"?j(Oe("form"),Xr,Ue("{"),Oe("}","switch"),st,Z,xe,xe,vt):I=="case"?j(tt,Ue(":")):I=="default"?j(Ue(":")):I=="catch"?j(Oe("form"),at,wn,Ze,xe,vt):I=="export"?j(Oe("stat"),Dc,xe):I=="import"?j(Oe("stat"),$t,xe):I=="async"?j(Ze):K=="@"?j(tt,Ze):M(Oe("stat"),tt,Ue(";"),xe)}function wn(I){if(I=="(")return j(Ra,Ue(")"))}function tt(I,K){return pn(I,K,!1)}function Mt(I,K){return pn(I,K,!0)}function Xr(I){return I!="("?M():j(Oe(")"),ee,Ue(")"),xe)}function pn(I,K,ne){if(G.state.fatArrowAt==G.stream.start){var se=ne?We:$e;if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,Ue("=>"),se,vt);if(I=="variable")return M(at,hn,Ue("=>"),se,vt)}var Be=ne?be:De;return F.hasOwnProperty(I)?j(Be):I=="function"?j(fi,Be):I=="class"||d&&K=="interface"?(G.marked="keyword",j(Oe("form"),vs,xe)):I=="keyword c"||I=="async"?j(ne?Mt:tt):I=="("?j(Oe(")"),ee,Ue(")"),xe,Be):I=="operator"||I=="spread"?j(ne?Mt:tt):I=="["?j(Oe("]"),gt,xe,Be):I=="{"?X(Nn,"}",null,Be):I=="quasi"?M(me,Be):I=="new"?j(rt(ne)):j()}function ee(I){return I.match(/[;\}\)\],]/)?M():M(tt)}function De(I,K){return I==","?j(ee):be(I,K,!1)}function be(I,K,ne){var se=ne==!1?De:be,Be=ne==!1?tt:Mt;if(I=="=>")return j(at,ne?We:$e,vt);if(I=="operator")return/\+\+|--/.test(K)||d&&K=="!"?j(se):d&&K=="<"&&G.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?j(Oe(">"),q(fe,">"),xe,se):K=="?"?j(tt,Ue(":"),Be):j(Be);if(I=="quasi")return M(me,se);if(I!=";"){if(I=="(")return X(Mt,")","call",se);if(I==".")return j(Ia,se);if(I=="[")return j(Oe("]"),ee,Ue("]"),xe,se);if(d&&K=="as")return G.marked="keyword",j(fe,se);if(I=="regexp")return G.state.lastType=G.marked="operator",G.stream.backUp(G.stream.pos-G.stream.start-1),j(Be)}}function me(I,K){return I!="quasi"?M():K.slice(K.length-2)!="${"?j(me):j(ee,je)}function je(I){if(I=="}")return G.marked="string-2",G.state.tokenize=N,j(me)}function $e(I){return D(G.stream,G.state),M(I=="{"?Ze:tt)}function We(I){return D(G.stream,G.state),M(I=="{"?Ze:Mt)}function rt(I){return function(K){return K=="."?j(I?ao:li):K=="variable"&&d?j(ci,I?be:De):M(I?Mt:tt)}}function li(I,K){if(K=="target")return G.marked="keyword",j(De)}function ao(I,K){if(K=="target")return G.marked="keyword",j(be)}function xa(I){return I==":"?j(xe,Ze):M(De,Ue(";"),xe)}function Ia(I){if(I=="variable")return G.marked="property",j()}function Nn(I,K){if(I=="async")return G.marked="property",j(Nn);if(I=="variable"||G.style=="keyword"){if(G.marked="property",K=="get"||K=="set")return j(cu);var ne;return d&&G.state.fatArrowAt==G.stream.start&&(ne=G.stream.match(/^\s*:\s*/,!1))&&(G.state.fatArrowAt=G.stream.pos+ne[0].length),j(te)}else{if(I=="number"||I=="string")return G.marked=o?"property":G.style+" property",j(te);if(I=="jsonld-keyword")return j(te);if(d&&we(K))return G.marked="keyword",j(Nn);if(I=="[")return j(tt,H,Ue("]"),te);if(I=="spread")return j(Mt,te);if(K=="*")return G.marked="keyword",j(Nn);if(I==":")return M(te)}}function cu(I){return I!="variable"?M(te):(G.marked="property",j(fi))}function te(I){if(I==":")return j(Mt);if(I=="(")return M(fi)}function q(I,K,ne){function se(Be,ot){if(ne?ne.indexOf(Be)>-1:Be==","){var _e=G.state.lexical;return _e.info=="call"&&(_e.pos=(_e.pos||0)+1),j(function(Vr,zn){return Vr==K||zn==K?M():M(I)},se)}return Be==K||ot==K?j():ne&&ne.indexOf(";")>-1?M(I):j(Ue(K))}return function(Be,ot){return Be==K||ot==K?j():M(I,se)}}function X(I,K,ne){for(var se=3;se"),fe);if(I=="quasi")return M(nr,gr)}function Qe(I){if(I=="=>")return j(fe)}function It(I){return I.match(/[\}\)\]]/)?j():I==","||I==";"?j(It):M(Dt,It)}function Dt(I,K){if(I=="variable"||G.style=="keyword")return G.marked="property",j(Dt);if(K=="?"||I=="number"||I=="string")return j(Dt);if(I==":")return j(fe);if(I=="[")return j(Ue("variable"),R,Ue("]"),Dt);if(I=="(")return M(Kn,Dt);if(!I.match(/[;\}\)\],]/))return j()}function nr(I,K){return I!="quasi"?M():K.slice(K.length-2)!="${"?j(nr):j(fe,Rt)}function Rt(I){if(I=="}")return G.marked="string-2",G.state.tokenize=N,j(nr)}function Ye(I,K){return I=="variable"&&G.stream.match(/^\s*[?:]/,!1)||K=="?"?j(Ye):I==":"?j(fe):I=="spread"?j(Ye):M(fe)}function gr(I,K){if(K=="<")return j(Oe(">"),q(fe,">"),xe,gr);if(K=="|"||I=="."||K=="&")return j(fe);if(I=="[")return j(fe,Ue("]"),gr);if(K=="extends"||K=="implements")return G.marked="keyword",j(fe);if(K=="?")return j(fe,Ue(":"),fe)}function ci(I,K){if(K=="<")return j(Oe(">"),q(fe,">"),xe,gr)}function Ri(){return M(fe,xp)}function xp(I,K){if(K=="=")return j(fe)}function Ec(I,K){return K=="enum"?(G.marked="keyword",j(ea)):M(hn,H,Zi,_c)}function hn(I,K){if(d&&we(K))return G.marked="keyword",j(hn);if(I=="variable")return ke(K),j();if(I=="spread")return j(hn);if(I=="[")return X(Tc,"]");if(I=="{")return X(Ip,"}")}function Ip(I,K){return I=="variable"&&!G.stream.match(/^\s*:/,!1)?(ke(K),j(Zi)):(I=="variable"&&(G.marked="property"),I=="spread"?j(hn):I=="}"?M():I=="["?j(tt,Ue("]"),Ue(":"),Ip):j(Ue(":"),hn,Zi))}function Tc(){return M(hn,Zi)}function Zi(I,K){if(K=="=")return j(Mt)}function _c(I){if(I==",")return j(Ec)}function Rp(I,K){if(I=="keyword b"&&K=="else")return j(Oe("form","else"),Ze,xe)}function Fp(I,K){if(K=="await")return j(Fp);if(I=="(")return j(Oe(")"),Sc,xe)}function Sc(I){return I=="var"?j(Ec,oo):I=="variable"?j(oo):M(oo)}function oo(I,K){return I==")"?j():I==";"?j(oo):K=="in"||K=="of"?(G.marked="keyword",j(tt,oo)):M(tt,oo)}function fi(I,K){if(K=="*")return G.marked="keyword",j(fi);if(I=="variable")return ke(K),j(fi);if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,$,Ze,vt);if(d&&K=="<")return j(Oe(">"),q(Ri,">"),xe,fi)}function Kn(I,K){if(K=="*")return G.marked="keyword",j(Kn);if(I=="variable")return ke(K),j(Kn);if(I=="(")return j(at,Oe(")"),q(Ra,")"),xe,$,vt);if(d&&K=="<")return j(Oe(">"),q(Ri,">"),xe,Kn)}function Pp(I,K){if(I=="keyword"||I=="variable")return G.marked="type",j(Pp);if(K=="<")return j(Oe(">"),q(Ri,">"),xe)}function Ra(I,K){return K=="@"&&j(tt,Ra),I=="spread"?j(Ra):d&&we(K)?(G.marked="keyword",j(Ra)):d&&I=="this"?j(H,Zi):M(hn,H,Zi)}function vs(I,K){return I=="variable"?gs(I,K):Fi(I,K)}function gs(I,K){if(I=="variable")return ke(K),j(Fi)}function Fi(I,K){if(K=="<")return j(Oe(">"),q(Ri,">"),xe,Fi);if(K=="extends"||K=="implements"||d&&I==",")return K=="implements"&&(G.marked="keyword"),j(d?fe:tt,Fi);if(I=="{")return j(Oe("}"),Pi,xe)}function Pi(I,K){if(I=="async"||I=="variable"&&(K=="static"||K=="get"||K=="set"||d&&we(K))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return G.marked="keyword",j(Pi);if(I=="variable"||G.style=="keyword")return G.marked="property",j(Hn,Pi);if(I=="number"||I=="string")return j(Hn,Pi);if(I=="[")return j(tt,H,Ue("]"),Hn,Pi);if(K=="*")return G.marked="keyword",j(Pi);if(d&&I=="(")return M(Kn,Pi);if(I==";"||I==",")return j(Pi);if(I=="}")return j();if(K=="@")return j(tt,Pi)}function Hn(I,K){if(K=="!"||K=="?")return j(Hn);if(I==":")return j(fe,Zi);if(K=="=")return j(Mt);var ne=G.state.lexical.prev,se=ne&&ne.info=="interface";return M(se?Kn:fi)}function Dc(I,K){return K=="*"?(G.marked="keyword",j(An,Ue(";"))):K=="default"?(G.marked="keyword",j(tt,Ue(";"))):I=="{"?j(q(kc,"}"),An,Ue(";")):M(Ze)}function kc(I,K){if(K=="as")return G.marked="keyword",j(Ue("variable"));if(I=="variable")return M(Mt,kc)}function $t(I){return I=="string"?j():I=="("?M(tt):I=="."?M(De):M(Ae,$i,An)}function Ae(I,K){return I=="{"?X(Ae,"}"):(I=="variable"&&ke(K),K=="*"&&(G.marked="keyword"),j(Cc))}function $i(I){if(I==",")return j(Ae,$i)}function Cc(I,K){if(K=="as")return G.marked="keyword",j(Ae)}function An(I,K){if(K=="from")return G.marked="keyword",j(tt)}function gt(I){return I=="]"?j():M(q(Mt,"]"))}function ea(){return M(Oe("form"),hn,Ue("{"),Oe("}"),q(fu,"}"),xe,xe)}function fu(){return M(hn,Zi)}function Oc(I,K){return I.lastType=="operator"||I.lastType==","||T.test(K.charAt(0))||/[,.]/.test(K.charAt(0))}function oe(I,K,ne){return K.tokenize==_&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(K.lastType)||K.lastType=="quasi"&&/\{\s*$/.test(I.string.slice(0,I.pos-(ne||0)))}return{startState:function(I){var K={tokenize:_,lastType:"sof",cc:[],lexical:new P((I||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new Ne(null,null,!1),indented:I||0};return r.globalVars&&typeof r.globalVars=="object"&&(K.globalVars=r.globalVars),K},token:function(I,K){if(I.sol()&&(K.lexical.hasOwnProperty("align")||(K.lexical.align=!1),K.indented=I.indentation(),D(I,K)),K.tokenize!=k&&I.eatSpace())return null;var ne=K.tokenize(I,K);return L=="comment"?ne:(K.lastType=L=="operator"&&(S=="++"||S=="--")?"incdec":L,z(K,ne,L,S,I))},indent:function(I,K){if(I.tokenize==k||I.tokenize==N)return e.Pass;if(I.tokenize!=_)return 0;var ne=K&&K.charAt(0),se=I.lexical,Be;if(!/^\s*else\b/.test(K))for(var ot=I.cc.length-1;ot>=0;--ot){var _e=I.cc[ot];if(_e==xe)se=se.prev;else if(_e!=Rp&&_e!=vt)break}for(;(se.type=="stat"||se.type=="form")&&(ne=="}"||(Be=I.cc[I.cc.length-1])&&(Be==De||Be==be)&&!/^[,\.=+\-*:?[\(]/.test(K));)se=se.prev;a&&se.type==")"&&se.prev.type=="stat"&&(se=se.prev);var Vr=se.type,zn=ne==Vr;return Vr=="vardef"?se.indented+(I.lastType=="operator"||I.lastType==","?se.info.length+1:0):Vr=="form"&&ne=="{"?se.indented:Vr=="form"?se.indented+n:Vr=="stat"?se.indented+(Oc(I,K)?a||n:0):se.info=="switch"&&!zn&&r.doubleIndentSwitch!=!1?se.indented+(/^(?:case|default)\b/.test(K)?n:2*n):se.align?se.column+(zn?0:1):se.indented+(zn?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:o,jsonMode:s,expressionAllowed:oe,skipExpression:function(I){z(I,"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})})});var aq=U(Gm=>{"use strict";var E$=Gm&&Gm.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gm,"__esModule",{value:!0});var T$=E$(ct()),vr=rc();T$.default.defineMode("graphql-results",function(e){var t=vr.onlineParser({eatWhitespace:function(r){return r.eatSpace()},lexRules:S$,parseRules:D$,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:_$,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function _$(e,t){var r,n,a=e.levels,o=!a||a.length===0?e.indentLevel:a[a.length-1]-(((r=this.electricInput)===null||r===void 0?void 0:r.test(t))?1:0);return(o||0)*(((n=this.config)===null||n===void 0?void 0:n.indentUnit)||0)}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/},D$={Document:[vr.p("{"),vr.list("Entry",vr.p(",")),vr.p("}")],Entry:[vr.t("String","def"),vr.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:[vr.t("Number","number")],StringValue:[vr.t("String","string")],BooleanValue:[vr.t("Keyword","builtin")],NullValue:[vr.t("Keyword","keyword")],ListValue:[vr.p("["),vr.list("Value",vr.p(",")),vr.p("]")],ObjectValue:[vr.p("{"),vr.list("ObjectField",vr.p(",")),vr.p("}")],ObjectField:[vr.t("String","property"),vr.p(":"),"Value"]}});var qq=U((uue,Mq)=>{Mq.exports=vc;function vc(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}vc.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};vc.prototype.reset=function(){this.attempts=0};vc.prototype.setMin=function(e){this.ms=e};vc.prototype.setMax=function(e){this.max=e};vc.prototype.setJitter=function(e){this.jitter=e}});var Vq=U((sue,AD)=>{"use strict";var dee=Object.prototype.hasOwnProperty,Cn="~";function Lp(){}Object.create&&(Lp.prototype=Object.create(null),new Lp().__proto__||(Cn=!1));function pee(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Bq(e,t,r,n,a){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new pee(r,n||e,a),s=Cn?Cn+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function Jm(e,t){--e._eventsCount==0?e._events=new Lp:delete e._events[t]}function dn(){this._events=new Lp,this._eventsCount=0}dn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)dee.call(r,n)&&t.push(Cn?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};dn.prototype.listeners=function(t){var r=Cn?Cn+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,s=new Array(o);a{"use strict";Object.defineProperty(LD,"__esModule",{value:!0});function hee(e){return typeof e=="string"}LD.default=hee});var Gq=U(xD=>{"use strict";Object.defineProperty(xD,"__esModule",{value:!0});function vee(e){return e!==null&&typeof e=="object"}xD.default=vee});var Qq=U(ID=>{"use strict";Object.defineProperty(ID,"__esModule",{value:!0});ID.default=gee;function gee(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}});var Kq=U((RD,FD)=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});var mee=Qq(),yee=bee(mee);function bee(e){return e&&e.__esModule?e:{default:e}}var gc;typeof self!="undefined"?gc=self:typeof window!="undefined"||typeof window!="undefined"?gc=window:typeof FD!="undefined"?gc=FD:gc=Function("return this")();var Eee=(0,yee.default)(gc);RD.default=Eee});var Hq=U(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.GRAPHQL_SUBSCRIPTIONS=mc.GRAPHQL_WS=void 0;var Tee="graphql-ws";mc.GRAPHQL_WS=Tee;var _ee="graphql-subscriptions";mc.GRAPHQL_SUBSCRIPTIONS=_ee});var zq=U(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.WS_TIMEOUT=yc.MIN_WS_TIMEOUT=void 0;var See=1e3;yc.MIN_WS_TIMEOUT=See;var Dee=3e4;yc.WS_TIMEOUT=Dee});var Wq=U(PD=>{"use strict";Object.defineProperty(PD,"__esModule",{value:!0});var kee=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();PD.default=kee});var e3=U(Ii=>{"use strict";var bc=Ii&&Ii.__assign||function(){return bc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0){var m=s.shift();m&&m.applyMiddleware.apply(c,[t,d])}else n(t)};d()};o(Yq(r.middlewares),r)})},e.prototype.use=function(t){var r=this;return t.map(function(n){if(typeof n.applyMiddleware=="function")r.middlewares.push(n);else throw new Error("Middleware must implement the applyMiddleware function.")}),this},e.prototype.getConnectionParams=function(t){return function(){return new Promise(function(r,n){if(typeof t=="function")try{return r(t.call(null))}catch(a){return n(a)}r(t)})}},e.prototype.executeOperation=function(t,r){var n=this;this.client===null&&this.connect();var a=this.generateOperationId();return this.operations[a]={options:t,handler:r},this.applyMiddlewares(t).then(function(o){n.checkOperationOptions(o,r),n.operations[a]&&(n.operations[a]={options:o,handler:r},n.sendMessage(a,On.default.GQL_START,o))}).catch(function(o){n.unsubscribe(a),r(n.formatErrors(o))}),a},e.prototype.getObserver=function(t,r,n){return typeof t=="function"?{next:function(a){return t(a)},error:function(a){return r&&r(a)},complete:function(){return n&&n()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,r=this.wsTimeout;return new Xq({min:t,max:r,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&Object.keys(this.operations).length===0&&(this.inactivityTimeoutId=setTimeout(function(){Object.keys(t.operations).length===0&&t.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(t,r){var n=t.query,a=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!r)throw new Error("Must provide an handler.");if(!Zq.default(n)&&!xee.getOperationAST(n,o)||o&&!Zq.default(o)||a&&!Aee.default(a))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(t,r,n){var a=n&&n.query?bc(bc({},n),{query:typeof n.query=="string"?n.query:Lee.print(n.query)}):n;return{id:t,type:r,payload:a}},e.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},e.prototype.sendMessage=function(t,r,n){this.sendMessageRaw(this.buildMessage(t,r,n))},e.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var r=JSON.stringify(t);try{JSON.parse(r)}catch(n){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(r);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var t=this;if(!(!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach(function(n){t.unsentMessagesQueue.push(t.buildMessage(n,On.default.GQL_START,t.operations[n].options))}),this.reconnecting=!0),this.clearTryReconnectTimeout();var r=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){t.connect()},r)}},e.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach(function(r){t.sendMessageRaw(r)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){if(this.wasKeepAliveReceived){this.wasKeepAliveReceived=!1;return}this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var t,r=this;this.client=new((t=this.wsImpl).bind.apply(t,Yq([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return Cee(r,void 0,void 0,function(){var n,a;return Oee(this,function(o){switch(o.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return n=o.sent(),this.sendMessage(void 0,On.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return a=o.sent(),this.sendMessage(void 0,On.default.GQL_CONNECTION_ERROR,a),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){r.closedByUser||r.close(!1,!1)},this.client.onerror=function(n){r.eventEmitter.emit("error",n)},this.client.onmessage=function(n){var a=n.data;r.processReceivedData(a)}},e.prototype.processReceivedData=function(t){var r,n;try{r=JSON.parse(t),n=r.id}catch(c){throw new Error("Message must be JSON-parseable. Got: "+t)}if([On.default.GQL_DATA,On.default.GQL_COMPLETE,On.default.GQL_ERROR].indexOf(r.type)!==-1&&!this.operations[n]){this.unsubscribe(n);return}switch(r.type){case On.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(r.payload);break;case On.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",r.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case On.default.GQL_COMPLETE:var a=this.operations[n].handler;delete this.operations[n],a.call(this,null,null);break;case On.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(r.payload),null),delete this.operations[n];break;case On.default.GQL_DATA:var o=r.payload.errors?bc(bc({},r.payload),{errors:this.formatErrors(r.payload.errors)}):r.payload;this.operations[n].handler(null,o);break;case On.default.GQL_CONNECTION_KEEP_ALIVE:var s=typeof this.wasKeepAliveReceived=="undefined";this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}},e.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,On.default.GQL_STOP,void 0))},e}();Ii.SubscriptionClient=Fee});var Pee=ze(Ft()),jee=ze(oE());var Xe=ze(Ft()),Xi=ze(Nt()),kq=ze(BI()),Cq=ze(is());var no=ze(Ft()),CW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ZI=function(e){CW(t,e);function t(r){var n=e.call(this,r)||this;return n._onClick=function(){n.props.isRunning?n.props.onStop():n.props.onRun()},n._onOptionSelected=function(a){n.setState({optionsOpen:!1}),n.props.onRun(a.name&&a.name.value)},n._onOptionsOpen=function(a){var o=!0,s=a.currentTarget;n.setState({highlight:null,optionsOpen:!0});var c=function(d){var h;if(o&&d.target===s)o=!1;else{document.removeEventListener("mouseup",c),c=null;var m=d.currentTarget&&((h=s.parentNode)===null||h===void 0?void 0:h.compareDocumentPosition(d.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;m||n.setState({optionsOpen:!1})}};document.addEventListener("mouseup",c)},n.state={optionsOpen:!1,highlight:null},n}return t.prototype.render=function(){var r=this,n=this.props.operations||[],a=this.state.optionsOpen,o=n&&n.length>1,s=null;if(o&&a){var c=this.state.highlight;s=no.default.createElement("ul",{className:"execute-options"},n.map(function(T,b){var C=T.name?T.name.value:"";return no.default.createElement("li",{key:C+"-"+b,className:T===c?"selected":void 0,onMouseOver:function(){return r.setState({highlight:T})},onMouseOut:function(){return r.setState({highlight:null})},onMouseUp:function(){return r._onOptionSelected(T)}},C)}))}var d;(this.props.isRunning||!o)&&(d=this._onClick);var h=function(){};!this.props.isRunning&&o&&!a&&(h=this._onOptionsOpen);var m=this.props.isRunning?no.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):no.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return no.default.createElement("div",{className:"execute-button-wrap"},no.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:h,onClick:d,title:"Execute Query (Ctrl-Enter)"},no.default.createElement("svg",{width:"34",height:"34"},m)),s)},t}(no.default.Component);var ep=ze(Ft()),OW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();function $I(e){if(e.type==="string"){var t=e.string.slice(1).slice(0,-1).trim();try{var r=window.location;return new URL(t,r.protocol+"//"+r.host)}catch(n){return}}}function wW(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}var eR=function(e){OW(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._node=null,r.state={width:null,height:null,src:null,mime:null},r}return t.shouldRender=function(r){var n=$I(r);return n?wW(n):!1},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var r=this,n,a=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),a=ep.default.createElement("div",null,o)}return ep.default.createElement("div",null,ep.default.createElement("img",{onLoad:function(){return r._updateMetadata()},ref:function(s){r._node=s},src:(n=$I(this.props.token))===null||n===void 0?void 0:n.href}),a)},t.prototype._updateMetadata=function(){var r=this;if(!!this._node){var n=this._node.naturalWidth,a=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(s){r.setState({mime:s.headers.get("Content-Type")})})),(n!==this.state.width||a!==this.state.height)&&this.setState({height:a,width:n})}},t}(ep.default.Component);var QS=ze(Ft()),NW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tu=function(e){NW(t,e);function t(r){var n=e.call(this,r)||this;return n.handleClick=function(){try{n.props.onClick(),n.setState({error:null})}catch(a){n.setState({error:a})}},n.state={error:null},n}return t.prototype.render=function(){var r=this.state.error;return QS.default.createElement("button",{className:"toolbar-button"+(r?" error":""),onClick:this.handleClick,title:r?r.message:this.props.title,"aria-invalid":r?"true":"false"},this.props.label)},t}(QS.default.Component);var tR=ze(Ft());function KS(e){var t=e.children;return tR.default.createElement("div",{className:"toolbar-button-group"},t)}var as=ze(Ft()),AW=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),HS=function(e){AW(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(a){zS(a),n.setState({visible:!0}),n._subscribe()},n.state={visible:!1},n}return t.prototype.componentWillUnmount=function(){this._release()},t.prototype.render=function(){var r=this,n=this.state.visible;return as.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:zS,ref:function(a){a&&(r._node=a)},title:this.props.title},this.props.label,as.default.createElement("svg",{width:"14",height:"8"},as.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),as.default.createElement("ul",{className:"toolbar-menu-items"+(n?" open":"")},this.props.children))},t.prototype._subscribe=function(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))},t.prototype._release=function(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)},t.prototype.handleClick=function(r){this._node!==r.target&&(r.preventDefault(),this.setState({visible:!1}),this._release())},t}(as.default.Component);var rR=function(e){var t=e.onSelect,r=e.title,n=e.label;return as.default.createElement("li",{onMouseOver:function(a){a.currentTarget.className="hover"},onMouseOut:function(a){a.currentTarget.className=""},onMouseDown:zS,onMouseUp:t,title:r},n)};function zS(e){e.preventDefault()}var X1=ze(Ft()),GM=ze(vm());var UJ=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029","\u202F","\xA0"]),GJ=new RegExp("["+UJ.join("")+"]","g");function lj(e){return e.replace(GJ," ")}var gm=ze(Nt()),cj=ze(vm()),fj=new cj.default;function ru(e,t,r){var n=ct(),a,o;n.on(t,"select",function(s,c){if(!a){var d=c.parentNode;a=document.createElement("div"),a.className="CodeMirror-hint-information",d.appendChild(a),o=document.createElement("div"),o.className="CodeMirror-hint-deprecation",d.appendChild(o);var h;d.addEventListener("DOMNodeRemoved",h=function(C){C.target===d&&(d.removeEventListener("DOMNodeRemoved",h),a=null,o=null,h=null)})}var m=s.description?fj.render(s.description):"Self descriptive.",T=s.type?''+T1(s.type)+"":"";if(a.innerHTML='
'+(m.slice(0,3)==="

"?"

"+T+m.slice(3):T+m)+"

",s&&o&&s.isDeprecated){var b=s.deprecationReason?fj.render(s.deprecationReason):"";o.innerHTML='Deprecated'+b,o.style.display="block"}else o&&(o.style.display="none");r&&r(a)})}function T1(e){return e instanceof gm.GraphQLNonNull?T1(e.ofType)+"!":e instanceof gm.GraphQLList?"["+T1(e.ofType)+"]":''+e.name+""}var io,dj=!1;typeof window=="object"&&(dj=window.navigator.platform==="MacIntel");var QJ=(io={},io[dj?"Cmd-F":"Ctrl-F"]="findPersistent",io["Cmd-G"]="findPersistent",io["Ctrl-G"]="findPersistent",io["Ctrl-Left"]="goSubwordLeft",io["Ctrl-Right"]="goSubwordRight",io["Alt-Left"]="goGroupLeft",io["Alt-Right"]="goGroupRight",io),nu=QJ;var zZ=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Im=function(){return Im=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(a,o){ru(a,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.CodeMirror=ct(),op(),up(),mm(),lp(),sp(),ym(),ss(),cp(),ls(),fp(),HM(),$M(),tq();var n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:iD({"Cmd-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Ctrl-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Alt-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Shift-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Cmd-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Ctrl-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Shift-Ctrl-P":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){r.props.onMergeQuery&&r.props.onMergeQuery()}},nu)});n.on("change",this._onEdit),n.on("keyup",this._onKeyUp),n.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(r){if(this.CodeMirror=ct(),!!this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==r.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return aD.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(aD.default.Component);var uD=ze(Ft());var b$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),oD=function(){return oD=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=65&&s<=90||!o.shiftKey&&s>=48&&s<=57||o.shiftKey&&s===189||o.shiftKey&&s===222)&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.editor||n.ignoreChangeEvent||(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(a,o){ru(a,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.CodeMirror=ct(),op(),up(),mm(),lp(),sp(),ym(),ss(),cp(),ls(),iq(),fp();var n=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:oD({"Cmd-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Ctrl-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Alt-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Shift-Space":function(){return r.editor.showHint({completeSingle:!1,container:r._node})},"Cmd-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Ctrl-Enter":function(){r.props.onRunQuery&&r.props.onRunQuery()},"Shift-Ctrl-P":function(){r.props.onPrettifyQuery&&r.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){r.props.onMergeQuery&&r.props.onMergeQuery()}},nu)});n.on("change",this._onEdit),n.on("keyup",this._onKeyUp),n.on("hasCompletion",this._onHasCompletion)},t.prototype.componentDidUpdate=function(r){if(this.CodeMirror=ct(),!!this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==r.value&&this.props.value!==this.cachedValue){var n=this.props.value||"";this.cachedValue=n,this.editor.setValue(n)}this.ignoreChangeEvent=!1}},t.prototype.componentWillUnmount=function(){!this.editor||(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)},t.prototype.render=function(){var r=this;return uD.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:function(n){r._node=n}})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(uD.default.Component);var fc=ze(Ft()),lD=ze(oE());var k$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),cD=function(e){k$(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.viewer=null,r._node=null,r}return t.prototype.componentDidMount=function(){var r=ct();sp(),lp(),ls(),_1(),ss(),cp(),fp(),aq();var n=this.props.ResultsTooltip,a=this.props.ImagePreview;if(n||a){J1();var o=document.createElement("div");r.registerHelper("info","graphql-results",function(s,c,d,h){var m=[];return n&&m.push(fc.default.createElement(n,{pos:h})),a&&typeof a.shouldRender=="function"&&a.shouldRender(s)&&m.push(fc.default.createElement(a,{token:s})),m.length?(lD.default.render(fc.default.createElement("div",null,m),o),o):(lD.default.unmountComponentAtNode(o),null)})}this.viewer=r(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:nu})},t.prototype.shouldComponentUpdate=function(r){return this.props.value!==r.value},t.prototype.componentDidUpdate=function(){this.viewer&&this.viewer.setValue(this.props.value||"")},t.prototype.componentWillUnmount=function(){this.viewer=null},t.prototype.render=function(){var r=this;return fc.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:function(n){n&&(r.props.registerRef(n),r._node=n)}})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(fc.default.Component);var fn=ze(Ft()),yD=ze(Nt());var Br=ze(Ft());var kp=ze(Ft());var Qm=ze(Ft()),Km=ze(Nt());function kn(e){var t=e.onClick?e.onClick:function(){return null};return fD(e.type,t)}function fD(e,t){return e instanceof Km.GraphQLNonNull?Qm.default.createElement("span",null,fD(e.ofType,t),"!"):e instanceof Km.GraphQLList?Qm.default.createElement("span",null,"[",fD(e.ofType,t),"]"):Qm.default.createElement("a",{className:"type-name",onClick:function(r){r.preventDefault(),t(e,r)},href:"#"},e==null?void 0:e.name)}var dD=ze(Ft()),Hm=ze(Nt()),C$=function(e){return e?(0,Hm.print)(e):""};function Dp(e){var t=e.field;return"defaultValue"in t&&t.defaultValue!==void 0?dD.default.createElement("span",null," = ",dD.default.createElement("span",{className:"arg-default-value"},C$((0,Hm.astFromValue)(t.defaultValue,t.type)))):null}function ps(e){var t=e.arg,r=e.onClickType,n=e.showDefaultValue;return kp.default.createElement("span",{className:"arg"},kp.default.createElement("span",{className:"arg-name"},t.name),": ",kp.default.createElement(kn,{type:t.type,onClick:r}),n!==!1&&kp.default.createElement(Dp,{field:t}))}var oq=ze(Ft());function pD(e){var t=e.directive;return oq.default.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var hD=ze(Ft()),uq=ze(vm()),O$=new uq.default;function oi(e){var t=e.markdown,r=e.className;return t?hD.default.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:O$.render(t)}}):hD.default.createElement("div",null)}function vD(e){var t=e.field,r=e.onClickType,n;t&&"args"in t&&t.args.length>0&&(n=Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.map(function(o){return Br.default.createElement("div",{key:o.name,className:"doc-category-item"},Br.default.createElement("div",null,Br.default.createElement(ps,{arg:o,onClickType:r})),Br.default.createElement(oi,{className:"doc-value-description",markdown:o.description}))})));var a;return t&&t.astNode&&t.astNode.directives&&t.astNode.directives.length>0&&(a=Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"directives"),t.astNode.directives.map(function(o){return Br.default.createElement("div",{key:o.name.value,className:"doc-category-item"},Br.default.createElement("div",null,Br.default.createElement(pD,{directive:o})))}))),Br.default.createElement("div",null,Br.default.createElement(oi,{className:"doc-type-description",markdown:(t==null?void 0:t.description)||"No Description"}),t&&"deprecationReason"in t&&Br.default.createElement(oi,{className:"doc-deprecation",markdown:t==null?void 0:t.deprecationReason}),Br.default.createElement("div",{className:"doc-category"},Br.default.createElement("div",{className:"doc-category-title"},"type"),Br.default.createElement(kn,{type:t==null?void 0:t.type,onClick:r})),n,a)}var Gn=ze(Ft());function gD(e){var t=e.schema,r=e.onClickType,n=t.getQueryType(),a=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return Gn.default.createElement("div",null,Gn.default.createElement(oi,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),Gn.default.createElement("div",{className:"doc-category"},Gn.default.createElement("div",{className:"doc-category-title"},"root types"),Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"query"),": ",Gn.default.createElement(kn,{type:n,onClick:r})),a&&Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"mutation"),": ",Gn.default.createElement(kn,{type:a,onClick:r})),o&&Gn.default.createElement("div",{className:"doc-category-item"},Gn.default.createElement("span",{className:"keyword"},"subscription"),": ",Gn.default.createElement(kn,{type:o,onClick:r}))))}var dc=ze(Ft());function ui(e,t){var r;return function(){for(var n=this,a=[],o=0;o=100)return"break";var g=m[_];if(n!==g&&mD(_,r)&&d.push(Qn.default.createElement("div",{className:"doc-category-item",key:_},Qn.default.createElement(kn,{type:g,onClick:o}))),g&&"getFields"in g){var k=g.getFields();Object.keys(k).forEach(function(N){var w=k[N],D;if(!mD(N,r))if("args"in w&&w.args.length){if(D=w.args.filter(function(P){return mD(P.name,r)}),D.length===0)return}else return;var F=Qn.default.createElement("div",{className:"doc-category-item",key:_+"."+N},n!==g&&[Qn.default.createElement(kn,{key:"type",type:g,onClick:o}),"."],Qn.default.createElement("a",{className:"field-name",onClick:function(P){return s(w,g,P)}},w.name),D&&["(",Qn.default.createElement("span",{key:"args"},D.map(function(P){return Qn.default.createElement(ps,{key:P.name,arg:P,onClickType:o,showDefaultValue:!1})})),")"]);n===g?c.push(F):h.push(F)})}},C=0,L=T;C0?Qn.default.createElement("div",null,c,Qn.default.createElement("div",{className:"doc-category"},Qn.default.createElement("div",{className:"doc-category-title"},"other results"),d,h)):Qn.default.createElement("div",{className:"doc-search-items"},c,d,h)},t}(Qn.default.Component),lq=L$;function mD(e,t){try{var r=t.replace(/[^_0-9A-Za-z]/g,function(n){return"\\"+n});return e.search(new RegExp(r,"i"))!==-1}catch(n){return e.toLowerCase().indexOf(t.toLowerCase())!==-1}}var ft=ze(Ft()),Aa=ze(Nt());var x$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),I$=function(e){x$(t,e);function t(r){var n=e.call(this,r)||this;return n.handleShowDeprecated=function(){return n.setState({showDeprecated:!0})},n.state={showDeprecated:!1},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.type!==r.type||this.props.schema!==r.schema||this.state.showDeprecated!==n.showDeprecated},t.prototype.render=function(){var r=this.props.schema,n=this.props.type,a=this.props.onClickType,o=this.props.onClickField,s=null,c=[];n instanceof Aa.GraphQLUnionType?(s="possible types",c=r.getPossibleTypes(n)):n instanceof Aa.GraphQLInterfaceType?(s="implementations",c=r.getPossibleTypes(n)):n instanceof Aa.GraphQLObjectType&&(s="implements",c=n.getInterfaces());var d;c&&c.length>0&&(d=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},s),c.map(function(g){return ft.default.createElement("div",{key:g.name,className:"doc-category-item"},ft.default.createElement(kn,{type:g,onClick:a}))})));var h,m;if(n&&"getFields"in n){var T=n.getFields(),b=Object.keys(T).map(function(g){return T[g]});h=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"fields"),b.filter(function(g){return"isDeprecated"in g?!g.isDeprecated:!0}).map(function(g){return ft.default.createElement(fq,{key:g.name,type:n,field:g,onClickType:a,onClickField:o})}));var C=b.filter(function(g){return"isDeprecated"in g&&g.isDeprecated});C.length>0&&(m=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?C.map(function(g){return ft.default.createElement(fq,{key:g.name,type:n,field:g,onClickType:a,onClickField:o})}):ft.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var L,S;if(n instanceof Aa.GraphQLEnumType){var y=n.getValues();L=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"values"),y.filter(function(g){return!g.isDeprecated}).map(function(g){return ft.default.createElement(dq,{key:g.name,value:g})}));var _=y.filter(function(g){return g.isDeprecated});_.length>0&&(S=ft.default.createElement("div",{className:"doc-category"},ft.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?_.map(function(g){return ft.default.createElement(dq,{key:g.name,value:g})}):ft.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return ft.default.createElement("div",null,ft.default.createElement(oi,{className:"doc-type-description",markdown:"description"in n&&n.description||"No Description"}),n instanceof Aa.GraphQLObjectType&&d,h,m,L,S,!(n instanceof Aa.GraphQLObjectType)&&d)},t}(ft.default.Component),cq=I$;function fq(e){var t=e.type,r=e.field,n=e.onClickType,a=e.onClickField;return ft.default.createElement("div",{className:"doc-category-item"},ft.default.createElement("a",{className:"field-name",onClick:function(o){return a(r,t,o)}},r.name),"args"in r&&r.args&&r.args.length>0&&["(",ft.default.createElement("span",{key:"args"},r.args.map(function(o){return ft.default.createElement(ps,{key:o.name,arg:o,onClickType:n})})),")"],": ",ft.default.createElement(kn,{type:r.type,onClick:n}),ft.default.createElement(Dp,{field:r}),r.description&&ft.default.createElement(oi,{className:"field-short-description",markdown:r.description}),"deprecationReason"in r&&r.deprecationReason&&ft.default.createElement(oi,{className:"doc-deprecation",markdown:r.deprecationReason}))}function dq(e){var t=e.value;return ft.default.createElement("div",{className:"doc-category-item"},ft.default.createElement("div",{className:"enum-value"},t.name),ft.default.createElement(oi,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&ft.default.createElement(oi,{className:"doc-deprecation",markdown:t.deprecationReason}))}var R$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zm=function(){return zm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(a){n.showDoc(a)},n.handleClickField=function(a){n.showDoc(a)},n.handleSearch=function(a){n.showSearch(a)},n.state={navStack:[pq]},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.schema!==r.schema||this.state.navStack!==n.navStack},t.prototype.render=function(){var r=this.props.schema,n=this.state.navStack,a=n[n.length-1],o;r===void 0?o=fn.default.createElement("div",{className:"spinner-container"},fn.default.createElement("div",{className:"spinner"})):r?a.search?o=fn.default.createElement(lq,{searchValue:a.search,withinType:a.def,schema:r,onClickType:this.handleClickType,onClickField:this.handleClickField}):n.length===1?o=fn.default.createElement(gD,{schema:r,onClickType:this.handleClickType}):(0,yD.isType)(a.def)?o=fn.default.createElement(cq,{schema:r,type:a.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):o=fn.default.createElement(vD,{field:a.def,onClickType:this.handleClickType}):o=fn.default.createElement("div",{className:"error-container"},"No Schema Available");var s=n.length===1||(0,yD.isType)(a.def)&&"getFields"in a.def,c;return n.length>1&&(c=n[n.length-2].name),fn.default.createElement("section",{className:"doc-explorer",key:a.name,"aria-label":"Documentation Explorer"},fn.default.createElement("div",{className:"doc-explorer-title-bar"},c&&fn.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+c},c),fn.default.createElement("div",{className:"doc-explorer-title"},a.title||a.name),fn.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),fn.default.createElement("div",{className:"doc-explorer-contents"},s&&fn.default.createElement(sq,{value:a.search,placeholder:"Search "+a.name+"...",onSearch:this.handleSearch}),o))},t.prototype.showDoc=function(r){var n=this.state.navStack,a=n[n.length-1];a.def!==r&&this.setState({navStack:n.concat([{name:r.name,def:r}])})},t.prototype.showDocForReference=function(r){r&&r.kind==="Type"?this.showDoc(r.type):r.kind==="Field"?this.showDoc(r.field):r.kind==="Argument"&&r.field?this.showDoc(r.field):r.kind==="EnumValue"&&r.type&&this.showDoc(r.type)},t.prototype.showSearch=function(r){var n=this.state.navStack.slice(),a=n[n.length-1];n[n.length-1]=zm(zm({},a),{search:r}),this.setState({navStack:n})},t.prototype.reset=function(){this.setState({navStack:[pq]})},t}(fn.default.Component);var gq=ze(Nt()),su=ze(Ft());var F$=function(){for(var e=0,t=0,r=arguments.length;tthis.maxSize&&n.shift();for(var a=0;a<5;a++){var o=this.storage.set(this.key,JSON.stringify((r={},r[this.key]=n,r)));if(!o||!o.error)this.items=n;else if(o.isQuotaError&&this.maxSize)n.shift();else return}},e.prototype.save=function(){var t;this.storage.set(this.key,JSON.stringify((t={},t[this.key]=this.items,t)))},e}(),ED=P$;var hs=ze(Ft()),j$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),M$=function(e){j$(t,e);function t(r){var n=e.call(this,r)||this;return n.state={editable:!1},n.editField=null,n}return t.prototype.render=function(){var r=this,n,a=this.props.label||this.props.operationName||((n=this.props.query)===null||n===void 0?void 0:n.split(` `).filter(function(s){return s.indexOf("#")!==0}).join("")),o=this.props.favorite?"\u2605":"\u2606";return hs.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?hs.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:function(s){r.editField=s},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):hs.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},a),hs.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270E"),hs.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},o))},t.prototype.handleClick=function(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)},t.prototype.handleStarClick=function(r){r.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)},t.prototype.handleFieldBlur=function(r){r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.target.value,this.props.favorite)},t.prototype.handleFieldKeyDown=function(r){r.keyCode===13&&(r.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,r.currentTarget.value,this.props.favorite))},t.prototype.handleEditClick=function(r){var n=this;r.stopPropagation(),this.setState({editable:!0},function(){n.editField&&n.editField.focus()})},t}(hs.default.Component),hq=M$;var q$=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cp=function(){return Cp=Object.assign||function(e){for(var t,r=1,n=arguments.length;rB$?!1:n?!(JSON.stringify(e)===JSON.stringify(n.query)&&(JSON.stringify(t)===JSON.stringify(n.variables)&&(JSON.stringify(r)===JSON.stringify(n.headers)||r&&!n.headers)||t&&!n.variables)):!0},mq=function(e){q$(t,e);function t(r){var n=e.call(this,r)||this;n.updateHistory=function(c,d,h,m){if(U$(c,d,h,n.historyStore.fetchRecent())){n.historyStore.push({query:c,variables:d,headers:h,operationName:m});var T=n.historyStore.items,b=n.favoriteStore.items,C=T.concat(b);n.setState({queries:C})}},n.toggleFavorite=function(c,d,h,m,T,b){var C={query:c,variables:d,headers:h,operationName:m,label:T};n.favoriteStore.contains(C)?b&&(C.favorite=!1,n.favoriteStore.delete(C)):(C.favorite=!0,n.favoriteStore.push(C)),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.editLabel=function(c,d,h,m,T,b){var C={query:c,variables:d,headers:h,operationName:m,label:T};b?n.favoriteStore.edit(Cp(Cp({},C),{favorite:b})):n.historyStore.edit(C),n.setState({queries:vq(n.historyStore.items,n.favoriteStore.items)})},n.historyStore=new ED("queries",r.storage,V$),n.favoriteStore=new ED("favorites",r.storage,null);var a=n.historyStore.fetchAll(),o=n.favoriteStore.fetchAll(),s=a.concat(o);return n.state={queries:s},n}return t.prototype.render=function(){var r=this,n=this.state.queries.slice().reverse(),a=n.map(function(o,s){return su.default.createElement(hq,Cp({handleEditLabel:r.editLabel,handleToggleFavorite:r.toggleFavorite,key:s+":"+(o.label||o.query),onSelect:r.props.onSelectQuery},o))});return su.default.createElement("section",{"aria-label":"History"},su.default.createElement("div",{className:"history-title-bar"},su.default.createElement("div",{className:"history-title"},"History"),su.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),su.default.createElement("ul",{className:"history-contents"},a))},t}(su.default.Component);var G$=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(t){var r=this;t.forEach(function(n,a){if(n){var o=n.getClientHeight();if(a<=r.sizes.length&&o!==r.sizes[a]){var s=n.getCodeMirror();s&&s.setSize(null,null)}r.sizes[a]=o}})},e}(),yq=G$;function Q$(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name==="QuotaExceededError"||t.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e.length!==0}var K$=function(){function e(t){this.storage=t||(typeof window!="undefined"?window.localStorage:null)}return e.prototype.get=function(t){if(this.storage){var r=this.storage.getItem("graphiql:"+t);if(r==="null"||r==="undefined")return this.storage.removeItem("graphiql:"+t),null;if(r)return r}return null},e.prototype.set=function(t,r){var n=!1,a=null;if(this.storage){var o="graphiql:"+t;if(r)try{this.storage.setItem(o,r)}catch(s){a=s,n=Q$(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:n,error:a}},e}(),bq=K$;var pc=ze(Nt());function Op(e,t){if(!!t){var r;try{r=(0,pc.parse)(t,{experimentalFragmentVariables:!0})}catch(o){return}var n=e?H$(e,r):void 0,a=[];return(0,pc.visit)(r,{OperationDefinition:function(o){a.push(o)}}),{variableToType:n,operations:a,documentAST:r}}}function H$(e,t){var r=Object.create(null);return t.definitions.forEach(function(n){if(n.kind==="OperationDefinition"){var a=n.variableDefinitions;a&&a.forEach(function(o){var s=o.variable,c=o.type,d=(0,pc.typeFromAST)(e,c);d&&(r[s.name.value]=d)})}}),r}function wp(e,t,r){if(!(!r||r.length<1)){var n=r.map(function(s){return s.name&&s.name.value});if(t&&n.indexOf(t)!==-1)return t;if(t&&e){var a=e.map(function(s){return s.name&&s.name.value}),o=a.indexOf(t);if(o!==-1&&o=0)continue;s.push(m)}var T=e[h.name.value];if(T){var b=T.typeCondition,C=T.directives,L=T.selectionSet;h={kind:"InlineFragment",typeCondition:b,directives:C,selectionSet:L}}}if(h.kind==="InlineFragment"&&(!h.directives||((n=h.directives)===null||n===void 0?void 0:n.length)===0)){var S=h.typeCondition?h.typeCondition.name.value:null;if(!S||S===a){o.push.apply(o,Tq(e,h.selectionSet.selections,r));continue}}o.push(h)}return o}function Wm(e,t){for(var r=t?new lu.TypeInfo(t):null,n=Object.create(null),a=0,o=e.definitions;a0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]0){var o=this.getQueryEditor();o&&o.operation(function(){var s=o.getCursor(),c=o.indexFromPos(s);o.setValue(a||"");var d=0,h=n.map(function(T){var b=T.index,C=T.string;return o.markText(o.posFromIndex(b+d),o.posFromIndex(b+(d+=C.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return h.forEach(function(T){return T.clear()})},7e3);var m=c;n.forEach(function(T){var b=T.index,C=T.string;b2?a.headers=JSON.parse(this.state.headers):this.props.headers&&(a.headers=JSON.parse(this.props.headers));var o=Pq(n({query:SD,operationName:DD},a));if(!Iq(o)){this.setState({response:"Fetcher did not return a Promise for introspection."});return}o.then(function(s){if(typeof s!="string"&&"data"in s)return s;var c=Pq(n({query:Sq,operationName:DD},a));if(!Iq(o))throw new Error("Fetcher did not return a Promise for introspection.");return c}).then(function(s){if(r.state.schema===void 0)if(typeof s!="string"&&"data"in s){var c=(0,Xi.buildClientSchema)(s.data),d=Op(c,r.state.query);r.safeSetState(La({schema:c},d))}else{var h=typeof s=="string"?s:t.formatResult(s);r.safeSetState({schema:void 0,response:h})}}).catch(function(s){r.safeSetState({schema:void 0,response:s?t.formatError(s):void 0})})},t.prototype._fetchQuery=function(r,n,a,o,s,c){return CD(this,void 0,void 0,function(){var d,h,m,T,b,C,L=this;return OD(this,function(S){d=this.props.fetcher,h=null,m=null;try{h=n&&n.trim()!==""?JSON.parse(n):null}catch(y){throw new Error("Variables are invalid JSON: "+y.message+".")}if(typeof h!="object")throw new Error("Variables are not a JSON object.");try{m=a&&a.trim()!==""?JSON.parse(a):null}catch(y){throw new Error("Headers are invalid JSON: "+y.message+".")}if(typeof m!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(T=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(y){T.set(y.name.value,y)}):(0,Xi.visit)((0,Xi.parse)(this.props.externalFragments,{experimentalFragmentVariables:!0}),{FragmentDefinition:function(y){T.set(y.name.value,y)}}),b=(0,Cq.getFragmentDependenciesForAST)(this.state.documentAST,T),b.length>0&&(r+=` `+b.map(function(y){return(0,Xi.print)(y)}).join(` `))),C=d({query:r,variables:h,operationName:o},{headers:m,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(C).then(function(y){if(Rq(y)){var _=y.subscribe({next:c,error:function(g){L.safeSetState({isWaitingForResponse:!1,response:g?t.formatError(g):void 0,subscription:null})},complete:function(){L.safeSetState({isWaitingForResponse:!1,subscription:null})}});return _}else return Fq(y)?(function(){return CD(L,void 0,void 0,function(){var g,k,N,w,D,F,P;return OD(this,function(B){switch(B.label){case 0:B.trys.push([0,13,,14]),B.label=1;case 1:B.trys.push([1,6,7,12]),g=ree(y),B.label=2;case 2:return[4,g.next()];case 3:if(k=B.sent(),!!k.done)return[3,5];N=k.value,c(N),B.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return w=B.sent(),F={error:w},[3,12];case 7:return B.trys.push([7,,10,11]),k&&!k.done&&(P=g.return)?[4,P.call(g)]:[3,9];case 8:B.sent(),B.label=9;case 9:return[3,11];case 10:if(F)throw F.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return D=B.sent(),this.safeSetState({isWaitingForResponse:!1,response:D?t.formatError(D):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var g,k;return(k=(g=y[Symbol.asyncIterator]()).return)===null||k===void 0?void 0:k.call(g)}}):(c(y),null)}).catch(function(y){return L.safeSetState({isWaitingForResponse:!1,response:y?t.formatError(y):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var a=this.getQueryEditor();if(a&&a.hasFocus())for(var o=a.getCursor(),s=a.indexFromPos(o),c=0;c=s){r=d.name&&d.name.value;break}}}this.handleRunQuery(r)},t.prototype._didClickDragBar=function(r){if(r.button!==0||r.ctrlKey)return!1;var n=r.target;if(n.className.indexOf("CodeMirror-gutter")!==0)return!1;for(var a=this.resultViewerElement;n;){if(n===a)return!0;n=n.parentNode}return!1},t.Logo=Nq,t.Toolbar=Aq,t.Footer=Lq,t.QueryEditor=Rm,t.VariableEditor=Um,t.HeaderEditor=sD,t.ResultViewer=cD,t.Button=tu,t.ToolbarButton=tu,t.Group=KS,t.Menu=HS,t.MenuItem=rR,t}(Xe.default.Component);function Nq(e){return Xe.default.createElement("div",{className:"title"},e.children||Xe.default.createElement("span",null,"Graph",Xe.default.createElement("em",null,"i"),"QL"))}Nq.displayName="GraphiQLLogo";function Aq(e){return Xe.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}Aq.displayName="GraphiQLToolbar";function Lq(e){return Xe.default.createElement("div",{className:"footer"},e.children)}Lq.displayName="GraphiQLFooter";var xq=function(e){return La(La({},e),{message:e.message,stack:e.stack})},aee=`# Welcome to GraphiQL # # GraphiQL is an in-browser tool for writing, validating, and # testing GraphQL queries. # # Type queries into this side of the screen, and you will see intelligent # typeaheads aware of the current GraphQL type schema and live syntax and # validation errors highlighted within the text. # # GraphQL queries typically start with a "{" character. Lines that start # with a # are ignored. # # An example GraphQL query might look like: # # { # field(arg: "value") { # subField # } # } # # Keyboard shortcuts: # # Prettify Query: Shift-Ctrl-P (or press the prettify button above) # # Merge Query: Shift-Ctrl-M (or press the merge button above) # # Run Query: Ctrl-Enter (or press the play button above) # # Auto Complete: Ctrl-Space (or just start typing) # `;function Iq(e){return typeof e=="object"&&typeof e.then=="function"}function oee(e){return new Promise(function(t,r){var n=e.subscribe({next:function(a){t(a),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function Rq(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function Fq(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function uee(e){return new Promise(function(t,r){var n,a=(n=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||n===void 0?void 0:n.bind(e),o=("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e);o().then(function(s){t(s.value),a==null||a()}).catch(function(s){r(s)})})}function Pq(e){return Promise.resolve(e).then(function(t){return Fq(t)?uee(t):Rq(t)?oee(t):t})}function wD(e,t){var r;return((r=e==null?void 0:e.type)===null||r===void 0?void 0:r.displayName)&&e.type.displayName===t.displayName?!0:e.type===t}var xi=ze(Ft()),see=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ND=function(){return ND=Object.assign||function(e){for(var t,r=1,n=arguments.length;r