mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
347 lines
1014 KiB
JavaScript
347 lines
1014 KiB
JavaScript
(()=>{var HB=Object.create;var U0=Object.defineProperty;var zB=Object.getOwnPropertyDescriptor;var WB=Object.getOwnPropertyNames;var YB=Object.getPrototypeOf,JB=Object.prototype.hasOwnProperty;var XB=e=>U0(e,"__esModule",{value:!0});var tx=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var G=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ZB=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of WB(t))!JB.call(e,n)&&n!=="default"&&U0(e,n,{get:()=>t[n],enumerable:!(r=zB(t,n))||r.enumerable});return e},Ee=e=>ZB(XB(U0(e!=null?HB(YB(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var G0=G((Oie,nx)=>{"use strict";var rx=Object.getOwnPropertySymbols,$B=Object.prototype.hasOwnProperty,eK=Object.prototype.propertyIsEnumerable;function tK(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function rK(){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 i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(o){return!1}}nx.exports=rK()?Object.assign:function(e,t){for(var r,n=tK(e),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var s in r)$B.call(r,s)&&(n[s]=r[s]);if(rx){i=rx(r);for(var l=0;l<i.length;l++)eK.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n}});var bx=G(Et=>{"use strict";var Q0=G0(),ml=60103,ix=60106;Et.Fragment=60107;Et.StrictMode=60108;Et.Profiler=60114;var ax=60109,ox=60110,ux=60112;Et.Suspense=60113;var sx=60115,lx=60116;typeof Symbol=="function"&&Symbol.for&&(Mi=Symbol.for,ml=Mi("react.element"),ix=Mi("react.portal"),Et.Fragment=Mi("react.fragment"),Et.StrictMode=Mi("react.strict_mode"),Et.Profiler=Mi("react.profiler"),ax=Mi("react.provider"),ox=Mi("react.context"),ux=Mi("react.forward_ref"),Et.Suspense=Mi("react.suspense"),sx=Mi("react.memo"),lx=Mi("react.lazy"));var Mi,cx=typeof Symbol=="function"&&Symbol.iterator;function nK(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}function If(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},dx={};function yl(e,t,r){this.props=e,this.context=t,this.refs=dx,this.updater=r||fx}yl.prototype.isReactComponent={};yl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(If(85));this.updater.enqueueSetState(this,e,t,"setState")};yl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function px(){}px.prototype=yl.prototype;function B0(e,t,r){this.props=e,this.context=t,this.refs=dx,this.updater=r||fx}var K0=B0.prototype=new px;K0.constructor=B0;Q0(K0,yl.prototype);K0.isPureReactComponent=!0;var H0={current:null},hx=Object.prototype.hasOwnProperty,vx={key:!0,ref:!0,__self:!0,__source:!0};function gx(e,t,r){var n,i={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)hx.call(t,n)&&!vx.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var d=Array(l),h=0;h<l;h++)d[h]=arguments[h+2];i.children=d}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:ml,type:e,key:o,ref:s,props:i,_owner:H0.current}}function iK(e,t){return{$$typeof:ml,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function z0(e){return typeof e=="object"&&e!==null&&e.$$typeof===ml}function aK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var mx=/\/+/g;function W0(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aK(""+e.key):t.toString(36)}function Gh(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ml:case ix:s=!0}}if(s)return s=e,i=i(s),e=n===""?"."+W0(s,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(mx,"$&/")+"/"),Gh(i,t,r,"",function(h){return h})):i!=null&&(z0(i)&&(i=iK(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(mx,"$&/")+"/")+e)),t.push(i)),1;if(s=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var d=n+W0(o,l);s+=Gh(o,t,r,d,i)}else if(d=nK(e),typeof d=="function")for(e=d.call(e),l=0;!(o=e.next()).done;)o=o.value,d=n+W0(o,l++),s+=Gh(o,t,r,d,i);else if(o==="object")throw t=""+e,Error(If(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function Qh(e,t,r){if(e==null)return e;var n=[],i=0;return Gh(e,n,"","",function(o){return t.call(r,o,i++)}),n}function oK(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var yx={current:null};function ho(){var e=yx.current;if(e===null)throw Error(If(321));return e}var uK={ReactCurrentDispatcher:yx,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:H0,IsSomeRendererActing:{current:!1},assign:Q0};Et.Children={map:Qh,forEach:function(e,t,r){Qh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Qh(e,function(){t++}),t},toArray:function(e){return Qh(e,function(t){return t})||[]},only:function(e){if(!z0(e))throw Error(If(143));return e}};Et.Component=yl;Et.PureComponent=B0;Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uK;Et.cloneElement=function(e,t,r){if(e==null)throw Error(If(267,e));var n=Q0({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=H0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(d in t)hx.call(t,d)&&!vx.hasOwnProperty(d)&&(n[d]=t[d]===void 0&&l!==void 0?l[d]:t[d])}var d=arguments.length-2;if(d===1)n.children=r;else if(1<d){l=Array(d);for(var h=0;h<d;h++)l[h]=arguments[h+2];n.children=l}return{$$typeof:ml,type:e.type,key:i,ref:o,props:n,_owner:s}};Et.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:ox,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:ax,_context:e},e.Consumer=e};Et.createElement=gx;Et.createFactory=function(e){var t=gx.bind(null,e);return t.type=e,t};Et.createRef=function(){return{current:null}};Et.forwardRef=function(e){return{$$typeof:ux,render:e}};Et.isValidElement=z0;Et.lazy=function(e){return{$$typeof:lx,_payload:{_status:-1,_result:e},_init:oK}};Et.memo=function(e,t){return{$$typeof:sx,type:e,compare:t===void 0?null:t}};Et.useCallback=function(e,t){return ho().useCallback(e,t)};Et.useContext=function(e,t){return ho().useContext(e,t)};Et.useDebugValue=function(){};Et.useEffect=function(e,t){return ho().useEffect(e,t)};Et.useImperativeHandle=function(e,t,r){return ho().useImperativeHandle(e,t,r)};Et.useLayoutEffect=function(e,t){return ho().useLayoutEffect(e,t)};Et.useMemo=function(e,t){return ho().useMemo(e,t)};Et.useReducer=function(e,t,r){return ho().useReducer(e,t,r)};Et.useRef=function(e){return ho().useRef(e)};Et.useState=function(e){return ho().useState(e)};Et.version="17.0.2"});var zt=G((Nie,Tx)=>{"use strict";Tx.exports=bx()});var wx=G(qt=>{"use strict";var bl,Af,Bh,Y0;typeof performance=="object"&&typeof performance.now=="function"?(_x=performance,qt.unstable_now=function(){return _x.now()}):(J0=Date,Ex=J0.now(),qt.unstable_now=function(){return J0.now()-Ex});var _x,J0,Ex;typeof window=="undefined"||typeof MessageChannel!="function"?(Tl=null,X0=null,Z0=function(){if(Tl!==null)try{var e=qt.unstable_now();Tl(!0,e),Tl=null}catch(t){throw setTimeout(Z0,0),t}},bl=function(e){Tl!==null?setTimeout(bl,0,e):(Tl=e,setTimeout(Z0,0))},Af=function(e,t){X0=setTimeout(e,t)},Bh=function(){clearTimeout(X0)},qt.unstable_shouldYield=function(){return!1},Y0=qt.unstable_forceFrameRate=function(){}):(Sx=window.setTimeout,kx=window.clearTimeout,typeof console!="undefined"&&(Ox=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 Ox!="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")),Rf=!1,jf=null,Kh=-1,$0=5,eb=0,qt.unstable_shouldYield=function(){return qt.unstable_now()>=eb},Y0=function(){},qt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$0=0<e?Math.floor(1e3/e):5},tb=new MessageChannel,Hh=tb.port2,tb.port1.onmessage=function(){if(jf!==null){var e=qt.unstable_now();eb=e+$0;try{jf(!0,e)?Hh.postMessage(null):(Rf=!1,jf=null)}catch(t){throw Hh.postMessage(null),t}}else Rf=!1},bl=function(e){jf=e,Rf||(Rf=!0,Hh.postMessage(null))},Af=function(e,t){Kh=Sx(function(){e(qt.unstable_now())},t)},Bh=function(){kx(Kh),Kh=-1});var Tl,X0,Z0,Sx,kx,Ox,Rf,jf,Kh,$0,eb,tb,Hh;function rb(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,i=e[n];if(i!==void 0&&0<Wh(i,t))e[n]=t,e[r]=i,r=n;else break e}}function ha(e){return e=e[0],e===void 0?null:e}function zh(e){var t=e[0];if(t!==void 0){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length;n<i;){var o=2*(n+1)-1,s=e[o],l=o+1,d=e[l];if(s!==void 0&&0>Wh(s,r))d!==void 0&&0>Wh(d,s)?(e[n]=d,e[l]=r,n=l):(e[n]=s,e[o]=r,n=o);else if(d!==void 0&&0>Wh(d,r))e[n]=d,e[l]=r,n=l;else break e}}return t}return null}function Wh(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}var La=[],Ho=[],sK=1,qi=null,An=3,Yh=!1,$u=!1,Pf=!1;function nb(e){for(var t=ha(Ho);t!==null;){if(t.callback===null)zh(Ho);else if(t.startTime<=e)zh(Ho),t.sortIndex=t.expirationTime,rb(La,t);else break;t=ha(Ho)}}function ib(e){if(Pf=!1,nb(e),!$u)if(ha(La)!==null)$u=!0,bl(ab);else{var t=ha(Ho);t!==null&&Af(ib,t.startTime-e)}}function ab(e,t){$u=!1,Pf&&(Pf=!1,Bh()),Yh=!0;var r=An;try{for(nb(t),qi=ha(La);qi!==null&&(!(qi.expirationTime>t)||e&&!qt.unstable_shouldYield());){var n=qi.callback;if(typeof n=="function"){qi.callback=null,An=qi.priorityLevel;var i=n(qi.expirationTime<=t);t=qt.unstable_now(),typeof i=="function"?qi.callback=i:qi===ha(La)&&zh(La),nb(t)}else zh(La);qi=ha(La)}if(qi!==null)var o=!0;else{var s=ha(Ho);s!==null&&Af(ib,s.startTime-t),o=!1}return o}finally{qi=null,An=r,Yh=!1}}var lK=Y0;qt.unstable_IdlePriority=5;qt.unstable_ImmediatePriority=1;qt.unstable_LowPriority=4;qt.unstable_NormalPriority=3;qt.unstable_Profiling=null;qt.unstable_UserBlockingPriority=2;qt.unstable_cancelCallback=function(e){e.callback=null};qt.unstable_continueExecution=function(){$u||Yh||($u=!0,bl(ab))};qt.unstable_getCurrentPriorityLevel=function(){return An};qt.unstable_getFirstCallbackNode=function(){return ha(La)};qt.unstable_next=function(e){switch(An){case 1:case 2:case 3:var t=3;break;default:t=An}var r=An;An=t;try{return e()}finally{An=r}};qt.unstable_pauseExecution=function(){};qt.unstable_requestPaint=lK;qt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=An;An=e;try{return t()}finally{An=r}};qt.unstable_scheduleCallback=function(e,t,r){var n=qt.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=r+i,e={id:sK++,callback:t,priorityLevel:e,startTime:r,expirationTime:i,sortIndex:-1},r>n?(e.sortIndex=r,rb(Ho,e),ha(La)===null&&e===ha(Ho)&&(Pf?Bh():Pf=!0,Af(ib,r-n))):(e.sortIndex=i,rb(La,e),$u||Yh||($u=!0,bl(ab))),e};qt.unstable_wrapCallback=function(e){var t=An;return function(){var r=An;An=t;try{return e.apply(this,arguments)}finally{An=r}}}});var Dx=G((xie,Nx)=>{"use strict";Nx.exports=wx()});var h1=G(Ki=>{"use strict";var Jh=zt(),cr=G0(),ln=Dx();function ye(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Jh)throw Error(ye(227));var xx=new Set,Ff={};function es(e,t){_l(e,t),_l(e+"Capture",t)}function _l(e,t){for(Ff[e]=t,e=0;e<t.length;e++)xx.add(t[e])}var vo=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),cK=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Cx=Object.prototype.hasOwnProperty,Lx={},Ix={};function fK(e){return Cx.call(Ix,e)?!0:Cx.call(Lx,e)?!1:cK.test(e)?Ix[e]=!0:(Lx[e]=!0,!1)}function dK(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pK(e,t,r,n){if(t===null||typeof t=="undefined"||dK(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $n(e,t,r,n,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new $n(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new $n(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new $n(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new $n(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){yn[e]=new $n(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new $n(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new $n(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new $n(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new $n(e,5,!1,e.toLowerCase(),null,!1,!1)});var ob=/[\-:]([a-z])/g;function ub(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(ob,ub);yn[t]=new $n(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(ob,ub);yn[t]=new $n(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(ob,ub);yn[t]=new $n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new $n(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new $n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new $n(e,1,!1,e.toLowerCase(),null,!0,!0)});function sb(e,t,r,n){var i=yn.hasOwnProperty(t)?yn[t]:null,o=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(pK(t,r,i,n)&&(r=null),n||i===null?fK(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var ts=Jh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mf=60103,rs=60106,zo=60107,lb=60108,qf=60114,cb=60109,fb=60110,Xh=60112,Vf=60113,Zh=60120,$h=60115,db=60116,pb=60121,hb=60128,Ax=60129,vb=60130,gb=60131;typeof Symbol=="function"&&Symbol.for&&(Yr=Symbol.for,Mf=Yr("react.element"),rs=Yr("react.portal"),zo=Yr("react.fragment"),lb=Yr("react.strict_mode"),qf=Yr("react.profiler"),cb=Yr("react.provider"),fb=Yr("react.context"),Xh=Yr("react.forward_ref"),Vf=Yr("react.suspense"),Zh=Yr("react.suspense_list"),$h=Yr("react.memo"),db=Yr("react.lazy"),pb=Yr("react.block"),Yr("react.scope"),hb=Yr("react.opaque.id"),Ax=Yr("react.debug_trace_mode"),vb=Yr("react.offscreen"),gb=Yr("react.legacy_hidden"));var Yr,Rx=typeof Symbol=="function"&&Symbol.iterator;function Uf(e){return e===null||typeof e!="object"?null:(e=Rx&&e[Rx]||e["@@iterator"],typeof e=="function"?e:null)}var mb;function Gf(e){if(mb===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);mb=t&&t[1]||""}return`
|
|
`+mb+e}var yb=!1;function ev(e,t){if(!e||yb)return"";yb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(`
|
|
`),o=n.stack.split(`
|
|
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l])return`
|
|
`+i[s].replace(" at new "," at ");while(1<=s&&0<=l);break}}}finally{yb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Gf(e):""}function hK(e){switch(e.tag){case 5:return Gf(e.type);case 16:return Gf("Lazy");case 13:return Gf("Suspense");case 19:return Gf("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 22:return e=ev(e.type._render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function El(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 zo:return"Fragment";case rs:return"Portal";case qf:return"Profiler";case lb:return"StrictMode";case Vf:return"Suspense";case Zh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case fb:return(e.displayName||"Context")+".Consumer";case cb:return(e._context.displayName||"Context")+".Provider";case Xh:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case $h:return El(e.type);case pb:return El(e._render);case db:t=e._payload,e=e._init;try{return El(e(t))}catch(r){}}return null}function Wo(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function jx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vK(e){var t=jx(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 i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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 tv(e){e._valueTracker||(e._valueTracker=vK(e))}function Px(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=jx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function rv(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 bb(e,t){var r=t.checked;return cr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function Fx(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Wo(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 Mx(e,t){t=t.checked,t!=null&&sb(e,"checked",t,!1)}function Tb(e,t){Mx(e,t);var r=Wo(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")?_b(e,t.type,r):t.hasOwnProperty("defaultValue")&&_b(e,t.type,Wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qx(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 _b(e,t,r){(t!=="number"||rv(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function gK(e){var t="";return Jh.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Eb(e,t){return e=cr({children:void 0},t),(t=gK(t.children))&&(e.children=t),e}function Sl(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Wo(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Sb(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ye(91));return cr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ye(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(ye(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Wo(r)}}function Ux(e,t){var r=Wo(t.value),n=Wo(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 Gx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var kb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Qx(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 Ob(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var nv,Bx=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==kb.svg||"innerHTML"in e)e.innerHTML=t;else{for(nv=nv||document.createElement("div"),nv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=nv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Bf={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},mK=["Webkit","ms","Moz","O"];Object.keys(Bf).forEach(function(e){mK.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bf[t]=Bf[e]})});function Kx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Bf.hasOwnProperty(e)&&Bf[e]?(""+t).trim():t+"px"}function Hx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Kx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var yK=cr({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 wb(e,t){if(t){if(yK[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}function Nb(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 Db(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xb=null,kl=null,Ol=null;function zx(e){if(e=sd(e)){if(typeof xb!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=kv(t),xb(e.stateNode,e.type,t))}}function Wx(e){kl?Ol?Ol.push(e):Ol=[e]:kl=e}function Yx(){if(kl){var e=kl,t=Ol;if(Ol=kl=null,zx(e),t)for(e=0;e<t.length;e++)zx(t[e])}}function Cb(e,t){return e(t)}function Jx(e,t,r,n,i){return e(t,r,n,i)}function Lb(){}var Xx=Cb,ns=!1,Ib=!1;function Ab(){(kl!==null||Ol!==null)&&(Lb(),Yx())}function bK(e,t,r){if(Ib)return e(t,r);Ib=!0;try{return Xx(e,t,r)}finally{Ib=!1,Ab()}}function Kf(e,t){var r=e.stateNode;if(r===null)return null;var n=kv(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(ye(231,t,typeof r));return r}var Rb=!1;if(vo)try{wl={},Object.defineProperty(wl,"passive",{get:function(){Rb=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch(e){Rb=!1}var wl;function TK(e,t,r,n,i,o,s,l,d){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(v){this.onError(v)}}var Hf=!1,iv=null,av=!1,jb=null,_K={onError:function(e){Hf=!0,iv=e}};function EK(e,t,r,n,i,o,s,l,d){Hf=!1,iv=null,TK.apply(_K,arguments)}function SK(e,t,r,n,i,o,s,l,d){if(EK.apply(this,arguments),Hf){if(Hf){var h=iv;Hf=!1,iv=null}else throw Error(ye(198));av||(av=!0,jb=h)}}function is(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!=0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Zx(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function $x(e){if(is(e)!==e)throw Error(ye(188))}function kK(e){var t=e.alternate;if(!t){if(t=is(e),t===null)throw Error(ye(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return $x(i),e;if(o===n)return $x(i),t;o=o.sibling}throw Error(ye(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s)throw Error(ye(189))}}if(r.alternate!==n)throw Error(ye(190))}if(r.tag!==3)throw Error(ye(188));return r.stateNode.current===r?e:t}function eC(e){if(e=kK(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function tC(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var rC,Pb,nC,iC,Fb=!1,Ia=[],Yo=null,Jo=null,Xo=null,zf=new Map,Wf=new Map,Yf=[],aC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mb(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function oC(e,t){switch(e){case"focusin":case"focusout":Yo=null;break;case"dragenter":case"dragleave":Jo=null;break;case"mouseover":case"mouseout":Xo=null;break;case"pointerover":case"pointerout":zf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wf.delete(t.pointerId)}}function Jf(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=Mb(t,r,n,i,o),t!==null&&(t=sd(t),t!==null&&Pb(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function OK(e,t,r,n,i){switch(t){case"focusin":return Yo=Jf(Yo,e,t,r,n,i),!0;case"dragenter":return Jo=Jf(Jo,e,t,r,n,i),!0;case"mouseover":return Xo=Jf(Xo,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return zf.set(o,Jf(zf.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Wf.set(o,Jf(Wf.get(o)||null,e,t,r,n,i)),!0}return!1}function wK(e){var t=as(e.target);if(t!==null){var r=is(t);if(r!==null){if(t=r.tag,t===13){if(t=Zx(r),t!==null){e.blockedOn=t,iC(e.lanePriority,function(){ln.unstable_runWithPriority(e.priority,function(){nC(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ov(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Bb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=sd(r),t!==null&&Pb(t),e.blockedOn=r,!1;t.shift()}return!0}function uC(e,t,r){ov(e)&&r.delete(t)}function NK(){for(Fb=!1;0<Ia.length;){var e=Ia[0];if(e.blockedOn!==null){e=sd(e.blockedOn),e!==null&&rC(e);break}for(var t=e.targetContainers;0<t.length;){var r=Bb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Ia.shift()}Yo!==null&&ov(Yo)&&(Yo=null),Jo!==null&&ov(Jo)&&(Jo=null),Xo!==null&&ov(Xo)&&(Xo=null),zf.forEach(uC),Wf.forEach(uC)}function Xf(e,t){e.blockedOn===t&&(e.blockedOn=null,Fb||(Fb=!0,ln.unstable_scheduleCallback(ln.unstable_NormalPriority,NK)))}function sC(e){function t(i){return Xf(i,e)}if(0<Ia.length){Xf(Ia[0],e);for(var r=1;r<Ia.length;r++){var n=Ia[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Yo!==null&&Xf(Yo,e),Jo!==null&&Xf(Jo,e),Xo!==null&&Xf(Xo,e),zf.forEach(t),Wf.forEach(t),r=0;r<Yf.length;r++)n=Yf[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Yf.length&&(r=Yf[0],r.blockedOn===null);)wK(r),r.blockedOn===null&&Yf.shift()}function uv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Nl={animationend:uv("Animation","AnimationEnd"),animationiteration:uv("Animation","AnimationIteration"),animationstart:uv("Animation","AnimationStart"),transitionend:uv("Transition","TransitionEnd")},qb={},lC={};vo&&(lC=document.createElement("div").style,"AnimationEvent"in window||(delete Nl.animationend.animation,delete Nl.animationiteration.animation,delete Nl.animationstart.animation),"TransitionEvent"in window||delete Nl.transitionend.transition);function sv(e){if(qb[e])return qb[e];if(!Nl[e])return e;var t=Nl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in lC)return qb[e]=t[r];return e}var cC=sv("animationend"),fC=sv("animationiteration"),dC=sv("animationstart"),pC=sv("transitionend"),hC=new Map,Vb=new Map,DK=["abort","abort",cC,"animationEnd",fC,"animationIteration",dC,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",pC,"transitionEnd","waiting","waiting"];function Ub(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Vb.set(n,t),hC.set(n,i),es(i,[n])}}var xK=ln.unstable_now;xK();var Zt=8;function Dl(e){if((1&e)!=0)return Zt=15,1;if((2&e)!=0)return Zt=14,2;if((4&e)!=0)return Zt=13,4;var t=24&e;return t!==0?(Zt=12,t):(e&32)!=0?(Zt=11,32):(t=192&e,t!==0?(Zt=10,t):(e&256)!=0?(Zt=9,256):(t=3584&e,t!==0?(Zt=8,t):(e&4096)!=0?(Zt=7,4096):(t=4186112&e,t!==0?(Zt=6,t):(t=62914560&e,t!==0?(Zt=5,t):e&67108864?(Zt=4,67108864):(e&134217728)!=0?(Zt=3,134217728):(t=805306368&e,t!==0?(Zt=2,t):(1073741824&e)!=0?(Zt=1,1073741824):(Zt=8,e))))))}function CK(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function LK(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(ye(358,e))}}function Zf(e,t){var r=e.pendingLanes;if(r===0)return Zt=0;var n=0,i=0,o=e.expiredLanes,s=e.suspendedLanes,l=e.pingedLanes;if(o!==0)n=o,i=Zt=15;else if(o=r&134217727,o!==0){var d=o&~s;d!==0?(n=Dl(d),i=Zt):(l&=o,l!==0&&(n=Dl(l),i=Zt))}else o=r&~s,o!==0?(n=Dl(o),i=Zt):l!==0&&(n=Dl(l),i=Zt);if(n===0)return 0;if(n=31-Zo(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&(t&s)==0){if(Dl(t),i<=Zt)return t;Zt=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Zo(t),i=1<<r,n|=e[r],t&=~i;return n}function vC(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lv(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=xl(24&~t),e===0?lv(10,t):e;case 10:return e=xl(192&~t),e===0?lv(8,t):e;case 8:return e=xl(3584&~t),e===0&&(e=xl(4186112&~t),e===0&&(e=512)),e;case 2:return t=xl(805306368&~t),t===0&&(t=268435456),t}throw Error(ye(358,e))}function xl(e){return e&-e}function Gb(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function cv(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Zo(t),e[t]=r}var Zo=Math.clz32?Math.clz32:RK,IK=Math.log,AK=Math.LN2;function RK(e){return e===0?32:31-(IK(e)/AK|0)|0}var jK=ln.unstable_UserBlockingPriority,PK=ln.unstable_runWithPriority,fv=!0;function FK(e,t,r,n){ns||Lb();var i=Qb,o=ns;ns=!0;try{Jx(i,e,t,r,n)}finally{(ns=o)||Ab()}}function MK(e,t,r,n){PK(jK,Qb.bind(null,e,t,r,n))}function Qb(e,t,r,n){if(fv){var i;if((i=(t&4)==0)&&0<Ia.length&&-1<aC.indexOf(e))e=Mb(null,e,t,r,n),Ia.push(e);else{var o=Bb(e,t,r,n);if(o===null)i&&oC(e,n);else{if(i){if(-1<aC.indexOf(e)){e=Mb(o,e,t,r,n),Ia.push(e);return}if(OK(o,e,t,r,n))return;oC(e,n)}QC(e,t,n,null,r)}}}}function Bb(e,t,r,n){var i=Db(n);if(i=as(i),i!==null){var o=is(i);if(o===null)i=null;else{var s=o.tag;if(s===13){if(i=Zx(o),i!==null)return i;i=null}else if(s===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return QC(e,t,n,i,r),null}var $o=null,Kb=null,dv=null;function gC(){if(dv)return dv;var e,t=Kb,r=t.length,n,i="value"in $o?$o.value:$o.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===i[o-n];n++);return dv=i.slice(e,1<n?1-n:void 0)}function pv(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hv(){return!0}function mC(){return!1}function Oi(e){function t(r,n,i,o,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?hv:mC,this.isPropagationStopped=mC,this}return cr(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=hv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=hv)},persist:function(){},isPersistent:hv}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hb=Oi(Cl),$f=cr({},Cl,{view:0,detail:0}),qK=Oi($f),zb,Wb,ed,vv=cr({},$f,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ed&&(ed&&e.type==="mousemove"?(zb=e.screenX-ed.screenX,Wb=e.screenY-ed.screenY):Wb=zb=0,ed=e),zb)},movementY:function(e){return"movementY"in e?e.movementY:Wb}}),yC=Oi(vv),VK=cr({},vv,{dataTransfer:0}),UK=Oi(VK),GK=cr({},$f,{relatedTarget:0}),Yb=Oi(GK),QK=cr({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),BK=Oi(QK),KK=cr({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),HK=Oi(KK),zK=cr({},Cl,{data:0}),bC=Oi(zK),WK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},JK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XK(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=JK[e])?!!t[e]:!1}function Jb(){return XK}var ZK=cr({},$f,{key:function(e){if(e.key){var t=WK[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jb,charCode:function(e){return e.type==="keypress"?pv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$K=Oi(ZK),e3=cr({},vv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TC=Oi(e3),t3=cr({},$f,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jb}),r3=Oi(t3),n3=cr({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),i3=Oi(n3),a3=cr({},vv,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),o3=Oi(a3),u3=[9,13,27,32],Xb=vo&&"CompositionEvent"in window,td=null;vo&&"documentMode"in document&&(td=document.documentMode);var s3=vo&&"TextEvent"in window&&!td,_C=vo&&(!Xb||td&&8<td&&11>=td),EC=String.fromCharCode(32),SC=!1;function kC(e,t){switch(e){case"keyup":return u3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ll=!1;function l3(e,t){switch(e){case"compositionend":return OC(t);case"keypress":return t.which!==32?null:(SC=!0,EC);case"textInput":return e=t.data,e===EC&&SC?null:e;default:return null}}function c3(e,t){if(Ll)return e==="compositionend"||!Xb&&kC(e,t)?(e=gC(),dv=Kb=$o=null,Ll=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _C&&t.locale!=="ko"?null:t.data;default:return null}}var f3={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f3[e.type]:t==="textarea"}function NC(e,t,r,n){Wx(n),t=Tv(t,"onChange"),0<t.length&&(r=new Hb("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var rd=null,nd=null;function d3(e){MC(e,0)}function gv(e){var t=Pl(e);if(Px(t))return e}function p3(e,t){if(e==="change")return t}var DC=!1;vo&&(vo?(yv="oninput"in document,yv||(Zb=document.createElement("div"),Zb.setAttribute("oninput","return;"),yv=typeof Zb.oninput=="function"),mv=yv):mv=!1,DC=mv&&(!document.documentMode||9<document.documentMode));var mv,yv,Zb;function xC(){rd&&(rd.detachEvent("onpropertychange",CC),nd=rd=null)}function CC(e){if(e.propertyName==="value"&&gv(nd)){var t=[];if(NC(t,nd,e,Db(e)),e=d3,ns)e(t);else{ns=!0;try{Cb(e,t)}finally{ns=!1,Ab()}}}}function h3(e,t,r){e==="focusin"?(xC(),rd=t,nd=r,rd.attachEvent("onpropertychange",CC)):e==="focusout"&&xC()}function v3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gv(nd)}function g3(e,t){if(e==="click")return gv(t)}function m3(e,t){if(e==="input"||e==="change")return gv(t)}function y3(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Vi=typeof Object.is=="function"?Object.is:y3,b3=Object.prototype.hasOwnProperty;function id(e,t){if(Vi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!b3.call(t,r[n])||!Vi(e[r[n]],t[r[n]]))return!1;return!0}function LC(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function IC(e,t){var r=LC(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=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=LC(r)}}function AC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?AC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RC(){for(var e=window,t=rv();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=rv(e.document)}return t}function $b(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 T3=vo&&"documentMode"in document&&11>=document.documentMode,Il=null,eT=null,ad=null,tT=!1;function jC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tT||Il==null||Il!==rv(n)||(n=Il,"selectionStart"in n&&$b(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}),ad&&id(ad,n)||(ad=n,n=Tv(eT,"onSelect"),0<n.length&&(t=new Hb("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Il)))}Ub("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Ub("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Ub(DK,2);for(rT="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),bv=0;bv<rT.length;bv++)Vb.set(rT[bv],0);var rT,bv;_l("onMouseEnter",["mouseout","mouseover"]);_l("onMouseLeave",["mouseout","mouseover"]);_l("onPointerEnter",["pointerout","pointerover"]);_l("onPointerLeave",["pointerout","pointerover"]);es("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));es("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));es("onBeforeInput",["compositionend","keypress","textInput","paste"]);es("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));es("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));es("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var od="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),PC=new Set("cancel close invalid load scroll toggle".split(" ").concat(od));function FC(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,SK(n,t,void 0,e),e.currentTarget=null}function MC(e,t){t=(t&4)!=0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],d=l.instance,h=l.currentTarget;if(l=l.listener,d!==o&&i.isPropagationStopped())break e;FC(i,l,h),o=d}else for(s=0;s<n.length;s++){if(l=n[s],d=l.instance,h=l.currentTarget,l=l.listener,d!==o&&i.isPropagationStopped())break e;FC(i,l,h),o=d}}}if(av)throw e=jb,av=!1,jb=null,e}function ar(e,t){var r=YC(t),n=e+"__bubble";r.has(n)||(GC(t,e,2,!1),r.add(n))}var qC="_reactListening"+Math.random().toString(36).slice(2);function VC(e){e[qC]||(e[qC]=!0,xx.forEach(function(t){PC.has(t)||UC(t,!1,e,null),UC(t,!0,e,null)}))}function UC(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(e==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!t&&PC.has(e)){if(e!=="scroll")return;i|=2,o=n}var s=YC(o),l=e+"__"+(t?"capture":"bubble");s.has(l)||(t&&(i|=4),GC(o,e,i,t),s.add(l))}function GC(e,t,r,n){var i=Vb.get(t);switch(i===void 0?2:i){case 0:i=FK;break;case 1:i=MK;break;default:i=Qb}r=i.bind(null,t,r,e),i=void 0,!Rb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function QC(e,t,r,n,i){var o=n;if((t&1)==0&&(t&2)==0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var d=s.tag;if((d===3||d===4)&&(d=s.stateNode.containerInfo,d===i||d.nodeType===8&&d.parentNode===i))return;s=s.return}for(;l!==null;){if(s=as(l),s===null)return;if(d=s.tag,d===5||d===6){n=o=s;continue e}l=l.parentNode}}n=n.return}bK(function(){var h=o,v=Db(r),y=[];e:{var b=hC.get(e);if(b!==void 0){var D=Hb,_=e;switch(e){case"keypress":if(pv(r)===0)break e;case"keydown":case"keyup":D=$K;break;case"focusin":_="focus",D=Yb;break;case"focusout":_="blur",D=Yb;break;case"beforeblur":case"afterblur":D=Yb;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=yC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=UK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=r3;break;case cC:case fC:case dC:D=BK;break;case pC:D=i3;break;case"scroll":D=qK;break;case"wheel":D=o3;break;case"copy":case"cut":case"paste":D=HK;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=TC}var k=(t&4)!=0,T=!k&&e==="scroll",S=k?b!==null?b+"Capture":null:b;k=[];for(var m=h,w;m!==null;){w=m;var x=w.stateNode;if(w.tag===5&&x!==null&&(w=x,S!==null&&(x=Kf(m,S),x!=null&&k.push(ud(m,x,w)))),T)break;m=m.return}0<k.length&&(b=new D(b,_,null,r,v),y.push({event:b,listeners:k}))}}if((t&7)==0){e:{if(b=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",b&&(t&16)==0&&(_=r.relatedTarget||r.fromElement)&&(as(_)||_[jl]))break e;if((D||b)&&(b=v.window===v?v:(b=v.ownerDocument)?b.defaultView||b.parentWindow:window,D?(_=r.relatedTarget||r.toElement,D=h,_=_?as(_):null,_!==null&&(T=is(_),_!==T||_.tag!==5&&_.tag!==6)&&(_=null)):(D=null,_=h),D!==_)){if(k=yC,x="onMouseLeave",S="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=TC,x="onPointerLeave",S="onPointerEnter",m="pointer"),T=D==null?b:Pl(D),w=_==null?b:Pl(_),b=new k(x,m+"leave",D,r,v),b.target=T,b.relatedTarget=w,x=null,as(v)===h&&(k=new k(S,m+"enter",_,r,v),k.target=w,k.relatedTarget=T,x=k),T=x,D&&_)t:{for(k=D,S=_,m=0,w=k;w;w=Al(w))m++;for(w=0,x=S;x;x=Al(x))w++;for(;0<m-w;)k=Al(k),m--;for(;0<w-m;)S=Al(S),w--;for(;m--;){if(k===S||S!==null&&k===S.alternate)break t;k=Al(k),S=Al(S)}k=null}else k=null;D!==null&&BC(y,b,D,k,!1),_!==null&&T!==null&&BC(y,T,_,k,!0)}}e:{if(b=h?Pl(h):window,D=b.nodeName&&b.nodeName.toLowerCase(),D==="select"||D==="input"&&b.type==="file")var L=p3;else if(wC(b))if(DC)L=m3;else{L=v3;var O=h3}else(D=b.nodeName)&&D.toLowerCase()==="input"&&(b.type==="checkbox"||b.type==="radio")&&(L=g3);if(L&&(L=L(e,h))){NC(y,L,r,v);break e}O&&O(e,b,h),e==="focusout"&&(O=b._wrapperState)&&O.controlled&&b.type==="number"&&_b(b,"number",b.value)}switch(O=h?Pl(h):window,e){case"focusin":(wC(O)||O.contentEditable==="true")&&(Il=O,eT=h,ad=null);break;case"focusout":ad=eT=Il=null;break;case"mousedown":tT=!0;break;case"contextmenu":case"mouseup":case"dragend":tT=!1,jC(y,r,v);break;case"selectionchange":if(T3)break;case"keydown":case"keyup":jC(y,r,v)}var R;if(Xb)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else Ll?kC(e,r)&&(M="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(M="onCompositionStart");M&&(_C&&r.locale!=="ko"&&(Ll||M!=="onCompositionStart"?M==="onCompositionEnd"&&Ll&&(R=gC()):($o=v,Kb="value"in $o?$o.value:$o.textContent,Ll=!0)),O=Tv(h,M),0<O.length&&(M=new bC(M,e,null,r,v),y.push({event:M,listeners:O}),R?M.data=R:(R=OC(r),R!==null&&(M.data=R)))),(R=s3?l3(e,r):c3(e,r))&&(h=Tv(h,"onBeforeInput"),0<h.length&&(v=new bC("onBeforeInput","beforeinput",null,r,v),y.push({event:v,listeners:h}),v.data=R))}MC(y,t)})}function ud(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Tv(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Kf(e,r),o!=null&&n.unshift(ud(e,o,i)),o=Kf(e,t),o!=null&&n.push(ud(e,o,i))),e=e.return}return n}function Al(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function BC(e,t,r,n,i){for(var o=t._reactName,s=[];r!==null&&r!==n;){var l=r,d=l.alternate,h=l.stateNode;if(d!==null&&d===n)break;l.tag===5&&h!==null&&(l=h,i?(d=Kf(r,o),d!=null&&s.unshift(ud(r,d,l))):i||(d=Kf(r,o),d!=null&&s.push(ud(r,d,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}function _v(){}var nT=null,iT=null;function KC(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function aT(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var HC=typeof setTimeout=="function"?setTimeout:void 0,_3=typeof clearTimeout=="function"?clearTimeout:void 0;function oT(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Rl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function zC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var uT=0;function E3(e){return{$$typeof:hb,toString:e,valueOf:e}}var Ev=Math.random().toString(36).slice(2),eu="__reactFiber$"+Ev,Sv="__reactProps$"+Ev,jl="__reactContainer$"+Ev,WC="__reactEvents$"+Ev;function as(e){var t=e[eu];if(t)return t;for(var r=e.parentNode;r;){if(t=r[jl]||r[eu]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=zC(e);e!==null;){if(r=e[eu])return r;e=zC(e)}return t}e=r,r=e.parentNode}return null}function sd(e){return e=e[eu]||e[jl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ye(33))}function kv(e){return e[Sv]||null}function YC(e){var t=e[WC];return t===void 0&&(t=e[WC]=new Set),t}var sT=[],Fl=-1;function tu(e){return{current:e}}function or(e){0>Fl||(e.current=sT[Fl],sT[Fl]=null,Fl--)}function _r(e,t){Fl++,sT[Fl]=e.current,e.current=t}var ru={},Rn=tu(ru),ci=tu(!1),os=ru;function Ml(e,t){var r=e.type.contextTypes;if(!r)return ru;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fi(e){return e=e.childContextTypes,e!=null}function Ov(){or(ci),or(Rn)}function JC(e,t,r){if(Rn.current!==ru)throw Error(ye(168));_r(Rn,t),_r(ci,r)}function XC(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(ye(108,El(t)||"Unknown",i));return cr({},r,n)}function wv(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ru,os=Rn.current,_r(Rn,e),_r(ci,ci.current),!0}function ZC(e,t,r){var n=e.stateNode;if(!n)throw Error(ye(169));r?(e=XC(e,t,os),n.__reactInternalMemoizedMergedChildContext=e,or(ci),or(Rn),_r(Rn,e)):or(ci),_r(ci,r)}var lT=null,us=null,S3=ln.unstable_runWithPriority,cT=ln.unstable_scheduleCallback,fT=ln.unstable_cancelCallback,k3=ln.unstable_shouldYield,$C=ln.unstable_requestPaint,dT=ln.unstable_now,O3=ln.unstable_getCurrentPriorityLevel,Nv=ln.unstable_ImmediatePriority,eL=ln.unstable_UserBlockingPriority,tL=ln.unstable_NormalPriority,rL=ln.unstable_LowPriority,nL=ln.unstable_IdlePriority,pT={},w3=$C!==void 0?$C:function(){},go=null,Dv=null,hT=!1,iL=dT(),jn=1e4>iL?dT:function(){return dT()-iL};function ql(){switch(O3()){case Nv:return 99;case eL:return 98;case tL:return 97;case rL:return 96;case nL:return 95;default:throw Error(ye(332))}}function aL(e){switch(e){case 99:return Nv;case 98:return eL;case 97:return tL;case 96:return rL;case 95:return nL;default:throw Error(ye(332))}}function ss(e,t){return e=aL(e),S3(e,t)}function ld(e,t,r){return e=aL(e),cT(e,t,r)}function Aa(){if(Dv!==null){var e=Dv;Dv=null,fT(e)}oL()}function oL(){if(!hT&&go!==null){hT=!0;var e=0;try{var t=go;ss(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),go=null}catch(r){throw go!==null&&(go=go.slice(e+1)),cT(Nv,Aa),r}finally{hT=!1}}}var N3=ts.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){t=cr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var xv=tu(null),Cv=null,Vl=null,Lv=null;function vT(){Lv=Vl=Cv=null}function gT(e){var t=xv.current;or(xv),e.type._context._currentValue=t}function uL(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function Ul(e,t){Cv=e,Lv=Vl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!=0&&(ga=!0),e.firstContext=null)}function Ui(e,t){if(Lv!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Lv=e,t=1073741823),t={context:e,observedBits:t,next:null},Vl===null){if(Cv===null)throw Error(ye(308));Vl=t,Cv.dependencies={lanes:0,firstContext:t,responders:null}}else Vl=Vl.next=t;return e._currentValue}var nu=!1;function mT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sL(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function iu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function au(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function lL(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function cd(e,t,r,n){var i=e.updateQueue;nu=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var d=l,h=d.next;d.next=null,s===null?o=h:s.next=h,s=d;var v=e.alternate;if(v!==null){v=v.updateQueue;var y=v.lastBaseUpdate;y!==s&&(y===null?v.firstBaseUpdate=h:y.next=h,v.lastBaseUpdate=d)}}if(o!==null){y=i.baseState,s=0,v=h=d=null;do{l=o.lane;var b=o.eventTime;if((n&l)===l){v!==null&&(v=v.next={eventTime:b,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var D=e,_=o;switch(l=t,b=r,_.tag){case 1:if(D=_.payload,typeof D=="function"){y=D.call(b,y,l);break e}y=D;break e;case 3:D.flags=D.flags&-4097|64;case 0:if(D=_.payload,l=typeof D=="function"?D.call(b,y,l):D,l==null)break e;y=cr({},y,l);break e;case 2:nu=!0}}o.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[o]:l.push(o))}else b={eventTime:b,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},v===null?(h=v=b,d=y):v=v.next=b,s|=l;if(o=o.next,o===null){if(l=i.shared.pending,l===null)break;o=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);v===null&&(d=y),i.baseState=d,i.firstBaseUpdate=h,i.lastBaseUpdate=v,Ed|=s,e.lanes=s,e.memoizedState=y}}function cL(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(ye(191,i));i.call(n)}}}var fL=new Jh.Component().refs;function Iv(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:cr({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Av={isMounted:function(e){return(e=e._reactInternals)?is(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=wi(),i=su(e),o=iu(n,i);o.payload=t,r!=null&&(o.callback=r),au(e,o),lu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=wi(),i=su(e),o=iu(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),au(e,o),lu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=wi(),n=su(e),i=iu(r,n);i.tag=2,t!=null&&(i.callback=t),au(e,i),lu(e,n,r)}};function dL(e,t,r,n,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!id(r,n)||!id(i,o):!0}function pL(e,t,r){var n=!1,i=ru,o=t.contextType;return typeof o=="object"&&o!==null?o=Ui(o):(i=fi(t)?os:Rn.current,n=t.contextTypes,o=(n=n!=null)?Ml(e,i):ru),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Av,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function hL(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Av.enqueueReplaceState(t,t.state,null)}function yT(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=fL,mT(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Ui(o):(o=fi(t)?os:Rn.current,i.context=Ml(e,o)),cd(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Iv(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Av.enqueueReplaceState(i,i.state,null),cd(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Rv=Array.isArray;function fd(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(ye(309));var n=r.stateNode}if(!n)throw Error(ye(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var s=n.refs;s===fL&&(s=n.refs={}),o===null?delete s[i]:s[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(ye(284));if(!r._owner)throw Error(ye(290,e))}return e}function jv(e,t){if(e.type!=="textarea")throw Error(ye(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function vL(e){function t(T,S){if(e){var m=T.lastEffect;m!==null?(m.nextEffect=S,T.lastEffect=S):T.firstEffect=T.lastEffect=S,S.nextEffect=null,S.flags=8}}function r(T,S){if(!e)return null;for(;S!==null;)t(T,S),S=S.sibling;return null}function n(T,S){for(T=new Map;S!==null;)S.key!==null?T.set(S.key,S):T.set(S.index,S),S=S.sibling;return T}function i(T,S){return T=du(T,S),T.index=0,T.sibling=null,T}function o(T,S,m){return T.index=m,e?(m=T.alternate,m!==null?(m=m.index,m<S?(T.flags=2,S):m):(T.flags=2,S)):S}function s(T){return e&&T.alternate===null&&(T.flags=2),T}function l(T,S,m,w){return S===null||S.tag!==6?(S=e_(m,T.mode,w),S.return=T,S):(S=i(S,m),S.return=T,S)}function d(T,S,m,w){return S!==null&&S.elementType===m.type?(w=i(S,m.props),w.ref=fd(T,S,m),w.return=T,w):(w=$v(m.type,m.key,m.props,null,T.mode,w),w.ref=fd(T,S,m),w.return=T,w)}function h(T,S,m,w){return S===null||S.tag!==4||S.stateNode.containerInfo!==m.containerInfo||S.stateNode.implementation!==m.implementation?(S=t_(m,T.mode,w),S.return=T,S):(S=i(S,m.children||[]),S.return=T,S)}function v(T,S,m,w,x){return S===null||S.tag!==7?(S=Yl(m,T.mode,w,x),S.return=T,S):(S=i(S,m),S.return=T,S)}function y(T,S,m){if(typeof S=="string"||typeof S=="number")return S=e_(""+S,T.mode,m),S.return=T,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Mf:return m=$v(S.type,S.key,S.props,null,T.mode,m),m.ref=fd(T,null,S),m.return=T,m;case rs:return S=t_(S,T.mode,m),S.return=T,S}if(Rv(S)||Uf(S))return S=Yl(S,T.mode,m,null),S.return=T,S;jv(T,S)}return null}function b(T,S,m,w){var x=S!==null?S.key:null;if(typeof m=="string"||typeof m=="number")return x!==null?null:l(T,S,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Mf:return m.key===x?m.type===zo?v(T,S,m.props.children,w,x):d(T,S,m,w):null;case rs:return m.key===x?h(T,S,m,w):null}if(Rv(m)||Uf(m))return x!==null?null:v(T,S,m,w,null);jv(T,m)}return null}function D(T,S,m,w,x){if(typeof w=="string"||typeof w=="number")return T=T.get(m)||null,l(S,T,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Mf:return T=T.get(w.key===null?m:w.key)||null,w.type===zo?v(S,T,w.props.children,x,w.key):d(S,T,w,x);case rs:return T=T.get(w.key===null?m:w.key)||null,h(S,T,w,x)}if(Rv(w)||Uf(w))return T=T.get(m)||null,v(S,T,w,x,null);jv(S,w)}return null}function _(T,S,m,w){for(var x=null,L=null,O=S,R=S=0,M=null;O!==null&&R<m.length;R++){O.index>R?(M=O,O=null):M=O.sibling;var q=b(T,O,m[R],w);if(q===null){O===null&&(O=M);break}e&&O&&q.alternate===null&&t(T,O),S=o(q,S,R),L===null?x=q:L.sibling=q,L=q,O=M}if(R===m.length)return r(T,O),x;if(O===null){for(;R<m.length;R++)O=y(T,m[R],w),O!==null&&(S=o(O,S,R),L===null?x=O:L.sibling=O,L=O);return x}for(O=n(T,O);R<m.length;R++)M=D(O,T,R,m[R],w),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?R:M.key),S=o(M,S,R),L===null?x=M:L.sibling=M,L=M);return e&&O.forEach(function(z){return t(T,z)}),x}function k(T,S,m,w){var x=Uf(m);if(typeof x!="function")throw Error(ye(150));if(m=x.call(m),m==null)throw Error(ye(151));for(var L=x=null,O=S,R=S=0,M=null,q=m.next();O!==null&&!q.done;R++,q=m.next()){O.index>R?(M=O,O=null):M=O.sibling;var z=b(T,O,q.value,w);if(z===null){O===null&&(O=M);break}e&&O&&z.alternate===null&&t(T,O),S=o(z,S,R),L===null?x=z:L.sibling=z,L=z,O=M}if(q.done)return r(T,O),x;if(O===null){for(;!q.done;R++,q=m.next())q=y(T,q.value,w),q!==null&&(S=o(q,S,R),L===null?x=q:L.sibling=q,L=q);return x}for(O=n(T,O);!q.done;R++,q=m.next())q=D(O,T,R,q.value,w),q!==null&&(e&&q.alternate!==null&&O.delete(q.key===null?R:q.key),S=o(q,S,R),L===null?x=q:L.sibling=q,L=q);return e&&O.forEach(function(B){return t(T,B)}),x}return function(T,S,m,w){var x=typeof m=="object"&&m!==null&&m.type===zo&&m.key===null;x&&(m=m.props.children);var L=typeof m=="object"&&m!==null;if(L)switch(m.$$typeof){case Mf:e:{for(L=m.key,x=S;x!==null;){if(x.key===L){switch(x.tag){case 7:if(m.type===zo){r(T,x.sibling),S=i(x,m.props.children),S.return=T,T=S;break e}break;default:if(x.elementType===m.type){r(T,x.sibling),S=i(x,m.props),S.ref=fd(T,x,m),S.return=T,T=S;break e}}r(T,x);break}else t(T,x);x=x.sibling}m.type===zo?(S=Yl(m.props.children,T.mode,w,m.key),S.return=T,T=S):(w=$v(m.type,m.key,m.props,null,T.mode,w),w.ref=fd(T,S,m),w.return=T,T=w)}return s(T);case rs:e:{for(x=m.key;S!==null;){if(S.key===x)if(S.tag===4&&S.stateNode.containerInfo===m.containerInfo&&S.stateNode.implementation===m.implementation){r(T,S.sibling),S=i(S,m.children||[]),S.return=T,T=S;break e}else{r(T,S);break}else t(T,S);S=S.sibling}S=t_(m,T.mode,w),S.return=T,T=S}return s(T)}if(typeof m=="string"||typeof m=="number")return m=""+m,S!==null&&S.tag===6?(r(T,S.sibling),S=i(S,m),S.return=T,T=S):(r(T,S),S=e_(m,T.mode,w),S.return=T,T=S),s(T);if(Rv(m))return _(T,S,m,w);if(Uf(m))return k(T,S,m,w);if(L&&jv(T,m),typeof m=="undefined"&&!x)switch(T.tag){case 1:case 22:case 0:case 11:case 15:throw Error(ye(152,El(T.type)||"Component"))}return r(T,S)}}var Pv=vL(!0),gL=vL(!1),dd={},Ra=tu(dd),pd=tu(dd),hd=tu(dd);function ls(e){if(e===dd)throw Error(ye(174));return e}function bT(e,t){switch(_r(hd,t),_r(pd,e),_r(Ra,dd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ob(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ob(t,e)}or(Ra),_r(Ra,t)}function Gl(){or(Ra),or(pd),or(hd)}function mL(e){ls(hd.current);var t=ls(Ra.current),r=Ob(t,e.type);t!==r&&(_r(pd,e),_r(Ra,r))}function TT(e){pd.current===e&&(or(Ra),or(pd))}var Er=tu(0);function Fv(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 mo=null,ou=null,ja=!1;function yL(e,t){var r=Bi(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 bL(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 _T(e){if(ja){var t=ou;if(t){var r=t;if(!bL(e,t)){if(t=Rl(r.nextSibling),!t||!bL(e,t)){e.flags=e.flags&-1025|2,ja=!1,mo=e;return}yL(mo,r)}mo=e,ou=Rl(t.firstChild)}else e.flags=e.flags&-1025|2,ja=!1,mo=e}}function TL(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;mo=e}function Mv(e){if(e!==mo)return!1;if(!ja)return TL(e),ja=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!aT(t,e.memoizedProps))for(t=ou;t;)yL(e,t),t=Rl(t.nextSibling);if(TL(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){ou=Rl(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}ou=null}}else ou=mo?Rl(e.stateNode.nextSibling):null;return!0}function ET(){ou=mo=null,ja=!1}var Ql=[];function ST(){for(var e=0;e<Ql.length;e++)Ql[e]._workInProgressVersionPrimary=null;Ql.length=0}var vd=ts.ReactCurrentDispatcher,Gi=ts.ReactCurrentBatchConfig,gd=0,Dr=null,Pn=null,bn=null,qv=!1,md=!1;function di(){throw Error(ye(321))}function kT(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Vi(e[r],t[r]))return!1;return!0}function OT(e,t,r,n,i,o){if(gd=o,Dr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vd.current=e===null||e.memoizedState===null?x3:C3,e=r(n,i),md){o=0;do{if(md=!1,!(25>o))throw Error(ye(301));o+=1,bn=Pn=null,t.updateQueue=null,vd.current=L3,e=r(n,i)}while(md)}if(vd.current=Qv,t=Pn!==null&&Pn.next!==null,gd=0,bn=Pn=Dr=null,qv=!1,t)throw Error(ye(300));return e}function cs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?Dr.memoizedState=bn=e:bn=bn.next=e,bn}function fs(){if(Pn===null){var e=Dr.alternate;e=e!==null?e.memoizedState:null}else e=Pn.next;var t=bn===null?Dr.memoizedState:bn.next;if(t!==null)bn=t,Pn=e;else{if(e===null)throw Error(ye(310));Pn=e,e={memoizedState:Pn.memoizedState,baseState:Pn.baseState,baseQueue:Pn.baseQueue,queue:Pn.queue,next:null},bn===null?Dr.memoizedState=bn=e:bn=bn.next=e}return bn}function Pa(e,t){return typeof t=="function"?t(e):t}function yd(e){var t=fs(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=Pn,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=s=o=null,d=i;do{var h=d.lane;if((gd&h)===h)l!==null&&(l=l.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 v={lane:h,action:d.action,eagerReducer:d.eagerReducer,eagerState:d.eagerState,next:null};l===null?(s=l=v,o=n):l=l.next=v,Dr.lanes|=h,Ed|=h}d=d.next}while(d!==null&&d!==i);l===null?o=n:l.next=s,Vi(n,t.memoizedState)||(ga=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function bd(e){var t=fs(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Vi(o,t.memoizedState)||(ga=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function _L(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(gd&e)===e)&&(t._workInProgressVersionPrimary=n,Ql.push(t))),e)return r(t._source);throw Ql.push(t),Error(ye(350))}function EL(e,t,r,n){var i=ei;if(i===null)throw Error(ye(349));var o=t._getVersion,s=o(t._source),l=vd.current,d=l.useState(function(){return _L(i,t,r)}),h=d[1],v=d[0];d=bn;var y=e.memoizedState,b=y.refs,D=b.getSnapshot,_=y.source;y=y.subscribe;var k=Dr;return e.memoizedState={refs:b,source:t,subscribe:n},l.useEffect(function(){b.getSnapshot=r,b.setSnapshot=h;var T=o(t._source);if(!Vi(s,T)){T=r(t._source),Vi(v,T)||(h(T),T=su(k),i.mutableReadLanes|=T&i.pendingLanes),T=i.mutableReadLanes,i.entangledLanes|=T;for(var S=i.entanglements,m=T;0<m;){var w=31-Zo(m),x=1<<w;S[w]|=T,m&=~x}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var T=b.getSnapshot,S=b.setSnapshot;try{S(T(t._source));var m=su(k);i.mutableReadLanes|=m&i.pendingLanes}catch(w){S(function(){throw w})}})},[t,n]),Vi(D,r)&&Vi(_,t)&&Vi(y,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:v},e.dispatch=h=xT.bind(null,Dr,e),d.queue=e,d.baseQueue=null,v=_L(i,t,r),d.memoizedState=d.baseState=v),v}function SL(e,t,r){var n=fs();return EL(n,e,t,r)}function Td(e){var t=cs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},e=e.dispatch=xT.bind(null,Dr,e),[t.memoizedState,e]}function Vv(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Dr.updateQueue,t===null?(t={lastEffect:null},Dr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function kL(e){var t=cs();return e={current:e},t.memoizedState=e}function Uv(){return fs().memoizedState}function wT(e,t,r,n){var i=cs();Dr.flags|=e,i.memoizedState=Vv(1|t,r,void 0,n===void 0?null:n)}function NT(e,t,r,n){var i=fs();n=n===void 0?null:n;var o=void 0;if(Pn!==null){var s=Pn.memoizedState;if(o=s.destroy,n!==null&&kT(n,s.deps)){Vv(t,r,o,n);return}}Dr.flags|=e,i.memoizedState=Vv(1|t,r,o,n)}function OL(e,t){return wT(516,4,e,t)}function Gv(e,t){return NT(516,4,e,t)}function wL(e,t){return NT(4,2,e,t)}function NL(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function DL(e,t,r){return r=r!=null?r.concat([e]):null,NT(4,2,NL.bind(null,t,e),r)}function DT(){}function xL(e,t){var r=fs();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&kT(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function CL(e,t){var r=fs();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&kT(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function D3(e,t){var r=ql();ss(98>r?98:r,function(){e(!0)}),ss(97<r?97:r,function(){var n=Gi.transition;Gi.transition=1;try{e(!1),t()}finally{Gi.transition=n}})}function xT(e,t,r){var n=wi(),i=su(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},s=t.pending;if(s===null?o.next=o:(o.next=s.next,s.next=o),t.pending=o,s=e.alternate,e===Dr||s!==null&&s===Dr)md=qv=!0;else{if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,d=s(l,r);if(o.eagerReducer=s,o.eagerState=d,Vi(d,l))return}catch(h){}finally{}lu(e,i,n)}}var Qv={readContext:Ui,useCallback:di,useContext:di,useEffect:di,useImperativeHandle:di,useLayoutEffect:di,useMemo:di,useReducer:di,useRef:di,useState:di,useDebugValue:di,useDeferredValue:di,useTransition:di,useMutableSource:di,useOpaqueIdentifier:di,unstable_isNewReconciler:!1},x3={readContext:Ui,useCallback:function(e,t){return cs().memoizedState=[e,t===void 0?null:t],e},useContext:Ui,useEffect:OL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,wT(4,2,NL.bind(null,t,e),r)},useLayoutEffect:function(e,t){return wT(4,2,e,t)},useMemo:function(e,t){var r=cs();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=cs();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=xT.bind(null,Dr,e),[n.memoizedState,e]},useRef:kL,useState:Td,useDebugValue:DT,useDeferredValue:function(e){var t=Td(e),r=t[0],n=t[1];return OL(function(){var i=Gi.transition;Gi.transition=1;try{n(e)}finally{Gi.transition=i}},[e]),r},useTransition:function(){var e=Td(!1),t=e[0];return e=D3.bind(null,e[1]),kL(e),[e,t]},useMutableSource:function(e,t,r){var n=cs();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},EL(n,e,t,r)},useOpaqueIdentifier:function(){if(ja){var e=!1,t=E3(function(){throw e||(e=!0,r("r:"+(uT++).toString(36))),Error(ye(355))}),r=Td(t)[1];return(Dr.mode&2)==0&&(Dr.flags|=516,Vv(5,function(){r("r:"+(uT++).toString(36))},void 0,null)),t}return t="r:"+(uT++).toString(36),Td(t),t},unstable_isNewReconciler:!1},C3={readContext:Ui,useCallback:xL,useContext:Ui,useEffect:Gv,useImperativeHandle:DL,useLayoutEffect:wL,useMemo:CL,useReducer:yd,useRef:Uv,useState:function(){return yd(Pa)},useDebugValue:DT,useDeferredValue:function(e){var t=yd(Pa),r=t[0],n=t[1];return Gv(function(){var i=Gi.transition;Gi.transition=1;try{n(e)}finally{Gi.transition=i}},[e]),r},useTransition:function(){var e=yd(Pa)[0];return[Uv().current,e]},useMutableSource:SL,useOpaqueIdentifier:function(){return yd(Pa)[0]},unstable_isNewReconciler:!1},L3={readContext:Ui,useCallback:xL,useContext:Ui,useEffect:Gv,useImperativeHandle:DL,useLayoutEffect:wL,useMemo:CL,useReducer:bd,useRef:Uv,useState:function(){return bd(Pa)},useDebugValue:DT,useDeferredValue:function(e){var t=bd(Pa),r=t[0],n=t[1];return Gv(function(){var i=Gi.transition;Gi.transition=1;try{n(e)}finally{Gi.transition=i}},[e]),r},useTransition:function(){var e=bd(Pa)[0];return[Uv().current,e]},useMutableSource:SL,useOpaqueIdentifier:function(){return bd(Pa)[0]},unstable_isNewReconciler:!1},I3=ts.ReactCurrentOwner,ga=!1;function pi(e,t,r,n){t.child=e===null?gL(t,null,r,n):Pv(t,e.child,r,n)}function LL(e,t,r,n,i){r=r.render;var o=t.ref;return Ul(t,i),n=OT(e,t,r,n,o,i),e!==null&&!ga?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yo(e,t,i)):(t.flags|=1,pi(e,t,n,i),t.child)}function IL(e,t,r,n,i,o){if(e===null){var s=r.type;return typeof s=="function"&&!ZT(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,AL(e,t,s,n,i,o)):(e=$v(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return s=e.child,(i&o)==0&&(i=s.memoizedProps,r=r.compare,r=r!==null?r:id,r(i,n)&&e.ref===t.ref)?yo(e,t,o):(t.flags|=1,e=du(s,n),e.ref=t.ref,e.return=t,t.child=e)}function AL(e,t,r,n,i,o){if(e!==null&&id(e.memoizedProps,n)&&e.ref===t.ref)if(ga=!1,(o&i)!=0)(e.flags&16384)!=0&&(ga=!0);else return t.lanes=e.lanes,yo(e,t,o);return LT(e,t,r,n,o)}function CT(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if((t.mode&4)==0)t.memoizedState={baseLanes:0},Zv(t,r);else if((r&1073741824)!=0)t.memoizedState={baseLanes:0},Zv(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Zv(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Zv(t,n);return pi(e,t,i,r),t.child}function RL(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function LT(e,t,r,n,i){var o=fi(r)?os:Rn.current;return o=Ml(t,o),Ul(t,i),r=OT(e,t,r,n,o,i),e!==null&&!ga?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,yo(e,t,i)):(t.flags|=1,pi(e,t,r,i),t.child)}function jL(e,t,r,n,i){if(fi(r)){var o=!0;wv(t)}else o=!1;if(Ul(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),pL(t,r,n),yT(t,r,n,i),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var d=s.context,h=r.contextType;typeof h=="object"&&h!==null?h=Ui(h):(h=fi(r)?os:Rn.current,h=Ml(t,h));var v=r.getDerivedStateFromProps,y=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function";y||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||d!==h)&&hL(t,s,n,h),nu=!1;var b=t.memoizedState;s.state=b,cd(t,n,s,i),d=t.memoizedState,l!==n||b!==d||ci.current||nu?(typeof v=="function"&&(Iv(t,r,v,n),d=t.memoizedState),(l=nu||dL(t,r,l,n,b,d,h))?(y||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4)):(typeof s.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=d),s.props=n,s.state=d,s.context=h,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{s=t.stateNode,sL(e,t),l=t.memoizedProps,h=t.type===t.elementType?l:va(t.type,l),s.props=h,y=t.pendingProps,b=s.context,d=r.contextType,typeof d=="object"&&d!==null?d=Ui(d):(d=fi(r)?os:Rn.current,d=Ml(t,d));var D=r.getDerivedStateFromProps;(v=typeof D=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==y||b!==d)&&hL(t,s,n,d),nu=!1,b=t.memoizedState,s.state=b,cd(t,n,s,i);var _=t.memoizedState;l!==y||b!==_||ci.current||nu?(typeof D=="function"&&(Iv(t,r,D,n),_=t.memoizedState),(h=nu||dL(t,r,h,n,b,_,d))?(v||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,_,d),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,_,d)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&b===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=_),s.props=n,s.state=_,s.context=d,n=h):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&b===e.memoizedState||(t.flags|=256),n=!1)}return IT(e,t,r,n,o,i)}function IT(e,t,r,n,i,o){RL(e,t);var s=(t.flags&64)!=0;if(!n&&!s)return i&&ZC(t,r,!1),yo(e,t,o);n=t.stateNode,I3.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Pv(t,e.child,null,o),t.child=Pv(t,null,l,o)):pi(e,t,l,o),t.memoizedState=n.state,i&&ZC(t,r,!0),t.child}function PL(e){var t=e.stateNode;t.pendingContext?JC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&JC(e,t.context,!1),bT(e,t.containerInfo)}var Bv={dehydrated:null,retryLane:0};function FL(e,t,r){var n=t.pendingProps,i=Er.current,o=!1,s;return(s=(t.flags&64)!=0)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),_r(Er,i&1),e===null?(n.fallback!==void 0&&_T(t),e=n.children,i=n.fallback,o?(e=ML(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Bv,e):typeof n.unstable_expectedLoadTime=="number"?(e=ML(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Bv,t.lanes=33554432,e):(r=$T({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=VL(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=Bv,n):(r=qL(e,t,n.children,r),t.memoizedState=null,r):o?(n=VL(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=Bv,n):(r=qL(e,t,n.children,r),t.memoizedState=null,r)}function ML(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},(i&2)==0&&o!==null?(o.childLanes=0,o.pendingProps=t):o=$T(t,i,0,null),r=Yl(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function qL(e,t,r,n){var i=e.child;return e=i.sibling,r=du(i,{mode:"visible",children:r}),(t.mode&2)==0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function VL(e,t,r,n,i){var o=t.mode,s=e.child;e=s.sibling;var l={mode:"hidden",children:r};return(o&2)==0&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,s=r.lastEffect,s!==null?(t.firstEffect=r.firstEffect,t.lastEffect=s,s.nextEffect=null):t.firstEffect=t.lastEffect=null):r=du(s,l),e!==null?n=du(e,n):(n=Yl(n,o,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function UL(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),uL(e.return,t)}function AT(e,t,r,n,i,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i,s.lastEffect=o)}function GL(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(pi(e,t,n.children,r),n=Er.current,(n&2)!=0)n=n&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!=0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&UL(e,r);else if(e.tag===19)UL(e,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(_r(Er,n),(t.mode&2)==0)t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Fv(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),AT(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fv(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}AT(t,!0,r,null,o,t.lastEffect);break;case"together":AT(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function yo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ed|=t.lanes,(r&t.childLanes)!=0){if(e!==null&&t.child!==e.child)throw Error(ye(153));if(t.child!==null){for(e=t.child,r=du(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=du(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var QL,RT,BL,KL;QL=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&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.sibling.return=r.return,r=r.sibling}};RT=function(){};BL=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ls(Ra.current);var o=null;switch(r){case"input":i=bb(e,i),n=bb(e,n),o=[];break;case"option":i=Eb(e,i),n=Eb(e,n),o=[];break;case"select":i=cr({},i,{value:void 0}),n=cr({},n,{value:void 0}),o=[];break;case"textarea":i=Sb(e,i),n=Sb(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=_v)}wb(r,n);var s;r=null;for(h in i)if(!n.hasOwnProperty(h)&&i.hasOwnProperty(h)&&i[h]!=null)if(h==="style"){var l=i[h];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(Ff.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in n){var d=n[h];if(l=i!=null?i[h]:void 0,n.hasOwnProperty(h)&&d!==l&&(d!=null||l!=null))if(h==="style")if(l){for(s in l)!l.hasOwnProperty(s)||d&&d.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in d)d.hasOwnProperty(s)&&l[s]!==d[s]&&(r||(r={}),r[s]=d[s])}else r||(o||(o=[]),o.push(h,r)),r=d;else h==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,l=l?l.__html:void 0,d!=null&&l!==d&&(o=o||[]).push(h,d)):h==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(h,""+d):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(Ff.hasOwnProperty(h)?(d!=null&&h==="onScroll"&&ar("scroll",e),o||l===d||(o=[])):typeof d=="object"&&d!==null&&d.$$typeof===hb?d.toString():(o=o||[]).push(h,d))}r&&(o=o||[]).push("style",r);var h=o;(t.updateQueue=h)&&(t.flags|=4)}};KL=function(e,t,r,n){r!==n&&(t.flags|=4)};function _d(e,t){if(!ja)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function A3(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fi(t.type)&&Ov(),null;case 3:return Gl(),or(ci),or(Rn),ST(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Mv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),RT(t),null;case 5:TT(t);var i=ls(hd.current);if(r=t.type,e!==null&&t.stateNode!=null)BL(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(ye(166));return null}if(e=ls(Ra.current),Mv(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[eu]=t,n[Sv]=o,r){case"dialog":ar("cancel",n),ar("close",n);break;case"iframe":case"object":case"embed":ar("load",n);break;case"video":case"audio":for(e=0;e<od.length;e++)ar(od[e],n);break;case"source":ar("error",n);break;case"img":case"image":case"link":ar("error",n),ar("load",n);break;case"details":ar("toggle",n);break;case"input":Fx(n,o),ar("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},ar("invalid",n);break;case"textarea":Vx(n,o),ar("invalid",n)}wb(r,o),e=null;for(var s in o)o.hasOwnProperty(s)&&(i=o[s],s==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):Ff.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&ar("scroll",n));switch(r){case"input":tv(n),qx(n,o,!0);break;case"textarea":tv(n),Gx(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=_v)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(s=i.nodeType===9?i:i.ownerDocument,e===kb.html&&(e=Qx(r)),e===kb.html?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/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[eu]=t,e[Sv]=n,QL(e,t,!1,!1),t.stateNode=e,s=Nb(r,n),r){case"dialog":ar("cancel",e),ar("close",e),i=n;break;case"iframe":case"object":case"embed":ar("load",e),i=n;break;case"video":case"audio":for(i=0;i<od.length;i++)ar(od[i],e);i=n;break;case"source":ar("error",e),i=n;break;case"img":case"image":case"link":ar("error",e),ar("load",e),i=n;break;case"details":ar("toggle",e),i=n;break;case"input":Fx(e,n),i=bb(e,n),ar("invalid",e);break;case"option":i=Eb(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=cr({},n,{value:void 0}),ar("invalid",e);break;case"textarea":Vx(e,n),i=Sb(e,n),ar("invalid",e);break;default:i=n}wb(r,i);var l=i;for(o in l)if(l.hasOwnProperty(o)){var d=l[o];o==="style"?Hx(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&Bx(e,d)):o==="children"?typeof d=="string"?(r!=="textarea"||d!=="")&&Qf(e,d):typeof d=="number"&&Qf(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ff.hasOwnProperty(o)?d!=null&&o==="onScroll"&&ar("scroll",e):d!=null&&sb(e,o,d,s))}switch(r){case"input":tv(e),qx(e,n,!1);break;case"textarea":tv(e),Gx(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Wo(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Sl(e,!!n.multiple,o,!1):n.defaultValue!=null&&Sl(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=_v)}KC(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)KL(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ye(166));r=ls(hd.current),ls(Ra.current),Mv(t)?(n=t.stateNode,r=t.memoizedProps,n[eu]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[eu]=t,t.stateNode=n)}return null;case 13:return or(Er),n=t.memoizedState,(t.flags&64)!=0?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Mv(t):r=e.memoizedState!==null,n&&!r&&(t.mode&2)!=0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(Er.current&1)!=0?Tn===0&&(Tn=3):((Tn===0||Tn===3)&&(Tn=4),ei===null||(Ed&134217727)==0&&(Kl&134217727)==0||zl(ei,Fn))),(n||r)&&(t.flags|=4),null);case 4:return Gl(),RT(t),e===null&&VC(t.stateNode.containerInfo),null;case 10:return gT(t),null;case 17:return fi(t.type)&&Ov(),null;case 19:if(or(Er),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!=0,s=n.rendering,s===null)if(o)_d(n,!1);else{if(Tn!==0||e!==null&&(e.flags&64)!=0)for(e=t.child;e!==null;){if(s=Fv(e),s!==null){for(t.flags|=64,_d(n,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return _r(Er,Er.current&1|2),t.child}e=e.sibling}n.tail!==null&&jn()>KT&&(t.flags|=64,o=!0,_d(n,!1),t.lanes=33554432)}else{if(!o)if(e=Fv(s),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),_d(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ja)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*jn()-n.renderingStartTime>KT&&r!==1073741824&&(t.flags|=64,o=!0,_d(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=jn(),r.sibling=null,t=Er.current,_r(Er,o?t&1|2:t&1),r):null;case 23:case 24:return XT(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(ye(156,t.tag))}function R3(e){switch(e.tag){case 1:fi(e.type)&&Ov();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Gl(),or(ci),or(Rn),ST(),t=e.flags,(t&64)!=0)throw Error(ye(285));return e.flags=t&-4097|64,e;case 5:return TT(e),null;case 13:return or(Er),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return or(Er),null;case 4:return Gl(),null;case 10:return gT(e),null;case 23:case 24:return XT(),null;default:return null}}function jT(e,t){try{var r="",n=t;do r+=hK(n),n=n.return;while(n);var i=r}catch(o){i=`
|
|
Error generating stack: `+o.message+`
|
|
`+o.stack}return{value:e,source:t,stack:i}}function PT(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var j3=typeof WeakMap=="function"?WeakMap:Map;function HL(e,t,r){r=iu(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){zv||(zv=!0,HT=n),PT(e,t)},r}function zL(e,t,r){r=iu(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return PT(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this),PT(e,t));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}var P3=typeof WeakSet=="function"?WeakSet:Set;function WL(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){fu(e,r)}else t.current=null}function F3(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:va(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&oT(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(ye(163))}function M3(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 i=e;n=i.next,i=i.tag,(i&4)!=0&&(i&1)!=0&&(l1(r,e),H3(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:va(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&cL(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}cL(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&KC(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&&sC(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(ye(163))}function YL(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 i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=Kx("display",i)}}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 JL(e,t){if(us&&typeof us.onCommitFiberUnmount=="function")try{us.onCommitFiberUnmount(lT,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,i=n.destroy;if(n=n.tag,i!==void 0)if((n&4)!=0)l1(t,r);else{n=t;try{i()}catch(o){fu(n,o)}}r=r.next}while(r!==e)}break;case 1:if(WL(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){fu(t,o)}break;case 5:WL(t);break;case 4:e1(e,t)}}function XL(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 ZL(e){return e.tag===5||e.tag===3||e.tag===4}function $L(e){e:{for(var t=e.return;t!==null;){if(ZL(t))break e;t=t.return}throw Error(ye(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(ye(161))}r.flags&16&&(Qf(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||ZL(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?FT(e,r,t):MT(e,r,t)}function FT(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?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=_v));else if(n!==4&&(e=e.child,e!==null))for(FT(e,t,r),e=e.sibling;e!==null;)FT(e,t,r),e=e.sibling}function MT(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(MT(e,t,r),e=e.sibling;e!==null;)MT(e,t,r),e=e.sibling}function e1(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(ye(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var s=e,l=r,d=l;;)if(JL(s,d),d.child!==null&&d.tag!==4)d.child.return=d,d=d.child;else{if(d===l)break e;for(;d.sibling===null;){if(d.return===null||d.return===l)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(s=i,l=r.stateNode,s.nodeType===8?s.parentNode.removeChild(l):s.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(JL(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 qT(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 i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[Sv]=n,e==="input"&&n.type==="radio"&&n.name!=null&&Mx(r,n),Nb(e,i),t=Nb(e,n),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];s==="style"?Hx(r,l):s==="dangerouslySetInnerHTML"?Bx(r,l):s==="children"?Qf(r,l):sb(r,s,l,t)}switch(e){case"input":Tb(r,n);break;case"textarea":Ux(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?Sl(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?Sl(r,!!n.multiple,n.defaultValue,!0):Sl(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(ye(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,sC(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(BT=jn(),YL(t.child,!0)),t1(t);return;case 19:t1(t);return;case 17:return;case 23:case 24:YL(t,t.memoizedState!==null);return}throw Error(ye(163))}function t1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new P3),t.forEach(function(n){var i=Y3.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function q3(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var V3=Math.ceil,Kv=ts.ReactCurrentDispatcher,VT=ts.ReactCurrentOwner,tt=0,ei=null,Jr=null,Fn=0,ds=0,UT=tu(0),Tn=0,Hv=null,Bl=0,Ed=0,Kl=0,GT=0,QT=null,BT=0,KT=1/0;function Hl(){KT=jn()+500}var Re=null,zv=!1,HT=null,Fa=null,uu=!1,Sd=null,kd=90,zT=[],WT=[],bo=null,Od=0,YT=null,Wv=-1,To=0,Yv=0,wd=null,Jv=!1;function wi(){return(tt&48)!=0?jn():Wv!==-1?Wv:Wv=jn()}function su(e){if(e=e.mode,(e&2)==0)return 1;if((e&4)==0)return ql()===99?1:2;if(To===0&&(To=Bl),N3.transition!==0){Yv!==0&&(Yv=QT!==null?QT.pendingLanes:0),e=To;var t=4186112&~Yv;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ql(),(tt&4)!=0&&e===98?e=lv(12,To):(e=CK(e),e=lv(e,To)),e}function lu(e,t,r){if(50<Od)throw Od=0,YT=null,Error(ye(185));if(e=Xv(e,t),e===null)return null;cv(e,t,r),e===ei&&(Kl|=t,Tn===4&&zl(e,Fn));var n=ql();t===1?(tt&8)!=0&&(tt&48)==0?JT(e):(Qi(e,r),tt===0&&(Hl(),Aa())):((tt&4)==0||n!==98&&n!==99||(bo===null?bo=new Set([e]):bo.add(e)),Qi(e,r)),QT=e}function Xv(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Qi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Zo(s),d=1<<l,h=o[l];if(h===-1){if((d&n)==0||(d&i)!=0){h=t,Dl(d);var v=Zt;o[l]=10<=v?h+250:6<=v?h+5e3:-1}}else h<=t&&(e.expiredLanes|=d);s&=~d}if(n=Zf(e,e===ei?Fn:0),t=Zt,n===0)r!==null&&(r!==pT&&fT(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==pT&&fT(r)}t===15?(r=JT.bind(null,e),go===null?(go=[r],Dv=cT(Nv,oL)):go.push(r),r=pT):t===14?r=ld(99,JT.bind(null,e)):(r=LK(t),r=ld(r,r1.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function r1(e){if(Wv=-1,Yv=To=0,(tt&48)!=0)throw Error(ye(327));var t=e.callbackNode;if(cu()&&e.callbackNode!==t)return null;var r=Zf(e,e===ei?Fn:0);if(r===0)return null;var n=r,i=tt;tt|=16;var o=o1();(ei!==e||Fn!==n)&&(Hl(),Wl(e,n));do try{Q3();break}catch(l){a1(e,l)}while(1);if(vT(),Kv.current=o,tt=i,Jr!==null?n=0:(ei=null,Fn=0,n=Tn),(Bl&Kl)!=0)Wl(e,0);else if(n!==0){if(n===2&&(tt|=64,e.hydrate&&(e.hydrate=!1,oT(e.containerInfo)),r=vC(e),r!==0&&(n=Nd(e,r))),n===1)throw t=Hv,Wl(e,0),zl(e,r),Qi(e,jn()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(ye(345));case 2:ps(e);break;case 3:if(zl(e,r),(r&62914560)===r&&(n=BT+500-jn(),10<n)){if(Zf(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){wi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=HC(ps.bind(null,e),n);break}ps(e);break;case 4:if(zl(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var s=31-Zo(r);o=1<<s,s=n[s],s>i&&(i=s),r&=~o}if(r=i,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*V3(r/1960))-r,10<r){e.timeoutHandle=HC(ps.bind(null,e),r);break}ps(e);break;case 5:ps(e);break;default:throw Error(ye(329))}}return Qi(e,jn()),e.callbackNode===t?r1.bind(null,e):null}function zl(e,t){for(t&=~GT,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Zo(t),n=1<<r;e[r]=-1,t&=~n}}function JT(e){if((tt&48)!=0)throw Error(ye(327));if(cu(),e===ei&&(e.expiredLanes&Fn)!=0){var t=Fn,r=Nd(e,t);(Bl&Kl)!=0&&(t=Zf(e,t),r=Nd(e,t))}else t=Zf(e,0),r=Nd(e,t);if(e.tag!==0&&r===2&&(tt|=64,e.hydrate&&(e.hydrate=!1,oT(e.containerInfo)),t=vC(e),t!==0&&(r=Nd(e,t))),r===1)throw r=Hv,Wl(e,0),zl(e,t),Qi(e,jn()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ps(e),Qi(e,jn()),null}function U3(){if(bo!==null){var e=bo;bo=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Qi(t,jn())})}Aa()}function n1(e,t){var r=tt;tt|=1;try{return e(t)}finally{tt=r,tt===0&&(Hl(),Aa())}}function i1(e,t){var r=tt;tt&=-2,tt|=8;try{return e(t)}finally{tt=r,tt===0&&(Hl(),Aa())}}function Zv(e,t){_r(UT,ds),ds|=t,Bl|=t}function XT(){ds=UT.current,or(UT)}function Wl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,_3(r)),Jr!==null)for(r=Jr.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ov();break;case 3:Gl(),or(ci),or(Rn),ST();break;case 5:TT(n);break;case 4:Gl();break;case 13:or(Er);break;case 19:or(Er);break;case 10:gT(n);break;case 23:case 24:XT()}r=r.return}ei=e,Jr=du(e.current,null),Fn=ds=Bl=t,Tn=0,Hv=null,GT=Kl=Ed=0}function a1(e,t){do{var r=Jr;try{if(vT(),vd.current=Qv,qv){for(var n=Dr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}qv=!1}if(gd=0,bn=Pn=Dr=null,md=!1,VT.current=null,r===null||r.return===null){Tn=1,Hv=t,Jr=null;break}e:{var o=e,s=r.return,l=r,d=t;if(t=Fn,l.flags|=2048,l.firstEffect=l.lastEffect=null,d!==null&&typeof d=="object"&&typeof d.then=="function"){var h=d;if((l.mode&2)==0){var v=l.alternate;v?(l.updateQueue=v.updateQueue,l.memoizedState=v.memoizedState,l.lanes=v.lanes):(l.updateQueue=null,l.memoizedState=null)}var y=(Er.current&1)!=0,b=s;do{var D;if(D=b.tag===13){var _=b.memoizedState;if(_!==null)D=_.dehydrated!==null;else{var k=b.memoizedProps;D=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!y}}if(D){var T=b.updateQueue;if(T===null){var S=new Set;S.add(h),b.updateQueue=S}else T.add(h);if((b.mode&2)==0){if(b.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var m=iu(-1,1);m.tag=2,au(l,m)}l.lanes|=1;break e}d=void 0,l=t;var w=o.pingCache;if(w===null?(w=o.pingCache=new j3,d=new Set,w.set(h,d)):(d=w.get(h),d===void 0&&(d=new Set,w.set(h,d))),!d.has(l)){d.add(l);var x=W3.bind(null,o,h,l);h.then(x,x)}b.flags|=4096,b.lanes=t;break e}b=b.return}while(b!==null);d=Error((El(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
|
|
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Tn!==5&&(Tn=2),d=jT(d,l),b=s;do{switch(b.tag){case 3:o=d,b.flags|=4096,t&=-t,b.lanes|=t;var L=HL(b,o,t);lL(b,L);break e;case 1:o=d;var O=b.type,R=b.stateNode;if((b.flags&64)==0&&(typeof O.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(Fa===null||!Fa.has(R)))){b.flags|=4096,t&=-t,b.lanes|=t;var M=zL(b,o,t);lL(b,M);break e}}b=b.return}while(b!==null)}s1(r)}catch(q){t=q,Jr===r&&r!==null&&(Jr=r=r.return);continue}break}while(1)}function o1(){var e=Kv.current;return Kv.current=Qv,e===null?Qv:e}function Nd(e,t){var r=tt;tt|=16;var n=o1();ei===e&&Fn===t||Wl(e,t);do try{G3();break}catch(i){a1(e,i)}while(1);if(vT(),tt=r,Kv.current=n,Jr!==null)throw Error(ye(261));return ei=null,Fn=0,Tn}function G3(){for(;Jr!==null;)u1(Jr)}function Q3(){for(;Jr!==null&&!k3();)u1(Jr)}function u1(e){var t=f1(e.alternate,e,ds);e.memoizedProps=e.pendingProps,t===null?s1(e):Jr=t,VT.current=null}function s1(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&2048)==0){if(r=A3(r,t,ds),r!==null){Jr=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||(ds&1073741824)!=0||(r.mode&4)==0){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.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),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(r=R3(t),r!==null){r.flags&=2047,Jr=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){Jr=t;return}Jr=t=e}while(t!==null);Tn===0&&(Tn=5)}function ps(e){var t=ql();return ss(99,B3.bind(null,e,t)),null}function B3(e,t){do cu();while(Sd!==null);if((tt&48)!=0)throw Error(ye(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ye(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var d=31-Zo(o),h=1<<d;i[d]=0,s[d]=-1,l[d]=-1,o&=~h}if(bo!==null&&(n&24)==0&&bo.has(e)&&bo.delete(e),e===ei&&(Jr=ei=null,Fn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=tt,tt|=32,VT.current=null,nT=fv,s=RC(),$b(s)){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(h=l.getSelection&&l.getSelection())&&h.rangeCount!==0){l=h.anchorNode,o=h.anchorOffset,d=h.focusNode,h=h.focusOffset;try{l.nodeType,d.nodeType}catch(q){l=null;break e}var v=0,y=-1,b=-1,D=0,_=0,k=s,T=null;t:for(;;){for(var S;k!==l||o!==0&&k.nodeType!==3||(y=v+o),k!==d||h!==0&&k.nodeType!==3||(b=v+h),k.nodeType===3&&(v+=k.nodeValue.length),(S=k.firstChild)!==null;)T=k,k=S;for(;;){if(k===s)break t;if(T===l&&++D===o&&(y=v),T===d&&++_===h&&(b=v),(S=k.nextSibling)!==null)break;k=T,T=k.parentNode}k=S}l=y===-1||b===-1?null:{start:y,end:b}}else l=null;l=l||{start:0,end:0}}else l=null;iT={focusedElem:s,selectionRange:l},fv=!1,wd=null,Jv=!1,Re=n;do try{K3()}catch(q){if(Re===null)throw Error(ye(330));fu(Re,q),Re=Re.nextEffect}while(Re!==null);wd=null,Re=n;do try{for(s=e;Re!==null;){var m=Re.flags;if(m&16&&Qf(Re.stateNode,""),m&128){var w=Re.alternate;if(w!==null){var x=w.ref;x!==null&&(typeof x=="function"?x(null):x.current=null)}}switch(m&1038){case 2:$L(Re),Re.flags&=-3;break;case 6:$L(Re),Re.flags&=-3,qT(Re.alternate,Re);break;case 1024:Re.flags&=-1025;break;case 1028:Re.flags&=-1025,qT(Re.alternate,Re);break;case 4:qT(Re.alternate,Re);break;case 8:l=Re,e1(s,l);var L=l.alternate;XL(l),L!==null&&XL(L)}Re=Re.nextEffect}}catch(q){if(Re===null)throw Error(ye(330));fu(Re,q),Re=Re.nextEffect}while(Re!==null);if(x=iT,w=RC(),m=x.focusedElem,s=x.selectionRange,w!==m&&m&&m.ownerDocument&&AC(m.ownerDocument.documentElement,m)){for(s!==null&&$b(m)&&(w=s.start,x=s.end,x===void 0&&(x=w),"selectionStart"in m?(m.selectionStart=w,m.selectionEnd=Math.min(x,m.value.length)):(x=(w=m.ownerDocument||document)&&w.defaultView||window,x.getSelection&&(x=x.getSelection(),l=m.textContent.length,L=Math.min(s.start,l),s=s.end===void 0?L:Math.min(s.end,l),!x.extend&&L>s&&(l=s,s=L,L=l),l=IC(m,L),o=IC(m,s),l&&o&&(x.rangeCount!==1||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(w=w.createRange(),w.setStart(l.node,l.offset),x.removeAllRanges(),L>s?(x.addRange(w),x.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),x.addRange(w)))))),w=[],x=m;x=x.parentNode;)x.nodeType===1&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<w.length;m++)x=w[m],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}fv=!!nT,iT=nT=null,e.current=r,Re=n;do try{for(m=e;Re!==null;){var O=Re.flags;if(O&36&&M3(m,Re.alternate,Re),O&128){w=void 0;var R=Re.ref;if(R!==null){var M=Re.stateNode;switch(Re.tag){case 5:w=M;break;default:w=M}typeof R=="function"?R(w):R.current=w}}Re=Re.nextEffect}}catch(q){if(Re===null)throw Error(ye(330));fu(Re,q),Re=Re.nextEffect}while(Re!==null);Re=null,w3(),tt=i}else e.current=r;if(uu)uu=!1,Sd=e,kd=t;else for(Re=n;Re!==null;)t=Re.nextEffect,Re.nextEffect=null,Re.flags&8&&(O=Re,O.sibling=null,O.stateNode=null),Re=t;if(n=e.pendingLanes,n===0&&(Fa=null),n===1?e===YT?Od++:(Od=0,YT=e):Od=0,r=r.stateNode,us&&typeof us.onCommitFiberRoot=="function")try{us.onCommitFiberRoot(lT,r,void 0,(r.current.flags&64)==64)}catch(q){}if(Qi(e,jn()),zv)throw zv=!1,e=HT,HT=null,e;return(tt&8)!=0||Aa(),null}function K3(){for(;Re!==null;){var e=Re.alternate;Jv||wd===null||((Re.flags&8)!=0?tC(Re,wd)&&(Jv=!0):Re.tag===13&&q3(e,Re)&&tC(Re,wd)&&(Jv=!0));var t=Re.flags;(t&256)!=0&&F3(e,Re),(t&512)==0||uu||(uu=!0,ld(97,function(){return cu(),null})),Re=Re.nextEffect}}function cu(){if(kd!==90){var e=97<kd?97:kd;return kd=90,ss(e,z3)}return!1}function H3(e,t){zT.push(t,e),uu||(uu=!0,ld(97,function(){return cu(),null}))}function l1(e,t){WT.push(t,e),uu||(uu=!0,ld(97,function(){return cu(),null}))}function z3(){if(Sd===null)return!1;var e=Sd;if(Sd=null,(tt&48)!=0)throw Error(ye(331));var t=tt;tt|=32;var r=WT;WT=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],s=i.destroy;if(i.destroy=void 0,typeof s=="function")try{s()}catch(d){if(o===null)throw Error(ye(330));fu(o,d)}}for(r=zT,zT=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var l=i.create;i.destroy=l()}catch(d){if(o===null)throw Error(ye(330));fu(o,d)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return tt=t,Aa(),!0}function c1(e,t,r){t=jT(r,t),t=HL(e,t,1),au(e,t),t=wi(),e=Xv(e,1),e!==null&&(cv(e,1,t),Qi(e,t))}function fu(e,t){if(e.tag===3)c1(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){c1(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Fa===null||!Fa.has(n))){e=jT(t,e);var i=zL(r,e,1);if(au(r,i),i=wi(),r=Xv(r,1),r!==null)cv(r,1,i),Qi(r,i);else if(typeof n.componentDidCatch=="function"&&(Fa===null||!Fa.has(n)))try{n.componentDidCatch(t,e)}catch(o){}break}}r=r.return}}function W3(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=wi(),e.pingedLanes|=e.suspendedLanes&r,ei===e&&(Fn&r)===r&&(Tn===4||Tn===3&&(Fn&62914560)===Fn&&500>jn()-BT?Wl(e,0):GT|=r),Qi(e,t)}function Y3(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=ql()===99?1:2:(To===0&&(To=Bl),t=xl(62914560&~To),t===0&&(t=4194304))),r=wi(),e=Xv(e,t),e!==null&&(cv(e,t,r),Qi(e,r))}var f1;f1=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ci.current)ga=!0;else if((r&n)!=0)ga=(e.flags&16384)!=0;else{switch(ga=!1,t.tag){case 3:PL(t),ET();break;case 5:mL(t);break;case 1:fi(t.type)&&wv(t);break;case 4:bT(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;_r(xv,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return(r&t.child.childLanes)!=0?FL(e,t,r):(_r(Er,Er.current&1),t=yo(e,t,r),t!==null?t.sibling:null);_r(Er,Er.current&1);break;case 19:if(n=(r&t.childLanes)!=0,(e.flags&64)!=0){if(n)return GL(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_r(Er,Er.current),n)break;return null;case 23:case 24:return t.lanes=0,CT(e,t,r)}return yo(e,t,r)}else ga=!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,i=Ml(t,Rn.current),Ul(t,r),i=OT(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fi(n)){var o=!0;wv(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mT(t);var s=n.getDerivedStateFromProps;typeof s=="function"&&Iv(t,n,s,e),i.updater=Av,t.stateNode=i,i._reactInternals=t,yT(t,n,e,r),t=IT(null,t,n,!0,o,r)}else t.tag=0,pi(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=X3(i),e=va(i,e),o){case 0:t=LT(null,t,i,e,r);break e;case 1:t=jL(null,t,i,e,r);break e;case 11:t=LL(null,t,i,e,r);break e;case 14:t=IL(null,t,i,va(i.type,e),n,r);break e}throw Error(ye(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),LT(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),jL(e,t,n,i,r);case 3:if(PL(t),n=t.updateQueue,e===null||n===null)throw Error(ye(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,sL(e,t),cd(t,n,null,r),n=t.memoizedState.element,n===i)ET(),t=yo(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(ou=Rl(t.stateNode.containerInfo.firstChild),mo=t,o=ja=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Ql.push(o);for(r=gL(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else pi(e,t,n,r),ET();t=t.child}return t;case 5:return mL(t),e===null&&_T(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,aT(n,i)?s=null:o!==null&&aT(n,o)&&(t.flags|=16),RL(e,t),pi(e,t,s,r),t.child;case 6:return e===null&&_T(t),null;case 13:return FL(e,t,r);case 4:return bT(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Pv(t,null,n,r):pi(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),LL(e,t,n,i,r);case 7:return pi(e,t,t.pendingProps,r),t.child;case 8:return pi(e,t,t.pendingProps.children,r),t.child;case 12:return pi(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(_r(xv,l._currentValue),l._currentValue=o,s!==null)if(l=s.value,o=Vi(l,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,o):1073741823)|0,o===0){if(s.children===i.children&&!ci.current){t=yo(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var d=l.dependencies;if(d!==null){s=l.child;for(var h=d.firstContext;h!==null;){if(h.context===n&&(h.observedBits&o)!=0){l.tag===1&&(h=iu(-1,r&-r),h.tag=2,au(l,h)),l.lanes|=r,h=l.alternate,h!==null&&(h.lanes|=r),uL(l.return,r),d.lanes|=r;break}h=h.next}}else s=l.tag===10&&l.type===t.type?null:l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}pi(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,n=o.children,Ul(t,r),i=Ui(i,o.unstable_observedBits),n=n(i),t.flags|=1,pi(e,t,n,r),t.child;case 14:return i=t.type,o=va(i,t.pendingProps),o=va(i.type,o),IL(e,t,i,o,n,r);case 15:return AL(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,fi(n)?(e=!0,wv(t)):e=!1,Ul(t,r),pL(t,n,i),yT(t,n,i,r),IT(null,t,n,!0,e,r);case 19:return GL(e,t,r);case 23:return CT(e,t,r);case 24:return CT(e,t,r)}throw Error(ye(156,t.tag))};function J3(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bi(e,t,r,n){return new J3(e,t,r,n)}function ZT(e){return e=e.prototype,!(!e||!e.isReactComponent)}function X3(e){if(typeof e=="function")return ZT(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xh)return 11;if(e===$h)return 14}return 2}function du(e,t){var r=e.alternate;return r===null?(r=Bi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function $v(e,t,r,n,i,o){var s=2;if(n=e,typeof e=="function")ZT(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case zo:return Yl(r.children,i,o,t);case Ax:s=8,i|=16;break;case lb:s=8,i|=1;break;case qf:return e=Bi(12,r,t,i|8),e.elementType=qf,e.type=qf,e.lanes=o,e;case Vf:return e=Bi(13,r,t,i),e.type=Vf,e.elementType=Vf,e.lanes=o,e;case Zh:return e=Bi(19,r,t,i),e.elementType=Zh,e.lanes=o,e;case vb:return $T(r,i,o,t);case gb:return e=Bi(24,r,t,i),e.elementType=gb,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cb:s=10;break e;case fb:s=9;break e;case Xh:s=11;break e;case $h:s=14;break e;case db:s=16,n=null;break e;case pb:s=22;break e}throw Error(ye(130,e==null?e:typeof e,""))}return t=Bi(s,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Yl(e,t,r,n){return e=Bi(7,e,n,t),e.lanes=r,e}function $T(e,t,r,n){return e=Bi(23,e,n,t),e.elementType=vb,e.lanes=r,e}function e_(e,t,r){return e=Bi(6,e,null,t),e.lanes=r,e}function t_(e,t,r){return t=Bi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z3(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Gb(0),this.expirationTimes=Gb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gb(0),this.mutableSourceEagerHydrationData=null}function $3(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rs,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function eg(e,t,r,n){var i=t.current,o=wi(),s=su(i);e:if(r){r=r._reactInternals;t:{if(is(r)!==r||r.tag!==1)throw Error(ye(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(fi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(ye(171))}if(r.tag===1){var d=r.type;if(fi(d)){r=XC(r,d,l);break e}}r=l}else r=ru;return t.context===null?t.context=r:t.pendingContext=r,t=iu(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),au(i,t),lu(i,s,o),s}function r_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function d1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function n_(e,t){d1(e,t),(e=e.alternate)&&d1(e,t)}function eH(){return null}function i_(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new Z3(e,t,r!=null&&r.hydrate===!0),t=Bi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,mT(t),e[jl]=r.current,VC(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}i_.prototype.render=function(e){eg(e,this._internalRoot,null,null)};i_.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eg(null,e,null,function(){t[jl]=null})};function Dd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tH(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new i_(e,0,t?{hydrate:!0}:void 0)}function tg(e,t,r,n,i){var o=r._reactRootContainer;if(o){var s=o._internalRoot;if(typeof i=="function"){var l=i;i=function(){var h=r_(s);l.call(h)}}eg(t,s,e,i)}else{if(o=r._reactRootContainer=tH(r,n),s=o._internalRoot,typeof i=="function"){var d=i;i=function(){var h=r_(s);d.call(h)}}i1(function(){eg(t,s,e,i)})}return r_(s)}rC=function(e){if(e.tag===13){var t=wi();lu(e,4,t),n_(e,4)}};Pb=function(e){if(e.tag===13){var t=wi();lu(e,67108864,t),n_(e,67108864)}};nC=function(e){if(e.tag===13){var t=wi(),r=su(e);lu(e,r,t),n_(e,r)}};iC=function(e,t){return t()};xb=function(e,t,r){switch(t){case"input":if(Tb(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=kv(n);if(!i)throw Error(ye(90));Px(n),Tb(n,i)}}}break;case"textarea":Ux(e,r);break;case"select":t=r.value,t!=null&&Sl(e,!!r.multiple,t,!1)}};Cb=n1;Jx=function(e,t,r,n,i){var o=tt;tt|=4;try{return ss(98,e.bind(null,t,r,n,i))}finally{tt=o,tt===0&&(Hl(),Aa())}};Lb=function(){(tt&49)==0&&(U3(),cu())};Xx=function(e,t){var r=tt;tt|=2;try{return e(t)}finally{tt=r,tt===0&&(Hl(),Aa())}};function p1(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dd(t))throw Error(ye(200));return $3(e,t,null,r)}var rH={Events:[sd,Pl,kv,Wx,Yx,cu,{current:!1}]},xd={findFiberByHostInstance:as,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},nH={bundleType:xd.bundleType,version:xd.version,rendererPackageName:xd.rendererPackageName,rendererConfig:xd.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ts.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=eC(e),e===null?null:e.stateNode},findFiberByHostInstance:xd.findFiberByHostInstance||eH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(Cd=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Cd.isDisabled&&Cd.supportsFiber))try{lT=Cd.inject(nH),us=Cd}catch(e){}var Cd;Ki.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rH;Ki.createPortal=p1;Ki.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ye(188)):Error(ye(268,Object.keys(e)));return e=eC(t),e=e===null?null:e.stateNode,e};Ki.flushSync=function(e,t){var r=tt;if((r&48)!=0)return e(t);tt|=1;try{if(e)return ss(99,e.bind(null,t))}finally{tt=r,Aa()}};Ki.hydrate=function(e,t,r){if(!Dd(t))throw Error(ye(200));return tg(null,e,t,!0,r)};Ki.render=function(e,t,r){if(!Dd(t))throw Error(ye(200));return tg(null,e,t,!1,r)};Ki.unmountComponentAtNode=function(e){if(!Dd(e))throw Error(ye(40));return e._reactRootContainer?(i1(function(){tg(null,null,e,!1,function(){e._reactRootContainer=null,e[jl]=null})}),!0):!1};Ki.unstable_batchedUpdates=n1;Ki.unstable_createPortal=function(e,t){return p1(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ki.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Dd(r))throw Error(ye(200));if(e==null||e._reactInternals===void 0)throw Error(ye(38));return tg(e,t,r,!1,n)};Ki.version="17.0.2"});var a_=G((Lie,g1)=>{"use strict";function v1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(v1)}catch(e){console.error(e)}}v1(),g1.exports=h1()});var m1=G(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.versionInfo=Jl.version=void 0;var iH="15.5.0";Jl.version=iH;var aH=Object.freeze({major:15,minor:5,patch:0,preReleaseTag:null});Jl.versionInfo=aH});var rg=G(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.default=oH;function oH(e){return typeof(e==null?void 0:e.then)=="function"}});var Ma=G(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.default=uH;function ng(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ng=function(r){return typeof r}:ng=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ng(e)}function uH(e){return ng(e)=="object"&&e!==null}});var qa=G(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.SYMBOL_TO_STRING_TAG=pu.SYMBOL_ASYNC_ITERATOR=pu.SYMBOL_ITERATOR=void 0;var sH=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator";pu.SYMBOL_ITERATOR=sH;var lH=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator";pu.SYMBOL_ASYNC_ITERATOR=lH;var cH=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";pu.SYMBOL_TO_STRING_TAG=cH});var ig=G(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.getLocation=fH;function fH(e,t){for(var r=/\r\n|[\n\r]/g,n=1,i=t+1,o;(o=r.exec(e.body))&&o.index<t;)n+=1,i=t+1-(o.index+o[0].length);return{line:n,column:i}}});var l_=G(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.printLocation=pH;og.printSourceLocation=y1;var dH=ig();function pH(e){return y1(e.source,(0,dH.getLocation)(e.source,e.start))}function y1(e,t){var r=e.locationOffset.column-1,n=ag(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=t.line===1?r:0,d=t.column+l,h="".concat(e.name,":").concat(s,":").concat(d,`
|
|
`),v=n.split(/\r\n|[\n\r]/g),y=v[i];if(y.length>120){for(var b=Math.floor(d/80),D=d%80,_=[],k=0;k<y.length;k+=80)_.push(y.slice(k,k+80));return h+b1([["".concat(s),_[0]]].concat(_.slice(1,b+1).map(function(T){return["",T]}),[[" ",ag(D-1)+"^"],["",_[b+1]]]))}return h+b1([["".concat(s-1),v[i-1]],["".concat(s),y],["",ag(d-1)+"^"],["".concat(s+1),v[i+1]]])}function b1(e){var t=e.filter(function(n){var i=n[0],o=n[1];return o!==void 0}),r=Math.max.apply(Math,t.map(function(n){var i=n[0];return i.length}));return t.map(function(n){var i=n[0],o=n[1];return hH(r,i)+(o?" | "+o:" |")}).join(`
|
|
`)}function ag(e){return Array(e+1).join(" ")}function hH(e,t){return ag(e-t.length)+t}});var Je=G(Rd=>{"use strict";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)}Object.defineProperty(Rd,"__esModule",{value:!0});Rd.printError=O1;Rd.GraphQLError=void 0;var vH=mH(Ma()),gH=qa(),T1=ig(),_1=l_();function mH(e){return e&&e.__esModule?e:{default:e}}function yH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bH(e,t,r){return t&&E1(e.prototype,t),r&&E1(e,r),e}function TH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Id(e,t)}function _H(e){var t=k1();return function(){var n=Ad(e),i;if(t){var o=Ad(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return S1(this,i)}}function S1(e,t){return t&&(ug(t)==="object"||typeof t=="function")?t:Ld(e)}function Ld(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c_(e){var t=typeof Map=="function"?new Map:void 0;return c_=function(n){if(n===null||!EH(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return sg(n,arguments,Ad(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Id(i,n)},c_(e)}function sg(e,t,r){return k1()?sg=Reflect.construct:sg=function(i,o,s){var l=[null];l.push.apply(l,o);var d=Function.bind.apply(i,l),h=new d;return s&&Id(h,s.prototype),h},sg.apply(null,arguments)}function k1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function EH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Id(e,t){return Id=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Id(e,t)}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}var SH=function(e){TH(r,e);var t=_H(r);function r(n,i,o,s,l,d,h){var v,y,b,D,_;yH(this,r),_=t.call(this,n);var k=Array.isArray(i)?i.length!==0?i:void 0:i?[i]:void 0,T=o;if(!T&&k){var S;T=(S=k[0].loc)===null||S===void 0?void 0:S.source}var m=s;!m&&k&&(m=k.reduce(function(O,R){return R.loc&&O.push(R.loc.start),O},[])),m&&m.length===0&&(m=void 0);var w;s&&o?w=s.map(function(O){return(0,T1.getLocation)(o,O)}):k&&(w=k.reduce(function(O,R){return R.loc&&O.push((0,T1.getLocation)(R.loc.source,R.loc.start)),O},[]));var x=h;if(x==null&&d!=null){var L=d.extensions;(0,vH.default)(L)&&(x=L)}return Object.defineProperties(Ld(_),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(v=w)!==null&&v!==void 0?v:void 0,enumerable:w!=null},path:{value:l!=null?l:void 0,enumerable:l!=null},nodes:{value:k!=null?k:void 0},source:{value:(y=T)!==null&&y!==void 0?y:void 0},positions:{value:(b=m)!==null&&b!==void 0?b:void 0},originalError:{value:d},extensions:{value:(D=x)!==null&&D!==void 0?D:void 0,enumerable:x!=null}}),d!=null&&d.stack?(Object.defineProperty(Ld(_),"stack",{value:d.stack,writable:!0,configurable:!0}),S1(_)):(Error.captureStackTrace?Error.captureStackTrace(Ld(_),r):Object.defineProperty(Ld(_),"stack",{value:Error().stack,writable:!0,configurable:!0}),_)}return bH(r,[{key:"toString",value:function(){return O1(this)}},{key:gH.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(c_(Error));Rd.GraphQLError=SH;function O1(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];i.loc&&(t+=`
|
|
|
|
`+(0,_1.printLocation)(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var l=s[o];t+=`
|
|
|
|
`+(0,_1.printSourceLocation)(e.source,l)}return t}});var lg=G(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.syntaxError=OH;var kH=Je();function OH(e,t,r){return new kH.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Jt=G(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.Kind=void 0;var wH=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"});cg.Kind=wH});var _n=G(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.default=NH;function NH(e,t){var r=Boolean(e);if(!r)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var p_=G(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.default=void 0;var DH=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,xH=DH;fg.default=xH});var dg=G(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.default=LH;var CH=N1(_n()),w1=N1(p_());function N1(e){return e&&e.__esModule?e:{default:e}}function LH(e){var t=e.prototype.toJSON;typeof t=="function"||(0,CH.default)(0),e.prototype.inspect=t,w1.default&&(e.prototype[w1.default]=t)}});var Xl=G(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.isNode=AH;hs.Token=hs.Location=void 0;var D1=IH(dg());function IH(e){return e&&e.__esModule?e:{default:e}}var x1=function(){function e(r,n,i){this.start=r.start,this.end=n.end,this.startToken=r,this.endToken=n,this.source=i}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();hs.Location=x1;(0,D1.default)(x1);var C1=function(){function e(r,n,i,o,s,l,d){this.kind=r,this.start=n,this.end=i,this.line=o,this.column=s,this.value=d,this.prev=l,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}();hs.Token=C1;(0,D1.default)(C1);function AH(e){return e!=null&&typeof e.kind=="string"}});var Zl=G(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.TokenKind=void 0;var RH=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});pg.TokenKind=RH});var jt=G(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.default=MH;var jH=PH(p_());function PH(e){return e&&e.__esModule?e:{default:e}}function hg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hg=function(r){return typeof r}:hg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},hg(e)}var FH=10,L1=2;function MH(e){return vg(e,[])}function vg(e,t){switch(hg(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return e===null?"null":qH(e,t);default:return String(e)}}function qH(e,t){if(t.indexOf(e)!==-1)return"[Circular]";var r=[].concat(t,[e]),n=GH(e);if(n!==void 0){var i=n.call(e);if(i!==e)return typeof i=="string"?i:vg(i,r)}else if(Array.isArray(e))return UH(e,r);return VH(e,r)}function VH(e,t){var r=Object.keys(e);if(r.length===0)return"{}";if(t.length>L1)return"["+QH(e)+"]";var n=r.map(function(i){var o=vg(e[i],t);return i+": "+o});return"{ "+n.join(", ")+" }"}function UH(e,t){if(e.length===0)return"[]";if(t.length>L1)return"[Array]";for(var r=Math.min(FH,e.length),n=e.length-r,i=[],o=0;o<r;++o)i.push(vg(e[o],t));return n===1?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}function GH(e){var t=e[String(jH.default)];if(typeof t=="function")return t;if(typeof e.inspect=="function")return e.inspect}function QH(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 Hi=G(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.default=BH;function BH(e,t){var r=Boolean(e);if(!r)throw new Error(t)}});var jd=G(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.default=void 0;var KH=function(t,r){return t instanceof r};gg.default=KH});var mg=G(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.isSource=JH;Pd.Source=void 0;var HH=qa(),zH=y_(jt()),m_=y_(Hi()),WH=y_(jd());function y_(e){return e&&e.__esModule?e:{default:e}}function I1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function YH(e,t,r){return t&&I1(e.prototype,t),r&&I1(e,r),e}var A1=function(){function e(t){var r=arguments.length>1&&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,m_.default)(0,"Body must be a string. Received: ".concat((0,zH.default)(t),".")),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||(0,m_.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,m_.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return YH(e,[{key:HH.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();Pd.Source=A1;function JH(e){return(0,WH.default)(e,A1)}});var $l=G(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.DirectiveLocation=void 0;var XH=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"});yg.DirectiveLocation=XH});var ec=G(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.dedentBlockStringValue=ZH;Fd.getBlockStringIndentation=j1;Fd.printBlockString=$H;function ZH(e){var t=e.split(/\r\n|[\n\r]/g),r=j1(e);if(r!==0)for(var n=1;n<t.length;n++)t[n]=t[n].slice(r);for(var i=0;i<t.length&&R1(t[i]);)++i;for(var o=t.length;o>i&&R1(t[o-1]);)--o;return t.slice(i,o).join(`
|
|
`)}function R1(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function j1(e){for(var t,r=!0,n=!0,i=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:e.charCodeAt(s+1)===10&&++s;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(o===null||i<o)&&(o=i),n=!1}return(t=o)!==null&&t!==void 0?t:0}function $H(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.indexOf(`
|
|
`)===-1,i=e[0]===" "||e[0]===" ",o=e[e.length-1]==='"',s=e[e.length-1]==="\\",l=!n||o||s||r,d="";return l&&!(n&&i)&&(d+=`
|
|
`+t),d+=t?e.replace(/\n/g,`
|
|
`+t):e,l&&(d+=`
|
|
`),'"""'+d.replace(/"""/g,'\\"""')+'"""'}});var Tg=G(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.isPunctuatorTokenKind=rz;Md.Lexer=void 0;var Va=lg(),xr=Xl(),dt=Zl(),ez=ec(),tz=function(){function e(r){var n=new xr.Token(dt.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!==dt.TokenKind.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=nz(this,n)}while(n.kind===dt.TokenKind.COMMENT);return n},e}();Md.Lexer=tz;function rz(e){return e===dt.TokenKind.BANG||e===dt.TokenKind.DOLLAR||e===dt.TokenKind.AMP||e===dt.TokenKind.PAREN_L||e===dt.TokenKind.PAREN_R||e===dt.TokenKind.SPREAD||e===dt.TokenKind.COLON||e===dt.TokenKind.EQUALS||e===dt.TokenKind.AT||e===dt.TokenKind.BRACKET_L||e===dt.TokenKind.BRACKET_R||e===dt.TokenKind.BRACE_L||e===dt.TokenKind.PIPE||e===dt.TokenKind.BRACE_R}function vs(e){return isNaN(e)?dt.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function nz(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o<i;){var s=n.charCodeAt(o),l=e.line,d=1+o-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new xr.Token(dt.TokenKind.BANG,o,o+1,l,d,t);case 35:return az(r,o,l,d,t);case 36:return new xr.Token(dt.TokenKind.DOLLAR,o,o+1,l,d,t);case 38:return new xr.Token(dt.TokenKind.AMP,o,o+1,l,d,t);case 40:return new xr.Token(dt.TokenKind.PAREN_L,o,o+1,l,d,t);case 41:return new xr.Token(dt.TokenKind.PAREN_R,o,o+1,l,d,t);case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return new xr.Token(dt.TokenKind.SPREAD,o,o+3,l,d,t);break;case 58:return new xr.Token(dt.TokenKind.COLON,o,o+1,l,d,t);case 61:return new xr.Token(dt.TokenKind.EQUALS,o,o+1,l,d,t);case 64:return new xr.Token(dt.TokenKind.AT,o,o+1,l,d,t);case 91:return new xr.Token(dt.TokenKind.BRACKET_L,o,o+1,l,d,t);case 93:return new xr.Token(dt.TokenKind.BRACKET_R,o,o+1,l,d,t);case 123:return new xr.Token(dt.TokenKind.BRACE_L,o,o+1,l,d,t);case 124:return new xr.Token(dt.TokenKind.PIPE,o,o+1,l,d,t);case 125:return new xr.Token(dt.TokenKind.BRACE_R,o,o+1,l,d,t);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?sz(r,o,l,d,t,e):uz(r,o,l,d,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return oz(r,o,s,l,d,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return cz(r,o,l,d,t)}throw(0,Va.syntaxError)(r,o,iz(s))}var h=e.line,v=1+o-e.lineStart;return new xr.Token(dt.TokenKind.EOF,i,i,h,v,t)}function iz(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(vs(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(vs(e),".")}function az(e,t,r,n,i){var o=e.body,s,l=t;do s=o.charCodeAt(++l);while(!isNaN(s)&&(s>31||s===9));return new xr.Token(dt.TokenKind.COMMENT,t,l,r,n,i,o.slice(t+1,l))}function oz(e,t,r,n,i,o){var s=e.body,l=r,d=t,h=!1;if(l===45&&(l=s.charCodeAt(++d)),l===48){if(l=s.charCodeAt(++d),l>=48&&l<=57)throw(0,Va.syntaxError)(e,d,"Invalid number, unexpected digit after 0: ".concat(vs(l),"."))}else d=b_(e,d,l),l=s.charCodeAt(d);if(l===46&&(h=!0,l=s.charCodeAt(++d),d=b_(e,d,l),l=s.charCodeAt(d)),(l===69||l===101)&&(h=!0,l=s.charCodeAt(++d),(l===43||l===45)&&(l=s.charCodeAt(++d)),d=b_(e,d,l),l=s.charCodeAt(d)),l===46||fz(l))throw(0,Va.syntaxError)(e,d,"Invalid number, expected digit but got: ".concat(vs(l),"."));return new xr.Token(h?dt.TokenKind.FLOAT:dt.TokenKind.INT,t,d,n,i,o,s.slice(t,d))}function b_(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw(0,Va.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(vs(o),"."))}function uz(e,t,r,n,i){for(var o=e.body,s=t+1,l=s,d=0,h="";s<o.length&&!isNaN(d=o.charCodeAt(s))&&d!==10&&d!==13;){if(d===34)return h+=o.slice(l,s),new xr.Token(dt.TokenKind.STRING,t,s+1,r,n,i,h);if(d<32&&d!==9)throw(0,Va.syntaxError)(e,s,"Invalid character within String: ".concat(vs(d),"."));if(++s,d===92){switch(h+=o.slice(l,s-1),d=o.charCodeAt(s),d){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=`
|
|
`;break;case 114:h+="\r";break;case 116:h+=" ";break;case 117:{var v=lz(o.charCodeAt(s+1),o.charCodeAt(s+2),o.charCodeAt(s+3),o.charCodeAt(s+4));if(v<0){var y=o.slice(s+1,s+5);throw(0,Va.syntaxError)(e,s,"Invalid character escape sequence: \\u".concat(y,"."))}h+=String.fromCharCode(v),s+=4;break}default:throw(0,Va.syntaxError)(e,s,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}++s,l=s}}throw(0,Va.syntaxError)(e,s,"Unterminated string.")}function sz(e,t,r,n,i,o){for(var s=e.body,l=t+3,d=l,h=0,v="";l<s.length&&!isNaN(h=s.charCodeAt(l));){if(h===34&&s.charCodeAt(l+1)===34&&s.charCodeAt(l+2)===34)return v+=s.slice(d,l),new xr.Token(dt.TokenKind.BLOCK_STRING,t,l+3,r,n,i,(0,ez.dedentBlockStringValue)(v));if(h<32&&h!==9&&h!==10&&h!==13)throw(0,Va.syntaxError)(e,l,"Invalid character within String: ".concat(vs(h),"."));h===10?(++l,++o.line,o.lineStart=l):h===13?(s.charCodeAt(l+1)===10?l+=2:++l,++o.line,o.lineStart=l):h===92&&s.charCodeAt(l+1)===34&&s.charCodeAt(l+2)===34&&s.charCodeAt(l+3)===34?(v+=s.slice(d,l)+'"""',l+=4,d=l):++l}throw(0,Va.syntaxError)(e,l,"Unterminated string.")}function lz(e,t,r,n){return bg(e)<<12|bg(t)<<8|bg(r)<<4|bg(n)}function bg(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function cz(e,t,r,n,i){for(var o=e.body,s=o.length,l=t+1,d=0;l!==s&&!isNaN(d=o.charCodeAt(l))&&(d===95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122);)++l;return new xr.Token(dt.TokenKind.NAME,t,l,r,n,i,o.slice(t,l))}function fz(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var tc=G(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.parse=hz;gs.parseValue=vz;gs.parseType=gz;gs.Parser=void 0;var T_=lg(),$e=Jt(),dz=Xl(),De=Zl(),P1=mg(),pz=$l(),F1=Tg();function hz(e,t){var r=new _g(e,t);return r.parseDocument()}function vz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(De.TokenKind.EOF),n}function gz(e,t){var r=new _g(e,t);r.expectToken(De.TokenKind.SOF);var n=r.parseTypeReference();return r.expectToken(De.TokenKind.EOF),n}var _g=function(){function e(r,n){var i=(0,P1.isSource)(r)?r:new P1.Source(r);this._lexer=new F1.Lexer(i),this._options=n}var t=e.prototype;return t.parseName=function(){var n=this.expectToken(De.TokenKind.NAME);return{kind:$e.Kind.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:$e.Kind.DOCUMENT,definitions:this.many(De.TokenKind.SOF,this.parseDefinition,De.TokenKind.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(De.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(De.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(De.TokenKind.BRACE_L))return{kind:$e.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),o;return this.peek(De.TokenKind.NAME)&&(o=this.parseName()),{kind:$e.Kind.OPERATION_DEFINITION,operation:i,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(De.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(De.TokenKind.PAREN_L,this.parseVariableDefinition,De.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:$e.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(De.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(De.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(De.TokenKind.DOLLAR),{kind:$e.Kind.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:$e.Kind.SELECTION_SET,selections:this.many(De.TokenKind.BRACE_L,this.parseSelection,De.TokenKind.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(De.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n=this._lexer.token,i=this.parseName(),o,s;return this.expectOptionalToken(De.TokenKind.COLON)?(o=i,s=this.parseName()):s=i,{kind:$e.Kind.FIELD,alias:o,name:s,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(De.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(n){var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(De.TokenKind.PAREN_L,i,De.TokenKind.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,i=this.parseName();return this.expectToken(De.TokenKind.COLON),{kind:$e.Kind.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:$e.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(De.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(De.TokenKind.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(De.TokenKind.NAME)?{kind:$e.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:$e.Kind.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,i=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:$e.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(i)}:{kind:$e.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},t.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var i=this._lexer.token;switch(i.kind){case De.TokenKind.BRACKET_L:return this.parseList(n);case De.TokenKind.BRACE_L:return this.parseObject(n);case De.TokenKind.INT:return this._lexer.advance(),{kind:$e.Kind.INT,value:i.value,loc:this.loc(i)};case De.TokenKind.FLOAT:return this._lexer.advance(),{kind:$e.Kind.FLOAT,value:i.value,loc:this.loc(i)};case De.TokenKind.STRING:case De.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case De.TokenKind.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:$e.Kind.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:$e.Kind.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:$e.Kind.NULL,loc:this.loc(i)};default:return{kind:$e.Kind.ENUM,value:i.value,loc:this.loc(i)}}case De.TokenKind.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:$e.Kind.STRING,value:n.value,block:n.kind===De.TokenKind.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseValueLiteral(n)};return{kind:$e.Kind.LIST,values:this.any(De.TokenKind.BRACKET_L,s,De.TokenKind.BRACKET_R),loc:this.loc(o)}},t.parseObject=function(n){var i=this,o=this._lexer.token,s=function(){return i.parseObjectField(n)};return{kind:$e.Kind.OBJECT,fields:this.any(De.TokenKind.BRACE_L,s,De.TokenKind.BRACE_R),loc:this.loc(o)}},t.parseObjectField=function(n){var i=this._lexer.token,o=this.parseName();return this.expectToken(De.TokenKind.COLON),{kind:$e.Kind.OBJECT_FIELD,name:o,value:this.parseValueLiteral(n),loc:this.loc(i)}},t.parseDirectives=function(n){for(var i=[];this.peek(De.TokenKind.AT);)i.push(this.parseDirective(n));return i},t.parseDirective=function(n){var i=this._lexer.token;return this.expectToken(De.TokenKind.AT),{kind:$e.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}},t.parseTypeReference=function(){var n=this._lexer.token,i;return this.expectOptionalToken(De.TokenKind.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(De.TokenKind.BRACKET_R),i={kind:$e.Kind.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(De.TokenKind.BANG)?{kind:$e.Kind.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i},t.parseNamedType=function(){var n=this._lexer.token;return{kind:$e.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===De.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(De.TokenKind.STRING)||this.peek(De.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var o=this.parseDirectives(!0),s=this.many(De.TokenKind.BRACE_L,this.parseOperationTypeDefinition,De.TokenKind.BRACE_R);return{kind:$e.Kind.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:s,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,i=this.parseOperationType();this.expectToken(De.TokenKind.COLON);var o=this.parseNamedType();return{kind:$e.Kind.OPERATION_TYPE_DEFINITION,operation:i,type:o,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var o=this.parseName(),s=this.parseDirectives(!0);return{kind:$e.Kind.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:$e.Kind.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,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 i=[];this.expectOptionalToken(De.TokenKind.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(De.TokenKind.AMP)||this.peek(De.TokenKind.NAME));return i}return this.delimitedMany(De.TokenKind.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(De.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===De.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(De.TokenKind.BRACE_L,this.parseFieldDefinition,De.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseArgumentDefs();this.expectToken(De.TokenKind.COLON);var l=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:$e.Kind.FIELD_DEFINITION,description:i,name:o,arguments:s,type:l,directives:d,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(De.TokenKind.PAREN_L,this.parseInputValueDef,De.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(De.TokenKind.COLON);var s=this.parseTypeReference(),l;this.expectOptionalToken(De.TokenKind.EQUALS)&&(l=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:$e.Kind.INPUT_VALUE_DEFINITION,description:i,name:o,type:s,defaultValue:l,directives:d,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var o=this.parseName(),s=this.parseImplementsInterfaces(),l=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:$e.Kind.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:s,directives:l,fields:d,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseUnionMemberTypes();return{kind:$e.Kind.UNION_TYPE_DEFINITION,description:i,name:o,directives:s,types:l,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(De.TokenKind.EQUALS)?this.delimitedMany(De.TokenKind.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseEnumValuesDefinition();return{kind:$e.Kind.ENUM_TYPE_DEFINITION,description:i,name:o,directives:s,values:l,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(De.TokenKind.BRACE_L,this.parseEnumValueDefinition,De.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),o=this.parseName(),s=this.parseDirectives(!0);return{kind:$e.Kind.ENUM_VALUE_DEFINITION,description:i,name:o,directives:s,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var o=this.parseName(),s=this.parseDirectives(!0),l=this.parseInputFieldsDefinition();return{kind:$e.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(De.TokenKind.BRACE_L,this.parseInputValueDef,De.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===De.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 i=this.parseDirectives(!0),o=this.optionalMany(De.TokenKind.BRACE_L,this.parseOperationTypeDefinition,De.TokenKind.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return{kind:$e.Kind.SCHEMA_EXTENSION,directives:i,operationTypes:o,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),o=this.parseDirectives(!0);if(o.length===0)throw this.unexpected();return{kind:$e.Kind.SCALAR_TYPE_EXTENSION,name:i,directives:o,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:$e.Kind.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),l=this.parseFieldsDefinition();if(o.length===0&&s.length===0&&l.length===0)throw this.unexpected();return{kind:$e.Kind.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:s,fields:l,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.UNION_TYPE_EXTENSION,name:i,directives:o,types:s,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.ENUM_TYPE_EXTENSION,name:i,directives:o,values:s,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();if(o.length===0&&s.length===0)throw this.unexpected();return{kind:$e.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:s,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(De.TokenKind.AT);var o=this.parseName(),s=this.parseArgumentDefs(),l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:$e.Kind.DIRECTIVE_DEFINITION,description:i,name:o,arguments:s,repeatable:l,locations:d,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(De.TokenKind.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,i=this.parseName();if(pz.DirectiveLocation[i.value]!==void 0)return i;throw this.unexpected(n)},t.loc=function(n){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new dz.Location(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw(0,T_.syntaxError)(this._lexer.source,i.start,"Expected ".concat(M1(n),", found ").concat(__(i),"."))},t.expectOptionalToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i},t.expectKeyword=function(n){var i=this._lexer.token;if(i.kind===De.TokenKind.NAME&&i.value===n)this._lexer.advance();else throw(0,T_.syntaxError)(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(__(i),"."))},t.expectOptionalKeyword=function(n){var i=this._lexer.token;return i.kind===De.TokenKind.NAME&&i.value===n?(this._lexer.advance(),!0):!1},t.unexpected=function(n){var i=n!=null?n:this._lexer.token;return(0,T_.syntaxError)(this._lexer.source,i.start,"Unexpected ".concat(__(i),"."))},t.any=function(n,i,o){this.expectToken(n);for(var s=[];!this.expectOptionalToken(o);)s.push(i.call(this));return s},t.optionalMany=function(n,i,o){if(this.expectOptionalToken(n)){var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s}return[]},t.many=function(n,i,o){this.expectToken(n);var s=[];do s.push(i.call(this));while(!this.expectOptionalToken(o));return s},t.delimitedMany=function(n,i){this.expectOptionalToken(n);var o=[];do o.push(i.call(this));while(this.expectOptionalToken(n));return o},e}();gs.Parser=_g;function __(e){var t=e.value;return M1(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function M1(e){return(0,F1.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}});var hu=G(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.visit=bz;_o.visitInParallel=Tz;_o.getVisitFn=Eg;_o.BREAK=_o.QueryDocumentKeys=void 0;var mz=yz(jt()),q1=Xl();function yz(e){return e&&e.__esModule?e:{default:e}}var V1={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"]};_o.QueryDocumentKeys=V1;var rc=Object.freeze({});_o.BREAK=rc;function bz(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V1,n=void 0,i=Array.isArray(e),o=[e],s=-1,l=[],d=void 0,h=void 0,v=void 0,y=[],b=[],D=e;do{s++;var _=s===o.length,k=_&&l.length!==0;if(_){if(h=b.length===0?void 0:y[y.length-1],d=v,v=b.pop(),k){if(i)d=d.slice();else{for(var T={},S=0,m=Object.keys(d);S<m.length;S++){var w=m[S];T[w]=d[w]}d=T}for(var x=0,L=0;L<l.length;L++){var O=l[L][0],R=l[L][1];i&&(O-=x),i&&R===null?(d.splice(O,1),x++):d[O]=R}}s=n.index,o=n.keys,l=n.edits,i=n.inArray,n=n.prev}else{if(h=v?i?s:o[s]:void 0,d=v?v[h]:D,d==null)continue;v&&y.push(h)}var M=void 0;if(!Array.isArray(d)){if(!(0,q1.isNode)(d))throw new Error("Invalid AST Node: ".concat((0,mz.default)(d),"."));var q=Eg(t,d.kind,_);if(q){if(M=q.call(t,d,h,v,y,b),M===rc)break;if(M===!1){if(!_){y.pop();continue}}else if(M!==void 0&&(l.push([h,M]),!_))if((0,q1.isNode)(M))d=M;else{y.pop();continue}}}if(M===void 0&&k&&l.push([h,d]),_)y.pop();else{var z;n={inArray:i,index:s,keys:o,edits:l,prev:n},i=Array.isArray(d),o=i?d:(z=r[d.kind])!==null&&z!==void 0?z:[],s=-1,l=[],v&&b.push(v),v=d}}while(n!==void 0);return l.length!==0&&(D=l[l.length-1][1]),D}function Tz(e){var t=new Array(e.length);return{enter:function(n){for(var i=0;i<e.length;i++)if(t[i]==null){var o=Eg(e[i],n.kind,!1);if(o){var s=o.apply(e[i],arguments);if(s===!1)t[i]=n;else if(s===rc)t[i]=rc;else if(s!==void 0)return s}}},leave:function(n){for(var i=0;i<e.length;i++)if(t[i]==null){var o=Eg(e[i],n.kind,!0);if(o){var s=o.apply(e[i],arguments);if(s===rc)t[i]=rc;else if(s!==void 0&&s!==!1)return s}}else t[i]===n&&(t[i]=null)}}}function Eg(e,t,r){var n=e[t];if(n){if(!r&&typeof n=="function")return n;var i=r?n.leave:n.enter;if(typeof i=="function")return i}else{var o=r?e.leave:e.enter;if(o){if(typeof o=="function")return o;var s=o[t];if(typeof s=="function")return s}}}});var nc=G(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.default=void 0;var _z=Array.prototype.find?function(e,t){return Array.prototype.find.call(e,t)}:function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}},Ez=_z;Sg.default=Ez});var Ni=G(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});kg.default=void 0;var Sz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},kz=Sz;kg.default=kz});var qd=G(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.locatedError=Dz;var Oz=Nz(jt()),wz=Je();function Nz(e){return e&&e.__esModule?e:{default:e}}function Dz(e,t,r){var n,i=e instanceof Error?e:new Error("Unexpected error value: "+(0,Oz.default)(e));return Array.isArray(i.path)?i:new wz.GraphQLError(i.message,(n=i.nodes)!==null&&n!==void 0?n:t,i.source,i.positions,r,i)}});var S_=G(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});Og.assertValidName=Iz;Og.isValidNameError=G1;var xz=Cz(Hi()),U1=Je();function Cz(e){return e&&e.__esModule?e:{default:e}}var Lz=/^[_a-zA-Z][_a-zA-Z0-9]*$/;function Iz(e){var t=G1(e);if(t)throw t;return e}function G1(e){if(typeof e=="string"||(0,xz.default)(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new U1.GraphQLError('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!Lz.test(e))return new U1.GraphQLError('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}});var ic=G(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.default=void 0;var Az=Object.entries||function(e){return Object.keys(e).map(function(t){return[t,e[t]]})},Rz=Az;wg.default=Rz});var vu=G(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.default=jz;function jz(e,t){return e.reduce(function(r,n){return r[t(n)]=n,r},Object.create(null))}});var w_=G(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.default=Mz;var Pz=Fz(ic());function Fz(e){return e&&e.__esModule?e:{default:e}}function Mz(e,t){for(var r=Object.create(null),n=0,i=(0,Pz.default)(e);n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=t(l,s)}return r}});var Ng=G(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.default=Uz;var qz=Vz(ic());function Vz(e){return e&&e.__esModule?e:{default:e}}function Uz(e){if(Object.getPrototypeOf(e)===null)return e;for(var t=Object.create(null),r=0,n=(0,qz.default)(e);r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s}return t}});var Vd=G(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.default=Gz;function Gz(e,t,r){return e.reduce(function(n,i){return n[t(i)]=r(i),n},Object.create(null))}});var gu=G(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.default=Bz;var Qz=5;function Bz(e,t){var r=typeof e=="string"?[e,t]:[void 0,e],n=r[0],i=r[1],o=" Did you mean ";n&&(o+=n+" ");var s=i.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 l=s.slice(0,Qz),d=l.pop();return o+l.join(", ")+", or "+d+"?"}});var Q1=G(C_=>{"use strict";Object.defineProperty(C_,"__esModule",{value:!0});C_.default=Kz;function Kz(e){return e}});var Ud=G(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.default=Hz;function Hz(e,t){for(var r=0,n=0;r<e.length&&n<t.length;){var i=e.charCodeAt(r),o=t.charCodeAt(n);if(Dg(i)&&Dg(o)){var s=0;do++r,s=s*10+i-L_,i=e.charCodeAt(r);while(Dg(i)&&s>0);var l=0;do++n,l=l*10+o-L_,o=t.charCodeAt(n);while(Dg(o)&&l>0);if(s<l)return-1;if(s>l)return 1}else{if(i<o)return-1;if(i>o)return 1;++r,++n}}return e.length-t.length}var L_=48,zz=57;function Dg(e){return!isNaN(e)&&L_<=e&&e<=zz}});var mu=G(A_=>{"use strict";Object.defineProperty(A_,"__esModule",{value:!0});A_.default=Jz;var Wz=Yz(Ud());function Yz(e){return e&&e.__esModule?e:{default:e}}function Jz(e,t){for(var r=Object.create(null),n=new Xz(e),i=Math.floor(e.length*.4)+1,o=0;o<t.length;o++){var s=t[o],l=n.measure(s,i);l!==void 0&&(r[s]=l)}return Object.keys(r).sort(function(d,h){var v=r[d]-r[h];return v!==0?v:(0,Wz.default)(d,h)})}var Xz=function(){function e(r){this._input=r,this._inputLowerCase=r.toLowerCase(),this._inputArray=B1(this._inputLowerCase),this._rows=[new Array(r.length+1).fill(0),new Array(r.length+1).fill(0),new Array(r.length+1).fill(0)]}var t=e.prototype;return t.measure=function(n,i){if(this._input===n)return 0;var o=n.toLowerCase();if(this._inputLowerCase===o)return 1;var s=B1(o),l=this._inputArray;if(s.length<l.length){var d=s;s=l,l=d}var h=s.length,v=l.length;if(!(h-v>i)){for(var y=this._rows,b=0;b<=v;b++)y[0][b]=b;for(var D=1;D<=h;D++){for(var _=y[(D-1)%3],k=y[D%3],T=k[0]=D,S=1;S<=v;S++){var m=s[D-1]===l[S-1]?0:1,w=Math.min(_[S]+1,k[S-1]+1,_[S-1]+m);if(D>1&&S>1&&s[D-1]===l[S-2]&&s[D-2]===l[S-1]){var x=y[(D-2)%3][S-2];w=Math.min(w,x+1)}w<T&&(T=w),k[S]=w}if(T>i)return}var L=y[h%3][v];return L<=i?L:void 0}},e}();function B1(e){for(var t=e.length,r=new Array(t),n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}});var hi=G(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.print=eW;var Zz=hu(),$z=ec();function eW(e){return(0,Zz.visit)(e,{leave:rW})}var tW=80,rW={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return je(t.definitions,`
|
|
|
|
`)+`
|
|
`},OperationDefinition:function(t){var r=t.operation,n=t.name,i=yr("(",je(t.variableDefinitions,", "),")"),o=je(t.directives," "),s=t.selectionSet;return!n&&!o&&!i&&r==="query"?s:je([r,je([n,i]),o,s]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,i=t.defaultValue,o=t.directives;return r+": "+n+yr(" = ",i)+yr(" ",je(o," "))},SelectionSet:function(t){var r=t.selections;return ya(r)},Field:function(t){var r=t.alias,n=t.name,i=t.arguments,o=t.directives,s=t.selectionSet,l=yr("",r,": ")+n,d=l+yr("(",je(i,", "),")");return d.length>tW&&(d=l+yr(`(
|
|
`,xg(je(i,`
|
|
`)),`
|
|
)`)),je([d,je(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+yr(" ",je(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return je(["...",yr("on ",r),je(n," "),i]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(r).concat(yr("(",je(i,", "),")")," ")+"on ".concat(n," ").concat(yr("",je(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,i=t.block;return i?(0,$z.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"["+je(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+je(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+yr("(",je(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:ma(function(e){var t=e.directives,r=e.operationTypes;return je(["schema",je(t," "),ya(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:ma(function(e){var t=e.name,r=e.directives;return je(["scalar",t,je(r," ")]," ")}),ObjectTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["type",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),FieldDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(K1(r)?yr(`(
|
|
`,xg(je(r,`
|
|
`)),`
|
|
)`):yr("(",je(r,", "),")"))+": "+n+yr(" ",je(i," "))}),InputValueDefinition:ma(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return je([t+": "+r,yr("= ",n),je(i," ")]," ")}),InterfaceTypeDefinition:ma(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return je(["interface",t,yr("implements ",je(r," & ")),je(n," "),ya(i)]," ")}),UnionTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.types;return je(["union",t,je(r," "),n&&n.length!==0?"= "+je(n," | "):""]," ")}),EnumTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.values;return je(["enum",t,je(r," "),ya(n)]," ")}),EnumValueDefinition:ma(function(e){var t=e.name,r=e.directives;return je([t,je(r," ")]," ")}),InputObjectTypeDefinition:ma(function(e){var t=e.name,r=e.directives,n=e.fields;return je(["input",t,je(r," "),ya(n)]," ")}),DirectiveDefinition:ma(function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(K1(r)?yr(`(
|
|
`,xg(je(r,`
|
|
`)),`
|
|
)`):yr("(",je(r,", "),")"))+(n?" repeatable":"")+" on "+je(i," | ")}),SchemaExtension:function(t){var r=t.directives,n=t.operationTypes;return je(["extend schema",je(r," "),ya(n)]," ")},ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return je(["extend scalar",r,je(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend type",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,o=t.fields;return je(["extend interface",r,yr("implements ",je(n," & ")),je(i," "),ya(o)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,i=t.types;return je(["extend union",r,je(n," "),i&&i.length!==0?"= "+je(i," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,i=t.values;return je(["extend enum",r,je(n," "),ya(i)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return je(["extend input",r,je(n," "),ya(i)]," ")}};function ma(e){return function(t){return je([t.description,e(t)],`
|
|
`)}}function je(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 ya(e){return yr(`{
|
|
`,xg(je(e,`
|
|
`)),`
|
|
}`)}function yr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function xg(e){return yr(" ",e.replace(/\n/g,`
|
|
`))}function nW(e){return e.indexOf(`
|
|
`)!==-1}function K1(e){return e!=null&&e.some(nW)}});var M_=G(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.valueFromASTUntyped=P_;var iW=j_(jt()),aW=j_(_n()),oW=j_(Vd()),Eo=Jt();function j_(e){return e&&e.__esModule?e:{default:e}}function P_(e,t){switch(e.kind){case Eo.Kind.NULL:return null;case Eo.Kind.INT:return parseInt(e.value,10);case Eo.Kind.FLOAT:return parseFloat(e.value);case Eo.Kind.STRING:case Eo.Kind.ENUM:case Eo.Kind.BOOLEAN:return e.value;case Eo.Kind.LIST:return e.values.map(function(r){return P_(r,t)});case Eo.Kind.OBJECT:return(0,oW.default)(e.fields,function(r){return r.name.value},function(r){return P_(r.value,t)});case Eo.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,aW.default)(0,"Unexpected value node: "+(0,iW.default)(e))}});var bt=G(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.isType=q_;Be.assertType=X1;Be.isScalarType=ms;Be.assertScalarType=pW;Be.isObjectType=oc;Be.assertObjectType=hW;Be.isInterfaceType=ys;Be.assertInterfaceType=vW;Be.isUnionType=bs;Be.assertUnionType=gW;Be.isEnumType=Ts;Be.assertEnumType=mW;Be.isInputObjectType=Qd;Be.assertInputObjectType=yW;Be.isListType=Lg;Be.assertListType=bW;Be.isNonNullType=_u;Be.assertNonNullType=TW;Be.isInputType=V_;Be.assertInputType=_W;Be.isOutputType=U_;Be.assertOutputType=EW;Be.isLeafType=Z1;Be.assertLeafType=SW;Be.isCompositeType=$1;Be.assertCompositeType=kW;Be.isAbstractType=eI;Be.assertAbstractType=OW;Be.GraphQLList=Eu;Be.GraphQLNonNull=Su;Be.isWrappingType=Bd;Be.assertWrappingType=wW;Be.isNullableType=tI;Be.assertNullableType=rI;Be.getNullableType=NW;Be.isNamedType=nI;Be.assertNamedType=DW;Be.getNamedType=xW;Be.argsToArgsConfig=uI;Be.isRequiredArgument=CW;Be.isRequiredInputField=RW;Be.GraphQLInputObjectType=Be.GraphQLEnumType=Be.GraphQLUnionType=Be.GraphQLInterfaceType=Be.GraphQLObjectType=Be.GraphQLScalarType=void 0;var H1=Di(ic()),yu=qa(),ur=Di(jt()),uW=Di(vu()),Cg=Di(w_()),Ua=Di(Ng()),fr=Di(Hi()),z1=Di(Vd()),bu=Di(jd()),sW=Di(gu()),lW=Di(Ma()),W1=Di(Q1()),Tu=Di(dg()),cW=Di(mu()),Gd=Je(),fW=Jt(),Y1=hi(),dW=M_();function Di(e){return e&&e.__esModule?e:{default:e}}function J1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ac(e,t,r){return t&&J1(e.prototype,t),r&&J1(e,r),e}function q_(e){return ms(e)||oc(e)||ys(e)||bs(e)||Ts(e)||Qd(e)||Lg(e)||_u(e)}function X1(e){if(!q_(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL type."));return e}function ms(e){return(0,bu.default)(e,G_)}function pW(e){if(!ms(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Scalar type."));return e}function oc(e){return(0,bu.default)(e,Q_)}function hW(e){if(!oc(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Object type."));return e}function ys(e){return(0,bu.default)(e,B_)}function vW(e){if(!ys(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Interface type."));return e}function bs(e){return(0,bu.default)(e,K_)}function gW(e){if(!bs(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Union type."));return e}function Ts(e){return(0,bu.default)(e,H_)}function mW(e){if(!Ts(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Enum type."));return e}function Qd(e){return(0,bu.default)(e,z_)}function yW(e){if(!Qd(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Input Object type."));return e}function Lg(e){return(0,bu.default)(e,Eu)}function bW(e){if(!Lg(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL List type."));return e}function _u(e){return(0,bu.default)(e,Su)}function TW(e){if(!_u(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL Non-Null type."));return e}function V_(e){return ms(e)||Ts(e)||Qd(e)||Bd(e)&&V_(e.ofType)}function _W(e){if(!V_(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL input type."));return e}function U_(e){return ms(e)||oc(e)||ys(e)||bs(e)||Ts(e)||Bd(e)&&U_(e.ofType)}function EW(e){if(!U_(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL output type."));return e}function Z1(e){return ms(e)||Ts(e)}function SW(e){if(!Z1(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL leaf type."));return e}function $1(e){return oc(e)||ys(e)||bs(e)}function kW(e){if(!$1(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL composite type."));return e}function eI(e){return ys(e)||bs(e)}function OW(e){if(!eI(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL abstract type."));return e}function Eu(e){if(this instanceof Eu)this.ofType=X1(e);else return new Eu(e)}Eu.prototype.toString=function(){return"["+String(this.ofType)+"]"};Eu.prototype.toJSON=function(){return this.toString()};Object.defineProperty(Eu.prototype,yu.SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLList"}});(0,Tu.default)(Eu);function Su(e){if(this instanceof Su)this.ofType=rI(e);else return new Su(e)}Su.prototype.toString=function(){return String(this.ofType)+"!"};Su.prototype.toJSON=function(){return this.toString()};Object.defineProperty(Su.prototype,yu.SYMBOL_TO_STRING_TAG,{get:function(){return"GraphQLNonNull"}});(0,Tu.default)(Su);function Bd(e){return Lg(e)||_u(e)}function wW(e){if(!Bd(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL wrapping type."));return e}function tI(e){return q_(e)&&!_u(e)}function rI(e){if(!tI(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL nullable type."));return e}function NW(e){if(e)return _u(e)?e.ofType:e}function nI(e){return ms(e)||oc(e)||ys(e)||bs(e)||Ts(e)||Qd(e)}function DW(e){if(!nI(e))throw new Error("Expected ".concat((0,ur.default)(e)," to be a GraphQL named type."));return e}function xW(e){if(e){for(var t=e;Bd(t);)t=t.ofType;return t}}function Ig(e){return typeof e=="function"?e():e}function uc(e){return e&&e.length>0?e:void 0}var G_=function(){function e(r){var n,i,o,s=(n=r.parseValue)!==null&&n!==void 0?n:W1.default;this.name=r.name,this.description=r.description,this.specifiedByUrl=r.specifiedByUrl,this.serialize=(i=r.serialize)!==null&&i!==void 0?i:W1.default,this.parseValue=s,this.parseLiteral=(o=r.parseLiteral)!==null&&o!==void 0?o:function(l,d){return s((0,dW.valueFromASTUntyped)(l,d))},this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.specifiedByUrl==null||typeof r.specifiedByUrl=="string"||(0,fr.default)(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat((0,ur.default)(r.specifiedByUrl),".")),r.serialize==null||typeof r.serialize=="function"||(0,fr.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,fr.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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLScalarType"}}]),e}();Be.GraphQLScalarType=G_;(0,Tu.default)(G_);var Q_=function(){function e(r){this.name=r.name,this.description=r.description,this.isTypeOf=r.isTypeOf,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=aI.bind(void 0,r),this._interfaces=iI.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.isTypeOf==null||typeof r.isTypeOf=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat((0,ur.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:oI(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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLObjectType"}}]),e}();Be.GraphQLObjectType=Q_;(0,Tu.default)(Q_);function iI(e){var t,r=(t=Ig(e.interfaces))!==null&&t!==void 0?t:[];return Array.isArray(r)||(0,fr.default)(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),r}function aI(e){var t=Ig(e.fields);return sc(t)||(0,fr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Cg.default)(t,function(r,n){var i;sc(r)||(0,fr.default)(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in r)||(0,fr.default)(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),r.resolve==null||typeof r.resolve=="function"||(0,fr.default)(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat((0,ur.default)(r.resolve),"."));var o=(i=r.args)!==null&&i!==void 0?i:{};sc(o)||(0,fr.default)(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var s=(0,H1.default)(o).map(function(l){var d=l[0],h=l[1];return{name:d,description:h.description,type:h.type,defaultValue:h.defaultValue,deprecationReason:h.deprecationReason,extensions:h.extensions&&(0,Ua.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,Ua.default)(r.extensions),astNode:r.astNode}})}function sc(e){return(0,lW.default)(e)&&!Array.isArray(e)}function oI(e){return(0,Cg.default)(e,function(t){return{description:t.description,type:t.type,args:uI(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}})}function uI(e){return(0,z1.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 CW(e){return _u(e.type)&&e.defaultValue===void 0}var B_=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=aI.bind(void 0,r),this._interfaces=iI.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,ur.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:oI(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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInterfaceType"}}]),e}();Be.GraphQLInterfaceType=B_;(0,Tu.default)(B_);var K_=function(){function e(r){this.name=r.name,this.description=r.description,this.resolveType=r.resolveType,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._types=LW.bind(void 0,r),typeof r.name=="string"||(0,fr.default)(0,"Must provide name."),r.resolveType==null||typeof r.resolveType=="function"||(0,fr.default)(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat((0,ur.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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLUnionType"}}]),e}();Be.GraphQLUnionType=K_;(0,Tu.default)(K_);function LW(e){var t=Ig(e.types);return Array.isArray(t)||(0,fr.default)(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),t}var H_=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._values=IW(this.name,r.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=(0,uW.default)(this._values,function(n){return n.name}),typeof r.name=="string"||(0,fr.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 i=this._valueLookup.get(n);if(i===void 0)throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent value: ').concat((0,ur.default)(n)));return i.name},t.parseValue=function(n){if(typeof n!="string"){var i=(0,ur.default)(n);throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Ag(this,i))}var o=this.getValue(n);if(o==null)throw new Gd.GraphQLError('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+Ag(this,n));return o.value},t.parseLiteral=function(n,i){if(n.kind!==fW.Kind.ENUM){var o=(0,Y1.print)(n);throw new Gd.GraphQLError('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(o,".")+Ag(this,o),n)}var s=this.getValue(n.value);if(s==null){var l=(0,Y1.print)(n);throw new Gd.GraphQLError('Value "'.concat(l,'" does not exist in "').concat(this.name,'" enum.')+Ag(this,l),n)}return s.value},t.toConfig=function(){var n,i=(0,z1.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:i,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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLEnumType"}}]),e}();Be.GraphQLEnumType=H_;(0,Tu.default)(H_);function Ag(e,t){var r=e.getValues().map(function(i){return i.name}),n=(0,cW.default)(t,r);return(0,sW.default)("the enum value",n)}function IW(e,t){return sc(t)||(0,fr.default)(0,"".concat(e," values must be an object with value names as keys.")),(0,H1.default)(t).map(function(r){var n=r[0],i=r[1];return sc(i)||(0,fr.default)(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat((0,ur.default)(i),".")),!("isDeprecated"in i)||(0,fr.default)(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:i.value!==void 0?i.value:n,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&(0,Ua.default)(i.extensions),astNode:i.astNode}})}var z_=function(){function e(r){this.name=r.name,this.description=r.description,this.extensions=r.extensions&&(0,Ua.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=uc(r.extensionASTNodes),this._fields=AW.bind(void 0,r),typeof r.name=="string"||(0,fr.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,i=(0,Cg.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:i,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()},ac(e,[{key:yu.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLInputObjectType"}}]),e}();Be.GraphQLInputObjectType=z_;(0,Tu.default)(z_);function AW(e){var t=Ig(e.fields);return sc(t)||(0,fr.default)(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),(0,Cg.default)(t,function(r,n){return!("resolve"in r)||(0,fr.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,Ua.default)(r.extensions),astNode:r.astNode}})}function RW(e){return _u(e.type)&&e.defaultValue===void 0}});var Hd=G(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.isEqualType=W_;Kd.isTypeSubTypeOf=Rg;Kd.doTypesOverlap=jW;var Mn=bt();function W_(e,t){return e===t?!0:(0,Mn.isNonNullType)(e)&&(0,Mn.isNonNullType)(t)||(0,Mn.isListType)(e)&&(0,Mn.isListType)(t)?W_(e.ofType,t.ofType):!1}function Rg(e,t,r){return t===r?!0:(0,Mn.isNonNullType)(r)?(0,Mn.isNonNullType)(t)?Rg(e,t.ofType,r.ofType):!1:(0,Mn.isNonNullType)(t)?Rg(e,t.ofType,r):(0,Mn.isListType)(r)?(0,Mn.isListType)(t)?Rg(e,t.ofType,r.ofType):!1:(0,Mn.isListType)(t)?!1:(0,Mn.isAbstractType)(r)&&((0,Mn.isInterfaceType)(t)||(0,Mn.isObjectType)(t))&&e.isSubType(r,t)}function jW(e,t,r){return t===r?!0:(0,Mn.isAbstractType)(t)?(0,Mn.isAbstractType)(r)?e.getPossibleTypes(t).some(function(n){return e.isSubType(r,n)}):e.isSubType(t,r):(0,Mn.isAbstractType)(r)?e.isSubType(r,t):!1}});var Y_=G(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});jg.default=void 0;var PW=qa(),FW=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[PW.SYMBOL_ITERATOR];if(typeof n=="function"){for(var i=n.call(e),o=[],s,l=0;!(s=i.next()).done;++l)if(o.push(t.call(r,s.value,l)),l>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=[],v=0;v<d;++v)Object.prototype.hasOwnProperty.call(e,v)&&h.push(t.call(r,e[v],v));return h}return[]},MW=FW;jg.default=MW});var J_=G(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=void 0;var qW=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},VW=qW;Pg.default=VW});var Mg=G(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.default=GW;var UW=qa();function Fg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fg=function(r){return typeof r}:Fg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fg(e)}function GW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(v){return v};if(e==null||Fg(e)!=="object")return null;if(Array.isArray(e))return e.map(t);var r=e[UW.SYMBOL_ITERATOR];if(typeof r=="function"){for(var n=r.call(e),i=[],o,s=0;!(o=n.next()).done;++s)i.push(t(o.value,s));return i}var l=e.length;if(typeof l=="number"&&l>=0&&l%1==0){for(var d=[],h=0;h<l;++h){if(!Object.prototype.hasOwnProperty.call(e,h))return null;d.push(t(e[String(h)],h))}return d}return null}});var sI=G(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});qg.default=void 0;var QW=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},BW=QW;qg.default=BW});var Ga=G(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.isSpecifiedScalarType=t4;ti.specifiedScalarTypes=ti.GraphQLID=ti.GraphQLBoolean=ti.GraphQLString=ti.GraphQLFloat=ti.GraphQLInt=void 0;var Vg=Gg(J_()),Ug=Gg(sI()),ba=Gg(jt()),lI=Gg(Ma()),_s=Jt(),zd=hi(),cn=Je(),Wd=bt();function Gg(e){return e&&e.__esModule?e:{default:e}}var Z_=2147483647,$_=-2147483648;function KW(e){var t=Yd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,Ug.default)(r))throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,ba.default)(t)));if(r>Z_||r<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,ba.default)(t));return r}function HW(e){if(!(0,Ug.default)(e))throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,ba.default)(e)));if(e>Z_||e<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(e));return e}var cI=new Wd.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize:KW,parseValue:HW,parseLiteral:function(t){if(t.kind!==_s.Kind.INT)throw new cn.GraphQLError("Int cannot represent non-integer value: ".concat((0,zd.print)(t)),t);var r=parseInt(t.value,10);if(r>Z_||r<$_)throw new cn.GraphQLError("Int cannot represent non 32-bit signed integer value: ".concat(t.value),t);return r}});ti.GraphQLInt=cI;function zW(e){var t=Yd(e);if(typeof t=="boolean")return t?1:0;var r=t;if(typeof t=="string"&&t!==""&&(r=Number(t)),!(0,Vg.default)(r))throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,ba.default)(t)));return r}function WW(e){if(!(0,Vg.default)(e))throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,ba.default)(e)));return e}var fI=new Wd.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize:zW,parseValue:WW,parseLiteral:function(t){if(t.kind!==_s.Kind.FLOAT&&t.kind!==_s.Kind.INT)throw new cn.GraphQLError("Float cannot represent non numeric value: ".concat((0,zd.print)(t)),t);return parseFloat(t.value)}});ti.GraphQLFloat=fI;function Yd(e){if((0,lI.default)(e)){if(typeof e.valueOf=="function"){var t=e.valueOf();if(!(0,lI.default)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function YW(e){var t=Yd(e);if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if((0,Vg.default)(t))return t.toString();throw new cn.GraphQLError("String cannot represent value: ".concat((0,ba.default)(e)))}function JW(e){if(typeof e!="string")throw new cn.GraphQLError("String cannot represent a non string value: ".concat((0,ba.default)(e)));return e}var dI=new Wd.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:YW,parseValue:JW,parseLiteral:function(t){if(t.kind!==_s.Kind.STRING)throw new cn.GraphQLError("String cannot represent a non string value: ".concat((0,zd.print)(t)),t);return t.value}});ti.GraphQLString=dI;function XW(e){var t=Yd(e);if(typeof t=="boolean")return t;if((0,Vg.default)(t))return t!==0;throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,ba.default)(t)))}function ZW(e){if(typeof e!="boolean")throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,ba.default)(e)));return e}var pI=new Wd.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:XW,parseValue:ZW,parseLiteral:function(t){if(t.kind!==_s.Kind.BOOLEAN)throw new cn.GraphQLError("Boolean cannot represent a non boolean value: ".concat((0,zd.print)(t)),t);return t.value}});ti.GraphQLBoolean=pI;function $W(e){var t=Yd(e);if(typeof t=="string")return t;if((0,Ug.default)(t))return String(t);throw new cn.GraphQLError("ID cannot represent value: ".concat((0,ba.default)(e)))}function e4(e){if(typeof e=="string")return e;if((0,Ug.default)(e))return e.toString();throw new cn.GraphQLError("ID cannot represent value: ".concat((0,ba.default)(e)))}var hI=new Wd.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:$W,parseValue:e4,parseLiteral:function(t){if(t.kind!==_s.Kind.STRING&&t.kind!==_s.Kind.INT)throw new cn.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,zd.print)(t),t);return t.value}});ti.GraphQLID=hI;var vI=Object.freeze([dI,cI,fI,pI,hI]);ti.specifiedScalarTypes=vI;function t4(e){return vI.some(function(t){var r=t.name;return e.name===r})}});var Zd=G(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.astFromValue=Xd;var r4=lc(J_()),n4=lc(Ni()),gI=lc(jt()),i4=lc(_n()),a4=lc(Ma()),o4=lc(Mg()),zi=Jt(),u4=Ga(),Jd=bt();function lc(e){return e&&e.__esModule?e:{default:e}}function Xd(e,t){if((0,Jd.isNonNullType)(t)){var r=Xd(e,t.ofType);return(r==null?void 0:r.kind)===zi.Kind.NULL?null:r}if(e===null)return{kind:zi.Kind.NULL};if(e===void 0)return null;if((0,Jd.isListType)(t)){var n=t.ofType,i=(0,o4.default)(e);if(i!=null){for(var o=[],s=0;s<i.length;s++){var l=i[s],d=Xd(l,n);d!=null&&o.push(d)}return{kind:zi.Kind.LIST,values:o}}return Xd(e,n)}if((0,Jd.isInputObjectType)(t)){if(!(0,a4.default)(e))return null;for(var h=[],v=0,y=(0,n4.default)(t.getFields());v<y.length;v++){var b=y[v],D=Xd(e[b.name],b.type);D&&h.push({kind:zi.Kind.OBJECT_FIELD,name:{kind:zi.Kind.NAME,value:b.name},value:D})}return{kind:zi.Kind.OBJECT,fields:h}}if((0,Jd.isLeafType)(t)){var _=t.serialize(e);if(_==null)return null;if(typeof _=="boolean")return{kind:zi.Kind.BOOLEAN,value:_};if(typeof _=="number"&&(0,r4.default)(_)){var k=String(_);return mI.test(k)?{kind:zi.Kind.INT,value:k}:{kind:zi.Kind.FLOAT,value:k}}if(typeof _=="string")return(0,Jd.isEnumType)(t)?{kind:zi.Kind.ENUM,value:_}:t===u4.GraphQLID&&mI.test(_)?{kind:zi.Kind.INT,value:_}:{kind:zi.Kind.STRING,value:_};throw new TypeError("Cannot convert value to AST: ".concat((0,gI.default)(_),"."))}(0,i4.default)(0,"Unexpected input type: "+(0,gI.default)(t))}var mI=/^-?(?:0|[1-9][0-9]*)$/});var vi=G(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.isIntrospectionType=v4;Gt.introspectionTypes=Gt.TypeNameMetaFieldDef=Gt.TypeMetaFieldDef=Gt.SchemaMetaFieldDef=Gt.__TypeKind=Gt.TypeKind=Gt.__EnumValue=Gt.__InputValue=Gt.__Field=Gt.__Type=Gt.__DirectiveLocation=Gt.__Directive=Gt.__Schema=void 0;var tE=rE(Ni()),s4=rE(jt()),l4=rE(_n()),c4=hi(),Xr=$l(),f4=Zd(),$t=Ga(),Pe=bt();function rE(e){return e&&e.__esModule?e:{default:e}}var nE=new Pe.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:$t.GraphQLString,resolve:function(r){return r.description}},types:{description:"A list of all types supported by this server.",type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi))),resolve:function(r){return(0,tE.default)(r.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.getQueryType()}},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Wi,resolve:function(r){return r.getMutationType()}},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Wi,resolve:function(r){return r.getSubscriptionType()}},directives:{description:"A list of all directives supported by this server.",type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(iE))),resolve:function(r){return r.getDirectives()}}}}});Gt.__Schema=nE;var iE=new Pe.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 Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull(aE))),resolve:function(r){return r.locations}},args:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull($d))),resolve:function(r){return r.args}}}}});Gt.__Directive=iE;var aE=new Pe.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:Xr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Xr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Xr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Xr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Xr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Xr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Xr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Xr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Xr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Xr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Xr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Xr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Xr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Xr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Xr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Xr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Xr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Xr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Xr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Gt.__DirectiveLocation=aE;var Wi=new Pe.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 Pe.GraphQLNonNull(sE),resolve:function(r){if((0,Pe.isScalarType)(r))return En.SCALAR;if((0,Pe.isObjectType)(r))return En.OBJECT;if((0,Pe.isInterfaceType)(r))return En.INTERFACE;if((0,Pe.isUnionType)(r))return En.UNION;if((0,Pe.isEnumType)(r))return En.ENUM;if((0,Pe.isInputObjectType)(r))return En.INPUT_OBJECT;if((0,Pe.isListType)(r))return En.LIST;if((0,Pe.isNonNullType)(r))return En.NON_NULL;(0,l4.default)(0,'Unexpected type: "'.concat((0,s4.default)(r),'".'))}},name:{type:$t.GraphQLString,resolve:function(r){return r.name!==void 0?r.name:void 0}},description:{type:$t.GraphQLString,resolve:function(r){return r.description!==void 0?r.description:void 0}},specifiedByUrl:{type:$t.GraphQLString,resolve:function(r){return r.specifiedByUrl!==void 0?r.specifiedByUrl:void 0}},fields:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(oE)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isObjectType)(r)||(0,Pe.isInterfaceType)(r)){var o=(0,tE.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},interfaces:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi)),resolve:function(r){if((0,Pe.isObjectType)(r)||(0,Pe.isInterfaceType)(r))return r.getInterfaces()}},possibleTypes:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(Wi)),resolve:function(r,n,i,o){var s=o.schema;if((0,Pe.isAbstractType)(r))return s.getPossibleTypes(r)}},enumValues:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull(uE)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isEnumType)(r)){var o=r.getValues();return i?o:o.filter(function(s){return s.deprecationReason==null})}}},inputFields:{type:new Pe.GraphQLList(new Pe.GraphQLNonNull($d)),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;if((0,Pe.isInputObjectType)(r)){var o=(0,tE.default)(r.getFields());return i?o:o.filter(function(s){return s.deprecationReason==null})}}},ofType:{type:Wi,resolve:function(r){return r.ofType!==void 0?r.ofType:void 0}}}}});Gt.__Type=Wi;var oE=new Pe.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 Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},args:{type:new Pe.GraphQLNonNull(new Pe.GraphQLList(new Pe.GraphQLNonNull($d))),args:{includeDeprecated:{type:$t.GraphQLBoolean,defaultValue:!1}},resolve:function(r,n){var i=n.includeDeprecated;return i?r.args:r.args.filter(function(o){return o.deprecationReason==null})}},type:{type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.type}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__Field=oE;var $d=new Pe.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 Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},type:{type:new Pe.GraphQLNonNull(Wi),resolve:function(r){return r.type}},defaultValue:{type:$t.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve:function(r){var n=r.type,i=r.defaultValue,o=(0,f4.astFromValue)(i,n);return o?(0,c4.print)(o):null}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__InputValue=$d;var uE=new Pe.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 Pe.GraphQLNonNull($t.GraphQLString),resolve:function(r){return r.name}},description:{type:$t.GraphQLString,resolve:function(r){return r.description}},isDeprecated:{type:new Pe.GraphQLNonNull($t.GraphQLBoolean),resolve:function(r){return r.deprecationReason!=null}},deprecationReason:{type:$t.GraphQLString,resolve:function(r){return r.deprecationReason}}}}});Gt.__EnumValue=uE;var En=Object.freeze({SCALAR:"SCALAR",OBJECT:"OBJECT",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",INPUT_OBJECT:"INPUT_OBJECT",LIST:"LIST",NON_NULL:"NON_NULL"});Gt.TypeKind=En;var sE=new Pe.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:En.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:En.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:En.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:En.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:En.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:En.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:En.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:En.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Gt.__TypeKind=sE;var d4={name:"__schema",type:new Pe.GraphQLNonNull(nE),description:"Access the current type schema of this server.",args:[],resolve:function(t,r,n,i){var o=i.schema;return o},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.SchemaMetaFieldDef=d4;var p4={name:"__type",type:Wi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Pe.GraphQLNonNull($t.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:void 0,astNode:void 0}],resolve:function(t,r,n,i){var o=r.name,s=i.schema;return s.getType(o)},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.TypeMetaFieldDef=p4;var h4={name:"__typename",type:new Pe.GraphQLNonNull($t.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:function(t,r,n,i){var o=i.parentType;return o.name},isDeprecated:!1,deprecationReason:void 0,extensions:void 0,astNode:void 0};Gt.TypeNameMetaFieldDef=h4;var yI=Object.freeze([nE,iE,aE,Wi,oE,$d,uE,sE]);Gt.introspectionTypes=yI;function v4(e){return yI.some(function(t){var r=t.name;return e.name===r})}});var gi=G(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.isDirective=_I;Zr.assertDirective=S4;Zr.isSpecifiedDirective=k4;Zr.specifiedDirectives=Zr.GraphQLSpecifiedByDirective=Zr.GraphQLDeprecatedDirective=Zr.DEFAULT_DEPRECATION_REASON=Zr.GraphQLSkipDirective=Zr.GraphQLIncludeDirective=Zr.GraphQLDirective=void 0;var g4=Es(ic()),m4=qa(),y4=Es(jt()),bI=Es(Ng()),lE=Es(Hi()),b4=Es(jd()),T4=Es(Ma()),_4=Es(dg()),Ta=$l(),Qg=Ga(),Bg=bt();function Es(e){return e&&e.__esModule?e:{default:e}}function TI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function E4(e,t,r){return t&&TI(e.prototype,t),r&&TI(e,r),e}function _I(e){return(0,b4.default)(e,Ss)}function S4(e){if(!_I(e))throw new Error("Expected ".concat((0,y4.default)(e)," to be a GraphQL directive."));return e}var Ss=function(){function e(r){var n,i;this.name=r.name,this.description=r.description,this.locations=r.locations,this.isRepeatable=(n=r.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=r.extensions&&(0,bI.default)(r.extensions),this.astNode=r.astNode,r.name||(0,lE.default)(0,"Directive must be named."),Array.isArray(r.locations)||(0,lE.default)(0,"@".concat(r.name," locations must be an Array."));var o=(i=r.args)!==null&&i!==void 0?i:{};(0,T4.default)(o)&&!Array.isArray(o)||(0,lE.default)(0,"@".concat(r.name," args must be an object with argument names as keys.")),this.args=(0,g4.default)(o).map(function(s){var l=s[0],d=s[1];return{name:l,description:d.description,type:d.type,defaultValue:d.defaultValue,deprecationReason:d.deprecationReason,extensions:d.extensions&&(0,bI.default)(d.extensions),astNode:d.astNode}})}var t=e.prototype;return t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Bg.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},t.toString=function(){return"@"+this.name},t.toJSON=function(){return this.toString()},E4(e,[{key:m4.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLDirective"}}]),e}();Zr.GraphQLDirective=Ss;(0,_4.default)(Ss);var EI=new Ss({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ta.DirectiveLocation.FIELD,Ta.DirectiveLocation.FRAGMENT_SPREAD,Ta.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Bg.GraphQLNonNull(Qg.GraphQLBoolean),description:"Included when true."}}});Zr.GraphQLIncludeDirective=EI;var SI=new Ss({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ta.DirectiveLocation.FIELD,Ta.DirectiveLocation.FRAGMENT_SPREAD,Ta.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Bg.GraphQLNonNull(Qg.GraphQLBoolean),description:"Skipped when true."}}});Zr.GraphQLSkipDirective=SI;var kI="No longer supported";Zr.DEFAULT_DEPRECATION_REASON=kI;var OI=new Ss({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ta.DirectiveLocation.FIELD_DEFINITION,Ta.DirectiveLocation.ARGUMENT_DEFINITION,Ta.DirectiveLocation.INPUT_FIELD_DEFINITION,Ta.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Qg.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:kI}}});Zr.GraphQLDeprecatedDirective=OI;var wI=new Ss({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[Ta.DirectiveLocation.SCALAR],args:{url:{type:new Bg.GraphQLNonNull(Qg.GraphQLString),description:"The URL that specifies the behaviour of this scalar."}}});Zr.GraphQLSpecifiedByDirective=wI;var NI=Object.freeze([EI,SI,OI,wI]);Zr.specifiedDirectives=NI;function k4(e){return NI.some(function(t){var r=t.name;return r===e.name})}});var ks=G(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.isSchema=CI;cc.assertSchema=A4;cc.GraphQLSchema=void 0;var O4=ku(nc()),w4=ku(Y_()),cE=ku(Ni()),N4=qa(),fE=ku(jt()),D4=ku(Ng()),Kg=ku(Hi()),x4=ku(jd()),C4=ku(Ma()),L4=vi(),DI=gi(),_a=bt();function ku(e){return e&&e.__esModule?e:{default:e}}function xI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I4(e,t,r){return t&&xI(e.prototype,t),r&&xI(e,r),e}function CI(e){return(0,x4.default)(e,LI)}function A4(e){if(!CI(e))throw new Error("Expected ".concat((0,fE.default)(e)," to be a GraphQL schema."));return e}var LI=function(){function e(r){var n;this.__validationErrors=r.assumeValid===!0?[]:void 0,(0,C4.default)(r)||(0,Kg.default)(0,"Must provide configuration object."),!r.types||Array.isArray(r.types)||(0,Kg.default)(0,'"types" must be Array if provided but got: '.concat((0,fE.default)(r.types),".")),!r.directives||Array.isArray(r.directives)||(0,Kg.default)(0,'"directives" must be Array if provided but got: '+"".concat((0,fE.default)(r.directives),".")),this.description=r.description,this.extensions=r.extensions&&(0,D4.default)(r.extensions),this.astNode=r.astNode,this.extensionASTNodes=r.extensionASTNodes,this._queryType=r.query,this._mutationType=r.mutation,this._subscriptionType=r.subscription,this._directives=(n=r.directives)!==null&&n!==void 0?n:DI.specifiedDirectives;var i=new Set(r.types);if(r.types!=null)for(var o=0,s=r.types;o<s.length;o++){var l=s[o];i.delete(l),Ea(l,i)}this._queryType!=null&&Ea(this._queryType,i),this._mutationType!=null&&Ea(this._mutationType,i),this._subscriptionType!=null&&Ea(this._subscriptionType,i);for(var d=0,h=this._directives;d<h.length;d++){var v=h[d];if((0,DI.isDirective)(v))for(var y=0,b=v.args;y<b.length;y++){var D=b[y];Ea(D.type,i)}}Ea(L4.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(var _=0,k=(0,w4.default)(i);_<k.length;_++){var T=k[_];if(T!=null){var S=T.name;if(S||(0,Kg.default)(0,"One of the provided types for building the Schema is missing a name."),this._typeMap[S]!==void 0)throw new Error('Schema must contain uniquely named types but contains multiple types named "'.concat(S,'".'));if(this._typeMap[S]=T,(0,_a.isInterfaceType)(T))for(var m=0,w=T.getInterfaces();m<w.length;m++){var x=w[m];if((0,_a.isInterfaceType)(x)){var L=this._implementationsMap[x.name];L===void 0&&(L=this._implementationsMap[x.name]={objects:[],interfaces:[]}),L.interfaces.push(T)}}else if((0,_a.isObjectType)(T))for(var O=0,R=T.getInterfaces();O<R.length;O++){var M=R[O];if((0,_a.isInterfaceType)(M)){var q=this._implementationsMap[M.name];q===void 0&&(q=this._implementationsMap[M.name]={objects:[],interfaces:[]}),q.objects.push(T)}}}}}var t=e.prototype;return t.getQueryType=function(){return this._queryType},t.getMutationType=function(){return this._mutationType},t.getSubscriptionType=function(){return this._subscriptionType},t.getTypeMap=function(){return this._typeMap},t.getType=function(n){return this.getTypeMap()[n]},t.getPossibleTypes=function(n){return(0,_a.isUnionType)(n)?n.getTypes():this.getImplementations(n).objects},t.getImplementations=function(n){var i=this._implementationsMap[n.name];return i!=null?i:{objects:[],interfaces:[]}},t.isPossibleType=function(n,i){return this.isSubType(n,i)},t.isSubType=function(n,i){var o=this._subTypeMap[n.name];if(o===void 0){if(o=Object.create(null),(0,_a.isUnionType)(n))for(var s=0,l=n.getTypes();s<l.length;s++){var d=l[s];o[d.name]=!0}else{for(var h=this.getImplementations(n),v=0,y=h.objects;v<y.length;v++){var b=y[v];o[b.name]=!0}for(var D=0,_=h.interfaces;D<_.length;D++){var k=_[D];o[k.name]=!0}}this._subTypeMap[n.name]=o}return o[i.name]!==void 0},t.getDirectives=function(){return this._directives},t.getDirective=function(n){return(0,O4.default)(this.getDirectives(),function(i){return i.name===n})},t.toConfig=function(){var n;return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:(0,cE.default)(this.getTypeMap()),directives:this.getDirectives().slice(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[],assumeValid:this.__validationErrors!==void 0}},I4(e,[{key:N4.SYMBOL_TO_STRING_TAG,get:function(){return"GraphQLSchema"}}]),e}();cc.GraphQLSchema=LI;function Ea(e,t){var r=(0,_a.getNamedType)(e);if(!t.has(r)){if(t.add(r),(0,_a.isUnionType)(r))for(var n=0,i=r.getTypes();n<i.length;n++){var o=i[n];Ea(o,t)}else if((0,_a.isObjectType)(r)||(0,_a.isInterfaceType)(r)){for(var s=0,l=r.getInterfaces();s<l.length;s++){var d=l[s];Ea(d,t)}for(var h=0,v=(0,cE.default)(r.getFields());h<v.length;h++){var y=v[h];Ea(y.type,t);for(var b=0,D=y.args;b<D.length;b++){var _=D[b];Ea(_.type,t)}}}else if((0,_a.isInputObjectType)(r))for(var k=0,T=(0,cE.default)(r.getFields());k<T.length;k++){var S=T[k];Ea(S.type,t)}}return t}});var rp=G(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.validateSchema=jI;Hg.assertValidSchema=q4;var II=dE(nc()),ep=dE(Ni()),qn=dE(jt()),R4=Je(),j4=qd(),P4=S_(),AI=Hd(),F4=ks(),M4=vi(),RI=gi(),Cr=bt();function dE(e){return e&&e.__esModule?e:{default:e}}function jI(e){if((0,F4.assertSchema)(e),e.__validationErrors)return e.__validationErrors;var t=new V4(e);U4(t),G4(t),Q4(t);var r=t.getErrors();return e.__validationErrors=r,r}function q4(e){var t=jI(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(`
|
|
|
|
`))}var V4=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(n,i){var o=Array.isArray(i)?i.filter(Boolean):i;this.addError(new R4.GraphQLError(n,o))},t.addError=function(n){this._errors.push(n)},t.getErrors=function(){return this._errors},e}();function U4(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Cr.isObjectType)(r)){var n;e.reportError("Query root type must be Object type, it cannot be ".concat((0,qn.default)(r),"."),(n=pE(t,"query"))!==null&&n!==void 0?n:r.astNode)}var i=t.getMutationType();if(i&&!(0,Cr.isObjectType)(i)){var o;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(i),"."),(o=pE(t,"mutation"))!==null&&o!==void 0?o:i.astNode)}var s=t.getSubscriptionType();if(s&&!(0,Cr.isObjectType)(s)){var l;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,qn.default)(s),"."),(l=pE(t,"subscription"))!==null&&l!==void 0?l:s.astNode)}}function pE(e,t){for(var r=hE(e,function(o){return o.operationTypes}),n=0;n<r.length;n++){var i=r[n];if(i.operation===t)return i.type}}function G4(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var n=r[t];if(!(0,RI.isDirective)(n)){e.reportError("Expected directive but got: ".concat((0,qn.default)(n),"."),n==null?void 0:n.astNode);continue}Os(e,n);for(var i=0,o=n.args;i<o.length;i++){var s=o[i];if(Os(e,s),(0,Cr.isInputType)(s.type)||e.reportError("The type of @".concat(n.name,"(").concat(s.name,":) must be Input Type ")+"but got: ".concat((0,qn.default)(s.type),"."),s.astNode),(0,Cr.isRequiredArgument)(s)&&s.deprecationReason!=null){var l;e.reportError("Required argument @".concat(n.name,"(").concat(s.name,":) cannot be deprecated."),[vE(s.astNode),(l=s.astNode)===null||l===void 0?void 0:l.type])}}}}function Os(e,t){var r=(0,P4.isValidNameError)(t.name);r&&e.addError((0,j4.locatedError)(r,t.astNode))}function Q4(e){for(var t=Y4(e),r=e.schema.getTypeMap(),n=0,i=(0,ep.default)(r);n<i.length;n++){var o=i[n];if(!(0,Cr.isNamedType)(o)){e.reportError("Expected GraphQL named type but got: ".concat((0,qn.default)(o),"."),o.astNode);continue}(0,M4.isIntrospectionType)(o)||Os(e,o),(0,Cr.isObjectType)(o)||(0,Cr.isInterfaceType)(o)?(PI(e,o),FI(e,o)):(0,Cr.isUnionType)(o)?H4(e,o):(0,Cr.isEnumType)(o)?z4(e,o):(0,Cr.isInputObjectType)(o)&&(W4(e,o),t(o))}}function PI(e,t){var r=(0,ep.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),fc(t));for(var n=0;n<r.length;n++){var i=r[n];if(Os(e,i),!(0,Cr.isOutputType)(i.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Output Type ")+"but got: ".concat((0,qn.default)(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}for(var s=0,l=i.args;s<l.length;s++){var d=l[s],h=d.name;if(Os(e,d),!(0,Cr.isInputType)(d.type)){var v;e.reportError("The type of ".concat(t.name,".").concat(i.name,"(").concat(h,":) must be Input ")+"Type but got: ".concat((0,qn.default)(d.type),"."),(v=d.astNode)===null||v===void 0?void 0:v.type)}if((0,Cr.isRequiredArgument)(d)&&d.deprecationReason!=null){var y;e.reportError("Required argument ".concat(t.name,".").concat(i.name,"(").concat(h,":) cannot be deprecated."),[vE(d.astNode),(y=d.astNode)===null||y===void 0?void 0:y.type])}}}}function FI(e,t){for(var r=Object.create(null),n=0,i=t.getInterfaces();n<i.length;n++){var o=i[n];if(!(0,Cr.isInterfaceType)(o)){e.reportError("Type ".concat((0,qn.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,qn.default)(o),"."),tp(t,o));continue}if(t===o){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),tp(t,o));continue}if(r[o.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(o.name," once."),tp(t,o));continue}r[o.name]=!0,K4(e,t,o),B4(e,t,o)}}function B4(e,t,r){for(var n=t.getFields(),i=0,o=(0,ep.default)(r.getFields());i<o.length;i++){var s=o[i],l=s.name,d=n[l];if(!d){e.reportError("Interface field ".concat(r.name,".").concat(l," expected but ").concat(t.name," does not provide it."),[s.astNode].concat(fc(t)));continue}if(!(0,AI.isTypeSubTypeOf)(e.schema,d.type,s.type)){var h,v;e.reportError("Interface field ".concat(r.name,".").concat(l," expects type ")+"".concat((0,qn.default)(s.type)," but ").concat(t.name,".").concat(l," ")+"is type ".concat((0,qn.default)(d.type),"."),[(h=s.astNode)===null||h===void 0?void 0:h.type,(v=d.astNode)===null||v===void 0?void 0:v.type])}for(var y=function(w,x){var L=x[w],O=L.name,R=(0,II.default)(d.args,function(z){return z.name===O});if(!R)return e.reportError("Interface field argument ".concat(r.name,".").concat(l,"(").concat(O,":) expected but ").concat(t.name,".").concat(l," does not provide it."),[L.astNode,d.astNode]),"continue";if(!(0,AI.isEqualType)(L.type,R.type)){var M,q;e.reportError("Interface field argument ".concat(r.name,".").concat(l,"(").concat(O,":) ")+"expects type ".concat((0,qn.default)(L.type)," but ")+"".concat(t.name,".").concat(l,"(").concat(O,":) is type ")+"".concat((0,qn.default)(R.type),"."),[(M=L.astNode)===null||M===void 0?void 0:M.type,(q=R.astNode)===null||q===void 0?void 0:q.type])}},b=0,D=s.args;b<D.length;b++)var _=y(b,D);for(var k=function(w,x){var L=x[w],O=L.name,R=(0,II.default)(s.args,function(M){return M.name===O});!R&&(0,Cr.isRequiredArgument)(L)&&e.reportError("Object field ".concat(t.name,".").concat(l," includes required argument ").concat(O," that is missing from the Interface field ").concat(r.name,".").concat(l,"."),[L.astNode,s.astNode])},T=0,S=d.args;T<S.length;T++)k(T,S)}}function K4(e,t,r){for(var n=t.getInterfaces(),i=0,o=r.getInterfaces();i<o.length;i++){var s=o[i];n.indexOf(s)===-1&&e.reportError(s===t?"Type ".concat(t.name," cannot implement ").concat(r.name," because it would create a circular reference."):"Type ".concat(t.name," must implement ").concat(s.name," because it is implemented by ").concat(r.name,"."),[].concat(tp(r,s),tp(t,r)))}}function H4(e,t){var r=t.getTypes();r.length===0&&e.reportError("Union type ".concat(t.name," must define one or more member types."),fc(t));for(var n=Object.create(null),i=0;i<r.length;i++){var o=r[i];if(n[o.name]){e.reportError("Union type ".concat(t.name," can only include type ").concat(o.name," once."),MI(t,o.name));continue}n[o.name]=!0,(0,Cr.isObjectType)(o)||e.reportError("Union type ".concat(t.name," can only include Object types, ")+"it cannot include ".concat((0,qn.default)(o),"."),MI(t,String(o)))}}function z4(e,t){var r=t.getValues();r.length===0&&e.reportError("Enum type ".concat(t.name," must define one or more values."),fc(t));for(var n=0;n<r.length;n++){var i=r[n],o=i.name;Os(e,i),(o==="true"||o==="false"||o==="null")&&e.reportError("Enum type ".concat(t.name," cannot include value: ").concat(o,"."),i.astNode)}}function W4(e,t){var r=(0,ep.default)(t.getFields());r.length===0&&e.reportError("Input Object type ".concat(t.name," must define one or more fields."),fc(t));for(var n=0;n<r.length;n++){var i=r[n];if(Os(e,i),!(0,Cr.isInputType)(i.type)){var o;e.reportError("The type of ".concat(t.name,".").concat(i.name," must be Input Type ")+"but got: ".concat((0,qn.default)(i.type),"."),(o=i.astNode)===null||o===void 0?void 0:o.type)}if((0,Cr.isRequiredInputField)(i)&&i.deprecationReason!=null){var s;e.reportError("Required input field ".concat(t.name,".").concat(i.name," cannot be deprecated."),[vE(i.astNode),(s=i.astNode)===null||s===void 0?void 0:s.type])}}}function Y4(e){var t=Object.create(null),r=[],n=Object.create(null);return i;function i(o){if(!t[o.name]){t[o.name]=!0,n[o.name]=r.length;for(var s=(0,ep.default)(o.getFields()),l=0;l<s.length;l++){var d=s[l];if((0,Cr.isNonNullType)(d.type)&&(0,Cr.isInputObjectType)(d.type.ofType)){var h=d.type.ofType,v=n[h.name];if(r.push(d),v===void 0)i(h);else{var y=r.slice(v),b=y.map(function(D){return D.name}).join(".");e.reportError('Cannot reference Input Object "'.concat(h.name,'" within itself through a series of non-null fields: "').concat(b,'".'),y.map(function(D){return D.astNode}))}r.pop()}}n[o.name]=void 0}}}function fc(e){var t=e.astNode,r=e.extensionASTNodes;return t?r?[t].concat(r):[t]:r!=null?r:[]}function hE(e,t){for(var r=[],n=0,i=fc(e);n<i.length;n++){var o,s=i[n];r=r.concat((o=t(s))!==null&&o!==void 0?o:[])}return r}function tp(e,t){return hE(e,function(r){return r.interfaces}).filter(function(r){return r.name.value===t.name})}function MI(e,t){return hE(e,function(r){return r.types}).filter(function(r){return r.name.value===t})}function vE(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(function(r){return r.name.value===RI.GraphQLDeprecatedDirective.name})}});var Qa=G(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.typeFromAST=mE;var J4=VI(jt()),X4=VI(_n()),gE=Jt(),qI=bt();function VI(e){return e&&e.__esModule?e:{default:e}}function mE(e,t){var r;if(t.kind===gE.Kind.LIST_TYPE)return r=mE(e,t.type),r&&new qI.GraphQLList(r);if(t.kind===gE.Kind.NON_NULL_TYPE)return r=mE(e,t.type),r&&new qI.GraphQLNonNull(r);if(t.kind===gE.Kind.NAMED_TYPE)return e.getType(t.name.value);(0,X4.default)(0,"Unexpected type node: "+(0,J4.default)(t))}});var zg=G(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.visitWithTypeInfo=n5;np.TypeInfo=void 0;var Z4=e5(nc()),Sr=Jt(),$4=Xl(),UI=hu(),kr=bt(),dc=vi(),GI=Qa();function e5(e){return e&&e.__esModule?e:{default:e}}var t5=function(){function e(r,n,i){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:r5,i&&((0,kr.isInputType)(i)&&this._inputTypeStack.push(i),(0,kr.isCompositeType)(i)&&this._parentTypeStack.push(i),(0,kr.isOutputType)(i)&&this._typeStack.push(i))}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 i=this._schema;switch(n.kind){case Sr.Kind.SELECTION_SET:{var o=(0,kr.getNamedType)(this.getType());this._parentTypeStack.push((0,kr.isCompositeType)(o)?o:void 0);break}case Sr.Kind.FIELD:{var s=this.getParentType(),l,d;s&&(l=this._getFieldDef(i,s,n),l&&(d=l.type)),this._fieldDefStack.push(l),this._typeStack.push((0,kr.isOutputType)(d)?d:void 0);break}case Sr.Kind.DIRECTIVE:this._directive=i.getDirective(n.name.value);break;case Sr.Kind.OPERATION_DEFINITION:{var h;switch(n.operation){case"query":h=i.getQueryType();break;case"mutation":h=i.getMutationType();break;case"subscription":h=i.getSubscriptionType();break}this._typeStack.push((0,kr.isObjectType)(h)?h:void 0);break}case Sr.Kind.INLINE_FRAGMENT:case Sr.Kind.FRAGMENT_DEFINITION:{var v=n.typeCondition,y=v?(0,GI.typeFromAST)(i,v):(0,kr.getNamedType)(this.getType());this._typeStack.push((0,kr.isOutputType)(y)?y:void 0);break}case Sr.Kind.VARIABLE_DEFINITION:{var b=(0,GI.typeFromAST)(i,n.type);this._inputTypeStack.push((0,kr.isInputType)(b)?b:void 0);break}case Sr.Kind.ARGUMENT:{var D,_,k,T=(D=this.getDirective())!==null&&D!==void 0?D:this.getFieldDef();T&&(_=(0,Z4.default)(T.args,function(M){return M.name===n.name.value}),_&&(k=_.type)),this._argument=_,this._defaultValueStack.push(_?_.defaultValue:void 0),this._inputTypeStack.push((0,kr.isInputType)(k)?k:void 0);break}case Sr.Kind.LIST:{var S=(0,kr.getNullableType)(this.getInputType()),m=(0,kr.isListType)(S)?S.ofType:S;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,kr.isInputType)(m)?m:void 0);break}case Sr.Kind.OBJECT_FIELD:{var w=(0,kr.getNamedType)(this.getInputType()),x,L;(0,kr.isInputObjectType)(w)&&(L=w.getFields()[n.name.value],L&&(x=L.type)),this._defaultValueStack.push(L?L.defaultValue:void 0),this._inputTypeStack.push((0,kr.isInputType)(x)?x:void 0);break}case Sr.Kind.ENUM:{var O=(0,kr.getNamedType)(this.getInputType()),R;(0,kr.isEnumType)(O)&&(R=O.getValue(n.value)),this._enumValue=R;break}}},t.leave=function(n){switch(n.kind){case Sr.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Sr.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Sr.Kind.DIRECTIVE:this._directive=null;break;case Sr.Kind.OPERATION_DEFINITION:case Sr.Kind.INLINE_FRAGMENT:case Sr.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Sr.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Sr.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Sr.Kind.LIST:case Sr.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Sr.Kind.ENUM:this._enumValue=null;break}},e}();np.TypeInfo=t5;function r5(e,t,r){var n=r.name.value;if(n===dc.SchemaMetaFieldDef.name&&e.getQueryType()===t)return dc.SchemaMetaFieldDef;if(n===dc.TypeMetaFieldDef.name&&e.getQueryType()===t)return dc.TypeMetaFieldDef;if(n===dc.TypeNameMetaFieldDef.name&&(0,kr.isCompositeType)(t))return dc.TypeNameMetaFieldDef;if((0,kr.isObjectType)(t)||(0,kr.isInterfaceType)(t))return t.getFields()[n]}function n5(e,t){return{enter:function(n){e.enter(n);var i=(0,UI.getVisitFn)(t,n.kind,!1);if(i){var o=i.apply(t,arguments);return o!==void 0&&(e.leave(n),(0,$4.isNode)(o)&&e.enter(o)),o}},leave:function(n){var i=(0,UI.getVisitFn)(t,n.kind,!0),o;return i&&(o=i.apply(t,arguments)),e.leave(n),o}}}});var ws=G(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.isDefinitionNode=i5;Sa.isExecutableDefinitionNode=QI;Sa.isSelectionNode=a5;Sa.isValueNode=o5;Sa.isTypeNode=u5;Sa.isTypeSystemDefinitionNode=BI;Sa.isTypeDefinitionNode=KI;Sa.isTypeSystemExtensionNode=HI;Sa.isTypeExtensionNode=zI;var Dt=Jt();function i5(e){return QI(e)||BI(e)||HI(e)}function QI(e){return e.kind===Dt.Kind.OPERATION_DEFINITION||e.kind===Dt.Kind.FRAGMENT_DEFINITION}function a5(e){return e.kind===Dt.Kind.FIELD||e.kind===Dt.Kind.FRAGMENT_SPREAD||e.kind===Dt.Kind.INLINE_FRAGMENT}function o5(e){return e.kind===Dt.Kind.VARIABLE||e.kind===Dt.Kind.INT||e.kind===Dt.Kind.FLOAT||e.kind===Dt.Kind.STRING||e.kind===Dt.Kind.BOOLEAN||e.kind===Dt.Kind.NULL||e.kind===Dt.Kind.ENUM||e.kind===Dt.Kind.LIST||e.kind===Dt.Kind.OBJECT}function u5(e){return e.kind===Dt.Kind.NAMED_TYPE||e.kind===Dt.Kind.LIST_TYPE||e.kind===Dt.Kind.NON_NULL_TYPE}function BI(e){return e.kind===Dt.Kind.SCHEMA_DEFINITION||KI(e)||e.kind===Dt.Kind.DIRECTIVE_DEFINITION}function KI(e){return e.kind===Dt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Dt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Dt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Dt.Kind.UNION_TYPE_DEFINITION||e.kind===Dt.Kind.ENUM_TYPE_DEFINITION||e.kind===Dt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function HI(e){return e.kind===Dt.Kind.SCHEMA_EXTENSION||zI(e)}function zI(e){return e.kind===Dt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Dt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Dt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Dt.Kind.UNION_TYPE_EXTENSION||e.kind===Dt.Kind.ENUM_TYPE_EXTENSION||e.kind===Dt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var TE=G(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.ExecutableDefinitionsRule=c5;var s5=Je(),WI=Jt(),l5=ws();function c5(e){return{Document:function(r){for(var n=0,i=r.definitions;n<i.length;n++){var o=i[n];if(!(0,l5.isExecutableDefinitionNode)(o)){var s=o.kind===WI.Kind.SCHEMA_DEFINITION||o.kind===WI.Kind.SCHEMA_EXTENSION?"schema":'"'+o.name.value+'"';e.reportError(new s5.GraphQLError("The ".concat(s," definition is not executable."),o))}}return!1}}}});var EE=G(_E=>{"use strict";Object.defineProperty(_E,"__esModule",{value:!0});_E.UniqueOperationNamesRule=d5;var f5=Je();function d5(e){var t=Object.create(null);return{OperationDefinition:function(n){var i=n.name;return i&&(t[i.value]?e.reportError(new f5.GraphQLError('There can be only one operation named "'.concat(i.value,'".'),[t[i.value],i])):t[i.value]=i),!1},FragmentDefinition:function(){return!1}}}});var kE=G(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.LoneAnonymousOperationRule=v5;var p5=Je(),h5=Jt();function v5(e){var t=0;return{Document:function(n){t=n.definitions.filter(function(i){return i.kind===h5.Kind.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new p5.GraphQLError("This anonymous operation must be the only defined operation.",n))}}}});var wE=G(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.SingleFieldSubscriptionsRule=m5;var g5=Je();function m5(e){return{OperationDefinition:function(r){r.operation==="subscription"&&r.selectionSet.selections.length!==1&&e.reportError(new g5.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 xE=G(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.KnownTypeNamesRule=S5;var y5=YI(gu()),b5=YI(mu()),T5=Je(),NE=ws(),_5=Ga(),E5=vi();function YI(e){return e&&e.__esModule?e:{default:e}}function S5(e){for(var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null),i=0,o=e.getDocument().definitions;i<o.length;i++){var s=o[i];(0,NE.isTypeDefinitionNode)(s)&&(n[s.name.value]=!0)}var l=Object.keys(r).concat(Object.keys(n));return{NamedType:function(h,v,y,b,D){var _=h.name.value;if(!r[_]&&!n[_]){var k,T=(k=D[2])!==null&&k!==void 0?k:y,S=T!=null&&O5(T);if(S&&k5(_))return;var m=(0,b5.default)(_,S?JI.concat(l):l);e.reportError(new T5.GraphQLError('Unknown type "'.concat(_,'".')+(0,y5.default)(m),h))}}}}var JI=[].concat(_5.specifiedScalarTypes,E5.introspectionTypes).map(function(e){return e.name});function k5(e){return JI.indexOf(e)!==-1}function O5(e){return!Array.isArray(e)&&((0,NE.isTypeSystemDefinitionNode)(e)||(0,NE.isTypeSystemExtensionNode)(e))}});var LE=G(CE=>{"use strict";Object.defineProperty(CE,"__esModule",{value:!0});CE.FragmentsOnCompositeTypesRule=w5;var XI=Je(),ZI=hi(),$I=bt(),eA=Qa();function w5(e){return{InlineFragment:function(r){var n=r.typeCondition;if(n){var i=(0,eA.typeFromAST)(e.getSchema(),n);if(i&&!(0,$I.isCompositeType)(i)){var o=(0,ZI.print)(n);e.reportError(new XI.GraphQLError('Fragment cannot condition on non composite type "'.concat(o,'".'),n))}}},FragmentDefinition:function(r){var n=(0,eA.typeFromAST)(e.getSchema(),r.typeCondition);if(n&&!(0,$I.isCompositeType)(n)){var i=(0,ZI.print)(r.typeCondition);e.reportError(new XI.GraphQLError('Fragment "'.concat(r.name.value,'" cannot condition on non composite type "').concat(i,'".'),r.typeCondition))}}}}});var AE=G(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.VariablesAreInputTypesRule=L5;var N5=Je(),D5=hi(),x5=bt(),C5=Qa();function L5(e){return{VariableDefinition:function(r){var n=(0,C5.typeFromAST)(e.getSchema(),r.type);if(n&&!(0,x5.isInputType)(n)){var i=r.variable.name.value,o=(0,D5.print)(r.type);e.reportError(new N5.GraphQLError('Variable "$'.concat(i,'" cannot be non-input type "').concat(o,'".'),r.type))}}}}});var jE=G(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.ScalarLeafsRule=A5;var tA=I5(jt()),rA=Je(),nA=bt();function I5(e){return e&&e.__esModule?e:{default:e}}function A5(e){return{Field:function(r){var n=e.getType(),i=r.selectionSet;if(n){if((0,nA.isLeafType)((0,nA.getNamedType)(n))){if(i){var o=r.name.value,s=(0,tA.default)(n);e.reportError(new rA.GraphQLError('Field "'.concat(o,'" must not have a selection since type "').concat(s,'" has no subfields.'),i))}}else if(!i){var l=r.name.value,d=(0,tA.default)(n);e.reportError(new rA.GraphQLError('Field "'.concat(l,'" of type "').concat(d,'" must have a selection of subfields. Did you mean "').concat(l,' { ... }"?'),r))}}}}}});var FE=G(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.FieldsOnCorrectTypeRule=M5;var R5=Wg(Y_()),iA=Wg(gu()),j5=Wg(mu()),P5=Wg(Ud()),F5=Je(),ip=bt();function Wg(e){return e&&e.__esModule?e:{default:e}}function M5(e){return{Field:function(r){var n=e.getParentType();if(n){var i=e.getFieldDef();if(!i){var o=e.getSchema(),s=r.name.value,l=(0,iA.default)("to use an inline fragment on",q5(o,n,s));l===""&&(l=(0,iA.default)(V5(n,s))),e.reportError(new F5.GraphQLError('Cannot query field "'.concat(s,'" on type "').concat(n.name,'".')+l,r))}}}}}function q5(e,t,r){if(!(0,ip.isAbstractType)(t))return[];for(var n=new Set,i=Object.create(null),o=0,s=e.getPossibleTypes(t);o<s.length;o++){var l=s[o];if(!!l.getFields()[r]){n.add(l),i[l.name]=1;for(var d=0,h=l.getInterfaces();d<h.length;d++){var v,y=h[d];!y.getFields()[r]||(n.add(y),i[y.name]=((v=i[y.name])!==null&&v!==void 0?v:0)+1)}}}return(0,R5.default)(n).sort(function(b,D){var _=i[D.name]-i[b.name];return _!==0?_:(0,ip.isInterfaceType)(b)&&e.isSubType(b,D)?-1:(0,ip.isInterfaceType)(D)&&e.isSubType(D,b)?1:(0,P5.default)(b.name,D.name)}).map(function(b){return b.name})}function V5(e,t){if((0,ip.isObjectType)(e)||(0,ip.isInterfaceType)(e)){var r=Object.keys(e.getFields());return(0,j5.default)(t,r)}return[]}});var qE=G(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.UniqueFragmentNamesRule=G5;var U5=Je();function G5(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var i=n.name.value;return t[i]?e.reportError(new U5.GraphQLError('There can be only one fragment named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var UE=G(VE=>{"use strict";Object.defineProperty(VE,"__esModule",{value:!0});VE.KnownFragmentNamesRule=B5;var Q5=Je();function B5(e){return{FragmentSpread:function(r){var n=r.name.value,i=e.getFragment(n);i||e.reportError(new Q5.GraphQLError('Unknown fragment "'.concat(n,'".'),r.name))}}}});var QE=G(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.NoUnusedFragmentsRule=H5;var K5=Je();function H5(e){var t=[],r=[];return{OperationDefinition:function(i){return t.push(i),!1},FragmentDefinition:function(i){return r.push(i),!1},Document:{leave:function(){for(var i=Object.create(null),o=0;o<t.length;o++)for(var s=t[o],l=0,d=e.getRecursivelyReferencedFragments(s);l<d.length;l++){var h=d[l];i[h.name.value]=!0}for(var v=0;v<r.length;v++){var y=r[v],b=y.name.value;i[b]!==!0&&e.reportError(new K5.GraphQLError('Fragment "'.concat(b,'" is never used.'),y))}}}}}});var HE=G(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.PossibleFragmentSpreadsRule=Y5;var Yg=W5(jt()),aA=Je(),BE=bt(),z5=Qa(),oA=Hd();function W5(e){return e&&e.__esModule?e:{default:e}}function Y5(e){return{InlineFragment:function(r){var n=e.getType(),i=e.getParentType();if((0,BE.isCompositeType)(n)&&(0,BE.isCompositeType)(i)&&!(0,oA.doTypesOverlap)(e.getSchema(),n,i)){var o=(0,Yg.default)(i),s=(0,Yg.default)(n);e.reportError(new aA.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,i=J5(e,n),o=e.getParentType();if(i&&o&&!(0,oA.doTypesOverlap)(e.getSchema(),i,o)){var s=(0,Yg.default)(o),l=(0,Yg.default)(i);e.reportError(new aA.GraphQLError('Fragment "'.concat(n,'" cannot be spread here as objects of type "').concat(s,'" can never be of type "').concat(l,'".'),r))}}}}function J5(e,t){var r=e.getFragment(t);if(r){var n=(0,z5.typeFromAST)(e.getSchema(),r.typeCondition);if((0,BE.isCompositeType)(n))return n}}});var WE=G(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.NoFragmentCyclesRule=Z5;var X5=Je();function Z5(e){var t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(s){return i(s),!1}};function i(o){if(!t[o.name.value]){var s=o.name.value;t[s]=!0;var l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){n[s]=r.length;for(var d=0;d<l.length;d++){var h=l[d],v=h.name.value,y=n[v];if(r.push(h),y===void 0){var b=e.getFragment(v);b&&i(b)}else{var D=r.slice(y),_=D.slice(0,-1).map(function(k){return'"'+k.name.value+'"'}).join(", ");e.reportError(new X5.GraphQLError('Cannot spread fragment "'.concat(v,'" within itself')+(_!==""?" via ".concat(_,"."):"."),D))}r.pop()}n[s]=void 0}}}}});var JE=G(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.UniqueVariableNamesRule=e6;var $5=Je();function e6(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var i=n.variable.name.value;t[i]?e.reportError(new $5.GraphQLError('There can be only one variable named "$'.concat(i,'".'),[t[i],n.variable.name])):t[i]=n.variable.name}}}});var ZE=G(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.NoUndefinedVariablesRule=r6;var t6=Je();function r6(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++){var s=i[o],l=s.node,d=l.name.value;t[d]!==!0&&e.reportError(new t6.GraphQLError(n.name?'Variable "$'.concat(d,'" is not defined by operation "').concat(n.name.value,'".'):'Variable "$'.concat(d,'" is not defined.'),[l,n]))}}},VariableDefinition:function(n){t[n.variable.name.value]=!0}}}});var eS=G($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.NoUnusedVariablesRule=i6;var n6=Je();function i6(e){var t=[];return{OperationDefinition:{enter:function(){t=[]},leave:function(n){for(var i=Object.create(null),o=e.getRecursiveVariableUsages(n),s=0;s<o.length;s++){var l=o[s],d=l.node;i[d.name.value]=!0}for(var h=0,v=t;h<v.length;h++){var y=v[h],b=y.variable.name.value;i[b]!==!0&&e.reportError(new n6.GraphQLError(n.name?'Variable "$'.concat(b,'" is never used in operation "').concat(n.name.value,'".'):'Variable "$'.concat(b,'" is never used.'),y))}}},VariableDefinition:function(n){t.push(n)}}}});var rS=G(tS=>{"use strict";Object.defineProperty(tS,"__esModule",{value:!0});tS.KnownDirectivesRule=u6;var a6=lA(jt()),uA=lA(_n()),sA=Je(),sr=Jt(),$r=$l(),o6=gi();function lA(e){return e&&e.__esModule?e:{default:e}}function u6(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():o6.specifiedDirectives,i=0;i<n.length;i++){var o=n[i];t[o.name]=o.locations}for(var s=e.getDocument().definitions,l=0;l<s.length;l++){var d=s[l];d.kind===sr.Kind.DIRECTIVE_DEFINITION&&(t[d.name.value]=d.locations.map(function(h){return h.value}))}return{Directive:function(v,y,b,D,_){var k=v.name.value,T=t[k];if(!T){e.reportError(new sA.GraphQLError('Unknown directive "@'.concat(k,'".'),v));return}var S=s6(_);S&&T.indexOf(S)===-1&&e.reportError(new sA.GraphQLError('Directive "@'.concat(k,'" may not be used on ').concat(S,"."),v))}}}function s6(e){var t=e[e.length-1];switch(!Array.isArray(t)||(0,uA.default)(0),t.kind){case sr.Kind.OPERATION_DEFINITION:return l6(t.operation);case sr.Kind.FIELD:return $r.DirectiveLocation.FIELD;case sr.Kind.FRAGMENT_SPREAD:return $r.DirectiveLocation.FRAGMENT_SPREAD;case sr.Kind.INLINE_FRAGMENT:return $r.DirectiveLocation.INLINE_FRAGMENT;case sr.Kind.FRAGMENT_DEFINITION:return $r.DirectiveLocation.FRAGMENT_DEFINITION;case sr.Kind.VARIABLE_DEFINITION:return $r.DirectiveLocation.VARIABLE_DEFINITION;case sr.Kind.SCHEMA_DEFINITION:case sr.Kind.SCHEMA_EXTENSION:return $r.DirectiveLocation.SCHEMA;case sr.Kind.SCALAR_TYPE_DEFINITION:case sr.Kind.SCALAR_TYPE_EXTENSION:return $r.DirectiveLocation.SCALAR;case sr.Kind.OBJECT_TYPE_DEFINITION:case sr.Kind.OBJECT_TYPE_EXTENSION:return $r.DirectiveLocation.OBJECT;case sr.Kind.FIELD_DEFINITION:return $r.DirectiveLocation.FIELD_DEFINITION;case sr.Kind.INTERFACE_TYPE_DEFINITION:case sr.Kind.INTERFACE_TYPE_EXTENSION:return $r.DirectiveLocation.INTERFACE;case sr.Kind.UNION_TYPE_DEFINITION:case sr.Kind.UNION_TYPE_EXTENSION:return $r.DirectiveLocation.UNION;case sr.Kind.ENUM_TYPE_DEFINITION:case sr.Kind.ENUM_TYPE_EXTENSION:return $r.DirectiveLocation.ENUM;case sr.Kind.ENUM_VALUE_DEFINITION:return $r.DirectiveLocation.ENUM_VALUE;case sr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case sr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return $r.DirectiveLocation.INPUT_OBJECT;case sr.Kind.INPUT_VALUE_DEFINITION:{var r=e[e.length-3];return r.kind===sr.Kind.INPUT_OBJECT_TYPE_DEFINITION?$r.DirectiveLocation.INPUT_FIELD_DEFINITION:$r.DirectiveLocation.ARGUMENT_DEFINITION}}}function l6(e){switch(e){case"query":return $r.DirectiveLocation.QUERY;case"mutation":return $r.DirectiveLocation.MUTATION;case"subscription":return $r.DirectiveLocation.SUBSCRIPTION}(0,uA.default)(0,"Unexpected operation: "+(0,a6.default)(e))}});var aS=G(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.UniqueDirectivesPerLocationRule=d6;var c6=Je(),nS=Jt(),cA=ws(),f6=gi();function d6(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():f6.specifiedDirectives,i=0;i<n.length;i++){var o=n[i];t[o.name]=!o.isRepeatable}for(var s=e.getDocument().definitions,l=0;l<s.length;l++){var d=s[l];d.kind===nS.Kind.DIRECTIVE_DEFINITION&&(t[d.name.value]=!d.repeatable)}var h=Object.create(null),v=Object.create(null);return{enter:function(b){if(b.directives!=null){var D;if(b.kind===nS.Kind.SCHEMA_DEFINITION||b.kind===nS.Kind.SCHEMA_EXTENSION)D=h;else if((0,cA.isTypeDefinitionNode)(b)||(0,cA.isTypeExtensionNode)(b)){var _=b.name.value;D=v[_],D===void 0&&(v[_]=D=Object.create(null))}else D=Object.create(null);for(var k=0,T=b.directives;k<T.length;k++){var S=T[k],m=S.name.value;t[m]&&(D[m]?e.reportError(new c6.GraphQLError('The directive "@'.concat(m,'" can only be used once at this location.'),[D[m],S])):D[m]=S)}}}}}});var oS=G(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.KnownArgumentNamesRule=g6;Jg.KnownArgumentNamesOnDirectivesRule=mA;var fA=hA(gu()),dA=hA(mu()),pA=Je(),p6=Jt(),h6=gi();function hA(e){return e&&e.__esModule?e:{default:e}}function vA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(r),!0).forEach(function(n){v6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g6(e){return gA(gA({},mA(e)),{},{Argument:function(r){var n=e.getArgument(),i=e.getFieldDef(),o=e.getParentType();if(!n&&i&&o){var s=r.name.value,l=i.args.map(function(h){return h.name}),d=(0,dA.default)(s,l);e.reportError(new pA.GraphQLError('Unknown argument "'.concat(s,'" on field "').concat(o.name,".").concat(i.name,'".')+(0,fA.default)(d),r))}}})}function mA(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():h6.specifiedDirectives,i=0;i<n.length;i++){var o=n[i];t[o.name]=o.args.map(function(y){return y.name})}for(var s=e.getDocument().definitions,l=0;l<s.length;l++){var d=s[l];if(d.kind===p6.Kind.DIRECTIVE_DEFINITION){var h,v=(h=d.arguments)!==null&&h!==void 0?h:[];t[d.name.value]=v.map(function(y){return y.name.value})}}return{Directive:function(b){var D=b.name.value,_=t[D];if(b.arguments&&_)for(var k=0,T=b.arguments;k<T.length;k++){var S=T[k],m=S.name.value;if(_.indexOf(m)===-1){var w=(0,dA.default)(m,_);e.reportError(new pA.GraphQLError('Unknown argument "'.concat(m,'" on directive "@').concat(D,'".')+(0,fA.default)(w),S))}}return!1}}}});var sS=G(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.UniqueArgumentNamesRule=y6;var m6=Je();function y6(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var i=n.name.value;return t[i]?e.reportError(new m6.GraphQLError('There can be only one argument named "'.concat(i,'".'),[t[i],n.name])):t[i]=n.name,!1}}}});var cS=G(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.ValuesOfCorrectTypeRule=S6;var b6=op(Ni()),T6=op(vu()),ap=op(jt()),_6=op(gu()),E6=op(mu()),Ns=Je(),Xg=hi(),Ba=bt();function op(e){return e&&e.__esModule?e:{default:e}}function S6(e){return{ListValue:function(r){var n=(0,Ba.getNullableType)(e.getParentInputType());if(!(0,Ba.isListType)(n))return Ds(e,r),!1},ObjectValue:function(r){var n=(0,Ba.getNamedType)(e.getInputType());if(!(0,Ba.isInputObjectType)(n))return Ds(e,r),!1;for(var i=(0,T6.default)(r.fields,function(v){return v.name.value}),o=0,s=(0,b6.default)(n.getFields());o<s.length;o++){var l=s[o],d=i[l.name];if(!d&&(0,Ba.isRequiredInputField)(l)){var h=(0,ap.default)(l.type);e.reportError(new Ns.GraphQLError('Field "'.concat(n.name,".").concat(l.name,'" of required type "').concat(h,'" was not provided.'),r))}}},ObjectField:function(r){var n=(0,Ba.getNamedType)(e.getParentInputType()),i=e.getInputType();if(!i&&(0,Ba.isInputObjectType)(n)){var o=(0,E6.default)(r.name.value,Object.keys(n.getFields()));e.reportError(new Ns.GraphQLError('Field "'.concat(r.name.value,'" is not defined by type "').concat(n.name,'".')+(0,_6.default)(o),r))}},NullValue:function(r){var n=e.getInputType();(0,Ba.isNonNullType)(n)&&e.reportError(new Ns.GraphQLError('Expected value of type "'.concat((0,ap.default)(n),'", found ').concat((0,Xg.print)(r),"."),r))},EnumValue:function(r){return Ds(e,r)},IntValue:function(r){return Ds(e,r)},FloatValue:function(r){return Ds(e,r)},StringValue:function(r){return Ds(e,r)},BooleanValue:function(r){return Ds(e,r)}}}function Ds(e,t){var r=e.getInputType();if(!!r){var n=(0,Ba.getNamedType)(r);if(!(0,Ba.isLeafType)(n)){var i=(0,ap.default)(r);e.reportError(new Ns.GraphQLError('Expected value of type "'.concat(i,'", found ').concat((0,Xg.print)(t),"."),t));return}try{var o=n.parseLiteral(t,void 0);if(o===void 0){var s=(0,ap.default)(r);e.reportError(new Ns.GraphQLError('Expected value of type "'.concat(s,'", found ').concat((0,Xg.print)(t),"."),t))}}catch(d){var l=(0,ap.default)(r);d instanceof Ns.GraphQLError?e.reportError(d):e.reportError(new Ns.GraphQLError('Expected value of type "'.concat(l,'", found ').concat((0,Xg.print)(t),"; ")+d.message,t,void 0,void 0,void 0,d))}}}});var dS=G($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.ProvidedRequiredArgumentsRule=N6;$g.ProvidedRequiredArgumentsOnDirectivesRule=kA;var yA=_A(jt()),Zg=_A(vu()),bA=Je(),TA=Jt(),k6=hi(),O6=gi(),fS=bt();function _A(e){return e&&e.__esModule?e:{default:e}}function EA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(r),!0).forEach(function(n){w6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){return SA(SA({},kA(e)),{},{Field:{leave:function(r){var n,i=e.getFieldDef();if(!i)return!1;for(var o=(n=r.arguments)!==null&&n!==void 0?n:[],s=(0,Zg.default)(o,function(b){return b.name.value}),l=0,d=i.args;l<d.length;l++){var h=d[l],v=s[h.name];if(!v&&(0,fS.isRequiredArgument)(h)){var y=(0,yA.default)(h.type);e.reportError(new bA.GraphQLError('Field "'.concat(i.name,'" argument "').concat(h.name,'" of type "').concat(y,'" is required, but it was not provided.'),r))}}}}})}function kA(e){for(var t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():O6.specifiedDirectives,i=0;i<n.length;i++){var o=n[i];t[o.name]=(0,Zg.default)(o.args.filter(fS.isRequiredArgument),function(y){return y.name})}for(var s=e.getDocument().definitions,l=0;l<s.length;l++){var d=s[l];if(d.kind===TA.Kind.DIRECTIVE_DEFINITION){var h,v=(h=d.arguments)!==null&&h!==void 0?h:[];t[d.name.value]=(0,Zg.default)(v.filter(D6),function(y){return y.name.value})}}return{Directive:{leave:function(b){var D=b.name.value,_=t[D];if(_)for(var k,T=(k=b.arguments)!==null&&k!==void 0?k:[],S=(0,Zg.default)(T,function(R){return R.name.value}),m=0,w=Object.keys(_);m<w.length;m++){var x=w[m];if(!S[x]){var L=_[x].type,O=(0,fS.isType)(L)?(0,yA.default)(L):(0,k6.print)(L);e.reportError(new bA.GraphQLError('Directive "@'.concat(D,'" argument "').concat(x,'" of type "').concat(O,'" is required, but it was not provided.'),b))}}}}}}function D6(e){return e.type.kind===TA.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var hS=G(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.VariablesInAllowedPositionRule=A6;var OA=I6(jt()),x6=Je(),C6=Jt(),wA=bt(),L6=Qa(),NA=Hd();function I6(e){return e&&e.__esModule?e:{default:e}}function A6(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){for(var i=e.getRecursiveVariableUsages(n),o=0;o<i.length;o++){var s=i[o],l=s.node,d=s.type,h=s.defaultValue,v=l.name.value,y=t[v];if(y&&d){var b=e.getSchema(),D=(0,L6.typeFromAST)(b,y.type);if(D&&!R6(b,D,y.defaultValue,d,h)){var _=(0,OA.default)(D),k=(0,OA.default)(d);e.reportError(new x6.GraphQLError('Variable "$'.concat(v,'" of type "').concat(_,'" used in position expecting type "').concat(k,'".'),[y,l]))}}}}},VariableDefinition:function(n){t[n.variable.name.value]=n}}}function R6(e,t,r,n,i){if((0,wA.isNonNullType)(n)&&!(0,wA.isNonNullType)(t)){var o=r!=null&&r.kind!==C6.Kind.NULL,s=i!==void 0;if(!o&&!s)return!1;var l=n.ofType;return(0,NA.isTypeSubTypeOf)(e,t,l)}return(0,NA.isTypeSubTypeOf)(e,t,n)}});var _S=G(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.OverlappingFieldsCanBeMergedRule=M6;var j6=gS(nc()),P6=gS(ic()),DA=gS(jt()),F6=Je(),vS=Jt(),xA=hi(),mi=bt(),CA=Qa();function gS(e){return e&&e.__esModule?e:{default:e}}function LA(e){return Array.isArray(e)?e.map(function(t){var r=t[0],n=t[1];return'subfields "'.concat(r,'" conflict because ')+LA(n)}).join(" and "):e}function M6(e){var t=new K6,r=new Map;return{SelectionSet:function(i){for(var o=q6(e,r,t,e.getParentType(),i),s=0;s<o.length;s++){var l=o[s],d=l[0],h=d[0],v=d[1],y=l[1],b=l[2],D=LA(v);e.reportError(new F6.GraphQLError('Fields "'.concat(h,'" conflict because ').concat(D,". Use different aliases on the fields to fetch both if this was intentional."),y.concat(b)))}}}}function q6(e,t,r,n,i){var o=[],s=rm(e,t,n,i),l=s[0],d=s[1];if(U6(e,o,t,r,l),d.length!==0)for(var h=0;h<d.length;h++){em(e,o,t,r,!1,l,d[h]);for(var v=h+1;v<d.length;v++)tm(e,o,t,r,!1,d[h],d[v])}return o}function em(e,t,r,n,i,o,s){var l=e.getFragment(s);if(!!l){var d=bS(e,r,l),h=d[0],v=d[1];if(o!==h){mS(e,t,r,n,i,o,h);for(var y=0;y<v.length;y++)em(e,t,r,n,i,o,v[y])}}}function tm(e,t,r,n,i,o,s){if(o!==s&&!n.has(o,s,i)){n.add(o,s,i);var l=e.getFragment(o),d=e.getFragment(s);if(!(!l||!d)){var h=bS(e,r,l),v=h[0],y=h[1],b=bS(e,r,d),D=b[0],_=b[1];mS(e,t,r,n,i,v,D);for(var k=0;k<_.length;k++)tm(e,t,r,n,i,o,_[k]);for(var T=0;T<y.length;T++)tm(e,t,r,n,i,y[T],s)}}}function V6(e,t,r,n,i,o,s,l){var d=[],h=rm(e,t,i,o),v=h[0],y=h[1],b=rm(e,t,s,l),D=b[0],_=b[1];if(mS(e,d,t,r,n,v,D),_.length!==0)for(var k=0;k<_.length;k++)em(e,d,t,r,n,v,_[k]);if(y.length!==0)for(var T=0;T<y.length;T++)em(e,d,t,r,n,D,y[T]);for(var S=0;S<y.length;S++)for(var m=0;m<_.length;m++)tm(e,d,t,r,n,y[S],_[m]);return d}function U6(e,t,r,n,i){for(var o=0,s=(0,P6.default)(i);o<s.length;o++){var l=s[o],d=l[0],h=l[1];if(h.length>1)for(var v=0;v<h.length;v++)for(var y=v+1;y<h.length;y++){var b=IA(e,r,n,!1,d,h[v],h[y]);b&&t.push(b)}}}function mS(e,t,r,n,i,o,s){for(var l=0,d=Object.keys(o);l<d.length;l++){var h=d[l],v=s[h];if(v)for(var y=o[h],b=0;b<y.length;b++)for(var D=0;D<v.length;D++){var _=IA(e,r,n,i,h,y[b],v[D]);_&&t.push(_)}}}function IA(e,t,r,n,i,o,s){var l=o[0],d=o[1],h=o[2],v=s[0],y=s[1],b=s[2],D=n||l!==v&&(0,mi.isObjectType)(l)&&(0,mi.isObjectType)(v);if(!D){var _,k,T=d.name.value,S=y.name.value;if(T!==S)return[[i,'"'.concat(T,'" and "').concat(S,'" are different fields')],[d],[y]];var m=(_=d.arguments)!==null&&_!==void 0?_:[],w=(k=y.arguments)!==null&&k!==void 0?k:[];if(!G6(m,w))return[[i,"they have differing arguments"],[d],[y]]}var x=h==null?void 0:h.type,L=b==null?void 0:b.type;if(x&&L&&yS(x,L))return[[i,'they return conflicting types "'.concat((0,DA.default)(x),'" and "').concat((0,DA.default)(L),'"')],[d],[y]];var O=d.selectionSet,R=y.selectionSet;if(O&&R){var M=V6(e,t,r,D,(0,mi.getNamedType)(x),O,(0,mi.getNamedType)(L),R);return B6(M,i,d,y)}}function G6(e,t){return e.length!==t.length?!1:e.every(function(r){var n=(0,j6.default)(t,function(i){return i.name.value===r.name.value});return n?Q6(r.value,n.value):!1})}function Q6(e,t){return(0,xA.print)(e)===(0,xA.print)(t)}function yS(e,t){return(0,mi.isListType)(e)?(0,mi.isListType)(t)?yS(e.ofType,t.ofType):!0:(0,mi.isListType)(t)?!0:(0,mi.isNonNullType)(e)?(0,mi.isNonNullType)(t)?yS(e.ofType,t.ofType):!0:(0,mi.isNonNullType)(t)?!0:(0,mi.isLeafType)(e)||(0,mi.isLeafType)(t)?e!==t:!1}function rm(e,t,r,n){var i=t.get(n);if(!i){var o=Object.create(null),s=Object.create(null);AA(e,r,n,o,s),i=[o,Object.keys(s)],t.set(n,i)}return i}function bS(e,t,r){var n=t.get(r.selectionSet);if(n)return n;var i=(0,CA.typeFromAST)(e.getSchema(),r.typeCondition);return rm(e,t,i,r.selectionSet)}function AA(e,t,r,n,i){for(var o=0,s=r.selections;o<s.length;o++){var l=s[o];switch(l.kind){case vS.Kind.FIELD:{var d=l.name.value,h=void 0;((0,mi.isObjectType)(t)||(0,mi.isInterfaceType)(t))&&(h=t.getFields()[d]);var v=l.alias?l.alias.value:d;n[v]||(n[v]=[]),n[v].push([t,l,h]);break}case vS.Kind.FRAGMENT_SPREAD:i[l.name.value]=!0;break;case vS.Kind.INLINE_FRAGMENT:{var y=l.typeCondition,b=y?(0,CA.typeFromAST)(e.getSchema(),y):t;AA(e,b,l.selectionSet,n,i);break}}}}function B6(e,t,r,n){if(e.length>0)return[[t,e.map(function(i){var o=i[0];return o})],e.reduce(function(i,o){var s=o[1];return i.concat(s)},[r]),e.reduce(function(i,o){var s=o[2];return i.concat(s)},[n])]}var K6=function(){function e(){this._data=Object.create(null)}var t=e.prototype;return t.has=function(n,i,o){var s=this._data[n],l=s&&s[i];return l===void 0?!1:o===!1?l===!1:!0},t.add=function(n,i,o){this._pairSetAdd(n,i,o),this._pairSetAdd(i,n,o)},t._pairSetAdd=function(n,i,o){var s=this._data[n];s||(s=Object.create(null),this._data[n]=s),s[i]=o},e}()});var SS=G(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.UniqueInputFieldNamesRule=z6;var H6=Je();function z6(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(i){var o=i.name.value;r[o]?e.reportError(new H6.GraphQLError('There can be only one input field named "'.concat(o,'".'),[r[o],i.name])):r[o]=i.name}}}});var OS=G(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.LoneSchemaDefinitionRule=W6;var RA=Je();function W6(e){var t,r,n,i=e.getSchema(),o=(t=(r=(n=i==null?void 0:i.astNode)!==null&&n!==void 0?n:i==null?void 0:i.getQueryType())!==null&&r!==void 0?r:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition:function(d){if(o){e.reportError(new RA.GraphQLError("Cannot define a new schema within a schema extension.",d));return}s>0&&e.reportError(new RA.GraphQLError("Must provide only one schema definition.",d)),++s}}}});var NS=G(wS=>{"use strict";Object.defineProperty(wS,"__esModule",{value:!0});wS.UniqueOperationTypesRule=Y6;var jA=Je();function Y6(e){var t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(o){for(var s,l=(s=o.operationTypes)!==null&&s!==void 0?s:[],d=0;d<l.length;d++){var h=l[d],v=h.operation,y=r[v];n[v]?e.reportError(new jA.GraphQLError("Type for ".concat(v," already defined in the schema. It cannot be redefined."),h)):y?e.reportError(new jA.GraphQLError("There can be only one ".concat(v," type in schema."),[y,h])):r[v]=h}return!1}}});var xS=G(DS=>{"use strict";Object.defineProperty(DS,"__esModule",{value:!0});DS.UniqueTypeNamesRule=J6;var PA=Je();function J6(e){var t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(i){var o=i.name.value;if(r!=null&&r.getType(o)){e.reportError(new PA.GraphQLError('Type "'.concat(o,'" already exists in the schema. It cannot also be defined in this type definition.'),i.name));return}return t[o]?e.reportError(new PA.GraphQLError('There can be only one type named "'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}});var LS=G(CS=>{"use strict";Object.defineProperty(CS,"__esModule",{value:!0});CS.UniqueEnumValueNamesRule=Z6;var FA=Je(),X6=bt();function Z6(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var d=(s=o.values)!==null&&s!==void 0?s:[],h=n[l],v=0;v<d.length;v++){var y=d[v],b=y.name.value,D=r[l];(0,X6.isEnumType)(D)&&D.getValue(b)?e.reportError(new FA.GraphQLError('Enum value "'.concat(l,".").concat(b,'" already exists in the schema. It cannot also be defined in this type extension.'),y.name)):h[b]?e.reportError(new FA.GraphQLError('Enum value "'.concat(l,".").concat(b,'" can only be defined once.'),[h[b],y.name])):h[b]=y.name}return!1}}});var RS=G(AS=>{"use strict";Object.defineProperty(AS,"__esModule",{value:!0});AS.UniqueFieldDefinitionNamesRule=$6;var MA=Je(),IS=bt();function $6(e){var t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(o){var s,l=o.name.value;n[l]||(n[l]=Object.create(null));for(var d=(s=o.fields)!==null&&s!==void 0?s:[],h=n[l],v=0;v<d.length;v++){var y=d[v],b=y.name.value;e9(r[l],b)?e.reportError(new MA.GraphQLError('Field "'.concat(l,".").concat(b,'" already exists in the schema. It cannot also be defined in this type extension.'),y.name)):h[b]?e.reportError(new MA.GraphQLError('Field "'.concat(l,".").concat(b,'" can only be defined once.'),[h[b],y.name])):h[b]=y.name}return!1}}function e9(e,t){return(0,IS.isObjectType)(e)||(0,IS.isInterfaceType)(e)||(0,IS.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var PS=G(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.UniqueDirectiveNamesRule=t9;var qA=Je();function t9(e){var t=Object.create(null),r=e.getSchema();return{DirectiveDefinition:function(i){var o=i.name.value;if(r!=null&&r.getDirective(o)){e.reportError(new qA.GraphQLError('Directive "@'.concat(o,'" already exists in the schema. It cannot be redefined.'),i.name));return}return t[o]?e.reportError(new qA.GraphQLError('There can be only one directive named "@'.concat(o,'".'),[t[o],i.name])):t[o]=i.name,!1}}}});var MS=G(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.PossibleTypeExtensionsRule=a9;var VA=nm(jt()),UA=nm(_n()),r9=nm(gu()),n9=nm(mu()),GA=Je(),dr=Jt(),i9=ws(),pc=bt(),Ou;function nm(e){return e&&e.__esModule?e:{default:e}}function hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9(e){for(var t=e.getSchema(),r=Object.create(null),n=0,i=e.getDocument().definitions;n<i.length;n++){var o=i[n];(0,i9.isTypeDefinitionNode)(o)&&(r[o.name.value]=o)}return{ScalarTypeExtension:s,ObjectTypeExtension:s,InterfaceTypeExtension:s,UnionTypeExtension:s,EnumTypeExtension:s,InputObjectTypeExtension:s};function s(l){var d=l.name.value,h=r[d],v=t==null?void 0:t.getType(d),y;if(h?y=o9[h.kind]:v&&(y=u9(v)),y){if(y!==l.kind){var b=s9(l.kind);e.reportError(new GA.GraphQLError("Cannot extend non-".concat(b,' type "').concat(d,'".'),h?[h,l]:l))}}else{var D=Object.keys(r);t&&(D=D.concat(Object.keys(t.getTypeMap())));var _=(0,n9.default)(d,D);e.reportError(new GA.GraphQLError('Cannot extend type "'.concat(d,'" because it is not defined.')+(0,r9.default)(_),l.name))}}}var o9=(Ou={},hc(Ou,dr.Kind.SCALAR_TYPE_DEFINITION,dr.Kind.SCALAR_TYPE_EXTENSION),hc(Ou,dr.Kind.OBJECT_TYPE_DEFINITION,dr.Kind.OBJECT_TYPE_EXTENSION),hc(Ou,dr.Kind.INTERFACE_TYPE_DEFINITION,dr.Kind.INTERFACE_TYPE_EXTENSION),hc(Ou,dr.Kind.UNION_TYPE_DEFINITION,dr.Kind.UNION_TYPE_EXTENSION),hc(Ou,dr.Kind.ENUM_TYPE_DEFINITION,dr.Kind.ENUM_TYPE_EXTENSION),hc(Ou,dr.Kind.INPUT_OBJECT_TYPE_DEFINITION,dr.Kind.INPUT_OBJECT_TYPE_EXTENSION),Ou);function u9(e){if((0,pc.isScalarType)(e))return dr.Kind.SCALAR_TYPE_EXTENSION;if((0,pc.isObjectType)(e))return dr.Kind.OBJECT_TYPE_EXTENSION;if((0,pc.isInterfaceType)(e))return dr.Kind.INTERFACE_TYPE_EXTENSION;if((0,pc.isUnionType)(e))return dr.Kind.UNION_TYPE_EXTENSION;if((0,pc.isEnumType)(e))return dr.Kind.ENUM_TYPE_EXTENSION;if((0,pc.isInputObjectType)(e))return dr.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,UA.default)(0,"Unexpected type: "+(0,VA.default)(e))}function s9(e){switch(e){case dr.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case dr.Kind.OBJECT_TYPE_EXTENSION:return"object";case dr.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case dr.Kind.UNION_TYPE_EXTENSION:return"union";case dr.Kind.ENUM_TYPE_EXTENSION:return"enum";case dr.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}(0,UA.default)(0,"Unexpected kind: "+(0,VA.default)(e))}});var qS=G(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.specifiedSDLRules=vc.specifiedRules=void 0;var l9=TE(),c9=EE(),f9=kE(),d9=wE(),QA=xE(),p9=LE(),h9=AE(),v9=jE(),g9=FE(),m9=qE(),y9=UE(),b9=QE(),T9=HE(),_9=WE(),E9=JE(),S9=ZE(),k9=eS(),BA=rS(),KA=aS(),HA=oS(),zA=sS(),O9=cS(),WA=dS(),w9=hS(),N9=_S(),YA=SS(),D9=OS(),x9=NS(),C9=xS(),L9=LS(),I9=RS(),A9=PS(),R9=MS(),j9=Object.freeze([l9.ExecutableDefinitionsRule,c9.UniqueOperationNamesRule,f9.LoneAnonymousOperationRule,d9.SingleFieldSubscriptionsRule,QA.KnownTypeNamesRule,p9.FragmentsOnCompositeTypesRule,h9.VariablesAreInputTypesRule,v9.ScalarLeafsRule,g9.FieldsOnCorrectTypeRule,m9.UniqueFragmentNamesRule,y9.KnownFragmentNamesRule,b9.NoUnusedFragmentsRule,T9.PossibleFragmentSpreadsRule,_9.NoFragmentCyclesRule,E9.UniqueVariableNamesRule,S9.NoUndefinedVariablesRule,k9.NoUnusedVariablesRule,BA.KnownDirectivesRule,KA.UniqueDirectivesPerLocationRule,HA.KnownArgumentNamesRule,zA.UniqueArgumentNamesRule,O9.ValuesOfCorrectTypeRule,WA.ProvidedRequiredArgumentsRule,w9.VariablesInAllowedPositionRule,N9.OverlappingFieldsCanBeMergedRule,YA.UniqueInputFieldNamesRule]);vc.specifiedRules=j9;var P9=Object.freeze([D9.LoneSchemaDefinitionRule,x9.UniqueOperationTypesRule,C9.UniqueTypeNamesRule,L9.UniqueEnumValueNamesRule,I9.UniqueFieldDefinitionNamesRule,A9.UniqueDirectiveNamesRule,QA.KnownTypeNamesRule,BA.KnownDirectivesRule,KA.UniqueDirectivesPerLocationRule,R9.PossibleTypeExtensionsRule,HA.KnownArgumentNamesOnDirectivesRule,zA.UniqueArgumentNamesRule,YA.UniqueInputFieldNamesRule,WA.ProvidedRequiredArgumentsOnDirectivesRule]);vc.specifiedSDLRules=P9});var US=G(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ValidationContext=wu.SDLValidationContext=wu.ASTValidationContext=void 0;var JA=Jt(),F9=hu(),XA=zg();function ZA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var VS=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 i=this._fragments;return i||(this._fragments=i=this.getDocument().definitions.reduce(function(o,s){return s.kind===JA.Kind.FRAGMENT_DEFINITION&&(o[s.name.value]=s),o},Object.create(null))),i[n]},t.getFragmentSpreads=function(n){var i=this._fragmentSpreads.get(n);if(!i){i=[];for(var o=[n];o.length!==0;)for(var s=o.pop(),l=0,d=s.selections;l<d.length;l++){var h=d[l];h.kind===JA.Kind.FRAGMENT_SPREAD?i.push(h):h.selectionSet&&o.push(h.selectionSet)}this._fragmentSpreads.set(n,i)}return i},t.getRecursivelyReferencedFragments=function(n){var i=this._recursivelyReferencedFragments.get(n);if(!i){i=[];for(var o=Object.create(null),s=[n.selectionSet];s.length!==0;)for(var l=s.pop(),d=0,h=this.getFragmentSpreads(l);d<h.length;d++){var v=h[d],y=v.name.value;if(o[y]!==!0){o[y]=!0;var b=this.getFragment(y);b&&(i.push(b),s.push(b.selectionSet))}}this._recursivelyReferencedFragments.set(n,i)}return i},e}();wu.ASTValidationContext=VS;var M9=function(e){ZA(t,e);function t(n,i,o){var s;return s=e.call(this,n,o)||this,s._schema=i,s}var r=t.prototype;return r.getSchema=function(){return this._schema},t}(VS);wu.SDLValidationContext=M9;var q9=function(e){ZA(t,e);function t(n,i,o,s){var l;return l=e.call(this,i,s)||this,l._schema=n,l._typeInfo=o,l._variableUsages=new Map,l._recursiveVariableUsages=new Map,l}var r=t.prototype;return r.getSchema=function(){return this._schema},r.getVariableUsages=function(i){var o=this._variableUsages.get(i);if(!o){var s=[],l=new XA.TypeInfo(this._schema);(0,F9.visit)(i,(0,XA.visitWithTypeInfo)(l,{VariableDefinition:function(){return!1},Variable:function(h){s.push({node:h,type:l.getInputType(),defaultValue:l.getDefaultValue()})}})),o=s,this._variableUsages.set(i,o)}return o},r.getRecursiveVariableUsages=function(i){var o=this._recursiveVariableUsages.get(i);if(!o){o=this.getVariableUsages(i);for(var s=0,l=this.getRecursivelyReferencedFragments(i);s<l.length;s++){var d=l[s];o=o.concat(this.getVariableUsages(d))}this._recursiveVariableUsages.set(i,o)}return o},r.getType=function(){return this._typeInfo.getType()},r.getParentType=function(){return this._typeInfo.getParentType()},r.getInputType=function(){return this._typeInfo.getInputType()},r.getParentInputType=function(){return this._typeInfo.getParentInputType()},r.getFieldDef=function(){return this._typeInfo.getFieldDef()},r.getDirective=function(){return this._typeInfo.getDirective()},r.getArgument=function(){return this._typeInfo.getArgument()},r.getEnumValue=function(){return this._typeInfo.getEnumValue()},t}(VS);wu.ValidationContext=q9});var mc=G(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.validate=B9;gc.validateSDL=GS;gc.assertValidSDL=K9;gc.assertValidSDLExtension=H9;var V9=Q9(Hi()),U9=Je(),im=hu(),G9=rp(),$A=zg(),eR=qS(),tR=US();function Q9(e){return e&&e.__esModule?e:{default:e}}function B9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eR.specifiedRules,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new $A.TypeInfo(e),i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{maxErrors:void 0};t||(0,V9.default)(0,"Must provide document."),(0,G9.assertValidSchema)(e);var o=Object.freeze({}),s=[],l=new tR.ValidationContext(e,t,n,function(h){if(i.maxErrors!=null&&s.length>=i.maxErrors)throw s.push(new U9.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),o;s.push(h)}),d=(0,im.visitInParallel)(r.map(function(h){return h(l)}));try{(0,im.visit)(t,(0,$A.visitWithTypeInfo)(n,d))}catch(h){if(h!==o)throw h}return s}function GS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:eR.specifiedSDLRules,n=[],i=new tR.SDLValidationContext(e,t,function(s){n.push(s)}),o=r.map(function(s){return s(i)});return(0,im.visit)(e,(0,im.visitInParallel)(o)),n}function K9(e){var t=GS(e);if(t.length!==0)throw new Error(t.map(function(r){return r.message}).join(`
|
|
|
|
`))}function H9(e,t){var r=GS(e,t);if(r.length!==0)throw new Error(r.map(function(n){return n.message}).join(`
|
|
|
|
`))}});var rR=G(QS=>{"use strict";Object.defineProperty(QS,"__esModule",{value:!0});QS.default=z9;function z9(e){var t;return function(n,i,o){t||(t=new WeakMap);var s=t.get(n),l;if(s){if(l=s.get(i),l){var d=l.get(o);if(d!==void 0)return d}}else s=new WeakMap,t.set(n,s);l||(l=new WeakMap,s.set(i,l));var h=e(n,i,o);return l.set(o,h),h}}});var nR=G(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.default=J9;var W9=Y9(rg());function Y9(e){return e&&e.__esModule?e:{default:e}}function J9(e,t,r){return e.reduce(function(n,i){return(0,W9.default)(n)?n.then(function(o){return t(o,i)}):t(n,i)},r)}});var iR=G(KS=>{"use strict";Object.defineProperty(KS,"__esModule",{value:!0});KS.default=X9;function X9(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(i,o,s){return i[t[s]]=o,i},Object.create(null))})}});var up=G(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.addPath=Z9;am.pathToArray=$9;function Z9(e,t,r){return{prev:e,key:t,typename:r}}function $9(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var um=G(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.getOperationRootType=e8;var om=Je();function e8(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new om.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 om.GraphQLError("Schema is not configured for mutations.",t);return n}if(t.operation==="subscription"){var i=e.getSubscriptionType();if(!i)throw new om.GraphQLError("Schema is not configured for subscriptions.",t);return i}throw new om.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var WS=G(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.default=t8;function t8(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var lp=G(YS=>{"use strict";Object.defineProperty(YS,"__esModule",{value:!0});YS.valueFromAST=sp;var r8=sm(Ni()),n8=sm(vu()),i8=sm(jt()),a8=sm(_n()),yc=Jt(),xs=bt();function sm(e){return e&&e.__esModule?e:{default:e}}function sp(e,t,r){if(!!e){if(e.kind===yc.Kind.VARIABLE){var n=e.name.value;if(r==null||r[n]===void 0)return;var i=r[n];return i===null&&(0,xs.isNonNullType)(t)?void 0:i}if((0,xs.isNonNullType)(t))return e.kind===yc.Kind.NULL?void 0:sp(e,t.ofType,r);if(e.kind===yc.Kind.NULL)return null;if((0,xs.isListType)(t)){var o=t.ofType;if(e.kind===yc.Kind.LIST){for(var s=[],l=0,d=e.values;l<d.length;l++){var h=d[l];if(aR(h,r)){if((0,xs.isNonNullType)(o))return;s.push(null)}else{var v=sp(h,o,r);if(v===void 0)return;s.push(v)}}return s}var y=sp(e,o,r);return y===void 0?void 0:[y]}if((0,xs.isInputObjectType)(t)){if(e.kind!==yc.Kind.OBJECT)return;for(var b=Object.create(null),D=(0,n8.default)(e.fields,function(x){return x.name.value}),_=0,k=(0,r8.default)(t.getFields());_<k.length;_++){var T=k[_],S=D[T.name];if(!S||aR(S.value,r)){if(T.defaultValue!==void 0)b[T.name]=T.defaultValue;else if((0,xs.isNonNullType)(T.type))return;continue}var m=sp(S.value,T.type,r);if(m===void 0)return;b[T.name]=m}return b}if((0,xs.isLeafType)(t)){var w;try{w=t.parseLiteral(e,r)}catch(x){return}return w===void 0?void 0:w}(0,a8.default)(0,"Unexpected input type: "+(0,i8.default)(t))}}function aR(e,t){return e.kind===yc.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var XS=G(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});JS.coerceInputValue=p8;var o8=Nu(Ni()),lm=Nu(jt()),u8=Nu(_n()),s8=Nu(gu()),l8=Nu(Ma()),c8=Nu(Mg()),f8=Nu(mu()),d8=Nu(WS()),So=up(),Cs=Je(),cp=bt();function Nu(e){return e&&e.__esModule?e:{default:e}}function p8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h8;return fp(e,t,r)}function h8(e,t,r){var n="Invalid value "+(0,lm.default)(t);throw e.length>0&&(n+=' at "value'.concat((0,d8.default)(e),'"')),r.message=n+": "+r.message,r}function fp(e,t,r,n){if((0,cp.isNonNullType)(t)){if(e!=null)return fp(e,t.ofType,r,n);r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected non-nullable type "'.concat((0,lm.default)(t),'" not to be null.')));return}if(e==null)return null;if((0,cp.isListType)(t)){var i=t.ofType,o=(0,c8.default)(e,function(m,w){var x=(0,So.addPath)(n,w,void 0);return fp(m,i,r,x)});return o!=null?o:[fp(e,i,r,n)]}if((0,cp.isInputObjectType)(t)){if(!(0,l8.default)(e)){r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected type "'.concat(t.name,'" to be an object.')));return}for(var s={},l=t.getFields(),d=0,h=(0,o8.default)(l);d<h.length;d++){var v=h[d],y=e[v.name];if(y===void 0){if(v.defaultValue!==void 0)s[v.name]=v.defaultValue;else if((0,cp.isNonNullType)(v.type)){var b=(0,lm.default)(v.type);r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Field "'.concat(v.name,'" of required type "').concat(b,'" was not provided.')))}continue}s[v.name]=fp(y,v.type,r,(0,So.addPath)(n,v.name,t.name))}for(var D=0,_=Object.keys(e);D<_.length;D++){var k=_[D];if(!l[k]){var T=(0,f8.default)(k,Object.keys(t.getFields()));r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Field "'.concat(k,'" is not defined by type "').concat(t.name,'".')+(0,s8.default)(T)))}}return s}if((0,cp.isLeafType)(t)){var S;try{S=t.parseValue(e)}catch(m){m instanceof Cs.GraphQLError?r((0,So.pathToArray)(n),e,m):r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected type "'.concat(t.name,'". ')+m.message,void 0,void 0,void 0,void 0,m));return}return S===void 0&&r((0,So.pathToArray)(n),e,new Cs.GraphQLError('Expected type "'.concat(t.name,'".'))),S}(0,u8.default)(0,"Unexpected input type: "+(0,lm.default)(t))}});var pp=G(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.getVariableValues=T8;dp.getArgumentValues=lR;dp.getDirectiveValues=E8;var v8=cm(nc()),g8=cm(vu()),bc=cm(jt()),m8=cm(WS()),ko=Je(),oR=Jt(),uR=hi(),Tc=bt(),y8=Qa(),sR=lp(),b8=XS();function cm(e){return e&&e.__esModule?e:{default:e}}function T8(e,t,r,n){var i=[],o=n==null?void 0:n.maxErrors;try{var s=_8(e,t,r,function(l){if(o!=null&&i.length>=o)throw new ko.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(l)});if(i.length===0)return{coerced:s}}catch(l){i.push(l)}return{errors:i}}function _8(e,t,r,n){for(var i={},o=function(h){var v=t[h],y=v.variable.name.value,b=(0,y8.typeFromAST)(e,v.type);if(!(0,Tc.isInputType)(b)){var D=(0,uR.print)(v.type);return n(new ko.GraphQLError('Variable "$'.concat(y,'" expected value of type "').concat(D,'" which cannot be used as an input type.'),v.type)),"continue"}if(!cR(r,y)){if(v.defaultValue)i[y]=(0,sR.valueFromAST)(v.defaultValue,b);else if((0,Tc.isNonNullType)(b)){var _=(0,bc.default)(b);n(new ko.GraphQLError('Variable "$'.concat(y,'" of required type "').concat(_,'" was not provided.'),v))}return"continue"}var k=r[y];if(k===null&&(0,Tc.isNonNullType)(b)){var T=(0,bc.default)(b);return n(new ko.GraphQLError('Variable "$'.concat(y,'" of non-null type "').concat(T,'" must not be null.'),v)),"continue"}i[y]=(0,b8.coerceInputValue)(k,b,function(S,m,w){var x='Variable "$'.concat(y,'" got invalid value ')+(0,bc.default)(m);S.length>0&&(x+=' at "'.concat(y).concat((0,m8.default)(S),'"')),n(new ko.GraphQLError(x+"; "+w.message,v,void 0,void 0,void 0,w.originalError))})},s=0;s<t.length;s++)var l=o(s);return i}function lR(e,t,r){for(var n,i={},o=(n=t.arguments)!==null&&n!==void 0?n:[],s=(0,g8.default)(o,function(S){return S.name.value}),l=0,d=e.args;l<d.length;l++){var h=d[l],v=h.name,y=h.type,b=s[v];if(!b){if(h.defaultValue!==void 0)i[v]=h.defaultValue;else if((0,Tc.isNonNullType)(y))throw new ko.GraphQLError('Argument "'.concat(v,'" of required type "').concat((0,bc.default)(y),'" ')+"was not provided.",t);continue}var D=b.value,_=D.kind===oR.Kind.NULL;if(D.kind===oR.Kind.VARIABLE){var k=D.name.value;if(r==null||!cR(r,k)){if(h.defaultValue!==void 0)i[v]=h.defaultValue;else if((0,Tc.isNonNullType)(y))throw new ko.GraphQLError('Argument "'.concat(v,'" of required type "').concat((0,bc.default)(y),'" ')+'was provided the variable "$'.concat(k,'" which was not provided a runtime value.'),D);continue}_=r[k]==null}if(_&&(0,Tc.isNonNullType)(y))throw new ko.GraphQLError('Argument "'.concat(v,'" of non-null type "').concat((0,bc.default)(y),'" ')+"must not be null.",D);var T=(0,sR.valueFromAST)(D,y,r);if(T===void 0)throw new ko.GraphQLError('Argument "'.concat(v,'" has invalid value ').concat((0,uR.print)(D),"."),D);i[v]=T}return i}function E8(e,t,r){var n=t.directives&&(0,v8.default)(t.directives,function(i){return i.name.value===e.name});if(n)return lR(e,n,r)}function cR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var mp=G(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.execute=L8;xi.executeSync=I8;xi.assertValidExecutionArguments=hR;xi.buildExecutionContext=vR;xi.collectFields=vp;xi.buildResolveInfo=bR;xi.getFieldDef=OR;xi.defaultFieldResolver=xi.defaultTypeResolver=void 0;var _c=wo(jt()),S8=wo(rR()),k8=wo(_n()),fR=wo(Hi()),Yi=wo(rg()),ZS=wo(Ma()),O8=wo(Mg()),w8=wo(nR()),N8=wo(iR()),Ls=up(),Ka=Je(),fm=qd(),hp=Jt(),D8=rp(),Ec=vi(),dR=gi(),Oo=bt(),x8=Qa(),C8=um(),dm=pp();function wo(e){return e&&e.__esModule?e:{default:e}}function L8(e,t,r,n,i,o,s,l){return arguments.length===1?$S(e):$S({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l})}function I8(e){var t=$S(e);if((0,Yi.default)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function $S(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.typeResolver;hR(t,r,o);var h=vR(t,r,n,i,o,s,l,d);if(Array.isArray(h))return{errors:h};var v=A8(h,h.operation,n);return pR(h,v)}function pR(e,t){return(0,Yi.default)(t)?t.then(function(r){return pR(e,r)}):e.errors.length===0?{data:t}:{errors:e.errors,data:t}}function hR(e,t,r){t||(0,fR.default)(0,"Must provide document."),(0,D8.assertValidSchema)(e),r==null||(0,ZS.default)(r)||(0,fR.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 vR(e,t,r,n,i,o,s,l){for(var d,h,v,y=Object.create(null),b=0,D=t.definitions;b<D.length;b++){var _=D[b];switch(_.kind){case hp.Kind.OPERATION_DEFINITION:if(o==null){if(v!==void 0)return[new Ka.GraphQLError("Must provide operation name if query contains multiple operations.")];v=_}else((d=_.name)===null||d===void 0?void 0:d.value)===o&&(v=_);break;case hp.Kind.FRAGMENT_DEFINITION:y[_.name.value]=_;break}}if(!v)return o!=null?[new Ka.GraphQLError('Unknown operation named "'.concat(o,'".'))]:[new Ka.GraphQLError("Must provide an operation.")];var k=(h=v.variableDefinitions)!==null&&h!==void 0?h:[],T=(0,dm.getVariableValues)(e,k,i!=null?i:{},{maxErrors:50});return T.errors?T.errors:{schema:e,fragments:y,rootValue:r,contextValue:n,operation:v,variableValues:T.coerced,fieldResolver:s!=null?s:kR,typeResolver:l!=null?l:SR,errors:[]}}function A8(e,t,r){var n=(0,C8.getOperationRootType)(e.schema,t),i=vp(e,n,t.selectionSet,Object.create(null),Object.create(null)),o=void 0;try{var s=t.operation==="mutation"?R8(e,n,r,o,i):gR(e,n,r,o,i);return(0,Yi.default)(s)?s.then(void 0,function(l){return e.errors.push(l),Promise.resolve(null)}):s}catch(l){return e.errors.push(l),null}}function R8(e,t,r,n,i){return(0,w8.default)(Object.keys(i),function(o,s){var l=i[s],d=(0,Ls.addPath)(n,s,t.name),h=yR(e,t,r,l,d);return h===void 0?o:(0,Yi.default)(h)?h.then(function(v){return o[s]=v,o}):(o[s]=h,o)},Object.create(null))}function gR(e,t,r,n,i){for(var o=Object.create(null),s=!1,l=0,d=Object.keys(i);l<d.length;l++){var h=d[l],v=i[h],y=(0,Ls.addPath)(n,h,t.name),b=yR(e,t,r,v,y);b!==void 0&&(o[h]=b,(0,Yi.default)(b)&&(s=!0))}return s?(0,N8.default)(o):o}function vp(e,t,r,n,i){for(var o=0,s=r.selections;o<s.length;o++){var l=s[o];switch(l.kind){case hp.Kind.FIELD:{if(!ek(e,l))continue;var d=j8(l);n[d]||(n[d]=[]),n[d].push(l);break}case hp.Kind.INLINE_FRAGMENT:{if(!ek(e,l)||!mR(e,l,t))continue;vp(e,t,l.selectionSet,n,i);break}case hp.Kind.FRAGMENT_SPREAD:{var h=l.name.value;if(i[h]||!ek(e,l))continue;i[h]=!0;var v=e.fragments[h];if(!v||!mR(e,v,t))continue;vp(e,t,v.selectionSet,n,i);break}}}return n}function ek(e,t){var r=(0,dm.getDirectiveValues)(dR.GraphQLSkipDirective,t,e.variableValues);if((r==null?void 0:r.if)===!0)return!1;var n=(0,dm.getDirectiveValues)(dR.GraphQLIncludeDirective,t,e.variableValues);return(n==null?void 0:n.if)!==!1}function mR(e,t,r){var n=t.typeCondition;if(!n)return!0;var i=(0,x8.typeFromAST)(e.schema,n);return i===r?!0:(0,Oo.isAbstractType)(i)?e.schema.isSubType(i,r):!1}function j8(e){return e.alias?e.alias.value:e.name.value}function yR(e,t,r,n,i){var o,s=n[0],l=s.name.value,d=OR(e.schema,t,l);if(!!d){var h=d.type,v=(o=d.resolve)!==null&&o!==void 0?o:e.fieldResolver,y=bR(e,d,n,t,i);try{var b=(0,dm.getArgumentValues)(d,n[0],e.variableValues),D=e.contextValue,_=v(r,b,D,y),k;return(0,Yi.default)(_)?k=_.then(function(S){return gp(e,h,n,y,i,S)}):k=gp(e,h,n,y,i,_),(0,Yi.default)(k)?k.then(void 0,function(S){var m=(0,fm.locatedError)(S,n,(0,Ls.pathToArray)(i));return pm(m,h,e)}):k}catch(S){var T=(0,fm.locatedError)(S,n,(0,Ls.pathToArray)(i));return pm(T,h,e)}}}function bR(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function pm(e,t,r){if((0,Oo.isNonNullType)(t))throw e;return r.errors.push(e),null}function gp(e,t,r,n,i,o){if(o instanceof Error)throw o;if((0,Oo.isNonNullType)(t)){var s=gp(e,t.ofType,r,n,i,o);if(s===null)throw new Error("Cannot return null for non-nullable field ".concat(n.parentType.name,".").concat(n.fieldName,"."));return s}if(o==null)return null;if((0,Oo.isListType)(t))return P8(e,t,r,n,i,o);if((0,Oo.isLeafType)(t))return F8(t,o);if((0,Oo.isAbstractType)(t))return M8(e,t,r,n,i,o);if((0,Oo.isObjectType)(t))return tk(e,t,r,n,i,o);(0,k8.default)(0,"Cannot complete value of unexpected output type: "+(0,_c.default)(t))}function P8(e,t,r,n,i,o){var s=t.ofType,l=!1,d=(0,O8.default)(o,function(h,v){var y=(0,Ls.addPath)(i,v,void 0);try{var b;return(0,Yi.default)(h)?b=h.then(function(_){return gp(e,s,r,n,y,_)}):b=gp(e,s,r,n,y,h),(0,Yi.default)(b)?(l=!0,b.then(void 0,function(_){var k=(0,fm.locatedError)(_,r,(0,Ls.pathToArray)(y));return pm(k,s,e)})):b}catch(_){var D=(0,fm.locatedError)(_,r,(0,Ls.pathToArray)(y));return pm(D,s,e)}});if(d==null)throw new Ka.GraphQLError('Expected Iterable, but did not find one for field "'.concat(n.parentType.name,".").concat(n.fieldName,'".'));return l?Promise.all(d):d}function F8(e,t){var r=e.serialize(t);if(r===void 0)throw new Error('Expected a value of type "'.concat((0,_c.default)(e),'" but ')+"received: ".concat((0,_c.default)(t)));return r}function M8(e,t,r,n,i,o){var s,l=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,d=e.contextValue,h=l(o,d,n,t);return(0,Yi.default)(h)?h.then(function(v){return tk(e,TR(v,e,t,r,n,o),r,n,i,o)}):tk(e,TR(h,e,t,r,n,o),r,n,i,o)}function TR(e,t,r,n,i,o){if(e==null)throw new Ka.GraphQLError('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'". Either the "').concat(r.name,'" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.'),n);var s=(0,Oo.isNamedType)(e)?e.name:e;if(typeof s!="string")throw new Ka.GraphQLError('Abstract type "'.concat(r.name,'" must resolve to an Object type at runtime for field "').concat(i.parentType.name,".").concat(i.fieldName,'" with ')+"value ".concat((0,_c.default)(o),', received "').concat((0,_c.default)(e),'".'));var l=t.schema.getType(s);if(l==null)throw new Ka.GraphQLError('Abstract type "'.concat(r.name,'" was resolve to a type "').concat(s,'" that does not exist inside schema.'),n);if(!(0,Oo.isObjectType)(l))throw new Ka.GraphQLError('Abstract type "'.concat(r.name,'" was resolve to a non-object type "').concat(s,'".'),n);if(!t.schema.isSubType(r,l))throw new Ka.GraphQLError('Runtime Object type "'.concat(l.name,'" is not a possible type for "').concat(r.name,'".'),n);return l}function tk(e,t,r,n,i,o){if(t.isTypeOf){var s=t.isTypeOf(o,e.contextValue,n);if((0,Yi.default)(s))return s.then(function(l){if(!l)throw _R(t,o,r);return ER(e,t,r,i,o)});if(!s)throw _R(t,o,r)}return ER(e,t,r,i,o)}function _R(e,t,r){return new Ka.GraphQLError('Expected value of type "'.concat(e.name,'" but got: ').concat((0,_c.default)(t),"."),r)}function ER(e,t,r,n,i){var o=q8(e,t,r);return gR(e,t,i,n,o)}var q8=(0,S8.default)(V8);function V8(e,t,r){for(var n=Object.create(null),i=Object.create(null),o=0;o<r.length;o++){var s=r[o];s.selectionSet&&(n=vp(e,t,s.selectionSet,n,i))}return n}var SR=function(t,r,n,i){if((0,ZS.default)(t)&&typeof t.__typename=="string")return t.__typename;for(var o=n.schema.getPossibleTypes(i),s=[],l=0;l<o.length;l++){var d=o[l];if(d.isTypeOf){var h=d.isTypeOf(t,r,n);if((0,Yi.default)(h))s[l]=h;else if(h)return d.name}}if(s.length)return Promise.all(s).then(function(v){for(var y=0;y<v.length;y++)if(v[y])return o[y].name})};xi.defaultTypeResolver=SR;var kR=function(t,r,n,i){if((0,ZS.default)(t)||typeof t=="function"){var o=t[i.fieldName];return typeof o=="function"?t[i.fieldName](r,n,i):o}};xi.defaultFieldResolver=kR;function OR(e,t,r){return r===Ec.SchemaMetaFieldDef.name&&e.getQueryType()===t?Ec.SchemaMetaFieldDef:r===Ec.TypeMetaFieldDef.name&&e.getQueryType()===t?Ec.TypeMetaFieldDef:r===Ec.TypeNameMetaFieldDef.name?Ec.TypeNameMetaFieldDef:t.getFields()[r]}});var wR=G(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});vm.graphql=z8;vm.graphqlSync=W8;var U8=H8(rg()),G8=tc(),Q8=mc(),B8=rp(),K8=mp();function H8(e){return e&&e.__esModule?e:{default:e}}function z8(e,t,r,n,i,o,s,l){var d=arguments;return new Promise(function(h){return h(d.length===1?hm(e):hm({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l}))})}function W8(e,t,r,n,i,o,s,l){var d=arguments.length===1?hm(e):hm({schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:l});if((0,U8.default)(d))throw new Error("GraphQL execution failed to complete synchronously.");return d}function hm(e){var t=e.schema,r=e.source,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.typeResolver,h=(0,B8.validateSchema)(t);if(h.length>0)return{errors:h};var v;try{v=(0,G8.parse)(r)}catch(b){return{errors:[b]}}var y=(0,Q8.validate)(t,v);return y.length>0?{errors:y}:(0,K8.execute)({schema:t,document:v,rootValue:n,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:d})}});var DR=G(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Object.defineProperty(Se,"isSchema",{enumerable:!0,get:function(){return rk.isSchema}});Object.defineProperty(Se,"assertSchema",{enumerable:!0,get:function(){return rk.assertSchema}});Object.defineProperty(Se,"GraphQLSchema",{enumerable:!0,get:function(){return rk.GraphQLSchema}});Object.defineProperty(Se,"isType",{enumerable:!0,get:function(){return rt.isType}});Object.defineProperty(Se,"isScalarType",{enumerable:!0,get:function(){return rt.isScalarType}});Object.defineProperty(Se,"isObjectType",{enumerable:!0,get:function(){return rt.isObjectType}});Object.defineProperty(Se,"isInterfaceType",{enumerable:!0,get:function(){return rt.isInterfaceType}});Object.defineProperty(Se,"isUnionType",{enumerable:!0,get:function(){return rt.isUnionType}});Object.defineProperty(Se,"isEnumType",{enumerable:!0,get:function(){return rt.isEnumType}});Object.defineProperty(Se,"isInputObjectType",{enumerable:!0,get:function(){return rt.isInputObjectType}});Object.defineProperty(Se,"isListType",{enumerable:!0,get:function(){return rt.isListType}});Object.defineProperty(Se,"isNonNullType",{enumerable:!0,get:function(){return rt.isNonNullType}});Object.defineProperty(Se,"isInputType",{enumerable:!0,get:function(){return rt.isInputType}});Object.defineProperty(Se,"isOutputType",{enumerable:!0,get:function(){return rt.isOutputType}});Object.defineProperty(Se,"isLeafType",{enumerable:!0,get:function(){return rt.isLeafType}});Object.defineProperty(Se,"isCompositeType",{enumerable:!0,get:function(){return rt.isCompositeType}});Object.defineProperty(Se,"isAbstractType",{enumerable:!0,get:function(){return rt.isAbstractType}});Object.defineProperty(Se,"isWrappingType",{enumerable:!0,get:function(){return rt.isWrappingType}});Object.defineProperty(Se,"isNullableType",{enumerable:!0,get:function(){return rt.isNullableType}});Object.defineProperty(Se,"isNamedType",{enumerable:!0,get:function(){return rt.isNamedType}});Object.defineProperty(Se,"isRequiredArgument",{enumerable:!0,get:function(){return rt.isRequiredArgument}});Object.defineProperty(Se,"isRequiredInputField",{enumerable:!0,get:function(){return rt.isRequiredInputField}});Object.defineProperty(Se,"assertType",{enumerable:!0,get:function(){return rt.assertType}});Object.defineProperty(Se,"assertScalarType",{enumerable:!0,get:function(){return rt.assertScalarType}});Object.defineProperty(Se,"assertObjectType",{enumerable:!0,get:function(){return rt.assertObjectType}});Object.defineProperty(Se,"assertInterfaceType",{enumerable:!0,get:function(){return rt.assertInterfaceType}});Object.defineProperty(Se,"assertUnionType",{enumerable:!0,get:function(){return rt.assertUnionType}});Object.defineProperty(Se,"assertEnumType",{enumerable:!0,get:function(){return rt.assertEnumType}});Object.defineProperty(Se,"assertInputObjectType",{enumerable:!0,get:function(){return rt.assertInputObjectType}});Object.defineProperty(Se,"assertListType",{enumerable:!0,get:function(){return rt.assertListType}});Object.defineProperty(Se,"assertNonNullType",{enumerable:!0,get:function(){return rt.assertNonNullType}});Object.defineProperty(Se,"assertInputType",{enumerable:!0,get:function(){return rt.assertInputType}});Object.defineProperty(Se,"assertOutputType",{enumerable:!0,get:function(){return rt.assertOutputType}});Object.defineProperty(Se,"assertLeafType",{enumerable:!0,get:function(){return rt.assertLeafType}});Object.defineProperty(Se,"assertCompositeType",{enumerable:!0,get:function(){return rt.assertCompositeType}});Object.defineProperty(Se,"assertAbstractType",{enumerable:!0,get:function(){return rt.assertAbstractType}});Object.defineProperty(Se,"assertWrappingType",{enumerable:!0,get:function(){return rt.assertWrappingType}});Object.defineProperty(Se,"assertNullableType",{enumerable:!0,get:function(){return rt.assertNullableType}});Object.defineProperty(Se,"assertNamedType",{enumerable:!0,get:function(){return rt.assertNamedType}});Object.defineProperty(Se,"getNullableType",{enumerable:!0,get:function(){return rt.getNullableType}});Object.defineProperty(Se,"getNamedType",{enumerable:!0,get:function(){return rt.getNamedType}});Object.defineProperty(Se,"GraphQLScalarType",{enumerable:!0,get:function(){return rt.GraphQLScalarType}});Object.defineProperty(Se,"GraphQLObjectType",{enumerable:!0,get:function(){return rt.GraphQLObjectType}});Object.defineProperty(Se,"GraphQLInterfaceType",{enumerable:!0,get:function(){return rt.GraphQLInterfaceType}});Object.defineProperty(Se,"GraphQLUnionType",{enumerable:!0,get:function(){return rt.GraphQLUnionType}});Object.defineProperty(Se,"GraphQLEnumType",{enumerable:!0,get:function(){return rt.GraphQLEnumType}});Object.defineProperty(Se,"GraphQLInputObjectType",{enumerable:!0,get:function(){return rt.GraphQLInputObjectType}});Object.defineProperty(Se,"GraphQLList",{enumerable:!0,get:function(){return rt.GraphQLList}});Object.defineProperty(Se,"GraphQLNonNull",{enumerable:!0,get:function(){return rt.GraphQLNonNull}});Object.defineProperty(Se,"isDirective",{enumerable:!0,get:function(){return Ha.isDirective}});Object.defineProperty(Se,"assertDirective",{enumerable:!0,get:function(){return Ha.assertDirective}});Object.defineProperty(Se,"GraphQLDirective",{enumerable:!0,get:function(){return Ha.GraphQLDirective}});Object.defineProperty(Se,"isSpecifiedDirective",{enumerable:!0,get:function(){return Ha.isSpecifiedDirective}});Object.defineProperty(Se,"specifiedDirectives",{enumerable:!0,get:function(){return Ha.specifiedDirectives}});Object.defineProperty(Se,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Ha.GraphQLIncludeDirective}});Object.defineProperty(Se,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Ha.GraphQLSkipDirective}});Object.defineProperty(Se,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Ha.GraphQLDeprecatedDirective}});Object.defineProperty(Se,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Ha.GraphQLSpecifiedByDirective}});Object.defineProperty(Se,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Ha.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Se,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Is.isSpecifiedScalarType}});Object.defineProperty(Se,"specifiedScalarTypes",{enumerable:!0,get:function(){return Is.specifiedScalarTypes}});Object.defineProperty(Se,"GraphQLInt",{enumerable:!0,get:function(){return Is.GraphQLInt}});Object.defineProperty(Se,"GraphQLFloat",{enumerable:!0,get:function(){return Is.GraphQLFloat}});Object.defineProperty(Se,"GraphQLString",{enumerable:!0,get:function(){return Is.GraphQLString}});Object.defineProperty(Se,"GraphQLBoolean",{enumerable:!0,get:function(){return Is.GraphQLBoolean}});Object.defineProperty(Se,"GraphQLID",{enumerable:!0,get:function(){return Is.GraphQLID}});Object.defineProperty(Se,"isIntrospectionType",{enumerable:!0,get:function(){return yi.isIntrospectionType}});Object.defineProperty(Se,"introspectionTypes",{enumerable:!0,get:function(){return yi.introspectionTypes}});Object.defineProperty(Se,"__Schema",{enumerable:!0,get:function(){return yi.__Schema}});Object.defineProperty(Se,"__Directive",{enumerable:!0,get:function(){return yi.__Directive}});Object.defineProperty(Se,"__DirectiveLocation",{enumerable:!0,get:function(){return yi.__DirectiveLocation}});Object.defineProperty(Se,"__Type",{enumerable:!0,get:function(){return yi.__Type}});Object.defineProperty(Se,"__Field",{enumerable:!0,get:function(){return yi.__Field}});Object.defineProperty(Se,"__InputValue",{enumerable:!0,get:function(){return yi.__InputValue}});Object.defineProperty(Se,"__EnumValue",{enumerable:!0,get:function(){return yi.__EnumValue}});Object.defineProperty(Se,"__TypeKind",{enumerable:!0,get:function(){return yi.__TypeKind}});Object.defineProperty(Se,"TypeKind",{enumerable:!0,get:function(){return yi.TypeKind}});Object.defineProperty(Se,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return yi.SchemaMetaFieldDef}});Object.defineProperty(Se,"TypeMetaFieldDef",{enumerable:!0,get:function(){return yi.TypeMetaFieldDef}});Object.defineProperty(Se,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return yi.TypeNameMetaFieldDef}});Object.defineProperty(Se,"validateSchema",{enumerable:!0,get:function(){return NR.validateSchema}});Object.defineProperty(Se,"assertValidSchema",{enumerable:!0,get:function(){return NR.assertValidSchema}});var rk=ks(),rt=bt(),Ha=gi(),Is=Ga(),yi=vi(),NR=rp()});var LR=G(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Object.defineProperty(Qt,"Source",{enumerable:!0,get:function(){return Y8.Source}});Object.defineProperty(Qt,"getLocation",{enumerable:!0,get:function(){return J8.getLocation}});Object.defineProperty(Qt,"printLocation",{enumerable:!0,get:function(){return xR.printLocation}});Object.defineProperty(Qt,"printSourceLocation",{enumerable:!0,get:function(){return xR.printSourceLocation}});Object.defineProperty(Qt,"Kind",{enumerable:!0,get:function(){return X8.Kind}});Object.defineProperty(Qt,"TokenKind",{enumerable:!0,get:function(){return Z8.TokenKind}});Object.defineProperty(Qt,"Lexer",{enumerable:!0,get:function(){return $8.Lexer}});Object.defineProperty(Qt,"parse",{enumerable:!0,get:function(){return nk.parse}});Object.defineProperty(Qt,"parseValue",{enumerable:!0,get:function(){return nk.parseValue}});Object.defineProperty(Qt,"parseType",{enumerable:!0,get:function(){return nk.parseType}});Object.defineProperty(Qt,"print",{enumerable:!0,get:function(){return eY.print}});Object.defineProperty(Qt,"visit",{enumerable:!0,get:function(){return gm.visit}});Object.defineProperty(Qt,"visitInParallel",{enumerable:!0,get:function(){return gm.visitInParallel}});Object.defineProperty(Qt,"getVisitFn",{enumerable:!0,get:function(){return gm.getVisitFn}});Object.defineProperty(Qt,"BREAK",{enumerable:!0,get:function(){return gm.BREAK}});Object.defineProperty(Qt,"Location",{enumerable:!0,get:function(){return CR.Location}});Object.defineProperty(Qt,"Token",{enumerable:!0,get:function(){return CR.Token}});Object.defineProperty(Qt,"isDefinitionNode",{enumerable:!0,get:function(){return No.isDefinitionNode}});Object.defineProperty(Qt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return No.isExecutableDefinitionNode}});Object.defineProperty(Qt,"isSelectionNode",{enumerable:!0,get:function(){return No.isSelectionNode}});Object.defineProperty(Qt,"isValueNode",{enumerable:!0,get:function(){return No.isValueNode}});Object.defineProperty(Qt,"isTypeNode",{enumerable:!0,get:function(){return No.isTypeNode}});Object.defineProperty(Qt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return No.isTypeSystemDefinitionNode}});Object.defineProperty(Qt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return No.isTypeDefinitionNode}});Object.defineProperty(Qt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return No.isTypeSystemExtensionNode}});Object.defineProperty(Qt,"isTypeExtensionNode",{enumerable:!0,get:function(){return No.isTypeExtensionNode}});Object.defineProperty(Qt,"DirectiveLocation",{enumerable:!0,get:function(){return tY.DirectiveLocation}});var Y8=mg(),J8=ig(),xR=l_(),X8=Jt(),Z8=Zl(),$8=Tg(),nk=tc(),eY=hi(),gm=hu(),CR=Xl(),No=ws(),tY=$l()});var IR=G(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Object.defineProperty(Du,"responsePathAsArray",{enumerable:!0,get:function(){return rY.pathToArray}});Object.defineProperty(Du,"execute",{enumerable:!0,get:function(){return mm.execute}});Object.defineProperty(Du,"executeSync",{enumerable:!0,get:function(){return mm.executeSync}});Object.defineProperty(Du,"defaultFieldResolver",{enumerable:!0,get:function(){return mm.defaultFieldResolver}});Object.defineProperty(Du,"defaultTypeResolver",{enumerable:!0,get:function(){return mm.defaultTypeResolver}});Object.defineProperty(Du,"getDirectiveValues",{enumerable:!0,get:function(){return nY.getDirectiveValues}});var rY=up(),mm=mp(),nY=pp()});var AR=G(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.default=aY;var iY=qa();function aY(e){return typeof(e==null?void 0:e[iY.SYMBOL_ASYNC_ITERATOR])=="function"}});var FR=G(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0});ak.default=uY;var RR=qa();function oY(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uY(e,t,r){var n=e[RR.SYMBOL_ASYNC_ITERATOR],i=n.call(e),o,s;typeof i.return=="function"&&(o=i.return,s=function(y){var b=function(){return Promise.reject(y)};return o.call(i).then(b,b)});function l(v){return v.done?v:jR(v.value,t).then(PR,s)}var d;if(r){var h=r;d=function(y){return jR(y,h).then(PR,s)}}return oY({next:function(){return i.next().then(l,d)},return:function(){return o?o.call(i).then(l,d):Promise.resolve({value:void 0,done:!0})},throw:function(y){return typeof i.throw=="function"?i.throw(y).then(l,d):Promise.reject(y).catch(s)}},RR.SYMBOL_ASYNC_ITERATOR,function(){return this})}function jR(e,t){return new Promise(function(r){return r(t(e))})}function PR(e){return{value:e,done:!1}}});var BR=G(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.subscribe=dY;ym.createSourceEventStream=QR;var sY=uk(jt()),MR=uk(AR()),ok=up(),qR=Je(),VR=qd(),lY=pp(),Sc=mp(),cY=um(),fY=uk(FR());function uk(e){return e&&e.__esModule?e:{default:e}}function dY(e,t,r,n,i,o,s,l){return arguments.length===1?GR(e):GR({schema:e,document:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,subscribeFieldResolver:l})}function UR(e){if(e instanceof qR.GraphQLError)return{errors:[e]};throw e}function GR(e){var t=e.schema,r=e.document,n=e.rootValue,i=e.contextValue,o=e.variableValues,s=e.operationName,l=e.fieldResolver,d=e.subscribeFieldResolver,h=QR(t,r,n,i,o,s,d),v=function(b){return(0,Sc.execute)({schema:t,document:r,rootValue:b,contextValue:i,variableValues:o,operationName:s,fieldResolver:l})};return h.then(function(y){return(0,MR.default)(y)?(0,fY.default)(y,v,UR):y})}function QR(e,t,r,n,i,o,s){return(0,Sc.assertValidExecutionArguments)(e,t,i),new Promise(function(l){var d=(0,Sc.buildExecutionContext)(e,t,r,n,i,o,s);l(Array.isArray(d)?{errors:d}:pY(d))}).catch(UR)}function pY(e){var t=e.schema,r=e.operation,n=e.variableValues,i=e.rootValue,o=(0,cY.getOperationRootType)(t,r),s=(0,Sc.collectFields)(e,o,r.selectionSet,Object.create(null),Object.create(null)),l=Object.keys(s),d=l[0],h=s[d],v=h[0],y=v.name.value,b=(0,Sc.getFieldDef)(t,o,y);if(!b)throw new qR.GraphQLError('The subscription field "'.concat(y,'" is not defined.'),h);var D=(0,ok.addPath)(void 0,d,o.name),_=(0,Sc.buildResolveInfo)(e,b,h,o,D);return new Promise(function(k){var T,S=(0,lY.getArgumentValues)(b,h[0],n),m=e.contextValue,w=(T=b.subscribe)!==null&&T!==void 0?T:e.fieldResolver;k(w(i,S,m,_))}).then(function(k){if(k instanceof Error)throw(0,VR.locatedError)(k,h,(0,ok.pathToArray)(D));if(!(0,MR.default)(k))throw new Error("Subscription field must return Async Iterable. "+"Received: ".concat((0,sY.default)(k),"."));return k},function(k){throw(0,VR.locatedError)(k,h,(0,ok.pathToArray)(D))})}});var HR=G(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});Object.defineProperty(bm,"subscribe",{enumerable:!0,get:function(){return KR.subscribe}});Object.defineProperty(bm,"createSourceEventStream",{enumerable:!0,get:function(){return KR.createSourceEventStream}});var KR=BR()});var fk=G(ck=>{"use strict";Object.defineProperty(ck,"__esModule",{value:!0});ck.NoDeprecatedCustomRule=vY;var sk=hY(_n()),yp=Je(),lk=bt();function hY(e){return e&&e.__esModule?e:{default:e}}function vY(e){return{Field:function(r){var n=e.getFieldDef(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=e.getParentType();o!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError("The field ".concat(o.name,".").concat(n.name," is deprecated. ").concat(i),r))}},Argument:function(r){var n=e.getArgument(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=e.getDirective();if(o!=null)e.reportError(new yp.GraphQLError('Directive "@'.concat(o.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r));else{var s=e.getParentType(),l=e.getFieldDef();s!=null&&l!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError('Field "'.concat(s.name,".").concat(l.name,'" argument "').concat(n.name,'" is deprecated. ').concat(i),r))}}},ObjectField:function(r){var n=(0,lk.getNamedType)(e.getParentInputType());if((0,lk.isInputObjectType)(n)){var i=n.getFields()[r.name.value],o=i==null?void 0:i.deprecationReason;o!=null&&e.reportError(new yp.GraphQLError("The input field ".concat(n.name,".").concat(i.name," is deprecated. ").concat(o),r))}},EnumValue:function(r){var n=e.getEnumValue(),i=n==null?void 0:n.deprecationReason;if(n&&i!=null){var o=(0,lk.getNamedType)(e.getInputType());o!=null||(0,sk.default)(0),e.reportError(new yp.GraphQLError('The enum value "'.concat(o.name,".").concat(n.name,'" is deprecated. ').concat(i),r))}}}}});var zR=G(dk=>{"use strict";Object.defineProperty(dk,"__esModule",{value:!0});dk.NoSchemaIntrospectionCustomRule=bY;var gY=Je(),mY=bt(),yY=vi();function bY(e){return{Field:function(r){var n=(0,mY.getNamedType)(e.getType());n&&(0,yY.isIntrospectionType)(n)&&e.reportError(new gY.GraphQLError('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(r.name.value,'".'),r))}}}});var WR=G(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"validate",{enumerable:!0,get:function(){return TY.validate}});Object.defineProperty(ft,"ValidationContext",{enumerable:!0,get:function(){return _Y.ValidationContext}});Object.defineProperty(ft,"specifiedRules",{enumerable:!0,get:function(){return EY.specifiedRules}});Object.defineProperty(ft,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return SY.ExecutableDefinitionsRule}});Object.defineProperty(ft,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return kY.FieldsOnCorrectTypeRule}});Object.defineProperty(ft,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return OY.FragmentsOnCompositeTypesRule}});Object.defineProperty(ft,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return wY.KnownArgumentNamesRule}});Object.defineProperty(ft,"KnownDirectivesRule",{enumerable:!0,get:function(){return NY.KnownDirectivesRule}});Object.defineProperty(ft,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return DY.KnownFragmentNamesRule}});Object.defineProperty(ft,"KnownTypeNamesRule",{enumerable:!0,get:function(){return xY.KnownTypeNamesRule}});Object.defineProperty(ft,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return CY.LoneAnonymousOperationRule}});Object.defineProperty(ft,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return LY.NoFragmentCyclesRule}});Object.defineProperty(ft,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return IY.NoUndefinedVariablesRule}});Object.defineProperty(ft,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return AY.NoUnusedFragmentsRule}});Object.defineProperty(ft,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return RY.NoUnusedVariablesRule}});Object.defineProperty(ft,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return jY.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(ft,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return PY.PossibleFragmentSpreadsRule}});Object.defineProperty(ft,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return FY.ProvidedRequiredArgumentsRule}});Object.defineProperty(ft,"ScalarLeafsRule",{enumerable:!0,get:function(){return MY.ScalarLeafsRule}});Object.defineProperty(ft,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return qY.SingleFieldSubscriptionsRule}});Object.defineProperty(ft,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return VY.UniqueArgumentNamesRule}});Object.defineProperty(ft,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return UY.UniqueDirectivesPerLocationRule}});Object.defineProperty(ft,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return GY.UniqueFragmentNamesRule}});Object.defineProperty(ft,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return QY.UniqueInputFieldNamesRule}});Object.defineProperty(ft,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return BY.UniqueOperationNamesRule}});Object.defineProperty(ft,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return KY.UniqueVariableNamesRule}});Object.defineProperty(ft,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return HY.ValuesOfCorrectTypeRule}});Object.defineProperty(ft,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return zY.VariablesAreInputTypesRule}});Object.defineProperty(ft,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return WY.VariablesInAllowedPositionRule}});Object.defineProperty(ft,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return YY.LoneSchemaDefinitionRule}});Object.defineProperty(ft,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return JY.UniqueOperationTypesRule}});Object.defineProperty(ft,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return XY.UniqueTypeNamesRule}});Object.defineProperty(ft,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ZY.UniqueEnumValueNamesRule}});Object.defineProperty(ft,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return $Y.UniqueFieldDefinitionNamesRule}});Object.defineProperty(ft,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return e7.UniqueDirectiveNamesRule}});Object.defineProperty(ft,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return t7.PossibleTypeExtensionsRule}});Object.defineProperty(ft,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return r7.NoDeprecatedCustomRule}});Object.defineProperty(ft,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return n7.NoSchemaIntrospectionCustomRule}});var TY=mc(),_Y=US(),EY=qS(),SY=TE(),kY=FE(),OY=LE(),wY=oS(),NY=rS(),DY=UE(),xY=xE(),CY=kE(),LY=WE(),IY=ZE(),AY=QE(),RY=eS(),jY=_S(),PY=HE(),FY=dS(),MY=jE(),qY=wE(),VY=sS(),UY=aS(),GY=qE(),QY=SS(),BY=EE(),KY=JE(),HY=cS(),zY=AE(),WY=hS(),YY=OS(),JY=NS(),XY=xS(),ZY=LS(),$Y=RS(),e7=PS(),t7=MS(),r7=fk(),n7=zR()});var YR=G(pk=>{"use strict";Object.defineProperty(pk,"__esModule",{value:!0});pk.formatError=o7;var i7=a7(Hi());function a7(e){return e&&e.__esModule?e:{default:e}}function o7(e){var t;e||(0,i7.default)(0,"Received null or undefined error.");var r=(t=e.message)!==null&&t!==void 0?t:"An unknown error occurred.",n=e.locations,i=e.path,o=e.extensions;return o?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}}});var XR=G(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});Object.defineProperty(As,"GraphQLError",{enumerable:!0,get:function(){return JR.GraphQLError}});Object.defineProperty(As,"printError",{enumerable:!0,get:function(){return JR.printError}});Object.defineProperty(As,"syntaxError",{enumerable:!0,get:function(){return u7.syntaxError}});Object.defineProperty(As,"locatedError",{enumerable:!0,get:function(){return s7.locatedError}});Object.defineProperty(As,"formatError",{enumerable:!0,get:function(){return l7.formatError}});var JR=Je(),u7=lg(),s7=qd(),l7=YR()});var vk=G(hk=>{"use strict";Object.defineProperty(hk,"__esModule",{value:!0});hk.getIntrospectionQuery=d7;function ZR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(r),!0).forEach(function(n){f7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d7(e){var t=c7({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?r:"";function s(l){return t.inputValueDeprecation?l:""}return`
|
|
query IntrospectionQuery {
|
|
__schema {
|
|
`.concat(o,`
|
|
queryType { name }
|
|
mutationType { name }
|
|
subscriptionType { name }
|
|
types {
|
|
...FullType
|
|
}
|
|
directives {
|
|
name
|
|
`).concat(r,`
|
|
`).concat(i,`
|
|
locations
|
|
args`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment FullType on __Type {
|
|
kind
|
|
name
|
|
`).concat(r,`
|
|
`).concat(n,`
|
|
fields(includeDeprecated: true) {
|
|
name
|
|
`).concat(r,`
|
|
args`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
type {
|
|
...TypeRef
|
|
}
|
|
isDeprecated
|
|
deprecationReason
|
|
}
|
|
inputFields`).concat(s("(includeDeprecated: true)"),` {
|
|
...InputValue
|
|
}
|
|
interfaces {
|
|
...TypeRef
|
|
}
|
|
enumValues(includeDeprecated: true) {
|
|
name
|
|
`).concat(r,`
|
|
isDeprecated
|
|
deprecationReason
|
|
}
|
|
possibleTypes {
|
|
...TypeRef
|
|
}
|
|
}
|
|
|
|
fragment InputValue on __InputValue {
|
|
name
|
|
`).concat(r,`
|
|
type { ...TypeRef }
|
|
defaultValue
|
|
`).concat(s("isDeprecated"),`
|
|
`).concat(s("deprecationReason"),`
|
|
}
|
|
|
|
fragment TypeRef on __Type {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
ofType {
|
|
kind
|
|
name
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)}});var mk=G(gk=>{"use strict";Object.defineProperty(gk,"__esModule",{value:!0});gk.getOperationAST=h7;var p7=Jt();function h7(e,t){for(var r=null,n=0,i=e.definitions;n<i.length;n++){var o=i[n];if(o.kind===p7.Kind.OPERATION_DEFINITION){var s;if(t==null){if(r)return null;r=o}else if(((s=o.name)===null||s===void 0?void 0:s.value)===t)return o}}return r}});var ej=G(yk=>{"use strict";Object.defineProperty(yk,"__esModule",{value:!0});yk.introspectionFromSchema=E7;var v7=b7(_n()),g7=tc(),m7=mp(),y7=vk();function b7(e){return e&&e.__esModule?e:{default:e}}function $R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function T7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(r),!0).forEach(function(n){_7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E7(e,t){var r=T7({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),n=(0,g7.parse)((0,y7.getIntrospectionQuery)(r)),i=(0,m7.executeSync)({schema:e,document:n});return!i.errors&&i.data||(0,v7.default)(0),i.data}});var rj=G(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});bk.buildClientSchema=C7;var S7=bp(Ni()),Ci=bp(jt()),k7=bp(Hi()),Tm=bp(Vd()),tj=bp(Ma()),O7=tc(),w7=ks(),N7=gi(),D7=Ga(),za=vi(),Li=bt(),x7=lp();function bp(e){return e&&e.__esModule?e:{default:e}}function C7(e,t){(0,tj.default)(e)&&(0,tj.default)(e.__schema)||(0,k7.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,Ci.default)(e),"."));for(var r=e.__schema,n=(0,Tm.default)(r.types,function(Q){return Q.name},function(Q){return k(Q)}),i=0,o=[].concat(D7.specifiedScalarTypes,za.introspectionTypes);i<o.length;i++){var s=o[i];n[s.name]&&(n[s.name]=s)}var l=r.queryType?D(r.queryType):null,d=r.mutationType?D(r.mutationType):null,h=r.subscriptionType?D(r.subscriptionType):null,v=r.directives?r.directives.map(B):[];return new w7.GraphQLSchema({description:r.description,query:l,mutation:d,subscription:h,types:(0,S7.default)(n),directives:v,assumeValid:t==null?void 0:t.assumeValid});function y(Q){if(Q.kind===za.TypeKind.LIST){var P=Q.ofType;if(!P)throw new Error("Decorated type deeper than introspection query.");return new Li.GraphQLList(y(P))}if(Q.kind===za.TypeKind.NON_NULL){var he=Q.ofType;if(!he)throw new Error("Decorated type deeper than introspection query.");var xe=y(he);return new Li.GraphQLNonNull((0,Li.assertNullableType)(xe))}return b(Q)}function b(Q){var P=Q.name;if(!P)throw new Error("Unknown type reference: ".concat((0,Ci.default)(Q),"."));var he=n[P];if(!he)throw new Error("Invalid or incomplete schema, unknown type: ".concat(P,". Ensure that a full introspection query is used in order to build a client schema."));return he}function D(Q){return(0,Li.assertObjectType)(b(Q))}function _(Q){return(0,Li.assertInterfaceType)(b(Q))}function k(Q){if(Q!=null&&Q.name!=null&&Q.kind!=null)switch(Q.kind){case za.TypeKind.SCALAR:return T(Q);case za.TypeKind.OBJECT:return m(Q);case za.TypeKind.INTERFACE:return w(Q);case za.TypeKind.UNION:return x(Q);case za.TypeKind.ENUM:return L(Q);case za.TypeKind.INPUT_OBJECT:return O(Q)}var P=(0,Ci.default)(Q);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(P,"."))}function T(Q){return new Li.GraphQLScalarType({name:Q.name,description:Q.description,specifiedByUrl:Q.specifiedByUrl})}function S(Q){if(Q.interfaces===null&&Q.kind===za.TypeKind.INTERFACE)return[];if(!Q.interfaces){var P=(0,Ci.default)(Q);throw new Error("Introspection result missing interfaces: ".concat(P,"."))}return Q.interfaces.map(_)}function m(Q){return new Li.GraphQLObjectType({name:Q.name,description:Q.description,interfaces:function(){return S(Q)},fields:function(){return R(Q)}})}function w(Q){return new Li.GraphQLInterfaceType({name:Q.name,description:Q.description,interfaces:function(){return S(Q)},fields:function(){return R(Q)}})}function x(Q){if(!Q.possibleTypes){var P=(0,Ci.default)(Q);throw new Error("Introspection result missing possibleTypes: ".concat(P,"."))}return new Li.GraphQLUnionType({name:Q.name,description:Q.description,types:function(){return Q.possibleTypes.map(D)}})}function L(Q){if(!Q.enumValues){var P=(0,Ci.default)(Q);throw new Error("Introspection result missing enumValues: ".concat(P,"."))}return new Li.GraphQLEnumType({name:Q.name,description:Q.description,values:(0,Tm.default)(Q.enumValues,function(he){return he.name},function(he){return{description:he.description,deprecationReason:he.deprecationReason}})})}function O(Q){if(!Q.inputFields){var P=(0,Ci.default)(Q);throw new Error("Introspection result missing inputFields: ".concat(P,"."))}return new Li.GraphQLInputObjectType({name:Q.name,description:Q.description,fields:function(){return q(Q.inputFields)}})}function R(Q){if(!Q.fields)throw new Error("Introspection result missing fields: ".concat((0,Ci.default)(Q),"."));return(0,Tm.default)(Q.fields,function(P){return P.name},M)}function M(Q){var P=y(Q.type);if(!(0,Li.isOutputType)(P)){var he=(0,Ci.default)(P);throw new Error("Introspection must provide output type for fields, but received: ".concat(he,"."))}if(!Q.args){var xe=(0,Ci.default)(Q);throw new Error("Introspection result missing field args: ".concat(xe,"."))}return{description:Q.description,deprecationReason:Q.deprecationReason,type:P,args:q(Q.args)}}function q(Q){return(0,Tm.default)(Q,function(P){return P.name},z)}function z(Q){var P=y(Q.type);if(!(0,Li.isInputType)(P)){var he=(0,Ci.default)(P);throw new Error("Introspection must provide input type for arguments, but received: ".concat(he,"."))}var xe=Q.defaultValue!=null?(0,x7.valueFromAST)((0,O7.parseValue)(Q.defaultValue),P):void 0;return{description:Q.description,type:P,defaultValue:xe,deprecationReason:Q.deprecationReason}}function B(Q){if(!Q.args){var P=(0,Ci.default)(Q);throw new Error("Introspection result missing directive args: ".concat(P,"."))}if(!Q.locations){var he=(0,Ci.default)(Q);throw new Error("Introspection result missing directive locations: ".concat(he,"."))}return new N7.GraphQLDirective({name:Q.name,description:Q.description,isRepeatable:Q.isRepeatable,locations:Q.locations.slice(),args:q(Q.args)})}}});var Tk=G(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.extendSchema=M7;_p.extendSchemaImpl=dj;_p.getDescription=Rs;var L7=kc(Ni()),I7=kc(vu()),nj=kc(jt()),Tp=kc(w_()),ij=kc(_n()),A7=kc(Hi()),Ji=Jt(),R7=Zl(),j7=ec(),aj=ws(),P7=mc(),oj=pp(),uj=ks(),sj=Ga(),lj=vi(),_m=gi(),pr=bt(),cj=lp();function kc(e){return e&&e.__esModule?e:{default:e}}function fj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fj(Object(r),!0).forEach(function(n){F7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F7(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M7(e,t,r){(0,uj.assertSchema)(e),t!=null&&t.kind===Ji.Kind.DOCUMENT||(0,A7.default)(0,"Must provide valid Document AST."),(r==null?void 0:r.assumeValid)!==!0&&(r==null?void 0:r.assumeValidSDL)!==!0&&(0,P7.assertValidSDLExtension)(t,e);var n=e.toConfig(),i=dj(n,t,r);return n===i?e:new uj.GraphQLSchema(i)}function dj(e,t,r){for(var n,i,o,s,l=[],d=Object.create(null),h=[],v,y=[],b=0,D=t.definitions;b<D.length;b++){var _=D[b];if(_.kind===Ji.Kind.SCHEMA_DEFINITION)v=_;else if(_.kind===Ji.Kind.SCHEMA_EXTENSION)y.push(_);else if((0,aj.isTypeDefinitionNode)(_))l.push(_);else if((0,aj.isTypeExtensionNode)(_)){var k=_.name.value,T=d[k];d[k]=T?T.concat([_]):[_]}else _.kind===Ji.Kind.DIRECTIVE_DEFINITION&&h.push(_)}if(Object.keys(d).length===0&&l.length===0&&h.length===0&&y.length===0&&v==null)return e;for(var S=Object.create(null),m=0,w=e.types;m<w.length;m++){var x=w[m];S[x.name]=P(x)}for(var L=0;L<l.length;L++){var O,R=l[L],M=R.name.value;S[M]=(O=pj[M])!==null&&O!==void 0?O:mt(R)}var q=xt(xt({query:e.query&&B(e.query),mutation:e.mutation&&B(e.mutation),subscription:e.subscription&&B(e.subscription)},v&&At([v])),At(y));return xt(xt({description:(n=v)===null||n===void 0||(i=n.description)===null||i===void 0?void 0:i.value},q),{},{types:(0,L7.default)(S),directives:[].concat(e.directives.map(Q),h.map(te)),extensions:void 0,astNode:(o=v)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(s=r==null?void 0:r.assumeValid)!==null&&s!==void 0?s:!1});function z(oe){return(0,pr.isListType)(oe)?new pr.GraphQLList(z(oe.ofType)):(0,pr.isNonNullType)(oe)?new pr.GraphQLNonNull(z(oe.ofType)):B(oe)}function B(oe){return S[oe.name]}function Q(oe){var me=oe.toConfig();return new _m.GraphQLDirective(xt(xt({},me),{},{args:(0,Tp.default)(me.args,Ve)}))}function P(oe){if((0,lj.isIntrospectionType)(oe)||(0,sj.isSpecifiedScalarType)(oe))return oe;if((0,pr.isScalarType)(oe))return ge(oe);if((0,pr.isObjectType)(oe))return Fe(oe);if((0,pr.isInterfaceType)(oe))return Le(oe);if((0,pr.isUnionType)(oe))return He(oe);if((0,pr.isEnumType)(oe))return xe(oe);if((0,pr.isInputObjectType)(oe))return he(oe);(0,ij.default)(0,"Unexpected type: "+(0,nj.default)(oe))}function he(oe){var me,fe=oe.toConfig(),se=(me=d[fe.name])!==null&&me!==void 0?me:[];return new pr.GraphQLInputObjectType(xt(xt({},fe),{},{fields:function(){return xt(xt({},(0,Tp.default)(fe.fields,function(at){return xt(xt({},at),{},{type:z(at.type)})})),ot(se))},extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function xe(oe){var me,fe=oe.toConfig(),se=(me=d[oe.name])!==null&&me!==void 0?me:[];return new pr.GraphQLEnumType(xt(xt({},fe),{},{values:xt(xt({},fe.values),Me(se)),extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function ge(oe){for(var me,fe=oe.toConfig(),se=(me=d[fe.name])!==null&&me!==void 0?me:[],Ue=fe.specifiedByUrl,at=0;at<se.length;at++){var ct,st=se[at];Ue=(ct=hj(st))!==null&&ct!==void 0?ct:Ue}return new pr.GraphQLScalarType(xt(xt({},fe),{},{specifiedByUrl:Ue,extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function Fe(oe){var me,fe=oe.toConfig(),se=(me=d[fe.name])!==null&&me!==void 0?me:[];return new pr.GraphQLObjectType(xt(xt({},fe),{},{interfaces:function(){return[].concat(oe.getInterfaces().map(B),Qe(se))},fields:function(){return xt(xt({},(0,Tp.default)(fe.fields,Xe)),ce(se))},extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function Le(oe){var me,fe=oe.toConfig(),se=(me=d[fe.name])!==null&&me!==void 0?me:[];return new pr.GraphQLInterfaceType(xt(xt({},fe),{},{interfaces:function(){return[].concat(oe.getInterfaces().map(B),Qe(se))},fields:function(){return xt(xt({},(0,Tp.default)(fe.fields,Xe)),ce(se))},extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function He(oe){var me,fe=oe.toConfig(),se=(me=d[fe.name])!==null&&me!==void 0?me:[];return new pr.GraphQLUnionType(xt(xt({},fe),{},{types:function(){return[].concat(oe.getTypes().map(B),ze(se))},extensionASTNodes:fe.extensionASTNodes.concat(se)}))}function Xe(oe){return xt(xt({},oe),{},{type:z(oe.type),args:(0,Tp.default)(oe.args,Ve)})}function Ve(oe){return xt(xt({},oe),{},{type:z(oe.type)})}function At(oe){for(var me={},fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.operationTypes)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct];me[st.operation]=Ot(st.type)}return me}function Ot(oe){var me,fe=oe.name.value,se=(me=pj[fe])!==null&&me!==void 0?me:S[fe];if(se===void 0)throw new Error('Unknown type: "'.concat(fe,'".'));return se}function Ie(oe){return oe.kind===Ji.Kind.LIST_TYPE?new pr.GraphQLList(Ie(oe.type)):oe.kind===Ji.Kind.NON_NULL_TYPE?new pr.GraphQLNonNull(Ie(oe.type)):Ot(oe)}function te(oe){var me=oe.locations.map(function(fe){var se=fe.value;return se});return new _m.GraphQLDirective({name:oe.name.value,description:Rs(oe,r),locations:me,isRepeatable:oe.repeatable,args:we(oe.arguments),astNode:oe})}function ce(oe){for(var me=Object.create(null),fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.fields)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct];me[st.name.value]={type:Ie(st.type),description:Rs(st,r),args:we(st.arguments),deprecationReason:Em(st),astNode:st}}return me}function we(oe){for(var me=oe!=null?oe:[],fe=Object.create(null),se=0;se<me.length;se++){var Ue=me[se],at=Ie(Ue.type);fe[Ue.name.value]={type:at,description:Rs(Ue,r),defaultValue:(0,cj.valueFromAST)(Ue.defaultValue,at),deprecationReason:Em(Ue),astNode:Ue}}return fe}function ot(oe){for(var me=Object.create(null),fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.fields)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct],Dn=Ie(st.type);me[st.name.value]={type:Dn,description:Rs(st,r),defaultValue:(0,cj.valueFromAST)(st.defaultValue,Dn),deprecationReason:Em(st),astNode:st}}return me}function Me(oe){for(var me=Object.create(null),fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.values)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct];me[st.name.value]={description:Rs(st,r),deprecationReason:Em(st),astNode:st}}return me}function Qe(oe){for(var me=[],fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.interfaces)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct];me.push(Ot(st))}return me}function ze(oe){for(var me=[],fe=0;fe<oe.length;fe++)for(var se,Ue=oe[fe],at=(se=Ue.types)!==null&&se!==void 0?se:[],ct=0;ct<at.length;ct++){var st=at[ct];me.push(Ot(st))}return me}function mt(oe){var me,fe=oe.name.value,se=Rs(oe,r),Ue=(me=d[fe])!==null&&me!==void 0?me:[];switch(oe.kind){case Ji.Kind.OBJECT_TYPE_DEFINITION:{var at=Ue,ct=[oe].concat(at);return new pr.GraphQLObjectType({name:fe,description:se,interfaces:function(){return Qe(ct)},fields:function(){return ce(ct)},astNode:oe,extensionASTNodes:at})}case Ji.Kind.INTERFACE_TYPE_DEFINITION:{var st=Ue,Dn=[oe].concat(st);return new pr.GraphQLInterfaceType({name:fe,description:se,interfaces:function(){return Qe(Dn)},fields:function(){return ce(Dn)},astNode:oe,extensionASTNodes:st})}case Ji.Kind.ENUM_TYPE_DEFINITION:{var Ei=Ue,dn=[oe].concat(Ei);return new pr.GraphQLEnumType({name:fe,description:se,values:Me(dn),astNode:oe,extensionASTNodes:Ei})}case Ji.Kind.UNION_TYPE_DEFINITION:{var Hn=Ue,pn=[oe].concat(Hn);return new pr.GraphQLUnionType({name:fe,description:se,types:function(){return ze(pn)},astNode:oe,extensionASTNodes:Hn})}case Ji.Kind.SCALAR_TYPE_DEFINITION:{var Pi=Ue;return new pr.GraphQLScalarType({name:fe,description:se,specifiedByUrl:hj(oe),astNode:oe,extensionASTNodes:Pi})}case Ji.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Qr=Ue,Kt=[oe].concat(Qr);return new pr.GraphQLInputObjectType({name:fe,description:se,fields:function(){return ot(Kt)},astNode:oe,extensionASTNodes:Qr})}}(0,ij.default)(0,"Unexpected type definition node: "+(0,nj.default)(oe))}}var pj=(0,I7.default)(sj.specifiedScalarTypes.concat(lj.introspectionTypes),function(e){return e.name});function Em(e){var t=(0,oj.getDirectiveValues)(_m.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hj(e){var t=(0,oj.getDirectiveValues)(_m.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function Rs(e,t){if(e.description)return e.description.value;if((t==null?void 0:t.commentDescriptions)===!0){var r=q7(e);if(r!==void 0)return(0,j7.dedentBlockStringValue)(`
|
|
`+r)}}function q7(e){var t=e.loc;if(!!t){for(var r=[],n=t.startToken.prev;n!=null&&n.kind===R7.TokenKind.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join(`
|
|
`):void 0}}});var mj=G(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.buildASTSchema=gj;Sm.buildSchema=z7;var V7=H7(Hi()),U7=Jt(),G7=tc(),Q7=mc(),B7=ks(),vj=gi(),K7=Tk();function H7(e){return e&&e.__esModule?e:{default:e}}function gj(e,t){e!=null&&e.kind===U7.Kind.DOCUMENT||(0,V7.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,Q7.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},n=(0,K7.extendSchemaImpl)(r,e,t);if(n.astNode==null)for(var i=0,o=n.types;i<o.length;i++){var s=o[i];switch(s.name){case"Query":n.query=s;break;case"Mutation":n.mutation=s;break;case"Subscription":n.subscription=s;break}}for(var l=n.directives,d=function(y){var b=vj.specifiedDirectives[y];l.every(function(D){return D.name!==b.name})&&l.push(b)},h=0;h<vj.specifiedDirectives.length;h++)d(h);return new B7.GraphQLSchema(n)}function z7(e,t){var r=(0,G7.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacySDLEmptyFields:t==null?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:t==null?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:t==null?void 0:t.experimentalFragmentVariables});return gj(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var bj=G(Sk=>{"use strict";Object.defineProperty(Sk,"__esModule",{value:!0});Sk.lexicographicSortSchema=nJ;var W7=Ep(Ni()),Y7=Ep(jt()),J7=Ep(_n()),X7=Ep(Vd()),Z7=Ep(Ud()),$7=ks(),eJ=gi(),tJ=vi(),ri=bt();function Ep(e){return e&&e.__esModule?e:{default:e}}function yj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yj(Object(r),!0).forEach(function(n){rJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nJ(e){var t=e.toConfig(),r=(0,X7.default)(_k(t.types),function(b){return b.name},y);return new $7.GraphQLSchema(Mr(Mr({},t),{},{types:(0,W7.default)(r),directives:_k(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function n(b){return(0,ri.isListType)(b)?new ri.GraphQLList(n(b.ofType)):(0,ri.isNonNullType)(b)?new ri.GraphQLNonNull(n(b.ofType)):i(b)}function i(b){return r[b.name]}function o(b){return b&&i(b)}function s(b){var D=b.toConfig();return new eJ.GraphQLDirective(Mr(Mr({},D),{},{locations:Ek(D.locations,function(_){return _}),args:l(D.args)}))}function l(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type)})})}function d(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type),args:l(D.args)})})}function h(b){return km(b,function(D){return Mr(Mr({},D),{},{type:n(D.type)})})}function v(b){return _k(b).map(i)}function y(b){if((0,ri.isScalarType)(b)||(0,tJ.isIntrospectionType)(b))return b;if((0,ri.isObjectType)(b)){var D=b.toConfig();return new ri.GraphQLObjectType(Mr(Mr({},D),{},{interfaces:function(){return v(D.interfaces)},fields:function(){return d(D.fields)}}))}if((0,ri.isInterfaceType)(b)){var _=b.toConfig();return new ri.GraphQLInterfaceType(Mr(Mr({},_),{},{interfaces:function(){return v(_.interfaces)},fields:function(){return d(_.fields)}}))}if((0,ri.isUnionType)(b)){var k=b.toConfig();return new ri.GraphQLUnionType(Mr(Mr({},k),{},{types:function(){return v(k.types)}}))}if((0,ri.isEnumType)(b)){var T=b.toConfig();return new ri.GraphQLEnumType(Mr(Mr({},T),{},{values:km(T.values)}))}if((0,ri.isInputObjectType)(b)){var S=b.toConfig();return new ri.GraphQLInputObjectType(Mr(Mr({},S),{},{fields:function(){return h(S.fields)}}))}(0,J7.default)(0,"Unexpected type: "+(0,Y7.default)(b))}}function km(e,t){for(var r=Object.create(null),n=Ek(Object.keys(e),function(l){return l}),i=0;i<n.length;i++){var o=n[i],s=e[o];r[o]=t?t(s):s}return r}function _k(e){return Ek(e,function(t){return t.name})}function Ek(e,t){return e.slice().sort(function(r,n){var i=t(r),o=t(n);return(0,Z7.default)(i,o)})}});var Nj=G(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.printSchema=oJ;Sp.printIntrospectionSchema=uJ;Sp.printType=Sj;var kk=xk(Ni()),iJ=xk(jt()),Tj=xk(_n()),Ok=hi(),aJ=ec(),_j=vi(),wk=Ga(),Nk=gi(),Oc=bt(),Dk=Zd();function xk(e){return e&&e.__esModule?e:{default:e}}function oJ(e,t){return Ej(e,function(r){return!(0,Nk.isSpecifiedDirective)(r)},sJ,t)}function uJ(e,t){return Ej(e,Nk.isSpecifiedDirective,_j.isIntrospectionType,t)}function sJ(e){return!(0,wk.isSpecifiedScalarType)(e)&&!(0,_j.isIntrospectionType)(e)}function Ej(e,t,r,n){var i=e.getDirectives().filter(t),o=(0,kk.default)(e.getTypeMap()).filter(r);return[lJ(e)].concat(i.map(function(s){return mJ(s,n)}),o.map(function(s){return Sj(s,n)})).filter(Boolean).join(`
|
|
|
|
`)+`
|
|
`}function lJ(e){if(!(e.description==null&&cJ(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 i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),Xi({},e)+`schema {
|
|
`.concat(t.join(`
|
|
`),`
|
|
}`)}}function cJ(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 Sj(e,t){if((0,Oc.isScalarType)(e))return fJ(e,t);if((0,Oc.isObjectType)(e))return dJ(e,t);if((0,Oc.isInterfaceType)(e))return pJ(e,t);if((0,Oc.isUnionType)(e))return hJ(e,t);if((0,Oc.isEnumType)(e))return vJ(e,t);if((0,Oc.isInputObjectType)(e))return gJ(e,t);(0,Tj.default)(0,"Unexpected type: "+(0,iJ.default)(e))}function fJ(e,t){return Xi(t,e)+"scalar ".concat(e.name)+yJ(e)}function kj(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function dJ(e,t){return Xi(t,e)+"type ".concat(e.name)+kj(e)+Oj(t,e)}function pJ(e,t){return Xi(t,e)+"interface ".concat(e.name)+kj(e)+Oj(t,e)}function hJ(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return Xi(t,e)+"union "+e.name+n}function vJ(e,t){var r=e.getValues().map(function(n,i){return Xi(t,n," ",!i)+" "+n.name+Ik(n.deprecationReason)});return Xi(t,e)+"enum ".concat(e.name)+Ck(r)}function gJ(e,t){var r=(0,kk.default)(e.getFields()).map(function(n,i){return Xi(t,n," ",!i)+" "+Lk(n)});return Xi(t,e)+"input ".concat(e.name)+Ck(r)}function Oj(e,t){var r=(0,kk.default)(t.getFields()).map(function(n,i){return Xi(e,n," ",!i)+" "+n.name+wj(e,n.args," ")+": "+String(n.type)+Ik(n.deprecationReason)});return Ck(r)}function Ck(e){return e.length!==0?` {
|
|
`+e.join(`
|
|
`)+`
|
|
}`:""}function wj(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(Lk).join(", ")+")":`(
|
|
`+t.map(function(n,i){return Xi(e,n," "+r,!i)+" "+r+Lk(n)}).join(`
|
|
`)+`
|
|
`+r+")"}function Lk(e){var t=(0,Dk.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,Ok.print)(t))),r+Ik(e.deprecationReason)}function mJ(e,t){return Xi(t,e)+"directive @"+e.name+wj(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Ik(e){if(e==null)return"";var t=(0,Dk.astFromValue)(e,wk.GraphQLString);return t&&e!==Nk.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,Ok.print)(t)+")":" @deprecated"}function yJ(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,Dk.astFromValue)(t,wk.GraphQLString);return r||(0,Tj.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,Ok.print)(r)+")"}function Xi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=t.description;if(i==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return bJ(i,r,n);var o=i.length>70,s=(0,aJ.printBlockString)(i,"",o),l=r&&!n?`
|
|
`+r:r;return l+s.replace(/\n/g,`
|
|
`+r)+`
|
|
`}function bJ(e,t,r){var n=t&&!r?`
|
|
`:"",i=e.split(`
|
|
`).map(function(o){return t+(o!==""?"# "+o:"#")}).join(`
|
|
`);return n+i+`
|
|
`}});var Dj=G(Ak=>{"use strict";Object.defineProperty(Ak,"__esModule",{value:!0});Ak.concatAST=TJ;function TJ(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t=t.concat(n.definitions)}return{kind:"Document",definitions:t}}});var Lj=G(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0});Rk.separateOperations=EJ;var Om=Jt(),_J=hu();function EJ(e){for(var t=[],r=Object.create(null),n=0,i=e.definitions;n<i.length;n++){var o=i[n];switch(o.kind){case Om.Kind.OPERATION_DEFINITION:t.push(o);break;case Om.Kind.FRAGMENT_DEFINITION:r[o.name.value]=Cj(o.selectionSet);break}}for(var s=Object.create(null),l=function(v){for(var y=t[v],b=new Set,D=0,_=Cj(y.selectionSet);D<_.length;D++){var k=_[D];xj(b,r,k)}var T=y.name?y.name.value:"";s[T]={kind:Om.Kind.DOCUMENT,definitions:e.definitions.filter(function(S){return S===y||S.kind===Om.Kind.FRAGMENT_DEFINITION&&b.has(S.name.value)})}},d=0;d<t.length;d++)l(d);return s}function xj(e,t,r){if(!e.has(r)){e.add(r);var n=t[r];if(n!==void 0)for(var i=0;i<n.length;i++){var o=n[i];xj(e,t,o)}}}function Cj(e){var t=[];return(0,_J.visit)(e,{FragmentSpread:function(n){t.push(n.name.value)}}),t}});var jj=G(Pk=>{"use strict";Object.defineProperty(Pk,"__esModule",{value:!0});Pk.stripIgnoredCharacters=SJ;var Ij=mg(),jk=Zl(),Aj=Tg(),Rj=ec();function SJ(e){for(var t=(0,Ij.isSource)(e)?e:new Ij.Source(e),r=t.body,n=new Aj.Lexer(t),i="",o=!1;n.advance().kind!==jk.TokenKind.EOF;){var s=n.token,l=s.kind,d=!(0,Aj.isPunctuatorTokenKind)(s.kind);o&&(d||s.kind===jk.TokenKind.SPREAD)&&(i+=" ");var h=r.slice(s.start,s.end);l===jk.TokenKind.BLOCK_STRING?i+=kJ(h):i+=h,o=d}return i}function kJ(e){var t=e.slice(3,-3),r=(0,Rj.dedentBlockStringValue)(t);(0,Rj.getBlockStringIndentation)(r)>0&&(r=`
|
|
`+r);var n=r[r.length-1],i=n==='"'&&r.slice(-4)!=='\\"""';return(i||n==="\\")&&(r+=`
|
|
`),'"""'+r+'"""'}});var Kj=G(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.findBreakingChanges=IJ;xu.findDangerousChanges=AJ;xu.DangerousChangeType=xu.BreakingChangeType=void 0;var wc=kp(Ni()),Pj=kp(vu()),OJ=kp(jt()),Fj=kp(_n()),wJ=kp(Ud()),NJ=hi(),DJ=hu(),xJ=Ga(),Ct=bt(),CJ=Zd();function kp(e){return e&&e.__esModule?e:{default:e}}function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(r),!0).forEach(function(n){LJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qr=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});xu.BreakingChangeType=qr;var Do=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});xu.DangerousChangeType=Do;function IJ(e,t){var r=Vj(e,t).filter(function(n){return n.type in qr});return r}function AJ(e,t){var r=Vj(e,t).filter(function(n){return n.type in Do});return r}function Vj(e,t){return[].concat(jJ(e,t),RJ(e,t))}function RJ(e,t){for(var r=[],n=xo(e.getDirectives(),t.getDirectives()),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:qr.DIRECTIVE_REMOVED,description:"".concat(s.name," was removed.")})}for(var l=0,d=n.persisted;l<d.length;l++){for(var h=d[l],v=h[0],y=h[1],b=xo(v.args,y.args),D=0,_=b.added;D<_.length;D++){var k=_[D];(0,Ct.isRequiredArgument)(k)&&r.push({type:qr.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(k.name," on directive ").concat(v.name," was added.")})}for(var T=0,S=b.removed;T<S.length;T++){var m=S[T];r.push({type:qr.DIRECTIVE_ARG_REMOVED,description:"".concat(m.name," was removed from ").concat(v.name,".")})}v.isRepeatable&&!y.isRepeatable&&r.push({type:qr.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(v.name,".")});for(var w=0,x=v.locations;w<x.length;w++){var L=x[w];y.locations.indexOf(L)===-1&&r.push({type:qr.DIRECTIVE_LOCATION_REMOVED,description:"".concat(L," was removed from ").concat(v.name,".")})}}return r}function jJ(e,t){for(var r=[],n=xo((0,wc.default)(e.getTypeMap()),(0,wc.default)(t.getTypeMap())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:qr.TYPE_REMOVED,description:(0,xJ.isSpecifiedScalarType)(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var l=0,d=n.persisted;l<d.length;l++){var h=d[l],v=h[0],y=h[1];(0,Ct.isEnumType)(v)&&(0,Ct.isEnumType)(y)?r.push.apply(r,MJ(v,y)):(0,Ct.isUnionType)(v)&&(0,Ct.isUnionType)(y)?r.push.apply(r,FJ(v,y)):(0,Ct.isInputObjectType)(v)&&(0,Ct.isInputObjectType)(y)?r.push.apply(r,PJ(v,y)):(0,Ct.isObjectType)(v)&&(0,Ct.isObjectType)(y)||(0,Ct.isInterfaceType)(v)&&(0,Ct.isInterfaceType)(y)?r.push.apply(r,Gj(v,y).concat(Uj(v,y))):v.constructor!==y.constructor&&r.push({type:qr.TYPE_CHANGED_KIND,description:"".concat(v.name," changed from ")+"".concat(Qj(v)," to ").concat(Qj(y),".")})}return r}function PJ(e,t){for(var r=[],n=xo((0,wc.default)(e.getFields()),(0,wc.default)(t.getFields())),i=0,o=n.added;i<o.length;i++){var s=o[i];(0,Ct.isRequiredInputField)(s)?r.push({type:qr.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(s.name," on input type ").concat(e.name," was added.")}):r.push({type:Do.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(s.name," on input type ").concat(e.name," was added.")})}for(var l=0,d=n.removed;l<d.length;l++){var h=d[l];r.push({type:qr.FIELD_REMOVED,description:"".concat(e.name,".").concat(h.name," was removed.")})}for(var v=0,y=n.persisted;v<y.length;v++){var b=y[v],D=b[0],_=b[1],k=wp(D.type,_.type);k||r.push({type:qr.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(D.name," changed type from ")+"".concat(String(D.type)," to ").concat(String(_.type),".")})}return r}function FJ(e,t){for(var r=[],n=xo(e.getTypes(),t.getTypes()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Do.TYPE_ADDED_TO_UNION,description:"".concat(s.name," was added to union type ").concat(e.name,".")})}for(var l=0,d=n.removed;l<d.length;l++){var h=d[l];r.push({type:qr.TYPE_REMOVED_FROM_UNION,description:"".concat(h.name," was removed from union type ").concat(e.name,".")})}return r}function MJ(e,t){for(var r=[],n=xo(e.getValues(),t.getValues()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Do.VALUE_ADDED_TO_ENUM,description:"".concat(s.name," was added to enum type ").concat(e.name,".")})}for(var l=0,d=n.removed;l<d.length;l++){var h=d[l];r.push({type:qr.VALUE_REMOVED_FROM_ENUM,description:"".concat(h.name," was removed from enum type ").concat(e.name,".")})}return r}function Uj(e,t){for(var r=[],n=xo(e.getInterfaces(),t.getInterfaces()),i=0,o=n.added;i<o.length;i++){var s=o[i];r.push({type:Do.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(s.name," added to interfaces implemented by ").concat(e.name,".")})}for(var l=0,d=n.removed;l<d.length;l++){var h=d[l];r.push({type:qr.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(h.name,".")})}return r}function Gj(e,t){for(var r=[],n=xo((0,wc.default)(e.getFields()),(0,wc.default)(t.getFields())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:qr.FIELD_REMOVED,description:"".concat(e.name,".").concat(s.name," was removed.")})}for(var l=0,d=n.persisted;l<d.length;l++){var h=d[l],v=h[0],y=h[1];r.push.apply(r,qJ(e,v,y));var b=Op(v.type,y.type);b||r.push({type:qr.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(v.name," changed type from ")+"".concat(String(v.type)," to ").concat(String(y.type),".")})}return r}function qJ(e,t,r){for(var n=[],i=xo(t.args,r.args),o=0,s=i.removed;o<s.length;o++){var l=s[o];n.push({type:qr.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(l.name," was removed.")})}for(var d=0,h=i.persisted;d<h.length;d++){var v=h[d],y=v[0],b=v[1],D=wp(y.type,b.type);if(!D)n.push({type:qr.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(y.name," has changed type from ")+"".concat(String(y.type)," to ").concat(String(b.type),".")});else if(y.defaultValue!==void 0)if(b.defaultValue===void 0)n.push({type:Do.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(y.name," defaultValue was removed.")});else{var _=Bj(y.defaultValue,y.type),k=Bj(b.defaultValue,b.type);_!==k&&n.push({type:Do.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(y.name," has changed defaultValue from ").concat(_," to ").concat(k,".")})}}for(var T=0,S=i.added;T<S.length;T++){var m=S[T];(0,Ct.isRequiredArgument)(m)?n.push({type:qr.REQUIRED_ARG_ADDED,description:"A required arg ".concat(m.name," on ").concat(e.name,".").concat(t.name," was added.")}):n.push({type:Do.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(m.name," on ").concat(e.name,".").concat(t.name," was added.")})}return n}function Op(e,t){return(0,Ct.isListType)(e)?(0,Ct.isListType)(t)&&Op(e.ofType,t.ofType)||(0,Ct.isNonNullType)(t)&&Op(e,t.ofType):(0,Ct.isNonNullType)(e)?(0,Ct.isNonNullType)(t)&&Op(e.ofType,t.ofType):(0,Ct.isNamedType)(t)&&e.name===t.name||(0,Ct.isNonNullType)(t)&&Op(e,t.ofType)}function wp(e,t){return(0,Ct.isListType)(e)?(0,Ct.isListType)(t)&&wp(e.ofType,t.ofType):(0,Ct.isNonNullType)(e)?(0,Ct.isNonNullType)(t)&&wp(e.ofType,t.ofType)||!(0,Ct.isNonNullType)(t)&&wp(e.ofType,t):(0,Ct.isNamedType)(t)&&e.name===t.name}function Qj(e){if((0,Ct.isScalarType)(e))return"a Scalar type";if((0,Ct.isObjectType)(e))return"an Object type";if((0,Ct.isInterfaceType)(e))return"an Interface type";if((0,Ct.isUnionType)(e))return"a Union type";if((0,Ct.isEnumType)(e))return"an Enum type";if((0,Ct.isInputObjectType)(e))return"an Input type";(0,Fj.default)(0,"Unexpected type: "+(0,OJ.default)(e))}function Bj(e,t){var r=(0,CJ.astFromValue)(e,t);r!=null||(0,Fj.default)(0);var n=(0,DJ.visit)(r,{ObjectValue:function(o){var s=[].concat(o.fields);return s.sort(function(l,d){return(0,wJ.default)(l.name.value,d.name.value)}),qj(qj({},o),{},{fields:s})}});return(0,NJ.print)(n)}function xo(e,t){for(var r=[],n=[],i=[],o=(0,Pj.default)(e,function(b){var D=b.name;return D}),s=(0,Pj.default)(t,function(b){var D=b.name;return D}),l=0;l<e.length;l++){var d=e[l],h=s[d.name];h===void 0?n.push(d):i.push([d,h])}for(var v=0;v<t.length;v++){var y=t[v];o[y.name]===void 0&&r.push(y)}return{added:r,persisted:i,removed:n}}});var Hj=G(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.findDeprecatedUsages=GJ;var VJ=mc(),UJ=fk();function GJ(e,t){return(0,VJ.validate)(e,t,[UJ.NoDeprecatedCustomRule])}});var Xj=G(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});Object.defineProperty(yt,"getIntrospectionQuery",{enumerable:!0,get:function(){return QJ.getIntrospectionQuery}});Object.defineProperty(yt,"getOperationAST",{enumerable:!0,get:function(){return BJ.getOperationAST}});Object.defineProperty(yt,"getOperationRootType",{enumerable:!0,get:function(){return KJ.getOperationRootType}});Object.defineProperty(yt,"introspectionFromSchema",{enumerable:!0,get:function(){return HJ.introspectionFromSchema}});Object.defineProperty(yt,"buildClientSchema",{enumerable:!0,get:function(){return zJ.buildClientSchema}});Object.defineProperty(yt,"buildASTSchema",{enumerable:!0,get:function(){return zj.buildASTSchema}});Object.defineProperty(yt,"buildSchema",{enumerable:!0,get:function(){return zj.buildSchema}});Object.defineProperty(yt,"extendSchema",{enumerable:!0,get:function(){return Wj.extendSchema}});Object.defineProperty(yt,"getDescription",{enumerable:!0,get:function(){return Wj.getDescription}});Object.defineProperty(yt,"lexicographicSortSchema",{enumerable:!0,get:function(){return WJ.lexicographicSortSchema}});Object.defineProperty(yt,"printSchema",{enumerable:!0,get:function(){return Mk.printSchema}});Object.defineProperty(yt,"printType",{enumerable:!0,get:function(){return Mk.printType}});Object.defineProperty(yt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Mk.printIntrospectionSchema}});Object.defineProperty(yt,"typeFromAST",{enumerable:!0,get:function(){return YJ.typeFromAST}});Object.defineProperty(yt,"valueFromAST",{enumerable:!0,get:function(){return JJ.valueFromAST}});Object.defineProperty(yt,"valueFromASTUntyped",{enumerable:!0,get:function(){return XJ.valueFromASTUntyped}});Object.defineProperty(yt,"astFromValue",{enumerable:!0,get:function(){return ZJ.astFromValue}});Object.defineProperty(yt,"TypeInfo",{enumerable:!0,get:function(){return Yj.TypeInfo}});Object.defineProperty(yt,"visitWithTypeInfo",{enumerable:!0,get:function(){return Yj.visitWithTypeInfo}});Object.defineProperty(yt,"coerceInputValue",{enumerable:!0,get:function(){return $J.coerceInputValue}});Object.defineProperty(yt,"concatAST",{enumerable:!0,get:function(){return eX.concatAST}});Object.defineProperty(yt,"separateOperations",{enumerable:!0,get:function(){return tX.separateOperations}});Object.defineProperty(yt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return rX.stripIgnoredCharacters}});Object.defineProperty(yt,"isEqualType",{enumerable:!0,get:function(){return qk.isEqualType}});Object.defineProperty(yt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return qk.isTypeSubTypeOf}});Object.defineProperty(yt,"doTypesOverlap",{enumerable:!0,get:function(){return qk.doTypesOverlap}});Object.defineProperty(yt,"assertValidName",{enumerable:!0,get:function(){return Jj.assertValidName}});Object.defineProperty(yt,"isValidNameError",{enumerable:!0,get:function(){return Jj.isValidNameError}});Object.defineProperty(yt,"BreakingChangeType",{enumerable:!0,get:function(){return wm.BreakingChangeType}});Object.defineProperty(yt,"DangerousChangeType",{enumerable:!0,get:function(){return wm.DangerousChangeType}});Object.defineProperty(yt,"findBreakingChanges",{enumerable:!0,get:function(){return wm.findBreakingChanges}});Object.defineProperty(yt,"findDangerousChanges",{enumerable:!0,get:function(){return wm.findDangerousChanges}});Object.defineProperty(yt,"findDeprecatedUsages",{enumerable:!0,get:function(){return nX.findDeprecatedUsages}});var QJ=vk(),BJ=mk(),KJ=um(),HJ=ej(),zJ=rj(),zj=mj(),Wj=Tk(),WJ=bj(),Mk=Nj(),YJ=Qa(),JJ=lp(),XJ=M_(),ZJ=Zd(),Yj=zg(),$J=XS(),eX=Dj(),tX=Lj(),rX=jj(),qk=Hd(),Jj=S_(),wm=Kj(),nX=Hj()});var ht=G(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Object.defineProperty(Z,"version",{enumerable:!0,get:function(){return Zj.version}});Object.defineProperty(Z,"versionInfo",{enumerable:!0,get:function(){return Zj.versionInfo}});Object.defineProperty(Z,"graphql",{enumerable:!0,get:function(){return $j.graphql}});Object.defineProperty(Z,"graphqlSync",{enumerable:!0,get:function(){return $j.graphqlSync}});Object.defineProperty(Z,"GraphQLSchema",{enumerable:!0,get:function(){return Oe.GraphQLSchema}});Object.defineProperty(Z,"GraphQLDirective",{enumerable:!0,get:function(){return Oe.GraphQLDirective}});Object.defineProperty(Z,"GraphQLScalarType",{enumerable:!0,get:function(){return Oe.GraphQLScalarType}});Object.defineProperty(Z,"GraphQLObjectType",{enumerable:!0,get:function(){return Oe.GraphQLObjectType}});Object.defineProperty(Z,"GraphQLInterfaceType",{enumerable:!0,get:function(){return Oe.GraphQLInterfaceType}});Object.defineProperty(Z,"GraphQLUnionType",{enumerable:!0,get:function(){return Oe.GraphQLUnionType}});Object.defineProperty(Z,"GraphQLEnumType",{enumerable:!0,get:function(){return Oe.GraphQLEnumType}});Object.defineProperty(Z,"GraphQLInputObjectType",{enumerable:!0,get:function(){return Oe.GraphQLInputObjectType}});Object.defineProperty(Z,"GraphQLList",{enumerable:!0,get:function(){return Oe.GraphQLList}});Object.defineProperty(Z,"GraphQLNonNull",{enumerable:!0,get:function(){return Oe.GraphQLNonNull}});Object.defineProperty(Z,"specifiedScalarTypes",{enumerable:!0,get:function(){return Oe.specifiedScalarTypes}});Object.defineProperty(Z,"GraphQLInt",{enumerable:!0,get:function(){return Oe.GraphQLInt}});Object.defineProperty(Z,"GraphQLFloat",{enumerable:!0,get:function(){return Oe.GraphQLFloat}});Object.defineProperty(Z,"GraphQLString",{enumerable:!0,get:function(){return Oe.GraphQLString}});Object.defineProperty(Z,"GraphQLBoolean",{enumerable:!0,get:function(){return Oe.GraphQLBoolean}});Object.defineProperty(Z,"GraphQLID",{enumerable:!0,get:function(){return Oe.GraphQLID}});Object.defineProperty(Z,"specifiedDirectives",{enumerable:!0,get:function(){return Oe.specifiedDirectives}});Object.defineProperty(Z,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Oe.GraphQLIncludeDirective}});Object.defineProperty(Z,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Oe.GraphQLSkipDirective}});Object.defineProperty(Z,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Oe.GraphQLDeprecatedDirective}});Object.defineProperty(Z,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Oe.GraphQLSpecifiedByDirective}});Object.defineProperty(Z,"TypeKind",{enumerable:!0,get:function(){return Oe.TypeKind}});Object.defineProperty(Z,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Oe.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(Z,"introspectionTypes",{enumerable:!0,get:function(){return Oe.introspectionTypes}});Object.defineProperty(Z,"__Schema",{enumerable:!0,get:function(){return Oe.__Schema}});Object.defineProperty(Z,"__Directive",{enumerable:!0,get:function(){return Oe.__Directive}});Object.defineProperty(Z,"__DirectiveLocation",{enumerable:!0,get:function(){return Oe.__DirectiveLocation}});Object.defineProperty(Z,"__Type",{enumerable:!0,get:function(){return Oe.__Type}});Object.defineProperty(Z,"__Field",{enumerable:!0,get:function(){return Oe.__Field}});Object.defineProperty(Z,"__InputValue",{enumerable:!0,get:function(){return Oe.__InputValue}});Object.defineProperty(Z,"__EnumValue",{enumerable:!0,get:function(){return Oe.__EnumValue}});Object.defineProperty(Z,"__TypeKind",{enumerable:!0,get:function(){return Oe.__TypeKind}});Object.defineProperty(Z,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Oe.SchemaMetaFieldDef}});Object.defineProperty(Z,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeMetaFieldDef}});Object.defineProperty(Z,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Oe.TypeNameMetaFieldDef}});Object.defineProperty(Z,"isSchema",{enumerable:!0,get:function(){return Oe.isSchema}});Object.defineProperty(Z,"isDirective",{enumerable:!0,get:function(){return Oe.isDirective}});Object.defineProperty(Z,"isType",{enumerable:!0,get:function(){return Oe.isType}});Object.defineProperty(Z,"isScalarType",{enumerable:!0,get:function(){return Oe.isScalarType}});Object.defineProperty(Z,"isObjectType",{enumerable:!0,get:function(){return Oe.isObjectType}});Object.defineProperty(Z,"isInterfaceType",{enumerable:!0,get:function(){return Oe.isInterfaceType}});Object.defineProperty(Z,"isUnionType",{enumerable:!0,get:function(){return Oe.isUnionType}});Object.defineProperty(Z,"isEnumType",{enumerable:!0,get:function(){return Oe.isEnumType}});Object.defineProperty(Z,"isInputObjectType",{enumerable:!0,get:function(){return Oe.isInputObjectType}});Object.defineProperty(Z,"isListType",{enumerable:!0,get:function(){return Oe.isListType}});Object.defineProperty(Z,"isNonNullType",{enumerable:!0,get:function(){return Oe.isNonNullType}});Object.defineProperty(Z,"isInputType",{enumerable:!0,get:function(){return Oe.isInputType}});Object.defineProperty(Z,"isOutputType",{enumerable:!0,get:function(){return Oe.isOutputType}});Object.defineProperty(Z,"isLeafType",{enumerable:!0,get:function(){return Oe.isLeafType}});Object.defineProperty(Z,"isCompositeType",{enumerable:!0,get:function(){return Oe.isCompositeType}});Object.defineProperty(Z,"isAbstractType",{enumerable:!0,get:function(){return Oe.isAbstractType}});Object.defineProperty(Z,"isWrappingType",{enumerable:!0,get:function(){return Oe.isWrappingType}});Object.defineProperty(Z,"isNullableType",{enumerable:!0,get:function(){return Oe.isNullableType}});Object.defineProperty(Z,"isNamedType",{enumerable:!0,get:function(){return Oe.isNamedType}});Object.defineProperty(Z,"isRequiredArgument",{enumerable:!0,get:function(){return Oe.isRequiredArgument}});Object.defineProperty(Z,"isRequiredInputField",{enumerable:!0,get:function(){return Oe.isRequiredInputField}});Object.defineProperty(Z,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Oe.isSpecifiedScalarType}});Object.defineProperty(Z,"isIntrospectionType",{enumerable:!0,get:function(){return Oe.isIntrospectionType}});Object.defineProperty(Z,"isSpecifiedDirective",{enumerable:!0,get:function(){return Oe.isSpecifiedDirective}});Object.defineProperty(Z,"assertSchema",{enumerable:!0,get:function(){return Oe.assertSchema}});Object.defineProperty(Z,"assertDirective",{enumerable:!0,get:function(){return Oe.assertDirective}});Object.defineProperty(Z,"assertType",{enumerable:!0,get:function(){return Oe.assertType}});Object.defineProperty(Z,"assertScalarType",{enumerable:!0,get:function(){return Oe.assertScalarType}});Object.defineProperty(Z,"assertObjectType",{enumerable:!0,get:function(){return Oe.assertObjectType}});Object.defineProperty(Z,"assertInterfaceType",{enumerable:!0,get:function(){return Oe.assertInterfaceType}});Object.defineProperty(Z,"assertUnionType",{enumerable:!0,get:function(){return Oe.assertUnionType}});Object.defineProperty(Z,"assertEnumType",{enumerable:!0,get:function(){return Oe.assertEnumType}});Object.defineProperty(Z,"assertInputObjectType",{enumerable:!0,get:function(){return Oe.assertInputObjectType}});Object.defineProperty(Z,"assertListType",{enumerable:!0,get:function(){return Oe.assertListType}});Object.defineProperty(Z,"assertNonNullType",{enumerable:!0,get:function(){return Oe.assertNonNullType}});Object.defineProperty(Z,"assertInputType",{enumerable:!0,get:function(){return Oe.assertInputType}});Object.defineProperty(Z,"assertOutputType",{enumerable:!0,get:function(){return Oe.assertOutputType}});Object.defineProperty(Z,"assertLeafType",{enumerable:!0,get:function(){return Oe.assertLeafType}});Object.defineProperty(Z,"assertCompositeType",{enumerable:!0,get:function(){return Oe.assertCompositeType}});Object.defineProperty(Z,"assertAbstractType",{enumerable:!0,get:function(){return Oe.assertAbstractType}});Object.defineProperty(Z,"assertWrappingType",{enumerable:!0,get:function(){return Oe.assertWrappingType}});Object.defineProperty(Z,"assertNullableType",{enumerable:!0,get:function(){return Oe.assertNullableType}});Object.defineProperty(Z,"assertNamedType",{enumerable:!0,get:function(){return Oe.assertNamedType}});Object.defineProperty(Z,"getNullableType",{enumerable:!0,get:function(){return Oe.getNullableType}});Object.defineProperty(Z,"getNamedType",{enumerable:!0,get:function(){return Oe.getNamedType}});Object.defineProperty(Z,"validateSchema",{enumerable:!0,get:function(){return Oe.validateSchema}});Object.defineProperty(Z,"assertValidSchema",{enumerable:!0,get:function(){return Oe.assertValidSchema}});Object.defineProperty(Z,"Token",{enumerable:!0,get:function(){return Xt.Token}});Object.defineProperty(Z,"Source",{enumerable:!0,get:function(){return Xt.Source}});Object.defineProperty(Z,"Location",{enumerable:!0,get:function(){return Xt.Location}});Object.defineProperty(Z,"getLocation",{enumerable:!0,get:function(){return Xt.getLocation}});Object.defineProperty(Z,"printLocation",{enumerable:!0,get:function(){return Xt.printLocation}});Object.defineProperty(Z,"printSourceLocation",{enumerable:!0,get:function(){return Xt.printSourceLocation}});Object.defineProperty(Z,"Lexer",{enumerable:!0,get:function(){return Xt.Lexer}});Object.defineProperty(Z,"TokenKind",{enumerable:!0,get:function(){return Xt.TokenKind}});Object.defineProperty(Z,"parse",{enumerable:!0,get:function(){return Xt.parse}});Object.defineProperty(Z,"parseValue",{enumerable:!0,get:function(){return Xt.parseValue}});Object.defineProperty(Z,"parseType",{enumerable:!0,get:function(){return Xt.parseType}});Object.defineProperty(Z,"print",{enumerable:!0,get:function(){return Xt.print}});Object.defineProperty(Z,"visit",{enumerable:!0,get:function(){return Xt.visit}});Object.defineProperty(Z,"visitInParallel",{enumerable:!0,get:function(){return Xt.visitInParallel}});Object.defineProperty(Z,"getVisitFn",{enumerable:!0,get:function(){return Xt.getVisitFn}});Object.defineProperty(Z,"BREAK",{enumerable:!0,get:function(){return Xt.BREAK}});Object.defineProperty(Z,"Kind",{enumerable:!0,get:function(){return Xt.Kind}});Object.defineProperty(Z,"DirectiveLocation",{enumerable:!0,get:function(){return Xt.DirectiveLocation}});Object.defineProperty(Z,"isDefinitionNode",{enumerable:!0,get:function(){return Xt.isDefinitionNode}});Object.defineProperty(Z,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Xt.isExecutableDefinitionNode}});Object.defineProperty(Z,"isSelectionNode",{enumerable:!0,get:function(){return Xt.isSelectionNode}});Object.defineProperty(Z,"isValueNode",{enumerable:!0,get:function(){return Xt.isValueNode}});Object.defineProperty(Z,"isTypeNode",{enumerable:!0,get:function(){return Xt.isTypeNode}});Object.defineProperty(Z,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemDefinitionNode}});Object.defineProperty(Z,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Xt.isTypeDefinitionNode}});Object.defineProperty(Z,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeSystemExtensionNode}});Object.defineProperty(Z,"isTypeExtensionNode",{enumerable:!0,get:function(){return Xt.isTypeExtensionNode}});Object.defineProperty(Z,"execute",{enumerable:!0,get:function(){return Nc.execute}});Object.defineProperty(Z,"executeSync",{enumerable:!0,get:function(){return Nc.executeSync}});Object.defineProperty(Z,"defaultFieldResolver",{enumerable:!0,get:function(){return Nc.defaultFieldResolver}});Object.defineProperty(Z,"defaultTypeResolver",{enumerable:!0,get:function(){return Nc.defaultTypeResolver}});Object.defineProperty(Z,"responsePathAsArray",{enumerable:!0,get:function(){return Nc.responsePathAsArray}});Object.defineProperty(Z,"getDirectiveValues",{enumerable:!0,get:function(){return Nc.getDirectiveValues}});Object.defineProperty(Z,"subscribe",{enumerable:!0,get:function(){return eP.subscribe}});Object.defineProperty(Z,"createSourceEventStream",{enumerable:!0,get:function(){return eP.createSourceEventStream}});Object.defineProperty(Z,"validate",{enumerable:!0,get:function(){return pt.validate}});Object.defineProperty(Z,"ValidationContext",{enumerable:!0,get:function(){return pt.ValidationContext}});Object.defineProperty(Z,"specifiedRules",{enumerable:!0,get:function(){return pt.specifiedRules}});Object.defineProperty(Z,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return pt.ExecutableDefinitionsRule}});Object.defineProperty(Z,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return pt.FieldsOnCorrectTypeRule}});Object.defineProperty(Z,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return pt.FragmentsOnCompositeTypesRule}});Object.defineProperty(Z,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return pt.KnownArgumentNamesRule}});Object.defineProperty(Z,"KnownDirectivesRule",{enumerable:!0,get:function(){return pt.KnownDirectivesRule}});Object.defineProperty(Z,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return pt.KnownFragmentNamesRule}});Object.defineProperty(Z,"KnownTypeNamesRule",{enumerable:!0,get:function(){return pt.KnownTypeNamesRule}});Object.defineProperty(Z,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return pt.LoneAnonymousOperationRule}});Object.defineProperty(Z,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return pt.NoFragmentCyclesRule}});Object.defineProperty(Z,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return pt.NoUndefinedVariablesRule}});Object.defineProperty(Z,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return pt.NoUnusedFragmentsRule}});Object.defineProperty(Z,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return pt.NoUnusedVariablesRule}});Object.defineProperty(Z,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return pt.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(Z,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return pt.PossibleFragmentSpreadsRule}});Object.defineProperty(Z,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return pt.ProvidedRequiredArgumentsRule}});Object.defineProperty(Z,"ScalarLeafsRule",{enumerable:!0,get:function(){return pt.ScalarLeafsRule}});Object.defineProperty(Z,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return pt.SingleFieldSubscriptionsRule}});Object.defineProperty(Z,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return pt.UniqueArgumentNamesRule}});Object.defineProperty(Z,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return pt.UniqueDirectivesPerLocationRule}});Object.defineProperty(Z,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return pt.UniqueFragmentNamesRule}});Object.defineProperty(Z,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return pt.UniqueInputFieldNamesRule}});Object.defineProperty(Z,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return pt.UniqueOperationNamesRule}});Object.defineProperty(Z,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return pt.UniqueVariableNamesRule}});Object.defineProperty(Z,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return pt.ValuesOfCorrectTypeRule}});Object.defineProperty(Z,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return pt.VariablesAreInputTypesRule}});Object.defineProperty(Z,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return pt.VariablesInAllowedPositionRule}});Object.defineProperty(Z,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return pt.LoneSchemaDefinitionRule}});Object.defineProperty(Z,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return pt.UniqueOperationTypesRule}});Object.defineProperty(Z,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return pt.UniqueTypeNamesRule}});Object.defineProperty(Z,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return pt.UniqueEnumValueNamesRule}});Object.defineProperty(Z,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return pt.UniqueFieldDefinitionNamesRule}});Object.defineProperty(Z,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return pt.UniqueDirectiveNamesRule}});Object.defineProperty(Z,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return pt.PossibleTypeExtensionsRule}});Object.defineProperty(Z,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return pt.NoDeprecatedCustomRule}});Object.defineProperty(Z,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return pt.NoSchemaIntrospectionCustomRule}});Object.defineProperty(Z,"GraphQLError",{enumerable:!0,get:function(){return Np.GraphQLError}});Object.defineProperty(Z,"syntaxError",{enumerable:!0,get:function(){return Np.syntaxError}});Object.defineProperty(Z,"locatedError",{enumerable:!0,get:function(){return Np.locatedError}});Object.defineProperty(Z,"printError",{enumerable:!0,get:function(){return Np.printError}});Object.defineProperty(Z,"formatError",{enumerable:!0,get:function(){return Np.formatError}});Object.defineProperty(Z,"getIntrospectionQuery",{enumerable:!0,get:function(){return St.getIntrospectionQuery}});Object.defineProperty(Z,"getOperationAST",{enumerable:!0,get:function(){return St.getOperationAST}});Object.defineProperty(Z,"getOperationRootType",{enumerable:!0,get:function(){return St.getOperationRootType}});Object.defineProperty(Z,"introspectionFromSchema",{enumerable:!0,get:function(){return St.introspectionFromSchema}});Object.defineProperty(Z,"buildClientSchema",{enumerable:!0,get:function(){return St.buildClientSchema}});Object.defineProperty(Z,"buildASTSchema",{enumerable:!0,get:function(){return St.buildASTSchema}});Object.defineProperty(Z,"buildSchema",{enumerable:!0,get:function(){return St.buildSchema}});Object.defineProperty(Z,"getDescription",{enumerable:!0,get:function(){return St.getDescription}});Object.defineProperty(Z,"extendSchema",{enumerable:!0,get:function(){return St.extendSchema}});Object.defineProperty(Z,"lexicographicSortSchema",{enumerable:!0,get:function(){return St.lexicographicSortSchema}});Object.defineProperty(Z,"printSchema",{enumerable:!0,get:function(){return St.printSchema}});Object.defineProperty(Z,"printType",{enumerable:!0,get:function(){return St.printType}});Object.defineProperty(Z,"printIntrospectionSchema",{enumerable:!0,get:function(){return St.printIntrospectionSchema}});Object.defineProperty(Z,"typeFromAST",{enumerable:!0,get:function(){return St.typeFromAST}});Object.defineProperty(Z,"valueFromAST",{enumerable:!0,get:function(){return St.valueFromAST}});Object.defineProperty(Z,"valueFromASTUntyped",{enumerable:!0,get:function(){return St.valueFromASTUntyped}});Object.defineProperty(Z,"astFromValue",{enumerable:!0,get:function(){return St.astFromValue}});Object.defineProperty(Z,"TypeInfo",{enumerable:!0,get:function(){return St.TypeInfo}});Object.defineProperty(Z,"visitWithTypeInfo",{enumerable:!0,get:function(){return St.visitWithTypeInfo}});Object.defineProperty(Z,"coerceInputValue",{enumerable:!0,get:function(){return St.coerceInputValue}});Object.defineProperty(Z,"concatAST",{enumerable:!0,get:function(){return St.concatAST}});Object.defineProperty(Z,"separateOperations",{enumerable:!0,get:function(){return St.separateOperations}});Object.defineProperty(Z,"stripIgnoredCharacters",{enumerable:!0,get:function(){return St.stripIgnoredCharacters}});Object.defineProperty(Z,"isEqualType",{enumerable:!0,get:function(){return St.isEqualType}});Object.defineProperty(Z,"isTypeSubTypeOf",{enumerable:!0,get:function(){return St.isTypeSubTypeOf}});Object.defineProperty(Z,"doTypesOverlap",{enumerable:!0,get:function(){return St.doTypesOverlap}});Object.defineProperty(Z,"assertValidName",{enumerable:!0,get:function(){return St.assertValidName}});Object.defineProperty(Z,"isValidNameError",{enumerable:!0,get:function(){return St.isValidNameError}});Object.defineProperty(Z,"BreakingChangeType",{enumerable:!0,get:function(){return St.BreakingChangeType}});Object.defineProperty(Z,"DangerousChangeType",{enumerable:!0,get:function(){return St.DangerousChangeType}});Object.defineProperty(Z,"findBreakingChanges",{enumerable:!0,get:function(){return St.findBreakingChanges}});Object.defineProperty(Z,"findDangerousChanges",{enumerable:!0,get:function(){return St.findDangerousChanges}});Object.defineProperty(Z,"findDeprecatedUsages",{enumerable:!0,get:function(){return St.findDeprecatedUsages}});var Zj=m1(),$j=wR(),Oe=DR(),Xt=LR(),Nc=IR(),eP=HR(),pt=WR(),Np=XR(),St=Xj()});var rP=G((Xoe,tP)=>{tP.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}});var aP=G((Zoe,iP)=>{"use strict";var iX=rP(),nP={"text/plain":"Text","text/html":"Url",default:"Text"},aX="Copy to clipboard: #{key}, Enter";function oX(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function uX(e,t){var r,n,i,o,s,l,d=!1;t||(t={}),r=t.debug||!1;try{i=iX(),o=document.createRange(),s=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(v){if(v.stopPropagation(),t.format)if(v.preventDefault(),typeof v.clipboardData=="undefined"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=nP[t.format]||nP.default;window.clipboardData.setData(y,e)}else v.clipboardData.clearData(),v.clipboardData.setData(t.format,e);t.onCopy&&(v.preventDefault(),t.onCopy(v.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(v){r&&console.error("unable to copy using execCommand: ",v),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(y){r&&console.error("unable to copy using clipboardData: ",y),r&&console.error("falling back to prompt"),n=oX("message"in t?t.message:aX),window.prompt(n,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return d}iP.exports=uX});var Xk=G((Oue,Fm)=>{"use strict";function aF(e,t){if(e!=null)return e;var r=new Error(t!==void 0?t:"Got unexpected "+e);throw r.framesToPop=1,r}Fm.exports=aF;Fm.exports.default=aF;Object.defineProperty(Fm.exports,"__esModule",{value:!0})});var pF=G((Nse,xX)=>{xX.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 oO=G((Dse,hF)=>{"use strict";hF.exports=pF()});var Gm=G((xse,vF)=>{vF.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 yF=G((Cse,mF)=>{"use strict";var gF={};function CX(e){var t,r,n=gF[e];if(n)return n;for(n=gF[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<e.length;t++)n[e.charCodeAt(t)]=e[t];return n}function Qm(e,t,r){var n,i,o,s,l,d="";for(typeof t!="string"&&(r=t,t=Qm.defaultChars),typeof r=="undefined"&&(r=!0),l=CX(t),n=0,i=e.length;n<i;n++){if(o=e.charCodeAt(n),r&&o===37&&n+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(n+1,n+3))){d+=e.slice(n,n+3),n+=2;continue}if(o<128){d+=l[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1<i&&(s=e.charCodeAt(n+1),s>=56320&&s<=57343)){d+=encodeURIComponent(e[n]+e[n+1]),n++;continue}d+="%EF%BF%BD";continue}d+=encodeURIComponent(e[n])}return d}Qm.defaultChars=";/?:@&=+$,-_.!~*'()#";Qm.componentChars="-_.!~*'()";mF.exports=Qm});var _F=G((Lse,TF)=>{"use strict";var bF={};function LX(e){var t,r,n=bF[e];if(n)return n;for(n=bF[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),n.push(r);for(t=0;t<e.length;t++)r=e.charCodeAt(t),n[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}function Bm(e,t){var r;return typeof t!="string"&&(t=Bm.defaultChars),r=LX(t),e.replace(/(%[a-f0-9]{2})+/gi,function(n){var i,o,s,l,d,h,v,y="";for(i=0,o=n.length;i<o;i+=3){if(s=parseInt(n.slice(i+1,i+3),16),s<128){y+=r[s];continue}if((s&224)==192&&i+3<o&&(l=parseInt(n.slice(i+4,i+6),16),(l&192)==128)){v=s<<6&1984|l&63,v<128?y+="\uFFFD\uFFFD":y+=String.fromCharCode(v),i+=3;continue}if((s&240)==224&&i+6<o&&(l=parseInt(n.slice(i+4,i+6),16),d=parseInt(n.slice(i+7,i+9),16),(l&192)==128&&(d&192)==128)){v=s<<12&61440|l<<6&4032|d&63,v<2048||v>=55296&&v<=57343?y+="\uFFFD\uFFFD\uFFFD":y+=String.fromCharCode(v),i+=6;continue}if((s&248)==240&&i+9<o&&(l=parseInt(n.slice(i+4,i+6),16),d=parseInt(n.slice(i+7,i+9),16),h=parseInt(n.slice(i+10,i+12),16),(l&192)==128&&(d&192)==128&&(h&192)==128)){v=s<<18&1835008|l<<12&258048|d<<6&4032|h&63,v<65536||v>1114111?y+="\uFFFD\uFFFD\uFFFD\uFFFD":(v-=65536,y+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),i+=9;continue}y+="\uFFFD"}return y})}Bm.defaultChars=";/?:@&=+$,#";Bm.componentChars="";TF.exports=Bm});var SF=G((Ise,EF)=>{"use strict";EF.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 CF=G((Ase,xF)=>{"use strict";function Km(){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 IX=/^([a-z0-9.+-]+:)/i,AX=/:[0-9]*$/,RX=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,jX=["<",">",'"',"`"," ","\r",`
|
|
`," "],PX=["{","}","|","\\","^","`"].concat(jX),FX=["'"].concat(PX),kF=["%","/","?",";","#"].concat(FX),OF=["/","?","#"],MX=255,wF=/^[+a-z0-9A-Z_-]{0,63}$/,qX=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,NF={javascript:!0,"javascript:":!0},DF={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function VX(e,t){if(e&&e instanceof Km)return e;var r=new Km;return r.parse(e,t),r}Km.prototype.parse=function(e,t){var r,n,i,o,s,l=e;if(l=l.trim(),!t&&e.split("#").length===1){var d=RX.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var h=IX.exec(l);if(h&&(h=h[0],i=h.toLowerCase(),this.protocol=h,l=l.substr(h.length)),(t||h||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=l.substr(0,2)==="//",s&&!(h&&NF[h])&&(l=l.substr(2),this.slashes=!0)),!NF[h]&&(s||h&&!DF[h])){var v=-1;for(r=0;r<OF.length;r++)o=l.indexOf(OF[r]),o!==-1&&(v===-1||o<v)&&(v=o);var y,b;for(v===-1?b=l.lastIndexOf("@"):b=l.lastIndexOf("@",v),b!==-1&&(y=l.slice(0,b),l=l.slice(b+1),this.auth=y),v=-1,r=0;r<kF.length;r++)o=l.indexOf(kF[r]),o!==-1&&(v===-1||o<v)&&(v=o);v===-1&&(v=l.length),l[v-1]===":"&&v--;var D=l.slice(0,v);l=l.slice(v),this.parseHost(D),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){var k=this.hostname.split(/\./);for(r=0,n=k.length;r<n;r++){var T=k[r];if(!!T&&!T.match(wF)){for(var S="",m=0,w=T.length;m<w;m++)T.charCodeAt(m)>127?S+="x":S+=T[m];if(!S.match(wF)){var x=k.slice(0,r),L=k.slice(r+1),O=T.match(qX);O&&(x.push(O[1]),L.unshift(O[2])),L.length&&(l=L.join(".")+l),this.hostname=x.join(".");break}}}}this.hostname.length>MX&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var R=l.indexOf("#");R!==-1&&(this.hash=l.substr(R),l=l.slice(0,R));var M=l.indexOf("?");return M!==-1&&(this.search=l.substr(M),l=l.slice(0,M)),l&&(this.pathname=l),DF[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Km.prototype.parseHost=function(e){var t=AX.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};xF.exports=VX});var uO=G((Rse,Rp)=>{"use strict";Rp.exports.encode=yF();Rp.exports.decode=_F();Rp.exports.format=SF();Rp.exports.parse=CF()});var sO=G((jse,LF)=>{LF.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var lO=G((Pse,IF)=>{IF.exports=/[\0-\x1F\x7F-\x9F]/});var RF=G((Fse,AF)=>{AF.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 cO=G((Mse,jF)=>{jF.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var PF=G(Ic=>{"use strict";Ic.Any=sO();Ic.Cc=lO();Ic.Cf=RF();Ic.P=Gm();Ic.Z=cO()});var Pt=G(en=>{"use strict";function UX(e){return Object.prototype.toString.call(e)}function GX(e){return UX(e)==="[object String]"}var QX=Object.prototype.hasOwnProperty;function FF(e,t){return QX.call(e,t)}function BX(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 KX(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function MF(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 qF(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 VF=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,HX=/&([a-z#][a-z0-9]{1,31});/gi,zX=new RegExp(VF.source+"|"+HX.source,"gi"),WX=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,UF=oO();function YX(e,t){var r=0;return FF(UF,t)?UF[t]:t.charCodeAt(0)===35&&WX.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),MF(r))?qF(r):e}function JX(e){return e.indexOf("\\")<0?e:e.replace(VF,"$1")}function XX(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(zX,function(t,r,n){return r||YX(t,n)})}var ZX=/[&<>"]/,$X=/[&<>"]/g,eZ={"&":"&","<":"<",">":">",'"':"""};function tZ(e){return eZ[e]}function rZ(e){return ZX.test(e)?e.replace($X,tZ):e}var nZ=/[.?*+^$[\]\\(){}|-]/g;function iZ(e){return e.replace(nZ,"\\$&")}function aZ(e){switch(e){case 9:case 32:return!0}return!1}function oZ(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 uZ=Gm();function sZ(e){return uZ.test(e)}function lZ(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 cZ(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}en.lib={};en.lib.mdurl=uO();en.lib.ucmicro=PF();en.assign=BX;en.isString=GX;en.has=FF;en.unescapeMd=JX;en.unescapeAll=XX;en.isValidEntityCode=MF;en.fromCodePoint=qF;en.escapeHtml=rZ;en.arrayReplaceAt=KX;en.isSpace=aZ;en.isWhiteSpace=oZ;en.isMdAsciiPunct=lZ;en.isPunctChar=sZ;en.escapeRE=iZ;en.normalizeReference=cZ});var QF=G((Use,GF)=>{"use strict";GF.exports=function(t,r,n){var i,o,s,l,d=-1,h=t.posMax,v=t.pos;for(t.pos=r+1,i=1;t.pos<h;){if(s=t.src.charCodeAt(t.pos),s===93&&(i--,i===0)){o=!0;break}if(l=t.pos,t.md.inline.skipToken(t),s===91){if(l===t.pos-1)i++;else if(n)return t.pos=v,-1}}return o&&(d=t.pos),t.pos=v,d}});var HF=G((Gse,KF)=>{"use strict";var BF=Pt().unescapeAll;KF.exports=function(t,r,n){var i,o,s=0,l=r,d={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<n;){if(i=t.charCodeAt(r),i===10||i===60)return d;if(i===62)return d.pos=r+1,d.str=BF(t.slice(l+1,r)),d.ok=!0,d;if(i===92&&r+1<n){r+=2;continue}r++}return d}for(o=0;r<n&&(i=t.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(t.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(o++,o>32))return d;if(i===41){if(o===0)break;o--}r++}return l===r||o!==0||(d.str=BF(t.slice(l,r)),d.lines=s,d.pos=r,d.ok=!0),d}});var WF=G((Qse,zF)=>{"use strict";var fZ=Pt().unescapeAll;zF.exports=function(t,r,n){var i,o,s=0,l=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<n;){if(i=t.charCodeAt(r),i===o)return d.pos=r+1,d.lines=s,d.str=fZ(t.slice(l+1,r)),d.ok=!0,d;if(i===40&&o===41)return d;i===10?s++:i===92&&r+1<n&&(r++,t.charCodeAt(r)===10&&s++),r++}return d}});var YF=G(Hm=>{"use strict";Hm.parseLinkLabel=QF();Hm.parseLinkDestination=HF();Hm.parseLinkTitle=WF()});var XF=G((Kse,JF)=>{"use strict";var dZ=Pt().assign,pZ=Pt().unescapeAll,Fs=Pt().escapeHtml,Wa={};Wa.code_inline=function(e,t,r,n,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+Fs(e[t].content)+"</code>"};Wa.code_block=function(e,t,r,n,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Fs(e[t].content)+`</code></pre>
|
|
`};Wa.fence=function(e,t,r,n,i){var o=e[t],s=o.info?pZ(o.info).trim():"",l="",d="",h,v,y,b,D;return s&&(y=s.split(/(\s+)/g),l=y[0],d=y.slice(2).join("")),r.highlight?h=r.highlight(o.content,l,d)||Fs(o.content):h=Fs(o.content),h.indexOf("<pre")===0?h+`
|
|
`:s?(v=o.attrIndex("class"),b=o.attrs?o.attrs.slice():[],v<0?b.push(["class",r.langPrefix+l]):(b[v]=b[v].slice(),b[v][1]+=" "+r.langPrefix+l),D={attrs:b},"<pre><code"+i.renderAttrs(D)+">"+h+`</code></pre>
|
|
`):"<pre><code"+i.renderAttrs(o)+">"+h+`</code></pre>
|
|
`};Wa.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)};Wa.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`};Wa.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`:`
|
|
`};Wa.text=function(e,t){return Fs(e[t].content)};Wa.html_block=function(e,t){return e[t].content};Wa.html_inline=function(e,t){return e[t].content};function Ac(){this.rules=dZ({},Wa)}Ac.prototype.renderAttrs=function(t){var r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r<n;r++)i+=" "+Fs(t.attrs[r][0])+'="'+Fs(t.attrs[r][1])+'"';return i};Ac.prototype.renderToken=function(t,r,n){var i,o="",s=!1,l=t[r];return l.hidden?"":(l.block&&l.nesting!==-1&&r&&t[r-1].hidden&&(o+=`
|
|
`),o+=(l.nesting===-1?"</":"<")+l.tag,o+=this.renderAttrs(l),l.nesting===0&&n.xhtmlOut&&(o+=" /"),l.block&&(s=!0,l.nesting===1&&r+1<t.length&&(i=t[r+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(s=!1))),o+=s?`>
|
|
`:">",o)};Ac.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,s=0,l=e.length;s<l;s++)n=e[s].type,typeof o[n]!="undefined"?i+=o[n](e,s,t,r,this):i+=this.renderToken(e,s,t);return i};Ac.prototype.renderInlineAsText=function(e,t,r){for(var n="",i=0,o=e.length;i<o;i++)e[i].type==="text"?n+=e[i].content:e[i].type==="image"?n+=this.renderInlineAsText(e[i].children,t,r):e[i].type==="softbreak"&&(n+=`
|
|
`);return n};Ac.prototype.render=function(e,t,r){var n,i,o,s="",l=this.rules;for(n=0,i=e.length;n<i;n++)o=e[n].type,o==="inline"?s+=this.renderInline(e[n].children,t,r):typeof l[o]!="undefined"?s+=l[e[n].type](e,n,t,r,this):s+=this.renderToken(e,n,t,r);return s};JF.exports=Ac});var zm=G((Hse,ZF)=>{"use strict";function Oa(){this.__rules__=[],this.__cache__=null}Oa.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Oa.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){!r.enabled||r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){!n.enabled||r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn)})})};Oa.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};Oa.prototype.before=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Oa.prototype.after=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null};Oa.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Oa.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,r.push(n)},this),this.__cache__=null,r};Oa.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)};Oa.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(n){var i=this.__find__(n);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,r.push(n)},this),this.__cache__=null,r};Oa.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};ZF.exports=Oa});var eM=G((zse,$F)=>{"use strict";var hZ=/\r\n?|\n/g,vZ=/\0/g;$F.exports=function(t){var r;r=t.src.replace(hZ,`
|
|
`),r=r.replace(vZ,"\uFFFD"),t.src=r}});var rM=G((Wse,tM)=>{"use strict";tM.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 iM=G((Yse,nM)=>{"use strict";nM.exports=function(t){var r=t.tokens,n,i,o;for(i=0,o=r.length;i<o;i++)n=r[i],n.type==="inline"&&t.md.inline.parse(n.content,t.md,t.env,n.children)}});var oM=G((Jse,aM)=>{"use strict";var gZ=Pt().arrayReplaceAt;function mZ(e){return/^<a[>\s]/i.test(e)}function yZ(e){return/^<\/a\s*>/i.test(e)}aM.exports=function(t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m=t.tokens,w;if(!!t.md.options.linkify){for(n=0,i=m.length;n<i;n++)if(!(m[n].type!=="inline"||!t.md.linkify.pretest(m[n].content)))for(o=m[n].children,_=0,r=o.length-1;r>=0;r--){if(l=o[r],l.type==="link_close"){for(r--;o[r].level!==l.level&&o[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&(mZ(l.content)&&_>0&&_--,yZ(l.content)&&_++),!(_>0)&&l.type==="text"&&t.md.linkify.test(l.content)){for(v=l.content,w=t.md.linkify.match(v),d=[],D=l.level,b=0,h=0;h<w.length;h++)k=w[h].url,T=t.md.normalizeLink(k),!!t.md.validateLink(T)&&(S=w[h].text,w[h].schema?w[h].schema==="mailto:"&&!/^mailto:/i.test(S)?S=t.md.normalizeLinkText("mailto:"+S).replace(/^mailto:/,""):S=t.md.normalizeLinkText(S):S=t.md.normalizeLinkText("http://"+S).replace(/^http:\/\//,""),y=w[h].index,y>b&&(s=new t.Token("text","",0),s.content=v.slice(b,y),s.level=D,d.push(s)),s=new t.Token("link_open","a",1),s.attrs=[["href",T]],s.level=D++,s.markup="linkify",s.info="auto",d.push(s),s=new t.Token("text","",0),s.content=S,s.level=D,d.push(s),s=new t.Token("link_close","a",-1),s.level=--D,s.markup="linkify",s.info="auto",d.push(s),b=w[h].lastIndex);b<v.length&&(s=new t.Token("text","",0),s.content=v.slice(b),s.level=D,d.push(s)),m[n].children=o=gZ(o,r,d)}}}}});var lM=G((Xse,sM)=>{"use strict";var uM=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,bZ=/\((c|tm|r|p)\)/i,TZ=/\((c|tm|r|p)\)/ig,_Z={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function EZ(e,t){return _Z[t.toLowerCase()]}function SZ(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(TZ,EZ)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function kZ(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)r=e[t],r.type==="text"&&!n&&uM.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").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}sM.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type==="inline"&&(bZ.test(t.tokens[r].content)&&SZ(t.tokens[r].children),uM.test(t.tokens[r].content)&&kZ(t.tokens[r].children))}});var gM=G((Zse,vM)=>{"use strict";var cM=Pt().isWhiteSpace,fM=Pt().isPunctChar,dM=Pt().isMdAsciiPunct,OZ=/['"]/,pM=/['"]/g,hM="\u2019";function Wm(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function wZ(e,t){var r,n,i,o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O;for(x=[],r=0;r<e.length;r++){for(n=e[r],d=e[r].level,m=x.length-1;m>=0&&!(x[m].level<=d);m--);if(x.length=m+1,n.type!=="text")continue;i=n.content,s=0,l=i.length;e:for(;s<l&&(pM.lastIndex=s,o=pM.exec(i),!!o);){if(T=S=!0,s=o.index+1,w=o[0]==="'",v=32,o.index-1>=0)v=i.charCodeAt(o.index-1);else for(m=r-1;m>=0&&!(e[m].type==="softbreak"||e[m].type==="hardbreak");m--)if(!!e[m].content){v=e[m].content.charCodeAt(e[m].content.length-1);break}if(y=32,s<l)y=i.charCodeAt(s);else for(m=r+1;m<e.length&&!(e[m].type==="softbreak"||e[m].type==="hardbreak");m++)if(!!e[m].content){y=e[m].content.charCodeAt(0);break}if(b=dM(v)||fM(String.fromCharCode(v)),D=dM(y)||fM(String.fromCharCode(y)),_=cM(v),k=cM(y),k?T=!1:D&&(_||b||(T=!1)),_?S=!1:b&&(k||D||(S=!1)),y===34&&o[0]==='"'&&v>=48&&v<=57&&(S=T=!1),T&&S&&(T=b,S=D),!T&&!S){w&&(n.content=Wm(n.content,o.index,hM));continue}if(S){for(m=x.length-1;m>=0&&(h=x[m],!(x[m].level<d));m--)if(h.single===w&&x[m].level===d){h=x[m],w?(L=t.md.options.quotes[2],O=t.md.options.quotes[3]):(L=t.md.options.quotes[0],O=t.md.options.quotes[1]),n.content=Wm(n.content,o.index,O),e[h.token].content=Wm(e[h.token].content,h.pos,L),s+=O.length-1,h.token===r&&(s+=L.length-1),i=n.content,l=i.length,x.length=m;continue e}}T?x.push({token:r,pos:o.index,single:w,level:d}):S&&w&&(n.content=Wm(n.content,o.index,hM))}}}vM.exports=function(t){var r;if(!!t.md.options.typographer)for(r=t.tokens.length-1;r>=0;r--)t.tokens[r].type!=="inline"||!OZ.test(t.tokens[r].content)||wZ(t.tokens[r].children,t)}});var Ym=G(($se,mM)=>{"use strict";function Rc(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}Rc.prototype.attrIndex=function(t){var r,n,i;if(!this.attrs)return-1;for(r=this.attrs,n=0,i=r.length;n<i;n++)if(r[n][0]===t)return n;return-1};Rc.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Rc.prototype.attrSet=function(t,r){var n=this.attrIndex(t),i=[t,r];n<0?this.attrPush(i):this.attrs[n]=i};Rc.prototype.attrGet=function(t){var r=this.attrIndex(t),n=null;return r>=0&&(n=this.attrs[r][1]),n};Rc.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};mM.exports=Rc});var TM=G((ele,bM)=>{"use strict";var NZ=Ym();function yM(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}yM.prototype.Token=NZ;bM.exports=yM});var EM=G((tle,_M)=>{"use strict";var DZ=zm(),fO=[["normalize",eM()],["block",rM()],["inline",iM()],["linkify",oM()],["replacements",lM()],["smartquotes",gM()]];function dO(){this.ruler=new DZ;for(var e=0;e<fO.length;e++)this.ruler.push(fO[e][0],fO[e][1])}dO.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t<r;t++)n[t](e)};dO.prototype.State=TM();_M.exports=dO});var OM=G((rle,kM)=>{"use strict";var pO=Pt().isSpace;function hO(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r)}function SM(e){var t=[],r=0,n=e.length,i,o=!1,s=0,l="";for(i=e.charCodeAt(r);r<n;)i===124&&(o?(l+=e.substring(s,r-1),s=r):(t.push(l+e.substring(s,r)),l="",s=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(l+e.substring(s)),t}kM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O;if(r+2>n||(v=r+1,t.sCount[v]<t.blkIndent)||t.sCount[v]-t.blkIndent>=4||(l=t.bMarks[v]+t.tShift[v],l>=t.eMarks[v])||(L=t.src.charCodeAt(l++),L!==124&&L!==45&&L!==58)||l>=t.eMarks[v]||(O=t.src.charCodeAt(l++),O!==124&&O!==45&&O!==58&&!pO(O))||L===45&&pO(O))return!1;for(;l<t.eMarks[v];){if(o=t.src.charCodeAt(l),o!==124&&o!==45&&o!==58&&!pO(o))return!1;l++}for(s=hO(t,r+1),y=s.split("|"),_=[],d=0;d<y.length;d++){if(k=y[d].trim(),!k){if(d===0||d===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?_.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?_.push("left"):_.push("")}if(s=hO(t,r).trim(),s.indexOf("|")===-1||t.sCount[r]-t.blkIndent>=4||(y=SM(s),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),b=y.length,b===0||b!==_.length))return!1;if(i)return!0;for(m=t.parentType,t.parentType="table",x=t.md.block.ruler.getRules("blockquote"),D=t.push("table_open","table",1),D.map=T=[r,0],D=t.push("thead_open","thead",1),D.map=[r,r+1],D=t.push("tr_open","tr",1),D.map=[r,r+1],d=0;d<y.length;d++)D=t.push("th_open","th",1),_[d]&&(D.attrs=[["style","text-align:"+_[d]]]),D=t.push("inline","",0),D.content=y[d].trim(),D.children=[],D=t.push("th_close","th",-1);for(D=t.push("tr_close","tr",-1),D=t.push("thead_close","thead",-1),v=r+2;v<n&&!(t.sCount[v]<t.blkIndent);v++){for(w=!1,d=0,h=x.length;d<h;d++)if(x[d](t,v,n,!0)){w=!0;break}if(w||(s=hO(t,v).trim(),!s)||t.sCount[v]-t.blkIndent>=4)break;for(y=SM(s),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),v===r+2&&(D=t.push("tbody_open","tbody",1),D.map=S=[r+2,0]),D=t.push("tr_open","tr",1),D.map=[v,v+1],d=0;d<b;d++)D=t.push("td_open","td",1),_[d]&&(D.attrs=[["style","text-align:"+_[d]]]),D=t.push("inline","",0),D.content=y[d]?y[d].trim():"",D.children=[],D=t.push("td_close","td",-1);D=t.push("tr_close","tr",-1)}return S&&(D=t.push("tbody_close","tbody",-1),S[1]=v),D=t.push("table_close","table",-1),T[1]=v,t.parentType=m,t.line=v,!0}});var NM=G((nle,wM)=>{"use strict";wM.exports=function(t,r,n){var i,o,s;if(t.sCount[r]-t.blkIndent<4)return!1;for(o=i=r+1;i<n;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,o=i;continue}break}return t.line=o,s=t.push("code_block","code",0),s.content=t.getLines(r,o,4+t.blkIndent,!1)+`
|
|
`,s.map=[r,t.line],!0}});var xM=G((ile,DM)=>{"use strict";DM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b=!1,D=t.bMarks[r]+t.tShift[r],_=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||D+3>_||(o=t.src.charCodeAt(D),o!==126&&o!==96)||(h=D,D=t.skipChars(D,o),s=D-h,s<3)||(y=t.src.slice(h,D),l=t.src.slice(D,_),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(d=r;d++,!(d>=n||(D=h=t.bMarks[d]+t.tShift[d],_=t.eMarks[d],D<_&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(D)===o&&!(t.sCount[d]-t.blkIndent>=4)&&(D=t.skipChars(D,o),!(D-h<s)&&(D=t.skipSpaces(D),!(D<_)))){b=!0;break}return s=t.sCount[r],t.line=d+(b?1:0),v=t.push("fence","code",0),v.info=l,v.content=t.getLines(r+1,d,s,!0),v.markup=y,v.map=[r,t.line],!0}});var IM=G((ale,LM)=>{"use strict";var CM=Pt().isSpace;LM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O,R,M,q=t.lineMax,z=t.bMarks[r]+t.tShift[r],B=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(z++)!==62)return!1;if(i)return!0;for(d=D=t.sCount[r]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[r]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_=[t.bMarks[r]],t.bMarks[r]=z;z<B&&(s=t.src.charCodeAt(z),CM(s));){s===9?D+=4-(D+t.bsCount[r]+(o?1:0))%4:D++;z++}for(k=[t.bsCount[r]],t.bsCount[r]=t.sCount[r]+1+(x?1:0),v=z>=B,m=[t.sCount[r]],t.sCount[r]=D-d,w=[t.tShift[r]],t.tShift[r]=z-t.bMarks[r],O=t.md.block.ruler.getRules("blockquote"),S=t.parentType,t.parentType="blockquote",b=r+1;b<n&&(M=t.sCount[b]<t.blkIndent,z=t.bMarks[b]+t.tShift[b],B=t.eMarks[b],!(z>=B));b++){if(t.src.charCodeAt(z++)===62&&!M){for(d=D=t.sCount[b]+1,t.src.charCodeAt(z)===32?(z++,d++,D++,o=!1,x=!0):t.src.charCodeAt(z)===9?(x=!0,(t.bsCount[b]+D)%4==3?(z++,d++,D++,o=!1):o=!0):x=!1,_.push(t.bMarks[b]),t.bMarks[b]=z;z<B&&(s=t.src.charCodeAt(z),CM(s));){s===9?D+=4-(D+t.bsCount[b]+(o?1:0))%4:D++;z++}v=z>=B,k.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(x?1:0),m.push(t.sCount[b]),t.sCount[b]=D-d,w.push(t.tShift[b]),t.tShift[b]=z-t.bMarks[b];continue}if(v)break;for(L=!1,l=0,h=O.length;l<h;l++)if(O[l](t,b,n,!0)){L=!0;break}if(L){t.lineMax=b,t.blkIndent!==0&&(_.push(t.bMarks[b]),k.push(t.bsCount[b]),w.push(t.tShift[b]),m.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}_.push(t.bMarks[b]),k.push(t.bsCount[b]),w.push(t.tShift[b]),m.push(t.sCount[b]),t.sCount[b]=-1}for(T=t.blkIndent,t.blkIndent=0,R=t.push("blockquote_open","blockquote",1),R.markup=">",R.map=y=[r,0],t.md.block.tokenize(t,r,b),R=t.push("blockquote_close","blockquote",-1),R.markup=">",t.lineMax=q,t.parentType=S,y[1]=t.line,l=0;l<w.length;l++)t.bMarks[l+r]=_[l],t.tShift[l+r]=w[l],t.sCount[l+r]=m[l],t.bsCount[l+r]=k[l];return t.blkIndent=T,!0}});var RM=G((ole,AM)=>{"use strict";var xZ=Pt().isSpace;AM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=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<v;){if(l=t.src.charCodeAt(h++),l!==o&&!xZ(l))return!1;l===o&&s++}return s<3?!1:(i||(t.line=r+1,d=t.push("hr","hr",0),d.map=[r,t.line],d.markup=Array(s+1).join(String.fromCharCode(o))),!0)}});var qM=G((ule,MM)=>{"use strict";var jM=Pt().isSpace;function PM(e,t){var r,n,i,o;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<i&&(o=e.src.charCodeAt(n),!jM(o))?-1:n}function FM(e,t){var r,n=e.bMarks[t]+e.tShift[t],i=n,o=e.eMarks[t];if(i+1>=o||(r=e.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=e.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i<o&&(r=e.src.charCodeAt(i),!jM(r))?-1:i}function CZ(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}MM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L,O,R,M,q,z,B,Q,P,he,xe,ge,Fe=!1,Le=!0;if(t.sCount[r]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[r]-t.listIndent>=4&&t.sCount[r]<t.blkIndent)return!1;if(i&&t.parentType==="paragraph"&&t.sCount[r]>=t.blkIndent&&(Fe=!0),(B=FM(t,r))>=0){if(y=!0,P=t.bMarks[r]+t.tShift[r],S=Number(t.src.slice(P,B-1)),Fe&&S!==1)return!1}else if((B=PM(t,r))>=0)y=!1;else return!1;if(Fe&&t.skipSpaces(B)>=t.eMarks[r])return!1;if(T=t.src.charCodeAt(B-1),i)return!0;for(k=t.tokens.length,y?(ge=t.push("ordered_list_open","ol",1),S!==1&&(ge.attrs=[["start",S]])):ge=t.push("bullet_list_open","ul",1),ge.map=_=[r,0],ge.markup=String.fromCharCode(T),w=r,Q=!1,xe=t.md.block.ruler.getRules("list"),O=t.parentType,t.parentType="list";w<n;){for(z=B,m=t.eMarks[w],v=x=t.sCount[w]+B-(t.bMarks[r]+t.tShift[r]);z<m;){if(o=t.src.charCodeAt(z),o===9)x+=4-(x+t.bsCount[w])%4;else if(o===32)x++;else break;z++}if(s=z,s>=m?h=1:h=x-v,h>4&&(h=1),d=v+h,ge=t.push("list_item_open","li",1),ge.markup=String.fromCharCode(T),ge.map=b=[r,0],y&&(ge.info=t.src.slice(P,B-1)),q=t.tight,M=t.tShift[r],R=t.sCount[r],L=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=d,t.tight=!0,t.tShift[r]=s-t.bMarks[r],t.sCount[r]=x,s>=m&&t.isEmpty(r+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,r,n,!0),(!t.tight||Q)&&(Le=!1),Q=t.line-r>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=L,t.tShift[r]=M,t.sCount[r]=R,t.tight=q,ge=t.push("list_item_close","li",-1),ge.markup=String.fromCharCode(T),w=r=t.line,b[1]=w,s=t.bMarks[r],w>=n||t.sCount[w]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)break;for(he=!1,l=0,D=xe.length;l<D;l++)if(xe[l](t,w,n,!0)){he=!0;break}if(he)break;if(y){if(B=FM(t,w),B<0)break;P=t.bMarks[w]+t.tShift[w]}else if(B=PM(t,w),B<0)break;if(T!==t.src.charCodeAt(B-1))break}return y?ge=t.push("ordered_list_close","ol",-1):ge=t.push("bullet_list_close","ul",-1),ge.markup=String.fromCharCode(T),_[1]=w,t.line=w,t.parentType=O,Le&&CZ(t,k),!0}});var UM=G((sle,VM)=>{"use strict";var LZ=Pt().normalizeReference,Jm=Pt().isSpace;VM.exports=function(t,r,n,i){var o,s,l,d,h,v,y,b,D,_,k,T,S,m,w,x,L=0,O=t.bMarks[r]+t.tShift[r],R=t.eMarks[r],M=r+1;if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(O)!==91)return!1;for(;++O<R;)if(t.src.charCodeAt(O)===93&&t.src.charCodeAt(O-1)!==92){if(O+1===R||t.src.charCodeAt(O+1)!==58)return!1;break}for(d=t.lineMax,w=t.md.block.ruler.getRules("reference"),_=t.parentType,t.parentType="reference";M<d&&!t.isEmpty(M);M++)if(!(t.sCount[M]-t.blkIndent>3)&&!(t.sCount[M]<0)){for(m=!1,v=0,y=w.length;v<y;v++)if(w[v](t,M,d,!0)){m=!0;break}if(m)break}for(S=t.getLines(r,M,t.blkIndent,!1).trim(),R=S.length,O=1;O<R;O++){if(o=S.charCodeAt(O),o===91)return!1;if(o===93){D=O;break}else o===10?L++:o===92&&(O++,O<R&&S.charCodeAt(O)===10&&L++)}if(D<0||S.charCodeAt(D+1)!==58)return!1;for(O=D+2;O<R;O++)if(o=S.charCodeAt(O),o===10)L++;else if(!Jm(o))break;if(k=t.md.helpers.parseLinkDestination(S,O,R),!k.ok||(h=t.md.normalizeLink(k.str),!t.md.validateLink(h)))return!1;for(O=k.pos,L+=k.lines,s=O,l=L,T=O;O<R;O++)if(o=S.charCodeAt(O),o===10)L++;else if(!Jm(o))break;for(k=t.md.helpers.parseLinkTitle(S,O,R),O<R&&T!==O&&k.ok?(x=k.str,O=k.pos,L+=k.lines):(x="",O=s,L=l);O<R&&(o=S.charCodeAt(O),!!Jm(o));)O++;if(O<R&&S.charCodeAt(O)!==10&&x)for(x="",O=s,L=l;O<R&&(o=S.charCodeAt(O),!!Jm(o));)O++;return O<R&&S.charCodeAt(O)!==10||(b=LZ(S.slice(1,D)),!b)?!1:(i||(typeof t.env.references=="undefined"&&(t.env.references={}),typeof t.env.references[b]=="undefined"&&(t.env.references[b]={title:x,href:h}),t.parentType=_,t.line=r+L+1),!0)}});var QM=G((lle,GM)=>{"use strict";GM.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","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var gO=G((cle,vO)=>{"use strict";var IZ="[a-zA-Z_:][a-zA-Z0-9:._-]*",AZ="[^\"'=<>`\\x00-\\x20]+",RZ="'[^']*'",jZ='"[^"]*"',PZ="(?:"+AZ+"|"+RZ+"|"+jZ+")",FZ="(?:\\s+"+IZ+"(?:\\s*=\\s*"+PZ+")?)",BM="<[A-Za-z][A-Za-z0-9\\-]*"+FZ+"*\\s*\\/?>",KM="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",MZ="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",qZ="<[?][\\s\\S]*?[?]>",VZ="<![A-Z]+\\s+[^>]*>",UZ="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",GZ=new RegExp("^(?:"+BM+"|"+KM+"|"+MZ+"|"+qZ+"|"+VZ+"|"+UZ+")"),QZ=new RegExp("^(?:"+BM+"|"+KM+")");vO.exports.HTML_TAG_RE=GZ;vO.exports.HTML_OPEN_CLOSE_TAG_RE=QZ});var zM=G((fle,HM)=>{"use strict";var BZ=QM(),KZ=gO().HTML_OPEN_CLOSE_TAG_RE,jc=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+BZ.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(KZ.source+"\\s*$"),/^$/,!1]];HM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=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,v),o=0;o<jc.length&&!jc[o][0].test(d);o++);if(o===jc.length)return!1;if(i)return jc[o][2];if(s=r+1,!jc[o][1].test(d)){for(;s<n&&!(t.sCount[s]<t.blkIndent);s++)if(h=t.bMarks[s]+t.tShift[s],v=t.eMarks[s],d=t.src.slice(h,v),jc[o][1].test(d)){d.length!==0&&s++;break}}return t.line=s,l=t.push("html_block","",0),l.map=[r,s],l.content=t.getLines(r,s,t.blkIndent,!0),!0}});var JM=G((dle,YM)=>{"use strict";var WM=Pt().isSpace;YM.exports=function(t,r,n,i){var o,s,l,d,h=t.bMarks[r]+t.tShift[r],v=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(o=t.src.charCodeAt(h),o!==35||h>=v))return!1;for(s=1,o=t.src.charCodeAt(++h);o===35&&h<v&&s<=6;)s++,o=t.src.charCodeAt(++h);return s>6||h<v&&!WM(o)?!1:(i||(v=t.skipSpacesBack(v,h),l=t.skipCharsBack(v,35,h),l>h&&WM(t.src.charCodeAt(l-1))&&(v=l),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,v).trim(),d.map=[r,t.line],d.children=[],d=t.push("heading_close","h"+String(s),-1),d.markup="########".slice(0,s)),!0)}});var ZM=G((ple,XM)=>{"use strict";XM.exports=function(t,r,n){var i,o,s,l,d,h,v,y,b,D=r+1,_,k=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(_=t.parentType,t.parentType="paragraph";D<n&&!t.isEmpty(D);D++)if(!(t.sCount[D]-t.blkIndent>3)){if(t.sCount[D]>=t.blkIndent&&(h=t.bMarks[D]+t.tShift[D],v=t.eMarks[D],h<v&&(b=t.src.charCodeAt(h),(b===45||b===61)&&(h=t.skipChars(h,b),h=t.skipSpaces(h),h>=v)))){y=b===61?1:2;break}if(!(t.sCount[D]<0)){for(o=!1,s=0,l=k.length;s<l;s++)if(k[s](t,D,n,!0)){o=!0;break}if(o)break}}return y?(i=t.getLines(r,D,t.blkIndent,!1).trim(),t.line=D+1,d=t.push("heading_open","h"+String(y),1),d.markup=String.fromCharCode(b),d.map=[r,t.line],d=t.push("inline","",0),d.content=i,d.map=[r,t.line-1],d.children=[],d=t.push("heading_close","h"+String(y),-1),d.markup=String.fromCharCode(b),t.parentType=_,!0):!1}});var eq=G((hle,$M)=>{"use strict";$M.exports=function(t,r){var n,i,o,s,l,d,h=r+1,v=t.md.block.ruler.getRules("paragraph"),y=t.lineMax;for(d=t.parentType,t.parentType="paragraph";h<y&&!t.isEmpty(h);h++)if(!(t.sCount[h]-t.blkIndent>3)&&!(t.sCount[h]<0)){for(i=!1,o=0,s=v.length;o<s;o++)if(v[o](t,h,y,!0)){i=!0;break}if(i)break}return n=t.getLines(r,h,t.blkIndent,!1).trim(),t.line=h,l=t.push("paragraph_open","p",1),l.map=[r,t.line],l=t.push("inline","",0),l.content=n,l.map=[r,t.line],l.children=[],l=t.push("paragraph_close","p",-1),t.parentType=d,!0}});var nq=G((vle,rq)=>{"use strict";var tq=Ym(),Xm=Pt().isSpace;function Ya(e,t,r,n){var i,o,s,l,d,h,v,y;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,y=!1,s=l=h=v=0,d=o.length;l<d;l++){if(i=o.charCodeAt(l),!y)if(Xm(i)){h++,i===9?v+=4-v%4:v++;continue}else y=!0;(i===10||l===d-1)&&(i!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(h),this.sCount.push(v),this.bsCount.push(0),y=!1,h=0,v=0,s=l+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ya.prototype.push=function(e,t,r){var n=new tq(e,t,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n};Ya.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Ya.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Ya.prototype.skipSpaces=function(t){for(var r,n=this.src.length;t<n&&(r=this.src.charCodeAt(t),!!Xm(r));t++);return t};Ya.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!Xm(this.src.charCodeAt(--t)))return t+1;return t};Ya.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};Ya.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};Ya.prototype.getLines=function(t,r,n,i){var o,s,l,d,h,v,y,b=t;if(t>=r)return"";for(v=new Array(r-t),o=0;b<r;b++,o++){for(s=0,y=d=this.bMarks[b],b+1<r||i?h=this.eMarks[b]+1:h=this.eMarks[b];d<h&&s<n;){if(l=this.src.charCodeAt(d),Xm(l))l===9?s+=4-(s+this.bsCount[b])%4:s++;else if(d-y<this.tShift[b])s++;else break;d++}s>n?v[o]=new Array(s-n+1).join(" ")+this.src.slice(d,h):v[o]=this.src.slice(d,h)}return v.join("")};Ya.prototype.Token=tq;rq.exports=Ya});var aq=G((gle,iq)=>{"use strict";var HZ=zm(),Zm=[["table",OM(),["paragraph","reference"]],["code",NM()],["fence",xM(),["paragraph","reference","blockquote","list"]],["blockquote",IM(),["paragraph","reference","blockquote","list"]],["hr",RM(),["paragraph","reference","blockquote","list"]],["list",qM(),["paragraph","reference","blockquote"]],["reference",UM()],["html_block",zM(),["paragraph","reference","blockquote"]],["heading",JM(),["paragraph","reference","blockquote"]],["lheading",ZM()],["paragraph",eq()]];function $m(){this.ruler=new HZ;for(var e=0;e<Zm.length;e++)this.ruler.push(Zm[e][0],Zm[e][1],{alt:(Zm[e][2]||[]).slice()})}$m.prototype.tokenize=function(e,t,r){for(var n,i,o=this.ruler.getRules(""),s=o.length,l=t,d=!1,h=e.md.options.maxNesting;l<r&&(e.line=l=e.skipEmptyLines(l),!(l>=r||e.sCount[l]<e.blkIndent));){if(e.level>=h){e.line=r;break}for(i=0;i<s&&(n=o[i](e,l,r,!1),!n);i++);e.tight=!d,e.isEmpty(e.line-1)&&(d=!0),l=e.line,l<r&&e.isEmpty(l)&&(d=!0,l++,e.line=l)}};$m.prototype.parse=function(e,t,r,n){var i;!e||(i=new this.State(e,t,r,n),this.tokenize(i,i.line,i.lineMax))};$m.prototype.State=nq();iq.exports=$m});var uq=G((mle,oq)=>{"use strict";function zZ(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}}oq.exports=function(t,r){for(var n=t.pos;n<t.posMax&&!zZ(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(r||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}});var lq=G((yle,sq)=>{"use strict";var WZ=Pt().isSpace;sq.exports=function(t,r){var n,i,o,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(n=t.pending.length-1,i=t.posMax,!r)if(n>=0&&t.pending.charCodeAt(n)===32)if(n>=1&&t.pending.charCodeAt(n-1)===32){for(o=n-1;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s<i&&WZ(t.src.charCodeAt(s));)s++;return t.pos=s,!0}});var fq=G((ble,cq)=>{"use strict";var YZ=Pt().isSpace,mO=[];for(yO=0;yO<256;yO++)mO.push(0);var yO;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){mO[e.charCodeAt(0)]=1});cq.exports=function(t,r){var n,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==92)return!1;if(i++,i<o){if(n=t.src.charCodeAt(i),n<256&&mO[n]!==0)return r||(t.pending+=t.src[i]),t.pos+=2,!0;if(n===10){for(r||t.push("hardbreak","br",0),i++;i<o&&(n=t.src.charCodeAt(i),!!YZ(n));)i++;return t.pos=i,!0}}return r||(t.pending+="\\"),t.pos++,!0}});var pq=G((Tle,dq)=>{"use strict";dq.exports=function(t,r){var n,i,o,s,l,d,h,v,y=t.pos,b=t.src.charCodeAt(y);if(b!==96)return!1;for(n=y,y++,i=t.posMax;y<i&&t.src.charCodeAt(y)===96;)y++;if(o=t.src.slice(n,y),h=o.length,t.backticksScanned&&(t.backticks[h]||0)<=n)return r||(t.pending+=o),t.pos+=h,!0;for(l=d=y;(l=t.src.indexOf("`",d))!==-1;){for(d=l+1;d<i&&t.src.charCodeAt(d)===96;)d++;if(v=d-l,v===h)return r||(s=t.push("code_inline","code",0),s.markup=o,s.content=t.src.slice(y,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=d,!0;t.backticks[v]=l}return t.backticksScanned=!0,r||(t.pending+=o),t.pos+=h,!0}});var TO=G((_le,bO)=>{"use strict";bO.exports.tokenize=function(t,r){var n,i,o,s,l,d=t.pos,h=t.src.charCodeAt(d);if(r||h!==126||(i=t.scanDelims(t.pos,!0),s=i.length,l=String.fromCharCode(h),s<2))return!1;for(s%2&&(o=t.push("text","",0),o.content=l,s--),n=0;n<s;n+=2)o=t.push("text","",0),o.content=l+l,t.delimiters.push({marker:h,length:0,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0};function hq(e,t){var r,n,i,o,s,l=[],d=t.length;for(r=0;r<d;r++)i=t[r],i.marker===126&&i.end!==-1&&(o=t[i.end],s=e.tokens[i.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=e.tokens[o.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&l.push(o.token-1));for(;l.length;){for(r=l.pop(),n=r+1;n<e.tokens.length&&e.tokens[n].type==="s_close";)n++;n--,r!==n&&(s=e.tokens[n],e.tokens[n]=e.tokens[r],e.tokens[r]=s)}}bO.exports.postProcess=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(hq(t,t.delimiters),r=0;r<i;r++)n[r]&&n[r].delimiters&&hq(t,n[r].delimiters)}});var EO=G((Ele,_O)=>{"use strict";_O.exports.tokenize=function(t,r){var n,i,o,s=t.pos,l=t.src.charCodeAt(s);if(r||l!==95&&l!==42)return!1;for(i=t.scanDelims(t.pos,l===42),n=0;n<i.length;n++)o=t.push("text","",0),o.content=String.fromCharCode(l),t.delimiters.push({marker:l,length:i.length,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0};function vq(e,t){var r,n,i,o,s,l,d=t.length;for(r=d-1;r>=0;r--)n=t[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=t[n.end],l=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),o=e.tokens[n.token],o.type=l?"strong_open":"em_open",o.tag=l?"strong":"em",o.nesting=1,o.markup=l?s+s:s,o.content="",o=e.tokens[i.token],o.type=l?"strong_close":"em_close",o.tag=l?"strong":"em",o.nesting=-1,o.markup=l?s+s:s,o.content="",l&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}_O.exports.postProcess=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(vq(t,t.delimiters),r=0;r<i;r++)n[r]&&n[r].delimiters&&vq(t,n[r].delimiters)}});var mq=G((Sle,gq)=>{"use strict";var JZ=Pt().normalizeReference,SO=Pt().isSpace;gq.exports=function(t,r){var n,i,o,s,l,d,h,v,y,b="",D="",_=t.pos,k=t.posMax,T=t.pos,S=!0;if(t.src.charCodeAt(t.pos)!==91||(l=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(d=s+1,d<k&&t.src.charCodeAt(d)===40){for(S=!1,d++;d<k&&(i=t.src.charCodeAt(d),!(!SO(i)&&i!==10));d++);if(d>=k)return!1;if(T=d,h=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),h.ok){for(b=t.md.normalizeLink(h.str),t.md.validateLink(b)?d=h.pos:b="",T=d;d<k&&(i=t.src.charCodeAt(d),!(!SO(i)&&i!==10));d++);if(h=t.md.helpers.parseLinkTitle(t.src,d,t.posMax),d<k&&T!==d&&h.ok)for(D=h.str,d=h.pos;d<k&&(i=t.src.charCodeAt(d),!(!SO(i)&&i!==10));d++);}(d>=k||t.src.charCodeAt(d)!==41)&&(S=!0),d++}if(S){if(typeof t.env.references=="undefined")return!1;if(d<k&&t.src.charCodeAt(d)===91?(T=d+1,d=t.md.helpers.parseLinkLabel(t,d),d>=0?o=t.src.slice(T,d++):d=s+1):d=s+1,o||(o=t.src.slice(l,s)),v=t.env.references[JZ(o)],!v)return t.pos=_,!1;b=v.href,D=v.title}return r||(t.pos=l,t.posMax=s,y=t.push("link_open","a",1),y.attrs=n=[["href",b]],D&&n.push(["title",D]),t.md.inline.tokenize(t),y=t.push("link_close","a",-1)),t.pos=d,t.posMax=k,!0}});var bq=G((kle,yq)=>{"use strict";var XZ=Pt().normalizeReference,kO=Pt().isSpace;yq.exports=function(t,r){var n,i,o,s,l,d,h,v,y,b,D,_,k,T="",S=t.pos,m=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(d=t.pos+2,l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),l<0))return!1;if(h=l+1,h<m&&t.src.charCodeAt(h)===40){for(h++;h<m&&(i=t.src.charCodeAt(h),!(!kO(i)&&i!==10));h++);if(h>=m)return!1;for(k=h,y=t.md.helpers.parseLinkDestination(t.src,h,t.posMax),y.ok&&(T=t.md.normalizeLink(y.str),t.md.validateLink(T)?h=y.pos:T=""),k=h;h<m&&(i=t.src.charCodeAt(h),!(!kO(i)&&i!==10));h++);if(y=t.md.helpers.parseLinkTitle(t.src,h,t.posMax),h<m&&k!==h&&y.ok)for(b=y.str,h=y.pos;h<m&&(i=t.src.charCodeAt(h),!(!kO(i)&&i!==10));h++);else b="";if(h>=m||t.src.charCodeAt(h)!==41)return t.pos=S,!1;h++}else{if(typeof t.env.references=="undefined")return!1;if(h<m&&t.src.charCodeAt(h)===91?(k=h+1,h=t.md.helpers.parseLinkLabel(t,h),h>=0?s=t.src.slice(k,h++):h=l+1):h=l+1,s||(s=t.src.slice(d,l)),v=t.env.references[XZ(s)],!v)return t.pos=S,!1;T=v.href,b=v.title}return r||(o=t.src.slice(d,l),t.md.inline.parse(o,t.md,t.env,_=[]),D=t.push("image","img",0),D.attrs=n=[["src",T],["alt",""]],D.children=_,D.content=o,b&&n.push(["title",b])),t.pos=h,t.posMax=m,!0}});var _q=G((Ole,Tq)=>{"use strict";var ZZ=/^([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])?)*)$/,$Z=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Tq.exports=function(t,r){var n,i,o,s,l,d,h=t.pos;if(t.src.charCodeAt(h)!==60)return!1;for(l=t.pos,d=t.posMax;;){if(++h>=d||(s=t.src.charCodeAt(h),s===60))return!1;if(s===62)break}return n=t.src.slice(l+1,h),$Z.test(n)?(i=t.md.normalizeLink(n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):ZZ.test(n)?(i=t.md.normalizeLink("mailto:"+n),t.md.validateLink(i)?(r||(o=t.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=t.push("text","",0),o.content=t.md.normalizeLinkText(n),o=t.push("link_close","a",-1),o.markup="autolink",o.info="auto"),t.pos+=n.length+2,!0):!1):!1}});var Sq=G((wle,Eq)=>{"use strict";var e$=gO().HTML_TAG_RE;function t$(e){var t=e|32;return t>=97&&t<=122}Eq.exports=function(t,r){var n,i,o,s,l=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(l)!==60||l+2>=o)||(n=t.src.charCodeAt(l+1),n!==33&&n!==63&&n!==47&&!t$(n))||(i=t.src.slice(l).match(e$),!i)?!1:(r||(s=t.push("html_inline","",0),s.content=t.src.slice(l,l+i[0].length)),t.pos+=i[0].length,!0)}});var Nq=G((Nle,wq)=>{"use strict";var kq=oO(),r$=Pt().has,n$=Pt().isValidEntityCode,Oq=Pt().fromCodePoint,i$=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a$=/^&([a-z][a-z0-9]{1,31});/i;wq.exports=function(t,r){var n,i,o,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<l){if(n=t.src.charCodeAt(s+1),n===35){if(o=t.src.slice(s).match(i$),o)return r||(i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),t.pending+=n$(i)?Oq(i):Oq(65533)),t.pos+=o[0].length,!0}else if(o=t.src.slice(s).match(a$),o&&r$(kq,o[1]))return r||(t.pending+=kq[o[1]]),t.pos+=o[0].length,!0}return r||(t.pending+="&"),t.pos++,!0}});var Cq=G((Dle,xq)=>{"use strict";function Dq(e,t){var r,n,i,o,s,l,d,h,v={},y=t.length;if(!!y){var b=0,D=-2,_=[];for(r=0;r<y;r++)if(i=t[r],_.push(0),(t[b].marker!==i.marker||D!==i.token-1)&&(b=r),D=i.token,i.length=i.length||0,!!i.close){for(v.hasOwnProperty(i.marker)||(v[i.marker]=[-1,-1,-1,-1,-1,-1]),s=v[i.marker][(i.open?3:0)+i.length%3],n=b-_[b]-1,l=n;n>s;n-=_[n]+1)if(o=t[n],o.marker===i.marker&&o.open&&o.end<0&&(d=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3!=0||i.length%3!=0)&&(d=!0),!d)){h=n>0&&!t[n-1].open?_[n-1]+1:0,_[r]=r-n+h,_[n]=h,i.open=!1,o.end=r,o.close=!1,l=-1,D=-2;break}l!==-1&&(v[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}}xq.exports=function(t){var r,n=t.tokens_meta,i=t.tokens_meta.length;for(Dq(t,t.delimiters),r=0;r<i;r++)n[r]&&n[r].delimiters&&Dq(t,n[r].delimiters)}});var Iq=G((xle,Lq)=>{"use strict";Lq.exports=function(t){var r,n,i=0,o=t.tokens,s=t.tokens.length;for(r=n=0;r<s;r++)o[r].nesting<0&&i--,o[r].level=i,o[r].nesting>0&&i++,o[r].type==="text"&&r+1<s&&o[r+1].type==="text"?o[r+1].content=o[r].content+o[r+1].content:(r!==n&&(o[n]=o[r]),n++);r!==n&&(o.length=n)}});var Fq=G((Cle,Pq)=>{"use strict";var OO=Ym(),Aq=Pt().isWhiteSpace,Rq=Pt().isPunctChar,jq=Pt().isMdAsciiPunct;function jp(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=[],this.backticks={},this.backticksScanned=!1}jp.prototype.pushPending=function(){var e=new OO("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};jp.prototype.push=function(e,t,r){this.pending&&this.pushPending();var n=new OO(e,t,r),i=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=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};jp.prototype.scanDelims=function(e,t){var r=e,n,i,o,s,l,d,h,v,y,b=!0,D=!0,_=this.posMax,k=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;r<_&&this.src.charCodeAt(r)===k;)r++;return o=r-e,i=r<_?this.src.charCodeAt(r):32,h=jq(n)||Rq(String.fromCharCode(n)),y=jq(i)||Rq(String.fromCharCode(i)),d=Aq(n),v=Aq(i),v?b=!1:y&&(d||h||(b=!1)),d?D=!1:h&&(v||y||(D=!1)),t?(s=b,l=D):(s=b&&(!D||h),l=D&&(!b||y)),{can_open:s,can_close:l,length:o}};jp.prototype.Token=OO;Pq.exports=jp});var Vq=G((Lle,qq)=>{"use strict";var Mq=zm(),wO=[["text",uq()],["newline",lq()],["escape",fq()],["backticks",pq()],["strikethrough",TO().tokenize],["emphasis",EO().tokenize],["link",mq()],["image",bq()],["autolink",_q()],["html_inline",Sq()],["entity",Nq()]],NO=[["balance_pairs",Cq()],["strikethrough",TO().postProcess],["emphasis",EO().postProcess],["text_collapse",Iq()]];function Pp(){var e;for(this.ruler=new Mq,e=0;e<wO.length;e++)this.ruler.push(wO[e][0],wO[e][1]);for(this.ruler2=new Mq,e=0;e<NO.length;e++)this.ruler2.push(NO[e][0],NO[e][1])}Pp.prototype.skipToken=function(e){var t,r,n=e.pos,i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting,l=e.cache;if(typeof l[n]!="undefined"){e.pos=l[n];return}if(e.level<s)for(r=0;r<o&&(e.level++,t=i[r](e,!0),e.level--,!t);r++);else e.pos=e.posMax;t||e.pos++,l[n]=e.pos};Pp.prototype.tokenize=function(e){for(var t,r,n=this.ruler.getRules(""),i=n.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(r=0;r<i&&(t=n[r](e,!1),!t);r++);if(t){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Pp.prototype.parse=function(e,t,r,n){var i,o,s,l=new this.State(e,t,r,n);for(this.tokenize(l),o=this.ruler2.getRules(""),s=o.length,i=0;i<s;i++)o[i](l)};Pp.prototype.State=Fq();qq.exports=Pp});var Gq=G((Ile,Uq)=>{"use strict";Uq.exports=function(e){var t={};t.src_Any=sO().source,t.src_Cc=lO().source,t.src_Z=cO().source,t.src_P=Gm().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,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+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 Wq=G((Ale,zq)=>{"use strict";function DO(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 ey(e){return Object.prototype.toString.call(e)}function o$(e){return ey(e)==="[object String]"}function u$(e){return ey(e)==="[object Object]"}function s$(e){return ey(e)==="[object RegExp]"}function Qq(e){return ey(e)==="[object Function]"}function l$(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Bq={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function c$(e){return Object.keys(e||{}).reduce(function(t,r){return t||Bq.hasOwnProperty(r)},!1)}var f$={"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}}},d$="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]",p$="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function h$(e){e.__index__=-1,e.__text_cache__=""}function v$(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function Kq(){return function(e,t){t.normalize(e)}}function ty(e){var t=e.re=Gq()(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(d$),r.push(t.src_xn),t.src_tlds=r.join("|");function n(l){return l.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 i=[];e.__compiled__={};function o(l,d){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+d)}Object.keys(e.__schemas__).forEach(function(l){var d=e.__schemas__[l];if(d!==null){var h={validate:null,link:null};if(e.__compiled__[l]=h,u$(d)){s$(d.validate)?h.validate=v$(d.validate):Qq(d.validate)?h.validate=d.validate:o(l,d),Qq(d.normalize)?h.normalize=d.normalize:d.normalize?o(l,d):h.normalize=Kq();return}if(o$(d)){i.push(l);return}o(l,d)}}),i.forEach(function(l){!e.__compiled__[e.__schemas__[l]]||(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:Kq()};var s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(l$).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"),h$(e)}function g$(e,t){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function Hq(e,t){var r=new g$(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);t||c$(e)&&(t=e,e={}),this.__opts__=DO({},Bq,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=DO({},f$,e),this.__compiled__={},this.__tlds__=p$,this.__tlds_replaced__=!1,this.re={},ty(this)}Zi.prototype.add=function(t,r){return this.__schemas__[t]=r,ty(this),this};Zi.prototype.set=function(t){return this.__opts__=DO(this.__opts__,t),this};Zi.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var r,n,i,o,s,l,d,h,v;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<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(v=t.indexOf("@"),v>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=l))),this.__index__>=0};Zi.prototype.pretest=function(t){return this.re.pretest.test(t)};Zi.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Zi.prototype.match=function(t){var r=0,n=[];this.__index__>=0&&this.__text_cache__===t&&(n.push(Hq(this,r)),r=this.__last_index__);for(var i=r?t.slice(r):t;this.test(i);)n.push(Hq(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};Zi.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),ty(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,ty(this),this)};Zi.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Zi.prototype.onCompile=function(){};zq.exports=Zi});var aV=G((Rle,iV)=>{"use strict";var Pc=2147483647,Ja=36,xO=1,Fp=26,m$=38,y$=700,Yq=72,Jq=128,Xq="-",b$=/^xn--/,T$=/[^\0-\x7E]/,_$=/[\x2E\u3002\uFF0E\uFF61]/g,E$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},CO=Ja-xO,Xa=Math.floor,LO=String.fromCharCode;function Ms(e){throw new RangeError(E$[e])}function S$(e,t){let r=[],n=e.length;for(;n--;)r[n]=t(e[n]);return r}function Zq(e,t){let r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(_$,".");let i=e.split("."),o=S$(i,t).join(".");return n+o}function $q(e){let t=[],r=0,n=e.length;for(;r<n;){let i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){let o=e.charCodeAt(r++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}var k$=e=>String.fromCodePoint(...e),O$=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Ja},eV=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},tV=function(e,t,r){let n=0;for(e=r?Xa(e/y$):e>>1,e+=Xa(e/t);e>CO*Fp>>1;n+=Ja)e=Xa(e/CO);return Xa(n+(CO+1)*e/(e+m$))},rV=function(e){let t=[],r=e.length,n=0,i=Jq,o=Yq,s=e.lastIndexOf(Xq);s<0&&(s=0);for(let l=0;l<s;++l)e.charCodeAt(l)>=128&&Ms("not-basic"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l<r;){let d=n;for(let v=1,y=Ja;;y+=Ja){l>=r&&Ms("invalid-input");let b=O$(e.charCodeAt(l++));(b>=Ja||b>Xa((Pc-n)/v))&&Ms("overflow"),n+=b*v;let D=y<=o?xO:y>=o+Fp?Fp:y-o;if(b<D)break;let _=Ja-D;v>Xa(Pc/_)&&Ms("overflow"),v*=_}let h=t.length+1;o=tV(n-d,h,d==0),Xa(n/h)>Pc-i&&Ms("overflow"),i+=Xa(n/h),n%=h,t.splice(n++,0,i)}return String.fromCodePoint(...t)},nV=function(e){let t=[];e=$q(e);let r=e.length,n=Jq,i=0,o=Yq;for(let d of e)d<128&&t.push(LO(d));let s=t.length,l=s;for(s&&t.push(Xq);l<r;){let d=Pc;for(let v of e)v>=n&&v<d&&(d=v);let h=l+1;d-n>Xa((Pc-i)/h)&&Ms("overflow"),i+=(d-n)*h,n=d;for(let v of e)if(v<n&&++i>Pc&&Ms("overflow"),v==n){let y=i;for(let b=Ja;;b+=Ja){let D=b<=o?xO:b>=o+Fp?Fp:b-o;if(y<D)break;let _=y-D,k=Ja-D;t.push(LO(eV(D+_%k,0))),y=Xa(_/k)}t.push(LO(eV(y,0))),o=tV(i,h,l==s),i=0,++l}++i,++n}return t.join("")},w$=function(e){return Zq(e,function(t){return b$.test(t)?rV(t.slice(4).toLowerCase()):t})},N$=function(e){return Zq(e,function(t){return T$.test(t)?"xn--"+nV(t):t})},D$={version:"2.1.0",ucs2:{decode:$q,encode:k$},decode:rV,encode:nV,toASCII:N$,toUnicode:w$};iV.exports=D$});var uV=G((jle,oV)=>{"use strict";oV.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 lV=G((Ple,sV)=>{"use strict";sV.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 fV=G((Fle,cV)=>{"use strict";cV.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 vV=G((Mle,hV)=>{"use strict";var Mp=Pt(),x$=YF(),C$=XF(),L$=EM(),I$=aq(),A$=Vq(),R$=Wq(),qs=uO(),dV=aV(),j$={default:uV(),zero:lV(),commonmark:fV()},P$=/^(vbscript|javascript|file|data):/,F$=/^data:image\/(gif|png|jpeg|webp);/;function M$(e){var t=e.trim().toLowerCase();return P$.test(t)?!!F$.test(t):!0}var pV=["http:","https:","mailto:"];function q$(e){var t=qs.parse(e,!0);if(t.hostname&&(!t.protocol||pV.indexOf(t.protocol)>=0))try{t.hostname=dV.toASCII(t.hostname)}catch(r){}return qs.encode(qs.format(t))}function V$(e){var t=qs.parse(e,!0);if(t.hostname&&(!t.protocol||pV.indexOf(t.protocol)>=0))try{t.hostname=dV.toUnicode(t.hostname)}catch(r){}return qs.decode(qs.format(t),qs.decode.defaultChars+"%")}function $i(e,t){if(!(this instanceof $i))return new $i(e,t);t||Mp.isString(e)||(t=e||{},e="default"),this.inline=new A$,this.block=new I$,this.core=new L$,this.renderer=new C$,this.linkify=new R$,this.validateLink=M$,this.normalizeLink=q$,this.normalizeLinkText=V$,this.utils=Mp,this.helpers=Mp.assign({},x$),this.options={},this.configure(e),t&&this.set(t)}$i.prototype.set=function(e){return Mp.assign(this.options,e),this};$i.prototype.configure=function(e){var t=this,r;if(Mp.isString(e)&&(r=e,e=j$[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};$i.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};$i.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};$i.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};$i.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};$i.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};$i.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};$i.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};hV.exports=$i});var ry=G((qle,gV)=>{"use strict";gV.exports=vV()});var bV=G((Ule,yV)=>{"use strict";var Q$=/["'&<>]/;yV.exports=B$;function B$(e){var t=""+e,r=Q$.exec(t);if(!r)return t;var n,i="",o=0,s=0;for(o=r.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}s!==o&&(i+=t.substring(s,o)),s=o+1,i+=n}return s!==o?i+t.substring(s,o):i}});var Wt=G((IO,AO)=>{(function(e,t){typeof IO=="object"&&typeof AO!="undefined"?AO.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.CodeMirror=t())})(IO,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,r=/gecko\/\d/i.test(e),n=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),s=n||i||o,l=s&&(n?document.documentMode||6:+(o||i)[1]),d=!o&&/WebKit\//.test(e),h=d&&/Qt\/\d+\.\d+/.test(e),v=!o&&/Chrome\/(\d+)/.exec(e),y=v&&+v[1],b=/Opera\//.test(e),D=/Apple Computer/.test(navigator.vendor),_=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),k=/PhantomJS/.test(e),T=D&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),S=/Android/.test(e),m=T||S||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),w=T||/Mac/.test(t),x=/\bCrOS\b/.test(e),L=/win/i.test(t),O=b&&e.match(/Version\/(\d*\.\d*)/);O&&(O=Number(O[1])),O&&O>=15&&(b=!1,d=!0);var R=w&&(h||b&&(O==null||O<12.11)),M=r||s&&l>=9;function q(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var z=function(a,u){var f=a.className,c=q(u).exec(f);if(c){var p=f.slice(c.index+c[0].length);a.className=f.slice(0,c.index)+(p?c[1]+p:"")}};function B(a){for(var u=a.childNodes.length;u>0;--u)a.removeChild(a.firstChild);return a}function Q(a,u){return B(a).appendChild(u)}function P(a,u,f,c){var p=document.createElement(a);if(f&&(p.className=f),c&&(p.style.cssText=c),typeof u=="string")p.appendChild(document.createTextNode(u));else if(u)for(var g=0;g<u.length;++g)p.appendChild(u[g]);return p}function he(a,u,f,c){var p=P(a,u,f,c);return p.setAttribute("role","presentation"),p}var xe;document.createRange?xe=function(a,u,f,c){var p=document.createRange();return p.setEnd(c||a,f),p.setStart(a,u),p}:xe=function(a,u,f){var c=document.body.createTextRange();try{c.moveToElementText(a.parentNode)}catch(p){return c}return c.collapse(!0),c.moveEnd("character",f),c.moveStart("character",u),c};function ge(a,u){if(u.nodeType==3&&(u=u.parentNode),a.contains)return a.contains(u);do if(u.nodeType==11&&(u=u.host),u==a)return!0;while(u=u.parentNode)}function Fe(a){var u;try{u=a.activeElement}catch(f){u=a.body||null}for(;u&&u.shadowRoot&&u.shadowRoot.activeElement;)u=u.shadowRoot.activeElement;return u}function Le(a,u){var f=a.className;q(u).test(f)||(a.className+=(f?" ":"")+u)}function He(a,u){for(var f=a.split(" "),c=0;c<f.length;c++)f[c]&&!q(f[c]).test(u)&&(u+=" "+f[c]);return u}var Xe=function(a){a.select()};T?Xe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:s&&(Xe=function(a){try{a.select()}catch(u){}});function Ve(a){return a.display.wrapper.ownerDocument}function At(a){return Ve(a).defaultView}function Ot(a){var u=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,u)}}function Ie(a,u,f){u||(u={});for(var c in a)a.hasOwnProperty(c)&&(f!==!1||!u.hasOwnProperty(c))&&(u[c]=a[c]);return u}function te(a,u,f,c,p){u==null&&(u=a.search(/[^\s\u00a0]/),u==-1&&(u=a.length));for(var g=c||0,E=p||0;;){var N=a.indexOf(" ",g);if(N<0||N>=u)return E+(u-g);E+=N-g,E+=f-E%f,g=N+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ot(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,u){this.f=u;var f=+new Date+a;(!this.id||f<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=f)};function we(a,u){for(var f=0;f<a.length;++f)if(a[f]==u)return f;return-1}var ot=50,Me={toString:function(){return"CodeMirror.Pass"}},Qe={scroll:!1},ze={origin:"*mouse"},mt={origin:"+move"};function oe(a,u,f){for(var c=0,p=0;;){var g=a.indexOf(" ",c);g==-1&&(g=a.length);var E=g-c;if(g==a.length||p+E>=u)return c+Math.min(E,u-p);if(p+=g-c,p+=f-p%f,c=g+1,p>=u)return c}}var me=[""];function fe(a){for(;me.length<=a;)me.push(se(me)+" ");return me[a]}function se(a){return a[a.length-1]}function Ue(a,u){for(var f=[],c=0;c<a.length;c++)f[c]=u(a[c],c);return f}function at(a,u,f){for(var c=0,p=f(u);c<a.length&&f(a[c])<=p;)c++;a.splice(c,0,u)}function ct(){}function st(a,u){var f;return Object.create?f=Object.create(a):(ct.prototype=a,f=new ct),u&&Ie(u,f),f}var Dn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ei(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Dn.test(a))}function dn(a,u){return u?u.source.indexOf("\\w")>-1&&Ei(a)?!0:u.test(a):Ei(a)}function Hn(a){for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0}var pn=/[\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 Pi(a){return a.charCodeAt(0)>=768&&pn.test(a)}function Qr(a,u,f){for(;(f<0?u>0:u<a.length)&&Pi(a.charAt(u));)u+=f;return u}function Kt(a,u,f){for(var c=u>f?-1:1;;){if(u==f)return u;var p=(u+f)/2,g=c<0?Math.ceil(p):Math.floor(p);if(g==u)return a(g)?u:f;a(g)?f=g:u=g+c}}function hn(a,u,f,c){if(!a)return c(u,f,"ltr",0);for(var p=!1,g=0;g<a.length;++g){var E=a[g];(E.from<f&&E.to>u||u==f&&E.to==u)&&(c(Math.max(E.from,u),Math.min(E.to,f),E.level==1?"rtl":"ltr",g),p=!0)}p||c(u,f,"ltr")}var zn=null;function vr(a,u,f){var c;zn=null;for(var p=0;p<a.length;++p){var g=a[p];if(g.from<u&&g.to>u)return p;g.to==u&&(g.from!=g.to&&f=="before"?c=p:zn=p),g.from==u&&(g.from!=g.to&&f!="before"?c=p:zn=p)}return c!=null?c:zn}var Ro=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(I){return I<=247?a.charAt(I):1424<=I&&I<=1524?"R":1536<=I&&I<=1785?u.charAt(I-1536):1774<=I&&I<=2220?"r":8192<=I&&I<=8203?"w":I==8204?"b":"L"}var c=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,g=/[LRr]/,E=/[Lb1n]/,N=/[1n]/;function C(I,U,K){this.level=I,this.from=U,this.to=K}return function(I,U){var K=U=="ltr"?"L":"R";if(I.length==0||U=="ltr"&&!c.test(I))return!1;for(var $=I.length,X=[],ae=0;ae<$;++ae)X.push(f(I.charCodeAt(ae)));for(var le=0,pe=K;le<$;++le){var be=X[le];be=="m"?X[le]=pe:pe=be}for(var Ne=0,Te=K;Ne<$;++Ne){var Ce=X[Ne];Ce=="1"&&Te=="r"?X[Ne]="n":g.test(Ce)&&(Te=Ce,Ce=="r"&&(X[Ne]="R"))}for(var Ge=1,qe=X[0];Ge<$-1;++Ge){var lt=X[Ge];lt=="+"&&qe=="1"&&X[Ge+1]=="1"?X[Ge]="1":lt==","&&qe==X[Ge+1]&&(qe=="1"||qe=="n")&&(X[Ge]=qe),qe=lt}for(var Ht=0;Ht<$;++Ht){var zr=X[Ht];if(zr==",")X[Ht]="N";else if(zr=="%"){var lr=void 0;for(lr=Ht+1;lr<$&&X[lr]=="%";++lr);for(var li=Ht&&X[Ht-1]=="!"||lr<$&&X[lr]=="1"?"1":"N",Jn=Ht;Jn<lr;++Jn)X[Jn]=li;Ht=lr-1}}for(var wr=0,Xn=K;wr<$;++wr){var sn=X[wr];Xn=="L"&&sn=="1"?X[wr]="L":g.test(sn)&&(Xn=sn)}for(var Fr=0;Fr<$;++Fr)if(p.test(X[Fr])){var Nr=void 0;for(Nr=Fr+1;Nr<$&&p.test(X[Nr]);++Nr);for(var mr=(Fr?X[Fr-1]:K)=="L",Zn=(Nr<$?X[Nr]:K)=="L",vl=mr==Zn?mr?"L":"R":K,Ko=Fr;Ko<Nr;++Ko)X[Ko]=vl;Fr=Nr-1}for(var mn=[],Ca,Wr=0;Wr<$;)if(E.test(X[Wr])){var q0=Wr;for(++Wr;Wr<$&&E.test(X[Wr]);++Wr);mn.push(new C(0,q0,Wr))}else{var po=Wr,Xu=mn.length,Zu=U=="rtl"?1:0;for(++Wr;Wr<$&&X[Wr]!="L";++Wr);for(var In=po;In<Wr;)if(N.test(X[In])){po<In&&(mn.splice(Xu,0,new C(1,po,In)),Xu+=Zu);var gl=In;for(++In;In<Wr&&N.test(X[In]);++In);mn.splice(Xu,0,new C(2,gl,In)),Xu+=Zu,po=In}else++In;po<Wr&&mn.splice(Xu,0,new C(1,po,Wr))}return U=="ltr"&&(mn[0].level==1&&(Ca=I.match(/^\s+/))&&(mn[0].from=Ca[0].length,mn.unshift(new C(0,0,Ca[0].length))),se(mn).level==1&&(Ca=I.match(/\s+$/))&&(se(mn).to-=Ca[0].length,mn.push(new C(0,$-Ca[0].length,$)))),U=="rtl"?mn.reverse():mn}}();function xn(a,u){var f=a.order;return f==null&&(f=a.order=Ro(a.text,u)),f}var Ws=[],_e=function(a,u,f){if(a.addEventListener)a.addEventListener(u,f,!1);else if(a.attachEvent)a.attachEvent("on"+u,f);else{var c=a._handlers||(a._handlers={});c[u]=(c[u]||Ws).concat(f)}};function Gu(a,u){return a._handlers&&a._handlers[u]||Ws}function Ar(a,u,f){if(a.removeEventListener)a.removeEventListener(u,f,!1);else if(a.detachEvent)a.detachEvent("on"+u,f);else{var c=a._handlers,p=c&&c[u];if(p){var g=we(p,f);g>-1&&(c[u]=p.slice(0,g).concat(p.slice(g+1)))}}}function Ft(a,u){var f=Gu(a,u);if(!!f.length)for(var c=Array.prototype.slice.call(arguments,2),p=0;p<f.length;++p)f[p].apply(null,c)}function nr(a,u,f){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),Ft(a,f||u.type,a,u),Y(u)||u.codemirrorIgnore}function Ys(a){var u=a._handlers&&a._handlers.cursorActivity;if(!!u)for(var f=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),c=0;c<u.length;++c)we(f,u[c])==-1&&f.push(u[c])}function on(a,u){return Gu(a,u).length>0}function un(a){a.prototype.on=function(u,f){_e(this,u,f)},a.prototype.off=function(u,f){Ar(this,u,f)}}function ee(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function F(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Y(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function J(a){ee(a),F(a)}function V(a){return a.target||a.srcElement}function A(a){var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),w&&a.ctrlKey&&u==1&&(u=3),u}var re=function(){if(s&&l<9)return!1;var a=P("div");return"draggable"in a||"dragDrop"in a}(),ue;function Ze(a){if(ue==null){var u=P("span","\u200B");Q(a,P("span",[u,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(ue=u.offsetWidth<=1&&u.offsetHeight>2&&!(s&&l<8))}var f=ue?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var Ut;function Rt(a){if(Ut!=null)return Ut;var u=Q(a,document.createTextNode("A\u062EA")),f=xe(u,0,1).getBoundingClientRect(),c=xe(u,1,2).getBoundingClientRect();return B(a),!f||f.left==f.right?!1:Ut=c.right-f.right<3}var vn=`
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var u=0,f=[],c=a.length;u<=c;){var p=a.indexOf(`
|
|
`,u);p==-1&&(p=a.length);var g=a.slice(u,a.charAt(p-1)=="\r"?p-1:p),E=g.indexOf("\r");E!=-1?(f.push(g.slice(0,E)),u+=E+1):(f.push(g),u=p+1)}return f}:function(a){return a.split(/\r\n?|\n/)},Rr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(u){return!1}}:function(a){var u;try{u=a.ownerDocument.selection.createRange()}catch(f){}return!u||u.parentElement()!=a?!1:u.compareEndPoints("StartToEnd",u)!=0},jr=function(){var a=P("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),et=null;function sa(a){if(et!=null)return et;var u=Q(a,P("span","x")),f=u.getBoundingClientRect(),c=xe(u,0,1).getBoundingClientRect();return et=Math.abs(f.left-c.left)>1}var Cn={},la={};function ch(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Cn[a]=u}function Js(a,u){la[a]=u}function ui(a){if(typeof a=="string"&&la.hasOwnProperty(a))a=la[a];else if(a&&typeof a.name=="string"&&la.hasOwnProperty(a.name)){var u=la[a.name];typeof u=="string"&&(u={name:u}),a=st(u,a),a.name=u.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return ui("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return ui("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function io(a,u){u=ui(u);var f=Cn[u.name];if(!f)return io(a,"text/plain");var c=f(a,u);if(jo.hasOwnProperty(u.name)){var p=jo[u.name];for(var g in p)!p.hasOwnProperty(g)||(c.hasOwnProperty(g)&&(c["_"+g]=c[g]),c[g]=p[g])}if(c.name=u.name,u.helperType&&(c.helperType=u.helperType),u.modeProps)for(var E in u.modeProps)c[E]=u.modeProps[E];return c}var jo={};function fh(a,u){var f=jo.hasOwnProperty(a)?jo[a]:jo[a]={};Ie(u,f)}function ao(a,u){if(u===!0)return u;if(a.copyState)return a.copyState(u);var f={};for(var c in u){var p=u[c];p instanceof Array&&(p=p.concat([])),f[c]=p}return f}function Po(a,u){for(var f;a.innerMode&&(f=a.innerMode(u),!(!f||f.mode==a));)u=f.state,a=f.mode;return f||{mode:a,state:u}}function nf(a,u,f){return a.startState?a.startState(u,f):!0}var gr=function(a,u,f){this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};gr.prototype.eol=function(){return this.pos>=this.string.length},gr.prototype.sol=function(){return this.pos==this.lineStart},gr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gr.prototype.eat=function(a){var u=this.string.charAt(this.pos),f;if(typeof a=="string"?f=u==a:f=u&&(a.test?a.test(u):a(u)),f)return++this.pos,u},gr.prototype.eatWhile=function(a){for(var u=this.pos;this.eat(a););return this.pos>u},gr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},gr.prototype.skipToEnd=function(){this.pos=this.string.length},gr.prototype.skipTo=function(a){var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0},gr.prototype.backUp=function(a){this.pos-=a},gr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},gr.prototype.indentation=function(){return te(this.string,null,this.tabSize)-(this.lineStart?te(this.string,this.lineStart,this.tabSize):0)},gr.prototype.match=function(a,u,f){if(typeof a=="string"){var c=function(E){return f?E.toLowerCase():E},p=this.string.substr(this.pos,a.length);if(c(p)==c(a))return u!==!1&&(this.pos+=a.length),!0}else{var g=this.string.slice(this.pos).match(a);return g&&g.index>0?null:(g&&u!==!1&&(this.pos+=g[0].length),g)}},gr.prototype.current=function(){return this.string.slice(this.start,this.pos)},gr.prototype.hideFirstChars=function(a,u){this.lineStart+=a;try{return u()}finally{this.lineStart-=a}},gr.prototype.lookAhead=function(a){var u=this.lineOracle;return u&&u.lookAhead(a)},gr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ae(a,u){if(u-=a.first,u<0||u>=a.size)throw new Error("There is no line "+(u+a.first)+" in the document.");for(var f=a;!f.lines;)for(var c=0;;++c){var p=f.children[c],g=p.chunkSize();if(u<g){f=p;break}u-=g}return f.lines[u]}function oo(a,u,f){var c=[],p=u.line;return a.iter(u.line,f.line+1,function(g){var E=g.text;p==f.line&&(E=E.slice(0,f.ch)),p==u.line&&(E=E.slice(u.ch)),c.push(E),++p}),c}function Xs(a,u,f){var c=[];return a.iter(u,f,function(p){c.push(p.text)}),c}function Fi(a,u){var f=u-a.height;if(f)for(var c=a;c;c=c.parent)c.height+=f}function wt(a){if(a.parent==null)return null;for(var u=a.parent,f=we(u.lines,a),c=u.parent;c;u=c,c=c.parent)for(var p=0;c.children[p]!=u;++p)f+=c.children[p].chunkSize();return f+u.first}function wa(a,u){var f=a.first;e:do{for(var c=0;c<a.children.length;++c){var p=a.children[c],g=p.height;if(u<g){a=p;continue e}u-=g,f+=p.chunkSize()}return f}while(!a.lines);for(var E=0;E<a.lines.length;++E){var N=a.lines[E],C=N.height;if(u<C)break;u-=C}return f+E}function j(a,u){return u>=a.first&&u<a.first+a.size}function H(a,u){return String(a.lineNumberFormatter(u+a.firstLineNumber))}function W(a,u,f){if(f===void 0&&(f=null),!(this instanceof W))return new W(a,u,f);this.line=a,this.ch=u,this.sticky=f}function ie(a,u){return a.line-u.line||a.ch-u.ch}function We(a,u){return a.sticky==u.sticky&&ie(a,u)==0}function vt(a){return W(a.line,a.ch)}function _t(a,u){return ie(a,u)<0?u:a}function Pr(a,u){return ie(a,u)<0?a:u}function Si(a,u){return Math.max(a.first,Math.min(u,a.first+a.size-1))}function Ye(a,u){if(u.line<a.first)return W(a.first,0);var f=a.first+a.size-1;return u.line>f?W(f,Ae(a,f).text.length):zQ(u,Ae(a,u.line).text.length)}function zQ(a,u){var f=a.ch;return f==null||f>u?W(a.line,u):f<0?W(a.line,0):a}function nN(a,u){for(var f=[],c=0;c<u.length;c++)f[c]=Ye(a,u[c]);return f}var dh=function(a,u){this.state=a,this.lookAhead=u},Na=function(a,u,f,c){this.state=u,this.doc=a,this.line=f,this.maxLookAhead=c||0,this.baseTokens=null,this.baseTokenPos=1};Na.prototype.lookAhead=function(a){var u=this.doc.getLine(this.line+a);return u!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),u},Na.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Na.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Na.fromSaved=function(a,u,f){return u instanceof dh?new Na(a,ao(a.mode,u.state),f,u.lookAhead):new Na(a,ao(a.mode,u),f)},Na.prototype.save=function(a){var u=a!==!1?ao(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dh(u,this.maxLookAhead):u};function iN(a,u,f,c){var p=[a.state.modeGen],g={};cN(a,u.text,a.doc.mode,f,function(I,U){return p.push(I,U)},g,c);for(var E=f.state,N=function(I){f.baseTokens=p;var U=a.state.overlays[I],K=1,$=0;f.state=!0,cN(a,u.text,U.mode,f,function(X,ae){for(var le=K;$<X;){var pe=p[K];pe>X&&p.splice(K,1,X,p[K+1],pe),K+=2,$=Math.min(X,pe)}if(!!ae)if(U.opaque)p.splice(le,K-le,X,"overlay "+ae),K=le+2;else for(;le<K;le+=2){var be=p[le+1];p[le+1]=(be?be+" ":"")+"overlay "+ae}},g),f.state=E,f.baseTokens=null,f.baseTokenPos=1},C=0;C<a.state.overlays.length;++C)N(C);return{styles:p,classes:g.bgClass||g.textClass?g:null}}function aN(a,u,f){if(!u.styles||u.styles[0]!=a.state.modeGen){var c=af(a,wt(u)),p=u.text.length>a.options.maxHighlightLength&&ao(a.doc.mode,c.state),g=iN(a,u,c);p&&(c.state=p),u.stateAfter=c.save(!p),u.styles=g.styles,g.classes?u.styleClasses=g.classes:u.styleClasses&&(u.styleClasses=null),f===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return u.styles}function af(a,u,f){var c=a.doc,p=a.display;if(!c.mode.startState)return new Na(c,!0,u);var g=WQ(a,u,f),E=g>c.first&&Ae(c,g-1).stateAfter,N=E?Na.fromSaved(c,E,g):new Na(c,nf(c.mode),g);return c.iter(g,u,function(C){Wy(a,C.text,N);var I=N.line;C.stateAfter=I==u-1||I%5==0||I>=p.viewFrom&&I<p.viewTo?N.save():null,N.nextLine()}),f&&(c.modeFrontier=N.line),N}function Wy(a,u,f,c){var p=a.doc.mode,g=new gr(u,a.options.tabSize,f);for(g.start=g.pos=c||0,u==""&&oN(p,f.state);!g.eol();)Yy(p,g,f.state),g.start=g.pos}function oN(a,u){if(a.blankLine)return a.blankLine(u);if(!!a.innerMode){var f=Po(a,u);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}function Yy(a,u,f,c){for(var p=0;p<10;p++){c&&(c[0]=Po(a,f).mode);var g=a.token(u,f);if(u.pos>u.start)return g}throw new Error("Mode "+a.name+" failed to advance stream.")}var uN=function(a,u,f){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=u||null,this.state=f};function sN(a,u,f,c){var p=a.doc,g=p.mode,E;u=Ye(p,u);var N=Ae(p,u.line),C=af(a,u.line,f),I=new gr(N.text,a.options.tabSize,C),U;for(c&&(U=[]);(c||I.pos<u.ch)&&!I.eol();)I.start=I.pos,E=Yy(g,I,C.state),c&&U.push(new uN(I,E,ao(p.mode,C.state)));return c?U:new uN(I,E,C.state)}function lN(a,u){if(a)for(;;){var f=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!f)break;a=a.slice(0,f.index)+a.slice(f.index+f[0].length);var c=f[1]?"bgClass":"textClass";u[c]==null?u[c]=f[2]:new RegExp("(?:^|\\s)"+f[2]+"(?:$|\\s)").test(u[c])||(u[c]+=" "+f[2])}return a}function cN(a,u,f,c,p,g,E){var N=f.flattenSpans;N==null&&(N=a.options.flattenSpans);var C=0,I=null,U=new gr(u,a.options.tabSize,c),K,$=a.options.addModeClass&&[null];for(u==""&&lN(oN(f,c.state),g);!U.eol();){if(U.pos>a.options.maxHighlightLength?(N=!1,E&&Wy(a,u,c,U.pos),U.pos=u.length,K=null):K=lN(Yy(f,U,c.state,$),g),$){var X=$[0].name;X&&(K="m-"+(K?X+" "+K:X))}if(!N||I!=K){for(;C<U.start;)C=Math.min(U.start,C+5e3),p(C,I);I=K}U.start=U.pos}for(;C<U.pos;){var ae=Math.min(U.pos,C+5e3);p(ae,I),C=ae}}function WQ(a,u,f){for(var c,p,g=a.doc,E=f?-1:u-(a.doc.mode.innerMode?1e3:100),N=u;N>E;--N){if(N<=g.first)return g.first;var C=Ae(g,N-1),I=C.stateAfter;if(I&&(!f||N+(I instanceof dh?I.lookAhead:0)<=g.modeFrontier))return N;var U=te(C.text,null,a.options.tabSize);(p==null||c>U)&&(p=N-1,c=U)}return p}function YQ(a,u){if(a.modeFrontier=Math.min(a.modeFrontier,u),!(a.highlightFrontier<u-10)){for(var f=a.first,c=u-1;c>f;c--){var p=Ae(a,c).stateAfter;if(p&&(!(p instanceof dh)||c+p.lookAhead<u)){f=c+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,f)}}var fN=!1,uo=!1;function JQ(){fN=!0}function XQ(){uo=!0}function ph(a,u,f){this.marker=a,this.from=u,this.to=f}function of(a,u){if(a)for(var f=0;f<a.length;++f){var c=a[f];if(c.marker==u)return c}}function ZQ(a,u){for(var f,c=0;c<a.length;++c)a[c]!=u&&(f||(f=[])).push(a[c]);return f}function $Q(a,u,f){var c=f&&window.WeakSet&&(f.markedSpans||(f.markedSpans=new WeakSet));c&&a.markedSpans&&c.has(a.markedSpans)?a.markedSpans.push(u):(a.markedSpans=a.markedSpans?a.markedSpans.concat([u]):[u],c&&c.add(a.markedSpans)),u.marker.attachLine(a)}function e2(a,u,f){var c;if(a)for(var p=0;p<a.length;++p){var g=a[p],E=g.marker,N=g.from==null||(E.inclusiveLeft?g.from<=u:g.from<u);if(N||g.from==u&&E.type=="bookmark"&&(!f||!g.marker.insertLeft)){var C=g.to==null||(E.inclusiveRight?g.to>=u:g.to>u);(c||(c=[])).push(new ph(E,g.from,C?null:g.to))}}return c}function t2(a,u,f){var c;if(a)for(var p=0;p<a.length;++p){var g=a[p],E=g.marker,N=g.to==null||(E.inclusiveRight?g.to>=u:g.to>u);if(N||g.from==u&&E.type=="bookmark"&&(!f||g.marker.insertLeft)){var C=g.from==null||(E.inclusiveLeft?g.from<=u:g.from<u);(c||(c=[])).push(new ph(E,C?null:g.from-u,g.to==null?null:g.to-u))}}return c}function Jy(a,u){if(u.full)return null;var f=j(a,u.from.line)&&Ae(a,u.from.line).markedSpans,c=j(a,u.to.line)&&Ae(a,u.to.line).markedSpans;if(!f&&!c)return null;var p=u.from.ch,g=u.to.ch,E=ie(u.from,u.to)==0,N=e2(f,p,E),C=t2(c,g,E),I=u.text.length==1,U=se(u.text).length+(I?p:0);if(N)for(var K=0;K<N.length;++K){var $=N[K];if($.to==null){var X=of(C,$.marker);X?I&&($.to=X.to==null?null:X.to+U):$.to=p}}if(C)for(var ae=0;ae<C.length;++ae){var le=C[ae];if(le.to!=null&&(le.to+=U),le.from==null){var pe=of(N,le.marker);pe||(le.from=U,I&&(N||(N=[])).push(le))}else le.from+=U,I&&(N||(N=[])).push(le)}N&&(N=dN(N)),C&&C!=N&&(C=dN(C));var be=[N];if(!I){var Ne=u.text.length-2,Te;if(Ne>0&&N)for(var Ce=0;Ce<N.length;++Ce)N[Ce].to==null&&(Te||(Te=[])).push(new ph(N[Ce].marker,null,null));for(var Ge=0;Ge<Ne;++Ge)be.push(Te);be.push(C)}return be}function dN(a){for(var u=0;u<a.length;++u){var f=a[u];f.from!=null&&f.from==f.to&&f.marker.clearWhenEmpty!==!1&&a.splice(u--,1)}return a.length?a:null}function r2(a,u,f){var c=null;if(a.iter(u.line,f.line+1,function(X){if(X.markedSpans)for(var ae=0;ae<X.markedSpans.length;++ae){var le=X.markedSpans[ae].marker;le.readOnly&&(!c||we(c,le)==-1)&&(c||(c=[])).push(le)}}),!c)return null;for(var p=[{from:u,to:f}],g=0;g<c.length;++g)for(var E=c[g],N=E.find(0),C=0;C<p.length;++C){var I=p[C];if(!(ie(I.to,N.from)<0||ie(I.from,N.to)>0)){var U=[C,1],K=ie(I.from,N.from),$=ie(I.to,N.to);(K<0||!E.inclusiveLeft&&!K)&&U.push({from:I.from,to:N.from}),($>0||!E.inclusiveRight&&!$)&&U.push({from:N.to,to:I.to}),p.splice.apply(p,U),C+=U.length-3}}return p}function pN(a){var u=a.markedSpans;if(!!u){for(var f=0;f<u.length;++f)u[f].marker.detachLine(a);a.markedSpans=null}}function hN(a,u){if(!!u){for(var f=0;f<u.length;++f)u[f].marker.attachLine(a);a.markedSpans=u}}function hh(a){return a.inclusiveLeft?-1:0}function vh(a){return a.inclusiveRight?1:0}function Xy(a,u){var f=a.lines.length-u.lines.length;if(f!=0)return f;var c=a.find(),p=u.find(),g=ie(c.from,p.from)||hh(a)-hh(u);if(g)return-g;var E=ie(c.to,p.to)||vh(a)-vh(u);return E||u.id-a.id}function vN(a,u){var f=uo&&a.markedSpans,c;if(f)for(var p=void 0,g=0;g<f.length;++g)p=f[g],p.marker.collapsed&&(u?p.from:p.to)==null&&(!c||Xy(c,p.marker)<0)&&(c=p.marker);return c}function gN(a){return vN(a,!0)}function gh(a){return vN(a,!1)}function n2(a,u){var f=uo&&a.markedSpans,c;if(f)for(var p=0;p<f.length;++p){var g=f[p];g.marker.collapsed&&(g.from==null||g.from<u)&&(g.to==null||g.to>u)&&(!c||Xy(c,g.marker)<0)&&(c=g.marker)}return c}function mN(a,u,f,c,p){var g=Ae(a,u),E=uo&&g.markedSpans;if(E)for(var N=0;N<E.length;++N){var C=E[N];if(!!C.marker.collapsed){var I=C.marker.find(0),U=ie(I.from,f)||hh(C.marker)-hh(p),K=ie(I.to,c)||vh(C.marker)-vh(p);if(!(U>=0&&K<=0||U<=0&&K>=0)&&(U<=0&&(C.marker.inclusiveRight&&p.inclusiveLeft?ie(I.to,f)>=0:ie(I.to,f)>0)||U>=0&&(C.marker.inclusiveRight&&p.inclusiveLeft?ie(I.from,c)<=0:ie(I.from,c)<0)))return!0}}}function ca(a){for(var u;u=gN(a);)a=u.find(-1,!0).line;return a}function i2(a){for(var u;u=gh(a);)a=u.find(1,!0).line;return a}function a2(a){for(var u,f;u=gh(a);)a=u.find(1,!0).line,(f||(f=[])).push(a);return f}function Zy(a,u){var f=Ae(a,u),c=ca(f);return f==c?u:wt(c)}function yN(a,u){if(u>a.lastLine())return u;var f=Ae(a,u),c;if(!Fo(a,f))return u;for(;c=gh(f);)f=c.find(1,!0).line;return wt(f)+1}function Fo(a,u){var f=uo&&u.markedSpans;if(f){for(var c=void 0,p=0;p<f.length;++p)if(c=f[p],!!c.marker.collapsed){if(c.from==null)return!0;if(!c.marker.widgetNode&&c.from==0&&c.marker.inclusiveLeft&&$y(a,u,c))return!0}}}function $y(a,u,f){if(f.to==null){var c=f.marker.find(1,!0);return $y(a,c.line,of(c.line.markedSpans,f.marker))}if(f.marker.inclusiveRight&&f.to==u.text.length)return!0;for(var p=void 0,g=0;g<u.markedSpans.length;++g)if(p=u.markedSpans[g],p.marker.collapsed&&!p.marker.widgetNode&&p.from==f.to&&(p.to==null||p.to!=f.from)&&(p.marker.inclusiveLeft||f.marker.inclusiveRight)&&$y(a,u,p))return!0}function so(a){a=ca(a);for(var u=0,f=a.parent,c=0;c<f.lines.length;++c){var p=f.lines[c];if(p==a)break;u+=p.height}for(var g=f.parent;g;f=g,g=f.parent)for(var E=0;E<g.children.length;++E){var N=g.children[E];if(N==f)break;u+=N.height}return u}function mh(a){if(a.height==0)return 0;for(var u=a.text.length,f,c=a;f=gN(c);){var p=f.find(0,!0);c=p.from.line,u+=p.from.ch-p.to.ch}for(c=a;f=gh(c);){var g=f.find(0,!0);u-=c.text.length-g.from.ch,c=g.to.line,u+=c.text.length-g.to.ch}return u}function e0(a){var u=a.display,f=a.doc;u.maxLine=Ae(f,f.first),u.maxLineLength=mh(u.maxLine),u.maxLineChanged=!0,f.iter(function(c){var p=mh(c);p>u.maxLineLength&&(u.maxLineLength=p,u.maxLine=c)})}var Zs=function(a,u,f){this.text=a,hN(this,u),this.height=f?f(this):1};Zs.prototype.lineNo=function(){return wt(this)},un(Zs);function o2(a,u,f,c){a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),pN(a),hN(a,f);var p=c?c(a):1;p!=a.height&&Fi(a,p)}function u2(a){a.parent=null,pN(a)}var s2={},l2={};function bN(a,u){if(!a||/^\s*$/.test(a))return null;var f=u.addModeClass?l2:s2;return f[a]||(f[a]=a.replace(/\S+/g,"cm-$&"))}function TN(a,u){var f=he("span",null,null,d?"padding-right: .1px":null),c={pre:he("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};u.measure={};for(var p=0;p<=(u.rest?u.rest.length:0);p++){var g=p?u.rest[p-1]:u.line,E=void 0;c.pos=0,c.addToken=f2,Rt(a.display.measure)&&(E=xn(g,a.doc.direction))&&(c.addToken=p2(c.addToken,E)),c.map=[];var N=u!=a.display.externalMeasured&&wt(g);h2(g,c,aN(a,g,N)),g.styleClasses&&(g.styleClasses.bgClass&&(c.bgClass=He(g.styleClasses.bgClass,c.bgClass||"")),g.styleClasses.textClass&&(c.textClass=He(g.styleClasses.textClass,c.textClass||""))),c.map.length==0&&c.map.push(0,0,c.content.appendChild(Ze(a.display.measure))),p==0?(u.measure.map=c.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(c.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var C=c.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(c.content.className="cm-tab-wrap-hack")}return Ft(a,"renderLine",a,u.line,c.pre),c.pre.className&&(c.textClass=He(c.pre.className,c.textClass||"")),c}function c2(a){var u=P("span","\u2022","cm-invalidchar");return u.title="\\u"+a.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function f2(a,u,f,c,p,g,E){if(!!u){var N=a.splitSpaces?d2(u,a.trailingSpace):u,C=a.cm.state.specialChars,I=!1,U;if(!C.test(u))a.col+=u.length,U=document.createTextNode(N),a.map.push(a.pos,a.pos+u.length,U),s&&l<9&&(I=!0),a.pos+=u.length;else{U=document.createDocumentFragment();for(var K=0;;){C.lastIndex=K;var $=C.exec(u),X=$?$.index-K:u.length-K;if(X){var ae=document.createTextNode(N.slice(K,K+X));s&&l<9?U.appendChild(P("span",[ae])):U.appendChild(ae),a.map.push(a.pos,a.pos+X,ae),a.col+=X,a.pos+=X}if(!$)break;K+=X+1;var le=void 0;if($[0]==" "){var pe=a.cm.options.tabSize,be=pe-a.col%pe;le=U.appendChild(P("span",fe(be),"cm-tab")),le.setAttribute("role","presentation"),le.setAttribute("cm-text"," "),a.col+=be}else $[0]=="\r"||$[0]==`
|
|
`?(le=U.appendChild(P("span",$[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),le.setAttribute("cm-text",$[0]),a.col+=1):(le=a.cm.options.specialCharPlaceholder($[0]),le.setAttribute("cm-text",$[0]),s&&l<9?U.appendChild(P("span",[le])):U.appendChild(le),a.col+=1);a.map.push(a.pos,a.pos+1,le),a.pos++}}if(a.trailingSpace=N.charCodeAt(u.length-1)==32,f||c||p||I||g||E){var Ne=f||"";c&&(Ne+=c),p&&(Ne+=p);var Te=P("span",[U],Ne,g);if(E)for(var Ce in E)E.hasOwnProperty(Ce)&&Ce!="style"&&Ce!="class"&&Te.setAttribute(Ce,E[Ce]);return a.content.appendChild(Te)}a.content.appendChild(U)}}function d2(a,u){if(a.length>1&&!/ /.test(a))return a;for(var f=u,c="",p=0;p<a.length;p++){var g=a.charAt(p);g==" "&&f&&(p==a.length-1||a.charCodeAt(p+1)==32)&&(g="\xA0"),c+=g,f=g==" "}return c}function p2(a,u){return function(f,c,p,g,E,N,C){p=p?p+" cm-force-border":"cm-force-border";for(var I=f.pos,U=I+c.length;;){for(var K=void 0,$=0;$<u.length&&(K=u[$],!(K.to>I&&K.from<=I));$++);if(K.to>=U)return a(f,c,p,g,E,N,C);a(f,c.slice(0,K.to-I),p,g,null,N,C),g=null,c=c.slice(K.to-I),I=K.to}}}function _N(a,u,f,c){var p=!c&&f.widgetNode;p&&a.map.push(a.pos,a.pos+u,p),!c&&a.cm.display.input.needsContentAttribute&&(p||(p=a.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",f.id)),p&&(a.cm.display.input.setUneditable(p),a.content.appendChild(p)),a.pos+=u,a.trailingSpace=!1}function h2(a,u,f){var c=a.markedSpans,p=a.text,g=0;if(!c){for(var E=1;E<f.length;E+=2)u.addToken(u,p.slice(g,g=f[E]),bN(f[E+1],u.cm.options));return}for(var N=p.length,C=0,I=1,U="",K,$,X=0,ae,le,pe,be,Ne;;){if(X==C){ae=le=pe=$="",Ne=null,be=null,X=1/0;for(var Te=[],Ce=void 0,Ge=0;Ge<c.length;++Ge){var qe=c[Ge],lt=qe.marker;if(lt.type=="bookmark"&&qe.from==C&<.widgetNode)Te.push(lt);else if(qe.from<=C&&(qe.to==null||qe.to>C||lt.collapsed&&qe.to==C&&qe.from==C)){if(qe.to!=null&&qe.to!=C&&X>qe.to&&(X=qe.to,le=""),lt.className&&(ae+=" "+lt.className),lt.css&&($=($?$+";":"")+lt.css),lt.startStyle&&qe.from==C&&(pe+=" "+lt.startStyle),lt.endStyle&&qe.to==X&&(Ce||(Ce=[])).push(lt.endStyle,qe.to),lt.title&&((Ne||(Ne={})).title=lt.title),lt.attributes)for(var Ht in lt.attributes)(Ne||(Ne={}))[Ht]=lt.attributes[Ht];lt.collapsed&&(!be||Xy(be.marker,lt)<0)&&(be=qe)}else qe.from>C&&X>qe.from&&(X=qe.from)}if(Ce)for(var zr=0;zr<Ce.length;zr+=2)Ce[zr+1]==X&&(le+=" "+Ce[zr]);if(!be||be.from==C)for(var lr=0;lr<Te.length;++lr)_N(u,0,Te[lr]);if(be&&(be.from||0)==C){if(_N(u,(be.to==null?N+1:be.to)-C,be.marker,be.from==null),be.to==null)return;be.to==C&&(be=!1)}}if(C>=N)break;for(var li=Math.min(N,X);;){if(U){var Jn=C+U.length;if(!be){var wr=Jn>li?U.slice(0,li-C):U;u.addToken(u,wr,K?K+ae:ae,pe,C+wr.length==X?le:"",$,Ne)}if(Jn>=li){U=U.slice(li-C),C=li;break}C=Jn,pe=""}U=p.slice(g,g=f[I++]),K=bN(f[I++],u.cm.options)}}}function EN(a,u,f){this.line=u,this.rest=a2(u),this.size=this.rest?wt(se(this.rest))-f+1:1,this.node=this.text=null,this.hidden=Fo(a,u)}function yh(a,u,f){for(var c=[],p,g=u;g<f;g=p){var E=new EN(a.doc,Ae(a.doc,g),g);p=g+E.size,c.push(E)}return c}var $s=null;function v2(a){$s?$s.ops.push(a):a.ownsGroup=$s={ops:[a],delayedCallbacks:[]}}function g2(a){var u=a.delayedCallbacks,f=0;do{for(;f<u.length;f++)u[f].call(null);for(var c=0;c<a.ops.length;c++){var p=a.ops[c];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(f<u.length)}function m2(a,u){var f=a.ownsGroup;if(!!f)try{g2(f)}finally{$s=null,u(f)}}var uf=null;function Br(a,u){var f=Gu(a,u);if(!!f.length){var c=Array.prototype.slice.call(arguments,2),p;$s?p=$s.delayedCallbacks:uf?p=uf:(p=uf=[],setTimeout(y2,0));for(var g=function(N){p.push(function(){return f[N].apply(null,c)})},E=0;E<f.length;++E)g(E)}}function y2(){var a=uf;uf=null;for(var u=0;u<a.length;++u)a[u]()}function SN(a,u,f,c){for(var p=0;p<u.changes.length;p++){var g=u.changes[p];g=="text"?T2(a,u):g=="gutter"?ON(a,u,f,c):g=="class"?t0(a,u):g=="widget"&&_2(a,u,c)}u.changes=null}function sf(a){return a.node==a.text&&(a.node=P("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),s&&l<8&&(a.node.style.zIndex=2)),a.node}function b2(a,u){var f=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(f&&(f+=" CodeMirror-linebackground"),u.background)f?u.background.className=f:(u.background.parentNode.removeChild(u.background),u.background=null);else if(f){var c=sf(u);u.background=c.insertBefore(P("div",null,f),c.firstChild),a.display.input.setUneditable(u.background)}}function kN(a,u){var f=a.display.externalMeasured;return f&&f.line==u.line?(a.display.externalMeasured=null,u.measure=f.measure,f.built):TN(a,u)}function T2(a,u){var f=u.text.className,c=kN(a,u);u.text==u.node&&(u.node=c.pre),u.text.parentNode.replaceChild(c.pre,u.text),u.text=c.pre,c.bgClass!=u.bgClass||c.textClass!=u.textClass?(u.bgClass=c.bgClass,u.textClass=c.textClass,t0(a,u)):f&&(u.text.className=f)}function t0(a,u){b2(a,u),u.line.wrapClass?sf(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var f=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=f||""}function ON(a,u,f,c){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var p=sf(u);u.gutterBackground=P("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(a.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px; width: "+c.gutterTotalWidth+"px"),a.display.input.setUneditable(u.gutterBackground),p.insertBefore(u.gutterBackground,u.text)}var g=u.line.gutterMarkers;if(a.options.lineNumbers||g){var E=sf(u),N=u.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?c.fixedPos:-c.gutterTotalWidth)+"px");if(N.setAttribute("aria-hidden","true"),a.display.input.setUneditable(N),E.insertBefore(N,u.text),u.line.gutterClass&&(N.className+=" "+u.line.gutterClass),a.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(u.lineNumber=N.appendChild(P("div",H(a.options,f),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+c.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),g)for(var C=0;C<a.display.gutterSpecs.length;++C){var I=a.display.gutterSpecs[C].className,U=g.hasOwnProperty(I)&&g[I];U&&N.appendChild(P("div",[U],"CodeMirror-gutter-elt","left: "+c.gutterLeft[I]+"px; width: "+c.gutterWidth[I]+"px"))}}}function _2(a,u,f){u.alignable&&(u.alignable=null);for(var c=q("CodeMirror-linewidget"),p=u.node.firstChild,g=void 0;p;p=g)g=p.nextSibling,c.test(p.className)&&u.node.removeChild(p);wN(a,u,f)}function E2(a,u,f,c){var p=kN(a,u);return u.text=u.node=p.pre,p.bgClass&&(u.bgClass=p.bgClass),p.textClass&&(u.textClass=p.textClass),t0(a,u),ON(a,u,f,c),wN(a,u,c),u.node}function wN(a,u,f){if(NN(a,u.line,u,f,!0),u.rest)for(var c=0;c<u.rest.length;c++)NN(a,u.rest[c],u,f,!1)}function NN(a,u,f,c,p){if(!!u.widgets)for(var g=sf(f),E=0,N=u.widgets;E<N.length;++E){var C=N[E],I=P("div",[C.node],"CodeMirror-linewidget"+(C.className?" "+C.className:""));C.handleMouseEvents||I.setAttribute("cm-ignore-events","true"),S2(C,I,f,c),a.display.input.setUneditable(I),p&&C.above?g.insertBefore(I,f.gutter||f.text):g.appendChild(I),Br(C,"redraw")}}function S2(a,u,f,c){if(a.noHScroll){(f.alignable||(f.alignable=[])).push(u);var p=c.wrapperWidth;u.style.left=c.fixedPos+"px",a.coverGutter||(p-=c.gutterTotalWidth,u.style.paddingLeft=c.gutterTotalWidth+"px"),u.style.width=p+"px"}a.coverGutter&&(u.style.zIndex=5,u.style.position="relative",a.noHScroll||(u.style.marginLeft=-c.gutterTotalWidth+"px"))}function lf(a){if(a.height!=null)return a.height;var u=a.doc.cm;if(!u)return 0;if(!ge(document.body,a.node)){var f="position: relative;";a.coverGutter&&(f+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),a.noHScroll&&(f+="width: "+u.display.wrapper.clientWidth+"px;"),Q(u.display.measure,P("div",[a.node],null,f))}return a.height=a.node.parentNode.offsetHeight}function lo(a,u){for(var f=V(u);f!=a.wrapper;f=f.parentNode)if(!f||f.nodeType==1&&f.getAttribute("cm-ignore-events")=="true"||f.parentNode==a.sizer&&f!=a.mover)return!0}function bh(a){return a.lineSpace.offsetTop}function r0(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function DN(a){if(a.cachedPaddingH)return a.cachedPaddingH;var u=Q(a.measure,P("pre","x","CodeMirror-line-like")),f=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,c={left:parseInt(f.paddingLeft),right:parseInt(f.paddingRight)};return!isNaN(c.left)&&!isNaN(c.right)&&(a.cachedPaddingH=c),c}function Da(a){return ot-a.display.nativeBarWidth}function Qu(a){return a.display.scroller.clientWidth-Da(a)-a.display.barWidth}function n0(a){return a.display.scroller.clientHeight-Da(a)-a.display.barHeight}function k2(a,u,f){var c=a.options.lineWrapping,p=c&&Qu(a);if(!u.measure.heights||c&&u.measure.width!=p){var g=u.measure.heights=[];if(c){u.measure.width=p;for(var E=u.text.firstChild.getClientRects(),N=0;N<E.length-1;N++){var C=E[N],I=E[N+1];Math.abs(C.bottom-I.bottom)>2&&g.push((C.bottom+I.top)/2-f.top)}}g.push(f.bottom-f.top)}}function xN(a,u,f){if(a.line==u)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var c=0;c<a.rest.length;c++)if(a.rest[c]==u)return{map:a.measure.maps[c],cache:a.measure.caches[c]};for(var p=0;p<a.rest.length;p++)if(wt(a.rest[p])>f)return{map:a.measure.maps[p],cache:a.measure.caches[p],before:!0}}}function O2(a,u){u=ca(u);var f=wt(u),c=a.display.externalMeasured=new EN(a.doc,u,f);c.lineN=f;var p=c.built=TN(a,c);return c.text=p.pre,Q(a.display.lineMeasure,p.pre),c}function CN(a,u,f,c){return xa(a,el(a,u),f,c)}function i0(a,u){if(u>=a.display.viewFrom&&u<a.display.viewTo)return a.display.view[Hu(a,u)];var f=a.display.externalMeasured;if(f&&u>=f.lineN&&u<f.lineN+f.size)return f}function el(a,u){var f=wt(u),c=i0(a,f);c&&!c.text?c=null:c&&c.changes&&(SN(a,c,f,l0(a)),a.curOp.forceUpdate=!0),c||(c=O2(a,u));var p=xN(c,u,f);return{line:u,view:c,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function xa(a,u,f,c,p){u.before&&(f=-1);var g=f+(c||""),E;return u.cache.hasOwnProperty(g)?E=u.cache[g]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(k2(a,u.view,u.rect),u.hasHeights=!0),E=N2(a,u,f,c),E.bogus||(u.cache[g]=E)),{left:E.left,right:E.right,top:p?E.rtop:E.top,bottom:p?E.rbottom:E.bottom}}var LN={left:0,right:0,top:0,bottom:0};function IN(a,u,f){for(var c,p,g,E,N,C,I=0;I<a.length;I+=3)if(N=a[I],C=a[I+1],u<N?(p=0,g=1,E="left"):u<C?(p=u-N,g=p+1):(I==a.length-3||u==C&&a[I+3]>u)&&(g=C-N,p=g-1,u>=C&&(E="right")),p!=null){if(c=a[I+2],N==C&&f==(c.insertLeft?"left":"right")&&(E=f),f=="left"&&p==0)for(;I&&a[I-2]==a[I-3]&&a[I-1].insertLeft;)c=a[(I-=3)+2],E="left";if(f=="right"&&p==C-N)for(;I<a.length-3&&a[I+3]==a[I+4]&&!a[I+5].insertLeft;)c=a[(I+=3)+2],E="right";break}return{node:c,start:p,end:g,collapse:E,coverStart:N,coverEnd:C}}function w2(a,u){var f=LN;if(u=="left")for(var c=0;c<a.length&&(f=a[c]).left==f.right;c++);else for(var p=a.length-1;p>=0&&(f=a[p]).left==f.right;p--);return f}function N2(a,u,f,c){var p=IN(u.map,f,c),g=p.node,E=p.start,N=p.end,C=p.collapse,I;if(g.nodeType==3){for(var U=0;U<4;U++){for(;E&&Pi(u.line.text.charAt(p.coverStart+E));)--E;for(;p.coverStart+N<p.coverEnd&&Pi(u.line.text.charAt(p.coverStart+N));)++N;if(s&&l<9&&E==0&&N==p.coverEnd-p.coverStart?I=g.parentNode.getBoundingClientRect():I=w2(xe(g,E,N).getClientRects(),c),I.left||I.right||E==0)break;N=E,E=E-1,C="right"}s&&l<11&&(I=D2(a.display.measure,I))}else{E>0&&(C=c="right");var K;a.options.lineWrapping&&(K=g.getClientRects()).length>1?I=K[c=="right"?K.length-1:0]:I=g.getBoundingClientRect()}if(s&&l<9&&!E&&(!I||!I.left&&!I.right)){var $=g.parentNode.getClientRects()[0];$?I={left:$.left,right:$.left+rl(a.display),top:$.top,bottom:$.bottom}:I=LN}for(var X=I.top-u.rect.top,ae=I.bottom-u.rect.top,le=(X+ae)/2,pe=u.view.measure.heights,be=0;be<pe.length-1&&!(le<pe[be]);be++);var Ne=be?pe[be-1]:0,Te=pe[be],Ce={left:(C=="right"?I.right:I.left)-u.rect.left,right:(C=="left"?I.left:I.right)-u.rect.left,top:Ne,bottom:Te};return!I.left&&!I.right&&(Ce.bogus=!0),a.options.singleCursorHeightPerLine||(Ce.rtop=X,Ce.rbottom=ae),Ce}function D2(a,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!sa(a))return u;var f=screen.logicalXDPI/screen.deviceXDPI,c=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*f,right:u.right*f,top:u.top*c,bottom:u.bottom*c}}function AN(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var u=0;u<a.rest.length;u++)a.measure.caches[u]={}}function RN(a){a.display.externalMeasure=null,B(a.display.lineMeasure);for(var u=0;u<a.display.view.length;u++)AN(a.display.view[u])}function cf(a){RN(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function jN(a){return v&&S?-(a.body.getBoundingClientRect().left-parseInt(getComputedStyle(a.body).marginLeft)):a.defaultView.pageXOffset||(a.documentElement||a.body).scrollLeft}function PN(a){return v&&S?-(a.body.getBoundingClientRect().top-parseInt(getComputedStyle(a.body).marginTop)):a.defaultView.pageYOffset||(a.documentElement||a.body).scrollTop}function a0(a){var u=ca(a),f=u.widgets,c=0;if(f)for(var p=0;p<f.length;++p)f[p].above&&(c+=lf(f[p]));return c}function Th(a,u,f,c,p){if(!p){var g=a0(u);f.top+=g,f.bottom+=g}if(c=="line")return f;c||(c="local");var E=so(u);if(c=="local"?E+=bh(a.display):E-=a.display.viewOffset,c=="page"||c=="window"){var N=a.display.lineSpace.getBoundingClientRect();E+=N.top+(c=="window"?0:PN(Ve(a)));var C=N.left+(c=="window"?0:jN(Ve(a)));f.left+=C,f.right+=C}return f.top+=E,f.bottom+=E,f}function FN(a,u,f){if(f=="div")return u;var c=u.left,p=u.top;if(f=="page")c-=jN(Ve(a)),p-=PN(Ve(a));else if(f=="local"||!f){var g=a.display.sizer.getBoundingClientRect();c+=g.left,p+=g.top}var E=a.display.lineSpace.getBoundingClientRect();return{left:c-E.left,top:p-E.top}}function _h(a,u,f,c,p){return c||(c=Ae(a.doc,u.line)),Th(a,c,CN(a,c,u.ch,p),f)}function fa(a,u,f,c,p,g){c=c||Ae(a.doc,u.line),p||(p=el(a,c));function E(ae,le){var pe=xa(a,p,ae,le?"right":"left",g);return le?pe.left=pe.right:pe.right=pe.left,Th(a,c,pe,f)}var N=xn(c,a.doc.direction),C=u.ch,I=u.sticky;if(C>=c.text.length?(C=c.text.length,I="before"):C<=0&&(C=0,I="after"),!N)return E(I=="before"?C-1:C,I=="before");function U(ae,le,pe){var be=N[le],Ne=be.level==1;return E(pe?ae-1:ae,Ne!=pe)}var K=vr(N,C,I),$=zn,X=U(C,K,I=="before");return $!=null&&(X.other=U(C,$,I!="before")),X}function MN(a,u){var f=0;u=Ye(a.doc,u),a.options.lineWrapping||(f=rl(a.display)*u.ch);var c=Ae(a.doc,u.line),p=so(c)+bh(a.display);return{left:f,right:f,top:p,bottom:p+c.height}}function o0(a,u,f,c,p){var g=W(a,u,f);return g.xRel=p,c&&(g.outside=c),g}function u0(a,u,f){var c=a.doc;if(f+=a.display.viewOffset,f<0)return o0(c.first,0,null,-1,-1);var p=wa(c,f),g=c.first+c.size-1;if(p>g)return o0(c.first+c.size-1,Ae(c,g).text.length,null,1,1);u<0&&(u=0);for(var E=Ae(c,p);;){var N=x2(a,E,p,u,f),C=n2(E,N.ch+(N.xRel>0||N.outside>0?1:0));if(!C)return N;var I=C.find(1);if(I.line==p)return I;E=Ae(c,p=I.line)}}function qN(a,u,f,c){c-=a0(u);var p=u.text.length,g=Kt(function(E){return xa(a,f,E-1).bottom<=c},p,0);return p=Kt(function(E){return xa(a,f,E).top>c},g,p),{begin:g,end:p}}function VN(a,u,f,c){f||(f=el(a,u));var p=Th(a,u,xa(a,f,c),"line").top;return qN(a,u,f,p)}function s0(a,u,f,c){return a.bottom<=f?!1:a.top>f?!0:(c?a.left:a.right)>u}function x2(a,u,f,c,p){p-=so(u);var g=el(a,u),E=a0(u),N=0,C=u.text.length,I=!0,U=xn(u,a.doc.direction);if(U){var K=(a.options.lineWrapping?L2:C2)(a,u,f,g,U,c,p);I=K.level!=1,N=I?K.from:K.to-1,C=I?K.to:K.from-1}var $=null,X=null,ae=Kt(function(Ge){var qe=xa(a,g,Ge);return qe.top+=E,qe.bottom+=E,s0(qe,c,p,!1)?(qe.top<=p&&qe.left<=c&&($=Ge,X=qe),!0):!1},N,C),le,pe,be=!1;if(X){var Ne=c-X.left<X.right-c,Te=Ne==I;ae=$+(Te?0:1),pe=Te?"after":"before",le=Ne?X.left:X.right}else{!I&&(ae==C||ae==N)&&ae++,pe=ae==0?"after":ae==u.text.length?"before":xa(a,g,ae-(I?1:0)).bottom+E<=p==I?"after":"before";var Ce=fa(a,W(f,ae,pe),"line",u,g);le=Ce.left,be=p<Ce.top?-1:p>=Ce.bottom?1:0}return ae=Qr(u.text,ae,1),o0(f,ae,pe,be,c-le)}function C2(a,u,f,c,p,g,E){var N=Kt(function(K){var $=p[K],X=$.level!=1;return s0(fa(a,W(f,X?$.to:$.from,X?"before":"after"),"line",u,c),g,E,!0)},0,p.length-1),C=p[N];if(N>0){var I=C.level!=1,U=fa(a,W(f,I?C.from:C.to,I?"after":"before"),"line",u,c);s0(U,g,E,!0)&&U.top>E&&(C=p[N-1])}return C}function L2(a,u,f,c,p,g,E){var N=qN(a,u,c,E),C=N.begin,I=N.end;/\s/.test(u.text.charAt(I-1))&&I--;for(var U=null,K=null,$=0;$<p.length;$++){var X=p[$];if(!(X.from>=I||X.to<=C)){var ae=X.level!=1,le=xa(a,c,ae?Math.min(I,X.to)-1:Math.max(C,X.from)).right,pe=le<g?g-le+1e9:le-g;(!U||K>pe)&&(U=X,K=pe)}}return U||(U=p[p.length-1]),U.from<C&&(U={from:C,to:U.to,level:U.level}),U.to>I&&(U={from:U.from,to:I,level:U.level}),U}var Bu;function tl(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Bu==null){Bu=P("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)Bu.appendChild(document.createTextNode("x")),Bu.appendChild(P("br"));Bu.appendChild(document.createTextNode("x"))}Q(a.measure,Bu);var f=Bu.offsetHeight/50;return f>3&&(a.cachedTextHeight=f),B(a.measure),f||1}function rl(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var u=P("span","xxxxxxxxxx"),f=P("pre",[u],"CodeMirror-line-like");Q(a.measure,f);var c=u.getBoundingClientRect(),p=(c.right-c.left)/10;return p>2&&(a.cachedCharWidth=p),p||10}function l0(a){for(var u=a.display,f={},c={},p=u.gutters.clientLeft,g=u.gutters.firstChild,E=0;g;g=g.nextSibling,++E){var N=a.display.gutterSpecs[E].className;f[N]=g.offsetLeft+g.clientLeft+p,c[N]=g.clientWidth}return{fixedPos:c0(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:f,gutterWidth:c,wrapperWidth:u.wrapper.clientWidth}}function c0(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function UN(a){var u=tl(a.display),f=a.options.lineWrapping,c=f&&Math.max(5,a.display.scroller.clientWidth/rl(a.display)-3);return function(p){if(Fo(a.doc,p))return 0;var g=0;if(p.widgets)for(var E=0;E<p.widgets.length;E++)p.widgets[E].height&&(g+=p.widgets[E].height);return f?g+(Math.ceil(p.text.length/c)||1)*u:g+u}}function f0(a){var u=a.doc,f=UN(a);u.iter(function(c){var p=f(c);p!=c.height&&Fi(c,p)})}function Ku(a,u,f,c){var p=a.display;if(!f&&V(u).getAttribute("cm-not-content")=="true")return null;var g,E,N=p.lineSpace.getBoundingClientRect();try{g=u.clientX-N.left,E=u.clientY-N.top}catch(K){return null}var C=u0(a,g,E),I;if(c&&C.xRel>0&&(I=Ae(a.doc,C.line).text).length==C.ch){var U=te(I,I.length,a.options.tabSize)-I.length;C=W(C.line,Math.max(0,Math.round((g-DN(a.display).left)/rl(a.display))-U))}return C}function Hu(a,u){if(u>=a.display.viewTo||(u-=a.display.viewFrom,u<0))return null;for(var f=a.display.view,c=0;c<f.length;c++)if(u-=f[c].size,u<0)return c}function Wn(a,u,f,c){u==null&&(u=a.doc.first),f==null&&(f=a.doc.first+a.doc.size),c||(c=0);var p=a.display;if(c&&f<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>u)&&(p.updateLineNumbers=u),a.curOp.viewChanged=!0,u>=p.viewTo)uo&&Zy(a.doc,u)<p.viewTo&&qo(a);else if(f<=p.viewFrom)uo&&yN(a.doc,f+c)>p.viewFrom?qo(a):(p.viewFrom+=c,p.viewTo+=c);else if(u<=p.viewFrom&&f>=p.viewTo)qo(a);else if(u<=p.viewFrom){var g=Eh(a,f,f+c,1);g?(p.view=p.view.slice(g.index),p.viewFrom=g.lineN,p.viewTo+=c):qo(a)}else if(f>=p.viewTo){var E=Eh(a,u,u,-1);E?(p.view=p.view.slice(0,E.index),p.viewTo=E.lineN):qo(a)}else{var N=Eh(a,u,u,-1),C=Eh(a,f,f+c,1);N&&C?(p.view=p.view.slice(0,N.index).concat(yh(a,N.lineN,C.lineN)).concat(p.view.slice(C.index)),p.viewTo+=c):qo(a)}var I=p.externalMeasured;I&&(f<I.lineN?I.lineN+=c:u<I.lineN+I.size&&(p.externalMeasured=null))}function Mo(a,u,f){a.curOp.viewChanged=!0;var c=a.display,p=a.display.externalMeasured;if(p&&u>=p.lineN&&u<p.lineN+p.size&&(c.externalMeasured=null),!(u<c.viewFrom||u>=c.viewTo)){var g=c.view[Hu(a,u)];if(g.node!=null){var E=g.changes||(g.changes=[]);we(E,f)==-1&&E.push(f)}}}function qo(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Eh(a,u,f,c){var p=Hu(a,u),g,E=a.display.view;if(!uo||f==a.doc.first+a.doc.size)return{index:p,lineN:f};for(var N=a.display.viewFrom,C=0;C<p;C++)N+=E[C].size;if(N!=u){if(c>0){if(p==E.length-1)return null;g=N+E[p].size-u,p++}else g=N-u;u+=g,f+=g}for(;Zy(a.doc,f)!=f;){if(p==(c<0?0:E.length-1))return null;f+=c*E[p-(c<0?1:0)].size,p+=c}return{index:p,lineN:f}}function I2(a,u,f){var c=a.display,p=c.view;p.length==0||u>=c.viewTo||f<=c.viewFrom?(c.view=yh(a,u,f),c.viewFrom=u):(c.viewFrom>u?c.view=yh(a,u,c.viewFrom).concat(c.view):c.viewFrom<u&&(c.view=c.view.slice(Hu(a,u))),c.viewFrom=u,c.viewTo<f?c.view=c.view.concat(yh(a,c.viewTo,f)):c.viewTo>f&&(c.view=c.view.slice(0,Hu(a,f)))),c.viewTo=f}function GN(a){for(var u=a.display.view,f=0,c=0;c<u.length;c++){var p=u[c];!p.hidden&&(!p.node||p.changes)&&++f}return f}function ff(a){a.display.input.showSelection(a.display.input.prepareSelection())}function QN(a,u){u===void 0&&(u=!0);var f=a.doc,c={},p=c.cursors=document.createDocumentFragment(),g=c.selection=document.createDocumentFragment(),E=a.options.$customCursor;E&&(u=!0);for(var N=0;N<f.sel.ranges.length;N++)if(!(!u&&N==f.sel.primIndex)){var C=f.sel.ranges[N];if(!(C.from().line>=a.display.viewTo||C.to().line<a.display.viewFrom)){var I=C.empty();if(E){var U=E(a,C);U&&d0(a,U,p)}else(I||a.options.showCursorWhenSelecting)&&d0(a,C.head,p);I||A2(a,C,g)}}return c}function d0(a,u,f){var c=fa(a,u,"div",null,null,!a.options.singleCursorHeightPerLine),p=f.appendChild(P("div","\xA0","CodeMirror-cursor"));if(p.style.left=c.left+"px",p.style.top=c.top+"px",p.style.height=Math.max(0,c.bottom-c.top)*a.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(a.getWrapperElement().className)){var g=_h(a,u,"div",null,null),E=g.right-g.left;p.style.width=(E>0?E:a.defaultCharWidth())+"px"}if(c.other){var N=f.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));N.style.display="",N.style.left=c.other.left+"px",N.style.top=c.other.top+"px",N.style.height=(c.other.bottom-c.other.top)*.85+"px"}}function Sh(a,u){return a.top-u.top||a.left-u.left}function A2(a,u,f){var c=a.display,p=a.doc,g=document.createDocumentFragment(),E=DN(a.display),N=E.left,C=Math.max(c.sizerWidth,Qu(a)-c.sizer.offsetLeft)-E.right,I=p.direction=="ltr";function U(Te,Ce,Ge,qe){Ce<0&&(Ce=0),Ce=Math.round(Ce),qe=Math.round(qe),g.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+Te+`px;
|
|
top: `+Ce+"px; width: "+(Ge==null?C-Te:Ge)+`px;
|
|
height: `+(qe-Ce)+"px"))}function K(Te,Ce,Ge){var qe=Ae(p,Te),lt=qe.text.length,Ht,zr;function lr(wr,Xn){return _h(a,W(Te,wr),"div",qe,Xn)}function li(wr,Xn,sn){var Fr=VN(a,qe,null,wr),Nr=Xn=="ltr"==(sn=="after")?"left":"right",mr=sn=="after"?Fr.begin:Fr.end-(/\s/.test(qe.text.charAt(Fr.end-1))?2:1);return lr(mr,Nr)[Nr]}var Jn=xn(qe,p.direction);return hn(Jn,Ce||0,Ge==null?lt:Ge,function(wr,Xn,sn,Fr){var Nr=sn=="ltr",mr=lr(wr,Nr?"left":"right"),Zn=lr(Xn-1,Nr?"right":"left"),vl=Ce==null&&wr==0,Ko=Ge==null&&Xn==lt,mn=Fr==0,Ca=!Jn||Fr==Jn.length-1;if(Zn.top-mr.top<=3){var Wr=(I?vl:Ko)&&mn,q0=(I?Ko:vl)&&Ca,po=Wr?N:(Nr?mr:Zn).left,Xu=q0?C:(Nr?Zn:mr).right;U(po,mr.top,Xu-po,mr.bottom)}else{var Zu,In,gl,V0;Nr?(Zu=I&&vl&&mn?N:mr.left,In=I?C:li(wr,sn,"before"),gl=I?N:li(Xn,sn,"after"),V0=I&&Ko&&Ca?C:Zn.right):(Zu=I?li(wr,sn,"before"):N,In=!I&&vl&&mn?C:mr.right,gl=!I&&Ko&&Ca?N:Zn.left,V0=I?li(Xn,sn,"after"):C),U(Zu,mr.top,In-Zu,mr.bottom),mr.bottom<Zn.top&&U(N,mr.bottom,null,Zn.top),U(gl,Zn.top,V0-gl,Zn.bottom)}(!Ht||Sh(mr,Ht)<0)&&(Ht=mr),Sh(Zn,Ht)<0&&(Ht=Zn),(!zr||Sh(mr,zr)<0)&&(zr=mr),Sh(Zn,zr)<0&&(zr=Zn)}),{start:Ht,end:zr}}var $=u.from(),X=u.to();if($.line==X.line)K($.line,$.ch,X.ch);else{var ae=Ae(p,$.line),le=Ae(p,X.line),pe=ca(ae)==ca(le),be=K($.line,$.ch,pe?ae.text.length+1:null).end,Ne=K(X.line,pe?0:null,X.ch).start;pe&&(be.top<Ne.top-2?(U(be.right,be.top,null,be.bottom),U(N,Ne.top,Ne.left,Ne.bottom)):U(be.right,be.top,Ne.left-be.right,be.bottom)),be.bottom<Ne.top&&U(N,be.bottom,null,Ne.top)}f.appendChild(g)}function p0(a){if(!!a.state.focused){var u=a.display;clearInterval(u.blinker);var f=!0;u.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?u.blinker=setInterval(function(){a.hasFocus()||nl(a),u.cursorDiv.style.visibility=(f=!f)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function BN(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||v0(a))}function h0(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&nl(a))},100)}function v0(a,u){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ft(a,"focus",a,u),a.state.focused=!0,Le(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),d&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),p0(a))}function nl(a,u){a.state.delayingBlurEvent||(a.state.focused&&(Ft(a,"blur",a,u),a.state.focused=!1,z(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function kh(a){for(var u=a.display,f=u.lineDiv.offsetTop,c=Math.max(0,u.scroller.getBoundingClientRect().top),p=u.lineDiv.getBoundingClientRect().top,g=0,E=0;E<u.view.length;E++){var N=u.view[E],C=a.options.lineWrapping,I=void 0,U=0;if(!N.hidden){if(p+=N.line.height,s&&l<8){var K=N.node.offsetTop+N.node.offsetHeight;I=K-f,f=K}else{var $=N.node.getBoundingClientRect();I=$.bottom-$.top,!C&&N.text.firstChild&&(U=N.text.firstChild.getBoundingClientRect().right-$.left-1)}var X=N.line.height-I;if((X>.005||X<-.005)&&(p<c&&(g-=X),Fi(N.line,I),KN(N.line),N.rest))for(var ae=0;ae<N.rest.length;ae++)KN(N.rest[ae]);if(U>a.display.sizerWidth){var le=Math.ceil(U/rl(a.display));le>a.display.maxLineLength&&(a.display.maxLineLength=le,a.display.maxLine=N.line,a.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(u.scroller.scrollTop+=g)}function KN(a){if(a.widgets)for(var u=0;u<a.widgets.length;++u){var f=a.widgets[u],c=f.node.parentNode;c&&(f.height=c.offsetHeight)}}function Oh(a,u,f){var c=f&&f.top!=null?Math.max(0,f.top):a.scroller.scrollTop;c=Math.floor(c-bh(a));var p=f&&f.bottom!=null?f.bottom:c+a.wrapper.clientHeight,g=wa(u,c),E=wa(u,p);if(f&&f.ensure){var N=f.ensure.from.line,C=f.ensure.to.line;N<g?(g=N,E=wa(u,so(Ae(u,N))+a.wrapper.clientHeight)):Math.min(C,u.lastLine())>=E&&(g=wa(u,so(Ae(u,C))-a.wrapper.clientHeight),E=C)}return{from:g,to:Math.max(E,g+1)}}function R2(a,u){if(!nr(a,"scrollCursorIntoView")){var f=a.display,c=f.sizer.getBoundingClientRect(),p=null,g=f.wrapper.ownerDocument;if(u.top+c.top<0?p=!0:u.bottom+c.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(p=!1),p!=null&&!k){var E=P("div","\u200B",null,`position: absolute;
|
|
top: `+(u.top-f.viewOffset-bh(a.display))+`px;
|
|
height: `+(u.bottom-u.top+Da(a)+f.barHeight)+`px;
|
|
left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");a.display.lineSpace.appendChild(E),E.scrollIntoView(p),a.display.lineSpace.removeChild(E)}}}function j2(a,u,f,c){c==null&&(c=0);var p;!a.options.lineWrapping&&u==f&&(f=u.sticky=="before"?W(u.line,u.ch+1,"before"):u,u=u.ch?W(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var g=0;g<5;g++){var E=!1,N=fa(a,u),C=!f||f==u?N:fa(a,f);p={left:Math.min(N.left,C.left),top:Math.min(N.top,C.top)-c,right:Math.max(N.left,C.left),bottom:Math.max(N.bottom,C.bottom)+c};var I=g0(a,p),U=a.doc.scrollTop,K=a.doc.scrollLeft;if(I.scrollTop!=null&&(pf(a,I.scrollTop),Math.abs(a.doc.scrollTop-U)>1&&(E=!0)),I.scrollLeft!=null&&(zu(a,I.scrollLeft),Math.abs(a.doc.scrollLeft-K)>1&&(E=!0)),!E)break}return p}function P2(a,u){var f=g0(a,u);f.scrollTop!=null&&pf(a,f.scrollTop),f.scrollLeft!=null&&zu(a,f.scrollLeft)}function g0(a,u){var f=a.display,c=tl(a.display);u.top<0&&(u.top=0);var p=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:f.scroller.scrollTop,g=n0(a),E={};u.bottom-u.top>g&&(u.bottom=u.top+g);var N=a.doc.height+r0(f),C=u.top<c,I=u.bottom>N-c;if(u.top<p)E.scrollTop=C?0:u.top;else if(u.bottom>p+g){var U=Math.min(u.top,(I?N:u.bottom)-g);U!=p&&(E.scrollTop=U)}var K=a.options.fixedGutter?0:f.gutters.offsetWidth,$=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:f.scroller.scrollLeft-K,X=Qu(a)-f.gutters.offsetWidth,ae=u.right-u.left>X;return ae&&(u.right=u.left+X),u.left<10?E.scrollLeft=0:u.left<$?E.scrollLeft=Math.max(0,u.left+K-(ae?0:10)):u.right>X+$-3&&(E.scrollLeft=u.right+(ae?0:10)-X),E}function m0(a,u){u!=null&&(wh(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}function il(a){wh(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}function df(a,u,f){(u!=null||f!=null)&&wh(a),u!=null&&(a.curOp.scrollLeft=u),f!=null&&(a.curOp.scrollTop=f)}function F2(a,u){wh(a),a.curOp.scrollToPos=u}function wh(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var f=MN(a,u.from),c=MN(a,u.to);HN(a,f,c,u.margin)}}function HN(a,u,f,c){var p=g0(a,{left:Math.min(u.left,f.left),top:Math.min(u.top,f.top)-c,right:Math.max(u.right,f.right),bottom:Math.max(u.bottom,f.bottom)+c});df(a,p.scrollLeft,p.scrollTop)}function pf(a,u){Math.abs(a.doc.scrollTop-u)<2||(r||b0(a,{top:u}),zN(a,u,!0),r&&b0(a),gf(a,100))}function zN(a,u,f){u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!f)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u))}function zu(a,u,f,c){u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((f?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!c)&&(a.doc.scrollLeft=u,ZN(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}function hf(a){var u=a.display,f=u.gutters.offsetWidth,c=Math.round(a.doc.height+r0(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?f:0,docHeight:c,scrollHeight:c+Da(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:f}}var Wu=function(a,u,f){this.cm=f;var c=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");c.tabIndex=p.tabIndex=-1,a(c),a(p),_e(c,"scroll",function(){c.clientHeight&&u(c.scrollTop,"vertical")}),_e(p,"scroll",function(){p.clientWidth&&u(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wu.prototype.update=function(a){var u=a.scrollWidth>a.clientWidth+1,f=a.scrollHeight>a.clientHeight+1,c=a.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=u?c+"px":"0";var p=a.viewHeight-(u?c:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+p)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=f?c+"px":"0",this.horiz.style.left=a.barLeft+"px";var g=a.viewWidth-a.barLeft-(f?c:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(c==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:f?c:0,bottom:u?c:0}},Wu.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wu.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wu.prototype.zeroWidthHack=function(){var a=w&&!_?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ce,this.disableVert=new ce},Wu.prototype.enableZeroWidthBar=function(a,u,f){a.style.visibility="";function c(){var p=a.getBoundingClientRect(),g=f=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);g!=a?a.style.visibility="hidden":u.set(1e3,c)}u.set(1e3,c)},Wu.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var vf=function(){};vf.prototype.update=function(){return{bottom:0,right:0}},vf.prototype.setScrollLeft=function(){},vf.prototype.setScrollTop=function(){},vf.prototype.clear=function(){};function al(a,u){u||(u=hf(a));var f=a.display.barWidth,c=a.display.barHeight;WN(a,u);for(var p=0;p<4&&f!=a.display.barWidth||c!=a.display.barHeight;p++)f!=a.display.barWidth&&a.options.lineWrapping&&kh(a),WN(a,hf(a)),f=a.display.barWidth,c=a.display.barHeight}function WN(a,u){var f=a.display,c=f.scrollbars.update(u);f.sizer.style.paddingRight=(f.barWidth=c.right)+"px",f.sizer.style.paddingBottom=(f.barHeight=c.bottom)+"px",f.heightForcer.style.borderBottom=c.bottom+"px solid transparent",c.right&&c.bottom?(f.scrollbarFiller.style.display="block",f.scrollbarFiller.style.height=c.bottom+"px",f.scrollbarFiller.style.width=c.right+"px"):f.scrollbarFiller.style.display="",c.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(f.gutterFiller.style.display="block",f.gutterFiller.style.height=c.bottom+"px",f.gutterFiller.style.width=u.gutterWidth+"px"):f.gutterFiller.style.display=""}var YN={native:Wu,null:vf};function JN(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&z(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new YN[a.options.scrollbarStyle](function(u){a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),_e(u,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,f){f=="horizontal"?zu(a,u):pf(a,u)},a),a.display.scrollbars.addClass&&Le(a.display.wrapper,a.display.scrollbars.addClass)}var M2=0;function Yu(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++M2,markArrays:null},v2(a.curOp)}function Ju(a){var u=a.curOp;u&&m2(u,function(f){for(var c=0;c<f.ops.length;c++)f.ops[c].cm.curOp=null;q2(f)})}function q2(a){for(var u=a.ops,f=0;f<u.length;f++)V2(u[f]);for(var c=0;c<u.length;c++)U2(u[c]);for(var p=0;p<u.length;p++)G2(u[p]);for(var g=0;g<u.length;g++)Q2(u[g]);for(var E=0;E<u.length;E++)B2(u[E])}function V2(a){var u=a.cm,f=u.display;H2(u),a.updateMaxLine&&e0(u),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<f.viewFrom||a.scrollToPos.to.line>=f.viewTo)||f.maxLineChanged&&u.options.lineWrapping,a.update=a.mustUpdate&&new Nh(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function U2(a){a.updatedDisplay=a.mustUpdate&&y0(a.cm,a.update)}function G2(a){var u=a.cm,f=u.display;a.updatedDisplay&&kh(u),a.barMeasure=hf(u),f.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=CN(u,f.maxLine,f.maxLine.text.length).left+3,u.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+a.adjustWidthTo+Da(u)+u.display.barWidth),a.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+a.adjustWidthTo-Qu(u))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=f.input.prepareSelection())}function Q2(a){var u=a.cm;a.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<u.doc.scrollLeft&&zu(u,Math.min(u.display.scroller.scrollLeft,a.maxScrollLeft),!0),u.display.maxLineChanged=!1);var f=a.focus&&a.focus==Fe(Ve(u));a.preparedSelection&&u.display.input.showSelection(a.preparedSelection,f),(a.updatedDisplay||a.startHeight!=u.doc.height)&&al(u,a.barMeasure),a.updatedDisplay&&_0(u,a.barMeasure),a.selectionChanged&&p0(u),u.state.focused&&a.updateInput&&u.display.input.reset(a.typing),f&&BN(a.cm)}function B2(a){var u=a.cm,f=u.display,c=u.doc;if(a.updatedDisplay&&XN(u,a.update),f.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(f.wheelStartX=f.wheelStartY=null),a.scrollTop!=null&&zN(u,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&zu(u,a.scrollLeft,!0,!0),a.scrollToPos){var p=j2(u,Ye(c,a.scrollToPos.from),Ye(c,a.scrollToPos.to),a.scrollToPos.margin);R2(u,p)}var g=a.maybeHiddenMarkers,E=a.maybeUnhiddenMarkers;if(g)for(var N=0;N<g.length;++N)g[N].lines.length||Ft(g[N],"hide");if(E)for(var C=0;C<E.length;++C)E[C].lines.length&&Ft(E[C],"unhide");f.wrapper.offsetHeight&&(c.scrollTop=u.display.scroller.scrollTop),a.changeObjs&&Ft(u,"changes",u,a.changeObjs),a.update&&a.update.finish()}function si(a,u){if(a.curOp)return u();Yu(a);try{return u()}finally{Ju(a)}}function Kr(a,u){return function(){if(a.curOp)return u.apply(a,arguments);Yu(a);try{return u.apply(a,arguments)}finally{Ju(a)}}}function Ln(a){return function(){if(this.curOp)return a.apply(this,arguments);Yu(this);try{return a.apply(this,arguments)}finally{Ju(this)}}}function Hr(a){return function(){var u=this.cm;if(!u||u.curOp)return a.apply(this,arguments);Yu(u);try{return a.apply(this,arguments)}finally{Ju(u)}}}function gf(a,u){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(u,Ot(K2,a))}function K2(a){var u=a.doc;if(!(u.highlightFrontier>=a.display.viewTo)){var f=+new Date+a.options.workTime,c=af(a,u.highlightFrontier),p=[];u.iter(c.line,Math.min(u.first+u.size,a.display.viewTo+500),function(g){if(c.line>=a.display.viewFrom){var E=g.styles,N=g.text.length>a.options.maxHighlightLength?ao(u.mode,c.state):null,C=iN(a,g,c,!0);N&&(c.state=N),g.styles=C.styles;var I=g.styleClasses,U=C.classes;U?g.styleClasses=U:I&&(g.styleClasses=null);for(var K=!E||E.length!=g.styles.length||I!=U&&(!I||!U||I.bgClass!=U.bgClass||I.textClass!=U.textClass),$=0;!K&&$<E.length;++$)K=E[$]!=g.styles[$];K&&p.push(c.line),g.stateAfter=c.save(),c.nextLine()}else g.text.length<=a.options.maxHighlightLength&&Wy(a,g.text,c),g.stateAfter=c.line%5==0?c.save():null,c.nextLine();if(+new Date>f)return gf(a,a.options.workDelay),!0}),u.highlightFrontier=c.line,u.modeFrontier=Math.max(u.modeFrontier,c.line),p.length&&si(a,function(){for(var g=0;g<p.length;g++)Mo(a,p[g],"text")})}}var Nh=function(a,u,f){var c=a.display;this.viewport=u,this.visible=Oh(c,a.doc,u),this.editorIsHidden=!c.wrapper.offsetWidth,this.wrapperHeight=c.wrapper.clientHeight,this.wrapperWidth=c.wrapper.clientWidth,this.oldDisplayWidth=Qu(a),this.force=f,this.dims=l0(a),this.events=[]};Nh.prototype.signal=function(a,u){on(a,u)&&this.events.push(arguments)},Nh.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ft.apply(null,this.events[a])};function H2(a){var u=a.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=Da(a)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=Da(a)+"px",u.scrollbarsClipped=!0)}function z2(a){if(a.hasFocus())return null;var u=Fe(Ve(a));if(!u||!ge(a.display.lineDiv,u))return null;var f={activeElt:u};if(window.getSelection){var c=At(a).getSelection();c.anchorNode&&c.extend&&ge(a.display.lineDiv,c.anchorNode)&&(f.anchorNode=c.anchorNode,f.anchorOffset=c.anchorOffset,f.focusNode=c.focusNode,f.focusOffset=c.focusOffset)}return f}function W2(a){if(!(!a||!a.activeElt||a.activeElt==Fe(a.activeElt.ownerDocument))&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ge(document.body,a.anchorNode)&&ge(document.body,a.focusNode))){var u=a.activeElt.ownerDocument,f=u.defaultView.getSelection(),c=u.createRange();c.setEnd(a.anchorNode,a.anchorOffset),c.collapse(!1),f.removeAllRanges(),f.addRange(c),f.extend(a.focusNode,a.focusOffset)}}function y0(a,u){var f=a.display,c=a.doc;if(u.editorIsHidden)return qo(a),!1;if(!u.force&&u.visible.from>=f.viewFrom&&u.visible.to<=f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo)&&f.renderedView==f.view&&GN(a)==0)return!1;$N(a)&&(qo(a),u.dims=l0(a));var p=c.first+c.size,g=Math.max(u.visible.from-a.options.viewportMargin,c.first),E=Math.min(p,u.visible.to+a.options.viewportMargin);f.viewFrom<g&&g-f.viewFrom<20&&(g=Math.max(c.first,f.viewFrom)),f.viewTo>E&&f.viewTo-E<20&&(E=Math.min(p,f.viewTo)),uo&&(g=Zy(a.doc,g),E=yN(a.doc,E));var N=g!=f.viewFrom||E!=f.viewTo||f.lastWrapHeight!=u.wrapperHeight||f.lastWrapWidth!=u.wrapperWidth;I2(a,g,E),f.viewOffset=so(Ae(a.doc,f.viewFrom)),a.display.mover.style.top=f.viewOffset+"px";var C=GN(a);if(!N&&C==0&&!u.force&&f.renderedView==f.view&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo))return!1;var I=z2(a);return C>4&&(f.lineDiv.style.display="none"),Y2(a,f.updateLineNumbers,u.dims),C>4&&(f.lineDiv.style.display=""),f.renderedView=f.view,W2(I),B(f.cursorDiv),B(f.selectionDiv),f.gutters.style.height=f.sizer.style.minHeight=0,N&&(f.lastWrapHeight=u.wrapperHeight,f.lastWrapWidth=u.wrapperWidth,gf(a,400)),f.updateLineNumbers=null,!0}function XN(a,u){for(var f=u.viewport,c=!0;;c=!1){if(!c||!a.options.lineWrapping||u.oldDisplayWidth==Qu(a)){if(f&&f.top!=null&&(f={top:Math.min(a.doc.height+r0(a.display)-n0(a),f.top)}),u.visible=Oh(a.display,a.doc,f),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break}else c&&(u.visible=Oh(a.display,a.doc,f));if(!y0(a,u))break;kh(a);var p=hf(a);ff(a),al(a,p),_0(a,p),u.force=!1}u.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(u.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function b0(a,u){var f=new Nh(a,u);if(y0(a,f)){kh(a),XN(a,f);var c=hf(a);ff(a),al(a,c),_0(a,c),f.finish()}}function Y2(a,u,f){var c=a.display,p=a.options.lineNumbers,g=c.lineDiv,E=g.firstChild;function N(ae){var le=ae.nextSibling;return d&&w&&a.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),le}for(var C=c.view,I=c.viewFrom,U=0;U<C.length;U++){var K=C[U];if(!K.hidden)if(!K.node||K.node.parentNode!=g){var $=E2(a,K,I,f);g.insertBefore($,E)}else{for(;E!=K.node;)E=N(E);var X=p&&u!=null&&u<=I&&K.lineNumber;K.changes&&(we(K.changes,"gutter")>-1&&(X=!1),SN(a,K,I,f)),X&&(B(K.lineNumber),K.lineNumber.appendChild(document.createTextNode(H(a.options,I)))),E=K.node.nextSibling}I+=K.size}for(;E;)E=N(E)}function T0(a){var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+"px",Br(a,"gutterChanged",a)}function _0(a,u){a.display.sizer.style.minHeight=u.docHeight+"px",a.display.heightForcer.style.top=u.docHeight+"px",a.display.gutters.style.height=u.docHeight+a.display.barHeight+Da(a)+"px"}function ZN(a){var u=a.display,f=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){for(var c=c0(u)-u.scroller.scrollLeft+a.doc.scrollLeft,p=u.gutters.offsetWidth,g=c+"px",E=0;E<f.length;E++)if(!f[E].hidden){a.options.fixedGutter&&(f[E].gutter&&(f[E].gutter.style.left=g),f[E].gutterBackground&&(f[E].gutterBackground.style.left=g));var N=f[E].alignable;if(N)for(var C=0;C<N.length;C++)N[C].style.left=g}a.options.fixedGutter&&(u.gutters.style.left=c+p+"px")}}function $N(a){if(!a.options.lineNumbers)return!1;var u=a.doc,f=H(a.options,u.first+u.size-1),c=a.display;if(f.length!=c.lineNumChars){var p=c.measure.appendChild(P("div",[P("div",f)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=p.firstChild.offsetWidth,E=p.offsetWidth-g;return c.lineGutter.style.width="",c.lineNumInnerWidth=Math.max(g,c.lineGutter.offsetWidth-E)+1,c.lineNumWidth=c.lineNumInnerWidth+E,c.lineNumChars=c.lineNumInnerWidth?f.length:-1,c.lineGutter.style.width=c.lineNumWidth+"px",T0(a.display),!0}return!1}function E0(a,u){for(var f=[],c=!1,p=0;p<a.length;p++){var g=a[p],E=null;if(typeof g!="string"&&(E=g.style,g=g.className),g=="CodeMirror-linenumbers")if(u)c=!0;else continue;f.push({className:g,style:E})}return u&&!c&&f.push({className:"CodeMirror-linenumbers",style:null}),f}function eD(a){var u=a.gutters,f=a.gutterSpecs;B(u),a.lineGutter=null;for(var c=0;c<f.length;++c){var p=f[c],g=p.className,E=p.style,N=u.appendChild(P("div",null,"CodeMirror-gutter "+g));E&&(N.style.cssText=E),g=="CodeMirror-linenumbers"&&(a.lineGutter=N,N.style.width=(a.lineNumWidth||1)+"px")}u.style.display=f.length?"":"none",T0(a)}function mf(a){eD(a.display),Wn(a),ZN(a)}function J2(a,u,f,c){var p=this;this.input=f,p.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=he("div",null,"CodeMirror-code"),p.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=P("div",null,"CodeMirror-cursors"),p.measure=P("div",null,"CodeMirror-measure"),p.lineMeasure=P("div",null,"CodeMirror-measure"),p.lineSpace=he("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var g=he("div",[p.lineSpace],"CodeMirror-lines");p.mover=P("div",[g],null,"position: relative"),p.sizer=P("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=P("div",null,null,"position: absolute; height: "+ot+"px; width: 1px;"),p.gutters=P("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=P("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=P("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),v&&y>=105&&(p.wrapper.style.clipPath="inset(0px)"),p.wrapper.setAttribute("translate","no"),s&&l<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!d&&!(r&&m)&&(p.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(p.wrapper):a(p.wrapper)),p.viewFrom=p.viewTo=u.first,p.reportedViewFrom=p.reportedViewTo=u.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=E0(c.gutters,c.lineNumbers),eD(p),f.init(p)}var Dh=0,co=null;s?co=-.53:r?co=15:v?co=-.7:D&&(co=-1/3);function tD(a){var u=a.wheelDeltaX,f=a.wheelDeltaY;return u==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(u=a.detail),f==null&&a.detail&&a.axis==a.VERTICAL_AXIS?f=a.detail:f==null&&(f=a.wheelDelta),{x:u,y:f}}function X2(a){var u=tD(a);return u.x*=co,u.y*=co,u}function rD(a,u){v&&y==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var f=tD(u),c=f.x,p=f.y,g=co;u.deltaMode===0&&(c=u.deltaX,p=u.deltaY,g=1);var E=a.display,N=E.scroller,C=N.scrollWidth>N.clientWidth,I=N.scrollHeight>N.clientHeight;if(!!(c&&C||p&&I)){if(p&&w&&d){e:for(var U=u.target,K=E.view;U!=N;U=U.parentNode)for(var $=0;$<K.length;$++)if(K[$].node==U){a.display.currentWheelTarget=U;break e}}if(c&&!r&&!b&&g!=null){p&&I&&pf(a,Math.max(0,N.scrollTop+p*g)),zu(a,Math.max(0,N.scrollLeft+c*g)),(!p||p&&I)&&ee(u),E.wheelStartX=null;return}if(p&&g!=null){var X=p*g,ae=a.doc.scrollTop,le=ae+E.wrapper.clientHeight;X<0?ae=Math.max(0,ae+X-50):le=Math.min(a.doc.height,le+X+50),b0(a,{top:ae,bottom:le})}Dh<20&&u.deltaMode!==0&&(E.wheelStartX==null?(E.wheelStartX=N.scrollLeft,E.wheelStartY=N.scrollTop,E.wheelDX=c,E.wheelDY=p,setTimeout(function(){if(E.wheelStartX!=null){var pe=N.scrollLeft-E.wheelStartX,be=N.scrollTop-E.wheelStartY,Ne=be&&E.wheelDY&&be/E.wheelDY||pe&&E.wheelDX&&pe/E.wheelDX;E.wheelStartX=E.wheelStartY=null,!!Ne&&(co=(co*Dh+Ne)/(Dh+1),++Dh)}},200)):(E.wheelDX+=c,E.wheelDY+=p))}}var ki=function(a,u){this.ranges=a,this.primIndex=u};ki.prototype.primary=function(){return this.ranges[this.primIndex]},ki.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var f=this.ranges[u],c=a.ranges[u];if(!We(f.anchor,c.anchor)||!We(f.head,c.head))return!1}return!0},ki.prototype.deepCopy=function(){for(var a=[],u=0;u<this.ranges.length;u++)a[u]=new Nt(vt(this.ranges[u].anchor),vt(this.ranges[u].head));return new ki(a,this.primIndex)},ki.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ki.prototype.contains=function(a,u){u||(u=a);for(var f=0;f<this.ranges.length;f++){var c=this.ranges[f];if(ie(u,c.from())>=0&&ie(a,c.to())<=0)return f}return-1};var Nt=function(a,u){this.anchor=a,this.head=u};Nt.prototype.from=function(){return Pr(this.anchor,this.head)},Nt.prototype.to=function(){return _t(this.anchor,this.head)},Nt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function da(a,u,f){var c=a&&a.options.selectionsMayTouch,p=u[f];u.sort(function($,X){return ie($.from(),X.from())}),f=we(u,p);for(var g=1;g<u.length;g++){var E=u[g],N=u[g-1],C=ie(N.to(),E.from());if(c&&!E.empty()?C>0:C>=0){var I=Pr(N.from(),E.from()),U=_t(N.to(),E.to()),K=N.empty()?E.from()==E.head:N.from()==N.head;g<=f&&--f,u.splice(--g,2,new Nt(K?U:I,K?I:U))}}return new ki(u,f)}function Vo(a,u){return new ki([new Nt(a,u||a)],0)}function Uo(a){return a.text?W(a.from.line+a.text.length-1,se(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function nD(a,u){if(ie(a,u.from)<0)return a;if(ie(a,u.to)<=0)return Uo(u);var f=a.line+u.text.length-(u.to.line-u.from.line)-1,c=a.ch;return a.line==u.to.line&&(c+=Uo(u).ch-u.to.ch),W(f,c)}function S0(a,u){for(var f=[],c=0;c<a.sel.ranges.length;c++){var p=a.sel.ranges[c];f.push(new Nt(nD(p.anchor,u),nD(p.head,u)))}return da(a.cm,f,a.sel.primIndex)}function iD(a,u,f){return a.line==u.line?W(f.line,a.ch-u.ch+f.ch):W(f.line+(a.line-u.line),a.ch)}function Z2(a,u,f){for(var c=[],p=W(a.first,0),g=p,E=0;E<u.length;E++){var N=u[E],C=iD(N.from,p,g),I=iD(Uo(N),p,g);if(p=N.to,g=I,f=="around"){var U=a.sel.ranges[E],K=ie(U.head,U.anchor)<0;c[E]=new Nt(K?I:C,K?C:I)}else c[E]=new Nt(C,C)}return new ki(c,a.sel.primIndex)}function k0(a){a.doc.mode=io(a.options,a.doc.modeOption),yf(a)}function yf(a){a.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,gf(a,100),a.state.modeGen++,a.curOp&&Wn(a)}function aD(a,u){return u.from.ch==0&&u.to.ch==0&&se(u.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function O0(a,u,f,c){function p(Ne){return f?f[Ne]:null}function g(Ne,Te,Ce){o2(Ne,Te,Ce,c),Br(Ne,"change",Ne,u)}function E(Ne,Te){for(var Ce=[],Ge=Ne;Ge<Te;++Ge)Ce.push(new Zs(I[Ge],p(Ge),c));return Ce}var N=u.from,C=u.to,I=u.text,U=Ae(a,N.line),K=Ae(a,C.line),$=se(I),X=p(I.length-1),ae=C.line-N.line;if(u.full)a.insert(0,E(0,I.length)),a.remove(I.length,a.size-I.length);else if(aD(a,u)){var le=E(0,I.length-1);g(K,K.text,X),ae&&a.remove(N.line,ae),le.length&&a.insert(N.line,le)}else if(U==K)if(I.length==1)g(U,U.text.slice(0,N.ch)+$+U.text.slice(C.ch),X);else{var pe=E(1,I.length-1);pe.push(new Zs($+U.text.slice(C.ch),X,c)),g(U,U.text.slice(0,N.ch)+I[0],p(0)),a.insert(N.line+1,pe)}else if(I.length==1)g(U,U.text.slice(0,N.ch)+I[0]+K.text.slice(C.ch),p(0)),a.remove(N.line+1,ae);else{g(U,U.text.slice(0,N.ch)+I[0],p(0)),g(K,$+K.text.slice(C.ch),X);var be=E(1,I.length-1);ae>1&&a.remove(N.line+1,ae-1),a.insert(N.line+1,be)}Br(a,"change",a,u)}function Go(a,u,f){function c(p,g,E){if(p.linked)for(var N=0;N<p.linked.length;++N){var C=p.linked[N];if(C.doc!=g){var I=E&&C.sharedHist;f&&!I||(u(C.doc,I),c(C.doc,p,I))}}}c(a,null,!0)}function oD(a,u){if(u.cm)throw new Error("This document is already in use.");a.doc=u,u.cm=a,f0(a),k0(a),uD(a),a.options.direction=u.direction,a.options.lineWrapping||e0(a),a.options.mode=u.modeOption,Wn(a)}function uD(a){(a.doc.direction=="rtl"?Le:z)(a.display.lineDiv,"CodeMirror-rtl")}function $2(a){si(a,function(){uD(a),Wn(a)})}function xh(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}function w0(a,u){var f={from:vt(u.from),to:Uo(u),text:oo(a,u.from,u.to)};return cD(a,f,u.from.line,u.to.line+1),Go(a,function(c){return cD(c,f,u.from.line,u.to.line+1)},!0),f}function sD(a){for(;a.length;){var u=se(a);if(u.ranges)a.pop();else break}}function eB(a,u){if(u)return sD(a.done),se(a.done);if(a.done.length&&!se(a.done).ranges)return se(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),se(a.done)}function lD(a,u,f,c){var p=a.history;p.undone.length=0;var g=+new Date,E,N;if((p.lastOp==c||p.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&p.lastModTime>g-(a.cm?a.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(E=eB(p,p.lastOp==c)))N=se(E.changes),ie(u.from,u.to)==0&&ie(u.from,N.to)==0?N.to=Uo(u):E.changes.push(w0(a,u));else{var C=se(p.done);for((!C||!C.ranges)&&Ch(a.sel,p.done),E={changes:[w0(a,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=g,p.lastOp=p.lastSelOp=c,p.lastOrigin=p.lastSelOrigin=u.origin,N||Ft(a,"historyAdded")}function tB(a,u,f,c){var p=u.charAt(0);return p=="*"||p=="+"&&f.ranges.length==c.ranges.length&&f.somethingSelected()==c.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function rB(a,u,f,c){var p=a.history,g=c&&c.origin;f==p.lastSelOp||g&&p.lastSelOrigin==g&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==g||tB(a,g,se(p.done),u))?p.done[p.done.length-1]=u:Ch(u,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=g,p.lastSelOp=f,c&&c.clearRedo!==!1&&sD(p.undone)}function Ch(a,u){var f=se(u);f&&f.ranges&&f.equals(a)||u.push(a)}function cD(a,u,f,c){var p=u["spans_"+a.id],g=0;a.iter(Math.max(a.first,f),Math.min(a.first+a.size,c),function(E){E.markedSpans&&((p||(p=u["spans_"+a.id]={}))[g]=E.markedSpans),++g})}function nB(a){if(!a)return null;for(var u,f=0;f<a.length;++f)a[f].marker.explicitlyCleared?u||(u=a.slice(0,f)):u&&u.push(a[f]);return u?u.length?u:null:a}function iB(a,u){var f=u["spans_"+a.id];if(!f)return null;for(var c=[],p=0;p<u.text.length;++p)c.push(nB(f[p]));return c}function fD(a,u){var f=iB(a,u),c=Jy(a,u);if(!f)return c;if(!c)return f;for(var p=0;p<f.length;++p){var g=f[p],E=c[p];if(g&&E){e:for(var N=0;N<E.length;++N){for(var C=E[N],I=0;I<g.length;++I)if(g[I].marker==C.marker)continue e;g.push(C)}}else E&&(f[p]=E)}return f}function ol(a,u,f){for(var c=[],p=0;p<a.length;++p){var g=a[p];if(g.ranges){c.push(f?ki.prototype.deepCopy.call(g):g);continue}var E=g.changes,N=[];c.push({changes:N});for(var C=0;C<E.length;++C){var I=E[C],U=void 0;if(N.push({from:I.from,to:I.to,text:I.text}),u)for(var K in I)(U=K.match(/^spans_(\d+)$/))&&we(u,Number(U[1]))>-1&&(se(N)[K]=I[K],delete I[K])}}return c}function N0(a,u,f,c){if(c){var p=a.anchor;if(f){var g=ie(u,p)<0;g!=ie(f,p)<0?(p=u,u=f):g!=ie(u,f)<0&&(u=f)}return new Nt(p,u)}else return new Nt(f||u,u)}function Lh(a,u,f,c,p){p==null&&(p=a.cm&&(a.cm.display.shift||a.extend)),gn(a,new ki([N0(a.sel.primary(),u,f,p)],0),c)}function dD(a,u,f){for(var c=[],p=a.cm&&(a.cm.display.shift||a.extend),g=0;g<a.sel.ranges.length;g++)c[g]=N0(a.sel.ranges[g],u[g],null,p);var E=da(a.cm,c,a.sel.primIndex);gn(a,E,f)}function D0(a,u,f,c){var p=a.sel.ranges.slice(0);p[u]=f,gn(a,da(a.cm,p,a.sel.primIndex),c)}function pD(a,u,f,c){gn(a,Vo(u,f),c)}function aB(a,u,f){var c={ranges:u.ranges,update:function(p){this.ranges=[];for(var g=0;g<p.length;g++)this.ranges[g]=new Nt(Ye(a,p[g].anchor),Ye(a,p[g].head))},origin:f&&f.origin};return Ft(a,"beforeSelectionChange",a,c),a.cm&&Ft(a.cm,"beforeSelectionChange",a.cm,c),c.ranges!=u.ranges?da(a.cm,c.ranges,c.ranges.length-1):u}function hD(a,u,f){var c=a.history.done,p=se(c);p&&p.ranges?(c[c.length-1]=u,Ih(a,u,f)):gn(a,u,f)}function gn(a,u,f){Ih(a,u,f),rB(a,a.sel,a.cm?a.cm.curOp.id:NaN,f)}function Ih(a,u,f){(on(a,"beforeSelectionChange")||a.cm&&on(a.cm,"beforeSelectionChange"))&&(u=aB(a,u,f));var c=f&&f.bias||(ie(u.primary().head,a.sel.primary().head)<0?-1:1);vD(a,mD(a,u,c,!0)),!(f&&f.scroll===!1)&&a.cm&&a.cm.getOption("readOnly")!="nocursor"&&il(a.cm)}function vD(a,u){u.equals(a.sel)||(a.sel=u,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Ys(a.cm)),Br(a,"cursorActivity",a))}function gD(a){vD(a,mD(a,a.sel,null,!1))}function mD(a,u,f,c){for(var p,g=0;g<u.ranges.length;g++){var E=u.ranges[g],N=u.ranges.length==a.sel.ranges.length&&a.sel.ranges[g],C=Ah(a,E.anchor,N&&N.anchor,f,c),I=E.head==E.anchor?C:Ah(a,E.head,N&&N.head,f,c);(p||C!=E.anchor||I!=E.head)&&(p||(p=u.ranges.slice(0,g)),p[g]=new Nt(C,I))}return p?da(a.cm,p,u.primIndex):u}function ul(a,u,f,c,p){var g=Ae(a,u.line);if(g.markedSpans)for(var E=0;E<g.markedSpans.length;++E){var N=g.markedSpans[E],C=N.marker,I="selectLeft"in C?!C.selectLeft:C.inclusiveLeft,U="selectRight"in C?!C.selectRight:C.inclusiveRight;if((N.from==null||(I?N.from<=u.ch:N.from<u.ch))&&(N.to==null||(U?N.to>=u.ch:N.to>u.ch))){if(p&&(Ft(C,"beforeCursorEnter"),C.explicitlyCleared))if(g.markedSpans){--E;continue}else break;if(!C.atomic)continue;if(f){var K=C.find(c<0?1:-1),$=void 0;if((c<0?U:I)&&(K=yD(a,K,-c,K&&K.line==u.line?g:null)),K&&K.line==u.line&&($=ie(K,f))&&(c<0?$<0:$>0))return ul(a,K,u,c,p)}var X=C.find(c<0?-1:1);return(c<0?I:U)&&(X=yD(a,X,c,X.line==u.line?g:null)),X?ul(a,X,u,c,p):null}}return u}function Ah(a,u,f,c,p){var g=c||1,E=ul(a,u,f,g,p)||!p&&ul(a,u,f,g,!0)||ul(a,u,f,-g,p)||!p&&ul(a,u,f,-g,!0);return E||(a.cantEdit=!0,W(a.first,0))}function yD(a,u,f,c){return f<0&&u.ch==0?u.line>a.first?Ye(a,W(u.line-1)):null:f>0&&u.ch==(c||Ae(a,u.line)).text.length?u.line<a.first+a.size-1?W(u.line+1,0):null:new W(u.line,u.ch+f)}function bD(a){a.setSelection(W(a.firstLine(),0),W(a.lastLine()),Qe)}function TD(a,u,f){var c={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return c.canceled=!0}};return f&&(c.update=function(p,g,E,N){p&&(c.from=Ye(a,p)),g&&(c.to=Ye(a,g)),E&&(c.text=E),N!==void 0&&(c.origin=N)}),Ft(a,"beforeChange",a,c),a.cm&&Ft(a.cm,"beforeChange",a.cm,c),c.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:c.from,to:c.to,text:c.text,origin:c.origin}}function sl(a,u,f){if(a.cm){if(!a.cm.curOp)return Kr(a.cm,sl)(a,u,f);if(a.cm.state.suppressEdits)return}if(!((on(a,"beforeChange")||a.cm&&on(a.cm,"beforeChange"))&&(u=TD(a,u,!0),!u))){var c=fN&&!f&&r2(a,u.from,u.to);if(c)for(var p=c.length-1;p>=0;--p)_D(a,{from:c[p].from,to:c[p].to,text:p?[""]:u.text,origin:u.origin});else _D(a,u)}}function _D(a,u){if(!(u.text.length==1&&u.text[0]==""&&ie(u.from,u.to)==0)){var f=S0(a,u);lD(a,u,f,a.cm?a.cm.curOp.id:NaN),bf(a,u,f,Jy(a,u));var c=[];Go(a,function(p,g){!g&&we(c,p.history)==-1&&(OD(p.history,u),c.push(p.history)),bf(p,u,null,Jy(p,u))})}}function Rh(a,u,f){var c=a.cm&&a.cm.state.suppressEdits;if(!(c&&!f)){for(var p=a.history,g,E=a.sel,N=u=="undo"?p.done:p.undone,C=u=="undo"?p.undone:p.done,I=0;I<N.length&&(g=N[I],!(f?g.ranges&&!g.equals(a.sel):!g.ranges));I++);if(I!=N.length){for(p.lastOrigin=p.lastSelOrigin=null;;)if(g=N.pop(),g.ranges){if(Ch(g,C),f&&!g.equals(a.sel)){gn(a,g,{clearRedo:!1});return}E=g}else if(c){N.push(g);return}else break;var U=[];Ch(E,C),C.push({changes:U,generation:p.generation}),p.generation=g.generation||++p.maxGeneration;for(var K=on(a,"beforeChange")||a.cm&&on(a.cm,"beforeChange"),$=function(le){var pe=g.changes[le];if(pe.origin=u,K&&!TD(a,pe,!1))return N.length=0,{};U.push(w0(a,pe));var be=le?S0(a,pe):se(N);bf(a,pe,be,fD(a,pe)),!le&&a.cm&&a.cm.scrollIntoView({from:pe.from,to:Uo(pe)});var Ne=[];Go(a,function(Te,Ce){!Ce&&we(Ne,Te.history)==-1&&(OD(Te.history,pe),Ne.push(Te.history)),bf(Te,pe,null,fD(Te,pe))})},X=g.changes.length-1;X>=0;--X){var ae=$(X);if(ae)return ae.v}}}}function ED(a,u){if(u!=0&&(a.first+=u,a.sel=new ki(Ue(a.sel.ranges,function(p){return new Nt(W(p.anchor.line+u,p.anchor.ch),W(p.head.line+u,p.head.ch))}),a.sel.primIndex),a.cm)){Wn(a.cm,a.first,a.first-u,u);for(var f=a.cm.display,c=f.viewFrom;c<f.viewTo;c++)Mo(a.cm,c,"gutter")}}function bf(a,u,f,c){if(a.cm&&!a.cm.curOp)return Kr(a.cm,bf)(a,u,f,c);if(u.to.line<a.first){ED(a,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>a.lastLine())){if(u.from.line<a.first){var p=u.text.length-1-(a.first-u.from.line);ED(a,p),u={from:W(a.first,0),to:W(u.to.line+p,u.to.ch),text:[se(u.text)],origin:u.origin}}var g=a.lastLine();u.to.line>g&&(u={from:u.from,to:W(g,Ae(a,g).text.length),text:[u.text[0]],origin:u.origin}),u.removed=oo(a,u.from,u.to),f||(f=S0(a,u)),a.cm?oB(a.cm,u,c):O0(a,u,c),Ih(a,f,Qe),a.cantEdit&&Ah(a,W(a.firstLine(),0))&&(a.cantEdit=!1)}}function oB(a,u,f){var c=a.doc,p=a.display,g=u.from,E=u.to,N=!1,C=g.line;a.options.lineWrapping||(C=wt(ca(Ae(c,g.line))),c.iter(C,E.line+1,function(X){if(X==p.maxLine)return N=!0,!0})),c.sel.contains(u.from,u.to)>-1&&Ys(a),O0(c,u,f,UN(a)),a.options.lineWrapping||(c.iter(C,g.line+u.text.length,function(X){var ae=mh(X);ae>p.maxLineLength&&(p.maxLine=X,p.maxLineLength=ae,p.maxLineChanged=!0,N=!1)}),N&&(a.curOp.updateMaxLine=!0)),YQ(c,g.line),gf(a,400);var I=u.text.length-(E.line-g.line)-1;u.full?Wn(a):g.line==E.line&&u.text.length==1&&!aD(a.doc,u)?Mo(a,g.line,"text"):Wn(a,g.line,E.line+1,I);var U=on(a,"changes"),K=on(a,"change");if(K||U){var $={from:g,to:E,text:u.text,removed:u.removed,origin:u.origin};K&&Br(a,"change",a,$),U&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push($)}a.display.selForContextMenu=null}function ll(a,u,f,c,p){var g;c||(c=f),ie(c,f)<0&&(g=[c,f],f=g[0],c=g[1]),typeof u=="string"&&(u=a.splitLines(u)),sl(a,{from:f,to:c,text:u,origin:p})}function SD(a,u,f,c){f<a.line?a.line+=c:u<a.line&&(a.line=u,a.ch=0)}function kD(a,u,f,c){for(var p=0;p<a.length;++p){var g=a[p],E=!0;if(g.ranges){g.copied||(g=a[p]=g.deepCopy(),g.copied=!0);for(var N=0;N<g.ranges.length;N++)SD(g.ranges[N].anchor,u,f,c),SD(g.ranges[N].head,u,f,c);continue}for(var C=0;C<g.changes.length;++C){var I=g.changes[C];if(f<I.from.line)I.from=W(I.from.line+c,I.from.ch),I.to=W(I.to.line+c,I.to.ch);else if(u<=I.to.line){E=!1;break}}E||(a.splice(0,p+1),p=0)}}function OD(a,u){var f=u.from.line,c=u.to.line,p=u.text.length-(c-f)-1;kD(a.done,f,c,p),kD(a.undone,f,c,p)}function Tf(a,u,f,c){var p=u,g=u;return typeof u=="number"?g=Ae(a,Si(a,u)):p=wt(u),p==null?null:(c(g,p)&&a.cm&&Mo(a.cm,p,f),g)}function _f(a){this.lines=a,this.parent=null;for(var u=0,f=0;f<a.length;++f)a[f].parent=this,u+=a[f].height;this.height=u}_f.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,u){for(var f=a,c=a+u;f<c;++f){var p=this.lines[f];this.height-=p.height,u2(p),Br(p,"delete")}this.lines.splice(a,u)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,u,f){this.height+=f,this.lines=this.lines.slice(0,a).concat(u).concat(this.lines.slice(a));for(var c=0;c<u.length;++c)u[c].parent=this},iterN:function(a,u,f){for(var c=a+u;a<c;++a)if(f(this.lines[a]))return!0}};function Ef(a){this.children=a;for(var u=0,f=0,c=0;c<a.length;++c){var p=a[c];u+=p.chunkSize(),f+=p.height,p.parent=this}this.size=u,this.height=f,this.parent=null}Ef.prototype={chunkSize:function(){return this.size},removeInner:function(a,u){this.size-=u;for(var f=0;f<this.children.length;++f){var c=this.children[f],p=c.chunkSize();if(a<p){var g=Math.min(u,p-a),E=c.height;if(c.removeInner(a,g),this.height-=E-c.height,p==g&&(this.children.splice(f--,1),c.parent=null),(u-=g)==0)break;a=0}else a-=p}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof _f))){var N=[];this.collapse(N),this.children=[new _f(N)],this.children[0].parent=this}},collapse:function(a){for(var u=0;u<this.children.length;++u)this.children[u].collapse(a)},insertInner:function(a,u,f){this.size+=u.length,this.height+=f;for(var c=0;c<this.children.length;++c){var p=this.children[c],g=p.chunkSize();if(a<=g){if(p.insertInner(a,u,f),p.lines&&p.lines.length>50){for(var E=p.lines.length%25+25,N=E;N<p.lines.length;){var C=new _f(p.lines.slice(N,N+=25));p.height-=C.height,this.children.splice(++c,0,C),C.parent=this}p.lines=p.lines.slice(0,E),this.maybeSpill()}break}a-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var u=a.children.splice(a.children.length-5,5),f=new Ef(u);if(a.parent){a.size-=f.size,a.height-=f.height;var p=we(a.parent.children,a);a.parent.children.splice(p+1,0,f)}else{var c=new Ef(a.children);c.parent=a,a.children=[c,f],a=c}f.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,u,f){for(var c=0;c<this.children.length;++c){var p=this.children[c],g=p.chunkSize();if(a<g){var E=Math.min(u,g-a);if(p.iterN(a,E,f))return!0;if((u-=E)==0)break;a=0}else a-=g}}};var Sf=function(a,u,f){if(f)for(var c in f)f.hasOwnProperty(c)&&(this[c]=f[c]);this.doc=a,this.node=u};Sf.prototype.clear=function(){var a=this.doc.cm,u=this.line.widgets,f=this.line,c=wt(f);if(!(c==null||!u)){for(var p=0;p<u.length;++p)u[p]==this&&u.splice(p--,1);u.length||(f.widgets=null);var g=lf(this);Fi(f,Math.max(0,f.height-g)),a&&(si(a,function(){wD(a,f,-g),Mo(a,c,"widget")}),Br(a,"lineWidgetCleared",a,this,c))}},Sf.prototype.changed=function(){var a=this,u=this.height,f=this.doc.cm,c=this.line;this.height=null;var p=lf(this)-u;!p||(Fo(this.doc,c)||Fi(c,c.height+p),f&&si(f,function(){f.curOp.forceUpdate=!0,wD(f,c,p),Br(f,"lineWidgetChanged",f,a,wt(c))}))},un(Sf);function wD(a,u,f){so(u)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&m0(a,f)}function uB(a,u,f,c){var p=new Sf(a,f,c),g=a.cm;return g&&p.noHScroll&&(g.display.alignWidgets=!0),Tf(a,u,"widget",function(E){var N=E.widgets||(E.widgets=[]);if(p.insertAt==null?N.push(p):N.splice(Math.min(N.length,Math.max(0,p.insertAt)),0,p),p.line=E,g&&!Fo(a,E)){var C=so(E)<a.scrollTop;Fi(E,E.height+lf(p)),C&&m0(g,p.height),g.curOp.forceUpdate=!0}return!0}),g&&Br(g,"lineWidgetAdded",g,p,typeof u=="number"?u:wt(u)),p}var ND=0,Qo=function(a,u){this.lines=[],this.type=u,this.doc=a,this.id=++ND};Qo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,u=a&&!a.curOp;if(u&&Yu(a),on(this,"clear")){var f=this.find();f&&Br(this,"clear",f.from,f.to)}for(var c=null,p=null,g=0;g<this.lines.length;++g){var E=this.lines[g],N=of(E.markedSpans,this);a&&!this.collapsed?Mo(a,wt(E),"text"):a&&(N.to!=null&&(p=wt(E)),N.from!=null&&(c=wt(E))),E.markedSpans=ZQ(E.markedSpans,N),N.from==null&&this.collapsed&&!Fo(this.doc,E)&&a&&Fi(E,tl(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var C=0;C<this.lines.length;++C){var I=ca(this.lines[C]),U=mh(I);U>a.display.maxLineLength&&(a.display.maxLine=I,a.display.maxLineLength=U,a.display.maxLineChanged=!0)}c!=null&&a&&this.collapsed&&Wn(a,c,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&gD(a.doc)),a&&Br(a,"markerCleared",a,this,c,p),u&&Ju(a),this.parent&&this.parent.clear()}},Qo.prototype.find=function(a,u){a==null&&this.type=="bookmark"&&(a=1);for(var f,c,p=0;p<this.lines.length;++p){var g=this.lines[p],E=of(g.markedSpans,this);if(E.from!=null&&(f=W(u?g:wt(g),E.from),a==-1))return f;if(E.to!=null&&(c=W(u?g:wt(g),E.to),a==1))return c}return f&&{from:f,to:c}},Qo.prototype.changed=function(){var a=this,u=this.find(-1,!0),f=this,c=this.doc.cm;!u||!c||si(c,function(){var p=u.line,g=wt(u.line),E=i0(c,g);if(E&&(AN(E),c.curOp.selectionChanged=c.curOp.forceUpdate=!0),c.curOp.updateMaxLine=!0,!Fo(f.doc,p)&&f.height!=null){var N=f.height;f.height=null;var C=lf(f)-N;C&&Fi(p,p.height+C)}Br(c,"markerChanged",c,a)})},Qo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||we(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Qo.prototype.detachLine=function(a){if(this.lines.splice(we(this.lines,a),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},un(Qo);function cl(a,u,f,c,p){if(c&&c.shared)return sB(a,u,f,c,p);if(a.cm&&!a.cm.curOp)return Kr(a.cm,cl)(a,u,f,c,p);var g=new Qo(a,p),E=ie(u,f);if(c&&Ie(c,g,!1),E>0||E==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=he("span",[g.replacedWith],"CodeMirror-widget"),c.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),c.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(mN(a,u.line,u,f,g)||u.line!=f.line&&mN(a,f.line,u,f,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");XQ()}g.addToHistory&&lD(a,{from:u,to:f,origin:"markText"},a.sel,NaN);var N=u.line,C=a.cm,I;if(a.iter(N,f.line+1,function(K){C&&g.collapsed&&!C.options.lineWrapping&&ca(K)==C.display.maxLine&&(I=!0),g.collapsed&&N!=u.line&&Fi(K,0),$Q(K,new ph(g,N==u.line?u.ch:null,N==f.line?f.ch:null),a.cm&&a.cm.curOp),++N}),g.collapsed&&a.iter(u.line,f.line+1,function(K){Fo(a,K)&&Fi(K,0)}),g.clearOnEnter&&_e(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(JQ(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),g.collapsed&&(g.id=++ND,g.atomic=!0),C){if(I&&(C.curOp.updateMaxLine=!0),g.collapsed)Wn(C,u.line,f.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var U=u.line;U<=f.line;U++)Mo(C,U,"text");g.atomic&&gD(C.doc),Br(C,"markerAdded",C,g)}return g}var kf=function(a,u){this.markers=a,this.primary=u;for(var f=0;f<a.length;++f)a[f].parent=this};kf.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Br(this,"clear")}},kf.prototype.find=function(a,u){return this.primary.find(a,u)},un(kf);function sB(a,u,f,c,p){c=Ie(c),c.shared=!1;var g=[cl(a,u,f,c,p)],E=g[0],N=c.widgetNode;return Go(a,function(C){N&&(c.widgetNode=N.cloneNode(!0)),g.push(cl(C,Ye(C,u),Ye(C,f),c,p));for(var I=0;I<C.linked.length;++I)if(C.linked[I].isParent)return;E=se(g)}),new kf(g,E)}function DD(a){return a.findMarks(W(a.first,0),a.clipPos(W(a.lastLine())),function(u){return u.parent})}function lB(a,u){for(var f=0;f<u.length;f++){var c=u[f],p=c.find(),g=a.clipPos(p.from),E=a.clipPos(p.to);if(ie(g,E)){var N=cl(a,g,E,c.primary,c.primary.type);c.markers.push(N),N.parent=c}}}function cB(a){for(var u=function(c){var p=a[c],g=[p.primary.doc];Go(p.primary.doc,function(C){return g.push(C)});for(var E=0;E<p.markers.length;E++){var N=p.markers[E];we(g,N.doc)==-1&&(N.parent=null,p.markers.splice(E--,1))}},f=0;f<a.length;f++)u(f)}var fB=0,Yn=function(a,u,f,c,p){if(!(this instanceof Yn))return new Yn(a,u,f,c,p);f==null&&(f=0),Ef.call(this,[new _f([new Zs("",null)])]),this.first=f,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=f;var g=W(f,0);this.sel=Vo(g),this.history=new xh(null),this.id=++fB,this.modeOption=u,this.lineSep=c,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),O0(this,{from:g,to:g,text:a}),gn(this,Vo(g),Qe)};Yn.prototype=st(Ef.prototype,{constructor:Yn,iter:function(a,u,f){f?this.iterN(a-this.first,u-a,f):this.iterN(this.first,this.first+this.size,a)},insert:function(a,u){for(var f=0,c=0;c<u.length;++c)f+=u[c].height;this.insertInner(a-this.first,u,f)},remove:function(a,u){this.removeInner(a-this.first,u)},getValue:function(a){var u=Xs(this,this.first,this.first+this.size);return a===!1?u:u.join(a||this.lineSeparator())},setValue:Hr(function(a){var u=W(this.first,0),f=this.first+this.size-1;sl(this,{from:u,to:W(f,Ae(this,f).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&df(this.cm,0,0),gn(this,Vo(u),Qe)}),replaceRange:function(a,u,f,c){u=Ye(this,u),f=f?Ye(this,f):u,ll(this,a,u,f,c)},getRange:function(a,u,f){var c=oo(this,Ye(this,a),Ye(this,u));return f===!1?c:f===""?c.join(""):c.join(f||this.lineSeparator())},getLine:function(a){var u=this.getLineHandle(a);return u&&u.text},getLineHandle:function(a){if(j(this,a))return Ae(this,a)},getLineNumber:function(a){return wt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Ae(this,a)),ca(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ye(this,a)},getCursor:function(a){var u=this.sel.primary(),f;return a==null||a=="head"?f=u.head:a=="anchor"?f=u.anchor:a=="end"||a=="to"||a===!1?f=u.to():f=u.from(),f},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Hr(function(a,u,f){pD(this,Ye(this,typeof a=="number"?W(a,u||0):a),null,f)}),setSelection:Hr(function(a,u,f){pD(this,Ye(this,a),Ye(this,u||a),f)}),extendSelection:Hr(function(a,u,f){Lh(this,Ye(this,a),u&&Ye(this,u),f)}),extendSelections:Hr(function(a,u){dD(this,nN(this,a),u)}),extendSelectionsBy:Hr(function(a,u){var f=Ue(this.sel.ranges,a);dD(this,nN(this,f),u)}),setSelections:Hr(function(a,u,f){if(!!a.length){for(var c=[],p=0;p<a.length;p++)c[p]=new Nt(Ye(this,a[p].anchor),Ye(this,a[p].head||a[p].anchor));u==null&&(u=Math.min(a.length-1,this.sel.primIndex)),gn(this,da(this.cm,c,u),f)}}),addSelection:Hr(function(a,u,f){var c=this.sel.ranges.slice(0);c.push(new Nt(Ye(this,a),Ye(this,u||a))),gn(this,da(this.cm,c,c.length-1),f)}),getSelection:function(a){for(var u=this.sel.ranges,f,c=0;c<u.length;c++){var p=oo(this,u[c].from(),u[c].to());f=f?f.concat(p):p}return a===!1?f:f.join(a||this.lineSeparator())},getSelections:function(a){for(var u=[],f=this.sel.ranges,c=0;c<f.length;c++){var p=oo(this,f[c].from(),f[c].to());a!==!1&&(p=p.join(a||this.lineSeparator())),u[c]=p}return u},replaceSelection:function(a,u,f){for(var c=[],p=0;p<this.sel.ranges.length;p++)c[p]=a;this.replaceSelections(c,u,f||"+input")},replaceSelections:Hr(function(a,u,f){for(var c=[],p=this.sel,g=0;g<p.ranges.length;g++){var E=p.ranges[g];c[g]={from:E.from(),to:E.to(),text:this.splitLines(a[g]),origin:f}}for(var N=u&&u!="end"&&Z2(this,c,u),C=c.length-1;C>=0;C--)sl(this,c[C]);N?hD(this,N):this.cm&&il(this.cm)}),undo:Hr(function(){Rh(this,"undo")}),redo:Hr(function(){Rh(this,"redo")}),undoSelection:Hr(function(){Rh(this,"undo",!0)}),redoSelection:Hr(function(){Rh(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,u=0,f=0,c=0;c<a.done.length;c++)a.done[c].ranges||++u;for(var p=0;p<a.undone.length;p++)a.undone[p].ranges||++f;return{undo:u,redo:f}},clearHistory:function(){var a=this;this.history=new xh(this.history),Go(this,function(u){return u.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:ol(this.history.done),undone:ol(this.history.undone)}},setHistory:function(a){var u=this.history=new xh(this.history);u.done=ol(a.done.slice(0),null,!0),u.undone=ol(a.undone.slice(0),null,!0)},setGutterMarker:Hr(function(a,u,f){return Tf(this,a,"gutter",function(c){var p=c.gutterMarkers||(c.gutterMarkers={});return p[u]=f,!f&&Hn(p)&&(c.gutterMarkers=null),!0})}),clearGutter:Hr(function(a){var u=this;this.iter(function(f){f.gutterMarkers&&f.gutterMarkers[a]&&Tf(u,f,"gutter",function(){return f.gutterMarkers[a]=null,Hn(f.gutterMarkers)&&(f.gutterMarkers=null),!0})})}),lineInfo:function(a){var u;if(typeof a=="number"){if(!j(this,a)||(u=a,a=Ae(this,a),!a))return null}else if(u=wt(a),u==null)return null;return{line:u,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Hr(function(a,u,f){return Tf(this,a,u=="gutter"?"gutter":"class",function(c){var p=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!c[p])c[p]=f;else{if(q(f).test(c[p]))return!1;c[p]+=" "+f}return!0})}),removeLineClass:Hr(function(a,u,f){return Tf(this,a,u=="gutter"?"gutter":"class",function(c){var p=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",g=c[p];if(g)if(f==null)c[p]=null;else{var E=g.match(q(f));if(!E)return!1;var N=E.index+E[0].length;c[p]=g.slice(0,E.index)+(!E.index||N==g.length?"":" ")+g.slice(N)||null}else return!1;return!0})}),addLineWidget:Hr(function(a,u,f){return uB(this,a,u,f)}),removeLineWidget:function(a){a.clear()},markText:function(a,u,f){return cl(this,Ye(this,a),Ye(this,u),f,f&&f.type||"range")},setBookmark:function(a,u){var f={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return a=Ye(this,a),cl(this,a,a,f,"bookmark")},findMarksAt:function(a){a=Ye(this,a);var u=[],f=Ae(this,a.line).markedSpans;if(f)for(var c=0;c<f.length;++c){var p=f[c];(p.from==null||p.from<=a.ch)&&(p.to==null||p.to>=a.ch)&&u.push(p.marker.parent||p.marker)}return u},findMarks:function(a,u,f){a=Ye(this,a),u=Ye(this,u);var c=[],p=a.line;return this.iter(a.line,u.line+1,function(g){var E=g.markedSpans;if(E)for(var N=0;N<E.length;N++){var C=E[N];!(C.to!=null&&p==a.line&&a.ch>=C.to||C.from==null&&p!=a.line||C.from!=null&&p==u.line&&C.from>=u.ch)&&(!f||f(C.marker))&&c.push(C.marker.parent||C.marker)}++p}),c},getAllMarks:function(){var a=[];return this.iter(function(u){var f=u.markedSpans;if(f)for(var c=0;c<f.length;++c)f[c].from!=null&&a.push(f[c].marker)}),a},posFromIndex:function(a){var u,f=this.first,c=this.lineSeparator().length;return this.iter(function(p){var g=p.text.length+c;if(g>a)return u=a,!0;a-=g,++f}),Ye(this,W(f,u))},indexFromPos:function(a){a=Ye(this,a);var u=a.ch;if(a.line<this.first||a.ch<0)return 0;var f=this.lineSeparator().length;return this.iter(this.first,a.line,function(c){u+=c.text.length+f}),u},copy:function(a){var u=new Yn(Xs(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,a&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(a){a||(a={});var u=this.first,f=this.first+this.size;a.from!=null&&a.from>u&&(u=a.from),a.to!=null&&a.to<f&&(f=a.to);var c=new Yn(Xs(this,u,f),a.mode||this.modeOption,u,this.lineSep,this.direction);return a.sharedHist&&(c.history=this.history),(this.linked||(this.linked=[])).push({doc:c,sharedHist:a.sharedHist}),c.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],lB(c,DD(this)),c},unlinkDoc:function(a){if(a instanceof ir&&(a=a.doc),this.linked)for(var u=0;u<this.linked.length;++u){var f=this.linked[u];if(f.doc==a){this.linked.splice(u,1),a.unlinkDoc(this),cB(DD(this));break}}if(a.history==this.history){var c=[a.id];Go(a,function(p){return c.push(p.id)},!0),a.history=new xh(null),a.history.done=ol(this.history.done,c),a.history.undone=ol(this.history.undone,c)}},iterLinkedDocs:function(a){Go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):vn(a)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Hr(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(u){return u.order=null}),this.cm&&$2(this.cm))})}),Yn.prototype.eachLine=Yn.prototype.iter;var xD=0;function dB(a){var u=this;if(CD(u),!(nr(u,a)||lo(u.display,a))){ee(a),s&&(xD=+new Date);var f=Ku(u,a,!0),c=a.dataTransfer.files;if(!(!f||u.isReadOnly()))if(c&&c.length&&window.FileReader&&window.File)for(var p=c.length,g=Array(p),E=0,N=function(){++E==p&&Kr(u,function(){f=Ye(u.doc,f);var X={from:f,to:f,text:u.doc.splitLines(g.filter(function(ae){return ae!=null}).join(u.doc.lineSeparator())),origin:"paste"};sl(u.doc,X),hD(u.doc,Vo(Ye(u.doc,f),Ye(u.doc,Uo(X))))})()},C=function(X,ae){if(u.options.allowDropFileTypes&&we(u.options.allowDropFileTypes,X.type)==-1){N();return}var le=new FileReader;le.onerror=function(){return N()},le.onload=function(){var pe=le.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(pe)){N();return}g[ae]=pe,N()},le.readAsText(X)},I=0;I<c.length;I++)C(c[I],I);else{if(u.state.draggingText&&u.doc.sel.contains(f)>-1){u.state.draggingText(a),setTimeout(function(){return u.display.input.focus()},20);return}try{var U=a.dataTransfer.getData("Text");if(U){var K;if(u.state.draggingText&&!u.state.draggingText.copy&&(K=u.listSelections()),Ih(u.doc,Vo(f,f)),K)for(var $=0;$<K.length;++$)ll(u.doc,"",K[$].anchor,K[$].head,"drag");u.replaceSelection(U,"around","paste"),u.display.input.focus()}}catch(X){}}}}function pB(a,u){if(s&&(!a.state.draggingText||+new Date-xD<100)){J(u);return}if(!(nr(a,u)||lo(a.display,u))&&(u.dataTransfer.setData("Text",a.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!D)){var f=P("img",null,null,"position: fixed; left: 0; top: 0;");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",b&&(f.width=f.height=1,a.display.wrapper.appendChild(f),f._top=f.offsetTop),u.dataTransfer.setDragImage(f,0,0),b&&f.parentNode.removeChild(f)}}function hB(a,u){var f=Ku(a,u);if(!!f){var c=document.createDocumentFragment();d0(a,f,c),a.display.dragCursor||(a.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Q(a.display.dragCursor,c)}}function CD(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function LD(a){if(!!document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),f=[],c=0;c<u.length;c++){var p=u[c].CodeMirror;p&&f.push(p)}f.length&&f[0].operation(function(){for(var g=0;g<f.length;g++)a(f[g])})}}var ID=!1;function vB(){ID||(gB(),ID=!0)}function gB(){var a;_e(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,LD(mB)},100))}),_e(window,"blur",function(){return LD(nl)})}function mB(a){var u=a.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,a.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Of=0;Of<10;Of++)Bo[Of+48]=Bo[Of+96]=String(Of);for(var jh=65;jh<=90;jh++)Bo[jh]=String.fromCharCode(jh);for(var wf=1;wf<=12;wf++)Bo[wf+111]=Bo[wf+63235]="F"+wf;var fo={};fo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},fo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},fo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},fo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},fo.default=w?fo.macDefault:fo.pcDefault;function yB(a){var u=a.split(/-(?!$)/);a=u[u.length-1];for(var f,c,p,g,E=0;E<u.length-1;E++){var N=u[E];if(/^(cmd|meta|m)$/i.test(N))g=!0;else if(/^a(lt)?$/i.test(N))f=!0;else if(/^(c|ctrl|control)$/i.test(N))c=!0;else if(/^s(hift)?$/i.test(N))p=!0;else throw new Error("Unrecognized modifier name: "+N)}return f&&(a="Alt-"+a),c&&(a="Ctrl-"+a),g&&(a="Cmd-"+a),p&&(a="Shift-"+a),a}function bB(a){var u={};for(var f in a)if(a.hasOwnProperty(f)){var c=a[f];if(/^(name|fallthrough|(de|at)tach)$/.test(f))continue;if(c=="..."){delete a[f];continue}for(var p=Ue(f.split(" "),yB),g=0;g<p.length;g++){var E=void 0,N=void 0;g==p.length-1?(N=p.join(" "),E=c):(N=p.slice(0,g+1).join(" "),E="...");var C=u[N];if(!C)u[N]=E;else if(C!=E)throw new Error("Inconsistent bindings for "+N)}delete a[f]}for(var I in u)a[I]=u[I];return a}function fl(a,u,f,c){u=Ph(u);var p=u.call?u.call(a,c):u[a];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&f(p))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return fl(a,u.fallthrough,f,c);for(var g=0;g<u.fallthrough.length;g++){var E=fl(a,u.fallthrough[g],f,c);if(E)return E}}}function AD(a){var u=typeof a=="string"?a:Bo[a.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function RD(a,u,f){var c=a;return u.altKey&&c!="Alt"&&(a="Alt-"+a),(R?u.metaKey:u.ctrlKey)&&c!="Ctrl"&&(a="Ctrl-"+a),(R?u.ctrlKey:u.metaKey)&&c!="Mod"&&(a="Cmd-"+a),!f&&u.shiftKey&&c!="Shift"&&(a="Shift-"+a),a}function jD(a,u){if(b&&a.keyCode==34&&a.char)return!1;var f=Bo[a.keyCode];return f==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(f=a.code),RD(f,a,u))}function Ph(a){return typeof a=="string"?fo[a]:a}function dl(a,u){for(var f=a.doc.sel.ranges,c=[],p=0;p<f.length;p++){for(var g=u(f[p]);c.length&&ie(g.from,se(c).to)<=0;){var E=c.pop();if(ie(E.from,g.from)<0){g.from=E.from;break}}c.push(g)}si(a,function(){for(var N=c.length-1;N>=0;N--)ll(a.doc,"",c[N].from,c[N].to,"+delete");il(a)})}function x0(a,u,f){var c=Qr(a.text,u+f,f);return c<0||c>a.text.length?null:c}function C0(a,u,f){var c=x0(a,u.ch,f);return c==null?null:new W(u.line,c,f<0?"after":"before")}function L0(a,u,f,c,p){if(a){u.doc.direction=="rtl"&&(p=-p);var g=xn(f,u.doc.direction);if(g){var E=p<0?se(g):g[0],N=p<0==(E.level==1),C=N?"after":"before",I;if(E.level>0||u.doc.direction=="rtl"){var U=el(u,f);I=p<0?f.text.length-1:0;var K=xa(u,U,I).top;I=Kt(function($){return xa(u,U,$).top==K},p<0==(E.level==1)?E.from:E.to-1,I),C=="before"&&(I=x0(f,I,1))}else I=p<0?E.to:E.from;return new W(c,I,C)}}return new W(c,p<0?f.text.length:0,p<0?"before":"after")}function TB(a,u,f,c){var p=xn(u,a.doc.direction);if(!p)return C0(u,f,c);f.ch>=u.text.length?(f.ch=u.text.length,f.sticky="before"):f.ch<=0&&(f.ch=0,f.sticky="after");var g=vr(p,f.ch,f.sticky),E=p[g];if(a.doc.direction=="ltr"&&E.level%2==0&&(c>0?E.to>f.ch:E.from<f.ch))return C0(u,f,c);var N=function(be,Ne){return x0(u,be instanceof W?be.ch:be,Ne)},C,I=function(be){return a.options.lineWrapping?(C=C||el(a,u),VN(a,u,C,be)):{begin:0,end:u.text.length}},U=I(f.sticky=="before"?N(f,-1):f.ch);if(a.doc.direction=="rtl"||E.level==1){var K=E.level==1==c<0,$=N(f,K?1:-1);if($!=null&&(K?$<=E.to&&$<=U.end:$>=E.from&&$>=U.begin)){var X=K?"before":"after";return new W(f.line,$,X)}}var ae=function(be,Ne,Te){for(var Ce=function(Ht,zr){return zr?new W(f.line,N(Ht,1),"before"):new W(f.line,Ht,"after")};be>=0&&be<p.length;be+=Ne){var Ge=p[be],qe=Ne>0==(Ge.level!=1),lt=qe?Te.begin:N(Te.end,-1);if(Ge.from<=lt&<<Ge.to||(lt=qe?Ge.from:N(Ge.to,-1),Te.begin<=lt&<<Te.end))return Ce(lt,qe)}},le=ae(g+c,c,U);if(le)return le;var pe=c>0?U.end:N(U.begin,-1);return pe!=null&&!(c>0&&pe==u.text.length)&&(le=ae(c>0?0:p.length-1,c,I(pe)),le)?le:null}var Nf={selectAll:bD,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Qe)},killLine:function(a){return dl(a,function(u){if(u.empty()){var f=Ae(a.doc,u.head.line).text.length;return u.head.ch==f&&u.head.line<a.lastLine()?{from:u.head,to:W(u.head.line+1,0)}:{from:u.head,to:W(u.head.line,f)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(a){return dl(a,function(u){return{from:W(u.from().line,0),to:Ye(a.doc,W(u.to().line+1,0))}})},delLineLeft:function(a){return dl(a,function(u){return{from:W(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(a){return dl(a,function(u){var f=a.charCoords(u.head,"div").top+5,c=a.coordsChar({left:0,top:f},"div");return{from:c,to:u.from()}})},delWrappedLineRight:function(a){return dl(a,function(u){var f=a.charCoords(u.head,"div").top+5,c=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:f},"div");return{from:u.from(),to:c}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(W(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(W(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(u){return PD(a,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(u){return FD(a,u.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(u){return _B(a,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(u){var f=a.cursorCoords(u.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:f},"div")},mt)},goLineLeft:function(a){return a.extendSelectionsBy(function(u){var f=a.cursorCoords(u.head,"div").top+5;return a.coordsChar({left:0,top:f},"div")},mt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(u){var f=a.cursorCoords(u.head,"div").top+5,c=a.coordsChar({left:0,top:f},"div");return c.ch<a.getLine(c.line).search(/\S/)?FD(a,u.head):c},mt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var u=[],f=a.listSelections(),c=a.options.tabSize,p=0;p<f.length;p++){var g=f[p].from(),E=te(a.getLine(g.line),g.ch,c);u.push(fe(c-E%c))}a.replaceSelections(u)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return si(a,function(){for(var u=a.listSelections(),f=[],c=0;c<u.length;c++)if(!!u[c].empty()){var p=u[c].head,g=Ae(a.doc,p.line).text;if(g){if(p.ch==g.length&&(p=new W(p.line,p.ch-1)),p.ch>0)p=new W(p.line,p.ch+1),a.replaceRange(g.charAt(p.ch-1)+g.charAt(p.ch-2),W(p.line,p.ch-2),p,"+transpose");else if(p.line>a.doc.first){var E=Ae(a.doc,p.line-1).text;E&&(p=new W(p.line,1),a.replaceRange(g.charAt(0)+a.doc.lineSeparator()+E.charAt(E.length-1),W(p.line-1,E.length-1),p,"+transpose"))}}f.push(new Nt(p,p))}a.setSelections(f)})},newlineAndIndent:function(a){return si(a,function(){for(var u=a.listSelections(),f=u.length-1;f>=0;f--)a.replaceRange(a.doc.lineSeparator(),u[f].anchor,u[f].head,"+input");u=a.listSelections();for(var c=0;c<u.length;c++)a.indentLine(u[c].from().line,null,!0);il(a)})},openLine:function(a){return a.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function PD(a,u){var f=Ae(a.doc,u),c=ca(f);return c!=f&&(u=wt(c)),L0(!0,a,c,u,1)}function _B(a,u){var f=Ae(a.doc,u),c=i2(f);return c!=f&&(u=wt(c)),L0(!0,a,f,u,-1)}function FD(a,u){var f=PD(a,u.line),c=Ae(a.doc,f.line),p=xn(c,a.doc.direction);if(!p||p[0].level==0){var g=Math.max(f.ch,c.text.search(/\S/)),E=u.line==f.line&&u.ch<=g&&u.ch;return W(f.line,E?0:g,f.sticky)}return f}function Fh(a,u,f){if(typeof u=="string"&&(u=Nf[u],!u))return!1;a.display.input.ensurePolled();var c=a.display.shift,p=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),f&&(a.display.shift=!1),p=u(a)!=Me}finally{a.display.shift=c,a.state.suppressEdits=!1}return p}function EB(a,u,f){for(var c=0;c<a.state.keyMaps.length;c++){var p=fl(u,a.state.keyMaps[c],f,a);if(p)return p}return a.options.extraKeys&&fl(u,a.options.extraKeys,f,a)||fl(u,a.options.keyMap,f,a)}var SB=new ce;function Df(a,u,f,c){var p=a.state.keySeq;if(p){if(AD(u))return"handled";if(/\'$/.test(u)?a.state.keySeq=null:SB.set(50,function(){a.state.keySeq==p&&(a.state.keySeq=null,a.display.input.reset())}),MD(a,p+" "+u,f,c))return!0}return MD(a,u,f,c)}function MD(a,u,f,c){var p=EB(a,u,c);return p=="multi"&&(a.state.keySeq=u),p=="handled"&&Br(a,"keyHandled",a,u,f),(p=="handled"||p=="multi")&&(ee(f),p0(a)),!!p}function qD(a,u){var f=jD(u,!0);return f?u.shiftKey&&!a.state.keySeq?Df(a,"Shift-"+f,u,function(c){return Fh(a,c,!0)})||Df(a,f,u,function(c){if(typeof c=="string"?/^go[A-Z]/.test(c):c.motion)return Fh(a,c)}):Df(a,f,u,function(c){return Fh(a,c)}):!1}function kB(a,u,f){return Df(a,"'"+f+"'",u,function(c){return Fh(a,c,!0)})}var I0=null;function VD(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&(u.curOp.focus=Fe(Ve(u)),!nr(u,a))){s&&l<11&&a.keyCode==27&&(a.returnValue=!1);var f=a.keyCode;u.display.shift=f==16||a.shiftKey;var c=qD(u,a);b&&(I0=c?f:null,!c&&f==88&&!jr&&(w?a.metaKey:a.ctrlKey)&&u.replaceSelection("",null,"cut")),r&&!w&&!c&&f==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),f==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&OB(u)}}function OB(a){var u=a.display.lineDiv;Le(u,"CodeMirror-crosshair");function f(c){(c.keyCode==18||!c.altKey)&&(z(u,"CodeMirror-crosshair"),Ar(document,"keyup",f),Ar(document,"mouseover",f))}_e(document,"keyup",f),_e(document,"mouseover",f)}function UD(a){a.keyCode==16&&(this.doc.sel.shift=!1),nr(this,a)}function GD(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&!(lo(u.display,a)||nr(u,a)||a.ctrlKey&&!a.altKey||w&&a.metaKey)){var f=a.keyCode,c=a.charCode;if(b&&f==I0){I0=null,ee(a);return}if(!(b&&(!a.which||a.which<10)&&qD(u,a))){var p=String.fromCharCode(c==null?f:c);p!="\b"&&(kB(u,a,p)||u.display.input.onKeyPress(a))}}}var wB=400,A0=function(a,u,f){this.time=a,this.pos=u,this.button=f};A0.prototype.compare=function(a,u,f){return this.time+wB>a&&ie(u,this.pos)==0&&f==this.button};var xf,Cf;function NB(a,u){var f=+new Date;return Cf&&Cf.compare(f,a,u)?(xf=Cf=null,"triple"):xf&&xf.compare(f,a,u)?(Cf=new A0(f,a,u),xf=null,"double"):(xf=new A0(f,a,u),Cf=null,"single")}function QD(a){var u=this,f=u.display;if(!(nr(u,a)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=a.shiftKey,lo(f,a)){d||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!R0(u,a)){var c=Ku(u,a),p=A(a),g=c?NB(c,p):"single";At(u).focus(),p==1&&u.state.selectingText&&u.state.selectingText(a),!(c&&DB(u,p,c,g,a))&&(p==1?c?CB(u,c,g,a):V(a)==f.scroller&&ee(a):p==2?(c&&Lh(u.doc,c),setTimeout(function(){return f.input.focus()},20)):p==3&&(M?u.display.input.onContextMenu(a):h0(u)))}}}function DB(a,u,f,c,p){var g="Click";return c=="double"?g="Double"+g:c=="triple"&&(g="Triple"+g),g=(u==1?"Left":u==2?"Middle":"Right")+g,Df(a,RD(g,p),p,function(E){if(typeof E=="string"&&(E=Nf[E]),!E)return!1;var N=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),N=E(a,f)!=Me}finally{a.state.suppressEdits=!1}return N})}function xB(a,u,f){var c=a.getOption("configureMouse"),p=c?c(a,u,f):{};if(p.unit==null){var g=x?f.shiftKey&&f.metaKey:f.altKey;p.unit=g?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(p.extend==null||a.doc.extend)&&(p.extend=a.doc.extend||f.shiftKey),p.addNew==null&&(p.addNew=w?f.metaKey:f.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(w?f.altKey:f.ctrlKey)),p}function CB(a,u,f,c){s?setTimeout(Ot(BN,a),0):a.curOp.focus=Fe(Ve(a));var p=xB(a,f,c),g=a.doc.sel,E;a.options.dragDrop&&re&&!a.isReadOnly()&&f=="single"&&(E=g.contains(u))>-1&&(ie((E=g.ranges[E]).from(),u)<0||u.xRel>0)&&(ie(E.to(),u)>0||u.xRel<0)?LB(a,c,u,p):IB(a,c,u,p)}function LB(a,u,f,c){var p=a.display,g=!1,E=Kr(a,function(I){d&&(p.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:h0(a)),Ar(p.wrapper.ownerDocument,"mouseup",E),Ar(p.wrapper.ownerDocument,"mousemove",N),Ar(p.scroller,"dragstart",C),Ar(p.scroller,"drop",E),g||(ee(I),c.addNew||Lh(a.doc,f,null,null,c.extend),d&&!D||s&&l==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),N=function(I){g=g||Math.abs(u.clientX-I.clientX)+Math.abs(u.clientY-I.clientY)>=10},C=function(){return g=!0};d&&(p.scroller.draggable=!0),a.state.draggingText=E,E.copy=!c.moveOnDrag,_e(p.wrapper.ownerDocument,"mouseup",E),_e(p.wrapper.ownerDocument,"mousemove",N),_e(p.scroller,"dragstart",C),_e(p.scroller,"drop",E),a.state.delayingBlurEvent=!0,setTimeout(function(){return p.input.focus()},20),p.scroller.dragDrop&&p.scroller.dragDrop()}function BD(a,u,f){if(f=="char")return new Nt(u,u);if(f=="word")return a.findWordAt(u);if(f=="line")return new Nt(W(u.line,0),Ye(a.doc,W(u.line+1,0)));var c=f(a,u);return new Nt(c.from,c.to)}function IB(a,u,f,c){s&&h0(a);var p=a.display,g=a.doc;ee(u);var E,N,C=g.sel,I=C.ranges;if(c.addNew&&!c.extend?(N=g.sel.contains(f),N>-1?E=I[N]:E=new Nt(f,f)):(E=g.sel.primary(),N=g.sel.primIndex),c.unit=="rectangle")c.addNew||(E=new Nt(f,f)),f=Ku(a,u,!0,!0),N=-1;else{var U=BD(a,f,c.unit);c.extend?E=N0(E,U.anchor,U.head,c.extend):E=U}c.addNew?N==-1?(N=I.length,gn(g,da(a,I.concat([E]),N),{scroll:!1,origin:"*mouse"})):I.length>1&&I[N].empty()&&c.unit=="char"&&!c.extend?(gn(g,da(a,I.slice(0,N).concat(I.slice(N+1)),0),{scroll:!1,origin:"*mouse"}),C=g.sel):D0(g,N,E,ze):(N=0,gn(g,new ki([E],0),ze),C=g.sel);var K=f;function $(Te){if(ie(K,Te)!=0)if(K=Te,c.unit=="rectangle"){for(var Ce=[],Ge=a.options.tabSize,qe=te(Ae(g,f.line).text,f.ch,Ge),lt=te(Ae(g,Te.line).text,Te.ch,Ge),Ht=Math.min(qe,lt),zr=Math.max(qe,lt),lr=Math.min(f.line,Te.line),li=Math.min(a.lastLine(),Math.max(f.line,Te.line));lr<=li;lr++){var Jn=Ae(g,lr).text,wr=oe(Jn,Ht,Ge);Ht==zr?Ce.push(new Nt(W(lr,wr),W(lr,wr))):Jn.length>wr&&Ce.push(new Nt(W(lr,wr),W(lr,oe(Jn,zr,Ge))))}Ce.length||Ce.push(new Nt(f,f)),gn(g,da(a,C.ranges.slice(0,N).concat(Ce),N),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Te)}else{var Xn=E,sn=BD(a,Te,c.unit),Fr=Xn.anchor,Nr;ie(sn.anchor,Fr)>0?(Nr=sn.head,Fr=Pr(Xn.from(),sn.anchor)):(Nr=sn.anchor,Fr=_t(Xn.to(),sn.head));var mr=C.ranges.slice(0);mr[N]=AB(a,new Nt(Ye(g,Fr),Nr)),gn(g,da(a,mr,N),ze)}}var X=p.wrapper.getBoundingClientRect(),ae=0;function le(Te){var Ce=++ae,Ge=Ku(a,Te,!0,c.unit=="rectangle");if(!!Ge)if(ie(Ge,K)!=0){a.curOp.focus=Fe(Ve(a)),$(Ge);var qe=Oh(p,g);(Ge.line>=qe.to||Ge.line<qe.from)&&setTimeout(Kr(a,function(){ae==Ce&&le(Te)}),150)}else{var lt=Te.clientY<X.top?-20:Te.clientY>X.bottom?20:0;lt&&setTimeout(Kr(a,function(){ae==Ce&&(p.scroller.scrollTop+=lt,le(Te))}),50)}}function pe(Te){a.state.selectingText=!1,ae=1/0,Te&&(ee(Te),p.input.focus()),Ar(p.wrapper.ownerDocument,"mousemove",be),Ar(p.wrapper.ownerDocument,"mouseup",Ne),g.history.lastSelOrigin=null}var be=Kr(a,function(Te){Te.buttons===0||!A(Te)?pe(Te):le(Te)}),Ne=Kr(a,pe);a.state.selectingText=Ne,_e(p.wrapper.ownerDocument,"mousemove",be),_e(p.wrapper.ownerDocument,"mouseup",Ne)}function AB(a,u){var f=u.anchor,c=u.head,p=Ae(a.doc,f.line);if(ie(f,c)==0&&f.sticky==c.sticky)return u;var g=xn(p);if(!g)return u;var E=vr(g,f.ch,f.sticky),N=g[E];if(N.from!=f.ch&&N.to!=f.ch)return u;var C=E+(N.from==f.ch==(N.level!=1)?0:1);if(C==0||C==g.length)return u;var I;if(c.line!=f.line)I=(c.line-f.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var U=vr(g,c.ch,c.sticky),K=U-E||(c.ch-f.ch)*(N.level==1?-1:1);U==C-1||U==C?I=K<0:I=K>0}var $=g[C+(I?-1:0)],X=I==($.level==1),ae=X?$.from:$.to,le=X?"after":"before";return f.ch==ae&&f.sticky==le?u:new Nt(new W(f.line,ae,le),c)}function KD(a,u,f,c){var p,g;if(u.touches)p=u.touches[0].clientX,g=u.touches[0].clientY;else try{p=u.clientX,g=u.clientY}catch($){return!1}if(p>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;c&&ee(u);var E=a.display,N=E.lineDiv.getBoundingClientRect();if(g>N.bottom||!on(a,f))return Y(u);g-=N.top-E.viewOffset;for(var C=0;C<a.display.gutterSpecs.length;++C){var I=E.gutters.childNodes[C];if(I&&I.getBoundingClientRect().right>=p){var U=wa(a.doc,g),K=a.display.gutterSpecs[C];return Ft(a,f,a,U,K.className,u),Y(u)}}}function R0(a,u){return KD(a,u,"gutterClick",!0)}function HD(a,u){lo(a.display,u)||RB(a,u)||nr(a,u,"contextmenu")||M||a.display.input.onContextMenu(u)}function RB(a,u){return on(a,"gutterContextMenu")?KD(a,u,"gutterContextMenu",!1):!1}function zD(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cf(a)}var pl={toString:function(){return"CodeMirror.Init"}},WD={},Mh={};function jB(a){var u=a.optionHandlers;function f(c,p,g,E){a.defaults[c]=p,g&&(u[c]=E?function(N,C,I){I!=pl&&g(N,C,I)}:g)}a.defineOption=f,a.Init=pl,f("value","",function(c,p){return c.setValue(p)},!0),f("mode",null,function(c,p){c.doc.modeOption=p,k0(c)},!0),f("indentUnit",2,k0,!0),f("indentWithTabs",!1),f("smartIndent",!0),f("tabSize",4,function(c){yf(c),cf(c),Wn(c)},!0),f("lineSeparator",null,function(c,p){if(c.doc.lineSep=p,!!p){var g=[],E=c.doc.first;c.doc.iter(function(C){for(var I=0;;){var U=C.text.indexOf(p,I);if(U==-1)break;I=U+p.length,g.push(W(E,U))}E++});for(var N=g.length-1;N>=0;N--)ll(c.doc,p,g[N],W(g[N].line,g[N].ch+p.length))}}),f("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(c,p,g){c.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),g!=pl&&c.refresh()}),f("specialCharPlaceholder",c2,function(c){return c.refresh()},!0),f("electricChars",!0),f("inputStyle",m?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),f("spellcheck",!1,function(c,p){return c.getInputField().spellcheck=p},!0),f("autocorrect",!1,function(c,p){return c.getInputField().autocorrect=p},!0),f("autocapitalize",!1,function(c,p){return c.getInputField().autocapitalize=p},!0),f("rtlMoveVisually",!L),f("wholeLineUpdateBefore",!0),f("theme","default",function(c){zD(c),mf(c)},!0),f("keyMap","default",function(c,p,g){var E=Ph(p),N=g!=pl&&Ph(g);N&&N.detach&&N.detach(c,E),E.attach&&E.attach(c,N||null)}),f("extraKeys",null),f("configureMouse",null),f("lineWrapping",!1,FB,!0),f("gutters",[],function(c,p){c.display.gutterSpecs=E0(p,c.options.lineNumbers),mf(c)},!0),f("fixedGutter",!0,function(c,p){c.display.gutters.style.left=p?c0(c.display)+"px":"0",c.refresh()},!0),f("coverGutterNextToScrollbar",!1,function(c){return al(c)},!0),f("scrollbarStyle","native",function(c){JN(c),al(c),c.display.scrollbars.setScrollTop(c.doc.scrollTop),c.display.scrollbars.setScrollLeft(c.doc.scrollLeft)},!0),f("lineNumbers",!1,function(c,p){c.display.gutterSpecs=E0(c.options.gutters,p),mf(c)},!0),f("firstLineNumber",1,mf,!0),f("lineNumberFormatter",function(c){return c},mf,!0),f("showCursorWhenSelecting",!1,ff,!0),f("resetSelectionOnContextMenu",!0),f("lineWiseCopyCut",!0),f("pasteLinesPerSelection",!0),f("selectionsMayTouch",!1),f("readOnly",!1,function(c,p){p=="nocursor"&&(nl(c),c.display.input.blur()),c.display.input.readOnlyChanged(p)}),f("screenReaderLabel",null,function(c,p){p=p===""?null:p,c.display.input.screenReaderLabelChanged(p)}),f("disableInput",!1,function(c,p){p||c.display.input.reset()},!0),f("dragDrop",!0,PB),f("allowDropFileTypes",null),f("cursorBlinkRate",530),f("cursorScrollMargin",0),f("cursorHeight",1,ff,!0),f("singleCursorHeightPerLine",!0,ff,!0),f("workTime",100),f("workDelay",100),f("flattenSpans",!0,yf,!0),f("addModeClass",!1,yf,!0),f("pollInterval",100),f("undoDepth",200,function(c,p){return c.doc.history.undoDepth=p}),f("historyEventDelay",1250),f("viewportMargin",10,function(c){return c.refresh()},!0),f("maxHighlightLength",1e4,yf,!0),f("moveInputWithCursor",!0,function(c,p){p||c.display.input.resetPosition()}),f("tabindex",null,function(c,p){return c.display.input.getField().tabIndex=p||""}),f("autofocus",null),f("direction","ltr",function(c,p){return c.doc.setDirection(p)},!0),f("phrases",null)}function PB(a,u,f){var c=f&&f!=pl;if(!u!=!c){var p=a.display.dragFunctions,g=u?_e:Ar;g(a.display.scroller,"dragstart",p.start),g(a.display.scroller,"dragenter",p.enter),g(a.display.scroller,"dragover",p.over),g(a.display.scroller,"dragleave",p.leave),g(a.display.scroller,"drop",p.drop)}}function FB(a){a.options.lineWrapping?(Le(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(z(a.display.wrapper,"CodeMirror-wrap"),e0(a)),f0(a),Wn(a),cf(a),setTimeout(function(){return al(a)},100)}function ir(a,u){var f=this;if(!(this instanceof ir))return new ir(a,u);this.options=u=u?Ie(u):{},Ie(WD,u,!1);var c=u.value;typeof c=="string"?c=new Yn(c,u.mode,null,u.lineSeparator,u.direction):u.mode&&(c.modeOption=u.mode),this.doc=c;var p=new ir.inputStyles[u.inputStyle](this),g=this.display=new J2(a,c,p,u);g.wrapper.CodeMirror=this,zD(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),JN(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 ce,keySeq:null,specialChars:null},u.autofocus&&!m&&g.input.focus(),s&&l<11&&setTimeout(function(){return f.display.input.reset(!0)},20),MB(this),vB(),Yu(this),this.curOp.forceUpdate=!0,oD(this,c),u.autofocus&&!m||this.hasFocus()?setTimeout(function(){f.hasFocus()&&!f.state.focused&&v0(f)},20):nl(this);for(var E in Mh)Mh.hasOwnProperty(E)&&Mh[E](this,u[E],pl);$N(this),u.finishInit&&u.finishInit(this);for(var N=0;N<j0.length;++N)j0[N](this);Ju(this),d&&u.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}ir.defaults=WD,ir.optionHandlers=Mh;function MB(a){var u=a.display;_e(u.scroller,"mousedown",Kr(a,QD)),s&&l<11?_e(u.scroller,"dblclick",Kr(a,function(C){if(!nr(a,C)){var I=Ku(a,C);if(!(!I||R0(a,C)||lo(a.display,C))){ee(C);var U=a.findWordAt(I);Lh(a.doc,U.anchor,U.head)}}})):_e(u.scroller,"dblclick",function(C){return nr(a,C)||ee(C)}),_e(u.scroller,"contextmenu",function(C){return HD(a,C)}),_e(u.input.getField(),"contextmenu",function(C){u.scroller.contains(C.target)||HD(a,C)});var f,c={end:0};function p(){u.activeTouch&&(f=setTimeout(function(){return u.activeTouch=null},1e3),c=u.activeTouch,c.end=+new Date)}function g(C){if(C.touches.length!=1)return!1;var I=C.touches[0];return I.radiusX<=1&&I.radiusY<=1}function E(C,I){if(I.left==null)return!0;var U=I.left-C.left,K=I.top-C.top;return U*U+K*K>20*20}_e(u.scroller,"touchstart",function(C){if(!nr(a,C)&&!g(C)&&!R0(a,C)){u.input.ensurePolled(),clearTimeout(f);var I=+new Date;u.activeTouch={start:I,moved:!1,prev:I-c.end<=300?c:null},C.touches.length==1&&(u.activeTouch.left=C.touches[0].pageX,u.activeTouch.top=C.touches[0].pageY)}}),_e(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),_e(u.scroller,"touchend",function(C){var I=u.activeTouch;if(I&&!lo(u,C)&&I.left!=null&&!I.moved&&new Date-I.start<300){var U=a.coordsChar(u.activeTouch,"page"),K;!I.prev||E(I,I.prev)?K=new Nt(U,U):!I.prev.prev||E(I,I.prev.prev)?K=a.findWordAt(U):K=new Nt(W(U.line,0),Ye(a.doc,W(U.line+1,0))),a.setSelection(K.anchor,K.head),a.focus(),ee(C)}p()}),_e(u.scroller,"touchcancel",p),_e(u.scroller,"scroll",function(){u.scroller.clientHeight&&(pf(a,u.scroller.scrollTop),zu(a,u.scroller.scrollLeft,!0),Ft(a,"scroll",a))}),_e(u.scroller,"mousewheel",function(C){return rD(a,C)}),_e(u.scroller,"DOMMouseScroll",function(C){return rD(a,C)}),_e(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(C){nr(a,C)||J(C)},over:function(C){nr(a,C)||(hB(a,C),J(C))},start:function(C){return pB(a,C)},drop:Kr(a,dB),leave:function(C){nr(a,C)||CD(a)}};var N=u.input.getField();_e(N,"keyup",function(C){return UD.call(a,C)}),_e(N,"keydown",Kr(a,VD)),_e(N,"keypress",Kr(a,GD)),_e(N,"focus",function(C){return v0(a,C)}),_e(N,"blur",function(C){return nl(a,C)})}var j0=[];ir.defineInitHook=function(a){return j0.push(a)};function Lf(a,u,f,c){var p=a.doc,g;f==null&&(f="add"),f=="smart"&&(p.mode.indent?g=af(a,u).state:f="prev");var E=a.options.tabSize,N=Ae(p,u),C=te(N.text,null,E);N.stateAfter&&(N.stateAfter=null);var I=N.text.match(/^\s*/)[0],U;if(!c&&!/\S/.test(N.text))U=0,f="not";else if(f=="smart"&&(U=p.mode.indent(g,N.text.slice(I.length),N.text),U==Me||U>150)){if(!c)return;f="prev"}f=="prev"?u>p.first?U=te(Ae(p,u-1).text,null,E):U=0:f=="add"?U=C+a.options.indentUnit:f=="subtract"?U=C-a.options.indentUnit:typeof f=="number"&&(U=C+f),U=Math.max(0,U);var K="",$=0;if(a.options.indentWithTabs)for(var X=Math.floor(U/E);X;--X)$+=E,K+=" ";if($<U&&(K+=fe(U-$)),K!=I)return ll(p,K,W(u,0),W(u,I.length),"+input"),N.stateAfter=null,!0;for(var ae=0;ae<p.sel.ranges.length;ae++){var le=p.sel.ranges[ae];if(le.head.line==u&&le.head.ch<I.length){var pe=W(u,I.length);D0(p,ae,new Nt(pe,pe));break}}}var pa=null;function qh(a){pa=a}function P0(a,u,f,c,p){var g=a.doc;a.display.shift=!1,c||(c=g.sel);var E=+new Date-200,N=p=="paste"||a.state.pasteIncoming>E,C=vn(u),I=null;if(N&&c.ranges.length>1)if(pa&&pa.text.join(`
|
|
`)==u){if(c.ranges.length%pa.text.length==0){I=[];for(var U=0;U<pa.text.length;U++)I.push(g.splitLines(pa.text[U]))}}else C.length==c.ranges.length&&a.options.pasteLinesPerSelection&&(I=Ue(C,function(be){return[be]}));for(var K=a.curOp.updateInput,$=c.ranges.length-1;$>=0;$--){var X=c.ranges[$],ae=X.from(),le=X.to();X.empty()&&(f&&f>0?ae=W(ae.line,ae.ch-f):a.state.overwrite&&!N?le=W(le.line,Math.min(Ae(g,le.line).text.length,le.ch+se(C).length)):N&&pa&&pa.lineWise&&pa.text.join(`
|
|
`)==C.join(`
|
|
`)&&(ae=le=W(ae.line,0)));var pe={from:ae,to:le,text:I?I[$%I.length]:C,origin:p||(N?"paste":a.state.cutIncoming>E?"cut":"+input")};sl(a.doc,pe),Br(a,"inputRead",a,pe)}u&&!N&&JD(a,u),il(a),a.curOp.updateInput<2&&(a.curOp.updateInput=K),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function YD(a,u){var f=a.clipboardData&&a.clipboardData.getData("Text");if(f)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&u.hasFocus()&&si(u,function(){return P0(u,f,0,null,"paste")}),!0}function JD(a,u){if(!(!a.options.electricChars||!a.options.smartIndent))for(var f=a.doc.sel,c=f.ranges.length-1;c>=0;c--){var p=f.ranges[c];if(!(p.head.ch>100||c&&f.ranges[c-1].head.line==p.head.line)){var g=a.getModeAt(p.head),E=!1;if(g.electricChars){for(var N=0;N<g.electricChars.length;N++)if(u.indexOf(g.electricChars.charAt(N))>-1){E=Lf(a,p.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ae(a.doc,p.head.line).text.slice(0,p.head.ch))&&(E=Lf(a,p.head.line,"smart"));E&&Br(a,"electricInput",a,p.head.line)}}}function XD(a){for(var u=[],f=[],c=0;c<a.doc.sel.ranges.length;c++){var p=a.doc.sel.ranges[c].head.line,g={anchor:W(p,0),head:W(p+1,0)};f.push(g),u.push(a.getRange(g.anchor,g.head))}return{text:u,ranges:f}}function F0(a,u,f,c){a.setAttribute("autocorrect",f?"on":"off"),a.setAttribute("autocapitalize",c?"on":"off"),a.setAttribute("spellcheck",!!u)}function ZD(){var a=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),u=P("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?a.style.width="1000px":a.setAttribute("wrap","off"),T&&(a.style.border="1px solid black"),u}function qB(a){var u=a.optionHandlers,f=a.helpers={};a.prototype={constructor:a,focus:function(){At(this).focus(),this.display.input.focus()},setOption:function(c,p){var g=this.options,E=g[c];g[c]==p&&c!="mode"||(g[c]=p,u.hasOwnProperty(c)&&Kr(this,u[c])(this,p,E),Ft(this,"optionChange",this,c))},getOption:function(c){return this.options[c]},getDoc:function(){return this.doc},addKeyMap:function(c,p){this.state.keyMaps[p?"push":"unshift"](Ph(c))},removeKeyMap:function(c){for(var p=this.state.keyMaps,g=0;g<p.length;++g)if(p[g]==c||p[g].name==c)return p.splice(g,1),!0},addOverlay:Ln(function(c,p){var g=c.token?c:a.getMode(this.options,c);if(g.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:g,modeSpec:c,opaque:p&&p.opaque,priority:p&&p.priority||0},function(E){return E.priority}),this.state.modeGen++,Wn(this)}),removeOverlay:Ln(function(c){for(var p=this.state.overlays,g=0;g<p.length;++g){var E=p[g].modeSpec;if(E==c||typeof c=="string"&&E.name==c){p.splice(g,1),this.state.modeGen++,Wn(this);return}}}),indentLine:Ln(function(c,p,g){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),j(this.doc,c)&&Lf(this,c,p,g)}),indentSelection:Ln(function(c){for(var p=this.doc.sel.ranges,g=-1,E=0;E<p.length;E++){var N=p[E];if(N.empty())N.head.line>g&&(Lf(this,N.head.line,c,!0),g=N.head.line,E==this.doc.sel.primIndex&&il(this));else{var C=N.from(),I=N.to(),U=Math.max(g,C.line);g=Math.min(this.lastLine(),I.line-(I.ch?0:1))+1;for(var K=U;K<g;++K)Lf(this,K,c);var $=this.doc.sel.ranges;C.ch==0&&p.length==$.length&&$[E].from().ch>0&&D0(this.doc,E,new Nt(C,$[E].to()),Qe)}}}),getTokenAt:function(c,p){return sN(this,c,p)},getLineTokens:function(c,p){return sN(this,W(c),p,!0)},getTokenTypeAt:function(c){c=Ye(this.doc,c);var p=aN(this,Ae(this.doc,c.line)),g=0,E=(p.length-1)/2,N=c.ch,C;if(N==0)C=p[2];else for(;;){var I=g+E>>1;if((I?p[I*2-1]:0)>=N)E=I;else if(p[I*2+1]<N)g=I+1;else{C=p[I*2+2];break}}var U=C?C.indexOf("overlay "):-1;return U<0?C:U==0?null:C.slice(0,U-1)},getModeAt:function(c){var p=this.doc.mode;return p.innerMode?a.innerMode(p,this.getTokenAt(c).state).mode:p},getHelper:function(c,p){return this.getHelpers(c,p)[0]},getHelpers:function(c,p){var g=[];if(!f.hasOwnProperty(p))return g;var E=f[p],N=this.getModeAt(c);if(typeof N[p]=="string")E[N[p]]&&g.push(E[N[p]]);else if(N[p])for(var C=0;C<N[p].length;C++){var I=E[N[p][C]];I&&g.push(I)}else N.helperType&&E[N.helperType]?g.push(E[N.helperType]):E[N.name]&&g.push(E[N.name]);for(var U=0;U<E._global.length;U++){var K=E._global[U];K.pred(N,this)&&we(g,K.val)==-1&&g.push(K.val)}return g},getStateAfter:function(c,p){var g=this.doc;return c=Si(g,c==null?g.first+g.size-1:c),af(this,c+1,p).state},cursorCoords:function(c,p){var g,E=this.doc.sel.primary();return c==null?g=E.head:typeof c=="object"?g=Ye(this.doc,c):g=c?E.from():E.to(),fa(this,g,p||"page")},charCoords:function(c,p){return _h(this,Ye(this.doc,c),p||"page")},coordsChar:function(c,p){return c=FN(this,c,p||"page"),u0(this,c.left,c.top)},lineAtHeight:function(c,p){return c=FN(this,{top:c,left:0},p||"page").top,wa(this.doc,c+this.display.viewOffset)},heightAtLine:function(c,p,g){var E=!1,N;if(typeof c=="number"){var C=this.doc.first+this.doc.size-1;c<this.doc.first?c=this.doc.first:c>C&&(c=C,E=!0),N=Ae(this.doc,c)}else N=c;return Th(this,N,{top:0,left:0},p||"page",g||E).top+(E?this.doc.height-so(N):0)},defaultTextHeight:function(){return tl(this.display)},defaultCharWidth:function(){return rl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(c,p,g,E,N){var C=this.display;c=fa(this,Ye(this.doc,c));var I=c.bottom,U=c.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),C.sizer.appendChild(p),E=="over")I=c.top;else if(E=="above"||E=="near"){var K=Math.max(C.wrapper.clientHeight,this.doc.height),$=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(E=="above"||c.bottom+p.offsetHeight>K)&&c.top>p.offsetHeight?I=c.top-p.offsetHeight:c.bottom+p.offsetHeight<=K&&(I=c.bottom),U+p.offsetWidth>$&&(U=$-p.offsetWidth)}p.style.top=I+"px",p.style.left=p.style.right="",N=="right"?(U=C.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(N=="left"?U=0:N=="middle"&&(U=(C.sizer.clientWidth-p.offsetWidth)/2),p.style.left=U+"px"),g&&P2(this,{left:U,top:I,right:U+p.offsetWidth,bottom:I+p.offsetHeight})},triggerOnKeyDown:Ln(VD),triggerOnKeyPress:Ln(GD),triggerOnKeyUp:UD,triggerOnMouseDown:Ln(QD),execCommand:function(c){if(Nf.hasOwnProperty(c))return Nf[c].call(null,this)},triggerElectric:Ln(function(c){JD(this,c)}),findPosH:function(c,p,g,E){var N=1;p<0&&(N=-1,p=-p);for(var C=Ye(this.doc,c),I=0;I<p&&(C=M0(this.doc,C,N,g,E),!C.hitSide);++I);return C},moveH:Ln(function(c,p){var g=this;this.extendSelectionsBy(function(E){return g.display.shift||g.doc.extend||E.empty()?M0(g.doc,E.head,c,p,g.options.rtlMoveVisually):c<0?E.from():E.to()},mt)}),deleteH:Ln(function(c,p){var g=this.doc.sel,E=this.doc;g.somethingSelected()?E.replaceSelection("",null,"+delete"):dl(this,function(N){var C=M0(E,N.head,c,p,!1);return c<0?{from:C,to:N.head}:{from:N.head,to:C}})}),findPosV:function(c,p,g,E){var N=1,C=E;p<0&&(N=-1,p=-p);for(var I=Ye(this.doc,c),U=0;U<p;++U){var K=fa(this,I,"div");if(C==null?C=K.left:K.left=C,I=$D(this,K,N,g),I.hitSide)break}return I},moveV:Ln(function(c,p){var g=this,E=this.doc,N=[],C=!this.display.shift&&!E.extend&&E.sel.somethingSelected();if(E.extendSelectionsBy(function(U){if(C)return c<0?U.from():U.to();var K=fa(g,U.head,"div");U.goalColumn!=null&&(K.left=U.goalColumn),N.push(K.left);var $=$D(g,K,c,p);return p=="page"&&U==E.sel.primary()&&m0(g,_h(g,$,"div").top-K.top),$},mt),N.length)for(var I=0;I<E.sel.ranges.length;I++)E.sel.ranges[I].goalColumn=N[I]}),findWordAt:function(c){var p=this.doc,g=Ae(p,c.line).text,E=c.ch,N=c.ch;if(g){var C=this.getHelper(c,"wordChars");(c.sticky=="before"||N==g.length)&&E?--E:++N;for(var I=g.charAt(E),U=dn(I,C)?function(K){return dn(K,C)}:/\s/.test(I)?function(K){return/\s/.test(K)}:function(K){return!/\s/.test(K)&&!dn(K)};E>0&&U(g.charAt(E-1));)--E;for(;N<g.length&&U(g.charAt(N));)++N}return new Nt(W(c.line,E),W(c.line,N))},toggleOverwrite:function(c){c!=null&&c==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),Ft(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe(Ve(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ln(function(c,p){df(this,c,p)}),getScrollInfo:function(){var c=this.display.scroller;return{left:c.scrollLeft,top:c.scrollTop,height:c.scrollHeight-Da(this)-this.display.barHeight,width:c.scrollWidth-Da(this)-this.display.barWidth,clientHeight:n0(this),clientWidth:Qu(this)}},scrollIntoView:Ln(function(c,p){c==null?(c={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof c=="number"?c={from:W(c,0),to:null}:c.from==null&&(c={from:c,to:null}),c.to||(c.to=c.from),c.margin=p||0,c.from.line!=null?F2(this,c):HN(this,c.from,c.to,c.margin)}),setSize:Ln(function(c,p){var g=this,E=function(C){return typeof C=="number"||/^\d+$/.test(String(C))?C+"px":C};c!=null&&(this.display.wrapper.style.width=E(c)),p!=null&&(this.display.wrapper.style.height=E(p)),this.options.lineWrapping&&RN(this);var N=this.display.viewFrom;this.doc.iter(N,this.display.viewTo,function(C){if(C.widgets){for(var I=0;I<C.widgets.length;I++)if(C.widgets[I].noHScroll){Mo(g,N,"widget");break}}++N}),this.curOp.forceUpdate=!0,Ft(this,"refresh",this)}),operation:function(c){return si(this,c)},startOperation:function(){return Yu(this)},endOperation:function(){return Ju(this)},refresh:Ln(function(){var c=this.display.cachedTextHeight;Wn(this),this.curOp.forceUpdate=!0,cf(this),df(this,this.doc.scrollLeft,this.doc.scrollTop),T0(this.display),(c==null||Math.abs(c-tl(this.display))>.5||this.options.lineWrapping)&&f0(this),Ft(this,"refresh",this)}),swapDoc:Ln(function(c){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),oD(this,c),cf(this),this.display.input.reset(),df(this,c.scrollLeft,c.scrollTop),this.curOp.forceScroll=!0,Br(this,"swapDoc",this,p),p}),phrase:function(c){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,c)?p[c]:c},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}},un(a),a.registerHelper=function(c,p,g){f.hasOwnProperty(c)||(f[c]=a[c]={_global:[]}),f[c][p]=g},a.registerGlobalHelper=function(c,p,g,E){a.registerHelper(c,p,E),f[c]._global.push({pred:g,val:E})}}function M0(a,u,f,c,p){var g=u,E=f,N=Ae(a,u.line),C=p&&a.direction=="rtl"?-f:f;function I(){var Ne=u.line+C;return Ne<a.first||Ne>=a.first+a.size?!1:(u=new W(Ne,u.ch,u.sticky),N=Ae(a,Ne))}function U(Ne){var Te;if(c=="codepoint"){var Ce=N.text.charCodeAt(u.ch+(f>0?0:-1));if(isNaN(Ce))Te=null;else{var Ge=f>0?Ce>=55296&&Ce<56320:Ce>=56320&&Ce<57343;Te=new W(u.line,Math.max(0,Math.min(N.text.length,u.ch+f*(Ge?2:1))),-f)}}else p?Te=TB(a.cm,N,u,f):Te=C0(N,u,f);if(Te==null)if(!Ne&&I())u=L0(p,a.cm,N,u.line,C);else return!1;else u=Te;return!0}if(c=="char"||c=="codepoint")U();else if(c=="column")U(!0);else if(c=="word"||c=="group")for(var K=null,$=c=="group",X=a.cm&&a.cm.getHelper(u,"wordChars"),ae=!0;!(f<0&&!U(!ae));ae=!1){var le=N.text.charAt(u.ch)||`
|
|
`,pe=dn(le,X)?"w":$&&le==`
|
|
`?"n":!$||/\s/.test(le)?null:"p";if($&&!ae&&!pe&&(pe="s"),K&&K!=pe){f<0&&(f=1,U(),u.sticky="after");break}if(pe&&(K=pe),f>0&&!U(!ae))break}var be=Ah(a,u,g,E,!0);return We(g,be)&&(be.hitSide=!0),be}function $D(a,u,f,c){var p=a.doc,g=u.left,E;if(c=="page"){var N=Math.min(a.display.wrapper.clientHeight,At(a).innerHeight||p(a).documentElement.clientHeight),C=Math.max(N-.5*tl(a.display),3);E=(f>0?u.bottom:u.top)+f*C}else c=="line"&&(E=f>0?u.bottom+3:u.top-3);for(var I;I=u0(a,g,E),!!I.outside;){if(f<0?E<=0:E>=p.height){I.hitSide=!0;break}E+=f*5}return I}var Mt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mt.prototype.init=function(a){var u=this,f=this,c=f.cm,p=f.div=a.lineDiv;p.contentEditable=!0,F0(p,c.options.spellcheck,c.options.autocorrect,c.options.autocapitalize);function g(N){for(var C=N.target;C;C=C.parentNode){if(C==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}_e(p,"paste",function(N){!g(N)||nr(c,N)||YD(N,c)||l<=11&&setTimeout(Kr(c,function(){return u.updateFromDOM()}),20)}),_e(p,"compositionstart",function(N){u.composing={data:N.data,done:!1}}),_e(p,"compositionupdate",function(N){u.composing||(u.composing={data:N.data,done:!1})}),_e(p,"compositionend",function(N){u.composing&&(N.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),_e(p,"touchstart",function(){return f.forceCompositionEnd()}),_e(p,"input",function(){u.composing||u.readFromDOMSoon()});function E(N){if(!(!g(N)||nr(c,N))){if(c.somethingSelected())qh({lineWise:!1,text:c.getSelections()}),N.type=="cut"&&c.replaceSelection("",null,"cut");else if(c.options.lineWiseCopyCut){var C=XD(c);qh({lineWise:!0,text:C.text}),N.type=="cut"&&c.operation(function(){c.setSelections(C.ranges,0,Qe),c.replaceSelection("",null,"cut")})}else return;if(N.clipboardData){N.clipboardData.clearData();var I=pa.text.join(`
|
|
`);if(N.clipboardData.setData("Text",I),N.clipboardData.getData("Text")==I){N.preventDefault();return}}var U=ZD(),K=U.firstChild;F0(K),c.display.lineSpace.insertBefore(U,c.display.lineSpace.firstChild),K.value=pa.text.join(`
|
|
`);var $=Fe(p.ownerDocument);Xe(K),setTimeout(function(){c.display.lineSpace.removeChild(U),$.focus(),$==p&&f.showPrimarySelection()},50)}}_e(p,"copy",E),_e(p,"cut",E)},Mt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Mt.prototype.prepareSelection=function(){var a=QN(this.cm,!1);return a.focus=Fe(this.div.ownerDocument)==this.div,a},Mt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Mt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mt.prototype.showPrimarySelection=function(){var a=this.getSelection(),u=this.cm,f=u.doc.sel.primary(),c=f.from(),p=f.to();if(u.display.viewTo==u.display.viewFrom||c.line>=u.display.viewTo||p.line<u.display.viewFrom){a.removeAllRanges();return}var g=Vh(u,a.anchorNode,a.anchorOffset),E=Vh(u,a.focusNode,a.focusOffset);if(!(g&&!g.bad&&E&&!E.bad&&ie(Pr(g,E),c)==0&&ie(_t(g,E),p)==0)){var N=u.display.view,C=c.line>=u.display.viewFrom&&ex(u,c)||{node:N[0].measure.map[2],offset:0},I=p.line<u.display.viewTo&&ex(u,p);if(!I){var U=N[N.length-1].measure,K=U.maps?U.maps[U.maps.length-1]:U.map;I={node:K[K.length-1],offset:K[K.length-2]-K[K.length-3]}}if(!C||!I){a.removeAllRanges();return}var $=a.rangeCount&&a.getRangeAt(0),X;try{X=xe(C.node,C.offset,I.offset,I.node)}catch(ae){}X&&(!r&&u.state.focused?(a.collapse(C.node,C.offset),X.collapsed||(a.removeAllRanges(),a.addRange(X))):(a.removeAllRanges(),a.addRange(X)),$&&a.anchorNode==null?a.addRange($):r&&this.startGracePeriod()),this.rememberSelection()}},Mt.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Mt.prototype.showMultipleSelections=function(a){Q(this.cm.display.cursorDiv,a.cursors),Q(this.cm.display.selectionDiv,a.selection)},Mt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Mt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var u=a.getRangeAt(0).commonAncestorContainer;return ge(this.div,u)},Mt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mt.prototype.blur=function(){this.div.blur()},Mt.prototype.getField=function(){return this.div},Mt.prototype.supportsTouch=function(){return!0},Mt.prototype.receivedFocus=function(){var a=this,u=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):si(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function f(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,f))}this.polling.set(this.cm.options.pollInterval,f)},Mt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Mt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),u=this.cm;if(S&&v&&this.cm.display.gutterSpecs.length&&VB(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var f=Vh(u,a.anchorNode,a.anchorOffset),c=Vh(u,a.focusNode,a.focusOffset);f&&c&&si(u,function(){gn(u.doc,Vo(f,c),Qe),(f.bad||c.bad)&&(u.curOp.selectionChanged=!0)})}}},Mt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,u=a.display,f=a.doc.sel.primary(),c=f.from(),p=f.to();if(c.ch==0&&c.line>a.firstLine()&&(c=W(c.line-1,Ae(a.doc,c.line-1).length)),p.ch==Ae(a.doc,p.line).text.length&&p.line<a.lastLine()&&(p=W(p.line+1,0)),c.line<u.viewFrom||p.line>u.viewTo-1)return!1;var g,E,N;c.line==u.viewFrom||(g=Hu(a,c.line))==0?(E=wt(u.view[0].line),N=u.view[0].node):(E=wt(u.view[g].line),N=u.view[g-1].node.nextSibling);var C=Hu(a,p.line),I,U;if(C==u.view.length-1?(I=u.viewTo-1,U=u.lineDiv.lastChild):(I=wt(u.view[C+1].line)-1,U=u.view[C+1].node.previousSibling),!N)return!1;for(var K=a.doc.splitLines(UB(a,N,U,E,I)),$=oo(a.doc,W(E,0),W(I,Ae(a.doc,I).text.length));K.length>1&&$.length>1;)if(se(K)==se($))K.pop(),$.pop(),I--;else if(K[0]==$[0])K.shift(),$.shift(),E++;else break;for(var X=0,ae=0,le=K[0],pe=$[0],be=Math.min(le.length,pe.length);X<be&&le.charCodeAt(X)==pe.charCodeAt(X);)++X;for(var Ne=se(K),Te=se($),Ce=Math.min(Ne.length-(K.length==1?X:0),Te.length-($.length==1?X:0));ae<Ce&&Ne.charCodeAt(Ne.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)++ae;if(K.length==1&&$.length==1&&E==c.line)for(;X&&X>c.ch&&Ne.charCodeAt(Ne.length-ae-1)==Te.charCodeAt(Te.length-ae-1);)X--,ae++;K[K.length-1]=Ne.slice(0,Ne.length-ae).replace(/^\u200b+/,""),K[0]=K[0].slice(X).replace(/\u200b+$/,"");var Ge=W(E,X),qe=W(I,$.length?se($).length-ae:0);if(K.length>1||K[0]||ie(Ge,qe))return ll(a.doc,K,Ge,qe,"+input"),!0},Mt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mt.prototype.reset=function(){this.forceCompositionEnd()},Mt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Mt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&si(this.cm,function(){return Wn(a.cm)})},Mt.prototype.setUneditable=function(a){a.contentEditable="false"},Mt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Kr(this.cm,P0)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Mt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Mt.prototype.onContextMenu=function(){},Mt.prototype.resetPosition=function(){},Mt.prototype.needsContentAttribute=!0;function ex(a,u){var f=i0(a,u.line);if(!f||f.hidden)return null;var c=Ae(a.doc,u.line),p=xN(f,c,u.line),g=xn(c,a.doc.direction),E="left";if(g){var N=vr(g,u.ch);E=N%2?"right":"left"}var C=IN(p.map,u.ch,E);return C.offset=C.collapse=="right"?C.end:C.start,C}function VB(a){for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function hl(a,u){return u&&(a.bad=!0),a}function UB(a,u,f,c,p){var g="",E=!1,N=a.doc.lineSeparator(),C=!1;function I(X){return function(ae){return ae.id==X}}function U(){E&&(g+=N,C&&(g+=N),E=C=!1)}function K(X){X&&(U(),g+=X)}function $(X){if(X.nodeType==1){var ae=X.getAttribute("cm-text");if(ae){K(ae);return}var le=X.getAttribute("cm-marker"),pe;if(le){var be=a.findMarks(W(c,0),W(p+1,0),I(+le));be.length&&(pe=be[0].find(0))&&K(oo(a.doc,pe.from,pe.to).join(N));return}if(X.getAttribute("contenteditable")=="false")return;var Ne=/^(pre|div|p|li|table|br)$/i.test(X.nodeName);if(!/^br$/i.test(X.nodeName)&&X.textContent.length==0)return;Ne&&U();for(var Te=0;Te<X.childNodes.length;Te++)$(X.childNodes[Te]);/^(pre|p)$/i.test(X.nodeName)&&(C=!0),Ne&&(E=!0)}else X.nodeType==3&&K(X.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;$(u),u!=f;)u=u.nextSibling,C=!1;return g}function Vh(a,u,f){var c;if(u==a.display.lineDiv){if(c=a.display.lineDiv.childNodes[f],!c)return hl(a.clipPos(W(a.display.viewTo-1)),!0);u=null,f=0}else for(c=u;;c=c.parentNode){if(!c||c==a.display.lineDiv)return null;if(c.parentNode&&c.parentNode==a.display.lineDiv)break}for(var p=0;p<a.display.view.length;p++){var g=a.display.view[p];if(g.node==c)return GB(g,u,f)}}function GB(a,u,f){var c=a.text.firstChild,p=!1;if(!u||!ge(c,u))return hl(W(wt(a.line),0),!0);if(u==c&&(p=!0,u=c.childNodes[f],f=0,!u)){var g=a.rest?se(a.rest):a.line;return hl(W(wt(g),g.text.length),p)}var E=u.nodeType==3?u:null,N=u;for(!E&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(E=u.firstChild,f&&(f=E.nodeValue.length));N.parentNode!=c;)N=N.parentNode;var C=a.measure,I=C.maps;function U(pe,be,Ne){for(var Te=-1;Te<(I?I.length:0);Te++)for(var Ce=Te<0?C.map:I[Te],Ge=0;Ge<Ce.length;Ge+=3){var qe=Ce[Ge+2];if(qe==pe||qe==be){var lt=wt(Te<0?a.line:a.rest[Te]),Ht=Ce[Ge]+Ne;return(Ne<0||qe!=pe)&&(Ht=Ce[Ge+(Ne?1:0)]),W(lt,Ht)}}}var K=U(E,N,f);if(K)return hl(K,p);for(var $=N.nextSibling,X=E?E.nodeValue.length-f:0;$;$=$.nextSibling){if(K=U($,$.firstChild,0),K)return hl(W(K.line,K.ch-X),p);X+=$.textContent.length}for(var ae=N.previousSibling,le=f;ae;ae=ae.previousSibling){if(K=U(ae,ae.firstChild,-1),K)return hl(W(K.line,K.ch+le),p);le+=ae.textContent.length}}var Tr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};Tr.prototype.init=function(a){var u=this,f=this,c=this.cm;this.createField(a);var p=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),T&&(p.style.width="0px"),_e(p,"input",function(){s&&l>=9&&u.hasSelection&&(u.hasSelection=null),f.poll()}),_e(p,"paste",function(E){nr(c,E)||YD(E,c)||(c.state.pasteIncoming=+new Date,f.fastPoll())});function g(E){if(!nr(c,E)){if(c.somethingSelected())qh({lineWise:!1,text:c.getSelections()});else if(c.options.lineWiseCopyCut){var N=XD(c);qh({lineWise:!0,text:N.text}),E.type=="cut"?c.setSelections(N.ranges,null,Qe):(f.prevInput="",p.value=N.text.join(`
|
|
`),Xe(p))}else return;E.type=="cut"&&(c.state.cutIncoming=+new Date)}}_e(p,"cut",g),_e(p,"copy",g),_e(a.scroller,"paste",function(E){if(!(lo(a,E)||nr(c,E))){if(!p.dispatchEvent){c.state.pasteIncoming=+new Date,f.focus();return}var N=new Event("paste");N.clipboardData=E.clipboardData,p.dispatchEvent(N)}}),_e(a.lineSpace,"selectstart",function(E){lo(a,E)||ee(E)}),_e(p,"compositionstart",function(){var E=c.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:E,range:c.markText(E,c.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(p,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},Tr.prototype.createField=function(a){this.wrapper=ZD(),this.textarea=this.wrapper.firstChild;var u=this.cm.options;F0(this.textarea,u.spellcheck,u.autocorrect,u.autocapitalize)},Tr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var a=this.cm,u=a.display,f=a.doc,c=QN(a);if(a.options.moveInputWithCursor){var p=fa(a,f.sel.primary().head,"div"),g=u.wrapper.getBoundingClientRect(),E=u.lineDiv.getBoundingClientRect();c.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,p.top+E.top-g.top)),c.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,p.left+E.left-g.left))}return c},Tr.prototype.showSelection=function(a){var u=this.cm,f=u.display;Q(f.cursorDiv,a.cursors),Q(f.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Tr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing&&a)){var u=this.cm;if(this.resetting=!0,u.somethingSelected()){this.prevInput="";var f=u.getSelection();this.textarea.value=f,u.state.focused&&Xe(this.textarea),s&&l>=9&&(this.hasSelection=f)}else a||(this.prevInput=this.textarea.value="",s&&l>=9&&(this.hasSelection=null));this.resetting=!1}},Tr.prototype.getField=function(){return this.textarea},Tr.prototype.supportsTouch=function(){return!1},Tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!m||Fe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(a){}},Tr.prototype.blur=function(){this.textarea.blur()},Tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tr.prototype.receivedFocus=function(){this.slowPoll()},Tr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Tr.prototype.fastPoll=function(){var a=!1,u=this;u.pollingFast=!0;function f(){var c=u.poll();!c&&!a?(a=!0,u.polling.set(60,f)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,f)},Tr.prototype.poll=function(){var a=this,u=this.cm,f=this.textarea,c=this.prevInput;if(this.contextMenuPending||this.resetting||!u.state.focused||Rr(f)&&!c&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var p=f.value;if(p==c&&!u.somethingSelected())return!1;if(s&&l>=9&&this.hasSelection===p||w&&/[\uf700-\uf7ff]/.test(p))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var g=p.charCodeAt(0);if(g==8203&&!c&&(c="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,N=Math.min(c.length,p.length);E<N&&c.charCodeAt(E)==p.charCodeAt(E);)++E;return si(u,function(){P0(u,p.slice(E),c.length-E,null,a.composing?"*compose":null),p.length>1e3||p.indexOf(`
|
|
`)>-1?f.value=a.prevInput="":a.prevInput=p,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tr.prototype.onKeyPress=function(){s&&l>=9&&(this.hasSelection=null),this.fastPoll()},Tr.prototype.onContextMenu=function(a){var u=this,f=u.cm,c=f.display,p=u.textarea;u.contextMenuPending&&u.contextMenuPending();var g=Ku(f,a),E=c.scroller.scrollTop;if(!g||b)return;var N=f.options.resetSelectionOnContextMenu;N&&f.doc.sel.contains(g)==-1&&Kr(f,gn)(f.doc,Vo(g),Qe);var C=p.style.cssText,I=u.wrapper.style.cssText,U=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(a.clientY-U.top-5)+"px; left: "+(a.clientX-U.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 K;d&&(K=p.ownerDocument.defaultView.scrollY),c.input.focus(),d&&p.ownerDocument.defaultView.scrollTo(null,K),c.input.reset(),f.somethingSelected()||(p.value=u.prevInput=" "),u.contextMenuPending=X,c.selForContextMenu=f.doc.sel,clearTimeout(c.detectingSelectAll);function $(){if(p.selectionStart!=null){var le=f.somethingSelected(),pe="\u200B"+(le?p.value:"");p.value="\u21DA",p.value=pe,u.prevInput=le?"":"\u200B",p.selectionStart=1,p.selectionEnd=pe.length,c.selForContextMenu=f.doc.sel}}function X(){if(u.contextMenuPending==X&&(u.contextMenuPending=!1,u.wrapper.style.cssText=I,p.style.cssText=C,s&&l<9&&c.scrollbars.setScrollTop(c.scroller.scrollTop=E),p.selectionStart!=null)){(!s||s&&l<9)&&$();var le=0,pe=function(){c.selForContextMenu==f.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&u.prevInput=="\u200B"?Kr(f,bD)(f):le++<10?c.detectingSelectAll=setTimeout(pe,500):(c.selForContextMenu=null,c.input.reset())};c.detectingSelectAll=setTimeout(pe,200)}}if(s&&l>=9&&$(),M){J(a);var ae=function(){Ar(window,"mouseup",ae),setTimeout(X,20)};_e(window,"mouseup",ae)}else setTimeout(X,50)},Tr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function QB(a,u){if(u=u?Ie(u):{},u.value=a.value,!u.tabindex&&a.tabIndex&&(u.tabindex=a.tabIndex),!u.placeholder&&a.placeholder&&(u.placeholder=a.placeholder),u.autofocus==null){var f=Fe(a.ownerDocument);u.autofocus=f==a||a.getAttribute("autofocus")!=null&&f==document.body}function c(){a.value=N.getValue()}var p;if(a.form&&(_e(a.form,"submit",c),!u.leaveSubmitMethodAlone)){var g=a.form;p=g.submit;try{var E=g.submit=function(){c(),g.submit=p,g.submit(),g.submit=E}}catch(C){}}u.finishInit=function(C){C.save=c,C.getTextArea=function(){return a},C.toTextArea=function(){C.toTextArea=isNaN,c(),a.parentNode.removeChild(C.getWrapperElement()),a.style.display="",a.form&&(Ar(a.form,"submit",c),!u.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=p))}},a.style.display="none";var N=ir(function(C){return a.parentNode.insertBefore(C,a.nextSibling)},u);return N}function BB(a){a.off=Ar,a.on=_e,a.wheelEventPixels=X2,a.Doc=Yn,a.splitLines=vn,a.countColumn=te,a.findColumn=oe,a.isWordChar=Ei,a.Pass=Me,a.signal=Ft,a.Line=Zs,a.changeEnd=Uo,a.scrollbarModel=YN,a.Pos=W,a.cmpPos=ie,a.modes=Cn,a.mimeModes=la,a.resolveMode=ui,a.getMode=io,a.modeExtensions=jo,a.extendMode=fh,a.copyState=ao,a.startState=nf,a.innerMode=Po,a.commands=Nf,a.keyMap=fo,a.keyName=jD,a.isModifierKey=AD,a.lookupKey=fl,a.normalizeKeyMap=bB,a.StringStream=gr,a.SharedTextMarker=kf,a.TextMarker=Qo,a.LineWidget=Sf,a.e_preventDefault=ee,a.e_stopPropagation=F,a.e_stop=J,a.addClass=Le,a.contains=ge,a.rmClass=z,a.keyNames=Bo}jB(ir),qB(ir);var KB="iter insert remove copy getEditor constructor".split(" ");for(var Uh in Yn.prototype)Yn.prototype.hasOwnProperty(Uh)&&we(KB,Uh)<0&&(ir.prototype[Uh]=function(a){return function(){return a.apply(this.doc,arguments)}}(Yn.prototype[Uh]));return un(Yn),ir.inputStyles={textarea:Tr,contenteditable:Mt},ir.defineMode=function(a){!ir.defaults.mode&&a!="null"&&(ir.defaults.mode=a),ch.apply(this,arguments)},ir.defineMIME=Js,ir.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ir.defineMIME("text/plain","null"),ir.defineExtension=function(a,u){ir.prototype[a]=u},ir.defineDocExtension=function(a,u){Yn.prototype[a]=u},ir.fromTextArea=QB,BB(ir),ir.version="5.65.14",ir})});var jO=G((kV,OV)=>{(function(e){typeof kV=="object"&&typeof OV=="object"?e(Wt()):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(k,T,S){if(!T)return k.showHint(S);S&&S.async&&(T.async=!0);var m={hint:T};if(S)for(var w in S)m[w]=S[w];return k.showHint(m)},e.defineExtension("showHint",function(k){k=s(this,this.getCursor("start"),k);var T=this.listSelections();if(!(T.length>1)){if(this.somethingSelected()){if(!k.hint.supportsSelection)return;for(var S=0;S<T.length;S++)if(T[S].head.line!=T[S].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var m=this.state.completionActive=new n(this,k);!m.options.hint||(e.signal(this,"startCompletion",this),m.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function n(k,T){if(this.cm=k,this.options=T,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var S=this;k.on("cursorActivity",this.activityFunc=function(){S.cursorActivity()})}}var i=window.requestAnimationFrame||function(k){return setTimeout(k,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;n.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(k,T){var S=k.list[T],m=this;this.cm.operation(function(){S.hint?S.hint(m.cm,k,S):m.cm.replaceRange(l(S),S.from||k.from,S.to||k.to,"complete"),e.signal(k,"pick",S),m.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var k=this.startPos;this.data&&(k=this.data.from);var T=this.cm.getCursor(),S=this.cm.getLine(T.line);if(T.line!=this.startPos.line||S.length-T.ch!=this.startLen-this.startPos.ch||T.ch<k.ch||this.cm.somethingSelected()||!T.ch||this.options.closeCharacters.test(S.charAt(T.ch-1)))this.close();else{var m=this;this.debounce=i(function(){m.update()}),this.widget&&this.widget.disable()}},update:function(k){if(this.tick!=null){var T=this,S=++this.tick;b(this.options.hint,this.cm,this.options,function(m){T.tick==S&&T.finishUpdate(m,k)})}},finishUpdate:function(k,T){this.data&&e.signal(this.data,"update");var S=this.widget&&this.widget.picked||T&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=k,k&&k.list.length&&(S&&k.list.length==1?this.pick(k,0):(this.widget=new v(this,k),e.signal(k,"shown")))}};function s(k,T,S){var m=k.options.hintOptions,w={};for(var x in _)w[x]=_[x];if(m)for(var x in m)m[x]!==void 0&&(w[x]=m[x]);if(S)for(var x in S)S[x]!==void 0&&(w[x]=S[x]);return w.hint.resolve&&(w.hint=w.hint.resolve(k,T)),w}function l(k){return typeof k=="string"?k:k.text}function d(k,T){var S={Up:function(){T.moveFocus(-1)},Down:function(){T.moveFocus(1)},PageUp:function(){T.moveFocus(-T.menuSize()+1,!0)},PageDown:function(){T.moveFocus(T.menuSize()-1,!0)},Home:function(){T.setFocus(0)},End:function(){T.setFocus(T.length-1)},Enter:T.pick,Tab:T.pick,Esc:T.close},m=/Mac/.test(navigator.platform);m&&(S["Ctrl-P"]=function(){T.moveFocus(-1)},S["Ctrl-N"]=function(){T.moveFocus(1)});var w=k.options.customKeys,x=w?{}:S;function L(M,q){var z;typeof q!="string"?z=function(B){return q(B,T)}:S.hasOwnProperty(q)?z=S[q]:z=q,x[M]=z}if(w)for(var O in w)w.hasOwnProperty(O)&&L(O,w[O]);var R=k.options.extraKeys;if(R)for(var O in R)R.hasOwnProperty(O)&&L(O,R[O]);return x}function h(k,T){for(;T&&T!=k;){if(T.nodeName.toUpperCase()==="LI"&&T.parentNode==k)return T;T=T.parentNode}}function v(k,T){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=k,this.data=T,this.picked=!1;var S=this,m=k.cm,w=m.getInputField().ownerDocument,x=w.defaultView||w.parentWindow,L=this.hints=w.createElement("ul");L.setAttribute("role","listbox"),L.setAttribute("aria-expanded","true"),L.id=this.id;var O=k.cm.options.theme;L.className="CodeMirror-hints "+O,this.selectedHint=T.selectedHint||0;for(var R=T.list,M=0;M<R.length;++M){var q=L.appendChild(w.createElement("li")),z=R[M],B=t+(M!=this.selectedHint?"":" "+r);z.className!=null&&(B=z.className+" "+B),q.className=B,M==this.selectedHint&&q.setAttribute("aria-selected","true"),q.id=this.id+"-"+M,q.setAttribute("role","option"),z.render?z.render(q,T,z):q.appendChild(w.createTextNode(z.displayText||l(z))),q.hintId=M}var Q=k.options.container||w.body,P=m.cursorCoords(k.options.alignWithWord?T.from:null),he=P.left,xe=P.bottom,ge=!0,Fe=0,Le=0;if(Q!==w.body){var He=["absolute","relative","fixed"].indexOf(x.getComputedStyle(Q).position)!==-1,Xe=He?Q:Q.offsetParent,Ve=Xe.getBoundingClientRect(),At=w.body.getBoundingClientRect();Fe=Ve.left-At.left-Xe.scrollLeft,Le=Ve.top-At.top-Xe.scrollTop}L.style.left=he-Fe+"px",L.style.top=xe-Le+"px";var Ot=x.innerWidth||Math.max(w.body.offsetWidth,w.documentElement.offsetWidth),Ie=x.innerHeight||Math.max(w.body.offsetHeight,w.documentElement.offsetHeight);Q.appendChild(L),m.getInputField().setAttribute("aria-autocomplete","list"),m.getInputField().setAttribute("aria-owns",this.id),m.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var te=k.options.moveOnOverlap?L.getBoundingClientRect():new DOMRect,ce=k.options.paddingForScrollbar?L.scrollHeight>L.clientHeight+1:!1,we;setTimeout(function(){we=m.getScrollInfo()});var ot=te.bottom-Ie;if(ot>0){var Me=te.bottom-te.top,Qe=te.top-(P.bottom-P.top)-2;Ie-te.top<Qe?(Me>Qe&&(L.style.height=(Me=Qe)+"px"),L.style.top=(xe=P.top-Me)+Le+"px",ge=!1):L.style.height=Ie-te.top-2+"px"}var ze=te.right-Ot;if(ce&&(ze+=m.display.nativeBarWidth),ze>0&&(te.right-te.left>Ot&&(L.style.width=Ot-5+"px",ze-=te.right-te.left-Ot),L.style.left=(he=Math.max(P.left-ze-Fe,0))+"px"),ce)for(var mt=L.firstChild;mt;mt=mt.nextSibling)mt.style.paddingRight=m.display.nativeBarWidth+"px";if(m.addKeyMap(this.keyMap=d(k,{moveFocus:function(fe,se){S.changeActive(S.selectedHint+fe,se)},setFocus:function(fe){S.changeActive(fe)},menuSize:function(){return S.screenAmount()},length:R.length,close:function(){k.close()},pick:function(){S.pick()},data:T})),k.options.closeOnUnfocus){var oe;m.on("blur",this.onBlur=function(){oe=setTimeout(function(){k.close()},100)}),m.on("focus",this.onFocus=function(){clearTimeout(oe)})}m.on("scroll",this.onScroll=function(){var fe=m.getScrollInfo(),se=m.getWrapperElement().getBoundingClientRect();we||(we=m.getScrollInfo());var Ue=xe+we.top-fe.top,at=Ue-(x.pageYOffset||(w.documentElement||w.body).scrollTop);if(ge||(at+=L.offsetHeight),at<=se.top||at>=se.bottom)return k.close();L.style.top=Ue+"px",L.style.left=he+we.left-fe.left+"px"}),e.on(L,"dblclick",function(fe){var se=h(L,fe.target||fe.srcElement);se&&se.hintId!=null&&(S.changeActive(se.hintId),S.pick())}),e.on(L,"click",function(fe){var se=h(L,fe.target||fe.srcElement);se&&se.hintId!=null&&(S.changeActive(se.hintId),k.options.completeOnSingleClick&&S.pick())}),e.on(L,"mousedown",function(){setTimeout(function(){m.focus()},20)});var me=this.getSelectedHintRange();return(me.from!==0||me.to!==0)&&this.scrollToActive(),e.signal(T,"select",R[this.selectedHint],L.childNodes[this.selectedHint]),!0}v.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 k=this.completion.cm.getInputField();k.removeAttribute("aria-activedescendant"),k.removeAttribute("aria-owns");var T=this.completion.cm;this.completion.options.closeOnUnfocus&&(T.off("blur",this.onBlur),T.off("focus",this.onFocus)),T.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var k=this;this.keyMap={Enter:function(){k.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(k,T){if(k>=this.data.list.length?k=T?this.data.list.length-1:0:k<0&&(k=T?0:this.data.list.length-1),this.selectedHint!=k){var S=this.hints.childNodes[this.selectedHint];S&&(S.className=S.className.replace(" "+r,""),S.removeAttribute("aria-selected")),S=this.hints.childNodes[this.selectedHint=k],S.className+=" "+r,S.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",S.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],S)}},scrollToActive:function(){var k=this.getSelectedHintRange(),T=this.hints.childNodes[k.from],S=this.hints.childNodes[k.to],m=this.hints.firstChild;T.offsetTop<this.hints.scrollTop?this.hints.scrollTop=T.offsetTop-m.offsetTop:S.offsetTop+S.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=S.offsetTop+S.offsetHeight-this.hints.clientHeight+m.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var k=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-k),to:Math.min(this.data.list.length-1,this.selectedHint+k)}}};function y(k,T){if(!k.somethingSelected())return T;for(var S=[],m=0;m<T.length;m++)T[m].supportsSelection&&S.push(T[m]);return S}function b(k,T,S,m){if(k.async)k(T,m,S);else{var w=k(T,S);w&&w.then?w.then(m):m(w)}}function D(k,T){var S=k.getHelpers(T,"hint"),m;if(S.length){var w=function(x,L,O){var R=y(x,S);function M(q){if(q==R.length)return L(null);b(R[q],x,O,function(z){z&&z.list.length>0?L(z):M(q+1)})}M(0)};return w.async=!0,w.supportsSelection=!0,w}else return(m=k.getHelper(k.getCursor(),"hintWords"))?function(x){return e.hint.fromList(x,{words:m})}:e.hint.anyword?function(x,L){return e.hint.anyword(x,L)}:function(){}}e.registerHelper("hint","auto",{resolve:D}),e.registerHelper("hint","fromList",function(k,T){var S=k.getCursor(),m=k.getTokenAt(S),w,x=e.Pos(S.line,m.start),L=S;m.start<S.ch&&/\w/.test(m.string.charAt(S.ch-m.start-1))?w=m.string.substr(0,S.ch-m.start):(w="",x=S);for(var O=[],R=0;R<T.words.length;R++){var M=T.words[R];M.slice(0,w.length)==w&&O.push(M)}if(O.length)return{list:O,from:x,to:L}}),e.commands.autocomplete=e.showHint;var _={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)})});var PO=G((wV,NV)=>{(function(e){typeof wV=="object"&&typeof NV=="object"?e(Wt()):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 i(v){return v&&v.bracketRegex||/[(){}[\]]/}function o(v,y,b){var D=v.getLineHandle(y.line),_=y.ch-1,k=b&&b.afterCursor;k==null&&(k=/(^| )cm-fat-cursor($| )/.test(v.getWrapperElement().className));var T=i(b),S=!k&&_>=0&&T.test(D.text.charAt(_))&&n[D.text.charAt(_)]||T.test(D.text.charAt(_+1))&&n[D.text.charAt(++_)];if(!S)return null;var m=S.charAt(1)==">"?1:-1;if(b&&b.strict&&m>0!=(_==y.ch))return null;var w=v.getTokenTypeAt(r(y.line,_+1)),x=s(v,r(y.line,_+(m>0?1:0)),m,w,b);return x==null?null:{from:r(y.line,_),to:x&&x.pos,match:x&&x.ch==S.charAt(0),forward:m>0}}function s(v,y,b,D,_){for(var k=_&&_.maxScanLineLength||1e4,T=_&&_.maxScanLines||1e3,S=[],m=i(_),w=b>0?Math.min(y.line+T,v.lastLine()+1):Math.max(v.firstLine()-1,y.line-T),x=y.line;x!=w;x+=b){var L=v.getLine(x);if(!!L){var O=b>0?0:L.length-1,R=b>0?L.length:-1;if(!(L.length>k))for(x==y.line&&(O=y.ch-(b<0?1:0));O!=R;O+=b){var M=L.charAt(O);if(m.test(M)&&(D===void 0||(v.getTokenTypeAt(r(x,O+1))||"")==(D||""))){var q=n[M];if(q&&q.charAt(1)==">"==b>0)S.push(M);else if(S.length)S.pop();else return{pos:r(x,O),ch:M}}}}}return x-b==(b>0?v.lastLine():v.firstLine())?!1:null}function l(v,y,b){for(var D=v.state.matchBrackets.maxHighlightLineLength||1e3,_=b&&b.highlightNonMatching,k=[],T=v.listSelections(),S=0;S<T.length;S++){var m=T[S].empty()&&o(v,T[S].head,b);if(m&&(m.match||_!==!1)&&v.getLine(m.from.line).length<=D){var w=m.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";k.push(v.markText(m.from,r(m.from.line,m.from.ch+1),{className:w})),m.to&&v.getLine(m.to.line).length<=D&&k.push(v.markText(m.to,r(m.to.line,m.to.ch+1),{className:w}))}}if(k.length){t&&v.state.focused&&v.focus();var x=function(){v.operation(function(){for(var L=0;L<k.length;L++)k[L].clear()})};if(y)setTimeout(x,800);else return x}}function d(v){v.operation(function(){v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null),v.state.matchBrackets.currentlyHighlighted=l(v,!1,v.state.matchBrackets)})}function h(v){v.state.matchBrackets&&v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(v,y,b){b&&b!=e.Init&&(v.off("cursorActivity",d),v.off("focus",d),v.off("blur",h),h(v)),y&&(v.state.matchBrackets=typeof y=="object"?y:{},v.on("cursorActivity",d),v.on("focus",d),v.on("blur",h))}),e.defineExtension("matchBrackets",function(){l(this,!0)}),e.defineExtension("findMatchingBracket",function(v,y,b){return(b||typeof y=="boolean")&&(b?(b.strict=y,y=b):y=y?{strict:!0}:null),o(this,v,y)}),e.defineExtension("scanForBracket",function(v,y,b,D){return s(this,v,y,b,D)})})});var CV=G((DV,xV)=>{(function(e){typeof DV=="object"&&typeof xV=="object"?e(Wt()):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(k,T,S){S&&S!=e.Init&&(k.removeKeyMap(i),k.state.closeBrackets=null),T&&(o(n(T,"pairs")),k.state.closeBrackets=T,k.addKeyMap(i))});function n(k,T){return T=="pairs"&&typeof k=="string"?k:typeof k=="object"&&k[T]!=null?k[T]:t[T]}var i={Backspace:d,Enter:h};function o(k){for(var T=0;T<k.length;T++){var S=k.charAt(T),m="'"+S+"'";i[m]||(i[m]=s(S))}}o(t.pairs+"`");function s(k){return function(T){return b(T,k)}}function l(k){var T=k.state.closeBrackets;if(!T||T.override)return T;var S=k.getModeAt(k.getCursor());return S.closeBrackets||T}function d(k){var T=l(k);if(!T||k.getOption("disableInput"))return e.Pass;for(var S=n(T,"pairs"),m=k.listSelections(),w=0;w<m.length;w++){if(!m[w].empty())return e.Pass;var x=D(k,m[w].head);if(!x||S.indexOf(x)%2!=0)return e.Pass}for(var w=m.length-1;w>=0;w--){var L=m[w].head;k.replaceRange("",r(L.line,L.ch-1),r(L.line,L.ch+1),"+delete")}}function h(k){var T=l(k),S=T&&n(T,"explode");if(!S||k.getOption("disableInput"))return e.Pass;for(var m=k.listSelections(),w=0;w<m.length;w++){if(!m[w].empty())return e.Pass;var x=D(k,m[w].head);if(!x||S.indexOf(x)%2!=0)return e.Pass}k.operation(function(){var L=k.lineSeparator()||`
|
|
`;k.replaceSelection(L+L,null),v(k,-1),m=k.listSelections();for(var O=0;O<m.length;O++){var R=m[O].head.line;k.indentLine(R,null,!0),k.indentLine(R+1,null,!0)}})}function v(k,T){for(var S=[],m=k.listSelections(),w=0,x=0;x<m.length;x++){var L=m[x];L.head==k.getCursor()&&(w=x);var O=L.head.ch||T>0?{line:L.head.line,ch:L.head.ch+T}:{line:L.head.line-1};S.push({anchor:O,head:O})}k.setSelections(S,w)}function y(k){var T=e.cmpPos(k.anchor,k.head)>0;return{anchor:new r(k.anchor.line,k.anchor.ch+(T?-1:1)),head:new r(k.head.line,k.head.ch+(T?1:-1))}}function b(k,T){var S=l(k);if(!S||k.getOption("disableInput"))return e.Pass;var m=n(S,"pairs"),w=m.indexOf(T);if(w==-1)return e.Pass;for(var x=n(S,"closeBefore"),L=n(S,"triples"),O=m.charAt(w+1)==T,R=k.listSelections(),M=w%2==0,q,z=0;z<R.length;z++){var B=R[z],Q=B.head,P,he=k.getRange(Q,r(Q.line,Q.ch+1));if(M&&!B.empty())P="surround";else if((O||!M)&&he==T)O&&_(k,Q)?P="both":L.indexOf(T)>=0&&k.getRange(Q,r(Q.line,Q.ch+3))==T+T+T?P="skipThree":P="skip";else if(O&&Q.ch>1&&L.indexOf(T)>=0&&k.getRange(r(Q.line,Q.ch-2),Q)==T+T){if(Q.ch>2&&/\bstring/.test(k.getTokenTypeAt(r(Q.line,Q.ch-2))))return e.Pass;P="addFour"}else if(O){var xe=Q.ch==0?" ":k.getRange(r(Q.line,Q.ch-1),Q);if(!e.isWordChar(he)&&xe!=T&&!e.isWordChar(xe))P="both";else return e.Pass}else if(M&&(he.length===0||/\s/.test(he)||x.indexOf(he)>-1))P="both";else return e.Pass;if(!q)q=P;else if(q!=P)return e.Pass}var ge=w%2?m.charAt(w-1):T,Fe=w%2?T:m.charAt(w+1);k.operation(function(){if(q=="skip")v(k,1);else if(q=="skipThree")v(k,3);else if(q=="surround"){for(var Le=k.getSelections(),He=0;He<Le.length;He++)Le[He]=ge+Le[He]+Fe;k.replaceSelections(Le,"around"),Le=k.listSelections().slice();for(var He=0;He<Le.length;He++)Le[He]=y(Le[He]);k.setSelections(Le)}else q=="both"?(k.replaceSelection(ge+Fe,null),k.triggerElectric(ge+Fe),v(k,-1)):q=="addFour"&&(k.replaceSelection(ge+ge+ge+ge,"before"),v(k,1))})}function D(k,T){var S=k.getRange(r(T.line,T.ch-1),r(T.line,T.ch+1));return S.length==2?S:null}function _(k,T){var S=k.getTokenAt(r(T.line,T.ch+1));return/\bstring/.test(S.type)&&S.start==T.ch&&(T.ch==0||!/\bstring/.test(k.getTokenTypeAt(T)))}})});var FO=G((LV,IV)=>{(function(e){typeof LV=="object"&&typeof IV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(r){return function(n,i){var o=i.line,s=n.getLine(o);function l(D){for(var _,k=i.ch,T=0;;){var S=k<=0?-1:s.lastIndexOf(D[0],k-1);if(S==-1){if(T==1)break;T=1,k=s.length;continue}if(T==1&&S<i.ch)break;if(_=n.getTokenTypeAt(e.Pos(o,S+1)),!/^(comment|string)/.test(_))return{ch:S+1,tokenType:_,pair:D};k=S-1}}function d(D){var _=1,k=n.lastLine(),T,S=D.ch,m;e:for(var w=o;w<=k;++w)for(var x=n.getLine(w),L=w==o?S:0;;){var O=x.indexOf(D.pair[0],L),R=x.indexOf(D.pair[1],L);if(O<0&&(O=x.length),R<0&&(R=x.length),L=Math.min(O,R),L==x.length)break;if(n.getTokenTypeAt(e.Pos(w,L+1))==D.tokenType){if(L==O)++_;else if(!--_){T=w,m=L;break e}}++L}return T==null||o==T?null:{from:e.Pos(o,S),to:e.Pos(T,m)}}for(var h=[],v=0;v<r.length;v++){var y=l(r[v]);y&&h.push(y)}h.sort(function(D,_){return D.ch-_.ch});for(var v=0;v<h.length;v++){var b=d(h[v]);if(b)return b}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(r,n){function i(v){if(v<r.firstLine()||v>r.lastLine())return null;var y=r.getTokenAt(e.Pos(v,1));if(/\S/.test(y.string)||(y=r.getTokenAt(e.Pos(v,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var b=v,D=Math.min(r.lastLine(),v+10);b<=D;++b){var _=r.getLine(b),k=_.indexOf(";");if(k!=-1)return{startCh:y.end,end:e.Pos(b,k)}}}var o=n.line,s=i(o),l;if(!s||i(o-1)||(l=i(o-2))&&l.end.line==o-1)return null;for(var d=s.end;;){var h=i(d.line+1);if(h==null)break;d=h.end}return{from:r.clipPos(e.Pos(o,s.startCh+1)),to:d}}),e.registerHelper("fold","include",function(r,n){function i(h){if(h<r.firstLine()||h>r.lastLine())return null;var v=r.getTokenAt(e.Pos(h,1));if(/\S/.test(v.string)||(v=r.getTokenAt(e.Pos(h,v.end+1))),v.type=="meta"&&v.string.slice(0,8)=="#include")return v.start+8}var o=n.line,s=i(o);if(s==null||i(o-1)!=null)return null;for(var l=o;;){var d=i(l+1);if(d==null)break;++l}return{from:e.Pos(o,s+1),to:r.clipPos(e.Pos(l))}})})});var jV=G((AV,RV)=>{(function(e){typeof AV=="object"&&typeof RV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function t(o,s,l,d){if(l&&l.call){var h=l;l=null}else var h=i(o,l,"rangeFinder");typeof s=="number"&&(s=e.Pos(s,0));var v=i(o,l,"minFoldSize");function y(k){var T=h(o,s);if(!T||T.to.line-T.from.line<v)return null;if(d==="fold")return T;for(var S=o.findMarksAt(T.from),m=0;m<S.length;++m)if(S[m].__isFold){if(!k)return null;T.cleared=!0,S[m].clear()}return T}var b=y(!0);if(i(o,l,"scanUp"))for(;!b&&s.line>o.firstLine();)s=e.Pos(s.line-1,0),b=y(!1);if(!(!b||b.cleared||d==="unfold")){var D=r(o,l,b);e.on(D,"mousedown",function(k){_.clear(),e.e_preventDefault(k)});var _=o.markText(b.from,b.to,{replacedWith:D,clearOnEnter:i(o,l,"clearOnEnter"),__isFold:!0});_.on("clear",function(k,T){e.signal(o,"unfold",o,k,T)}),e.signal(o,"fold",o,b.from,b.to)}}function r(o,s,l){var d=i(o,s,"widget");if(typeof d=="function"&&(d=d(l.from,l.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(l,d){t(l,d,{rangeFinder:o,widget:s})}},e.defineExtension("foldCode",function(o,s,l){t(this,o,s,l)}),e.defineExtension("isFolded",function(o){for(var s=this.findMarksAt(o),l=0;l<s.length;++l)if(s[l].__isFold)return!0}),e.commands.toggleFold=function(o){o.foldCode(o.getCursor())},e.commands.fold=function(o){o.foldCode(o.getCursor(),null,"fold")},e.commands.unfold=function(o){o.foldCode(o.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(o){o.operation(function(){for(var s=o.firstLine(),l=o.lastLine();s<=l;s++)o.foldCode(e.Pos(s,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(o){o.operation(function(){for(var s=o.firstLine(),l=o.lastLine();s<=l;s++)o.foldCode(e.Pos(s,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var o=Array.prototype.slice.call(arguments,0);return function(s,l){for(var d=0;d<o.length;++d){var h=o[d](s,l);if(h)return h}}}),e.registerHelper("fold","auto",function(o,s){for(var l=o.getHelpers(s,"fold"),d=0;d<l.length;d++){var h=l[d](o,s);if(h)return h}});var n={rangeFinder:e.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null);function i(o,s,l){if(s&&s[l]!==void 0)return s[l];var d=o.options.foldOptions;return d&&d[l]!==void 0?d[l]:n[l]}e.defineExtension("foldOption",function(o,s){return i(this,o,s)})})});var MO=G((PV,FV)=>{(function(e){typeof PV=="object"&&typeof FV=="object"?e(Wt(),jV()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("foldGutter",!1,function(_,k,T){T&&T!=e.Init&&(_.clearGutter(_.state.foldGutter.options.gutter),_.state.foldGutter=null,_.off("gutterClick",h),_.off("changes",y),_.off("viewportChange",b),_.off("fold",D),_.off("unfold",D),_.off("swapDoc",y),_.off("optionChange",v)),k&&(_.state.foldGutter=new r(n(k)),d(_),_.on("gutterClick",h),_.on("changes",y),_.on("viewportChange",b),_.on("fold",D),_.on("unfold",D),_.on("swapDoc",y),_.on("optionChange",v))});var t=e.Pos;function r(_){this.options=_,this.from=this.to=0}function n(_){return _===!0&&(_={}),_.gutter==null&&(_.gutter="CodeMirror-foldgutter"),_.indicatorOpen==null&&(_.indicatorOpen="CodeMirror-foldgutter-open"),_.indicatorFolded==null&&(_.indicatorFolded="CodeMirror-foldgutter-folded"),_}function i(_,k){for(var T=_.findMarks(t(k,0),t(k+1,0)),S=0;S<T.length;++S)if(T[S].__isFold){var m=T[S].find(-1);if(m&&m.line===k)return T[S]}}function o(_){if(typeof _=="string"){var k=document.createElement("div");return k.className=_+" CodeMirror-guttermarker-subtle",k}else return _.cloneNode(!0)}function s(_,k,T){var S=_.state.foldGutter.options,m=k-1,w=_.foldOption(S,"minFoldSize"),x=_.foldOption(S,"rangeFinder"),L=typeof S.indicatorFolded=="string"&&l(S.indicatorFolded),O=typeof S.indicatorOpen=="string"&&l(S.indicatorOpen);_.eachLine(k,T,function(R){++m;var M=null,q=R.gutterMarkers;if(q&&(q=q[S.gutter]),i(_,m)){if(L&&q&&L.test(q.className))return;M=o(S.indicatorFolded)}else{var z=t(m,0),B=x&&x(_,z);if(B&&B.to.line-B.from.line>=w){if(O&&q&&O.test(q.className))return;M=o(S.indicatorOpen)}}!M&&!q||_.setGutterMarker(R,S.gutter,M)})}function l(_){return new RegExp("(^|\\s)"+_+"(?:$|\\s)\\s*")}function d(_){var k=_.getViewport(),T=_.state.foldGutter;!T||(_.operation(function(){s(_,k.from,k.to)}),T.from=k.from,T.to=k.to)}function h(_,k,T){var S=_.state.foldGutter;if(!!S){var m=S.options;if(T==m.gutter){var w=i(_,k);w?w.clear():_.foldCode(t(k,0),m)}}}function v(_,k){k=="mode"&&y(_)}function y(_){var k=_.state.foldGutter;if(!!k){var T=k.options;k.from=k.to=0,clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){d(_)},T.foldOnChangeTimeSpan||600)}}function b(_){var k=_.state.foldGutter;if(!!k){var T=k.options;clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){var S=_.getViewport();k.from==k.to||S.from-k.to>20||k.from-S.to>20?d(_):_.operation(function(){S.from<k.from&&(s(_,S.from,k.from),k.from=S.from),S.to>k.to&&(s(_,k.to,S.to),k.to=S.to)})},T.updateViewportTimeSpan||400)}}function D(_,k){var T=_.state.foldGutter;if(!!T){var S=k.line;S>=T.from&&S<T.to&&s(_,S,S+1)}}})});var VV=G((MV,qV)=>{(function(e){typeof MV=="object"&&typeof qV=="object"?e(Wt()):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(L,O,R){var M=document.createElement("div");M.className="CodeMirror-lint-tooltip cm-s-"+L.options.theme,M.appendChild(R.cloneNode(!0)),L.state.lint.options.selfContain?L.getWrapperElement().appendChild(M):document.body.appendChild(M);function q(z){if(!M.parentNode)return e.off(document,"mousemove",q);M.style.top=Math.max(0,z.clientY-M.offsetHeight-5)+"px",M.style.left=z.clientX+5+"px"}return e.on(document,"mousemove",q),q(O),M.style.opacity!=null&&(M.style.opacity=1),M}function i(L){L.parentNode&&L.parentNode.removeChild(L)}function o(L){!L.parentNode||(L.style.opacity==null&&i(L),L.style.opacity=0,setTimeout(function(){i(L)},600))}function s(L,O,R,M){var q=n(L,O,R);function z(){e.off(M,"mouseout",z),q&&(o(q),q=null)}var B=setInterval(function(){if(q)for(var Q=M;;Q=Q.parentNode){if(Q&&Q.nodeType==11&&(Q=Q.host),Q==document.body)return;if(!Q){z();break}}if(!q)return clearInterval(B)},400);e.on(M,"mouseout",z)}function l(L,O,R){this.marked=[],O instanceof Function&&(O={getAnnotations:O}),(!O||O===!0)&&(O={}),this.options={},this.linterOptions=O.options||{};for(var M in d)this.options[M]=d[M];for(var M in O)d.hasOwnProperty(M)?O[M]!=null&&(this.options[M]=O[M]):O.options||(this.linterOptions[M]=O[M]);this.timeout=null,this.hasGutter=R,this.onMouseOver=function(q){x(L,q)},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(L){var O=L.state.lint;O.hasGutter&&L.clearGutter(t),O.options.highlightLines&&v(L);for(var R=0;R<O.marked.length;++R)O.marked[R].clear();O.marked.length=0}function v(L){L.eachLine(function(O){var R=O.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(O.wrapClass);R&&L.removeLineClass(O,"wrap",R[0])})}function y(L,O,R,M,q){var z=document.createElement("div"),B=z;return z.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+R,M&&(B=z.appendChild(document.createElement("div")),B.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),q!=!1&&e.on(B,"mouseover",function(Q){s(L,Q,O,B)}),z}function b(L,O){return L=="error"?L:O}function D(L){for(var O=[],R=0;R<L.length;++R){var M=L[R],q=M.from.line;(O[q]||(O[q]=[])).push(M)}return O}function _(L){var O=L.severity;O||(O="error");var R=document.createElement("div");return R.className="CodeMirror-lint-message CodeMirror-lint-message-"+O,typeof L.messageHTML!="undefined"?R.innerHTML=L.messageHTML:R.appendChild(document.createTextNode(L.message)),R}function k(L,O){var R=L.state.lint,M=++R.waitingFor;function q(){M=-1,L.off("change",q)}L.on("change",q),O(L.getValue(),function(z,B){L.off("change",q),R.waitingFor==M&&(B&&z instanceof e&&(z=B),L.operation(function(){S(L,z)}))},R.linterOptions,L)}function T(L){var O=L.state.lint;if(!!O){var R=O.options,M=R.getAnnotations||L.getHelper(e.Pos(0,0),"lint");if(!!M)if(R.async||M.async)k(L,M);else{var q=M(L.getValue(),O.linterOptions,L);if(!q)return;q.then?q.then(function(z){L.operation(function(){S(L,z)})}):L.operation(function(){S(L,q)})}}}function S(L,O){var R=L.state.lint;if(!!R){var M=R.options;h(L);for(var q=D(O),z=0;z<q.length;++z){var B=q[z];if(!!B){for(var Q=null,P=R.hasGutter&&document.createDocumentFragment(),he=0;he<B.length;++he){var xe=B[he],ge=xe.severity;ge||(ge="error"),Q=b(Q,ge),M.formatAnnotation&&(xe=M.formatAnnotation(xe)),R.hasGutter&&P.appendChild(_(xe)),xe.to&&R.marked.push(L.markText(xe.from,xe.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ge,__annotation:xe}))}R.hasGutter&&L.setGutterMarker(z,t,y(L,P,Q,B.length>1,M.tooltips)),M.highlightLines&&L.addLineClass(z,"wrap",r+Q)}}M.onUpdateLinting&&M.onUpdateLinting(O,q,L)}}function m(L){var O=L.state.lint;!O||(clearTimeout(O.timeout),O.timeout=setTimeout(function(){T(L)},O.options.delay))}function w(L,O,R){for(var M=R.target||R.srcElement,q=document.createDocumentFragment(),z=0;z<O.length;z++){var B=O[z];q.appendChild(_(B))}s(L,R,q,M)}function x(L,O){var R=O.target||O.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(R.className)){for(var M=R.getBoundingClientRect(),q=(M.left+M.right)/2,z=(M.top+M.bottom)/2,B=L.findMarksAt(L.coordsChar({left:q,top:z},"client")),Q=[],P=0;P<B.length;++P){var he=B[P].__annotation;he&&Q.push(he)}Q.length&&w(L,Q,O)}}e.defineOption("lint",!1,function(L,O,R){if(R&&R!=e.Init&&(h(L),L.state.lint.options.lintOnChange!==!1&&L.off("change",m),e.off(L.getWrapperElement(),"mouseover",L.state.lint.onMouseOver),clearTimeout(L.state.lint.timeout),delete L.state.lint),O){for(var M=L.getOption("gutters"),q=!1,z=0;z<M.length;++z)M[z]==t&&(q=!0);var B=L.state.lint=new l(L,O,q);B.options.lintOnChange&&L.on("change",m),B.options.tooltips!=!1&&B.options.tooltips!="gutter"&&e.on(L.getWrapperElement(),"mouseover",B.onMouseOver),T(L)}}),e.defineExtension("performLint",function(){T(this)})})});var qp=G((UV,GV)=>{(function(e){typeof UV=="object"&&typeof GV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t=e.Pos;function r(T){var S=T.flags;return S!=null?S:(T.ignoreCase?"i":"")+(T.global?"g":"")+(T.multiline?"m":"")}function n(T,S){for(var m=r(T),w=m,x=0;x<S.length;x++)w.indexOf(S.charAt(x))==-1&&(w+=S.charAt(x));return m==w?T:new RegExp(T.source,w)}function i(T){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(T.source)}function o(T,S,m){S=n(S,"g");for(var w=m.line,x=m.ch,L=T.lastLine();w<=L;w++,x=0){S.lastIndex=x;var O=T.getLine(w),R=S.exec(O);if(R)return{from:t(w,R.index),to:t(w,R.index+R[0].length),match:R}}}function s(T,S,m){if(!i(S))return o(T,S,m);S=n(S,"gm");for(var w,x=1,L=m.line,O=T.lastLine();L<=O;){for(var R=0;R<x&&!(L>O);R++){var M=T.getLine(L++);w=w==null?M:w+`
|
|
`+M}x=x*2,S.lastIndex=m.ch;var q=S.exec(w);if(q){var z=w.slice(0,q.index).split(`
|
|
`),B=q[0].split(`
|
|
`),Q=m.line+z.length-1,P=z[z.length-1].length;return{from:t(Q,P),to:t(Q+B.length-1,B.length==1?P+B[0].length:B[B.length-1].length),match:q}}}}function l(T,S,m){for(var w,x=0;x<=T.length;){S.lastIndex=x;var L=S.exec(T);if(!L)break;var O=L.index+L[0].length;if(O>T.length-m)break;(!w||O>w.index+w[0].length)&&(w=L),x=L.index+1}return w}function d(T,S,m){S=n(S,"g");for(var w=m.line,x=m.ch,L=T.firstLine();w>=L;w--,x=-1){var O=T.getLine(w),R=l(O,S,x<0?0:O.length-x);if(R)return{from:t(w,R.index),to:t(w,R.index+R[0].length),match:R}}}function h(T,S,m){if(!i(S))return d(T,S,m);S=n(S,"gm");for(var w,x=1,L=T.getLine(m.line).length-m.ch,O=m.line,R=T.firstLine();O>=R;){for(var M=0;M<x&&O>=R;M++){var q=T.getLine(O--);w=w==null?q:q+`
|
|
`+w}x*=2;var z=l(w,S,L);if(z){var B=w.slice(0,z.index).split(`
|
|
`),Q=z[0].split(`
|
|
`),P=O+B.length,he=B[B.length-1].length;return{from:t(P,he),to:t(P+Q.length-1,Q.length==1?he+Q[0].length:Q[Q.length-1].length),match:z}}}}var v,y;String.prototype.normalize?(v=function(T){return T.normalize("NFD").toLowerCase()},y=function(T){return T.normalize("NFD")}):(v=function(T){return T.toLowerCase()},y=function(T){return T});function b(T,S,m,w){if(T.length==S.length)return m;for(var x=0,L=m+Math.max(0,T.length-S.length);;){if(x==L)return x;var O=x+L>>1,R=w(T.slice(0,O)).length;if(R==m)return O;R>m?L=O:x=O+1}}function D(T,S,m,w){if(!S.length)return null;var x=w?v:y,L=x(S).split(/\r|\n\r?/);e:for(var O=m.line,R=m.ch,M=T.lastLine()+1-L.length;O<=M;O++,R=0){var q=T.getLine(O).slice(R),z=x(q);if(L.length==1){var B=z.indexOf(L[0]);if(B==-1)continue e;var m=b(q,z,B,x)+R;return{from:t(O,b(q,z,B,x)+R),to:t(O,b(q,z,B+L[0].length,x)+R)}}else{var Q=z.length-L[0].length;if(z.slice(Q)!=L[0])continue e;for(var P=1;P<L.length-1;P++)if(x(T.getLine(O+P))!=L[P])continue e;var he=T.getLine(O+L.length-1),xe=x(he),ge=L[L.length-1];if(xe.slice(0,ge.length)!=ge)continue e;return{from:t(O,b(q,z,Q,x)+R),to:t(O+L.length-1,b(he,xe,ge.length,x))}}}}function _(T,S,m,w){if(!S.length)return null;var x=w?v:y,L=x(S).split(/\r|\n\r?/);e:for(var O=m.line,R=m.ch,M=T.firstLine()-1+L.length;O>=M;O--,R=-1){var q=T.getLine(O);R>-1&&(q=q.slice(0,R));var z=x(q);if(L.length==1){var B=z.lastIndexOf(L[0]);if(B==-1)continue e;return{from:t(O,b(q,z,B,x)),to:t(O,b(q,z,B+L[0].length,x))}}else{var Q=L[L.length-1];if(z.slice(0,Q.length)!=Q)continue e;for(var P=1,m=O-L.length+1;P<L.length-1;P++)if(x(T.getLine(m+P))!=L[P])continue e;var he=T.getLine(O+1-L.length),xe=x(he);if(xe.slice(xe.length-L[0].length)!=L[0])continue e;return{from:t(O+1-L.length,b(he,xe,he.length-L[0].length,x)),to:t(O,b(q,z,Q.length,x))}}}}function k(T,S,m,w){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=T,m=m?T.clipPos(m):t(0,0),this.pos={from:m,to:m};var x;typeof w=="object"?x=w.caseFold:(x=w,w=null),typeof S=="string"?(x==null&&(x=!1),this.matches=function(L,O){return(L?_:D)(T,S,O,x)}):(S=n(S,"gm"),!w||w.multiline!==!1?this.matches=function(L,O){return(L?h:s)(T,S,O)}:this.matches=function(L,O){return(L?d:o)(T,S,O)})}k.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(T){var S=this.doc.clipPos(T?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(S=t(S.line,S.ch),T?(S.ch--,S.ch<0&&(S.line--,S.ch=(this.doc.getLine(S.line)||"").length)):(S.ch++,S.ch>(this.doc.getLine(S.line)||"").length&&(S.ch=0,S.line++)),e.cmpPos(S,this.doc.clipPos(S))!=0))return this.atOccurrence=!1;var m=this.matches(T,S);if(this.afterEmptyMatch=m&&e.cmpPos(m.from,m.to)==0,m)return this.pos=m,this.atOccurrence=!0,this.pos.match||!0;var w=t(T?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:w,to:w},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(T,S){if(!!this.atOccurrence){var m=e.splitLines(T);this.doc.replaceRange(m,this.pos.from,this.pos.to,S),this.pos.to=t(this.pos.from.line+m.length-1,m[m.length-1].length+(m.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(T,S,m){return new k(this.doc,T,S,m)}),e.defineDocExtension("getSearchCursor",function(T,S,m){return new k(this,T,S,m)}),e.defineExtension("selectMatches",function(T,S){for(var m=[],w=this.getSearchCursor(T,this.getCursor("from"),S);w.findNext()&&!(e.cmpPos(w.to(),this.getCursor("to"))>0);)m.push({anchor:w.from(),head:w.to()});m.length&&this.setSelections(m,0)})})});var Vp=G((QV,BV)=>{(function(e){typeof QV=="object"&&typeof BV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function t(n,i,o){var s=n.getWrapperElement(),l;return l=s.appendChild(document.createElement("div")),o?l.className="CodeMirror-dialog CodeMirror-dialog-bottom":l.className="CodeMirror-dialog CodeMirror-dialog-top",typeof i=="string"?l.innerHTML=i:l.appendChild(i),e.addClass(s,"dialog-opened"),l}function r(n,i){n.state.currentNotificationClose&&n.state.currentNotificationClose(),n.state.currentNotificationClose=i}e.defineExtension("openDialog",function(n,i,o){o||(o={}),r(this,null);var s=t(this,n,o.bottom),l=!1,d=this;function h(b){if(typeof b=="string")v.value=b;else{if(l)return;l=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),d.focus(),o.onClose&&o.onClose(s)}}var v=s.getElementsByTagName("input")[0],y;return v?(v.focus(),o.value&&(v.value=o.value,o.selectValueOnOpen!==!1&&v.select()),o.onInput&&e.on(v,"input",function(b){o.onInput(b,v.value,h)}),o.onKeyUp&&e.on(v,"keyup",function(b){o.onKeyUp(b,v.value,h)}),e.on(v,"keydown",function(b){o&&o.onKeyDown&&o.onKeyDown(b,v.value,h)||((b.keyCode==27||o.closeOnEnter!==!1&&b.keyCode==13)&&(v.blur(),e.e_stop(b),h()),b.keyCode==13&&i(v.value,b))}),o.closeOnBlur!==!1&&e.on(s,"focusout",function(b){b.relatedTarget!==null&&h()})):(y=s.getElementsByTagName("button")[0])&&(e.on(y,"click",function(){h(),d.focus()}),o.closeOnBlur!==!1&&e.on(y,"blur",h),y.focus()),h}),e.defineExtension("openConfirm",function(n,i,o){r(this,null);var s=t(this,n,o&&o.bottom),l=s.getElementsByTagName("button"),d=!1,h=this,v=1;function y(){d||(d=!0,e.rmClass(s.parentNode,"dialog-opened"),s.parentNode.removeChild(s),h.focus())}l[0].focus();for(var b=0;b<l.length;++b){var D=l[b];(function(_){e.on(D,"click",function(k){e.e_preventDefault(k),y(),_&&_(h)})})(i[b]),e.on(D,"blur",function(){--v,setTimeout(function(){v<=0&&y()},200)}),e.on(D,"focus",function(){++v})}}),e.defineExtension("openNotification",function(n,i){r(this,h);var o=t(this,n,i&&i.bottom),s=!1,l,d=i&&typeof i.duration!="undefined"?i.duration:5e3;function h(){s||(s=!0,clearTimeout(l),e.rmClass(o.parentNode,"dialog-opened"),o.parentNode.removeChild(o))}return e.on(o,"click",function(v){e.e_preventDefault(v),h()}),d&&(l=setTimeout(h,d)),h})})});var qO=G((KV,HV)=>{(function(e){typeof KV=="object"&&typeof HV=="object"?e(Wt(),Vp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function t(i,o,s,l,d){i.openDialog?i.openDialog(o,d,{value:l,selectValueOnOpen:!0,bottom:i.options.search.bottom}):d(prompt(s,l))}function r(i){return i.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+i.phrase("(Use line:column or scroll% syntax)")+"</span>"}function n(i,o){var s=Number(o);return/^[-+]/.test(o)?i.getCursor().line+s:s-1}e.commands.jumpToLine=function(i){var o=i.getCursor();t(i,r(i),i.phrase("Jump to line:"),o.line+1+":"+o.ch,function(s){if(!!s){var l;if(l=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(s))i.setCursor(n(i,l[1]),Number(l[2]));else if(l=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(s)){var d=Math.round(i.lineCount()*Number(l[1])/100);/^[-+]/.test(l[1])&&(d=o.line+d+1),i.setCursor(d-1,o.ch)}else(l=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(s))&&i.setCursor(n(i,l[1]),o.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})});var VO=G((zV,WV)=>{(function(e){typeof zV=="object"&&typeof WV=="object"?e(Wt(),qp(),PO()):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(m,w,x){if(x<0&&w.ch==0)return m.clipPos(r(w.line-1));var L=m.getLine(w.line);if(x>0&&w.ch>=L.length)return m.clipPos(r(w.line+1,0));for(var O="start",R,M=w.ch,q=M,z=x<0?0:L.length,B=0;q!=z;q+=x,B++){var Q=L.charAt(x<0?q-1:q),P=Q!="_"&&e.isWordChar(Q)?"w":"o";if(P=="w"&&Q.toUpperCase()==Q&&(P="W"),O=="start")P!="o"?(O="in",R=P):M=q+x;else if(O=="in"&&R!=P){if(R=="w"&&P=="W"&&x<0&&q--,R=="W"&&P=="w"&&x>0)if(q==M+1){R="w";continue}else q--;break}}return r(w.line,q)}function i(m,w){m.extendSelectionsBy(function(x){return m.display.shift||m.doc.extend||x.empty()?n(m.doc,x.head,w):w<0?x.from():x.to()})}t.goSubwordLeft=function(m){i(m,-1)},t.goSubwordRight=function(m){i(m,1)},t.scrollLineUp=function(m){var w=m.getScrollInfo();if(!m.somethingSelected()){var x=m.lineAtHeight(w.top+w.clientHeight,"local");m.getCursor().line>=x&&m.execCommand("goLineUp")}m.scrollTo(null,w.top-m.defaultTextHeight())},t.scrollLineDown=function(m){var w=m.getScrollInfo();if(!m.somethingSelected()){var x=m.lineAtHeight(w.top,"local")+1;m.getCursor().line<=x&&m.execCommand("goLineDown")}m.scrollTo(null,w.top+m.defaultTextHeight())},t.splitSelectionByLine=function(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++)for(var O=w[L].from(),R=w[L].to(),M=O.line;M<=R.line;++M)R.line>O.line&&M==R.line&&R.ch==0||x.push({anchor:M==O.line?O:r(M,0),head:M==R.line?R:r(M)});m.setSelections(x,0)},t.singleSelectionTop=function(m){var w=m.listSelections()[0];m.setSelection(w.anchor,w.head,{scroll:!1})},t.selectLine=function(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++){var O=w[L];x.push({anchor:r(O.from().line,0),head:r(O.to().line+1,0)})}m.setSelections(x)};function o(m,w){if(m.isReadOnly())return e.Pass;m.operation(function(){for(var x=m.listSelections().length,L=[],O=-1,R=0;R<x;R++){var M=m.listSelections()[R].head;if(!(M.line<=O)){var q=r(M.line+(w?0:1),0);m.replaceRange(`
|
|
`,q,null,"+insertLine"),m.indentLine(q.line,null,!0),L.push({head:q,anchor:q}),O=M.line+1}}m.setSelections(L)}),m.execCommand("indentAuto")}t.insertLineAfter=function(m){return o(m,!1)},t.insertLineBefore=function(m){return o(m,!0)};function s(m,w){for(var x=w.ch,L=x,O=m.getLine(w.line);x&&e.isWordChar(O.charAt(x-1));)--x;for(;L<O.length&&e.isWordChar(O.charAt(L));)++L;return{from:r(w.line,x),to:r(w.line,L),word:O.slice(x,L)}}t.selectNextOccurrence=function(m){var w=m.getCursor("from"),x=m.getCursor("to"),L=m.state.sublimeFindFullWord==m.doc.sel;if(e.cmpPos(w,x)==0){var O=s(m,w);if(!O.word)return;m.setSelection(O.from,O.to),L=!0}else{var R=m.getRange(w,x),M=L?new RegExp("\\b"+R+"\\b"):R,q=m.getSearchCursor(M,x),z=q.findNext();if(z||(q=m.getSearchCursor(M,r(m.firstLine(),0)),z=q.findNext()),!z||d(m.listSelections(),q.from(),q.to()))return;m.addSelection(q.from(),q.to())}L&&(m.state.sublimeFindFullWord=m.doc.sel)},t.skipAndSelectNextOccurrence=function(m){var w=m.getCursor("anchor"),x=m.getCursor("head");t.selectNextOccurrence(m),e.cmpPos(w,x)!=0&&m.doc.setSelections(m.doc.listSelections().filter(function(L){return L.anchor!=w||L.head!=x}))};function l(m,w){for(var x=m.listSelections(),L=[],O=0;O<x.length;O++){var R=x[O],M=m.findPosV(R.anchor,w,"line",R.anchor.goalColumn),q=m.findPosV(R.head,w,"line",R.head.goalColumn);M.goalColumn=R.anchor.goalColumn!=null?R.anchor.goalColumn:m.cursorCoords(R.anchor,"div").left,q.goalColumn=R.head.goalColumn!=null?R.head.goalColumn:m.cursorCoords(R.head,"div").left;var z={anchor:M,head:q};L.push(R),L.push(z)}m.setSelections(L)}t.addCursorToPrevLine=function(m){l(m,-1)},t.addCursorToNextLine=function(m){l(m,1)};function d(m,w,x){for(var L=0;L<m.length;L++)if(e.cmpPos(m[L].from(),w)==0&&e.cmpPos(m[L].to(),x)==0)return!0;return!1}var h="(){}[]";function v(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++){var O=w[L],R=O.head,M=m.scanForBracket(R,-1);if(!M)return!1;for(;;){var q=m.scanForBracket(R,1);if(!q)return!1;if(q.ch==h.charAt(h.indexOf(M.ch)+1)){var z=r(M.pos.line,M.pos.ch+1);if(e.cmpPos(z,O.from())==0&&e.cmpPos(q.pos,O.to())==0){if(M=m.scanForBracket(M.pos,-1),!M)return!1}else{x.push({anchor:z,head:q.pos});break}}R=r(q.pos.line,q.pos.ch+1)}}return m.setSelections(x),!0}t.selectScope=function(m){v(m)||m.execCommand("selectAll")},t.selectBetweenBrackets=function(m){if(!v(m))return e.Pass};function y(m){return m?/\bpunctuation\b/.test(m)?m:void 0:null}t.goToBracket=function(m){m.extendSelectionsBy(function(w){var x=m.scanForBracket(w.head,1,y(m.getTokenTypeAt(w.head)));if(x&&e.cmpPos(x.pos,w.head)!=0)return x.pos;var L=m.scanForBracket(w.head,-1,y(m.getTokenTypeAt(r(w.head.line,w.head.ch+1))));return L&&r(L.pos.line,L.pos.ch+1)||w.head})},t.swapLineUp=function(m){if(m.isReadOnly())return e.Pass;for(var w=m.listSelections(),x=[],L=m.firstLine()-1,O=[],R=0;R<w.length;R++){var M=w[R],q=M.from().line-1,z=M.to().line;O.push({anchor:r(M.anchor.line-1,M.anchor.ch),head:r(M.head.line-1,M.head.ch)}),M.to().ch==0&&!M.empty()&&--z,q>L?x.push(q,z):x.length&&(x[x.length-1]=z),L=z}m.operation(function(){for(var B=0;B<x.length;B+=2){var Q=x[B],P=x[B+1],he=m.getLine(Q);m.replaceRange("",r(Q,0),r(Q+1,0),"+swapLine"),P>m.lastLine()?m.replaceRange(`
|
|
`+he,r(m.lastLine()),null,"+swapLine"):m.replaceRange(he+`
|
|
`,r(P,0),null,"+swapLine")}m.setSelections(O),m.scrollIntoView()})},t.swapLineDown=function(m){if(m.isReadOnly())return e.Pass;for(var w=m.listSelections(),x=[],L=m.lastLine()+1,O=w.length-1;O>=0;O--){var R=w[O],M=R.to().line+1,q=R.from().line;R.to().ch==0&&!R.empty()&&M--,M<L?x.push(M,q):x.length&&(x[x.length-1]=q),L=q}m.operation(function(){for(var z=x.length-2;z>=0;z-=2){var B=x[z],Q=x[z+1],P=m.getLine(B);B==m.lastLine()?m.replaceRange("",r(B-1),r(B),"+swapLine"):m.replaceRange("",r(B,0),r(B+1,0),"+swapLine"),m.replaceRange(P+`
|
|
`,r(Q,0),null,"+swapLine")}m.scrollIntoView()})},t.toggleCommentIndented=function(m){m.toggleComment({indent:!0})},t.joinLines=function(m){for(var w=m.listSelections(),x=[],L=0;L<w.length;L++){for(var O=w[L],R=O.from(),M=R.line,q=O.to().line;L<w.length-1&&w[L+1].from().line==q;)q=w[++L].to().line;x.push({start:M,end:q,anchor:!O.empty()&&R})}m.operation(function(){for(var z=0,B=[],Q=0;Q<x.length;Q++){for(var P=x[Q],he=P.anchor&&r(P.anchor.line-z,P.anchor.ch),xe,ge=P.start;ge<=P.end;ge++){var Fe=ge-z;ge==P.end&&(xe=r(Fe,m.getLine(Fe).length+1)),Fe<m.lastLine()&&(m.replaceRange(" ",r(Fe),r(Fe+1,/^\s*/.exec(m.getLine(Fe+1))[0].length)),++z)}B.push({anchor:he||xe,head:xe})}m.setSelections(B,0)})},t.duplicateLine=function(m){m.operation(function(){for(var w=m.listSelections().length,x=0;x<w;x++){var L=m.listSelections()[x];L.empty()?m.replaceRange(m.getLine(L.head.line)+`
|
|
`,r(L.head.line,0)):m.replaceRange(m.getRange(L.from(),L.to()),L.from())}m.scrollIntoView()})};function b(m,w,x){if(m.isReadOnly())return e.Pass;for(var L=m.listSelections(),O=[],R,M=0;M<L.length;M++){var q=L[M];if(!q.empty()){for(var z=q.from().line,B=q.to().line;M<L.length-1&&L[M+1].from().line==B;)B=L[++M].to().line;L[M].to().ch||B--,O.push(z,B)}}O.length?R=!0:O.push(m.firstLine(),m.lastLine()),m.operation(function(){for(var Q=[],P=0;P<O.length;P+=2){var he=O[P],xe=O[P+1],ge=r(he,0),Fe=r(xe),Le=m.getRange(ge,Fe,!1);w?Le.sort(function(He,Xe){return He<Xe?-x:He==Xe?0:x}):Le.sort(function(He,Xe){var Ve=He.toUpperCase(),At=Xe.toUpperCase();return Ve!=At&&(He=Ve,Xe=At),He<Xe?-x:He==Xe?0:x}),m.replaceRange(Le,ge,Fe),R&&Q.push({anchor:ge,head:r(xe+1,0)})}R&&m.setSelections(Q,0)})}t.sortLines=function(m){b(m,!0,1)},t.reverseSortLines=function(m){b(m,!0,-1)},t.sortLinesInsensitive=function(m){b(m,!1,1)},t.reverseSortLinesInsensitive=function(m){b(m,!1,-1)},t.nextBookmark=function(m){var w=m.state.sublimeBookmarks;if(w)for(;w.length;){var x=w.shift(),L=x.find();if(L)return w.push(x),m.setSelection(L.from,L.to)}},t.prevBookmark=function(m){var w=m.state.sublimeBookmarks;if(w)for(;w.length;){w.unshift(w.pop());var x=w[w.length-1].find();if(!x)w.pop();else return m.setSelection(x.from,x.to)}},t.toggleBookmark=function(m){for(var w=m.listSelections(),x=m.state.sublimeBookmarks||(m.state.sublimeBookmarks=[]),L=0;L<w.length;L++){for(var O=w[L].from(),R=w[L].to(),M=w[L].empty()?m.findMarksAt(O):m.findMarks(O,R),q=0;q<M.length;q++)if(M[q].sublimeBookmark){M[q].clear();for(var z=0;z<x.length;z++)x[z]==M[q]&&x.splice(z--,1);break}q==M.length&&x.push(m.markText(O,R,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(m){var w=m.state.sublimeBookmarks;if(w)for(var x=0;x<w.length;x++)w[x].clear();w.length=0},t.selectBookmarks=function(m){var w=m.state.sublimeBookmarks,x=[];if(w)for(var L=0;L<w.length;L++){var O=w[L].find();O?x.push({anchor:O.from,head:O.to}):w.splice(L--,0)}x.length&&m.setSelections(x,0)};function D(m,w){m.operation(function(){for(var x=m.listSelections(),L=[],O=[],R=0;R<x.length;R++){var M=x[R];M.empty()?(L.push(R),O.push("")):O.push(w(m.getRange(M.from(),M.to())))}m.replaceSelections(O,"around","case");for(var R=L.length-1,q;R>=0;R--){var M=x[L[R]];if(!(q&&e.cmpPos(M.head,q)>0)){var z=s(m,M.head);q=z.from,m.replaceRange(w(z.word),z.from,z.to)}}})}t.smartBackspace=function(m){if(m.somethingSelected())return e.Pass;m.operation(function(){for(var w=m.listSelections(),x=m.getOption("indentUnit"),L=w.length-1;L>=0;L--){var O=w[L].head,R=m.getRange({line:O.line,ch:0},O),M=e.countColumn(R,null,m.getOption("tabSize")),q=m.findPosH(O,-1,"char",!1);if(R&&!/\S/.test(R)&&M%x==0){var z=new r(O.line,e.findColumn(R,M-x,x));z.ch!=O.ch&&(q=z)}m.replaceRange("",q,O,"+delete")}})},t.delLineRight=function(m){m.operation(function(){for(var w=m.listSelections(),x=w.length-1;x>=0;x--)m.replaceRange("",w[x].anchor,r(w[x].to().line),"+delete");m.scrollIntoView()})},t.upcaseAtCursor=function(m){D(m,function(w){return w.toUpperCase()})},t.downcaseAtCursor=function(m){D(m,function(w){return w.toLowerCase()})},t.setSublimeMark=function(m){m.state.sublimeMark&&m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor())},t.selectToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&m.setSelection(m.getCursor(),w)},t.deleteToSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();if(w){var x=m.getCursor(),L=w;if(e.cmpPos(x,L)>0){var O=L;L=x,x=O}m.state.sublimeKilled=m.getRange(x,L),m.replaceRange("",x,L)}},t.swapWithSublimeMark=function(m){var w=m.state.sublimeMark&&m.state.sublimeMark.find();w&&(m.state.sublimeMark.clear(),m.state.sublimeMark=m.setBookmark(m.getCursor()),m.setCursor(w))},t.sublimeYank=function(m){m.state.sublimeKilled!=null&&m.replaceSelection(m.state.sublimeKilled,null,"paste")},t.showInCenter=function(m){var w=m.cursorCoords(null,"local");m.scrollTo(null,(w.top+w.bottom)/2-m.getScrollInfo().clientHeight/2)};function _(m){var w=m.getCursor("from"),x=m.getCursor("to");if(e.cmpPos(w,x)==0){var L=s(m,w);if(!L.word)return;w=L.from,x=L.to}return{from:w,to:x,query:m.getRange(w,x),word:L}}function k(m,w){var x=_(m);if(!!x){var L=x.query,O=m.getSearchCursor(L,w?x.to:x.from);(w?O.findNext():O.findPrevious())?m.setSelection(O.from(),O.to()):(O=m.getSearchCursor(L,w?r(m.firstLine(),0):m.clipPos(r(m.lastLine()))),(w?O.findNext():O.findPrevious())?m.setSelection(O.from(),O.to()):x.word&&m.setSelection(x.from,x.to))}}t.findUnder=function(m){k(m,!0)},t.findUnderPrevious=function(m){k(m,!1)},t.findAllUnder=function(m){var w=_(m);if(!!w){for(var x=m.getSearchCursor(w.query),L=[],O=-1;x.findNext();)L.push({anchor:x.from(),head:x.to()}),x.from().line<=w.from.line&&x.from().ch<=w.from.ch&&O++;m.setSelections(L,O)}};var T=e.keyMap;T.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(T.macSublime),T.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(T.pcSublime);var S=T.default==T.macDefault;T.sublime=S?T.macSublime:T.pcSublime})});var XV=G((YV,JV)=>{(function(e){typeof YV=="object"&&typeof JV=="object"?e(Wt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var t={},r=/[^\s\u00a0]/,n=e.Pos,i=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,v=1/0,y=this.listSelections(),b=null,D=y.length-1;D>=0;D--){var _=y[D].from(),k=y[D].to();_.line>=v||(k.line>=v&&(k=n(v,0)),v=_.line,b==null?h.uncomment(_,k,d)?b="un":(h.lineComment(_,k,d),b="line"):b=="un"?h.uncomment(_,k,d):h.lineComment(_,k,d))}});function s(d,h,v){return/\bstring\b/.test(d.getTokenTypeAt(n(h.line,0)))&&!/^[\'\"\`]/.test(v)}function l(d,h){var v=d.getMode();return v.useInnerComments===!1||!v.innerMode?v:d.getModeAt(h)}e.defineExtension("lineComment",function(d,h,v){v||(v=t);var y=this,b=l(y,d),D=y.getLine(d.line);if(!(D==null||s(y,d,D))){var _=v.lineComment||b.lineComment;if(!_){(v.blockCommentStart||b.blockCommentStart)&&(v.fullLines=!0,y.blockComment(d,h,v));return}var k=Math.min(h.ch!=0||h.line==d.line?h.line+1:h.line,y.lastLine()+1),T=v.padding==null?" ":v.padding,S=v.commentBlankLines||d.line==h.line;y.operation(function(){if(v.indent){for(var m=null,w=d.line;w<k;++w){var x=y.getLine(w),L=x.search(r)===-1?x:x.slice(0,o(x));(m==null||m.length>L.length)&&(m=L)}for(var w=d.line;w<k;++w){var x=y.getLine(w),O=m.length;!S&&!r.test(x)||(x.slice(0,O)!=m&&(O=o(x)),y.replaceRange(m+_+T,n(w,0),n(w,O)))}}else for(var w=d.line;w<k;++w)(S||r.test(y.getLine(w)))&&y.replaceRange(_+T,n(w,0))})}}),e.defineExtension("blockComment",function(d,h,v){v||(v=t);var y=this,b=l(y,d),D=v.blockCommentStart||b.blockCommentStart,_=v.blockCommentEnd||b.blockCommentEnd;if(!D||!_){(v.lineComment||b.lineComment)&&v.fullLines!=!1&&y.lineComment(d,h,v);return}if(!/\bcomment\b/.test(y.getTokenTypeAt(n(d.line,0)))){var k=Math.min(h.line,y.lastLine());k!=d.line&&h.ch==0&&r.test(y.getLine(k))&&--k;var T=v.padding==null?" ":v.padding;d.line>k||y.operation(function(){if(v.fullLines!=!1){var S=r.test(y.getLine(k));y.replaceRange(T+_,n(k)),y.replaceRange(D+T,n(d.line,0));var m=v.blockCommentLead||b.blockCommentLead;if(m!=null)for(var w=d.line+1;w<=k;++w)(w!=k||S)&&y.replaceRange(m+T,n(w,0))}else{var x=i(y.getCursor("to"),h)==0,L=!y.somethingSelected();y.replaceRange(_,h),x&&y.setSelection(L?h:y.getCursor("from"),h),y.replaceRange(D,d)}})}}),e.defineExtension("uncomment",function(d,h,v){v||(v=t);var y=this,b=l(y,d),D=Math.min(h.ch!=0||h.line==d.line?h.line:h.line-1,y.lastLine()),_=Math.min(d.line,D),k=v.lineComment||b.lineComment,T=[],S=v.padding==null?" ":v.padding,m;e:{if(!k)break e;for(var w=_;w<=D;++w){var x=y.getLine(w),L=x.indexOf(k);if(L>-1&&!/comment/.test(y.getTokenTypeAt(n(w,L+1)))&&(L=-1),L==-1&&r.test(x)||L>-1&&r.test(x.slice(0,L)))break e;T.push(x)}if(y.operation(function(){for(var Le=_;Le<=D;++Le){var He=T[Le-_],Xe=He.indexOf(k),Ve=Xe+k.length;Xe<0||(He.slice(Ve,Ve+S.length)==S&&(Ve+=S.length),m=!0,y.replaceRange("",n(Le,Xe),n(Le,Ve)))}}),m)return!0}var O=v.blockCommentStart||b.blockCommentStart,R=v.blockCommentEnd||b.blockCommentEnd;if(!O||!R)return!1;var M=v.blockCommentLead||b.blockCommentLead,q=y.getLine(_),z=q.indexOf(O);if(z==-1)return!1;var B=D==_?q:y.getLine(D),Q=B.indexOf(R,D==_?z+O.length:0),P=n(_,z+1),he=n(D,Q+1);if(Q==-1||!/comment/.test(y.getTokenTypeAt(P))||!/comment/.test(y.getTokenTypeAt(he))||y.getRange(P,he,`
|
|
`).indexOf(R)>-1)return!1;var xe=q.lastIndexOf(O,d.ch),ge=xe==-1?-1:q.slice(0,d.ch).indexOf(R,xe+O.length);if(xe!=-1&&ge!=-1&&ge+R.length!=d.ch)return!1;ge=B.indexOf(R,h.ch);var Fe=B.slice(h.ch).lastIndexOf(O,ge-h.ch);return xe=ge==-1||Fe==-1?-1:h.ch+Fe,ge!=-1&&xe!=-1&&xe!=h.ch?!1:(y.operation(function(){y.replaceRange("",n(D,Q-(S&&B.slice(Q-S.length,Q)==S?S.length:0)),n(D,Q+R.length));var Le=z+O.length;if(S&&q.slice(Le,Le+S.length)==S&&(Le+=S.length),y.replaceRange("",n(_,z),n(_,Le)),M)for(var He=_+1;He<=D;++He){var Xe=y.getLine(He),Ve=Xe.indexOf(M);if(!(Ve==-1||r.test(Xe.slice(0,Ve)))){var At=Ve+M.length;S&&Xe.slice(At,At+S.length)==S&&(At+=S.length),y.replaceRange("",n(He,Ve),n(He,At))}}}),!0)})})});var UO=G((ZV,$V)=>{(function(e){typeof ZV=="object"&&typeof $V=="object"?e(Wt(),qp(),Vp()):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(O,R){return typeof O=="string"?O=new RegExp(O.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),R?"gi":"g"):O.global||(O=new RegExp(O.source,O.ignoreCase?"gi":"g")),{token:function(M){O.lastIndex=M.pos;var q=O.exec(M.string);if(q&&q.index==M.pos)return M.pos+=q[0].length||1,"searching";q?M.pos=q.index:M.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(O){return O.state.search||(O.state.search=new r)}function i(O){return typeof O=="string"&&O==O.toLowerCase()}function o(O,R,M){return O.getSearchCursor(R,M,{caseFold:i(R),multiline:!0})}function s(O,R,M,q,z){O.openDialog(R,q,{value:M,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){_(O)},onKeyDown:z,bottom:O.options.search.bottom})}function l(O,R,M,q,z){O.openDialog?O.openDialog(R,z,{value:q,selectValueOnOpen:!0,bottom:O.options.search.bottom}):z(prompt(M,q))}function d(O,R,M,q){O.openConfirm?O.openConfirm(R,q):confirm(M)&&q[0]()}function h(O){return O.replace(/\\([nrt\\])/g,function(R,M){return M=="n"?`
|
|
`:M=="r"?"\r":M=="t"?" ":M=="\\"?"\\":R})}function v(O){var R=O.match(/^\/(.*)\/([a-z]*)$/);if(R)try{O=new RegExp(R[1],R[2].indexOf("i")==-1?"":"i")}catch(M){}else O=h(O);return(typeof O=="string"?O=="":O.test(""))&&(O=/x^/),O}function y(O,R,M){R.queryText=M,R.query=v(M),O.removeOverlay(R.overlay,i(R.query)),R.overlay=t(R.query,i(R.query)),O.addOverlay(R.overlay),O.showMatchesOnScrollbar&&(R.annotate&&(R.annotate.clear(),R.annotate=null),R.annotate=O.showMatchesOnScrollbar(R.query,i(R.query)))}function b(O,R,M,q){var z=n(O);if(z.query)return D(O,R);var B=O.getSelection()||z.lastQuery;if(B instanceof RegExp&&B.source=="x^"&&(B=null),M&&O.openDialog){var Q=null,P=function(he,xe){e.e_stop(xe),!!he&&(he!=z.queryText&&(y(O,z,he),z.posFrom=z.posTo=O.getCursor()),Q&&(Q.style.opacity=1),D(O,xe.shiftKey,function(ge,Fe){var Le;Fe.line<3&&document.querySelector&&(Le=O.display.wrapper.querySelector(".CodeMirror-dialog"))&&Le.getBoundingClientRect().bottom-4>O.cursorCoords(Fe,"window").top&&((Q=Le).style.opacity=.4)}))};s(O,T(O),B,P,function(he,xe){var ge=e.keyName(he),Fe=O.getOption("extraKeys"),Le=Fe&&Fe[ge]||e.keyMap[O.getOption("keyMap")][ge];Le=="findNext"||Le=="findPrev"||Le=="findPersistentNext"||Le=="findPersistentPrev"?(e.e_stop(he),y(O,n(O),xe),O.execCommand(Le)):(Le=="find"||Le=="findPersistent")&&(e.e_stop(he),P(xe,he))}),q&&B&&(y(O,z,B),D(O,R))}else l(O,T(O),"Search for:",B,function(he){he&&!z.query&&O.operation(function(){y(O,z,he),z.posFrom=z.posTo=O.getCursor(),D(O,R)})})}function D(O,R,M){O.operation(function(){var q=n(O),z=o(O,q.query,R?q.posFrom:q.posTo);!z.find(R)&&(z=o(O,q.query,R?e.Pos(O.lastLine()):e.Pos(O.firstLine(),0)),!z.find(R))||(O.setSelection(z.from(),z.to()),O.scrollIntoView({from:z.from(),to:z.to()},20),q.posFrom=z.from(),q.posTo=z.to(),M&&M(z.from(),z.to()))})}function _(O){O.operation(function(){var R=n(O);R.lastQuery=R.query,!!R.query&&(R.query=R.queryText=null,O.removeOverlay(R.overlay),R.annotate&&(R.annotate.clear(),R.annotate=null))})}function k(O,R){var M=O?document.createElement(O):document.createDocumentFragment();for(var q in R)M[q]=R[q];for(var z=2;z<arguments.length;z++){var B=arguments[z];M.appendChild(typeof B=="string"?document.createTextNode(B):B)}return M}function T(O){var R=k("label",{className:"CodeMirror-search-label"},O.phrase("Search:"),k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return R.setAttribute("for","CodeMirror-search-field"),k("",null,R," ",k("span",{style:"color: #666",className:"CodeMirror-search-hint"},O.phrase("(Use /re/ syntax for regexp search)")))}function S(O){return k("",null," ",k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",k("span",{style:"color: #666",className:"CodeMirror-search-hint"},O.phrase("(Use /re/ syntax for regexp search)")))}function m(O){return k("",null,k("span",{className:"CodeMirror-search-label"},O.phrase("With:"))," ",k("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function w(O){return k("",null,k("span",{className:"CodeMirror-search-label"},O.phrase("Replace?"))," ",k("button",{},O.phrase("Yes"))," ",k("button",{},O.phrase("No"))," ",k("button",{},O.phrase("All"))," ",k("button",{},O.phrase("Stop")))}function x(O,R,M){O.operation(function(){for(var q=o(O,R);q.findNext();)if(typeof R!="string"){var z=O.getRange(q.from(),q.to()).match(R);q.replace(M.replace(/\$(\d)/g,function(B,Q){return z[Q]}))}else q.replace(M)})}function L(O,R){if(!O.getOption("readOnly")){var M=O.getSelection()||n(O).lastQuery,q=R?O.phrase("Replace all:"):O.phrase("Replace:"),z=k("",null,k("span",{className:"CodeMirror-search-label"},q),S(O));l(O,z,q,M,function(B){!B||(B=v(B),l(O,m(O),O.phrase("Replace with:"),"",function(Q){if(Q=h(Q),R)x(O,B,Q);else{_(O);var P=o(O,B,O.getCursor("from")),he=function(){var ge=P.from(),Fe;!(Fe=P.findNext())&&(P=o(O,B),!(Fe=P.findNext())||ge&&P.from().line==ge.line&&P.from().ch==ge.ch)||(O.setSelection(P.from(),P.to()),O.scrollIntoView({from:P.from(),to:P.to()}),d(O,w(O),O.phrase("Replace?"),[function(){xe(Fe)},he,function(){x(O,B,Q)}]))},xe=function(ge){P.replace(typeof B=="string"?Q:Q.replace(/\$(\d)/g,function(Fe,Le){return ge[Le]})),he()};he()}}))})}}e.commands.find=function(O){_(O),b(O)},e.commands.findPersistent=function(O){_(O),b(O,!1,!0)},e.commands.findPersistentNext=function(O){b(O,!1,!0,!0)},e.commands.findPersistentPrev=function(O){b(O,!0,!0,!0)},e.commands.findNext=b,e.commands.findPrev=function(O){b(O,!0)},e.commands.clearSearch=_,e.commands.replace=L,e.commands.replaceAll=function(O){L(O,!0)}})});var QO=G(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.hintList=ea.objectValues=ea.forEachState=ea.getFieldDef=ea.getDefinitionState=void 0;var Y$=ht(),Fc=vi();function J$(e){let t;return eU(e,r=>{switch(r.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=r;break}}),t}ea.getDefinitionState=J$;function X$(e,t,r){return r===Fc.SchemaMetaFieldDef.name&&e.getQueryType()===t?Fc.SchemaMetaFieldDef:r===Fc.TypeMetaFieldDef.name&&e.getQueryType()===t?Fc.TypeMetaFieldDef:r===Fc.TypeNameMetaFieldDef.name&&(0,Y$.isCompositeType)(t)?Fc.TypeNameMetaFieldDef:"getFields"in t?t.getFields()[r]:null}ea.getFieldDef=X$;function eU(e,t){let r=[],n=e;for(;n==null?void 0:n.kind;)r.push(n),n=n.prevState;for(let i=r.length-1;i>=0;i--)t(r[i])}ea.forEachState=eU;function Z$(e){let t=Object.keys(e),r=t.length,n=new Array(r);for(let i=0;i<r;++i)n[i]=e[t[i]];return n}ea.objectValues=Z$;function $$(e,t){return eee(t,tU(e.string))}ea.hintList=$$;function eee(e,t){if(!t)return GO(e,n=>!n.isDeprecated);let r=e.map(n=>({proximity:tee(tU(n.label),t),entry:n}));return GO(GO(r,n=>n.proximity<=2),n=>!n.entry.isDeprecated).sort((n,i)=>(n.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||n.proximity-i.proximity||n.entry.label.length-i.entry.label.length).map(n=>n.entry)}function GO(e,t){let r=e.filter(t);return r.length===0?e:r}function tU(e){return e.toLowerCase().replace(/\W/g,"")}function tee(e,t){let r=ree(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function ree(e,t){let r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){let l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}});var nU=G((rU,iy)=>{(function(e){if(typeof iy=="object"&&typeof iy.exports=="object"){var t=e(tx,rU);t!==void 0&&(iy.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.WorkspaceFolder=t.InlayHint=t.InlayHintLabelPart=t.InlayHintKind=t.InlineValueContext=t.InlineValueEvaluatableExpression=t.InlineValueVariableLookup=t.InlineValueText=t.SemanticTokens=t.SemanticTokenModifiers=t.SemanticTokenTypes=t.SelectionRange=t.DocumentLink=t.FormattingOptions=t.CodeLens=t.CodeAction=t.CodeActionContext=t.CodeActionTriggerKind=t.CodeActionKind=t.DocumentSymbol=t.WorkspaceSymbol=t.SymbolInformation=t.SymbolTag=t.SymbolKind=t.DocumentHighlight=t.DocumentHighlightKind=t.SignatureInformation=t.ParameterInformation=t.Hover=t.MarkedString=t.CompletionList=t.CompletionItem=t.CompletionItemLabelDetails=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=t.URI=t.DocumentUri=void 0;var r;(function(F){function Y(J){return typeof J=="string"}F.is=Y})(r=t.DocumentUri||(t.DocumentUri={}));var n;(function(F){function Y(J){return typeof J=="string"}F.is=Y})(n=t.URI||(t.URI={}));var i;(function(F){F.MIN_VALUE=-2147483648,F.MAX_VALUE=2147483647;function Y(J){return typeof J=="number"&&F.MIN_VALUE<=J&&J<=F.MAX_VALUE}F.is=Y})(i=t.integer||(t.integer={}));var o;(function(F){F.MIN_VALUE=0,F.MAX_VALUE=2147483647;function Y(J){return typeof J=="number"&&F.MIN_VALUE<=J&&J<=F.MAX_VALUE}F.is=Y})(o=t.uinteger||(t.uinteger={}));var s;(function(F){function Y(V,A){return V===Number.MAX_VALUE&&(V=o.MAX_VALUE),A===Number.MAX_VALUE&&(A=o.MAX_VALUE),{line:V,character:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.uinteger(A.line)&&ee.uinteger(A.character)}F.is=J})(s=t.Position||(t.Position={}));var l;(function(F){function Y(V,A,re,ue){if(ee.uinteger(V)&&ee.uinteger(A)&&ee.uinteger(re)&&ee.uinteger(ue))return{start:s.create(V,A),end:s.create(re,ue)};if(s.is(V)&&s.is(A))return{start:V,end:A};throw new Error("Range#create called with invalid arguments[".concat(V,", ").concat(A,", ").concat(re,", ").concat(ue,"]"))}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&s.is(A.start)&&s.is(A.end)}F.is=J})(l=t.Range||(t.Range={}));var d;(function(F){function Y(V,A){return{uri:V,range:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.range)&&(ee.string(A.uri)||ee.undefined(A.uri))}F.is=J})(d=t.Location||(t.Location={}));var h;(function(F){function Y(V,A,re,ue){return{targetUri:V,targetRange:A,targetSelectionRange:re,originSelectionRange:ue}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.targetRange)&&ee.string(A.targetUri)&&l.is(A.targetSelectionRange)&&(l.is(A.originSelectionRange)||ee.undefined(A.originSelectionRange))}F.is=J})(h=t.LocationLink||(t.LocationLink={}));var v;(function(F){function Y(V,A,re,ue){return{red:V,green:A,blue:re,alpha:ue}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.numberRange(A.red,0,1)&&ee.numberRange(A.green,0,1)&&ee.numberRange(A.blue,0,1)&&ee.numberRange(A.alpha,0,1)}F.is=J})(v=t.Color||(t.Color={}));var y;(function(F){function Y(V,A){return{range:V,color:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.range)&&v.is(A.color)}F.is=J})(y=t.ColorInformation||(t.ColorInformation={}));var b;(function(F){function Y(V,A,re){return{label:V,textEdit:A,additionalTextEdits:re}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.string(A.label)&&(ee.undefined(A.textEdit)||L.is(A))&&(ee.undefined(A.additionalTextEdits)||ee.typedArray(A.additionalTextEdits,L.is))}F.is=J})(b=t.ColorPresentation||(t.ColorPresentation={}));var D;(function(F){F.Comment="comment",F.Imports="imports",F.Region="region"})(D=t.FoldingRangeKind||(t.FoldingRangeKind={}));var _;(function(F){function Y(V,A,re,ue,Ze,Ut){var Rt={startLine:V,endLine:A};return ee.defined(re)&&(Rt.startCharacter=re),ee.defined(ue)&&(Rt.endCharacter=ue),ee.defined(Ze)&&(Rt.kind=Ze),ee.defined(Ut)&&(Rt.collapsedText=Ut),Rt}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.uinteger(A.startLine)&&ee.uinteger(A.startLine)&&(ee.undefined(A.startCharacter)||ee.uinteger(A.startCharacter))&&(ee.undefined(A.endCharacter)||ee.uinteger(A.endCharacter))&&(ee.undefined(A.kind)||ee.string(A.kind))}F.is=J})(_=t.FoldingRange||(t.FoldingRange={}));var k;(function(F){function Y(V,A){return{location:V,message:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&d.is(A.location)&&ee.string(A.message)}F.is=J})(k=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var T;(function(F){F.Error=1,F.Warning=2,F.Information=3,F.Hint=4})(T=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var S;(function(F){F.Unnecessary=1,F.Deprecated=2})(S=t.DiagnosticTag||(t.DiagnosticTag={}));var m;(function(F){function Y(J){var V=J;return ee.objectLiteral(V)&&ee.string(V.href)}F.is=Y})(m=t.CodeDescription||(t.CodeDescription={}));var w;(function(F){function Y(V,A,re,ue,Ze,Ut){var Rt={range:V,message:A};return ee.defined(re)&&(Rt.severity=re),ee.defined(ue)&&(Rt.code=ue),ee.defined(Ze)&&(Rt.source=Ze),ee.defined(Ut)&&(Rt.relatedInformation=Ut),Rt}F.create=Y;function J(V){var A,re=V;return ee.defined(re)&&l.is(re.range)&&ee.string(re.message)&&(ee.number(re.severity)||ee.undefined(re.severity))&&(ee.integer(re.code)||ee.string(re.code)||ee.undefined(re.code))&&(ee.undefined(re.codeDescription)||ee.string((A=re.codeDescription)===null||A===void 0?void 0:A.href))&&(ee.string(re.source)||ee.undefined(re.source))&&(ee.undefined(re.relatedInformation)||ee.typedArray(re.relatedInformation,k.is))}F.is=J})(w=t.Diagnostic||(t.Diagnostic={}));var x;(function(F){function Y(V,A){for(var re=[],ue=2;ue<arguments.length;ue++)re[ue-2]=arguments[ue];var Ze={title:V,command:A};return ee.defined(re)&&re.length>0&&(Ze.arguments=re),Ze}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.title)&&ee.string(A.command)}F.is=J})(x=t.Command||(t.Command={}));var L;(function(F){function Y(re,ue){return{range:re,newText:ue}}F.replace=Y;function J(re,ue){return{range:{start:re,end:re},newText:ue}}F.insert=J;function V(re){return{range:re,newText:""}}F.del=V;function A(re){var ue=re;return ee.objectLiteral(ue)&&ee.string(ue.newText)&&l.is(ue.range)}F.is=A})(L=t.TextEdit||(t.TextEdit={}));var O;(function(F){function Y(V,A,re){var ue={label:V};return A!==void 0&&(ue.needsConfirmation=A),re!==void 0&&(ue.description=re),ue}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&ee.string(A.label)&&(ee.boolean(A.needsConfirmation)||A.needsConfirmation===void 0)&&(ee.string(A.description)||A.description===void 0)}F.is=J})(O=t.ChangeAnnotation||(t.ChangeAnnotation={}));var R;(function(F){function Y(J){var V=J;return ee.string(V)}F.is=Y})(R=t.ChangeAnnotationIdentifier||(t.ChangeAnnotationIdentifier={}));var M;(function(F){function Y(re,ue,Ze){return{range:re,newText:ue,annotationId:Ze}}F.replace=Y;function J(re,ue,Ze){return{range:{start:re,end:re},newText:ue,annotationId:Ze}}F.insert=J;function V(re,ue){return{range:re,newText:"",annotationId:ue}}F.del=V;function A(re){var ue=re;return L.is(ue)&&(O.is(ue.annotationId)||R.is(ue.annotationId))}F.is=A})(M=t.AnnotatedTextEdit||(t.AnnotatedTextEdit={}));var q;(function(F){function Y(V,A){return{textDocument:V,edits:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&He.is(A.textDocument)&&Array.isArray(A.edits)}F.is=J})(q=t.TextDocumentEdit||(t.TextDocumentEdit={}));var z;(function(F){function Y(V,A,re){var ue={kind:"create",uri:V};return A!==void 0&&(A.overwrite!==void 0||A.ignoreIfExists!==void 0)&&(ue.options=A),re!==void 0&&(ue.annotationId=re),ue}F.create=Y;function J(V){var A=V;return A&&A.kind==="create"&&ee.string(A.uri)&&(A.options===void 0||(A.options.overwrite===void 0||ee.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||ee.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(z=t.CreateFile||(t.CreateFile={}));var B;(function(F){function Y(V,A,re,ue){var Ze={kind:"rename",oldUri:V,newUri:A};return re!==void 0&&(re.overwrite!==void 0||re.ignoreIfExists!==void 0)&&(Ze.options=re),ue!==void 0&&(Ze.annotationId=ue),Ze}F.create=Y;function J(V){var A=V;return A&&A.kind==="rename"&&ee.string(A.oldUri)&&ee.string(A.newUri)&&(A.options===void 0||(A.options.overwrite===void 0||ee.boolean(A.options.overwrite))&&(A.options.ignoreIfExists===void 0||ee.boolean(A.options.ignoreIfExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(B=t.RenameFile||(t.RenameFile={}));var Q;(function(F){function Y(V,A,re){var ue={kind:"delete",uri:V};return A!==void 0&&(A.recursive!==void 0||A.ignoreIfNotExists!==void 0)&&(ue.options=A),re!==void 0&&(ue.annotationId=re),ue}F.create=Y;function J(V){var A=V;return A&&A.kind==="delete"&&ee.string(A.uri)&&(A.options===void 0||(A.options.recursive===void 0||ee.boolean(A.options.recursive))&&(A.options.ignoreIfNotExists===void 0||ee.boolean(A.options.ignoreIfNotExists)))&&(A.annotationId===void 0||R.is(A.annotationId))}F.is=J})(Q=t.DeleteFile||(t.DeleteFile={}));var P;(function(F){function Y(J){var V=J;return V&&(V.changes!==void 0||V.documentChanges!==void 0)&&(V.documentChanges===void 0||V.documentChanges.every(function(A){return ee.string(A.kind)?z.is(A)||B.is(A)||Q.is(A):q.is(A)}))}F.is=Y})(P=t.WorkspaceEdit||(t.WorkspaceEdit={}));var he=function(){function F(Y,J){this.edits=Y,this.changeAnnotations=J}return F.prototype.insert=function(Y,J,V){var A,re;if(V===void 0?A=L.insert(Y,J):R.is(V)?(re=V,A=M.insert(Y,J,V)):(this.assertChangeAnnotations(this.changeAnnotations),re=this.changeAnnotations.manage(V),A=M.insert(Y,J,re)),this.edits.push(A),re!==void 0)return re},F.prototype.replace=function(Y,J,V){var A,re;if(V===void 0?A=L.replace(Y,J):R.is(V)?(re=V,A=M.replace(Y,J,V)):(this.assertChangeAnnotations(this.changeAnnotations),re=this.changeAnnotations.manage(V),A=M.replace(Y,J,re)),this.edits.push(A),re!==void 0)return re},F.prototype.delete=function(Y,J){var V,A;if(J===void 0?V=L.del(Y):R.is(J)?(A=J,V=M.del(Y,J)):(this.assertChangeAnnotations(this.changeAnnotations),A=this.changeAnnotations.manage(J),V=M.del(Y,A)),this.edits.push(V),A!==void 0)return A},F.prototype.add=function(Y){this.edits.push(Y)},F.prototype.all=function(){return this.edits},F.prototype.clear=function(){this.edits.splice(0,this.edits.length)},F.prototype.assertChangeAnnotations=function(Y){if(Y===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},F}(),xe=function(){function F(Y){this._annotations=Y===void 0?Object.create(null):Y,this._counter=0,this._size=0}return F.prototype.all=function(){return this._annotations},Object.defineProperty(F.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),F.prototype.manage=function(Y,J){var V;if(R.is(Y)?V=Y:(V=this.nextId(),J=Y),this._annotations[V]!==void 0)throw new Error("Id ".concat(V," is already in use."));if(J===void 0)throw new Error("No annotation provided for id ".concat(V));return this._annotations[V]=J,this._size++,V},F.prototype.nextId=function(){return this._counter++,this._counter.toString()},F}(),ge=function(){function F(Y){var J=this;this._textEditChanges=Object.create(null),Y!==void 0?(this._workspaceEdit=Y,Y.documentChanges?(this._changeAnnotations=new xe(Y.changeAnnotations),Y.changeAnnotations=this._changeAnnotations.all(),Y.documentChanges.forEach(function(V){if(q.is(V)){var A=new he(V.edits,J._changeAnnotations);J._textEditChanges[V.textDocument.uri]=A}})):Y.changes&&Object.keys(Y.changes).forEach(function(V){var A=new he(Y.changes[V]);J._textEditChanges[V]=A})):this._workspaceEdit={}}return Object.defineProperty(F.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}),F.prototype.getTextEditChange=function(Y){if(He.is(Y)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var J={uri:Y.uri,version:Y.version},V=this._textEditChanges[J.uri];if(!V){var A=[],re={textDocument:J,edits:A};this._workspaceEdit.documentChanges.push(re),V=new he(A,this._changeAnnotations),this._textEditChanges[J.uri]=V}return V}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var V=this._textEditChanges[Y];if(!V){var A=[];this._workspaceEdit.changes[Y]=A,V=new he(A),this._textEditChanges[Y]=V}return V}},F.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new xe,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},F.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},F.prototype.createFile=function(Y,J,V){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;O.is(J)||R.is(J)?A=J:V=J;var re,ue;if(A===void 0?re=z.create(Y,V):(ue=R.is(A)?A:this._changeAnnotations.manage(A),re=z.create(Y,V,ue)),this._workspaceEdit.documentChanges.push(re),ue!==void 0)return ue},F.prototype.renameFile=function(Y,J,V,A){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var re;O.is(V)||R.is(V)?re=V:A=V;var ue,Ze;if(re===void 0?ue=B.create(Y,J,A):(Ze=R.is(re)?re:this._changeAnnotations.manage(re),ue=B.create(Y,J,A,Ze)),this._workspaceEdit.documentChanges.push(ue),Ze!==void 0)return Ze},F.prototype.deleteFile=function(Y,J,V){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var A;O.is(J)||R.is(J)?A=J:V=J;var re,ue;if(A===void 0?re=Q.create(Y,V):(ue=R.is(A)?A:this._changeAnnotations.manage(A),re=Q.create(Y,V,ue)),this._workspaceEdit.documentChanges.push(re),ue!==void 0)return ue},F}();t.WorkspaceChange=ge;var Fe;(function(F){function Y(V){return{uri:V}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)}F.is=J})(Fe=t.TextDocumentIdentifier||(t.TextDocumentIdentifier={}));var Le;(function(F){function Y(V,A){return{uri:V,version:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&ee.integer(A.version)}F.is=J})(Le=t.VersionedTextDocumentIdentifier||(t.VersionedTextDocumentIdentifier={}));var He;(function(F){function Y(V,A){return{uri:V,version:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&(A.version===null||ee.integer(A.version))}F.is=J})(He=t.OptionalVersionedTextDocumentIdentifier||(t.OptionalVersionedTextDocumentIdentifier={}));var Xe;(function(F){function Y(V,A,re,ue){return{uri:V,languageId:A,version:re,text:ue}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.string(A.uri)&&ee.string(A.languageId)&&ee.integer(A.version)&&ee.string(A.text)}F.is=J})(Xe=t.TextDocumentItem||(t.TextDocumentItem={}));var Ve;(function(F){F.PlainText="plaintext",F.Markdown="markdown";function Y(J){var V=J;return V===F.PlainText||V===F.Markdown}F.is=Y})(Ve=t.MarkupKind||(t.MarkupKind={}));var At;(function(F){function Y(J){var V=J;return ee.objectLiteral(J)&&Ve.is(V.kind)&&ee.string(V.value)}F.is=Y})(At=t.MarkupContent||(t.MarkupContent={}));var Ot;(function(F){F.Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25})(Ot=t.CompletionItemKind||(t.CompletionItemKind={}));var Ie;(function(F){F.PlainText=1,F.Snippet=2})(Ie=t.InsertTextFormat||(t.InsertTextFormat={}));var te;(function(F){F.Deprecated=1})(te=t.CompletionItemTag||(t.CompletionItemTag={}));var ce;(function(F){function Y(V,A,re){return{newText:V,insert:A,replace:re}}F.create=Y;function J(V){var A=V;return A&&ee.string(A.newText)&&l.is(A.insert)&&l.is(A.replace)}F.is=J})(ce=t.InsertReplaceEdit||(t.InsertReplaceEdit={}));var we;(function(F){F.asIs=1,F.adjustIndentation=2})(we=t.InsertTextMode||(t.InsertTextMode={}));var ot;(function(F){function Y(J){var V=J;return V&&(ee.string(V.detail)||V.detail===void 0)&&(ee.string(V.description)||V.description===void 0)}F.is=Y})(ot=t.CompletionItemLabelDetails||(t.CompletionItemLabelDetails={}));var Me;(function(F){function Y(J){return{label:J}}F.create=Y})(Me=t.CompletionItem||(t.CompletionItem={}));var Qe;(function(F){function Y(J,V){return{items:J||[],isIncomplete:!!V}}F.create=Y})(Qe=t.CompletionList||(t.CompletionList={}));var ze;(function(F){function Y(V){return V.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}F.fromPlainText=Y;function J(V){var A=V;return ee.string(A)||ee.objectLiteral(A)&&ee.string(A.language)&&ee.string(A.value)}F.is=J})(ze=t.MarkedString||(t.MarkedString={}));var mt;(function(F){function Y(J){var V=J;return!!V&&ee.objectLiteral(V)&&(At.is(V.contents)||ze.is(V.contents)||ee.typedArray(V.contents,ze.is))&&(J.range===void 0||l.is(J.range))}F.is=Y})(mt=t.Hover||(t.Hover={}));var oe;(function(F){function Y(J,V){return V?{label:J,documentation:V}:{label:J}}F.create=Y})(oe=t.ParameterInformation||(t.ParameterInformation={}));var me;(function(F){function Y(J,V){for(var A=[],re=2;re<arguments.length;re++)A[re-2]=arguments[re];var ue={label:J};return ee.defined(V)&&(ue.documentation=V),ee.defined(A)?ue.parameters=A:ue.parameters=[],ue}F.create=Y})(me=t.SignatureInformation||(t.SignatureInformation={}));var fe;(function(F){F.Text=1,F.Read=2,F.Write=3})(fe=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var se;(function(F){function Y(J,V){var A={range:J};return ee.number(V)&&(A.kind=V),A}F.create=Y})(se=t.DocumentHighlight||(t.DocumentHighlight={}));var Ue;(function(F){F.File=1,F.Module=2,F.Namespace=3,F.Package=4,F.Class=5,F.Method=6,F.Property=7,F.Field=8,F.Constructor=9,F.Enum=10,F.Interface=11,F.Function=12,F.Variable=13,F.Constant=14,F.String=15,F.Number=16,F.Boolean=17,F.Array=18,F.Object=19,F.Key=20,F.Null=21,F.EnumMember=22,F.Struct=23,F.Event=24,F.Operator=25,F.TypeParameter=26})(Ue=t.SymbolKind||(t.SymbolKind={}));var at;(function(F){F.Deprecated=1})(at=t.SymbolTag||(t.SymbolTag={}));var ct;(function(F){function Y(J,V,A,re,ue){var Ze={name:J,kind:V,location:{uri:re,range:A}};return ue&&(Ze.containerName=ue),Ze}F.create=Y})(ct=t.SymbolInformation||(t.SymbolInformation={}));var st;(function(F){function Y(J,V,A,re){return re!==void 0?{name:J,kind:V,location:{uri:A,range:re}}:{name:J,kind:V,location:{uri:A}}}F.create=Y})(st=t.WorkspaceSymbol||(t.WorkspaceSymbol={}));var Dn;(function(F){function Y(V,A,re,ue,Ze,Ut){var Rt={name:V,detail:A,kind:re,range:ue,selectionRange:Ze};return Ut!==void 0&&(Rt.children=Ut),Rt}F.create=Y;function J(V){var A=V;return A&&ee.string(A.name)&&ee.number(A.kind)&&l.is(A.range)&&l.is(A.selectionRange)&&(A.detail===void 0||ee.string(A.detail))&&(A.deprecated===void 0||ee.boolean(A.deprecated))&&(A.children===void 0||Array.isArray(A.children))&&(A.tags===void 0||Array.isArray(A.tags))}F.is=J})(Dn=t.DocumentSymbol||(t.DocumentSymbol={}));var Ei;(function(F){F.Empty="",F.QuickFix="quickfix",F.Refactor="refactor",F.RefactorExtract="refactor.extract",F.RefactorInline="refactor.inline",F.RefactorRewrite="refactor.rewrite",F.Source="source",F.SourceOrganizeImports="source.organizeImports",F.SourceFixAll="source.fixAll"})(Ei=t.CodeActionKind||(t.CodeActionKind={}));var dn;(function(F){F.Invoked=1,F.Automatic=2})(dn=t.CodeActionTriggerKind||(t.CodeActionTriggerKind={}));var Hn;(function(F){function Y(V,A,re){var ue={diagnostics:V};return A!=null&&(ue.only=A),re!=null&&(ue.triggerKind=re),ue}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.typedArray(A.diagnostics,w.is)&&(A.only===void 0||ee.typedArray(A.only,ee.string))&&(A.triggerKind===void 0||A.triggerKind===dn.Invoked||A.triggerKind===dn.Automatic)}F.is=J})(Hn=t.CodeActionContext||(t.CodeActionContext={}));var pn;(function(F){function Y(V,A,re){var ue={title:V},Ze=!0;return typeof A=="string"?(Ze=!1,ue.kind=A):x.is(A)?ue.command=A:ue.edit=A,Ze&&re!==void 0&&(ue.kind=re),ue}F.create=Y;function J(V){var A=V;return A&&ee.string(A.title)&&(A.diagnostics===void 0||ee.typedArray(A.diagnostics,w.is))&&(A.kind===void 0||ee.string(A.kind))&&(A.edit!==void 0||A.command!==void 0)&&(A.command===void 0||x.is(A.command))&&(A.isPreferred===void 0||ee.boolean(A.isPreferred))&&(A.edit===void 0||P.is(A.edit))}F.is=J})(pn=t.CodeAction||(t.CodeAction={}));var Pi;(function(F){function Y(V,A){var re={range:V};return ee.defined(A)&&(re.data=A),re}F.create=Y;function J(V){var A=V;return ee.defined(A)&&l.is(A.range)&&(ee.undefined(A.command)||x.is(A.command))}F.is=J})(Pi=t.CodeLens||(t.CodeLens={}));var Qr;(function(F){function Y(V,A){return{tabSize:V,insertSpaces:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&ee.uinteger(A.tabSize)&&ee.boolean(A.insertSpaces)}F.is=J})(Qr=t.FormattingOptions||(t.FormattingOptions={}));var Kt;(function(F){function Y(V,A,re){return{range:V,target:A,data:re}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&l.is(A.range)&&(ee.undefined(A.target)||ee.string(A.target))}F.is=J})(Kt=t.DocumentLink||(t.DocumentLink={}));var hn;(function(F){function Y(V,A){return{range:V,parent:A}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&l.is(A.range)&&(A.parent===void 0||F.is(A.parent))}F.is=J})(hn=t.SelectionRange||(t.SelectionRange={}));var zn;(function(F){F.namespace="namespace",F.type="type",F.class="class",F.enum="enum",F.interface="interface",F.struct="struct",F.typeParameter="typeParameter",F.parameter="parameter",F.variable="variable",F.property="property",F.enumMember="enumMember",F.event="event",F.function="function",F.method="method",F.macro="macro",F.keyword="keyword",F.modifier="modifier",F.comment="comment",F.string="string",F.number="number",F.regexp="regexp",F.operator="operator",F.decorator="decorator"})(zn=t.SemanticTokenTypes||(t.SemanticTokenTypes={}));var vr;(function(F){F.declaration="declaration",F.definition="definition",F.readonly="readonly",F.static="static",F.deprecated="deprecated",F.abstract="abstract",F.async="async",F.modification="modification",F.documentation="documentation",F.defaultLibrary="defaultLibrary"})(vr=t.SemanticTokenModifiers||(t.SemanticTokenModifiers={}));var Ro;(function(F){function Y(J){var V=J;return ee.objectLiteral(V)&&(V.resultId===void 0||typeof V.resultId=="string")&&Array.isArray(V.data)&&(V.data.length===0||typeof V.data[0]=="number")}F.is=Y})(Ro=t.SemanticTokens||(t.SemanticTokens={}));var xn;(function(F){function Y(V,A){return{range:V,text:A}}F.create=Y;function J(V){var A=V;return A!=null&&l.is(A.range)&&ee.string(A.text)}F.is=J})(xn=t.InlineValueText||(t.InlineValueText={}));var Ws;(function(F){function Y(V,A,re){return{range:V,variableName:A,caseSensitiveLookup:re}}F.create=Y;function J(V){var A=V;return A!=null&&l.is(A.range)&&ee.boolean(A.caseSensitiveLookup)&&(ee.string(A.variableName)||A.variableName===void 0)}F.is=J})(Ws=t.InlineValueVariableLookup||(t.InlineValueVariableLookup={}));var _e;(function(F){function Y(V,A){return{range:V,expression:A}}F.create=Y;function J(V){var A=V;return A!=null&&l.is(A.range)&&(ee.string(A.expression)||A.expression===void 0)}F.is=J})(_e=t.InlineValueEvaluatableExpression||(t.InlineValueEvaluatableExpression={}));var Gu;(function(F){function Y(V,A){return{frameId:V,stoppedLocation:A}}F.create=Y;function J(V){var A=V;return ee.defined(A)&&l.is(V.stoppedLocation)}F.is=J})(Gu=t.InlineValueContext||(t.InlineValueContext={}));var Ar;(function(F){F.Type=1,F.Parameter=2;function Y(J){return J===1||J===2}F.is=Y})(Ar=t.InlayHintKind||(t.InlayHintKind={}));var Ft;(function(F){function Y(V){return{value:V}}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&(A.tooltip===void 0||ee.string(A.tooltip)||At.is(A.tooltip))&&(A.location===void 0||d.is(A.location))&&(A.command===void 0||x.is(A.command))}F.is=J})(Ft=t.InlayHintLabelPart||(t.InlayHintLabelPart={}));var nr;(function(F){function Y(V,A,re){var ue={position:V,label:A};return re!==void 0&&(ue.kind=re),ue}F.create=Y;function J(V){var A=V;return ee.objectLiteral(A)&&s.is(A.position)&&(ee.string(A.label)||ee.typedArray(A.label,Ft.is))&&(A.kind===void 0||Ar.is(A.kind))&&A.textEdits===void 0||ee.typedArray(A.textEdits,L.is)&&(A.tooltip===void 0||ee.string(A.tooltip)||At.is(A.tooltip))&&(A.paddingLeft===void 0||ee.boolean(A.paddingLeft))&&(A.paddingRight===void 0||ee.boolean(A.paddingRight))}F.is=J})(nr=t.InlayHint||(t.InlayHint={}));var Ys;(function(F){function Y(J){var V=J;return ee.objectLiteral(V)&&n.is(V.uri)&&ee.string(V.name)}F.is=Y})(Ys=t.WorkspaceFolder||(t.WorkspaceFolder={})),t.EOL=[`
|
|
`,`\r
|
|
`,"\r"];var on;(function(F){function Y(re,ue,Ze,Ut){return new un(re,ue,Ze,Ut)}F.create=Y;function J(re){var ue=re;return!!(ee.defined(ue)&&ee.string(ue.uri)&&(ee.undefined(ue.languageId)||ee.string(ue.languageId))&&ee.uinteger(ue.lineCount)&&ee.func(ue.getText)&&ee.func(ue.positionAt)&&ee.func(ue.offsetAt))}F.is=J;function V(re,ue){for(var Ze=re.getText(),Ut=A(ue,function(sa,Cn){var la=sa.range.start.line-Cn.range.start.line;return la===0?sa.range.start.character-Cn.range.start.character:la}),Rt=Ze.length,vn=Ut.length-1;vn>=0;vn--){var Rr=Ut[vn],jr=re.offsetAt(Rr.range.start),et=re.offsetAt(Rr.range.end);if(et<=Rt)Ze=Ze.substring(0,jr)+Rr.newText+Ze.substring(et,Ze.length);else throw new Error("Overlapping edit");Rt=jr}return Ze}F.applyEdits=V;function A(re,ue){if(re.length<=1)return re;var Ze=re.length/2|0,Ut=re.slice(0,Ze),Rt=re.slice(Ze);A(Ut,ue),A(Rt,ue);for(var vn=0,Rr=0,jr=0;vn<Ut.length&&Rr<Rt.length;){var et=ue(Ut[vn],Rt[Rr]);et<=0?re[jr++]=Ut[vn++]:re[jr++]=Rt[Rr++]}for(;vn<Ut.length;)re[jr++]=Ut[vn++];for(;Rr<Rt.length;)re[jr++]=Rt[Rr++];return re}})(on=t.TextDocument||(t.TextDocument={}));var un=function(){function F(Y,J,V,A){this._uri=Y,this._languageId=J,this._version=V,this._content=A,this._lineOffsets=void 0}return Object.defineProperty(F.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),F.prototype.getText=function(Y){if(Y){var J=this.offsetAt(Y.start),V=this.offsetAt(Y.end);return this._content.substring(J,V)}return this._content},F.prototype.update=function(Y,J){this._content=Y.text,this._version=J,this._lineOffsets=void 0},F.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var Y=[],J=this._content,V=!0,A=0;A<J.length;A++){V&&(Y.push(A),V=!1);var re=J.charAt(A);V=re==="\r"||re===`
|
|
`,re==="\r"&&A+1<J.length&&J.charAt(A+1)===`
|
|
`&&A++}V&&J.length>0&&Y.push(J.length),this._lineOffsets=Y}return this._lineOffsets},F.prototype.positionAt=function(Y){Y=Math.max(Math.min(Y,this._content.length),0);var J=this.getLineOffsets(),V=0,A=J.length;if(A===0)return s.create(0,Y);for(;V<A;){var re=Math.floor((V+A)/2);J[re]>Y?A=re:V=re+1}var ue=V-1;return s.create(ue,Y-J[ue])},F.prototype.offsetAt=function(Y){var J=this.getLineOffsets();if(Y.line>=J.length)return this._content.length;if(Y.line<0)return 0;var V=J[Y.line],A=Y.line+1<J.length?J[Y.line+1]:this._content.length;return Math.max(Math.min(V+Y.character,A),V)},Object.defineProperty(F.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),F}(),ee;(function(F){var Y=Object.prototype.toString;function J(et){return typeof et!="undefined"}F.defined=J;function V(et){return typeof et=="undefined"}F.undefined=V;function A(et){return et===!0||et===!1}F.boolean=A;function re(et){return Y.call(et)==="[object String]"}F.string=re;function ue(et){return Y.call(et)==="[object Number]"}F.number=ue;function Ze(et,sa,Cn){return Y.call(et)==="[object Number]"&&sa<=et&&et<=Cn}F.numberRange=Ze;function Ut(et){return Y.call(et)==="[object Number]"&&-2147483648<=et&&et<=2147483647}F.integer=Ut;function Rt(et){return Y.call(et)==="[object Number]"&&0<=et&&et<=2147483647}F.uinteger=Rt;function vn(et){return Y.call(et)==="[object Function]"}F.func=vn;function Rr(et){return et!==null&&typeof et=="object"}F.objectLiteral=Rr;function jr(et,sa){return Array.isArray(et)&&et.every(sa)}F.typedArray=jr})(ee||(ee={}))})});var aU=G(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0});var iU=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),i=!1;for(n&&(i=n,this._start=this._pos);n;)this._pos++,n=this._testNextCharacter(r),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=r=>{this._pos=r},this.match=(r,n=!0,i=!1)=>{let o=null,s=null;return typeof r=="string"?(s=new RegExp(r,i?"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==null?void 0: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 i=r[0],o=0;for(;i.length>o;)i.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}};BO.default=iU});var KO=G(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.p=ta.t=ta.butNot=ta.list=ta.opt=void 0;function nee(e){return{ofRule:e}}ta.opt=nee;function iee(e,t){return{ofRule:e,isList:!0,separator:t}}ta.list=iee;function aee(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}ta.butNot=aee;function oee(e,t){return{style:t,match:r=>r.kind===e}}ta.t=oee;function uee(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}ta.p=uee});var HO=G(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.ParseRules=ju.LexRules=ju.isIgnored=void 0;var de=KO(),see=ht(),lee=e=>e===" "||e===" "||e===","||e===`
|
|
`||e==="\r"||e==="\uFEFF"||e==="\xA0";ju.isIgnored=lee;ju.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:/^#.*/};ju.ParseRules={Document:[(0,de.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 see.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[kn("query"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Mutation:[kn("mutation"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],Subscription:[kn("subscription"),(0,de.opt)(tr("def")),(0,de.opt)("VariableDefinitions"),(0,de.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,de.p)("("),(0,de.list)("VariableDefinition"),(0,de.p)(")")],VariableDefinition:["Variable",(0,de.p)(":"),"Type",(0,de.opt)("DefaultValue")],Variable:[(0,de.p)("$","variable"),tr("variable")],DefaultValue:[(0,de.p)("="),"Value"],SelectionSet:[(0,de.p)("{"),(0,de.list)("Selection"),(0,de.p)("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[tr("property"),(0,de.p)(":"),tr("qualifier"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Field:[tr("property"),(0,de.opt)("Arguments"),(0,de.list)("Directive"),(0,de.opt)("SelectionSet")],Arguments:[(0,de.p)("("),(0,de.list)("Argument"),(0,de.p)(")")],Argument:[tr("attribute"),(0,de.p)(":"),"Value"],FragmentSpread:[(0,de.p)("..."),tr("def"),(0,de.list)("Directive")],InlineFragment:[(0,de.p)("..."),(0,de.opt)("TypeCondition"),(0,de.list)("Directive"),"SelectionSet"],FragmentDefinition:[kn("fragment"),(0,de.opt)((0,de.butNot)(tr("def"),[kn("on")])),"TypeCondition",(0,de.list)("Directive"),"SelectionSet"],TypeCondition:[kn("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:[(0,de.t)("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,de.t)("Name","builtin")],NullValue:[(0,de.t)("Name","keyword")],EnumValue:[tr("string-2")],ListValue:[(0,de.p)("["),(0,de.list)("Value"),(0,de.p)("]")],ObjectValue:[(0,de.p)("{"),(0,de.list)("ObjectField"),(0,de.p)("}")],ObjectField:[tr("attribute"),(0,de.p)(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[(0,de.p)("["),"Type",(0,de.p)("]"),(0,de.opt)((0,de.p)("!"))],NonNullType:["NamedType",(0,de.opt)((0,de.p)("!"))],NamedType:[cee("atom")],Directive:[(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("Arguments")],DirectiveDef:[kn("directive"),(0,de.p)("@","meta"),tr("meta"),(0,de.opt)("ArgumentsDef"),kn("on"),(0,de.list)("DirectiveLocation",(0,de.p)("|"))],InterfaceDef:[kn("interface"),tr("atom"),(0,de.opt)("Implements"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("FieldDef"),(0,de.p)("}")],Implements:[kn("implements"),(0,de.list)("NamedType",(0,de.p)("&"))],DirectiveLocation:[tr("string-2")],SchemaDef:[kn("schema"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("OperationTypeDef"),(0,de.p)("}")],OperationTypeDef:[tr("keyword"),(0,de.p)(":"),tr("atom")],ScalarDef:[kn("scalar"),tr("atom"),(0,de.list)("Directive")],ObjectTypeDef:[kn("type"),tr("atom"),(0,de.opt)("Implements"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("FieldDef"),(0,de.p)("}")],FieldDef:[tr("property"),(0,de.opt)("ArgumentsDef"),(0,de.p)(":"),"Type",(0,de.list)("Directive")],ArgumentsDef:[(0,de.p)("("),(0,de.list)("InputValueDef"),(0,de.p)(")")],InputValueDef:[tr("attribute"),(0,de.p)(":"),"Type",(0,de.opt)("DefaultValue"),(0,de.list)("Directive")],UnionDef:[kn("union"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("="),(0,de.list)("UnionMember",(0,de.p)("|"))],UnionMember:["NamedType"],EnumDef:[kn("enum"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("EnumValueDef"),(0,de.p)("}")],EnumValueDef:[tr("string-2"),(0,de.list)("Directive")],InputDef:[kn("input"),tr("atom"),(0,de.list)("Directive"),(0,de.p)("{"),(0,de.list)("InputValueDef"),(0,de.p)("}")],ExtendDef:[kn("extend"),"ObjectTypeDef"]};function kn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function tr(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function cee(e){return{style:e,match:t=>t.kind==="Name",update(t,r){var n;((n=t.prevState)===null||n===void 0?void 0:n.prevState)&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}});var sU=G(XO=>{"use strict";Object.defineProperty(XO,"__esModule",{value:!0});var zO=HO(),fee=ht();function dee(e={eatWhitespace:t=>t.eatWhile(zO.isIgnored),lexRules:zO.LexRules,parseRules:zO.ParseRules,editorConfig:{}}){return{startState(){let t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return Up(e.parseRules,t,fee.Kind.DOCUMENT),t},token(t,r){return pee(t,r,e)}}}XO.default=dee;function pee(e,t,r){var n;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");let{lexRules:i,parseRules:o,eatWhitespace:s,editorConfig:l}=r;if(t.rule&&t.rule.length===0?YO(t):t.needsAdvance&&(t.needsAdvance=!1,JO(t,!0)),e.sol()){let v=(l==null?void 0:l.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/v)}if(s(e))return"ws";let d=vee(i,e);if(!d)return e.match(/\S+/)||e.match(/\s/),Up(WO,t,"Invalid"),"invalidchar";if(d.kind==="Comment")return Up(WO,t,"Comment"),"comment";let h=oU({},t);if(d.kind==="Punctuation"){if(/^[{([]/.test(d.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(d.value)){let v=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&v.length>0&&v[v.length-1]<t.indentLevel&&(t.indentLevel=v[v.length-1])}}for(;t.rule;){let v=typeof t.rule=="function"?t.step===0?t.rule(d,e):null:t.rule[t.step];if(t.needsSeperator&&(v=v==null?void 0:v.separator),v){if(v.ofRule&&(v=v.ofRule),typeof v=="string"){Up(o,t,v);continue}if((n=v.match)===null||n===void 0?void 0:n.call(v,d))return v.update&&v.update(t,d),d.kind==="Punctuation"?JO(t,!0):t.needsAdvance=!0,v.style}hee(t)}return oU(t,h),Up(WO,t,"Invalid"),"invalidchar"}function oU(e,t){let r=Object.keys(t);for(let n=0;n<r.length;n++)e[r[n]]=t[r[n]];return e}var WO={Invalid:[],Comment:[]};function Up(e,t,r){if(!e[r])throw new TypeError("Unknown rule: "+r);t.prevState=Object.assign({},t),t.kind=r,t.name=null,t.type=null,t.rule=e[r],t.step=0,t.needsSeperator=!1}function YO(e){!e.prevState||(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function JO(e,t){var r;if(uU(e)&&e.rule){let n=e.rule[e.step];if(n.separator){let i=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&i.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)YO(e),e.rule&&(uU(e)?((r=e.rule)===null||r===void 0?void 0:r[e.step].separator)&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function uU(e){let t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function hee(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)YO(e);e.rule&&JO(e,!1)}function vee(e,t){let r=Object.keys(e);for(let n=0;n<r.length;n++){let i=t.match(e[r[n]]);if(i&&i instanceof Array)return{kind:r[n],value:i[0]}}}});var lU=G(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.RuleKinds=Vs.AdditionalRuleKinds=void 0;var gee=ht();Vs.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"};Vs.RuleKinds=Object.assign(Object.assign({},gee.Kind),Vs.AdditionalRuleKinds)});var ay=G(Bt=>{"use strict";var mee=Bt&&Bt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),yee=Bt&&Bt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&mee(t,e,r)},cU=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.onlineParser=Bt.t=Bt.p=Bt.opt=Bt.list=Bt.butNot=Bt.isIgnored=Bt.ParseRules=Bt.LexRules=Bt.CharacterStream=void 0;var bee=aU();Object.defineProperty(Bt,"CharacterStream",{enumerable:!0,get:function(){return cU(bee).default}});var ZO=HO();Object.defineProperty(Bt,"LexRules",{enumerable:!0,get:function(){return ZO.LexRules}});Object.defineProperty(Bt,"ParseRules",{enumerable:!0,get:function(){return ZO.ParseRules}});Object.defineProperty(Bt,"isIgnored",{enumerable:!0,get:function(){return ZO.isIgnored}});var Gp=KO();Object.defineProperty(Bt,"butNot",{enumerable:!0,get:function(){return Gp.butNot}});Object.defineProperty(Bt,"list",{enumerable:!0,get:function(){return Gp.list}});Object.defineProperty(Bt,"opt",{enumerable:!0,get:function(){return Gp.opt}});Object.defineProperty(Bt,"p",{enumerable:!0,get:function(){return Gp.p}});Object.defineProperty(Bt,"t",{enumerable:!0,get:function(){return Gp.t}});var Tee=sU();Object.defineProperty(Bt,"onlineParser",{enumerable:!0,get:function(){return cU(Tee).default}});yee(lU(),Bt)});var ew=G(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.getTypeInfo=Vr.canUseDirective=Vr.runOnlineParser=Vr.getTokenAtPosition=Vr.getFragmentDefinitions=Vr.getVariableCompletions=Vr.getAutocompleteSuggestions=Vr.SuggestionCommand=void 0;var tn=nU(),Vt=ht(),kt=ht(),ke=ay(),br=QO();Vr.SuggestionCommand={command:"editor.action.triggerSuggest",title:"Suggestions"};var _ee=e=>{let t=[];if(e)try{(0,kt.visit)((0,kt.parse)(e),{FragmentDefinition(r){t.push(r)}})}catch(r){return[]}return t};function Eee(e,t,r,n,i,o){var s;let l=Object.assign(Object.assign({},o),{schema:e}),d=n||dU(t,r),h=d.state.kind==="Invalid"?d.state.prevState:d.state;if(!h)return[];let v=h.kind,y=h.step,b=hU(e,d.state);if(v===ke.RuleKinds.DOCUMENT)return(0,br.hintList)(d,[{label:"query",kind:tn.CompletionItemKind.Function},{label:"mutation",kind:tn.CompletionItemKind.Function},{label:"subscription",kind:tn.CompletionItemKind.Function},{label:"fragment",kind:tn.CompletionItemKind.Function},{label:"{",kind:tn.CompletionItemKind.Constructor}]);if(v===ke.RuleKinds.IMPLEMENTS||v===ke.RuleKinds.NAMED_TYPE&&((s=h.prevState)===null||s===void 0?void 0:s.kind)===ke.RuleKinds.IMPLEMENTS)return wee(d,h,e,t,b);if(v===ke.RuleKinds.SELECTION_SET||v===ke.RuleKinds.FIELD||v===ke.RuleKinds.ALIASED_FIELD)return kee(d,b,l);if(v===ke.RuleKinds.ARGUMENTS||v===ke.RuleKinds.ARGUMENT&&y===0){let D=b.argDefs;if(D)return(0,br.hintList)(d,D.map(_=>{var k;return{label:_.name,insertText:_.name+": ",command:Vr.SuggestionCommand,detail:String(_.type),documentation:(k=_.description)!==null&&k!==void 0?k:void 0,kind:tn.CompletionItemKind.Variable,type:_.type}}))}if((v===ke.RuleKinds.OBJECT_VALUE||v===ke.RuleKinds.OBJECT_FIELD&&y===0)&&b.objectFieldDefs){let D=(0,br.objectValues)(b.objectFieldDefs),_=v===ke.RuleKinds.OBJECT_VALUE?tn.CompletionItemKind.Value:tn.CompletionItemKind.Field;return(0,br.hintList)(d,D.map(k=>{var T;return{label:k.name,detail:String(k.type),documentation:(T=k.description)!==null&&T!==void 0?T:void 0,kind:_,type:k.type}}))}if(v===ke.RuleKinds.ENUM_VALUE||v===ke.RuleKinds.LIST_VALUE&&y===1||v===ke.RuleKinds.OBJECT_FIELD&&y===2||v===ke.RuleKinds.ARGUMENT&&y===2)return Oee(d,b,t,e);if(v===ke.RuleKinds.VARIABLE&&y===1){let D=(0,kt.getNamedType)(b.inputType),_=$O(t,e,d);return(0,br.hintList)(d,_.filter(k=>k.detail===(D==null?void 0:D.name)))}return v===ke.RuleKinds.TYPE_CONDITION&&y===1||v===ke.RuleKinds.NAMED_TYPE&&h.prevState!=null&&h.prevState.kind===ke.RuleKinds.TYPE_CONDITION?Nee(d,b,e,v):v===ke.RuleKinds.FRAGMENT_SPREAD&&y===1?Dee(d,b,e,t,Array.isArray(i)?i:_ee(i)):v===ke.RuleKinds.VARIABLE_DEFINITION&&y===2||v===ke.RuleKinds.LIST_TYPE&&y===1||v===ke.RuleKinds.NAMED_TYPE&&h.prevState&&(h.prevState.kind===ke.RuleKinds.VARIABLE_DEFINITION||h.prevState.kind===ke.RuleKinds.LIST_TYPE||h.prevState.kind===ke.RuleKinds.NON_NULL_TYPE)?Cee(d,e,v):v===ke.RuleKinds.DIRECTIVE?Lee(d,h,e,v):[]}Vr.getAutocompleteSuggestions=Eee;var oy=` {
|
|
$1
|
|
}`,See=e=>{let t=e.type;return(0,kt.isCompositeType)(t)||(0,Vt.isListType)(t)&&(0,kt.isCompositeType)(t.ofType)||(0,Vt.isNonNullType)(t)&&((0,kt.isCompositeType)(t.ofType)||(0,Vt.isListType)(t.ofType)&&(0,kt.isCompositeType)(t.ofType.ofType))?oy:null};function kee(e,t,r){var n;if(t.parentType){let i=t.parentType,o=[];return"getFields"in i&&(o=(0,br.objectValues)(i.getFields())),(0,kt.isCompositeType)(i)&&o.push(kt.TypeNameMetaFieldDef),i===((n=r==null?void 0:r.schema)===null||n===void 0?void 0:n.getQueryType())&&o.push(kt.SchemaMetaFieldDef,kt.TypeMetaFieldDef),(0,br.hintList)(e,o.map((s,l)=>{var d;let h={sortText:String(l)+s.name,label:s.name,detail:String(s.type),documentation:(d=s.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(s.deprecationReason),isDeprecated:Boolean(s.deprecationReason),deprecationReason:s.deprecationReason,kind:tn.CompletionItemKind.Field,type:s.type},v=See(s);return v&&(h.insertText=s.name+v,h.insertTextFormat=tn.InsertTextFormat.Snippet,h.command=Vr.SuggestionCommand),h}))}return[]}function Oee(e,t,r,n){let i=(0,kt.getNamedType)(t.inputType),o=$O(r,n,e).filter(s=>s.detail===i.name);if(i instanceof kt.GraphQLEnumType){let s=i.getValues();return(0,br.hintList)(e,s.map(l=>{var d;return{label:l.name,detail:String(i),documentation:(d=l.description)!==null&&d!==void 0?d:void 0,deprecated:Boolean(l.deprecationReason),isDeprecated:Boolean(l.deprecationReason),deprecationReason:l.deprecationReason,kind:tn.CompletionItemKind.EnumMember,type:i}}).concat(o))}else if(i===kt.GraphQLBoolean)return(0,br.hintList)(e,o.concat([{label:"true",detail:String(kt.GraphQLBoolean),documentation:"Not false.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean},{label:"false",detail:String(kt.GraphQLBoolean),documentation:"Not true.",kind:tn.CompletionItemKind.Variable,type:kt.GraphQLBoolean}]));return o}function wee(e,t,r,n,i){if(t.needsSeperator)return[];let o=r.getTypeMap(),s=(0,br.objectValues)(o).filter(Vt.isInterfaceType),l=s.map(({name:D})=>D),d=new Set;Qp(n,(D,_)=>{var k,T,S,m,w;if(_.name&&(_.kind===ke.RuleKinds.INTERFACE_DEF&&!l.includes(_.name)&&d.add(_.name),_.kind===ke.RuleKinds.NAMED_TYPE&&((k=_.prevState)===null||k===void 0?void 0:k.kind)===ke.RuleKinds.IMPLEMENTS)){if(i.interfaceDef){if((T=i.interfaceDef)===null||T===void 0?void 0:T.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(S=i.interfaceDef)===null||S===void 0?void 0:S.toConfig();i.interfaceDef=new Vt.GraphQLInterfaceType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}else if(i.objectTypeDef){if((m=i.objectTypeDef)===null||m===void 0?void 0:m.getInterfaces().find(({name:R})=>R===_.name))return;let L=r.getType(_.name),O=(w=i.objectTypeDef)===null||w===void 0?void 0:w.toConfig();i.objectTypeDef=new Vt.GraphQLObjectType(Object.assign(Object.assign({},O),{interfaces:[...O.interfaces,L||new Vt.GraphQLInterfaceType({name:_.name,fields:{}})]}))}}});let h=i.interfaceDef||i.objectTypeDef,y=((h==null?void 0:h.getInterfaces())||[]).map(({name:D})=>D),b=s.concat([...d].map(D=>({name:D}))).filter(({name:D})=>D!==(h==null?void 0:h.name)&&!y.includes(D));return(0,br.hintList)(e,b.map(D=>{let _={label:D.name,kind:tn.CompletionItemKind.Interface,type:D};return(D==null?void 0:D.description)&&(_.documentation=D.description),_}))}function Nee(e,t,r,n){let i;if(t.parentType)if((0,kt.isAbstractType)(t.parentType)){let o=(0,kt.assertAbstractType)(t.parentType),s=r.getPossibleTypes(o),l=Object.create(null);s.forEach(d=>{d.getInterfaces().forEach(h=>{l[h.name]=h})}),i=s.concat((0,br.objectValues)(l))}else i=[t.parentType];else{let o=r.getTypeMap();i=(0,br.objectValues)(o).filter(kt.isCompositeType)}return(0,br.hintList)(e,i.map(o=>{let s=(0,kt.getNamedType)(o);return{label:String(o),documentation:(s==null?void 0:s.description)||"",kind:tn.CompletionItemKind.Field}}))}function Dee(e,t,r,n,i){if(!n)return[];let o=r.getTypeMap(),s=(0,br.getDefinitionState)(e.state),l=fU(n);i&&i.length>0&&l.push(...i);let d=l.filter(h=>o[h.typeCondition.name.value]&&!(s&&s.kind===ke.RuleKinds.FRAGMENT_DEFINITION&&s.name===h.name.value)&&(0,kt.isCompositeType)(t.parentType)&&(0,kt.isCompositeType)(o[h.typeCondition.name.value])&&(0,kt.doTypesOverlap)(r,t.parentType,o[h.typeCondition.name.value]));return(0,br.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:tn.CompletionItemKind.Field,type:o[h.typeCondition.name.value]})))}var xee=(e,t)=>{var r,n,i,o,s,l,d,h,v,y;if(((r=e.prevState)===null||r===void 0?void 0:r.kind)===t)return e.prevState;if(((i=(n=e.prevState)===null||n===void 0?void 0:n.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((l=(s=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||s===void 0?void 0:s.prevState)===null||l===void 0?void 0:l.kind)===t)return e.prevState.prevState.prevState;if(((y=(v=(h=(d=e.prevState)===null||d===void 0?void 0:d.prevState)===null||h===void 0?void 0:h.prevState)===null||v===void 0?void 0:v.prevState)===null||y===void 0?void 0:y.kind)===t)return e.prevState.prevState.prevState.prevState};function $O(e,t,r){let n=null,i,o=Object.create({});return Qp(e,(s,l)=>{if((l==null?void 0:l.kind)===ke.RuleKinds.VARIABLE&&l.name&&(n=l.name),(l==null?void 0:l.kind)===ke.RuleKinds.NAMED_TYPE&&n){let d=xee(l,ke.RuleKinds.TYPE);(d==null?void 0:d.type)&&(i=t.getType(d==null?void 0:d.type))}n&&i&&(o[n]||(o[n]={detail:i.toString(),insertText:r.string==="$"?n:"$"+n,label:n,type:i,kind:tn.CompletionItemKind.Variable},n=null,i=null))}),(0,br.objectValues)(o)}Vr.getVariableCompletions=$O;function fU(e){let t=[];return Qp(e,(r,n)=>{n.kind===ke.RuleKinds.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:ke.RuleKinds.FRAGMENT_DEFINITION,name:{kind:Vt.Kind.NAME,value:n.name},selectionSet:{kind:ke.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:ke.RuleKinds.NAMED_TYPE,name:{kind:Vt.Kind.NAME,value:n.type}}})}),t}Vr.getFragmentDefinitions=fU;function Cee(e,t,r){let n=t.getTypeMap(),i=(0,br.objectValues)(n).filter(kt.isInputType);return(0,br.hintList)(e,i.map(o=>({label:o.name,documentation:o.description,kind:tn.CompletionItemKind.Variable})))}function Lee(e,t,r,n){var i;if((i=t.prevState)===null||i===void 0?void 0:i.kind){let o=r.getDirectives().filter(s=>pU(t.prevState,s));return(0,br.hintList)(e,o.map(s=>({label:s.name,documentation:s.description||"",kind:tn.CompletionItemKind.Function})))}return[]}function dU(e,t){let r=null,n=null,i=null,o=Qp(e,(s,l,d,h)=>{if(h===t.line&&s.getCurrentPosition()>=t.character)return r=d,n=Object.assign({},l),i=s.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:n||o.state,style:r||o.style}}Vr.getTokenAtPosition=dU;function Qp(e,t){let r=e.split(`
|
|
`),n=(0,ke.onlineParser)(),i=n.startState(),o="",s=new ke.CharacterStream("");for(let l=0;l<r.length;l++){for(s=new ke.CharacterStream(r[l]);!s.eol()&&(o=n.token(s,i),t(s,i,o,l)!=="BREAK"););t(s,i,o,l),i.kind||(i=n.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:i,style:o}}Vr.runOnlineParser=Qp;function pU(e,t){var r;if(!e||!e.kind)return!1;let n=e.kind,i=t.locations;switch(n){case ke.RuleKinds.QUERY:return i.indexOf(Vt.DirectiveLocation.QUERY)!==-1;case ke.RuleKinds.MUTATION:return i.indexOf(Vt.DirectiveLocation.MUTATION)!==-1;case ke.RuleKinds.SUBSCRIPTION:return i.indexOf(Vt.DirectiveLocation.SUBSCRIPTION)!==-1;case ke.RuleKinds.FIELD:case ke.RuleKinds.ALIASED_FIELD:return i.indexOf(Vt.DirectiveLocation.FIELD)!==-1;case ke.RuleKinds.FRAGMENT_DEFINITION:return i.indexOf(Vt.DirectiveLocation.FRAGMENT_DEFINITION)!==-1;case ke.RuleKinds.FRAGMENT_SPREAD:return i.indexOf(Vt.DirectiveLocation.FRAGMENT_SPREAD)!==-1;case ke.RuleKinds.INLINE_FRAGMENT:return i.indexOf(Vt.DirectiveLocation.INLINE_FRAGMENT)!==-1;case ke.RuleKinds.SCHEMA_DEF:return i.indexOf(Vt.DirectiveLocation.SCHEMA)!==-1;case ke.RuleKinds.SCALAR_DEF:return i.indexOf(Vt.DirectiveLocation.SCALAR)!==-1;case ke.RuleKinds.OBJECT_TYPE_DEF:return i.indexOf(Vt.DirectiveLocation.OBJECT)!==-1;case ke.RuleKinds.FIELD_DEF:return i.indexOf(Vt.DirectiveLocation.FIELD_DEFINITION)!==-1;case ke.RuleKinds.INTERFACE_DEF:return i.indexOf(Vt.DirectiveLocation.INTERFACE)!==-1;case ke.RuleKinds.UNION_DEF:return i.indexOf(Vt.DirectiveLocation.UNION)!==-1;case ke.RuleKinds.ENUM_DEF:return i.indexOf(Vt.DirectiveLocation.ENUM)!==-1;case ke.RuleKinds.ENUM_VALUE:return i.indexOf(Vt.DirectiveLocation.ENUM_VALUE)!==-1;case ke.RuleKinds.INPUT_DEF:return i.indexOf(Vt.DirectiveLocation.INPUT_OBJECT)!==-1;case ke.RuleKinds.INPUT_VALUE_DEF:switch((r=e.prevState)===null||r===void 0?void 0:r.kind){case ke.RuleKinds.ARGUMENTS_DEF:return i.indexOf(Vt.DirectiveLocation.ARGUMENT_DEFINITION)!==-1;case ke.RuleKinds.INPUT_DEF:return i.indexOf(Vt.DirectiveLocation.INPUT_FIELD_DEFINITION)!==-1}}return!1}Vr.canUseDirective=pU;function hU(e,t){let r,n,i,o,s,l,d,h,v,y,b;return(0,br.forEachState)(t,D=>{var _;switch(D.kind){case ke.RuleKinds.QUERY:case"ShortQuery":y=e.getQueryType();break;case ke.RuleKinds.MUTATION:y=e.getMutationType();break;case ke.RuleKinds.SUBSCRIPTION:y=e.getSubscriptionType();break;case ke.RuleKinds.INLINE_FRAGMENT:case ke.RuleKinds.FRAGMENT_DEFINITION:D.type&&(y=e.getType(D.type));break;case ke.RuleKinds.FIELD:case ke.RuleKinds.ALIASED_FIELD:{!y||!D.name?s=null:(s=v?(0,br.getFieldDef)(e,v,D.name):null,y=s?s.type:null);break}case ke.RuleKinds.SELECTION_SET:v=(0,kt.getNamedType)(y);break;case ke.RuleKinds.DIRECTIVE:i=D.name?e.getDirective(D.name):null;break;case ke.RuleKinds.INTERFACE_DEF:D.name&&(d=null,b=new Vt.GraphQLInterfaceType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.OBJECT_TYPE_DEF:D.name&&(b=null,d=new Vt.GraphQLObjectType({name:D.name,interfaces:[],fields:{}}));break;case ke.RuleKinds.ARGUMENTS:{if(!D.prevState)n=null;else switch(D.prevState.kind){case ke.RuleKinds.FIELD:n=s&&s.args;break;case ke.RuleKinds.DIRECTIVE:n=i&&i.args;break;case ke.RuleKinds.ALIASED_FIELD:{let w=(_=D.prevState)===null||_===void 0?void 0:_.name;if(!w){n=null;break}let x=v?(0,br.getFieldDef)(e,v,w):null;if(!x){n=null;break}n=x.args;break}default:n=null;break}break}case ke.RuleKinds.ARGUMENT:if(n){for(let w=0;w<n.length;w++)if(n[w].name===D.name){r=n[w];break}}l=r==null?void 0:r.type;break;case ke.RuleKinds.ENUM_VALUE:let k=(0,kt.getNamedType)(l);o=k instanceof kt.GraphQLEnumType?k.getValues().find(w=>w.value===D.name):null;break;case ke.RuleKinds.LIST_VALUE:let T=(0,kt.getNullableType)(l);l=T instanceof kt.GraphQLList?T.ofType:null;break;case ke.RuleKinds.OBJECT_VALUE:let S=(0,kt.getNamedType)(l);h=S instanceof kt.GraphQLInputObjectType?S.getFields():null;break;case ke.RuleKinds.OBJECT_FIELD:let m=D.name&&h?h[D.name]:null;l=m==null?void 0:m.type;break;case ke.RuleKinds.NAMED_TYPE:D.name&&(y=e.getType(D.name));break}}),{argDef:r,argDefs:n,directiveDef:i,enumValue:o,fieldDef:s,inputType:l,objectFieldDefs:h,parentType:v,type:y,interfaceDef:b,objectTypeDef:d}}Vr.getTypeInfo=hU});var gU=G(Ao=>{"use strict";var Iee=Ao&&Ao.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getFragmentDependenciesForAST=Ao.getFragmentDependencies=void 0;var tw=ht(),vU=Iee(Xk()),Aee=(e,t)=>{if(!t)return[];let r;try{r=(0,tw.parse)(e)}catch(n){return[]}return(0,Ao.getFragmentDependenciesForAST)(r,t)};Ao.getFragmentDependencies=Aee;var Ree=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;(0,tw.visit)(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let i=new Set;n.forEach(s=>{!r.has(s)&&t.has(s)&&i.add((0,vU.default)(t.get(s)))});let o=[];return i.forEach(s=>{(0,tw.visit)(s,{FragmentSpread(l){!n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,vU.default)(t.get(l.name.value))),n.add(l.name.value))}}),r.has(s.name.value)||o.push(s)}),o};Ao.getFragmentDependenciesForAST=Ree});var mU=G(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.getVariablesJSONSchema=qc.defaultJSONSchemaOptions=void 0;var Pu=ht();qc.defaultJSONSchemaOptions={useMarkdownDescription:!1};function Mc(e,t){e.push(t)}function rw(e,t){(0,Pu.isNonNullType)(t)?(rw(e,t.ofType),Mc(e,"!")):(0,Pu.isListType)(t)?(Mc(e,"["),rw(e,t.ofType),Mc(e,"]")):Mc(e,t.name)}function Za(e,t){let r=[];return t&&Mc(r,"```graphql\n"),rw(r,e),t&&Mc(r,"\n```"),r.join("")}var jee={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"};function Bp(e,t){var r;let n=!1,i=Object.create(null),o=Object.create(null);if("defaultValue"in e&&e.defaultValue!==void 0&&(i.default=e.defaultValue),(0,Pu.isEnumType)(e)&&(i.type="string",i.enum=e.getValues().map(s=>s.name)),(0,Pu.isScalarType)(e)&&(i.type=(r=jee[e.name])!==null&&r!==void 0?r:"any"),(0,Pu.isListType)(e)){i.type="array";let{definition:s,definitions:l}=Bp(e.ofType,t);s.$ref?i.items={$ref:s.$ref}:i.items=s,l&&Object.keys(l).forEach(d=>{o[d]=l[d]})}if((0,Pu.isNonNullType)(e)){n=!0;let{definition:s,definitions:l}=Bp(e.ofType,t);i=s,l&&Object.keys(l).forEach(d=>{o[d]=l[d]})}if((0,Pu.isInputObjectType)(e)){i.$ref=`#/definitions/${e.name}`;let s=e.getFields(),l={type:"object",properties:{},required:[]};e.description?(l.description=e.description+`
|
|
`+Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=e.description+`
|
|
`+Za(e,!0))):(l.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(l.markdownDescription=Za(e,!0))),Object.keys(s).forEach(d=>{let h=s[d],{required:v,definition:y,definitions:b}=Bp(h.type,t),{definition:D}=Bp(h,t);l.properties[d]=Object.assign(Object.assign({},y),D);let _=Za(h.type);if(l.properties[d].description=h.description?h.description+`
|
|
`+_:_,t==null?void 0:t.useMarkdownDescription){let k=Za(h.type,!0);l.properties[d].markdownDescription=h.description?h.description+`
|
|
`+k:k}v&&l.required.push(d),b&&Object.keys(b).map(k=>{o[k]=b[k]})}),o[e.name]=l}return"description"in e&&!(0,Pu.isScalarType)(e)&&e.description&&!i.description?(i.description=e.description+`
|
|
`+Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=e.description+`
|
|
`+Za(e,!0))):(i.description=Za(e),(t==null?void 0:t.useMarkdownDescription)&&(i.markdownDescription=Za(e,!0))),{required:n,definition:i,definitions:o}}function Pee(e,t){let r={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach(([n,i])=>{var o;let{definition:s,required:l,definitions:d}=Bp(i,t);r.properties[n]=s,l&&((o=r.required)===null||o===void 0||o.push(n)),d&&(r.definitions=Object.assign(Object.assign({},r==null?void 0:r.definitions),d))}),r}qc.getVariablesJSONSchema=Pee});var bU=G(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.pointToOffset=Vc.getASTNodeAtPosition=void 0;var Fee=ht();function Mee(e,t,r){let n=yU(e,r),i;return(0,Fee.visit)(t,{enter(o){if(o.kind!=="Name"&&o.loc&&o.loc.start<=n&&n<=o.loc.end)i=o;else return!1},leave(o){if(o.loc&&o.loc.start<=n&&n<=o.loc.end)return!1}}),i}Vc.getASTNodeAtPosition=Mee;function yU(e,t){let r=e.split(`
|
|
`).slice(0,t.line);return t.character+r.map(n=>n.length+1).reduce((n,i)=>n+i,0)}Vc.pointToOffset=yU});var TU=G($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.locToRange=$a.offsetToPosition=$a.Position=$a.Range=void 0;var nw=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 Kp(t,r)}setEnd(t,r){this.end=new Kp(t,r)}};$a.Range=nw;var Kp=class{constructor(t,r){this.lessThanOrEqualTo=n=>this.line<n.line||this.line===n.line&&this.character<=n.character,this.line=t,this.character=r}setLine(t){this.line=t}setCharacter(t){this.character=t}};$a.Position=Kp;function iw(e,t){let r=`
|
|
`,n=e.slice(0,t),i=n.split(r).length-1,o=n.lastIndexOf(r);return new Kp(i,t-o-1)}$a.offsetToPosition=iw;function qee(e,t){let r=iw(e,t.start),n=iw(e,t.end);return new nw(r,n)}$a.locToRange=qee});var _U=G(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.validateWithCustomRules=void 0;var fn=ht(),Vee=[fn.LoneSchemaDefinitionRule,fn.UniqueOperationTypesRule,fn.UniqueTypeNamesRule,fn.UniqueEnumValueNamesRule,fn.UniqueFieldDefinitionNamesRule,fn.UniqueDirectiveNamesRule,fn.KnownTypeNamesRule,fn.KnownDirectivesRule,fn.UniqueDirectivesPerLocationRule,fn.PossibleTypeExtensionsRule,fn.UniqueArgumentNamesRule,fn.UniqueInputFieldNamesRule];function Uee(e,t,r,n,i){let o=fn.specifiedRules.filter(l=>!(l===fn.NoUnusedFragmentsRule||l===fn.ExecutableDefinitionsRule||n&&l===fn.KnownFragmentNamesRule));return r&&Array.prototype.push.apply(o,r),i&&Array.prototype.push.apply(o,Vee),(0,fn.validate)(e,t,o).filter(l=>{if(l.message.indexOf("Unknown directive")!==-1&&l.nodes){let d=l.nodes[0];if(d&&d.kind===fn.Kind.DIRECTIVE){let h=d.name.value;if(h==="arguments"||h==="argumentDefinitions")return!1}}return!0})}uy.validateWithCustomRules=Uee});var ow=G(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.collectVariables=void 0;var aw=ht();function Gee(e,t){let r=Object.create(null);return t.definitions.forEach(n=>{if(n.kind==="OperationDefinition"){let i=n.variableDefinitions;i&&i.forEach(({variable:o,type:s})=>{let l=(0,aw.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===aw.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=aw.GraphQLFloat)})}}),r}sy.collectVariables=Gee});var OU=G(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.getQueryFacts=Us.getOperationASTFacts=void 0;var EU=ht(),Qee=ow();function SU(e,t){let r=t?(0,Qee.collectVariables)(t,e):void 0,n=[];return(0,EU.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}Us.getOperationASTFacts=SU;function kU(e,t){if(!!t)try{let r=(0,EU.parse)(t);return Object.assign(Object.assign({},SU(r,e)),{documentAST:r})}catch(r){return}}Us.default=kU;Us.getQueryFacts=kU});var Hp=G(Lt=>{"use strict";var Bee=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getQueryFacts=Lt.getOperationASTFacts=Lt.getOperationFacts=Lt.collectVariables=Lt.validateWithCustomRules=Lt.offsetToPosition=Lt.locToRange=Lt.Range=Lt.Position=Lt.pointToOffset=Lt.getASTNodeAtPosition=Lt.getVariablesJSONSchema=Lt.getFragmentDependenciesForAST=Lt.getFragmentDependencies=void 0;var wU=gU();Object.defineProperty(Lt,"getFragmentDependencies",{enumerable:!0,get:function(){return wU.getFragmentDependencies}});Object.defineProperty(Lt,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return wU.getFragmentDependenciesForAST}});var Kee=mU();Object.defineProperty(Lt,"getVariablesJSONSchema",{enumerable:!0,get:function(){return Kee.getVariablesJSONSchema}});var NU=bU();Object.defineProperty(Lt,"getASTNodeAtPosition",{enumerable:!0,get:function(){return NU.getASTNodeAtPosition}});Object.defineProperty(Lt,"pointToOffset",{enumerable:!0,get:function(){return NU.pointToOffset}});var ly=TU();Object.defineProperty(Lt,"Position",{enumerable:!0,get:function(){return ly.Position}});Object.defineProperty(Lt,"Range",{enumerable:!0,get:function(){return ly.Range}});Object.defineProperty(Lt,"locToRange",{enumerable:!0,get:function(){return ly.locToRange}});Object.defineProperty(Lt,"offsetToPosition",{enumerable:!0,get:function(){return ly.offsetToPosition}});var Hee=_U();Object.defineProperty(Lt,"validateWithCustomRules",{enumerable:!0,get:function(){return Hee.validateWithCustomRules}});var zee=ow();Object.defineProperty(Lt,"collectVariables",{enumerable:!0,get:function(){return zee.collectVariables}});var uw=OU();Object.defineProperty(Lt,"getOperationFacts",{enumerable:!0,get:function(){return Bee(uw).default}});Object.defineProperty(Lt,"getOperationASTFacts",{enumerable:!0,get:function(){return uw.getOperationASTFacts}});Object.defineProperty(Lt,"getQueryFacts",{enumerable:!0,get:function(){return uw.getQueryFacts}})});var CU=G(On=>{"use strict";var sw=On&&On.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})};Object.defineProperty(On,"__esModule",{value:!0});On.getDefinitionQueryResultForDefinitionNode=On.getDefinitionQueryResultForFragmentSpread=On.getDefinitionQueryResultForField=On.getDefinitionQueryResultForNamedType=On.LANGUAGE=void 0;var DU=Hp();On.LANGUAGE="GraphQL";function cy(e,t){if(!e)throw new Error(t)}function Uc(e,t){let r=t.loc;return cy(r,"Expected ASTNode to have a location."),(0,DU.locToRange)(e,r)}function lw(e,t){let r=t.loc;return cy(r,"Expected ASTNode to have a location."),(0,DU.offsetToPosition)(e,r.start)}function Wee(e,t,r){return sw(this,void 0,void 0,function*(){let n=t.name.value,i=r.filter(({definition:s})=>s.name&&s.name.value===n);if(i.length===0)throw Error(`Definition not found for GraphQL type ${n}`);let o=i.map(({filePath:s,content:l,definition:d})=>Zee(s||"",l,d));return{definitions:o,queryRange:o.map(s=>Uc(e,t))}})}On.getDefinitionQueryResultForNamedType=Wee;function Yee(e,t,r){return sw(this,void 0,void 0,function*(){let n=r.filter(({definition:o})=>o.name&&o.name.value===t);if(n.length===0)throw Error(`Definition not found for GraphQL type ${t}`);let i=[];return n.forEach(({filePath:o,content:s,definition:l})=>{var d;let h=(d=l.fields)===null||d===void 0?void 0:d.find(v=>v.name.value===e);if(h==null)return null;i.push($ee(o||"",s,h))}),{definitions:i,queryRange:[]}})}On.getDefinitionQueryResultForField=Yee;function Jee(e,t,r){return sw(this,void 0,void 0,function*(){let n=t.name.value,i=r.filter(({definition:s})=>s.name.value===n);if(i.length===0)throw Error(`Definition not found for GraphQL fragment ${n}`);let o=i.map(({filePath:s,content:l,definition:d})=>xU(s||"",l,d));return{definitions:o,queryRange:o.map(s=>Uc(e,t))}})}On.getDefinitionQueryResultForFragmentSpread=Jee;function Xee(e,t,r){return{definitions:[xU(e,t,r)],queryRange:r.name?[Uc(t,r.name)]:[]}}On.getDefinitionQueryResultForDefinitionNode=Xee;function xU(e,t,r){let n=r.name;if(!n)throw Error("Expected ASTNode to have a Name.");return{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}function Zee(e,t,r){let n=r.name;return cy(n,"Expected ASTNode to have a Name."),{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}function $ee(e,t,r){let n=r.name;return cy(n,"Expected ASTNode to have a Name."),{path:e,position:lw(t,r),range:Uc(t,r),name:n.value||"",language:On.LANGUAGE,projectRoot:e}}});var PU=G(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getRange=rn.validateQuery=rn.getDiagnostics=rn.DIAGNOSTIC_SEVERITY=rn.SEVERITY=void 0;var fy=ht(),ete=ht(),LU=ay(),Gs=Hp();rn.SEVERITY={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};rn.DIAGNOSTIC_SEVERITY={[rn.SEVERITY.Error]:1,[rn.SEVERITY.Warning]:2,[rn.SEVERITY.Information]:3,[rn.SEVERITY.Hint]:4};var dy=(e,t)=>{if(!e)throw new Error(t)};function tte(e,t=null,r,n,i){var o,s;let l=null;i&&(typeof i=="string"?e+=`
|
|
|
|
`+i:e+=`
|
|
|
|
`+i.reduce((d,h)=>(d+=(0,fy.print)(h)+`
|
|
|
|
`,d),""));try{l=(0,ete.parse)(e)}catch(d){if(d instanceof fy.GraphQLError){let h=jU((s=(o=d.locations)===null||o===void 0?void 0:o[0])!==null&&s!==void 0?s:{line:0,column:0},e);return[{severity:rn.DIAGNOSTIC_SEVERITY.Error,message:d.message,source:"GraphQL: Syntax",range:h}]}throw d}return IU(l,t,r,n)}rn.getDiagnostics=tte;function IU(e,t=null,r,n){if(!t)return[];let i=AU((0,Gs.validateWithCustomRules)(t,e,r,n),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Error,"Validation")),o=AU((0,fy.validate)(t,e,[fy.NoDeprecatedCustomRule]),s=>RU(s,rn.DIAGNOSTIC_SEVERITY.Warning,"Deprecation"));return i.concat(o)}rn.validateQuery=IU;function AU(e,t){return Array.prototype.concat.apply([],e.map(t))}function RU(e,t,r){if(!e.nodes)return[];let n=[];return e.nodes.forEach(i=>{let o=i.kind!=="Variable"&&"name"in i&&i.name!==void 0?i.name:"variable"in i&&i.variable!==void 0?i.variable:i;if(o){dy(e.locations,"GraphQL validation error requires locations.");let s=e.locations[0],l=rte(o),d=s.column+(l.end-l.start);n.push({source:`GraphQL: ${r}`,message:e.message,severity:t,range:new Gs.Range(new Gs.Position(s.line-1,s.column-1),new Gs.Position(s.line-1,d))})}}),n}function jU(e,t){let r=(0,LU.onlineParser)(),n=r.startState(),i=t.split(`
|
|
`);dy(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h<e.line;h++)for(o=new LU.CharacterStream(i[h]);!o.eol()&&r.token(o,n)!=="invalidchar";);dy(o,"Expected Parser stream to be available.");let s=e.line-1,l=o.getStartOfToken(),d=o.getCurrentPosition();return new Gs.Range(new Gs.Position(s,l),new Gs.Position(s,d))}rn.getRange=jU;function rte(e){let r=e.loc;return dy(r,"Expected ASTNode to have a location."),r}});var MU=G(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.getOutline=void 0;var cw=ht(),FU=Hp(),{INLINE_FRAGMENT:nte}=cw.Kind;function ite(e){let t;try{t=(0,cw.parse)(e)}catch(i){return null}let r=ate(e);return{outlineTrees:(0,cw.visit)(t,{leave(i){return r!==void 0&&i.kind in r?r[i.kind](i):null}})}}py.getOutline=ite;function ate(e){let t=r=>({representativeName:r.name,startPosition:(0,FU.offsetToPosition)(e,r.loc.start),endPosition:(0,FU.offsetToPosition)(e,r.loc.end),kind:r.kind,children:r.selectionSet||r.fields||r.values||r.arguments||[]});return{Field:r=>{let n=r.alias?[rr("plain",r.alias),rr("plain",": ")]:[];return n.push(rr("plain",r.name)),Object.assign({tokenizedText:n},t(r))},OperationDefinition:r=>Object.assign({tokenizedText:[rr("keyword",r.operation),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),Document:r=>r.definitions,SelectionSet:r=>ote(r.selections,n=>n.kind===nte?n.selectionSet:n),Name:r=>r.value,FragmentDefinition:r=>Object.assign({tokenizedText:[rr("keyword","fragment"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InterfaceTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","interface"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","enum"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),EnumValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),ObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","type"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),InputObjectTypeDefinition:r=>Object.assign({tokenizedText:[rr("keyword","input"),rr("whitespace"," "),rr("class-name",r.name)]},t(r)),FragmentSpread:r=>Object.assign({tokenizedText:[rr("plain","..."),rr("class-name",r.name)]},t(r)),InputValueDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),FieldDefinition:r=>Object.assign({tokenizedText:[rr("plain",r.name)]},t(r)),InlineFragment:r=>r.selectionSet}}function rr(e,t){return{kind:e,value:t}}function ote(e,t){let r=[];for(let n=0;n<e.length;n++){let i=t(e[n],n);Array.isArray(i)?r.push(...i):r.push(i)}return r}});var BU=G(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.getHoverInformation=void 0;var qU=ht(),VU=ew();function ute(e,t,r,n,i){let o=n||(0,VU.getTokenAtPosition)(t,r);if(!e||!o||!o.state)return"";let s=o.state,l=s.kind,d=s.step,h=(0,VU.getTypeInfo)(e,o.state),v=Object.assign(Object.assign({},i),{schema:e});if(l==="Field"&&d===0&&h.fieldDef||l==="AliasedField"&&d===2&&h.fieldDef){let y=[];return zp(y,v),ste(y,h,v),Wp(y,v),Yp(y,v,h.fieldDef),y.join("").trim()}else if(l==="Directive"&&d===1&&h.directiveDef){let y=[];return zp(y,v),GU(y,h,v),Wp(y,v),Yp(y,v,h.directiveDef),y.join("").trim()}else if(l==="Argument"&&d===0&&h.argDef){let y=[];return zp(y,v),lte(y,h,v),Wp(y,v),Yp(y,v,h.argDef),y.join("").trim()}else if(l==="EnumValue"&&h.enumValue&&"description"in h.enumValue){let y=[];return zp(y,v),cte(y,h,v),Wp(y,v),Yp(y,v,h.enumValue),y.join("").trim()}else if(l==="NamedType"&&h.type&&"description"in h.type){let y=[];return zp(y,v),Gc(y,h,v,h.type),Wp(y,v),Yp(y,v,h.type),y.join("").trim()}return""}hy.getHoverInformation=ute;function zp(e,t){t.useMarkdown&&Ur(e,"```graphql\n")}function Wp(e,t){t.useMarkdown&&Ur(e,"\n```")}function ste(e,t,r){UU(e,t,r),QU(e,t,r,t.type)}function UU(e,t,r){if(!t.fieldDef)return;let n=t.fieldDef.name;n.slice(0,2)!=="__"&&(Gc(e,t,r,t.parentType),Ur(e,".")),Ur(e,n)}function GU(e,t,r){if(!t.directiveDef)return;let n="@"+t.directiveDef.name;Ur(e,n)}function lte(e,t,r){if(t.directiveDef?GU(e,t,r):t.fieldDef&&UU(e,t,r),!t.argDef)return;let n=t.argDef.name;Ur(e,"("),Ur(e,n),QU(e,t,r,t.inputType),Ur(e,")")}function QU(e,t,r,n){Ur(e,": "),Gc(e,t,r,n)}function cte(e,t,r){if(!t.enumValue)return;let n=t.enumValue.name;Gc(e,t,r,t.inputType),Ur(e,"."),Ur(e,n)}function Gc(e,t,r,n){!n||(n instanceof qU.GraphQLNonNull?(Gc(e,t,r,n.ofType),Ur(e,"!")):n instanceof qU.GraphQLList?(Ur(e,"["),Gc(e,t,r,n.ofType),Ur(e,"]")):Ur(e,n.name))}function Yp(e,t,r){if(!r)return;let n=typeof r.description=="string"?r.description:null;n&&(Ur(e,`
|
|
|
|
`),Ur(e,n)),fte(e,t,r)}function fte(e,t,r){if(!r)return;let n=r.deprecationReason?r.deprecationReason:null;!n||(Ur(e,`
|
|
|
|
`),Ur(e,"Deprecated: "),Ur(e,n))}function Ur(e,t){e.push(t)}});var KU=G(bi=>{"use strict";var dte=bi&&bi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),vy=bi&&bi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&dte(t,e,r)};Object.defineProperty(bi,"__esModule",{value:!0});bi.getHoverInformation=bi.getOutline=void 0;vy(QO(),bi);vy(ew(),bi);vy(CU(),bi);vy(PU(),bi);var pte=MU();Object.defineProperty(bi,"getOutline",{enumerable:!0,get:function(){return pte.getOutline}});var hte=BU();Object.defineProperty(bi,"getHoverInformation",{enumerable:!0,get:function(){return hte.getHoverInformation}})});var HU=G(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.CompletionItemKind=Qs.FileChangeTypeKind=void 0;Qs.FileChangeTypeKind={Created:1,Changed:2,Deleted:3};var vte;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(vte=Qs.CompletionItemKind||(Qs.CompletionItemKind={}))});var Qc=G(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.Range=ve.validateWithCustomRules=ve.collectVariables=ve.Position=ve.pointToOffset=ve.offsetToPosition=ve.getVariablesJSONSchema=ve.getQueryFacts=ve.getOperationFacts=ve.getOperationASTFacts=ve.getFragmentDependenciesForAST=ve.getFragmentDependencies=ve.getASTNodeAtPosition=ve.FileChangeTypeKind=ve.CompletionItemKind=ve.opt=ve.t=ve.list=ve.p=ve.isIgnored=ve.LexRules=ve.RuleKinds=ve.CharacterStream=ve.ParseRules=ve.onlineParser=ve.validateQuery=ve.SuggestionCommand=ve.canUseDirective=ve.DIAGNOSTIC_SEVERITY=ve.SEVERITY=ve.getVariableCompletions=ve.getTypeInfo=ve.getTokenAtPosition=ve.getRange=ve.getOutline=ve.getHoverInformation=ve.getFragmentDefinitions=ve.getFieldDef=ve.getDiagnostics=ve.getDefinitionState=ve.getDefinitionQueryResultForField=ve.getDefinitionQueryResultForNamedType=ve.getDefinitionQueryResultForFragmentSpread=ve.getDefinitionQueryResultForDefinitionNode=ve.getAutocompleteSuggestions=void 0;var Gr=KU();Object.defineProperty(ve,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return Gr.getAutocompleteSuggestions}});Object.defineProperty(ve,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForDefinitionNode}});Object.defineProperty(ve,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForFragmentSpread}});Object.defineProperty(ve,"getDefinitionQueryResultForNamedType",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForNamedType}});Object.defineProperty(ve,"getDefinitionQueryResultForField",{enumerable:!0,get:function(){return Gr.getDefinitionQueryResultForField}});Object.defineProperty(ve,"getDefinitionState",{enumerable:!0,get:function(){return Gr.getDefinitionState}});Object.defineProperty(ve,"getDiagnostics",{enumerable:!0,get:function(){return Gr.getDiagnostics}});Object.defineProperty(ve,"getFieldDef",{enumerable:!0,get:function(){return Gr.getFieldDef}});Object.defineProperty(ve,"getFragmentDefinitions",{enumerable:!0,get:function(){return Gr.getFragmentDefinitions}});Object.defineProperty(ve,"getHoverInformation",{enumerable:!0,get:function(){return Gr.getHoverInformation}});Object.defineProperty(ve,"getOutline",{enumerable:!0,get:function(){return Gr.getOutline}});Object.defineProperty(ve,"getRange",{enumerable:!0,get:function(){return Gr.getRange}});Object.defineProperty(ve,"getTokenAtPosition",{enumerable:!0,get:function(){return Gr.getTokenAtPosition}});Object.defineProperty(ve,"getTypeInfo",{enumerable:!0,get:function(){return Gr.getTypeInfo}});Object.defineProperty(ve,"getVariableCompletions",{enumerable:!0,get:function(){return Gr.getVariableCompletions}});Object.defineProperty(ve,"SEVERITY",{enumerable:!0,get:function(){return Gr.SEVERITY}});Object.defineProperty(ve,"DIAGNOSTIC_SEVERITY",{enumerable:!0,get:function(){return Gr.DIAGNOSTIC_SEVERITY}});Object.defineProperty(ve,"canUseDirective",{enumerable:!0,get:function(){return Gr.canUseDirective}});Object.defineProperty(ve,"SuggestionCommand",{enumerable:!0,get:function(){return Gr.SuggestionCommand}});Object.defineProperty(ve,"validateQuery",{enumerable:!0,get:function(){return Gr.validateQuery}});var eo=ay();Object.defineProperty(ve,"onlineParser",{enumerable:!0,get:function(){return eo.onlineParser}});Object.defineProperty(ve,"ParseRules",{enumerable:!0,get:function(){return eo.ParseRules}});Object.defineProperty(ve,"CharacterStream",{enumerable:!0,get:function(){return eo.CharacterStream}});Object.defineProperty(ve,"RuleKinds",{enumerable:!0,get:function(){return eo.RuleKinds}});Object.defineProperty(ve,"LexRules",{enumerable:!0,get:function(){return eo.LexRules}});Object.defineProperty(ve,"isIgnored",{enumerable:!0,get:function(){return eo.isIgnored}});Object.defineProperty(ve,"p",{enumerable:!0,get:function(){return eo.p}});Object.defineProperty(ve,"list",{enumerable:!0,get:function(){return eo.list}});Object.defineProperty(ve,"t",{enumerable:!0,get:function(){return eo.t}});Object.defineProperty(ve,"opt",{enumerable:!0,get:function(){return eo.opt}});var zU=HU();Object.defineProperty(ve,"CompletionItemKind",{enumerable:!0,get:function(){return zU.CompletionItemKind}});Object.defineProperty(ve,"FileChangeTypeKind",{enumerable:!0,get:function(){return zU.FileChangeTypeKind}});var Ii=Hp();Object.defineProperty(ve,"getASTNodeAtPosition",{enumerable:!0,get:function(){return Ii.getASTNodeAtPosition}});Object.defineProperty(ve,"getFragmentDependencies",{enumerable:!0,get:function(){return Ii.getFragmentDependencies}});Object.defineProperty(ve,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return Ii.getFragmentDependenciesForAST}});Object.defineProperty(ve,"getOperationASTFacts",{enumerable:!0,get:function(){return Ii.getOperationASTFacts}});Object.defineProperty(ve,"getOperationFacts",{enumerable:!0,get:function(){return Ii.getOperationFacts}});Object.defineProperty(ve,"getQueryFacts",{enumerable:!0,get:function(){return Ii.getQueryFacts}});Object.defineProperty(ve,"getVariablesJSONSchema",{enumerable:!0,get:function(){return Ii.getVariablesJSONSchema}});Object.defineProperty(ve,"offsetToPosition",{enumerable:!0,get:function(){return Ii.offsetToPosition}});Object.defineProperty(ve,"pointToOffset",{enumerable:!0,get:function(){return Ii.pointToOffset}});Object.defineProperty(ve,"Position",{enumerable:!0,get:function(){return Ii.Position}});Object.defineProperty(ve,"collectVariables",{enumerable:!0,get:function(){return Ii.collectVariables}});Object.defineProperty(ve,"validateWithCustomRules",{enumerable:!0,get:function(){return Ii.validateWithCustomRules}});Object.defineProperty(ve,"Range",{enumerable:!0,get:function(){return Ii.Range}})});var YU=G(my=>{"use strict";var gte=my&&my.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(my,"__esModule",{value:!0});var gy=gte(Wt());jO();var WU=Qc();gy.default.registerHelper("hint","graphql",function(e,t){var r=t.schema;if(!!r){var n=e.getCursor(),i=e.getTokenAt(n),o=i.type!==null&&/"|\w/.test(i.string[0])?i.start:i.end,s=new WU.Position(n.line,o),l=(0,WU.getAutocompleteSuggestions)(r,e.getValue(),s,i,t.externalFragments),d={list:l.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:i.end}};return(d==null?void 0:d.list)&&d.list.length>0&&(d.from=gy.default.Pos(d.from.line,d.from.ch),d.to=gy.default.Pos(d.to.line,d.to.ch),gy.default.signal(e,"hasCompletion",e,d,i)),d}})});var XU=G(yy=>{"use strict";var mte=yy&&yy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yy,"__esModule",{value:!0});var fw=mte(Wt()),yte=Qc(),JU=["error","warning","information","hint"],bte={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};fw.default.registerHelper("lint","graphql",function(e,t){var r=t.schema,n=(0,yte.getDiagnostics)(e,r,t.validationRules,void 0,t.externalFragments),i=n.map(function(o){return{message:o.message,severity:o.severity?JU[o.severity-1]:JU[0],type:o.source?bte[o.source]:void 0,from:fw.default.Pos(o.range.start.line,o.range.start.character),to:fw.default.Pos(o.range.end.line,o.range.end.character)}});return i})});var pw=G(dw=>{"use strict";Object.defineProperty(dw,"__esModule",{value:!0});function Tte(e,t){for(var r=[],n=e;n==null?void 0:n.kind;)r.push(n),n=n.prevState;for(var i=r.length-1;i>=0;i--)t(r[i])}dw.default=Tte});var hw=G(Jp=>{"use strict";var _te=Jp&&Jp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jp,"__esModule",{value:!0});var Fu=ht(),Bc=vi(),Ete=_te(pw());function Ste(e,t){var r={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,Ete.default)(t,function(n){var i,o;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?ZU(e,r.parentType,n.name):null,r.type=(i=r.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":r.parentType=r.type?(0,Fu.getNamedType)(r.type):null;break;case"Directive":r.directiveDef=n.name?e.getDirective(n.name):null;break;case"Arguments":var s=n.prevState?n.prevState.kind==="Field"?r.fieldDef:n.prevState.kind==="Directive"?r.directiveDef:n.prevState.kind==="AliasedField"?n.prevState.name&&ZU(e,r.parentType,n.prevState.name):null:null;r.argDefs=s?s.args:null;break;case"Argument":if(r.argDef=null,r.argDefs){for(var l=0;l<r.argDefs.length;l++)if(r.argDefs[l].name===n.name){r.argDef=r.argDefs[l];break}}r.inputType=(o=r.argDef)===null||o===void 0?void 0:o.type;break;case"EnumValue":var d=r.inputType?(0,Fu.getNamedType)(r.inputType):null;r.enumValue=d instanceof Fu.GraphQLEnumType?kte(d.getValues(),function(b){return b.value===n.name}):null;break;case"ListValue":var h=r.inputType?(0,Fu.getNullableType)(r.inputType):null;r.inputType=h instanceof Fu.GraphQLList?h.ofType:null;break;case"ObjectValue":var v=r.inputType?(0,Fu.getNamedType)(r.inputType):null;r.objectFieldDefs=v instanceof Fu.GraphQLInputObjectType?v.getFields():null;break;case"ObjectField":var y=n.name&&r.objectFieldDefs?r.objectFieldDefs[n.name]:null;r.inputType=y==null?void 0:y.type;break;case"NamedType":r.type=n.name?e.getType(n.name):null;break}}),r}Jp.default=Ste;function ZU(e,t,r){if(r===Bc.SchemaMetaFieldDef.name&&e.getQueryType()===t)return Bc.SchemaMetaFieldDef;if(r===Bc.TypeMetaFieldDef.name&&e.getQueryType()===t)return Bc.TypeMetaFieldDef;if(r===Bc.TypeNameMetaFieldDef.name&&(0,Fu.isCompositeType)(t))return Bc.TypeNameMetaFieldDef;if(t&&t.getFields)return t.getFields()[r]}function kte(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}});var vw=G(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.getTypeReference=ra.getEnumValueReference=ra.getArgumentReference=ra.getDirectiveReference=ra.getFieldReference=void 0;var Ote=ht();function wte(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:$U(e.fieldDef)?null:e.parentType}}ra.getFieldReference=wte;function Nte(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}ra.getDirectiveReference=Nte;function Dte(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:$U(e.fieldDef)?null:e.parentType}}ra.getArgumentReference=Dte;function xte(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,Ote.getNamedType)(e.inputType):void 0}}ra.getEnumValueReference=xte;function Cte(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}ra.getTypeReference=Cte;function $U(e){return e.name.slice(0,2)==="__"}});var gw=G(by=>{"use strict";var Lte=by&&by.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(by,"__esModule",{value:!0});var Gn=Lte(Wt());Gn.default.defineOption("info",!1,function(e,t,r){if(r&&r!==Gn.default.Init){var n=e.state.info.onMouseOver;Gn.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var i=e.state.info=Ite(t);i.onMouseOver=Rte.bind(null,e),Gn.default.on(e.getWrapperElement(),"mouseover",i.onMouseOver)}});function Ite(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function Ate(e){var t=e.state.info.options;return(t==null?void 0:t.hoverTime)||500}function Rte(e,t){var r=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&!(n.nodeName!=="SPAN"||r.hoverTimeout!==void 0)){var i=n.getBoundingClientRect(),o=function(){clearTimeout(r.hoverTimeout),r.hoverTimeout=setTimeout(l,d)},s=function(){Gn.default.off(document,"mousemove",o),Gn.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(r.hoverTimeout),r.hoverTimeout=void 0},l=function(){Gn.default.off(document,"mousemove",o),Gn.default.off(e.getWrapperElement(),"mouseout",s),r.hoverTimeout=void 0,jte(e,i)},d=Ate(e);r.hoverTimeout=setTimeout(l,d),Gn.default.on(document,"mousemove",o),Gn.default.on(e.getWrapperElement(),"mouseout",s)}}function jte(e,t){var r=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info,i=n.options,o=i.render||e.getHelper(r,"info");if(o){var s=e.getTokenAt(r,!0);if(s){var l=o(s,i,e,r);l&&Pte(e,t,l)}}}function Pte(e,t,r){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(r),document.body.appendChild(n);var i=n.getBoundingClientRect(),o=window.getComputedStyle(n),s=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),d=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-l),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 v,y=function(){clearTimeout(v)},b=function(){clearTimeout(v),v=setTimeout(D,200)},D=function(){Gn.default.off(n,"mouseover",y),Gn.default.off(n,"mouseout",b),Gn.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)};Gn.default.on(n,"mouseover",y),Gn.default.on(n,"mouseout",b),Gn.default.on(e.getWrapperElement(),"mouseout",b)}});var aG=G(Ty=>{"use strict";var eG=Ty&&Ty.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ty,"__esModule",{value:!0});var tG=ht(),Fte=eG(Wt()),Mte=eG(hw()),Xp=vw();gw();Fte.default.registerHelper("info","graphql",function(e,t){if(!(!t.schema||!e.state)){var r=e.state,n=r.kind,i=r.step,o=(0,Mte.default)(t.schema,e.state);if(n==="Field"&&i===0&&o.fieldDef||n==="AliasedField"&&i===2&&o.fieldDef){var s=document.createElement("div");return qte(s,o,t),Zp(s,t,o.fieldDef),s}else if(n==="Directive"&&i===1&&o.directiveDef){var s=document.createElement("div");return nG(s,o,t),Zp(s,t,o.directiveDef),s}else if(n==="Argument"&&i===0&&o.argDef){var s=document.createElement("div");return Vte(s,o,t),Zp(s,t,o.argDef),s}else if(n==="EnumValue"&&o.enumValue&&o.enumValue.description){var s=document.createElement("div");return Ute(s,o,t),Zp(s,t,o.enumValue),s}else if(n==="NamedType"&&o.type&&o.type.description){var s=document.createElement("div");return Kc(s,o,t,o.type),Zp(s,t,o.type),s}}});function qte(e,t,r){rG(e,t,r),iG(e,t,r,t.type)}function rG(e,t,r){var n,i=((n=t.fieldDef)===null||n===void 0?void 0:n.name)||"";i.slice(0,2)!=="__"&&(Kc(e,t,r,t.parentType),Ai(e,".")),Ai(e,i,"field-name",r,(0,Xp.getFieldReference)(t))}function nG(e,t,r){var n,i="@"+(((n=t.directiveDef)===null||n===void 0?void 0:n.name)||"");Ai(e,i,"directive-name",r,(0,Xp.getDirectiveReference)(t))}function Vte(e,t,r){var n;t.directiveDef?nG(e,t,r):t.fieldDef&&rG(e,t,r);var i=((n=t.argDef)===null||n===void 0?void 0:n.name)||"";Ai(e,"("),Ai(e,i,"arg-name",r,(0,Xp.getArgumentReference)(t)),iG(e,t,r,t.inputType),Ai(e,")")}function iG(e,t,r,n){Ai(e,": "),Kc(e,t,r,n)}function Ute(e,t,r){var n,i=((n=t.enumValue)===null||n===void 0?void 0:n.name)||"";Kc(e,t,r,t.inputType),Ai(e,"."),Ai(e,i,"enum-value",r,(0,Xp.getEnumValueReference)(t))}function Kc(e,t,r,n){n instanceof tG.GraphQLNonNull?(Kc(e,t,r,n.ofType),Ai(e,"!")):n instanceof tG.GraphQLList?(Ai(e,"["),Kc(e,t,r,n.ofType),Ai(e,"]")):Ai(e,(n==null?void 0:n.name)||"","type-name",r,(0,Xp.getTypeReference)(t,n))}function Zp(e,t,r){var n=r.description;if(n){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(n):i.appendChild(document.createTextNode(n)),e.appendChild(i)}Gte(e,t,r)}function Gte(e,t,r){var n=r.deprecationReason;if(n){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(n):i.appendChild(document.createTextNode(n));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}function Ai(e,t,r,n,i){if(r===void 0&&(r=""),n===void 0&&(n={onClick:null}),i===void 0&&(i=null),r){var o=n.onClick,s=void 0;o?(s=document.createElement("a"),s.href="javascript:void 0",s.addEventListener("click",function(l){o(i,l)})):s=document.createElement("span"),s.className=r,s.appendChild(document.createTextNode(t)),e.appendChild(s)}else e.appendChild(document.createTextNode(t))}});var sG=G(_y=>{"use strict";var Qte=_y&&_y.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_y,"__esModule",{value:!0});var na=Qte(Wt());na.default.defineOption("jump",!1,function(e,t,r){if(r&&r!==na.default.Init){var n=e.state.jump.onMouseOver;na.default.off(e.getWrapperElement(),"mouseover",n);var i=e.state.jump.onMouseOut;na.default.off(e.getWrapperElement(),"mouseout",i),na.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var o=e.state.jump={options:t,onMouseOver:Bte.bind(null,e),onMouseOut:Kte.bind(null,e),onKeyDown:Hte.bind(null,e)};na.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver),na.default.on(e.getWrapperElement(),"mouseout",o.onMouseOut),na.default.on(document,"keydown",o.onKeyDown)}});function Bte(e,t){var r=t.target||t.srcElement;if(r instanceof HTMLElement&&(r==null?void 0:r.nodeName)==="SPAN"){var n=r.getBoundingClientRect(),i={left:(n.left+n.right)/2,top:(n.top+n.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&oG(e)}}function Kte(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&uG(e)}function Hte(e,t){if(!(e.state.jump.isHoldingModifier||!Wte(t.key))){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&oG(e);var r=function(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&uG(e),na.default.off(document,"keyup",r),na.default.off(document,"click",n),e.off("mousedown",i))},n=function(o){var s=e.state.jump.destination;s&&e.state.jump.options.onClick(s,o)},i=function(o,s){e.state.jump.destination&&(s.codemirrorIgnore=!0)};na.default.on(document,"keyup",r),na.default.on(document,"click",n),e.on("mousedown",i)}}var zte=typeof navigator!="undefined"&&navigator&&navigator.appVersion.indexOf("Mac")!==-1;function Wte(e){return e===(zte?"Meta":"Control")}function oG(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,r=e.coordsChar(t),n=e.getTokenAt(r,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(r,"jump");if(o){var s=o(n,i,e);if(s){var l=e.markText({line:r.line,ch:n.start},{line:r.line,ch:n.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=s}}}}function uG(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}});var cG=G(Ey=>{"use strict";var lG=Ey&&Ey.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ey,"__esModule",{value:!0});var Yte=lG(Wt()),Jte=lG(hw()),$p=vw();sG();Yte.default.registerHelper("jump","graphql",function(e,t){if(!(!t.schema||!t.onClick||!e.state)){var r=e.state,n=r.kind,i=r.step,o=(0,Jte.default)(t.schema,r);if(n==="Field"&&i===0&&o.fieldDef||n==="AliasedField"&&i===2&&o.fieldDef)return(0,$p.getFieldReference)(o);if(n==="Directive"&&i===1&&o.directiveDef)return(0,$p.getDirectiveReference)(o);if(n==="Argument"&&i===0&&o.argDef)return(0,$p.getArgumentReference)(o);if(n==="EnumValue"&&o.enumValue)return(0,$p.getEnumValueReference)(o);if(n==="NamedType"&&o.type)return(0,$p.getTypeReference)(o)}})});var fG=G(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});function Xte(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.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)}mw.default=Xte});var dG=G(eh=>{"use strict";var Zte=eh&&eh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eh,"__esModule",{value:!0});var Sy=Qc(),$te=Zte(fG()),ere=function(e){var t=(0,Sy.onlineParser)({eatWhitespace:function(r){return r.eatWhile(Sy.isIgnored)},lexRules:Sy.LexRules,parseRules:Sy.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:$te.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};eh.default=ere});var hG=G(ky=>{"use strict";var pG=ky&&ky.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ky,"__esModule",{value:!0});var tre=pG(Wt()),rre=pG(dG());tre.default.defineMode("graphql",rre.default)});var mG=G(Tw=>{"use strict";Object.defineProperty(Tw,"__esModule",{value:!0});function sre(e,t,r){var n=lre(r,gG(t.string));if(!!n){var i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:n,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}}Tw.default=sre;function lre(e,t){if(!t)return bw(e,function(o){return!o.isDeprecated});var r=e.map(function(o){return{proximity:cre(gG(o.text),t),entry:o}}),n=bw(bw(r,function(o){return o.proximity<=2}),function(o){return!o.entry.isDeprecated}),i=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 i.map(function(o){return o.entry})}function bw(e,t){var r=e.filter(t);return r.length===0?e:r}function gG(e){return e.toLowerCase().replace(/\W/g,"")}function cre(e,t){var r=fre(t,e);return e.length>t.length&&(r-=e.length-t.length-1,r+=e.indexOf(t)===0?0:.5),r}function fre(e,t){var r,n,i=[],o=e.length,s=t.length;for(r=0;r<=o;r++)i[r]=[r];for(n=1;n<=s;n++)i[0][n]=n;for(r=1;r<=o;r++)for(n=1;n<=s;n++){var l=e[r-1]===t[n-1]?0:1;i[r][n]=Math.min(i[r-1][n]+1,i[r][n-1]+1,i[r-1][n-1]+l),r>1&&n>1&&e[r-1]===t[n-2]&&e[r-2]===t[n-1]&&(i[r][n]=Math.min(i[r][n],i[r-2][n-2]+l))}return i[o][s]}});var yG=G(Dy=>{"use strict";var _w=Dy&&Dy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dy,"__esModule",{value:!0});var Ny=_w(Wt()),to=ht(),dre=_w(pw()),Hc=_w(mG());Ny.default.registerHelper("hint","graphql-variables",function(e,t){var r=e.getCursor(),n=e.getTokenAt(r),i=pre(r,n,t);return(i==null?void 0:i.list)&&i.list.length>0&&(i.from=Ny.default.Pos(i.from.line,i.from.ch),i.to=Ny.default.Pos(i.to.line,i.to.ch),Ny.default.signal(e,"hasCompletion",e,i,n)),i});function pre(e,t,r){var n=t.state.kind==="Invalid"?t.state.prevState:t.state,i=n.kind,o=n.step;if(i==="Document"&&o===0)return(0,Hc.default)(e,t,[{text:"{"}]);var s=r.variableToType;if(!!s){var l=hre(s,t.state);if(i==="Document"||i==="Variable"&&o===0){var d=Object.keys(s);return(0,Hc.default)(e,t,d.map(function(b){return{text:'"'.concat(b,'": '),type:s[b]}}))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&l.fields){var h=Object.keys(l.fields).map(function(b){return l.fields[b]});return(0,Hc.default)(e,t,h.map(function(b){return{text:'"'.concat(b.name,'": '),type:b.type,description:b.description}}))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){var v=l.type?(0,to.getNamedType)(l.type):void 0;if(v instanceof to.GraphQLInputObjectType)return(0,Hc.default)(e,t,[{text:"{"}]);if(v instanceof to.GraphQLEnumType){var y=v.getValues();return(0,Hc.default)(e,t,y.map(function(b){return{text:'"'.concat(b.name,'"'),type:v,description:b.description}}))}else if(v===to.GraphQLBoolean)return(0,Hc.default)(e,t,[{text:"true",type:to.GraphQLBoolean,description:"Not false."},{text:"false",type:to.GraphQLBoolean,description:"Not true."}])}}}function hre(e,t){var r={type:null,fields:null};return(0,dre.default)(t,function(n){if(n.kind==="Variable")r.type=e[n.name];else if(n.kind==="ListValue"){var i=r.type?(0,to.getNullableType)(r.type):void 0;r.type=i instanceof to.GraphQLList?i.ofType:null}else if(n.kind==="ObjectValue"){var o=r.type?(0,to.getNamedType)(r.type):void 0;r.fields=o instanceof to.GraphQLInputObjectType?o.getFields():null}else if(n.kind==="ObjectField"){var s=n.name&&r.fields?r.fields[n.name]:null;r.type=s==null?void 0:s.type}}),r}});var SG=G(Bs=>{"use strict";var vre=Bs&&Bs.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(Bs,"__esModule",{value:!0});Bs.JSONSyntaxError=void 0;function gre(e){ro=e,xy=e.length,nn=Qn=th=-1,an(),Ly();var t=bG();return Mu("EOF"),t}Bs.default=gre;var ro,xy,nn,Qn,th,It,Ri;function bG(){var e=nn,t=[];if(Mu("{"),!Cy("}")){do t.push(mre());while(Cy(","));Mu("}")}return{kind:"Object",start:e,end:th,members:t}}function mre(){var e=nn,t=Ri==="String"?_G():null;Mu("String"),Mu(":");var r=TG();return{kind:"Member",start:e,end:th,key:t,value:r}}function yre(){var e=nn,t=[];if(Mu("["),!Cy("]")){do t.push(TG());while(Cy(","));Mu("]")}return{kind:"Array",start:e,end:th,values:t}}function TG(){switch(Ri){case"[":return yre();case"{":return bG();case"String":case"Number":case"Boolean":case"Null":var e=_G();return Ly(),e}Mu("Value")}function _G(){return{kind:Ri,start:nn,end:Qn,value:JSON.parse(ro.slice(nn,Qn))}}function Mu(e){if(Ri===e){Ly();return}var t;if(Ri==="EOF")t="[end of file]";else if(Qn-nn>1)t="`"+ro.slice(nn,Qn)+"`";else{var r=ro.slice(nn).match(/^.+?\b/);t="`"+(r?r[0]:ro[nn])+"`"}throw zc("Expected ".concat(e," but found ").concat(t,"."))}var EG=function(e){vre(t,e);function t(r,n){var i=e.call(this,r)||this;return i.position=n,i}return t}(Error);Bs.JSONSyntaxError=EG;function zc(e){return new EG(e,{start:nn,end:Qn})}function Cy(e){if(Ri===e)return Ly(),!0}function an(){return Qn<xy&&(Qn++,It=Qn===xy?0:ro.charCodeAt(Qn)),It}function Ly(){for(th=Qn;It===9||It===10||It===13||It===32;)an();if(It===0){Ri="EOF";return}switch(nn=Qn,It){case 34:return Ri="String",bre();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ri="Number",Tre();case 102:if(ro.slice(nn,nn+5)!=="false")break;Qn+=4,an(),Ri="Boolean";return;case 110:if(ro.slice(nn,nn+4)!=="null")break;Qn+=3,an(),Ri="Null";return;case 116:if(ro.slice(nn,nn+4)!=="true")break;Qn+=3,an(),Ri="Boolean";return}Ri=ro[nn],an()}function bre(){for(an();It!==34&&It>31;)if(It===92)switch(It=an(),It){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:an();break;case 117:an(),Iy(),Iy(),Iy(),Iy();break;default:throw zc("Bad character escape sequence.")}else{if(Qn===xy)throw zc("Unterminated string.");an()}if(It===34){an();return}throw zc("Unterminated string.")}function Iy(){if(It>=48&&It<=57||It>=65&&It<=70||It>=97&&It<=102)return an();throw zc("Expected hexadecimal digit.")}function Tre(){It===45&&an(),It===48?an():Ew(),It===46&&(an(),Ew()),(It===69||It===101)&&(It=an(),(It===43||It===45)&&an(),Ew())}function Ew(){if(It<48||It>57)throw zc("Expected decimal digit.");do an();while(It>=48&&It<=57)}});var wG=G(ia=>{"use strict";var _re=ia&&ia.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ere=ia&&ia.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Sre=ia&&ia.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&_re(t,e,r);return Ere(t,e),t},kre=ia&&ia.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},Ore=ia&&ia.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ia,"__esModule",{value:!0});var wre=Ore(Wt()),Wc=ht(),kG=Sre(SG());wre.default.registerHelper("lint","graphql-variables",function(e,t,r){if(!e)return[];var n;try{n=(0,kG.default)(e)}catch(o){if(o instanceof kG.JSONSyntaxError)return[Sw(r,o.position,o.message)];throw o}var i=t.variableToType;return i?Nre(r,i,n):[]});function Nre(e,t,r){var n=[];return r.members.forEach(function(i){var o;if(i){var s=(o=i.key)===null||o===void 0?void 0:o.value,l=t[s];l?rh(l,i.value).forEach(function(d){var h=kre(d,2),v=h[0],y=h[1];n.push(Sw(e,v,y))}):n.push(Sw(e,i.key,'Variable "$'.concat(s,'" does not appear in any GraphQL query.')))}}),n}function rh(e,t){if(!e||!t)return[];if(e instanceof Wc.GraphQLNonNull)return t.kind==="Null"?[[t,'Type "'.concat(e,'" is non-nullable and cannot be null.')]]:rh(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof Wc.GraphQLList){var r=e.ofType;if(t.kind==="Array"){var n=t.values||[];return OG(n,function(s){return rh(r,s)})}return rh(r,t)}if(e instanceof Wc.GraphQLInputObjectType){if(t.kind!=="Object")return[[t,'Type "'.concat(e,'" must be an Object.')]];var i=Object.create(null),o=OG(t.members,function(s){var l,d=(l=s==null?void 0:s.key)===null||l===void 0?void 0:l.value;i[d]=!0;var h=e.getFields()[d];if(!h)return[[s.key,'Type "'.concat(e,'" does not have a field "').concat(d,'".')]];var v=h?h.type:void 0;return rh(v,s.value)});return Object.keys(e.getFields()).forEach(function(s){if(!i[s]){var l=e.getFields()[s].type;l instanceof Wc.GraphQLNonNull&&o.push([t,'Object of type "'.concat(e,'" is missing required field "').concat(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 "'.concat(e,'".')]]:(e instanceof Wc.GraphQLEnumType||e instanceof Wc.GraphQLScalarType)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||Dre(e.parseValue(t.value)))?[[t,'Expected value of type "'.concat(e,'".')]]:[]}function Sw(e,t,r){return{message:r,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Dre(e){return e==null||e!==e}function OG(e,t){return Array.prototype.concat.apply([],e.map(t))}});var DG=G(Ay=>{"use strict";var xre=Ay&&Ay.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ay,"__esModule",{value:!0});var Cre=xre(Wt()),Or=Qc();Cre.default.defineMode("graphql-variables",function(e){var t=(0,Or.onlineParser)({eatWhitespace:function(r){return r.eatSpace()},lexRules:Ire,parseRules:Are,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Lre,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function Lre(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.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 Ire={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/},Are={Document:[(0,Or.p)("{"),(0,Or.list)("Variable",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("}")],Variable:[NG("variable"),(0,Or.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:[(0,Or.t)("Number","number")],StringValue:[(0,Or.t)("String","string")],BooleanValue:[(0,Or.t)("Keyword","builtin")],NullValue:[(0,Or.t)("Keyword","keyword")],ListValue:[(0,Or.p)("["),(0,Or.list)("Value",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("]")],ObjectValue:[(0,Or.p)("{"),(0,Or.list)("ObjectField",(0,Or.opt)((0,Or.p)(","))),(0,Or.p)("}")],ObjectField:[NG("attribute"),(0,Or.p)(":"),"Value"]};function NG(e){return{style:e,match:function(t){return t.kind==="String"},update:function(t,r){t.name=r.value.slice(1,-1)}}}});var LG=G((xG,CG)=>{(function(e){typeof xG=="object"&&typeof CG=="object"?e(Wt()):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,i=r.statementIndent,o=r.jsonld,s=r.json||o,l=r.trackScope!==!1,d=r.typescript,h=r.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function j(Pr){return{type:Pr,style:"keyword"}}var H=j("keyword a"),W=j("keyword b"),ie=j("keyword c"),We=j("keyword d"),vt=j("operator"),_t={type:"atom",style:"atom"};return{if:j("if"),while:H,with:H,else:W,do:W,try:W,finally:W,return:We,break:We,continue:We,new:j("new"),delete:ie,void:ie,throw:ie,debugger:j("debugger"),var:j("var"),const:j("var"),let:j("var"),function:j("function"),catch:j("catch"),for:j("for"),switch:j("switch"),case:j("case"),default:j("default"),in:vt,typeof:vt,instanceof:vt,true:_t,false:_t,null:_t,undefined:_t,NaN:_t,Infinity:_t,this:j("this"),class:j("class"),super:j("atom"),yield:ie,export:j("export"),import:j("import"),extends:ie,await:ie}}(),y=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function D(j){for(var H=!1,W,ie=!1;(W=j.next())!=null;){if(!H){if(W=="/"&&!ie)return;W=="["?ie=!0:ie&&W=="]"&&(ie=!1)}H=!H&&W=="\\"}}var _,k;function T(j,H,W){return _=j,k=W,H}function S(j,H){var W=j.next();if(W=='"'||W=="'")return H.tokenize=m(W),H.tokenize(j,H);if(W=="."&&j.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(W=="."&&j.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(W))return T(W);if(W=="="&&j.eat(">"))return T("=>","operator");if(W=="0"&&j.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(W))return j.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(W=="/")return j.eat("*")?(H.tokenize=w,w(j,H)):j.eat("/")?(j.skipToEnd(),T("comment","comment")):wa(j,H,1)?(D(j),j.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(j.eat("="),T("operator","operator",j.current()));if(W=="`")return H.tokenize=x,x(j,H);if(W=="#"&&j.peek()=="!")return j.skipToEnd(),T("meta","meta");if(W=="#"&&j.eatWhile(h))return T("variable","property");if(W=="<"&&j.match("!--")||W=="-"&&j.match("->")&&!/\S/.test(j.string.slice(0,j.start)))return j.skipToEnd(),T("comment","comment");if(y.test(W))return(W!=">"||!H.lexical||H.lexical.type!=">")&&(j.eat("=")?(W=="!"||W=="=")&&j.eat("="):/[<>*+\-|&?]/.test(W)&&(j.eat(W),W==">"&&j.eat(W))),W=="?"&&j.eat(".")?T("."):T("operator","operator",j.current());if(h.test(W)){j.eatWhile(h);var ie=j.current();if(H.lastType!="."){if(v.propertyIsEnumerable(ie)){var We=v[ie];return T(We.type,We.style,ie)}if(ie=="async"&&j.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ie)}return T("variable","variable",ie)}}function m(j){return function(H,W){var ie=!1,We;if(o&&H.peek()=="@"&&H.match(b))return W.tokenize=S,T("jsonld-keyword","meta");for(;(We=H.next())!=null&&!(We==j&&!ie);)ie=!ie&&We=="\\";return ie||(W.tokenize=S),T("string","string")}}function w(j,H){for(var W=!1,ie;ie=j.next();){if(ie=="/"&&W){H.tokenize=S;break}W=ie=="*"}return T("comment","comment")}function x(j,H){for(var W=!1,ie;(ie=j.next())!=null;){if(!W&&(ie=="`"||ie=="$"&&j.eat("{"))){H.tokenize=S;break}W=!W&&ie=="\\"}return T("quasi","string-2",j.current())}var L="([{}])";function O(j,H){H.fatArrowAt&&(H.fatArrowAt=null);var W=j.string.indexOf("=>",j.start);if(!(W<0)){if(d){var ie=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(j.string.slice(j.start,W));ie&&(W=ie.index)}for(var We=0,vt=!1,_t=W-1;_t>=0;--_t){var Pr=j.string.charAt(_t),Si=L.indexOf(Pr);if(Si>=0&&Si<3){if(!We){++_t;break}if(--We==0){Pr=="("&&(vt=!0);break}}else if(Si>=3&&Si<6)++We;else if(h.test(Pr))vt=!0;else if(/["'\/`]/.test(Pr))for(;;--_t){if(_t==0)return;var Ye=j.string.charAt(_t-1);if(Ye==Pr&&j.string.charAt(_t-2)!="\\"){_t--;break}}else if(vt&&!We){++_t;break}}vt&&!We&&(H.fatArrowAt=_t)}}var R={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(j,H,W,ie,We,vt){this.indented=j,this.column=H,this.type=W,this.prev=We,this.info=vt,ie!=null&&(this.align=ie)}function q(j,H){if(!l)return!1;for(var W=j.localVars;W;W=W.next)if(W.name==H)return!0;for(var ie=j.context;ie;ie=ie.prev)for(var W=ie.vars;W;W=W.next)if(W.name==H)return!0}function z(j,H,W,ie,We){var vt=j.cc;for(B.state=j,B.stream=We,B.marked=null,B.cc=vt,B.style=H,j.lexical.hasOwnProperty("align")||(j.lexical.align=!0);;){var _t=vt.length?vt.pop():s?Me:we;if(_t(W,ie)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return B.marked?B.marked:W=="variable"&&q(j,ie)?"variable-2":H}}}var B={state:null,column:null,marked:null,cc:null};function Q(){for(var j=arguments.length-1;j>=0;j--)B.cc.push(arguments[j])}function P(){return Q.apply(null,arguments),!0}function he(j,H){for(var W=H;W;W=W.next)if(W.name==j)return!0;return!1}function xe(j){var H=B.state;if(B.marked="def",!!l){if(H.context){if(H.lexical.info=="var"&&H.context&&H.context.block){var W=ge(j,H.context);if(W!=null){H.context=W;return}}else if(!he(j,H.localVars)){H.localVars=new He(j,H.localVars);return}}r.globalVars&&!he(j,H.globalVars)&&(H.globalVars=new He(j,H.globalVars))}}function ge(j,H){if(H)if(H.block){var W=ge(j,H.prev);return W?W==H.prev?H:new Le(W,H.vars,!0):null}else return he(j,H.vars)?H:new Le(H.prev,new He(j,H.vars),!1);else return null}function Fe(j){return j=="public"||j=="private"||j=="protected"||j=="abstract"||j=="readonly"}function Le(j,H,W){this.prev=j,this.vars=H,this.block=W}function He(j,H){this.name=j,this.next=H}var Xe=new He("this",new He("arguments",null));function Ve(){B.state.context=new Le(B.state.context,B.state.localVars,!1),B.state.localVars=Xe}function At(){B.state.context=new Le(B.state.context,B.state.localVars,!0),B.state.localVars=null}Ve.lex=At.lex=!0;function Ot(){B.state.localVars=B.state.context.vars,B.state.context=B.state.context.prev}Ot.lex=!0;function Ie(j,H){var W=function(){var ie=B.state,We=ie.indented;if(ie.lexical.type=="stat")We=ie.lexical.indented;else for(var vt=ie.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)We=vt.indented;ie.lexical=new M(We,B.stream.column(),j,null,ie.lexical,H)};return W.lex=!0,W}function te(){var j=B.state;j.lexical.prev&&(j.lexical.type==")"&&(j.indented=j.lexical.indented),j.lexical=j.lexical.prev)}te.lex=!0;function ce(j){function H(W){return W==j?P():j==";"||W=="}"||W==")"||W=="]"?Q():P(H)}return H}function we(j,H){return j=="var"?P(Ie("vardef",H),J,ce(";"),te):j=="keyword a"?P(Ie("form"),ze,we,te):j=="keyword b"?P(Ie("form"),we,te):j=="keyword d"?B.stream.match(/^\s*$/,!1)?P():P(Ie("stat"),oe,ce(";"),te):j=="debugger"?P(ce(";")):j=="{"?P(Ie("}"),At,zn,te,Ot):j==";"?P():j=="if"?(B.state.lexical.info=="else"&&B.state.cc[B.state.cc.length-1]==te&&B.state.cc.pop()(),P(Ie("form"),ze,we,te,Ut)):j=="function"?P(jr):j=="for"?P(Ie("form"),At,Rt,we,Ot,te):j=="class"||d&&H=="interface"?(B.marked="keyword",P(Ie("form",j=="class"?j:H),ch,te)):j=="variable"?d&&H=="declare"?(B.marked="keyword",P(we)):d&&(H=="module"||H=="enum"||H=="type")&&B.stream.match(/^\s*\w/,!1)?(B.marked="keyword",H=="enum"?P(Xs):H=="type"?P(sa,ce("operator"),_e,ce(";")):P(Ie("form"),V,ce("{"),Ie("}"),zn,te,te)):d&&H=="namespace"?(B.marked="keyword",P(Ie("form"),Me,we,te)):d&&H=="abstract"?(B.marked="keyword",P(we)):P(Ie("stat"),dn):j=="switch"?P(Ie("form"),ze,ce("{"),Ie("}","switch"),At,zn,te,te,Ot):j=="case"?P(Me,ce(":")):j=="default"?P(ce(":")):j=="catch"?P(Ie("form"),Ve,ot,we,te,Ot):j=="export"?P(Ie("stat"),jo,te):j=="import"?P(Ie("stat"),ao,te):j=="async"?P(we):H=="@"?P(Me,we):Q(Ie("stat"),Me,ce(";"),te)}function ot(j){if(j=="(")return P(Cn,ce(")"))}function Me(j,H){return mt(j,H,!1)}function Qe(j,H){return mt(j,H,!0)}function ze(j){return j!="("?Q():P(Ie(")"),oe,ce(")"),te)}function mt(j,H,W){if(B.state.fatArrowAt==B.stream.start){var ie=W?ct:at;if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,ce("=>"),ie,Ot);if(j=="variable")return Q(Ve,V,ce("=>"),ie,Ot)}var We=W?fe:me;return R.hasOwnProperty(j)?P(We):j=="function"?P(jr,We):j=="class"||d&&H=="interface"?(B.marked="keyword",P(Ie("form"),la,te)):j=="keyword c"||j=="async"?P(W?Qe:Me):j=="("?P(Ie(")"),oe,ce(")"),te,We):j=="operator"||j=="spread"?P(W?Qe:Me):j=="["?P(Ie("]"),oo,te,We):j=="{"?hn(pn,"}",null,We):j=="quasi"?Q(se,We):j=="new"?P(st(W)):P()}function oe(j){return j.match(/[;\}\)\],]/)?Q():Q(Me)}function me(j,H){return j==","?P(oe):fe(j,H,!1)}function fe(j,H,W){var ie=W==!1?me:fe,We=W==!1?Me:Qe;if(j=="=>")return P(Ve,W?ct:at,Ot);if(j=="operator")return/\+\+|--/.test(H)||d&&H=="!"?P(ie):d&&H=="<"&&B.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(Ie(">"),Kt(_e,">"),te,ie):H=="?"?P(Me,ce(":"),We):P(We);if(j=="quasi")return Q(se,ie);if(j!=";"){if(j=="(")return hn(Qe,")","call",ie);if(j==".")return P(Hn,ie);if(j=="[")return P(Ie("]"),oe,ce("]"),te,ie);if(d&&H=="as")return B.marked="keyword",P(_e,ie);if(j=="regexp")return B.state.lastType=B.marked="operator",B.stream.backUp(B.stream.pos-B.stream.start-1),P(We)}}function se(j,H){return j!="quasi"?Q():H.slice(H.length-2)!="${"?P(se):P(oe,Ue)}function Ue(j){if(j=="}")return B.marked="string-2",B.state.tokenize=x,P(se)}function at(j){return O(B.stream,B.state),Q(j=="{"?we:Me)}function ct(j){return O(B.stream,B.state),Q(j=="{"?we:Qe)}function st(j){return function(H){return H=="."?P(j?Ei:Dn):H=="variable"&&d?P(ee,j?fe:me):Q(j?Qe:Me)}}function Dn(j,H){if(H=="target")return B.marked="keyword",P(me)}function Ei(j,H){if(H=="target")return B.marked="keyword",P(fe)}function dn(j){return j==":"?P(te,we):Q(me,ce(";"),te)}function Hn(j){if(j=="variable")return B.marked="property",P()}function pn(j,H){if(j=="async")return B.marked="property",P(pn);if(j=="variable"||B.style=="keyword"){if(B.marked="property",H=="get"||H=="set")return P(Pi);var W;return d&&B.state.fatArrowAt==B.stream.start&&(W=B.stream.match(/^\s*:\s*/,!1))&&(B.state.fatArrowAt=B.stream.pos+W[0].length),P(Qr)}else{if(j=="number"||j=="string")return B.marked=o?"property":B.style+" property",P(Qr);if(j=="jsonld-keyword")return P(Qr);if(d&&Fe(H))return B.marked="keyword",P(pn);if(j=="[")return P(Me,vr,ce("]"),Qr);if(j=="spread")return P(Qe,Qr);if(H=="*")return B.marked="keyword",P(pn);if(j==":")return Q(Qr)}}function Pi(j){return j!="variable"?Q(Qr):(B.marked="property",P(jr))}function Qr(j){if(j==":")return P(Qe);if(j=="(")return Q(jr)}function Kt(j,H,W){function ie(We,vt){if(W?W.indexOf(We)>-1:We==","){var _t=B.state.lexical;return _t.info=="call"&&(_t.pos=(_t.pos||0)+1),P(function(Pr,Si){return Pr==H||Si==H?Q():Q(j)},ie)}return We==H||vt==H?P():W&&W.indexOf(";")>-1?Q(j):P(ce(H))}return function(We,vt){return We==H||vt==H?P():Q(j,ie)}}function hn(j,H,W){for(var ie=3;ie<arguments.length;ie++)B.cc.push(arguments[ie]);return P(Ie(H,W),Kt(j,H),te)}function zn(j){return j=="}"?P():Q(we,zn)}function vr(j,H){if(d){if(j==":")return P(_e);if(H=="?")return P(vr)}}function Ro(j,H){if(d&&(j==":"||H=="in"))return P(_e)}function xn(j){if(d&&j==":")return B.stream.match(/^\s*\w+\s+is\b/,!1)?P(Me,Ws,_e):P(_e)}function Ws(j,H){if(H=="is")return B.marked="keyword",P()}function _e(j,H){if(H=="keyof"||H=="typeof"||H=="infer"||H=="readonly")return B.marked="keyword",P(H=="typeof"?Qe:_e);if(j=="variable"||H=="void")return B.marked="type",P(un);if(H=="|"||H=="&")return P(_e);if(j=="string"||j=="number"||j=="atom")return P(un);if(j=="[")return P(Ie("]"),Kt(_e,"]",","),te,un);if(j=="{")return P(Ie("}"),Ar,te,un);if(j=="(")return P(Kt(on,")"),Gu,un);if(j=="<")return P(Kt(_e,">"),_e);if(j=="quasi")return Q(nr,un)}function Gu(j){if(j=="=>")return P(_e)}function Ar(j){return j.match(/[\}\)\]]/)?P():j==","||j==";"?P(Ar):Q(Ft,Ar)}function Ft(j,H){if(j=="variable"||B.style=="keyword")return B.marked="property",P(Ft);if(H=="?"||j=="number"||j=="string")return P(Ft);if(j==":")return P(_e);if(j=="[")return P(ce("variable"),Ro,ce("]"),Ft);if(j=="(")return Q(et,Ft);if(!j.match(/[;\}\)\],]/))return P()}function nr(j,H){return j!="quasi"?Q():H.slice(H.length-2)!="${"?P(nr):P(_e,Ys)}function Ys(j){if(j=="}")return B.marked="string-2",B.state.tokenize=x,P(nr)}function on(j,H){return j=="variable"&&B.stream.match(/^\s*[?:]/,!1)||H=="?"?P(on):j==":"?P(_e):j=="spread"?P(on):Q(_e)}function un(j,H){if(H=="<")return P(Ie(">"),Kt(_e,">"),te,un);if(H=="|"||j=="."||H=="&")return P(_e);if(j=="[")return P(_e,ce("]"),un);if(H=="extends"||H=="implements")return B.marked="keyword",P(_e);if(H=="?")return P(_e,ce(":"),_e)}function ee(j,H){if(H=="<")return P(Ie(">"),Kt(_e,">"),te,un)}function F(){return Q(_e,Y)}function Y(j,H){if(H=="=")return P(_e)}function J(j,H){return H=="enum"?(B.marked="keyword",P(Xs)):Q(V,vr,ue,Ze)}function V(j,H){if(d&&Fe(H))return B.marked="keyword",P(V);if(j=="variable")return xe(H),P();if(j=="spread")return P(V);if(j=="[")return hn(re,"]");if(j=="{")return hn(A,"}")}function A(j,H){return j=="variable"&&!B.stream.match(/^\s*:/,!1)?(xe(H),P(ue)):(j=="variable"&&(B.marked="property"),j=="spread"?P(V):j=="}"?Q():j=="["?P(Me,ce("]"),ce(":"),A):P(ce(":"),V,ue))}function re(){return Q(V,ue)}function ue(j,H){if(H=="=")return P(Qe)}function Ze(j){if(j==",")return P(J)}function Ut(j,H){if(j=="keyword b"&&H=="else")return P(Ie("form","else"),we,te)}function Rt(j,H){if(H=="await")return P(Rt);if(j=="(")return P(Ie(")"),vn,te)}function vn(j){return j=="var"?P(J,Rr):j=="variable"?P(Rr):Q(Rr)}function Rr(j,H){return j==")"?P():j==";"?P(Rr):H=="in"||H=="of"?(B.marked="keyword",P(Me,Rr)):Q(Me,Rr)}function jr(j,H){if(H=="*")return B.marked="keyword",P(jr);if(j=="variable")return xe(H),P(jr);if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,xn,we,Ot);if(d&&H=="<")return P(Ie(">"),Kt(F,">"),te,jr)}function et(j,H){if(H=="*")return B.marked="keyword",P(et);if(j=="variable")return xe(H),P(et);if(j=="(")return P(Ve,Ie(")"),Kt(Cn,")"),te,xn,Ot);if(d&&H=="<")return P(Ie(">"),Kt(F,">"),te,et)}function sa(j,H){if(j=="keyword"||j=="variable")return B.marked="type",P(sa);if(H=="<")return P(Ie(">"),Kt(F,">"),te)}function Cn(j,H){return H=="@"&&P(Me,Cn),j=="spread"?P(Cn):d&&Fe(H)?(B.marked="keyword",P(Cn)):d&&j=="this"?P(vr,ue):Q(V,vr,ue)}function la(j,H){return j=="variable"?ch(j,H):Js(j,H)}function ch(j,H){if(j=="variable")return xe(H),P(Js)}function Js(j,H){if(H=="<")return P(Ie(">"),Kt(F,">"),te,Js);if(H=="extends"||H=="implements"||d&&j==",")return H=="implements"&&(B.marked="keyword"),P(d?_e:Me,Js);if(j=="{")return P(Ie("}"),ui,te)}function ui(j,H){if(j=="async"||j=="variable"&&(H=="static"||H=="get"||H=="set"||d&&Fe(H))&&B.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return B.marked="keyword",P(ui);if(j=="variable"||B.style=="keyword")return B.marked="property",P(io,ui);if(j=="number"||j=="string")return P(io,ui);if(j=="[")return P(Me,vr,ce("]"),io,ui);if(H=="*")return B.marked="keyword",P(ui);if(d&&j=="(")return Q(et,ui);if(j==";"||j==",")return P(ui);if(j=="}")return P();if(H=="@")return P(Me,ui)}function io(j,H){if(H=="!"||H=="?")return P(io);if(j==":")return P(_e,ue);if(H=="=")return P(Qe);var W=B.state.lexical.prev,ie=W&&W.info=="interface";return Q(ie?et:jr)}function jo(j,H){return H=="*"?(B.marked="keyword",P(Ae,ce(";"))):H=="default"?(B.marked="keyword",P(Me,ce(";"))):j=="{"?P(Kt(fh,"}"),Ae,ce(";")):Q(we)}function fh(j,H){if(H=="as")return B.marked="keyword",P(ce("variable"));if(j=="variable")return Q(Qe,fh)}function ao(j){return j=="string"?P():j=="("?Q(Me):j=="."?Q(me):Q(Po,nf,Ae)}function Po(j,H){return j=="{"?hn(Po,"}"):(j=="variable"&&xe(H),H=="*"&&(B.marked="keyword"),P(gr))}function nf(j){if(j==",")return P(Po,nf)}function gr(j,H){if(H=="as")return B.marked="keyword",P(Po)}function Ae(j,H){if(H=="from")return B.marked="keyword",P(Me)}function oo(j){return j=="]"?P():Q(Kt(Qe,"]"))}function Xs(){return Q(Ie("form"),V,ce("{"),Ie("}"),Kt(Fi,"}"),te,te)}function Fi(){return Q(V,ue)}function wt(j,H){return j.lastType=="operator"||j.lastType==","||y.test(H.charAt(0))||/[,.]/.test(H.charAt(0))}function wa(j,H,W){return H.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(H.lastType)||H.lastType=="quasi"&&/\{\s*$/.test(j.string.slice(0,j.pos-(W||0)))}return{startState:function(j){var H={tokenize:S,lastType:"sof",cc:[],lexical:new M((j||0)-n,0,"block",!1),localVars:r.localVars,context:r.localVars&&new Le(null,null,!1),indented:j||0};return r.globalVars&&typeof r.globalVars=="object"&&(H.globalVars=r.globalVars),H},token:function(j,H){if(j.sol()&&(H.lexical.hasOwnProperty("align")||(H.lexical.align=!1),H.indented=j.indentation(),O(j,H)),H.tokenize!=w&&j.eatSpace())return null;var W=H.tokenize(j,H);return _=="comment"?W:(H.lastType=_=="operator"&&(k=="++"||k=="--")?"incdec":_,z(H,W,_,k,j))},indent:function(j,H){if(j.tokenize==w||j.tokenize==x)return e.Pass;if(j.tokenize!=S)return 0;var W=H&&H.charAt(0),ie=j.lexical,We;if(!/^\s*else\b/.test(H))for(var vt=j.cc.length-1;vt>=0;--vt){var _t=j.cc[vt];if(_t==te)ie=ie.prev;else if(_t!=Ut&&_t!=Ot)break}for(;(ie.type=="stat"||ie.type=="form")&&(W=="}"||(We=j.cc[j.cc.length-1])&&(We==me||We==fe)&&!/^[,\.=+\-*:?[\(]/.test(H));)ie=ie.prev;i&&ie.type==")"&&ie.prev.type=="stat"&&(ie=ie.prev);var Pr=ie.type,Si=W==Pr;return Pr=="vardef"?ie.indented+(j.lastType=="operator"||j.lastType==","?ie.info.length+1:0):Pr=="form"&&W=="{"?ie.indented:Pr=="form"?ie.indented+n:Pr=="stat"?ie.indented+(wt(j,H)?i||n:0):ie.info=="switch"&&!Si&&r.doubleIndentSwitch!=!1?ie.indented+(/^(?:case|default)\b/.test(H)?n:2*n):ie.align?ie.column+(Si?0:1):ie.indented+(Si?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:wa,skipExpression:function(j){z(j,"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 IG=G(jy=>{"use strict";var Vre=jy&&jy.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jy,"__esModule",{value:!0});var Ure=Vre(Wt()),Ir=Qc();Ure.default.defineMode("graphql-results",function(e){var t=(0,Ir.onlineParser)({eatWhitespace:function(r){return r.eatSpace()},lexRules:Qre,parseRules:Bre,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Gre,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});function Gre(e,t){var r,n,i=e.levels,o=!i||i.length===0?e.indentLevel:i[i.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 Qre={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/},Bre={Document:[(0,Ir.p)("{"),(0,Ir.list)("Entry",(0,Ir.p)(",")),(0,Ir.p)("}")],Entry:[(0,Ir.t)("String","def"),(0,Ir.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:[(0,Ir.t)("Number","number")],StringValue:[(0,Ir.t)("String","string")],BooleanValue:[(0,Ir.t)("Keyword","builtin")],NullValue:[(0,Ir.t)("Keyword","keyword")],ListValue:[(0,Ir.p)("["),(0,Ir.list)("Value",(0,Ir.p)(",")),(0,Ir.p)("]")],ObjectValue:[(0,Ir.p)("{"),(0,Ir.list)("ObjectField",(0,Ir.p)(",")),(0,Ir.p)("}")],ObjectField:[(0,Ir.t)("String","property"),(0,Ir.p)(":"),"Value"]}});var ZG=G((Ufe,XG)=>{"use strict";XG.exports=function(t){return typeof t=="object"?t===null:typeof t!="function"}});var eQ=G((Gfe,$G)=>{"use strict";$G.exports=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}});var nQ=G((Qfe,rQ)=>{"use strict";var kne=eQ();function tQ(e){return kne(e)===!0&&Object.prototype.toString.call(e)==="[object Object]"}rQ.exports=function(t){var r,n;return!(tQ(t)===!1||(r=t.constructor,typeof r!="function")||(n=r.prototype,tQ(n)===!1)||n.hasOwnProperty("isPrototypeOf")===!1)}});var sQ=G((Bfe,uQ)=>{"use strict";var{deleteProperty:One}=Reflect,wne=ZG(),iQ=nQ(),aQ=e=>typeof e=="object"&&e!==null||typeof e=="function",Nne=e=>e==="__proto__"||e==="constructor"||e==="prototype",Kw=e=>{if(!wne(e))throw new TypeError("Object keys must be strings or symbols");if(Nne(e))throw new Error(`Cannot set unsafe key: "${e}"`)},Dne=e=>Array.isArray(e)?e.flat().map(String).join(","):e,xne=(e,t)=>{if(typeof e!="string"||!t)return e;let r=e+";";return t.arrays!==void 0&&(r+=`arrays=${t.arrays};`),t.separator!==void 0&&(r+=`separator=${t.separator};`),t.split!==void 0&&(r+=`split=${t.split};`),t.merge!==void 0&&(r+=`merge=${t.merge};`),t.preservePaths!==void 0&&(r+=`preservePaths=${t.preservePaths};`),r},Cne=(e,t,r)=>{let n=Dne(t?xne(e,t):e);Kw(n);let i=Hs.cache.get(n)||r();return Hs.cache.set(n,i),i},Lne=(e,t={})=>{let r=t.separator||".",n=r==="/"?!1:t.preservePaths;if(typeof e=="string"&&n!==!1&&/\//.test(e))return[e];let i=[],o="",s=l=>{let d;l.trim()!==""&&Number.isInteger(d=Number(l))?i.push(d):i.push(l)};for(let l=0;l<e.length;l++){let d=e[l];if(d==="\\"){o+=e[++l];continue}if(d===r){s(o),o="";continue}o+=d}return o&&s(o),i},oQ=(e,t)=>t&&typeof t.split=="function"?t.split(e):typeof e=="symbol"?[e]:Array.isArray(e)?e:Cne(e,t,()=>Lne(e,t)),Ine=(e,t,r,n)=>{if(Kw(t),r===void 0)One(e,t);else if(n&&n.merge){let i=n.merge==="function"?n.merge:Object.assign;i&&iQ(e[t])&&iQ(r)?e[t]=i(e[t],r):e[t]=r}else e[t]=r;return e},Hs=(e,t,r,n)=>{if(!t||!aQ(e))return e;let i=oQ(t,n),o=e;for(let s=0;s<i.length;s++){let l=i[s],d=i[s+1];if(Kw(l),d===void 0){Ine(o,l,r,n);break}if(typeof d=="number"&&!Array.isArray(o[l])){o=o[l]=[];continue}aQ(o[l])||(o[l]={}),o=o[l]}return e};Hs.split=oQ;Hs.cache=new Map;Hs.clear=()=>{Hs.cache=new Map};uQ.exports=Hs});var CQ=G((Pde,xQ)=>{xQ.exports=Zc;function Zc(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}Zc.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};Zc.prototype.reset=function(){this.attempts=0};Zc.prototype.setMin=function(e){this.ms=e};Zc.prototype.setMax=function(e){this.max=e};Zc.prototype.setJitter=function(e){this.jitter=e}});var IQ=G((Fde,Jw)=>{"use strict";var Zne=Object.prototype.hasOwnProperty,ai="~";function lh(){}Object.create&&(lh.prototype=Object.create(null),new lh().__proto__||(ai=!1));function $ne(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function LQ(e,t,r,n,i){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new $ne(r,n||e,i),s=ai?ai+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 zy(e,t){--e._eventsCount==0?e._events=new lh:delete e._events[t]}function Kn(){this._events=new lh,this._eventsCount=0}Kn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)Zne.call(r,n)&&t.push(ai?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Kn.prototype.listeners=function(t){var r=ai?ai+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=new Array(o);i<o;i++)s[i]=n[i].fn;return s};Kn.prototype.listenerCount=function(t){var r=ai?ai+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Kn.prototype.emit=function(t,r,n,i,o,s){var l=ai?ai+t:t;if(!this._events[l])return!1;var d=this._events[l],h=arguments.length,v,y;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,r),!0;case 3:return d.fn.call(d.context,r,n),!0;case 4:return d.fn.call(d.context,r,n,i),!0;case 5:return d.fn.call(d.context,r,n,i,o),!0;case 6:return d.fn.call(d.context,r,n,i,o,s),!0}for(y=1,v=new Array(h-1);y<h;y++)v[y-1]=arguments[y];d.fn.apply(d.context,v)}else{var b=d.length,D;for(y=0;y<b;y++)switch(d[y].once&&this.removeListener(t,d[y].fn,void 0,!0),h){case 1:d[y].fn.call(d[y].context);break;case 2:d[y].fn.call(d[y].context,r);break;case 3:d[y].fn.call(d[y].context,r,n);break;case 4:d[y].fn.call(d[y].context,r,n,i);break;default:if(!v)for(D=1,v=new Array(h-1);D<h;D++)v[D-1]=arguments[D];d[y].fn.apply(d[y].context,v)}}return!0};Kn.prototype.on=function(t,r,n){return LQ(this,t,r,n,!1)};Kn.prototype.once=function(t,r,n){return LQ(this,t,r,n,!0)};Kn.prototype.removeListener=function(t,r,n,i){var o=ai?ai+t:t;if(!this._events[o])return this;if(!r)return zy(this,o),this;var s=this._events[o];if(s.fn)s.fn===r&&(!i||s.once)&&(!n||s.context===n)&&zy(this,o);else{for(var l=0,d=[],h=s.length;l<h;l++)(s[l].fn!==r||i&&!s[l].once||n&&s[l].context!==n)&&d.push(s[l]);d.length?this._events[o]=d.length===1?d[0]:d:zy(this,o)}return this};Kn.prototype.removeAllListeners=function(t){var r;return t?(r=ai?ai+t:t,this._events[r]&&zy(this,r)):(this._events=new lh,this._eventsCount=0),this};Kn.prototype.off=Kn.prototype.removeListener;Kn.prototype.addListener=Kn.prototype.on;Kn.prefixed=ai;Kn.EventEmitter=Kn;typeof Jw!="undefined"&&(Jw.exports=Kn)});var AQ=G(Xw=>{"use strict";Object.defineProperty(Xw,"__esModule",{value:!0});function eie(e){return typeof e=="string"}Xw.default=eie});var RQ=G(Zw=>{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0});function tie(e){return e!==null&&typeof e=="object"}Zw.default=tie});var jQ=G($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.default=rie;function rie(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 PQ=G((eN,tN)=>{"use strict";Object.defineProperty(eN,"__esModule",{value:!0});var nie=jQ(),iie=aie(nie);function aie(e){return e&&e.__esModule?e:{default:e}}var $c;typeof self!="undefined"?$c=self:typeof window!="undefined"||typeof window!="undefined"?$c=window:typeof tN!="undefined"?$c=tN:$c=Function("return this")();var oie=(0,iie.default)($c);eN.default=oie});var FQ=G(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.GRAPHQL_SUBSCRIPTIONS=ef.GRAPHQL_WS=void 0;var uie="graphql-ws";ef.GRAPHQL_WS=uie;var sie="graphql-subscriptions";ef.GRAPHQL_SUBSCRIPTIONS=sie});var MQ=G(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.WS_TIMEOUT=tf.MIN_WS_TIMEOUT=void 0;var lie=1e3;tf.MIN_WS_TIMEOUT=lie;var cie=3e4;tf.WS_TIMEOUT=cie});var qQ=G(rN=>{"use strict";Object.defineProperty(rN,"__esModule",{value:!0});var fie=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}();rN.default=fie});var KQ=G(ua=>{"use strict";var rf=ua&&ua.__assign||function(){return rf=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},rf.apply(this,arguments)},die=ua&&ua.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},pie=ua&&ua.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},VQ=ua&&ua.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,l=o.length;s<l;s++,i++)n[i]=o[s];return n};Object.defineProperty(ua,"__esModule",{value:!0});ua.SubscriptionClient=void 0;var UQ=typeof window!="undefined"||typeof window!="undefined"?window:{},hie=UQ.WebSocket||UQ.MozWebSocket,GQ=CQ(),vie=IQ(),QQ=AQ(),gie=RQ(),mie=hi(),yie=mk(),bie=PQ(),Tie=FQ(),BQ=MQ(),oi=qQ(),_ie=function(){function e(t,r,n,i){var o=r||{},s=o.connectionCallback,l=s===void 0?void 0:s,d=o.connectionParams,h=d===void 0?{}:d,v=o.minTimeout,y=v===void 0?BQ.MIN_WS_TIMEOUT:v,b=o.timeout,D=b===void 0?BQ.WS_TIMEOUT:b,_=o.reconnect,k=_===void 0?!1:_,T=o.reconnectionAttempts,S=T===void 0?1/0:T,m=o.lazy,w=m===void 0?!1:m,x=o.inactivityTimeout,L=x===void 0?0:x,O=o.wsOptionArguments,R=O===void 0?[]:O;if(this.wsImpl=n||hie,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=i||Tie.GRAPHQL_WS,this.connectionCallback=l,this.url=t,this.operations={},this.nextOperationId=0,this.minWsTimeout=y,this.wsTimeout=D,this.unsentMessagesQueue=[],this.reconnect=k,this.reconnecting=!1,this.reconnectionAttempts=S,this.lazy=!!w,this.inactivityTimeout=L,this.closedByUser=!1,this.backoff=new GQ({jitter:.5}),this.eventEmitter=new vie.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(h),this.wsOptionArguments=R,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return this.client===null?this.wsImpl.CLOSED:this.client.readyState},enumerable:!1,configurable:!0}),e.prototype.close=function(t,r){t===void 0&&(t=!0),r===void 0&&(r=!0),this.clearInactivityTimeout(),this.client!==null&&(this.closedByUser=r,t&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,oi.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),t||this.tryReconnect())},e.prototype.request=function(t){var r,n=this.getObserver.bind(this),i=this.executeOperation.bind(this),o=this.unsubscribe.bind(this),s;return this.clearInactivityTimeout(),r={},r[bie.default]=function(){return this},r.subscribe=function(l,d,h){var v=n(l,d,h);return s=i(t,function(y,b){y===null&&b===null?v.complete&&v.complete():y?v.error&&v.error(y[0]):v.next&&v.next(b)}),{unsubscribe:function(){s&&(o(s),s=null)}}},r},e.prototype.on=function(t,r,n){var i=this.eventEmitter.on(t,r,n);return function(){i.off(t,r,n)}},e.prototype.onConnected=function(t,r){return this.on("connected",t,r)},e.prototype.onConnecting=function(t,r){return this.on("connecting",t,r)},e.prototype.onDisconnected=function(t,r){return this.on("disconnected",t,r)},e.prototype.onReconnected=function(t,r){return this.on("reconnected",t,r)},e.prototype.onReconnecting=function(t,r){return this.on("reconnecting",t,r)},e.prototype.onError=function(t,r){return this.on("error",t,r)},e.prototype.unsubscribeAll=function(){var t=this;Object.keys(this.operations).forEach(function(r){t.unsubscribe(r)})},e.prototype.applyMiddlewares=function(t){var r=this;return new Promise(function(n,i){var o=function(s,l){var d=function(h){if(h)i(h);else if(s.length>0){var v=s.shift();v&&v.applyMiddleware.apply(l,[t,d])}else n(t)};d()};o(VQ(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(i){return n(i)}r(t)})}},e.prototype.executeOperation=function(t,r){var n=this;this.client===null&&this.connect();var i=this.generateOperationId();return this.operations[i]={options:t,handler:r},this.applyMiddlewares(t).then(function(o){n.checkOperationOptions(o,r),n.operations[i]&&(n.operations[i]={options:o,handler:r},n.sendMessage(i,oi.default.GQL_START,o))}).catch(function(o){n.unsubscribe(i),r(n.formatErrors(o))}),i},e.prototype.getObserver=function(t,r,n){return typeof t=="function"?{next:function(i){return t(i)},error:function(i){return r&&r(i)},complete:function(){return n&&n()}}:t},e.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,r=this.wsTimeout;return new GQ({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,i=t.variables,o=t.operationName;if(!n)throw new Error("Must provide a query.");if(!r)throw new Error("Must provide an handler.");if(!QQ.default(n)&&!yie.getOperationAST(n,o)||o&&!QQ.default(o)||i&&!gie.default(i))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 i=n&&n.query?rf(rf({},n),{query:typeof n.query=="string"?n.query:mie.print(n.query)}):n;return{id:t,type:r,payload:i}},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,oi.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,VQ([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return die(r,void 0,void 0,function(){var n,i;return pie(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,oi.default.GQL_CONNECTION_INIT,n),this.flushUnsentMessagesQueue(),[3,4];case 3:return i=o.sent(),this.sendMessage(void 0,oi.default.GQL_CONNECTION_ERROR,i),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 i=n.data;r.processReceivedData(i)}},e.prototype.processReceivedData=function(t){var r,n;try{r=JSON.parse(t),n=r.id}catch(l){throw new Error("Message must be JSON-parseable. Got: "+t)}if([oi.default.GQL_DATA,oi.default.GQL_COMPLETE,oi.default.GQL_ERROR].indexOf(r.type)!==-1&&!this.operations[n]){this.unsubscribe(n);return}switch(r.type){case oi.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(r.payload);break;case oi.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 oi.default.GQL_COMPLETE:var i=this.operations[n].handler;delete this.operations[n],i.call(this,null,null);break;case oi.default.GQL_ERROR:this.operations[n].handler(this.formatErrors(r.payload),null),delete this.operations[n];break;case oi.default.GQL_DATA:var o=r.payload.errors?rf(rf({},r.payload),{errors:this.formatErrors(r.payload.errors)}):r.payload;this.operations[n].handler(null,o);break;case oi.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,oi.default.GQL_STOP,void 0))},e}();ua.SubscriptionClient=_ie});var Eie=Ee(zt()),Sie=Ee(a_());var ut=Ee(zt()),ii=Ee(ht()),hQ=Ee(aP());var it=Ee(ht());"use strict";var oP;(function(e){function t(r){return typeof r=="string"}e.is=t})(oP||(oP={}));var Vk;(function(e){function t(r){return typeof r=="string"}e.is=t})(Vk||(Vk={}));var uP;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(uP||(uP={}));var Nm;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Nm||(Nm={}));var ka;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Nm.MAX_VALUE),i===Number.MAX_VALUE&&(i=Nm.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.uinteger(i.line)&&ne.uinteger(i.character)}e.is=r})(ka||(ka={}));var Lr;(function(e){function t(n,i,o,s){if(ne.uinteger(n)&&ne.uinteger(i)&&ne.uinteger(o)&&ne.uinteger(s))return{start:ka.create(n,i),end:ka.create(o,s)};if(ka.is(n)&&ka.is(i))return{start:n,end:i};throw new Error("Range#create called with invalid arguments[".concat(n,", ").concat(i,", ").concat(o,", ").concat(s,"]"))}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ka.is(i.start)&&ka.is(i.end)}e.is=r})(Lr||(Lr={}));var Dm;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.range)&&(ne.string(i.uri)||ne.undefined(i.uri))}e.is=r})(Dm||(Dm={}));var sP;(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.targetRange)&&ne.string(i.targetUri)&&Lr.is(i.targetSelectionRange)&&(Lr.is(i.originSelectionRange)||ne.undefined(i.originSelectionRange))}e.is=r})(sP||(sP={}));var Uk;(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.numberRange(i.red,0,1)&&ne.numberRange(i.green,0,1)&&ne.numberRange(i.blue,0,1)&&ne.numberRange(i.alpha,0,1)}e.is=r})(Uk||(Uk={}));var lP;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.range)&&Uk.is(i.color)}e.is=r})(lP||(lP={}));var cP;(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.undefined(i.textEdit)||Co.is(i))&&(ne.undefined(i.additionalTextEdits)||ne.typedArray(i.additionalTextEdits,Co.is))}e.is=r})(cP||(cP={}));var fP;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(fP||(fP={}));var dP;(function(e){function t(n,i,o,s,l,d){var h={startLine:n,endLine:i};return ne.defined(o)&&(h.startCharacter=o),ne.defined(s)&&(h.endCharacter=s),ne.defined(l)&&(h.kind=l),ne.defined(d)&&(h.collapsedText=d),h}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.uinteger(i.startLine)&&ne.uinteger(i.startLine)&&(ne.undefined(i.startCharacter)||ne.uinteger(i.startCharacter))&&(ne.undefined(i.endCharacter)||ne.uinteger(i.endCharacter))&&(ne.undefined(i.kind)||ne.string(i.kind))}e.is=r})(dP||(dP={}));var Gk;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Dm.is(i.location)&&ne.string(i.message)}e.is=r})(Gk||(Gk={}));var pP;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(pP||(pP={}));var hP;(function(e){e.Unnecessary=1,e.Deprecated=2})(hP||(hP={}));var vP;(function(e){function t(r){var n=r;return ne.objectLiteral(n)&&ne.string(n.href)}e.is=t})(vP||(vP={}));var xm;(function(e){function t(n,i,o,s,l,d){var h={range:n,message:i};return ne.defined(o)&&(h.severity=o),ne.defined(s)&&(h.code=s),ne.defined(l)&&(h.source=l),ne.defined(d)&&(h.relatedInformation=d),h}e.create=t;function r(n){var i,o=n;return ne.defined(o)&&Lr.is(o.range)&&ne.string(o.message)&&(ne.number(o.severity)||ne.undefined(o.severity))&&(ne.integer(o.code)||ne.string(o.code)||ne.undefined(o.code))&&(ne.undefined(o.codeDescription)||ne.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(ne.string(o.source)||ne.undefined(o.source))&&(ne.undefined(o.relatedInformation)||ne.typedArray(o.relatedInformation,Gk.is))}e.is=r})(xm||(xm={}));var Dc;(function(e){function t(n,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l={title:n,command:i};return ne.defined(o)&&o.length>0&&(l.arguments=o),l}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.title)&&ne.string(i.command)}e.is=r})(Dc||(Dc={}));var Co;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){var s=o;return ne.objectLiteral(s)&&ne.string(s.newText)&&Lr.is(s.range)}e.is=i})(Co||(Co={}));var xc;(function(e){function t(n,i,o){var s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ne.string(i.label)&&(ne.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ne.string(i.description)||i.description===void 0)}e.is=r})(xc||(xc={}));var Vn;(function(e){function t(r){var n=r;return ne.string(n)}e.is=t})(Vn||(Vn={}));var Cu;(function(e){function t(o,s,l){return{range:o,newText:s,annotationId:l}}e.replace=t;function r(o,s,l){return{range:{start:o,end:o},newText:s,annotationId:l}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){var s=o;return Co.is(s)&&(xc.is(s.annotationId)||Vn.is(s.annotationId))}e.is=i})(Cu||(Cu={}));var Cm;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Im.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(Cm||(Cm={}));var Dp;(function(e){function t(n,i,o){var s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){var i=n;return i&&i.kind==="create"&&ne.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(Dp||(Dp={}));var xp;(function(e){function t(n,i,o,s){var l={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),s!==void 0&&(l.annotationId=s),l}e.create=t;function r(n){var i=n;return i&&i.kind==="rename"&&ne.string(i.oldUri)&&ne.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(xp||(xp={}));var Cp;(function(e){function t(n,i,o){var s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){var i=n;return i&&i.kind==="delete"&&ne.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ne.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ne.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Vn.is(i.annotationId))}e.is=r})(Cp||(Cp={}));var Qk;(function(e){function t(r){var n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(i){return ne.string(i.kind)?Dp.is(i)||xp.is(i)||Cp.is(i):Cm.is(i)}))}e.is=t})(Qk||(Qk={}));var Lm=function(){function e(t,r){this.edits=t,this.changeAnnotations=r}return e.prototype.insert=function(t,r,n){var i,o;if(n===void 0?i=Co.insert(t,r):Vn.is(n)?(o=n,i=Cu.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Cu.insert(t,r,o)),this.edits.push(i),o!==void 0)return o},e.prototype.replace=function(t,r,n){var i,o;if(n===void 0?i=Co.replace(t,r):Vn.is(n)?(o=n,i=Cu.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),i=Cu.replace(t,r,o)),this.edits.push(i),o!==void 0)return o},e.prototype.delete=function(t,r){var n,i;if(r===void 0?n=Co.del(t):Vn.is(r)?(i=r,n=Cu.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=Cu.del(t,i)),this.edits.push(n),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),gP=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,r){var n;if(Vn.is(t)?n=t:(n=this.nextId(),r=t),this._annotations[n]!==void 0)throw new Error("Id ".concat(n," is already in use."));if(r===void 0)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=r,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),eue=function(){function e(t){var r=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new gP(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(n){if(Cm.is(n)){var i=new Lm(n.edits,r._changeAnnotations);r._textEditChanges[n.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(n){var i=new Lm(t.changes[n]);r._textEditChanges[n]=i})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(t){if(Im.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version},n=this._textEditChanges[r.uri];if(!n){var i=[],o={textDocument:r,edits:i};this._workspaceEdit.documentChanges.push(o),n=new Lm(i,this._changeAnnotations),this._textEditChanges[r.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[t];if(!n){var i=[];this._workspaceEdit.changes[t]=i,n=new Lm(i),this._textEditChanges[t]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new gP,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;xc.is(r)||Vn.is(r)?i=r:n=r;var o,s;if(i===void 0?o=Dp.create(t,n):(s=Vn.is(i)?i:this._changeAnnotations.manage(i),o=Dp.create(t,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e.prototype.renameFile=function(t,r,n,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;xc.is(n)||Vn.is(n)?o=n:i=n;var s,l;if(o===void 0?s=xp.create(t,r,i):(l=Vn.is(o)?o:this._changeAnnotations.manage(o),s=xp.create(t,r,i,l)),this._workspaceEdit.documentChanges.push(s),l!==void 0)return l},e.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;xc.is(r)||Vn.is(r)?i=r:n=r;var o,s;if(i===void 0?o=Cp.create(t,n):(s=Vn.is(i)?i:this._changeAnnotations.manage(i),o=Cp.create(t,n,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e}();var mP;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)}e.is=r})(mP||(mP={}));var yP;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.integer(i.version)}e.is=r})(yP||(yP={}));var Im;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&(i.version===null||ne.integer(i.version))}e.is=r})(Im||(Im={}));var bP;(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.string(i.uri)&&ne.string(i.languageId)&&ne.integer(i.version)&&ne.string(i.text)}e.is=r})(bP||(bP={}));var Bk;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){var n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(Bk||(Bk={}));var Lp;(function(e){function t(r){var n=r;return ne.objectLiteral(r)&&Bk.is(n.kind)&&ne.string(n.value)}e.is=t})(Lp||(Lp={}));var TP;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(TP||(TP={}));var Am;(function(e){e.PlainText=1,e.Snippet=2})(Am||(Am={}));var _P;(function(e){e.Deprecated=1})(_P||(_P={}));var EP;(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){var i=n;return i&&ne.string(i.newText)&&Lr.is(i.insert)&&Lr.is(i.replace)}e.is=r})(EP||(EP={}));var SP;(function(e){e.asIs=1,e.adjustIndentation=2})(SP||(SP={}));var kP;(function(e){function t(r){var n=r;return n&&(ne.string(n.detail)||n.detail===void 0)&&(ne.string(n.description)||n.description===void 0)}e.is=t})(kP||(kP={}));var OP;(function(e){function t(r){return{label:r}}e.create=t})(OP||(OP={}));var wP;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(wP||(wP={}));var Rm;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){var i=n;return ne.string(i)||ne.objectLiteral(i)&&ne.string(i.language)&&ne.string(i.value)}e.is=r})(Rm||(Rm={}));var NP;(function(e){function t(r){var n=r;return!!n&&ne.objectLiteral(n)&&(Lp.is(n.contents)||Rm.is(n.contents)||ne.typedArray(n.contents,Rm.is))&&(r.range===void 0||Lr.is(r.range))}e.is=t})(NP||(NP={}));var DP;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(DP||(DP={}));var xP;(function(e){function t(r,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s={label:r};return ne.defined(n)&&(s.documentation=n),ne.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(xP||(xP={}));var CP;(function(e){e.Text=1,e.Read=2,e.Write=3})(CP||(CP={}));var LP;(function(e){function t(r,n){var i={range:r};return ne.number(n)&&(i.kind=n),i}e.create=t})(LP||(LP={}));var IP;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(IP||(IP={}));var AP;(function(e){e.Deprecated=1})(AP||(AP={}));var RP;(function(e){function t(r,n,i,o,s){var l={name:r,kind:n,location:{uri:o,range:i}};return s&&(l.containerName=s),l}e.create=t})(RP||(RP={}));var jP;(function(e){function t(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(jP||(jP={}));var PP;(function(e){function t(n,i,o,s,l,d){var h={name:n,detail:i,kind:o,range:s,selectionRange:l};return d!==void 0&&(h.children=d),h}e.create=t;function r(n){var i=n;return i&&ne.string(i.name)&&ne.number(i.kind)&&Lr.is(i.range)&&Lr.is(i.selectionRange)&&(i.detail===void 0||ne.string(i.detail))&&(i.deprecated===void 0||ne.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(PP||(PP={}));var FP;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(FP||(FP={}));var jm;(function(e){e.Invoked=1,e.Automatic=2})(jm||(jm={}));var MP;(function(e){function t(n,i,o){var s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.typedArray(i.diagnostics,xm.is)&&(i.only===void 0||ne.typedArray(i.only,ne.string))&&(i.triggerKind===void 0||i.triggerKind===jm.Invoked||i.triggerKind===jm.Automatic)}e.is=r})(MP||(MP={}));var qP;(function(e){function t(n,i,o){var s={title:n},l=!0;return typeof i=="string"?(l=!1,s.kind=i):Dc.is(i)?s.command=i:s.edit=i,l&&o!==void 0&&(s.kind=o),s}e.create=t;function r(n){var i=n;return i&&ne.string(i.title)&&(i.diagnostics===void 0||ne.typedArray(i.diagnostics,xm.is))&&(i.kind===void 0||ne.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Dc.is(i.command))&&(i.isPreferred===void 0||ne.boolean(i.isPreferred))&&(i.edit===void 0||Qk.is(i.edit))}e.is=r})(qP||(qP={}));var VP;(function(e){function t(n,i){var o={range:n};return ne.defined(i)&&(o.data=i),o}e.create=t;function r(n){var i=n;return ne.defined(i)&&Lr.is(i.range)&&(ne.undefined(i.command)||Dc.is(i.command))}e.is=r})(VP||(VP={}));var UP;(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&ne.uinteger(i.tabSize)&&ne.boolean(i.insertSpaces)}e.is=r})(UP||(UP={}));var GP;(function(e){function t(n,i,o){return{range:n,target:i,data:o}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Lr.is(i.range)&&(ne.undefined(i.target)||ne.string(i.target))}e.is=r})(GP||(GP={}));var QP;(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&Lr.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(QP||(QP={}));var BP;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(BP||(BP={}));var KP;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(KP||(KP={}));var HP;(function(e){function t(r){var n=r;return ne.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(HP||(HP={}));var zP;(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){var i=n;return i!=null&&Lr.is(i.range)&&ne.string(i.text)}e.is=r})(zP||(zP={}));var WP;(function(e){function t(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}e.create=t;function r(n){var i=n;return i!=null&&Lr.is(i.range)&&ne.boolean(i.caseSensitiveLookup)&&(ne.string(i.variableName)||i.variableName===void 0)}e.is=r})(WP||(WP={}));var YP;(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){var i=n;return i!=null&&Lr.is(i.range)&&(ne.string(i.expression)||i.expression===void 0)}e.is=r})(YP||(YP={}));var JP;(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){var i=n;return ne.defined(i)&&Lr.is(n.stoppedLocation)}e.is=r})(JP||(JP={}));var Kk;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(Kk||(Kk={}));var Hk;(function(e){function t(n){return{value:n}}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&(i.tooltip===void 0||ne.string(i.tooltip)||Lp.is(i.tooltip))&&(i.location===void 0||Dm.is(i.location))&&(i.command===void 0||Dc.is(i.command))}e.is=r})(Hk||(Hk={}));var XP;(function(e){function t(n,i,o){var s={position:n,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function r(n){var i=n;return ne.objectLiteral(i)&&ka.is(i.position)&&(ne.string(i.label)||ne.typedArray(i.label,Hk.is))&&(i.kind===void 0||Kk.is(i.kind))&&i.textEdits===void 0||ne.typedArray(i.textEdits,Co.is)&&(i.tooltip===void 0||ne.string(i.tooltip)||Lp.is(i.tooltip))&&(i.paddingLeft===void 0||ne.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ne.boolean(i.paddingRight))}e.is=r})(XP||(XP={}));var ZP;(function(e){function t(r){var n=r;return ne.objectLiteral(n)&&Vk.is(n.uri)&&ne.string(n.name)}e.is=t})(ZP||(ZP={}));var $P;(function(e){function t(o,s,l,d){return new sX(o,s,l,d)}e.create=t;function r(o){var s=o;return!!(ne.defined(s)&&ne.string(s.uri)&&(ne.undefined(s.languageId)||ne.string(s.languageId))&&ne.uinteger(s.lineCount)&&ne.func(s.getText)&&ne.func(s.positionAt)&&ne.func(s.offsetAt))}e.is=r;function n(o,s){for(var l=o.getText(),d=i(s,function(_,k){var T=_.range.start.line-k.range.start.line;return T===0?_.range.start.character-k.range.start.character:T}),h=l.length,v=d.length-1;v>=0;v--){var y=d[v],b=o.offsetAt(y.range.start),D=o.offsetAt(y.range.end);if(D<=h)l=l.substring(0,b)+y.newText+l.substring(D,l.length);else throw new Error("Overlapping edit");h=b}return l}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;var l=o.length/2|0,d=o.slice(0,l),h=o.slice(l);i(d,s),i(h,s);for(var v=0,y=0,b=0;v<d.length&&y<h.length;){var D=s(d[v],h[y]);D<=0?o[b++]=d[v++]:o[b++]=h[y++]}for(;v<d.length;)o[b++]=d[v++];for(;y<h.length;)o[b++]=h[y++];return o}})($P||($P={}));var sX=function(){function e(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content},e.prototype.update=function(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],r=this._content,n=!0,i=0;i<r.length;i++){n&&(t.push(i),n=!1);var o=r.charAt(i);n=o==="\r"||o===`
|
|
`,o==="\r"&&i+1<r.length&&r.charAt(i+1)===`
|
|
`&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return ka.create(0,t);for(;n<i;){var o=Math.floor((n+i)/2);r[o]>t?i=o:n=o+1}var s=n-1;return ka.create(s,t-r[s])},e.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),ne;(function(e){var t=Object.prototype.toString;function r(D){return typeof D!="undefined"}e.defined=r;function n(D){return typeof D=="undefined"}e.undefined=n;function i(D){return D===!0||D===!1}e.boolean=i;function o(D){return t.call(D)==="[object String]"}e.string=o;function s(D){return t.call(D)==="[object Number]"}e.number=s;function l(D,_,k){return t.call(D)==="[object Number]"&&_<=D&&D<=k}e.numberRange=l;function d(D){return t.call(D)==="[object Number]"&&-2147483648<=D&&D<=2147483647}e.integer=d;function h(D){return t.call(D)==="[object Number]"&&0<=D&&D<=2147483647}e.uinteger=h;function v(D){return t.call(D)==="[object Function]"}e.func=v;function y(D){return D!==null&&typeof D=="object"}e.objectLiteral=y;function b(D,_){return Array.isArray(D)&&D.every(_)}e.typedArray=b})(ne||(ne={}));var Pm;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Pm||(Pm={}));function hr(e){return{ofRule:e}}function gt(e,t){return{ofRule:e,isList:!0,separator:t}}function zk(e,t){let r=e.match;return e.match=n=>{let i=!1;return r&&(i=r(n)),i&&t.every(o=>o.match&&!o.match(n))},e}function Cc(e,t){return{style:t,match:r=>r.kind===e}}function nt(e,t){return{style:t||"punctuation",match:r=>r.kind==="Punctuation"&&r.value===e}}var Un=Ee(ht());var Wk={Document:[gt("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Un.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Sn("query"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Mutation:[Sn("mutation"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],Subscription:[Sn("subscription"),hr(er("def")),hr("VariableDefinitions"),gt("Directive"),"SelectionSet"],VariableDefinitions:[nt("("),gt("VariableDefinition"),nt(")")],VariableDefinition:["Variable",nt(":"),"Type",hr("DefaultValue")],Variable:[nt("$","variable"),er("variable")],DefaultValue:[nt("="),"Value"],SelectionSet:[nt("{"),gt("Selection"),nt("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[er("property"),nt(":"),er("qualifier"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Field:[er("property"),hr("Arguments"),gt("Directive"),hr("SelectionSet")],Arguments:[nt("("),gt("Argument"),nt(")")],Argument:[er("attribute"),nt(":"),"Value"],FragmentSpread:[nt("..."),er("def"),gt("Directive")],InlineFragment:[nt("..."),hr("TypeCondition"),gt("Directive"),"SelectionSet"],FragmentDefinition:[Sn("fragment"),hr(zk(er("def"),[Sn("on")])),"TypeCondition",gt("Directive"),"SelectionSet"],TypeCondition:[Sn("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:[Cc("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Cc("Name","builtin")],NullValue:[Cc("Name","keyword")],EnumValue:[er("string-2")],ListValue:[nt("["),gt("Value"),nt("]")],ObjectValue:[nt("{"),gt("ObjectField"),nt("}")],ObjectField:[er("attribute"),nt(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[nt("["),"Type",nt("]"),hr(nt("!"))],NonNullType:["NamedType",hr(nt("!"))],NamedType:[lX("atom")],Directive:[nt("@","meta"),er("meta"),hr("Arguments")],DirectiveDef:[Sn("directive"),nt("@","meta"),er("meta"),hr("ArgumentsDef"),Sn("on"),gt("DirectiveLocation",nt("|"))],InterfaceDef:[Sn("interface"),er("atom"),hr("Implements"),gt("Directive"),nt("{"),gt("FieldDef"),nt("}")],Implements:[Sn("implements"),gt("NamedType",nt("&"))],DirectiveLocation:[er("string-2")],SchemaDef:[Sn("schema"),gt("Directive"),nt("{"),gt("OperationTypeDef"),nt("}")],OperationTypeDef:[er("keyword"),nt(":"),er("atom")],ScalarDef:[Sn("scalar"),er("atom"),gt("Directive")],ObjectTypeDef:[Sn("type"),er("atom"),hr("Implements"),gt("Directive"),nt("{"),gt("FieldDef"),nt("}")],FieldDef:[er("property"),hr("ArgumentsDef"),nt(":"),"Type",gt("Directive")],ArgumentsDef:[nt("("),gt("InputValueDef"),nt(")")],InputValueDef:[er("attribute"),nt(":"),"Type",hr("DefaultValue"),gt("Directive")],UnionDef:[Sn("union"),er("atom"),gt("Directive"),nt("="),gt("UnionMember",nt("|"))],UnionMember:["NamedType"],EnumDef:[Sn("enum"),er("atom"),gt("Directive"),nt("{"),gt("EnumValueDef"),nt("}")],EnumValueDef:[er("string-2"),gt("Directive")],InputDef:[Sn("input"),er("atom"),gt("Directive"),nt("{"),gt("InputValueDef"),nt("}")],ExtendDef:[Sn("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Un.Kind.SCHEMA_EXTENSION;case"scalar":return Un.Kind.SCALAR_TYPE_EXTENSION;case"type":return Un.Kind.OBJECT_TYPE_EXTENSION;case"interface":return Un.Kind.INTERFACE_TYPE_EXTENSION;case"union":return Un.Kind.UNION_TYPE_EXTENSION;case"enum":return Un.Kind.ENUM_TYPE_EXTENSION;case"input":return Un.Kind.INPUT_OBJECT_TYPE_EXTENSION}},[Un.Kind.SCHEMA_EXTENSION]:["SchemaDef"],[Un.Kind.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Un.Kind.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Un.Kind.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Un.Kind.UNION_TYPE_EXTENSION]:["UnionDef"],[Un.Kind.ENUM_TYPE_EXTENSION]:["EnumDef"],[Un.Kind.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Sn(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function er(e){return{style:e,match:t=>t.kind==="Name",update(t,r){t.name=r.value}}}function lX(e){return{style:e,match:t=>t.kind==="Name",update(t,r){var n;((n=t.prevState)===null||n===void 0?void 0:n.prevState)&&(t.name=r.value,t.prevState.prevState.type=r.value)}}}var rF=Ee(ht()),cX={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",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"},nF=Object.assign(Object.assign({},rF.Kind),cX);var Sue=[it.Kind.SCHEMA_DEFINITION,it.Kind.OPERATION_TYPE_DEFINITION,it.Kind.SCALAR_TYPE_DEFINITION,it.Kind.OBJECT_TYPE_DEFINITION,it.Kind.INTERFACE_TYPE_DEFINITION,it.Kind.UNION_TYPE_DEFINITION,it.Kind.ENUM_TYPE_DEFINITION,it.Kind.INPUT_OBJECT_TYPE_DEFINITION,it.Kind.DIRECTIVE_DEFINITION,it.Kind.SCHEMA_EXTENSION,it.Kind.SCALAR_TYPE_EXTENSION,it.Kind.OBJECT_TYPE_EXTENSION,it.Kind.INTERFACE_TYPE_EXTENSION,it.Kind.UNION_TYPE_EXTENSION,it.Kind.ENUM_TYPE_EXTENSION,it.Kind.INPUT_OBJECT_TYPE_EXTENSION];var iF;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE"})(iF||(iF={}));var Mm=Ee(ht()),Zk=Ee(Xk());var qm=(e,t)=>{if(!t)return[];let r=new Map,n=new Set;(0,Mm.visit)(e,{FragmentDefinition(s){r.set(s.name.value,!0)},FragmentSpread(s){n.has(s.name.value)||n.add(s.name.value)}});let i=new Set;for(let s of n)!r.has(s)&&t.has(s)&&i.add((0,Zk.default)(t.get(s)));let o=[];for(let s of i)(0,Mm.visit)(s,{FragmentSpread(l){!n.has(l.name.value)&&t.get(l.name.value)&&(i.add((0,Zk.default)(t.get(l.name.value))),n.add(l.name.value))}}),r.has(s.name.value)||o.push(s);return o};var Lc=Ee(ht());function Vm(e,t){let r=Object.create(null);for(let n of t.definitions)if(n.kind==="OperationDefinition"){let{variableDefinitions:i}=n;if(i)for(let{variable:o,type:s}of i){let l=(0,Lc.typeFromAST)(e,s);l?r[o.name.value]=l:s.kind===Lc.Kind.NAMED_TYPE&&s.name.value==="Float"&&(r[o.name.value]=Lc.GraphQLFloat)}}return r}var Um=Ee(ht());function $k(e,t){let r=t?Vm(t,e):void 0,n=[];return(0,Um.visit)(e,{OperationDefinition(i){n.push(i)}}),{variableToType:r,operations:n}}function js(e,t){if(!!t)try{let r=(0,Um.parse)(t);return Object.assign(Object.assign({},$k(r,e)),{documentAST:r})}catch(r){return}}var Ip={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},bX={[Ip.Error]:1,[Ip.Warning]:2,[Ip.Information]:3,[Ip.Hint]:4};var Lo=Ee(zt()),kX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),lF=function(e){kX(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(i){n.setState({optionsOpen:!1}),n.props.onRun(i.name&&i.name.value)},n._onOptionsOpen=function(i){var o=!0,s=i.currentTarget;n.setState({highlight:null,optionsOpen:!0});var l=function(d){var h;if(o&&d.target===s)o=!1;else{document.removeEventListener("mouseup",l),l=null;var v=d.currentTarget&&((h=s.parentNode)===null||h===void 0?void 0:h.compareDocumentPosition(d.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY;v||n.setState({optionsOpen:!1})}};document.addEventListener("mouseup",l)},n.state={optionsOpen:!1,highlight:null},n}return t.prototype.render=function(){var r=this,n=this.props.operations||[],i=this.state.optionsOpen,o=n&&n.length>1,s=null;if(o&&i){var l=this.state.highlight;s=Lo.default.createElement("ul",{className:"execute-options"},n.map(function(y,b){var D=y.name?y.name.value:"<Unnamed "+y.operation+">";return Lo.default.createElement("li",{key:D+"-"+b,className:y===l?"selected":void 0,onMouseOver:function(){return r.setState({highlight:y})},onMouseOut:function(){return r.setState({highlight:null})},onMouseUp:function(){return r._onOptionSelected(y)}},D)}))}var d;(this.props.isRunning||!o)&&(d=this._onClick);var h=function(){};!this.props.isRunning&&o&&!i&&(h=this._onOptionsOpen);var v=this.props.isRunning?Lo.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):Lo.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return Lo.default.createElement("div",{className:"execute-button-wrap"},Lo.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:h,onClick:d,title:"Execute Query (Ctrl-Enter)"},Lo.default.createElement("svg",{width:"34",height:"34"},v)),s)},t}(Lo.default.Component);var Ap=Ee(zt()),OX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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 cF(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 wX(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}var fF=function(e){OX(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=cF(r);return n?wX(n):!1},t.prototype.componentDidMount=function(){this._updateMetadata()},t.prototype.componentDidUpdate=function(){this._updateMetadata()},t.prototype.render=function(){var r=this,n,i=null;if(this.state.width!==null&&this.state.height!==null){var o=this.state.width+"x"+this.state.height;this.state.mime!==null&&(o+=" "+this.state.mime),i=Ap.default.createElement("div",null,o)}return Ap.default.createElement("div",null,Ap.default.createElement("img",{onLoad:function(){return r._updateMetadata()},ref:function(s){r._node=s},src:(n=cF(this.props.token))===null||n===void 0?void 0:n.href}),i)},t.prototype._updateMetadata=function(){var r=this;if(!!this._node){var n=this._node.naturalWidth,i=this._node.naturalHeight,o=this._node.src;o!==this.state.src&&(this.setState({src:o}),fetch(o,{method:"HEAD"}).then(function(s){r.setState({mime:s.headers.get("Content-Type")})})),(n!==this.state.width||i!==this.state.height)&&this.setState({height:i,width:n})}},t}(Ap.default.Component);var tO=Ee(zt()),NX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Lu=function(e){NX(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(i){n.setState({error:i})}},n.state={error:null},n}return t.prototype.render=function(){var r=this.state.error;return tO.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}(tO.default.Component);var dF=Ee(zt());function rO(e){var t=e.children;return dF.default.createElement("div",{className:"toolbar-button-group"},t)}var Ps=Ee(zt()),DX=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),nO=function(e){DX(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(i){aO(i),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 Ps.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:aO,ref:function(i){i&&(r._node=i)},title:this.props.title},this.props.label,Ps.default.createElement("svg",{width:"14",height:"8"},Ps.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),Ps.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}(Ps.default.Component);var iO=function(e){var t=e.onSelect,r=e.title,n=e.label;return Ps.default.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:aO,onMouseUp:t,title:r},n)};function aO(e){e.preventDefault()}var yw=Ee(zt()),vG=Ee(ry());var U$=Array.from({length:11},function(e,t){return String.fromCharCode(8192+t)}).concat(["\u2028","\u2029","\u202F","\xA0"]),G$=new RegExp("["+U$.join("")+"]","g");function mV(e){return e.replace(G$," ")}var ny=Ee(ht()),TV=Ee(bV()),_V=Ee(ry()),EV=new _V.default;function Iu(e,t,r){Promise.resolve().then(()=>Ee(Wt())).then(function(n){var i=n.default,o,s;i.on(t,"select",function(l,d){if(!o){var h=d.parentNode;o=document.createElement("div"),o.className="CodeMirror-hint-information",h.appendChild(o),s=document.createElement("div"),s.className="CodeMirror-hint-deprecation",h.appendChild(s);var v;h.addEventListener("DOMNodeRemoved",v=function(_){_.target===h&&(h.removeEventListener("DOMNodeRemoved",v),o=null,s=null,v=null)})}var y=l.description?EV.render(l.description):"Self descriptive.",b=l.type?'<span class="infoType">'+RO(l.type)+"</span>":"";if(o.innerHTML='<div class="content">'+(y.slice(0,3)==="<p>"?"<p>"+b+y.slice(3):b+y)+"</div>",l&&s&&l.deprecationReason){var D=l.deprecationReason?EV.render(l.deprecationReason):"";s.innerHTML='<span class="deprecation-label">Deprecated</span>'+D,s.style.display="block"}else s&&(s.style.display="none");r&&r(o)})})}function RO(e){return e instanceof ny.GraphQLNonNull?RO(e.ofType)+"!":e instanceof ny.GraphQLList?"["+RO(e.ofType)+"]":'<a class="typeName">'+(0,TV.default)(e.name)+"</a>"}var Io,SV=!1;typeof window=="object"&&(SV=window.navigator.platform==="MacIntel");var K$=(Io={},Io[SV?"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),Au=K$;var H$=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},z$=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},W$=[Promise.resolve().then(()=>Ee(jO())),Promise.resolve().then(()=>Ee(PO())),Promise.resolve().then(()=>Ee(CV())),Promise.resolve().then(()=>Ee(FO())),Promise.resolve().then(()=>Ee(MO())),Promise.resolve().then(()=>Ee(VV())),Promise.resolve().then(()=>Ee(qp())),Promise.resolve().then(()=>Ee(qO())),Promise.resolve().then(()=>Ee(Vp())),Promise.resolve().then(()=>Ee(VO()))];function Ru(e,t){return H$(this,void 0,void 0,function(){var r,n;return z$(this,function(i){switch(i.label){case 0:return[4,Promise.resolve().then(()=>Ee(Wt()))];case 1:return r=i.sent().default,n=(t==null?void 0:t.useCommonAddons)===!1?e:W$.concat(e),[4,Promise.all(n.map(function(o){return o}))];case 2:return i.sent(),[2,r]}})})}var nre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Oy=function(){return Oy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Oy.apply(this,arguments)},ire=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},are=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},ore=new vG.default,ure=/^[a-zA-Z0-9_@(]$/,wy=function(e){nre(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n.ignoreChangeEvent=!1,n._node=null,n.addonModules=function(){return[Promise.resolve().then(()=>Ee(XV())),Promise.resolve().then(()=>Ee(UO())),Promise.resolve().then(()=>Ee(YU())),Promise.resolve().then(()=>Ee(XU())),Promise.resolve().then(()=>Ee(aG())),Promise.resolve().then(()=>Ee(cG())),Promise.resolve().then(()=>Ee(hG()))]},n._onKeyUp=function(i,o){ure.test(o.key)&&n.editor&&n.editor.execCommand("autocomplete")},n._onEdit=function(){!n.ignoreChangeEvent&&n.editor&&(n.cachedValue=n.editor.getValue(),n.props.onEdit&&n.props.onEdit(n.cachedValue))},n._onHasCompletion=function(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n&&(n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion),n.on("beforeChange",r._onBeforeChange))}).catch(console.error)},t.prototype.componentDidUpdate=function(r){this.ignoreChangeEvent=!0;var n=!1;this.props.schema!==r.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,n=!0),this.props.externalFragments!==r.externalFragments&&this.editor&&(this.editor.options.lint.externalFragments=this.props.externalFragments,this.editor.options.hintOptions.externalFragments=this.props.externalFragments,n=!0),n&&this.CodeMirror.signal(this.editor,"change",this.editor),this.props.value!==r.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),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))},t.prototype.render=function(){var r=this;return yw.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:function(n){r._node=n}})},t.prototype.initializeEditor=function(){var r,n,i,o;return ire(this,void 0,void 0,function(){var s,l,d,h=this;return are(this,function(v){switch(v.label){case 0:return l=this,[4,Ru(this.addonModules())];case 1:return s=l.CodeMirror=v.sent(),d=this.editor=s(this._node,{value:(r=this.props.value)!==null&&r!==void 0?r:"",lineNumbers:!0,tabSize:2,foldGutter:{minFoldSize:4},mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:this.props.readOnly?"nocursor":!1,lint:{schema:this.props.schema,validationRules:(n=this.props.validationRules)!==null&&n!==void 0?n:null,externalFragments:(i=this.props)===null||i===void 0?void 0:i.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:(o=this.props)===null||o===void 0?void 0:o.externalFragments},info:{schema:this.props.schema,renderDescription:function(y){return ore.render(y)},onClick:function(y){return h.props.onClickReference&&h.props.onClickReference(y)}},jump:{schema:this.props.schema,onClick:function(y){return h.props.onClickReference&&h.props.onClickReference(y)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Oy(Oy({"Cmd-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Ctrl-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Alt-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Shift-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Shift-Alt-Space":function(){return d.showHint({completeSingle:!0,container:h._node})},"Cmd-Enter":function(){h.props.onRunQuery&&h.props.onRunQuery()},"Ctrl-Enter":function(){h.props.onRunQuery&&h.props.onRunQuery()},"Shift-Ctrl-C":function(){h.props.onCopyQuery&&h.props.onCopyQuery()},"Shift-Ctrl-P":function(){h.props.onPrettifyQuery&&h.props.onPrettifyQuery()},"Shift-Ctrl-F":function(){h.props.onPrettifyQuery&&h.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){h.props.onMergeQuery&&h.props.onMergeQuery()}},Au),{"Cmd-S":function(){h.props.onRunQuery},"Ctrl-S":function(){h.props.onRunQuery}})}),[2,d]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t.prototype._onBeforeChange=function(r,n){if(n.origin==="paste"){var i=n.text.map(mV);n.update(n.from,n.to,i)}},t}(yw.default.Component);var Ow=Ee(zt());var Rre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),kw=function(){return kw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kw.apply(this,arguments)},jre=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},Pre=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Ry=function(e){Rre(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n.addonModules=function(){return[Promise.resolve().then(()=>Ee(yG())),Promise.resolve().then(()=>Ee(wG())),Promise.resolve().then(()=>Ee(DG()))]},n._onKeyUp=function(i,o){var s=o.keyCode;!n.editor||(s>=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(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion)}).catch(console.error)},t.prototype.componentDidUpdate=function(r){if(!!this.editor&&!!this.CodeMirror){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 Ow.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.initializeEditor=function(){return jre(this,void 0,void 0,function(){var r,n,i=this;return Pre(this,function(o){switch(o.label){case 0:return r=this,[4,Ru(this.addonModules())];case 1:return r.CodeMirror=o.sent(),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:kw({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Au)}),[2,n]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Ow.default.Component);var Nw=Ee(zt());var Fre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),ww=function(){return ww=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ww.apply(this,arguments)},Mre=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},qre=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Dw=function(e){Fre(t,e);function t(r){var n=e.call(this,r)||this;return n.editor=null,n._node=null,n.ignoreChangeEvent=!1,n.addonModules=function(){return[Promise.resolve().then(()=>Ee(LG()))]},n._onKeyUp=function(i,o){var s=o.keyCode;!n.editor||(s>=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(i,o){Iu(i,o,n.props.onHintInformationRender)},n.cachedValue=r.value||"",n}return t.prototype.componentDidMount=function(){var r=this;this.initializeEditor().then(function(n){n.on("change",r._onEdit),n.on("keyup",r._onKeyUp),n.on("hasCompletion",r._onHasCompletion)}).catch(console.error)},t.prototype.componentDidUpdate=function(r){if(!!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 Nw.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.initializeEditor=function(){return Mre(this,void 0,void 0,function(){var r,n,i=this;return qre(this,function(o){switch(o.label){case 0:return r=this,[4,Ru(this.addonModules())];case 1:return r.CodeMirror=o.sent(),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:ww({"Cmd-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Ctrl-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Alt-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Shift-Space":function(){return i.editor.showHint({completeSingle:!1,container:i._node})},"Cmd-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Ctrl-Enter":function(){i.props.onRunQuery&&i.props.onRunQuery()},"Shift-Ctrl-P":function(){i.props.onPrettifyQuery&&i.props.onPrettifyQuery()},"Shift-Ctrl-M":function(){i.props.onMergeQuery&&i.props.onMergeQuery()}},Au)}),[2,n]}})})},t.prototype.getCodeMirror=function(){return this.editor},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Nw.default.Component);var Yc=Ee(zt()),xw=Ee(a_());var Kre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Hre=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},zre=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Cw=function(e){Kre(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.viewer=null,r._node=null,r.allAddons=function(){return[Promise.resolve().then(()=>Ee(MO())),Promise.resolve().then(()=>Ee(FO())),Promise.resolve().then(()=>Ee(Vp())),Promise.resolve().then(()=>Ee(UO())),Promise.resolve().then(()=>Ee(qp())),Promise.resolve().then(()=>Ee(qO())),Promise.resolve().then(()=>Ee(VO())),Promise.resolve().then(()=>Ee(IG()))]},r}return t.prototype.componentDidMount=function(){this.initializeEditor()},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 Yc.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.initializeEditor=function(){return Hre(this,void 0,void 0,function(){var r,n,i,o;return zre(this,function(s){switch(s.label){case 0:return[4,Ru(this.allAddons(),{useCommonAddons:!1})];case 1:return r=s.sent(),n=this.props.ResultsTooltip,i=this.props.ImagePreview,n||i?[4,Promise.resolve().then(()=>Ee(gw()))]:[3,3];case 2:s.sent(),o=document.createElement("div"),r.registerHelper("info","graphql-results",function(l,d,h,v){var y=[];return n&&y.push(Yc.default.createElement(n,{pos:v})),i&&typeof i.shouldRender=="function"&&i.shouldRender(l)&&y.push(Yc.default.createElement(i,{token:l})),y.length?(xw.default.render(Yc.default.createElement("div",null,y),o),o):(xw.default.unmountComponentAtNode(o),null)}),s.label=3;case 3:return 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:Au}),[2]}})})},t.prototype.getCodeMirror=function(){return this.viewer},t.prototype.getClientHeight=function(){return this._node&&this._node.clientHeight},t}(Yc.default.Component);var wn=Ee(zt()),Mw=Ee(ht());var Yt=Ee(zt());var ih=Ee(zt());var Py=Ee(zt()),Fy=Ee(ht());function ni(e){var t=e.onClick?e.onClick:function(){return null};return Lw(e.type,t)}function Lw(e,t){return e instanceof Fy.GraphQLNonNull?Py.default.createElement("span",null,Lw(e.ofType,t),"!"):e instanceof Fy.GraphQLList?Py.default.createElement("span",null,"[",Lw(e.ofType,t),"]"):Py.default.createElement("a",{className:"type-name",onClick:function(r){r.preventDefault(),t(e,r)},href:"#"},e==null?void 0:e.name)}var Iw=Ee(zt()),My=Ee(ht()),Wre=function(e){return e?(0,My.print)(e):""};function nh(e){var t=e.field;return"defaultValue"in t&&t.defaultValue!==void 0?Iw.default.createElement("span",null," = ",Iw.default.createElement("span",{className:"arg-default-value"},Wre((0,My.astFromValue)(t.defaultValue,t.type)))):null}function qu(e){var t=e.arg,r=e.onClickType,n=e.showDefaultValue;return ih.default.createElement("span",{className:"arg"},ih.default.createElement("span",{className:"arg-name"},t.name),": ",ih.default.createElement(ni,{type:t.type,onClick:r}),n!==!1&&ih.default.createElement(nh,{field:t}))}var AG=Ee(zt());function Aw(e){var t=e.directive;return AG.default.createElement("span",{className:"doc-category-item",id:t.name.value},"@",t.name.value)}var Rw=Ee(zt()),RG=Ee(ry()),Yre=new RG.default({breaks:!0,linkify:!0});function Bn(e){var t=e.markdown,r=e.className;return t?Rw.default.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:Yre.render(t)}}):Rw.default.createElement("div",null)}var Jre=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o};function jw(e){var t=e.field,r=e.onClickType,n=Jre(Yt.default.useState(!1),2),i=n[0],o=n[1],s,l;if(t&&"args"in t&&t.args.length>0){s=Yt.default.createElement("div",{id:"doc-args",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"arguments"),t.args.filter(function(v){return!v.deprecationReason}).map(function(v){return Yt.default.createElement("div",{key:v.name,className:"doc-category-item"},Yt.default.createElement("div",null,Yt.default.createElement(qu,{arg:v,onClickType:r})),Yt.default.createElement(Bn,{className:"doc-value-description",markdown:v.description}),v&&"deprecationReason"in v&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:v==null?void 0:v.deprecationReason}))}));var d=t.args.filter(function(v){return Boolean(v.deprecationReason)});d.length>0&&(l=Yt.default.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"deprecated arguments"),i?d.map(function(v,y){return Yt.default.createElement("div",{key:y},Yt.default.createElement("div",null,Yt.default.createElement(qu,{arg:v,onClickType:r})),Yt.default.createElement(Bn,{className:"doc-value-description",markdown:v.description}),v&&"deprecationReason"in v&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:v==null?void 0:v.deprecationReason}))}):Yt.default.createElement("button",{className:"show-btn",onClick:function(){return o(!i)}},"Show deprecated arguments...")))}var h;return t&&t.astNode&&t.astNode.directives&&t.astNode.directives.length>0&&(h=Yt.default.createElement("div",{id:"doc-directives",className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"directives"),t.astNode.directives.map(function(v){return Yt.default.createElement("div",{key:v.name.value,className:"doc-category-item"},Yt.default.createElement("div",null,Yt.default.createElement(Aw,{directive:v})))}))),Yt.default.createElement("div",null,Yt.default.createElement(Bn,{className:"doc-type-description",markdown:(t==null?void 0:t.description)||"No Description"}),t&&"deprecationReason"in t&&Yt.default.createElement(Bn,{className:"doc-deprecation",markdown:t==null?void 0:t.deprecationReason}),Yt.default.createElement("div",{className:"doc-category"},Yt.default.createElement("div",{className:"doc-category-title"},"type"),Yt.default.createElement(ni,{type:t==null?void 0:t.type,onClick:r})),s,h,l)}var Ti=Ee(zt());function Pw(e){var t=e.schema,r=e.onClickType,n=t.getQueryType(),i=t.getMutationType&&t.getMutationType(),o=t.getSubscriptionType&&t.getSubscriptionType();return Ti.default.createElement("div",null,Ti.default.createElement(Bn,{className:"doc-type-description",markdown:t.description||"A GraphQL schema provides a root type for each kind of operation."}),Ti.default.createElement("div",{className:"doc-category"},Ti.default.createElement("div",{className:"doc-category-title"},"root types"),Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"query"),": ",Ti.default.createElement(ni,{type:n,onClick:r})),i&&Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"mutation"),": ",Ti.default.createElement(ni,{type:i,onClick:r})),o&&Ti.default.createElement("div",{className:"doc-category-item"},Ti.default.createElement("span",{className:"keyword"},"subscription"),": ",Ti.default.createElement(ni,{type:o,onClick:r}))))}var Jc=Ee(zt());function ji(e,t){var r;return function(){for(var n=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r&&window.clearTimeout(r),r=window.setTimeout(function(){r=null,t.apply(n,i)},e)}}var Xre=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Zre=function(e){Xre(t,e);function t(r){var n=e.call(this,r)||this;return n.handleChange=function(i){var o=i.currentTarget.value;n.setState({value:o}),n.debouncedOnSearch(o)},n.handleClear=function(){n.setState({value:""}),n.props.onSearch("")},n.state={value:r.value||""},n.debouncedOnSearch=ji(200,n.props.onSearch),n}return t.prototype.render=function(){return Jc.default.createElement("label",{className:"search-box"},Jc.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"\u26B2"),Jc.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&Jc.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"\u2715"))},t}(Jc.default.Component),jG=Zre;var _i=Ee(zt());var $re=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),ene=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},tne=function(e){$re(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.shouldComponentUpdate=function(r){return this.props.schema!==r.schema||this.props.searchValue!==r.searchValue},t.prototype.render=function(){var r,n,i=this.props.searchValue,o=this.props.withinType,s=this.props.schema,l=this.props.onClickType,d=this.props.onClickField,h=[],v=[],y=[],b=s.getTypeMap(),D=Object.keys(b);o&&(D=D.filter(function(w){return w!==o.name}),D.unshift(o.name));var _=function(w){if(h.length+v.length+y.length>=100)return"break";var x=b[w];if(o!==x&&Fw(w,i)&&v.push(_i.default.createElement("div",{className:"doc-category-item",key:w},_i.default.createElement(ni,{type:x,onClick:l}))),x&&"getFields"in x){var L=x.getFields();Object.keys(L).forEach(function(O){var R=L[O],M;if(!Fw(O,i))if("args"in R&&R.args.length){if(M=R.args.filter(function(z){return Fw(z.name,i)}),M.length===0)return}else return;var q=_i.default.createElement("div",{className:"doc-category-item",key:w+"."+O},o!==x&&[_i.default.createElement(ni,{key:"type",type:x,onClick:l}),"."],_i.default.createElement("a",{className:"field-name",onClick:function(z){return d(R,x,z)}},R.name),M&&["(",_i.default.createElement("span",{key:"args"},M.map(function(z){return _i.default.createElement(qu,{key:z.name,arg:z,onClickType:l,showDefaultValue:!1})})),")"]);o===x?h.push(q):y.push(q)})}};try{for(var k=ene(D),T=k.next();!T.done;T=k.next()){var S=T.value,m=_(S);if(m==="break")break}}catch(w){r={error:w}}finally{try{T&&!T.done&&(n=k.return)&&n.call(k)}finally{if(r)throw r.error}}return h.length+v.length+y.length===0?_i.default.createElement("span",{className:"doc-alert-text"},"No results found."):o&&v.length+y.length>0?_i.default.createElement("div",null,h,_i.default.createElement("div",{className:"doc-category"},_i.default.createElement("div",{className:"doc-category-title"},"other results"),v,y)):_i.default.createElement("div",{className:"doc-search-items"},h,v,y)},t}(_i.default.Component),PG=tne;function Fw(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 Tt=Ee(zt()),no=Ee(ht());var rne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),nne=function(e){rne(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,i=this.props.onClickType,o=this.props.onClickField,s=null,l=[];n instanceof no.GraphQLUnionType?(s="possible types",l=r.getPossibleTypes(n)):n instanceof no.GraphQLInterfaceType?(s="implementations",l=r.getPossibleTypes(n)):n instanceof no.GraphQLObjectType&&(s="implements",l=n.getInterfaces());var d;l&&l.length>0&&(d=Tt.default.createElement("div",{id:"doc-types",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},s),l.map(function(m){return Tt.default.createElement("div",{key:m.name,className:"doc-category-item"},Tt.default.createElement(ni,{type:m,onClick:i}))})));var h,v;if(n&&"getFields"in n){var y=n.getFields(),b=Object.keys(y).map(function(m){return y[m]});h=Tt.default.createElement("div",{id:"doc-fields",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"fields"),b.filter(function(m){return!m.deprecationReason}).map(function(m){return Tt.default.createElement(MG,{key:m.name,type:n,field:m,onClickType:i,onClickField:o})}));var D=b.filter(function(m){return Boolean(m.deprecationReason)});D.length>0&&(v=Tt.default.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?D.map(function(m){return Tt.default.createElement(MG,{key:m.name,type:n,field:m,onClickType:i,onClickField:o})}):Tt.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}var _,k;if(n instanceof no.GraphQLEnumType){var T=n.getValues();_=Tt.default.createElement("div",{className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"values"),T.filter(function(m){return Boolean(!m.deprecationReason)}).map(function(m){return Tt.default.createElement(qG,{key:m.name,value:m})}));var S=T.filter(function(m){return Boolean(m.deprecationReason)});S.length>0&&(k=Tt.default.createElement("div",{className:"doc-category"},Tt.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?S.map(function(m){return Tt.default.createElement(qG,{key:m.name,value:m})}):Tt.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return Tt.default.createElement("div",null,Tt.default.createElement(Bn,{className:"doc-type-description",markdown:"description"in n&&n.description||"No Description"}),n instanceof no.GraphQLObjectType&&d,h,v,_,k,!(n instanceof no.GraphQLObjectType)&&d)},t}(Tt.default.Component),FG=nne;function MG(e){var t=e.type,r=e.field,n=e.onClickType,i=e.onClickField;return Tt.default.createElement("div",{className:"doc-category-item"},Tt.default.createElement("a",{className:"field-name",onClick:function(o){return i(r,t,o)}},r.name),"args"in r&&r.args&&r.args.length>0&&["(",Tt.default.createElement("span",{key:"args"},r.args.filter(function(o){return!o.deprecationReason}).map(function(o){return Tt.default.createElement(qu,{key:o.name,arg:o,onClickType:n})})),")"],": ",Tt.default.createElement(ni,{type:r.type,onClick:n}),Tt.default.createElement(nh,{field:r}),r.description&&Tt.default.createElement(Bn,{className:"field-short-description",markdown:r.description}),"deprecationReason"in r&&r.deprecationReason&&Tt.default.createElement(Bn,{className:"doc-deprecation",markdown:r.deprecationReason}))}function qG(e){var t=e.value;return Tt.default.createElement("div",{className:"doc-category-item"},Tt.default.createElement("div",{className:"enum-value"},t.name),Tt.default.createElement(Bn,{className:"doc-value-description",markdown:t.description}),t.deprecationReason&&Tt.default.createElement(Bn,{className:"doc-deprecation",markdown:t.deprecationReason}))}var ine=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),qy=function(){return qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qy.apply(this,arguments)},VG={name:"Schema",title:"Documentation Explorer"},qw=function(e){ine(t,e);function t(r){var n=e.call(this,r)||this;return n.handleNavBackClick=function(){n.state.navStack.length>1&&n.setState({navStack:n.state.navStack.slice(0,-1)})},n.handleClickType=function(i){n.showDoc(i)},n.handleClickField=function(i){n.showDoc(i)},n.handleSearch=function(i){n.showSearch(i)},n.state={navStack:[VG]},n}return t.prototype.shouldComponentUpdate=function(r,n){return this.props.schema!==r.schema||this.state.navStack!==n.navStack||this.props.schemaErrors!==r.schemaErrors},t.prototype.render=function(){var r=this.props,n=r.schema,i=r.schemaErrors,o=this.state.navStack,s=o[o.length-1],l;i?l=wn.default.createElement("div",{className:"error-container"},"Error fetching schema"):n===void 0?l=wn.default.createElement("div",{className:"spinner-container"},wn.default.createElement("div",{className:"spinner"})):n?s.search?l=wn.default.createElement(PG,{searchValue:s.search,withinType:s.def,schema:n,onClickType:this.handleClickType,onClickField:this.handleClickField}):o.length===1?l=wn.default.createElement(Pw,{schema:n,onClickType:this.handleClickType}):(0,Mw.isType)(s.def)?l=wn.default.createElement(FG,{schema:n,type:s.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):l=wn.default.createElement(jw,{field:s.def,onClickType:this.handleClickType}):l=wn.default.createElement("div",{className:"error-container"},"No Schema Available");var d=o.length===1||(0,Mw.isType)(s.def)&&"getFields"in s.def,h;return o.length>1&&(h=o[o.length-2].name),wn.default.createElement("section",{className:"doc-explorer",key:s.name,"aria-label":"Documentation Explorer"},wn.default.createElement("div",{className:"doc-explorer-title-bar"},h&&wn.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+h},h),wn.default.createElement("div",{className:"doc-explorer-title"},s.title||s.name),wn.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),wn.default.createElement("div",{className:"doc-explorer-contents"},d&&wn.default.createElement(jG,{value:s.search,placeholder:"Search "+s.name+"...",onSearch:this.handleSearch}),l))},t.prototype.showDoc=function(r){var n=this.state.navStack,i=n[n.length-1];i.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(),i=n[n.length-1];n[n.length-1]=qy(qy({},i),{search:r}),this.setState({navStack:n})},t.prototype.reset=function(){this.setState({navStack:[VG]})},t}(wn.default.Component);var Vu=Ee(zt());var Ks=Ee(zt()),ane=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),one=function(e){ane(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,i=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 Ks.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?Ks.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"}):Ks.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},i),Ks.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"\u270E"),Ks.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}(Ks.default.Component),UG=one;var une=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},sne=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(une(arguments[t]));return e},lne=function(){function e(t,r,n){n===void 0&&(n=null),this.key=t,this.storage=r,this.maxSize=n,this.items=this.fetchAll()}return Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),e.prototype.contains=function(t){return this.items.some(function(r){return r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName})},e.prototype.edit=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1,t),this.save())},e.prototype.delete=function(t){var r=this.items.findIndex(function(n){return n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName});r!==-1&&(this.items.splice(r,1),this.save())},e.prototype.fetchRecent=function(){return this.items[this.items.length-1]},e.prototype.fetchAll=function(){var t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]},e.prototype.push=function(t){var r,n=sne(this.items,[t]);this.maxSize&&n.length>this.maxSize&&n.shift();for(var i=0;i<5;i++){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}(),Vw=lne;var QG=Ee(ht()),Vy=function(){return Vy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vy.apply(this,arguments)},cne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},GG=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(cne(arguments[t]));return e},fne=1e5,dne=function(){function e(t,r){var n=this;this.storage=t,this.maxHistoryLength=r,this.shouldSaveQuery=function(i,o,s,l){if(!i)return!1;try{(0,QG.parse)(i)}catch(d){return!1}return i.length>fne?!1:l?!(JSON.stringify(i)===JSON.stringify(l.query)&&(JSON.stringify(o)===JSON.stringify(l.variables)&&(JSON.stringify(s)===JSON.stringify(l.headers)||s&&!l.headers)||o&&!l.variables)):!0},this.fetchAllQueries=function(){var i=n.history.fetchAll(),o=n.favorite.fetchAll();return i.concat(o)},this.updateHistory=function(i,o,s,l){if(n.shouldSaveQuery(i,o,s,n.history.fetchRecent())){n.history.push({query:i,variables:o,headers:s,operationName:l});var d=n.history.items,h=n.favorite.items;n.queries=d.concat(h)}},this.toggleFavorite=function(i,o,s,l,d,h){var v={query:i,variables:o,headers:s,operationName:l,label:d};n.favorite.contains(v)?h&&(v.favorite=!1,n.favorite.delete(v)):(v.favorite=!0,n.favorite.push(v)),n.queries=GG(n.history.items,n.favorite.items)},this.editLabel=function(i,o,s,l,d,h){var v={query:i,variables:o,headers:s,operationName:l,label:d};h?n.favorite.edit(Vy(Vy({},v),{favorite:h})):n.history.edit(v),n.queries=GG(n.history.items,n.favorite.items)},this.history=new Vw("queries",this.storage,this.maxHistoryLength),this.favorite=new Vw("favorites",this.storage,null),this.queries=this.fetchAllQueries()}return e}(),Uy=dne;var pne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Uw=function(){return Uw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Uw.apply(this,arguments)},BG=function(e){pne(t,e);function t(r){var n=e.call(this,r)||this;n.onUpdateHistory=function(o,s,l,d){n.historyStore.updateHistory(o,s,l,d),n.setState({queries:n.historyStore.queries})},n.onHandleEditLabel=function(o,s,l,d,h,v){n.historyStore.editLabel(o,s,l,d,h,v),n.setState({queries:n.historyStore.queries})},n.onToggleFavorite=function(o,s,l,d,h,v){n.historyStore.toggleFavorite(o,s,l,d,h,v),n.setState({queries:n.historyStore.queries})},n.historyStore=new Uy(n.props.storage,n.props.maxHistoryLength);var i=n.historyStore.queries;return n.state={queries:i},n}return t.prototype.render=function(){var r=this,n=this.state.queries.slice().reverse(),i=n.map(function(o,s){return Vu.default.createElement(UG,Uw({handleEditLabel:r.onHandleEditLabel,handleToggleFavorite:r.onToggleFavorite,key:s+":"+(o.label||o.query),onSelect:r.props.onSelectQuery},o))});return Vu.default.createElement("section",{"aria-label":"History"},Vu.default.createElement("div",{className:"history-title-bar"},Vu.default.createElement("div",{className:"history-title"},"History"),Vu.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),Vu.default.createElement("ul",{className:"history-contents"},i))},t}(Vu.default.Component);var hne=function(){function e(){this.sizes=[]}return e.prototype.updateSizes=function(t){var r=this;t.forEach(function(n,i){if(n){var o=n.getClientHeight();if(i<=r.sizes.length&&o!==r.sizes[i]){var s=n.getCodeMirror();s&&s.setSize(null,null)}r.sizes[i]=o}})},e}(),KG=hne;function vne(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 gne=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,i=null;if(this.storage){var o="graphiql:"+t;if(r)try{this.storage.setItem(o,r)}catch(s){i=s,n=vne(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:n,error:i}},e}(),HG=gne;function ah(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 i=e.map(function(s){return s.name&&s.name.value}),o=i.indexOf(t);if(o!==-1&&o<n.length)return n[o]}return n[0]}}function oh(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}var Nn=Ee(ht());function Gw(e,t,r){var n=[];if(!e||!t)return{insertions:n,result:t};var i;try{i=(0,Nn.parse)(t)}catch(l){return{insertions:n,result:t}}var o=r||mne,s=new Nn.TypeInfo(e);return(0,Nn.visit)(i,{leave:function(l){s.leave(l)},enter:function(l){if(s.enter(l),l.kind==="Field"&&!l.selectionSet){var d=s.getType(),h=zG(Tne(d),o);if(h&&l.loc){var v=bne(t,l.loc.start);n.push({index:l.loc.end,string:" "+(0,Nn.print)(h).replace(/\n/g,`
|
|
`+v)})}}}}),{insertions:n,result:yne(t,n)}}function mne(e){if(!("getFields"in e))return[];var t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];var r=[];return Object.keys(t).forEach(function(n){(0,Nn.isLeafType)(t[n].type)&&r.push(n)}),r}function zG(e,t){var r=(0,Nn.getNamedType)(e);if(!(!e||(0,Nn.isLeafType)(e))){var n=t(r);if(!(!Array.isArray(n)||n.length===0||!("getFields"in r)))return{kind:Nn.Kind.SELECTION_SET,selections:n.map(function(i){var o=r.getFields()[i],s=o?o.type:null;return{kind:Nn.Kind.FIELD,name:{kind:Nn.Kind.NAME,value:i},selectionSet:zG(s,t)}})}}}function yne(e,t){if(t.length===0)return e;var r="",n=0;return t.forEach(function(i){var o=i.index,s=i.string;r+=e.slice(n,o)+s,n=o}),r+=e.slice(n),r}function bne(e,t){for(var r=t,n=t;r;){var i=e.charCodeAt(r-1);if(i===10||i===13||i===8232||i===8233)break;r--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(n=r)}return e.substring(r,n)}function Tne(e){if(e)return e}function uh(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetLeft,r=r.offsetParent;return t}function Qw(e){for(var t=0,r=e;r.offsetParent;)t+=r.offsetTop,r=r.offsetParent;return t}var aa=Ee(ht()),Xc=function(){return Xc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xc.apply(this,arguments)},Bw=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_ne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},WG=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_ne(arguments[t]));return e};function Ene(e,t){var r,n,i=new Map,o=[];try{for(var s=Bw(e),l=s.next();!l.done;l=s.next()){var d=l.value;if(d.kind==="Field"){var h=t(d),v=i.get(h);if(d.directives&&d.directives.length){var y=Xc({},d);o.push(y)}else if(v&&v.selectionSet&&d.selectionSet)v.selectionSet.selections=WG(v.selectionSet.selections,d.selectionSet.selections);else if(!v){var y=Xc({},d);i.set(h,y),o.push(y)}}else o.push(d)}}catch(b){r={error:b}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function YG(e,t,r){var n,i,o,s=r?(0,aa.getNamedType)(r).name:null,l=[],d=[];try{for(var h=Bw(t),v=h.next();!v.done;v=h.next()){var y=v.value;if(y.kind==="FragmentSpread"){var b=y.name.value;if(!y.directives||y.directives.length===0){if(d.indexOf(b)>=0)continue;d.push(b)}var D=e[y.name.value];if(D){var _=D.typeCondition,k=D.directives,T=D.selectionSet;y={kind:aa.Kind.INLINE_FRAGMENT,typeCondition:_,directives:k,selectionSet:T}}}if(y.kind===aa.Kind.INLINE_FRAGMENT&&(!y.directives||((o=y.directives)===null||o===void 0?void 0:o.length)===0)){var S=y.typeCondition?y.typeCondition.name.value:null;if(!S||S===s){l.push.apply(l,WG(YG(e,y.selectionSet.selections,r)));continue}}l.push(y)}}catch(m){n={error:m}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}return l}function Gy(e,t){var r,n,i=t?new aa.TypeInfo(t):null,o=Object.create(null);try{for(var s=Bw(e.definitions),l=s.next();!l.done;l=s.next()){var d=l.value;d.kind===aa.Kind.FRAGMENT_DEFINITION&&(o[d.name.value]=d)}}catch(v){r={error:v}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}var h={SelectionSet:function(v){var y=i?i.getParentType():null,b=v.selections;return b=YG(o,b,y),b=Ene(b,function(D){return D.alias?D.alias.value:D.name.value}),Xc(Xc({},v),{selections:b})},FragmentDefinition:function(){return null}};return(0,aa.visit)(e,i?(0,aa.visitWithTypeInfo)(i,h):h)}var Sne="IntrospectionQuery",JG=Sne;var vQ=Ee(sQ());var Ky=Ee(ht());var zs=Ee(zt()),Qy=function(){return Qy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Qy.apply(this,arguments)};function Ane(e){return zs.default.createElement("div",{role:"button","aria-pressed":!1,className:"close","aria-label":"Close Tab",title:"Close Tab",onClick:function(t){t.stopPropagation(),e.onClick()}})}function lQ(e){return zs.default.createElement("button",Qy({},e.tabProps,{role:"tab",type:"button","aria-selected":e.isActive,title:e.title,className:"tab"+(e.isActive?" active":""),onClick:e.onSelect}),e.title,e.isCloseable?zs.default.createElement(Ane,{onClick:function(){return e.onClose()}}):null)}function cQ(e){return zs.default.createElement("button",{onClick:e.onClick,className:"tab-add",title:"Create new tab"},zs.default.createElement("span",null,"+"))}function fQ(e){return zs.default.createElement("div",Qy({role:"tablist",className:"tabs"},e.tabsProps),e.children)}function dQ(e){var t,r=/^(?!.*#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/,n=r.exec(e);return(t=n==null?void 0:n[2])!==null&&t!==void 0?t:"<untitled>"}function Uu(e){var t,r,n;return[(t=e.query)!==null&&t!==void 0?t:"",(r=e.variables)!==null&&r!==void 0?r:"",(n=e.headers)!==null&&n!==void 0?n:""].join("|")}function By(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var Rne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Ke=function(){return Ke=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ke.apply(this,arguments)},Hw=function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function l(v){try{h(n.next(v))}catch(y){s(y)}}function d(v){try{h(n.throw(v))}catch(y){s(y)}}function h(v){v.done?o(v.value):i(v.value).then(l,d)}h((n=n.apply(e,t||[])).next())})},zw=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(h){return function(v){return d([h,v])}}function d(h){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return r.label++,{value:h[1],done:!1};case 5:r.label++,i=h[1],h=[0];continue;case 7:h=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1],o=h;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(h);break}o[2]&&r.ops.pop(),r.trys.pop();continue}h=t.call(e,r)}catch(v){h=[6,v],i=0}finally{n=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},jne=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},Pne=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof sh=="function"?sh(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(l,d){s=e[o](s),i(l,d,s.done,s.value)})}}function i(o,s,l,d){Promise.resolve(d).then(function(h){o({value:h,done:l})},s)}},Fne=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o},pQ=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fne(arguments[t]));return e},sh=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gQ=350,Mne=parseInt(ut.default.version.slice(0,2),10);if(Mne<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join(`
|
|
`));var mQ=function(e){return JSON.stringify(e,null,2)},qne=function(e){return Ke(Ke({},e),{message:e.message,stack:e.stack})},yQ=function(e){return e instanceof ii.GraphQLError?e.toString():e instanceof Error?qne(e):e},bQ=function(e){Rne(t,e);function t(r){var n,i,o,s,l,d,h,v,y,b,D,_=e.call(this,r)||this;if(_._editorQueryID=0,_.safeSetState=function(te,ce){_.componentIsMounted&&_.setState(te,ce)},_.persistTabsState=function(){var te,ce;_.props.tabs&&(_._storage.set("tabState",JSON.stringify(_.state.tabs,function(we,ot){return we==="response"||_.state.shouldPersistHeaders&&we==="headers"?void 0:ot})),typeof _.props.tabs=="object"&&((ce=(te=_.props.tabs).onTabChange)===null||ce===void 0||ce.call(te,_.state.tabs)))},_.makeHandleOnSelectTab=function(te){return function(){_.handleStopQuery(),_.setState(function(ce){return Hne(te,ce)},function(){_.persistTabsState(),_.state.query&&_.handleEditQuery(_.state.query)})}},_.makeHandleOnCloseTab=function(te){return function(){_.state.tabs.activeTabIndex===te&&_.handleStopQuery(),_.setState(function(ce){return zne(te,ce)},_.persistTabsState)}},_.handleOnAddTab=function(){_.setState(function(te){return Wne(te)},_.persistTabsState)},_.handleClickReference=function(te){_.setState({docExplorerOpen:!0},function(){_.docExplorerComponent&&_.docExplorerComponent.showDocForReference(te)}),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))},_.handleRunQuery=function(te){return Hw(_,void 0,void 0,function(){var ce,we,ot,Me,Qe,ze,mt,oe,me,fe=this;return zw(this,function(se){switch(se.label){case 0:this._editorQueryID++,ce=this._editorQueryID,we=this.autoCompleteLeafs()||this.state.query||"",ot=this.state.variables,Me=this.state.headers,Qe=this.state.shouldPersistHeaders,ze=this.state.operationName,te&&te!==ze&&(ze=te,this.handleEditOperationName(ze)),se.label=1;case 1:return se.trys.push([1,3,,4]),this.setState({isWaitingForResponse:!0,response:void 0,operationName:ze}),this._storage.set("operationName",ze),this._queryHistory?this._queryHistory.onUpdateHistory(we,ot,Me,ze):this._historyStore&&this._historyStore.updateHistory(we,ot,Me,ze),mt={data:{}},[4,this._fetchQuery(we,ot,Me,ze,Qe,function(Ue){var at,ct;if(ce===fe._editorQueryID){var st=Array.isArray(Ue)?Ue:!1;if(!st&&typeof Ue!="string"&&Ue!==null&&"hasNext"in Ue&&(st=[Ue]),st){var Dn={data:mt.data},Ei=pQ((mt==null?void 0:mt.errors)||[],st.map(function(vr){return vr.errors}).flat().filter(Boolean));Ei.length&&(Dn.errors=Ei);try{for(var dn=sh(st),Hn=dn.next();!Hn.done;Hn=dn.next()){var pn=Hn.value,Pi=pn.path,Qr=pn.data,Kt=pn.errors,hn=jne(pn,["path","data","errors"]);if(Pi){if(!Qr)throw new Error("Expected part to contain a data property, but got "+pn);(0,vQ.default)(Dn.data,Pi,Qr,{merge:!0})}else Qr&&(Dn.data=pn.data);mt=Ke(Ke({},Dn),hn)}}catch(vr){at={error:vr}}finally{try{Hn&&!Hn.done&&(ct=dn.return)&&ct.call(dn)}finally{if(at)throw at.error}}fe.setState({isWaitingForResponse:!1,response:t.formatResult(mt)})}else{var zn=t.formatResult(Ue);fe.setState(function(vr){return Ke(Ke({},vr),{tabs:Ke(Ke({},vr.tabs),{tabs:vr.tabs.tabs.map(function(Ro,xn){return xn!==vr.tabs.activeTabIndex?Ro:Ke(Ke({},Ro),{response:zn})})}),isWaitingForResponse:!1,response:zn})},fe.persistTabsState)}}})];case 2:return oe=se.sent(),this.setState({subscription:oe}),[3,4];case 3:return me=se.sent(),this.setState({isWaitingForResponse:!1,response:me.message}),[3,4];case 4:return[2]}})})},_.handleStopQuery=function(){var te=_.state.subscription;_.setState({isWaitingForResponse:!1,subscription:null}),te&&te.unsubscribe()},_.handlePrettifyQuery=function(){var te,ce,we,ot=_.getQueryEditor(),Me=(te=ot==null?void 0:ot.getValue())!==null&&te!==void 0?te:"",Qe=(0,ii.print)((0,ii.parse)(Me));Qe!==Me&&(ot==null||ot.setValue(Qe));var ze=_.getVariableEditor(),mt=(ce=ze==null?void 0:ze.getValue())!==null&&ce!==void 0?ce:"";try{var oe=JSON.stringify(JSON.parse(mt),null,2);oe!==mt&&(ze==null||ze.setValue(oe))}catch(Ue){}var me=_.getHeaderEditor(),fe=(we=me==null?void 0:me.getValue())!==null&&we!==void 0?we:"";try{var se=JSON.stringify(JSON.parse(fe),null,2);se!==fe&&(me==null||me.setValue(se))}catch(Ue){}},_.handleMergeQuery=function(){var te=_.getQueryEditor(),ce=te.getValue();if(!!ce){var we=_.state.documentAST;te.setValue((0,ii.print)(Gy(we,_.state.schema)))}},_.handleEditQuery=ji(100,function(te){var ce=_._updateQueryFacts(te,_.state.operationName,_.state.operations,_.state.schema);if(_.setState(function(we){return Ke(Ke(Ke(Ke({},we),{query:te}),ce),{tabs:Kne(te,we.tabs,ce==null?void 0:ce.operationName)})},_.persistTabsState),_._storage.set("query",te),_.props.onEditQuery)return _.props.onEditQuery(te,ce==null?void 0:ce.documentAST)}),_.handleCopyQuery=function(){var te=_.getQueryEditor(),ce=te&&te.getValue();if(!!ce&&((0,hQ.default)(ce),_.props.onCopyQuery))return _.props.onCopyQuery(ce)},_._updateQueryFacts=function(te,ce,we,ot){var Me=js(ot,te);if(Me){var Qe=ah(we,ce,Me.operations),ze=_.props.onEditOperationName;return ze&&Qe&&ce!==Qe&&ze(Qe),Ke({operationName:Qe},Me)}},_.handleEditVariables=function(te){_.setState(function(ce){return Ke(Ke({},ce),{variables:te,tabs:Bne(te,ce.tabs)})},_.persistTabsState),ji(500,function(){return _._storage.set("variables",te)})(),_.props.onEditVariables&&_.props.onEditVariables(te)},_.handleEditHeaders=function(te){_.setState(function(ce){return Ke(Ke({},ce),{headers:te,tabs:Qne(te,ce.tabs)})},_.persistTabsState),_.props.shouldPersistHeaders&&ji(500,function(){return _._storage.set("headers",te)})(),_.props.onEditHeaders&&_.props.onEditHeaders(te)},_.handleEditOperationName=function(te){var ce=_.props.onEditOperationName;ce&&ce(te)},_.handleHintInformationRender=function(te){te.addEventListener("click",_._onClickHintInformation);var ce;te.addEventListener("DOMNodeRemoved",ce=function(){te.removeEventListener("DOMNodeRemoved",ce),te.removeEventListener("click",_._onClickHintInformation)})},_.handleEditorRunQuery=function(){_._runQueryAtCursor()},_._onClickHintInformation=function(te){if((te==null?void 0:te.currentTarget)&&"className"in te.currentTarget&&te.currentTarget.className==="typeName"){var ce=te.currentTarget.innerHTML,we=_.state.schema;if(we){var ot=we.getType(ce);ot&&(_.setState({docExplorerOpen:!0},function(){_.docExplorerComponent&&_.docExplorerComponent.showDoc(ot)}),ji(500,function(){return _._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))})())}}},_.handleToggleDocs=function(){typeof _.props.onToggleDocs=="function"&&_.props.onToggleDocs(!_.state.docExplorerOpen),_._storage.set("docExplorerOpen",JSON.stringify(!_.state.docExplorerOpen)),_.setState({docExplorerOpen:!_.state.docExplorerOpen})},_.handleToggleHistory=function(){typeof _.props.onToggleHistory=="function"&&_.props.onToggleHistory(!_.state.historyPaneOpen),_._storage.set("historyPaneOpen",JSON.stringify(!_.state.historyPaneOpen)),_.setState({historyPaneOpen:!_.state.historyPaneOpen})},_.handleSelectHistoryQuery=function(te,ce,we,ot){te&&_.handleEditQuery(te),ce&&_.handleEditVariables(ce),we&&_.handleEditHeaders(we),ot&&_.handleEditOperationName(ot)},_.handleResizeStart=function(te){if(!!_._didClickDragBar(te)){te.preventDefault();var ce=te.clientX-uh(te.target),we=function(Me){if(Me.buttons===0)return ot();var Qe=_.editorBarComponent,ze=Me.clientX-uh(Qe)-ce,mt=Qe.clientWidth-ze;_.setState({editorFlex:ze/mt}),ji(500,function(){return _._storage.set("editorFlex",JSON.stringify(_.state.editorFlex))})()},ot=function(){document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",ot),we=null,ot=null};document.addEventListener("mousemove",we),document.addEventListener("mouseup",ot)}},_.handleResetResize=function(){_.setState({editorFlex:1}),_._storage.set("editorFlex",JSON.stringify(_.state.editorFlex))},_.handleDocsResizeStart=function(te){te.preventDefault();var ce=_.state.docExplorerWidth,we=te.clientX-uh(te.target),ot=function(Qe){if(Qe.buttons===0)return Me();var ze=_.graphiqlContainer,mt=Qe.clientX-uh(ze)-we,oe=ze.clientWidth-mt;oe<100?(typeof _.props.onToggleDocs=="function"&&_.props.onToggleDocs(!_.state.docExplorerOpen),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen)),_.setState({docExplorerOpen:!1})):(_.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(oe,650)}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()),_._storage.set("docExplorerOpen",JSON.stringify(_.state.docExplorerOpen))},Me=function(){_.state.docExplorerOpen||(_.setState({docExplorerWidth:ce}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()),document.removeEventListener("mousemove",ot),document.removeEventListener("mouseup",Me),ot=null,Me=null};document.addEventListener("mousemove",ot),document.addEventListener("mouseup",Me)},_.handleDocsResetResize=function(){_.setState({docExplorerWidth:gQ}),ji(500,function(){return _._storage.set("docExplorerWidth",JSON.stringify(_.state.docExplorerWidth))})()},_.handleTabClickPropogation=function(te){te.preventDefault(),te.stopPropagation()},_.handleOpenHeaderEditorTab=function(te){_.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})},_.handleOpenVariableEditorTab=function(te){_.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})},_.handleSecondaryEditorResizeStart=function(te){te.preventDefault();var ce=!1,we=_.state.secondaryEditorOpen,ot=_.state.secondaryEditorHeight,Me=te.clientY-Qw(te.target),Qe=function(mt){if(mt.buttons===0)return ze();ce=!0;var oe=_.editorBarComponent,me=mt.clientY-Qw(oe)-Me,fe=oe.clientHeight-me;fe<60?_.setState({secondaryEditorOpen:!1,secondaryEditorHeight:ot}):_.setState({secondaryEditorOpen:!0,secondaryEditorHeight:fe}),ji(500,function(){return _._storage.set("secondaryEditorHeight",JSON.stringify(_.state.secondaryEditorHeight))})()},ze=function(){ce||_.setState({secondaryEditorOpen:!we}),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",ze),Qe=null,ze=null};document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",ze)},typeof r.fetcher!="function")throw new TypeError("GraphiQL requires a fetcher function.");_._storage=new HG(r.storage);var k=(l=r.maxHistoryLength)!==null&&l!==void 0?l:20;_._historyStore=new Uy(_._storage,k),_.componentIsMounted=!1;var T=r.query!==void 0?r.query:_._storage.get("query")?_._storage.get("query"):r.defaultQuery!==void 0?r.defaultQuery:Vne,S=js(r.schema,T),m=r.variables!==void 0?r.variables:_._storage.get("variables"),w=r.headers!==void 0?r.headers:_._storage.get("headers"),x=r.operationName!==void 0?r.operationName:ah(void 0,_._storage.get("operationName"),S&&S.operations),L=r.docExplorerOpen||!1;_._storage.get("docExplorerOpen")&&(L=_._storage.get("docExplorerOpen")==="true");var O;r.defaultVariableEditorOpen!==void 0?O=r.defaultVariableEditorOpen:r.defaultSecondaryEditorOpen!==void 0?O=r.defaultSecondaryEditorOpen:O=Boolean(m||w);var R=(d=r.headerEditorEnabled)!==null&&d!==void 0?d:!0,M=(h=r.shouldPersistHeaders)!==null&&h!==void 0?h:!1,q=r.schema,z=r.response,B=void 0;if(q&&!_.props.dangerouslyAssumeSchemaIsValid){var Q=(0,Ky.validateSchema)(q);Q&&Q.length>0&&(z=t.formatError(Q),q=void 0,B=Q)}_._introspectionQuery=(0,ii.getIntrospectionQuery)({schemaDescription:(v=r.schemaDescription)!==null&&v!==void 0?v:void 0,inputValueDeprecation:(y=r.inputValueDeprecation)!==null&&y!==void 0?y:void 0}),_._introspectionQueryName=(b=r.introspectionQueryName)!==null&&b!==void 0?b:JG,_._introspectionQuerySansSubscriptions=_._introspectionQuery.replace("subscriptionType { name }","");var P=Uu({query:T,variables:m,headers:w}),he={id:By(),hash:P,title:x!=null?x:"<untitled>",query:T,variables:m,headers:w,operationName:x,response:void 0},xe=null;_.props.tabs&&(xe=_._storage.get("tabState"));var ge;if(xe===null)ge={activeTabIndex:0,tabs:[he]};else{ge=JSON.parse(xe);var Fe=!1;try{for(var Le=sh(ge.tabs),He=Le.next();!He.done;He=Le.next()){var Xe=He.value;Xe.query=Xe.query,Xe.variables=Xe.variables,Xe.headers=M?Xe.headers:void 0,Xe.response=void 0,Xe.operationName=void 0,Xe.id=By(),Xe.hash=Uu(Xe),Xe.hash===P&&(Fe=!0)}}catch(te){n={error:te}}finally{try{He&&!He.done&&(i=Le.return)&&i.call(Le)}finally{if(n)throw n.error}}Fe===!1&&(ge.tabs.push(he),ge.activeTabIndex=ge.tabs.length-1)}var Ve=ge.tabs[0],At=0;try{for(var Ot=sh(ge.tabs),Ie=Ot.next();!Ie.done;Ie=Ot.next()){var Xe=Ie.value;if(Xe.hash===P){ge.activeTabIndex=At,Ve=Xe;break}At++}}catch(te){o={error:te}}finally{try{Ie&&!Ie.done&&(s=Ot.return)&&s.call(Ot)}finally{if(o)throw o.error}}return _.state=Ke({tabs:ge,schema:q,query:Ve==null?void 0:Ve.query,variables:Ve==null?void 0:Ve.variables,headers:Ve==null?void 0:Ve.headers,operationName:Ve==null?void 0:Ve.operationName,response:(D=Ve==null?void 0:Ve.response)!==null&&D!==void 0?D:z,docExplorerOpen:L,schemaErrors:B,editorFlex:Number(_._storage.get("editorFlex"))||1,secondaryEditorOpen:O,secondaryEditorHeight:Number(_._storage.get("secondaryEditorHeight"))||200,variableEditorActive:_._storage.get("variableEditorActive")==="true"||r.headerEditorEnabled?_._storage.get("headerEditorActive")!=="true":!0,headerEditorActive:_._storage.get("headerEditorActive")==="true",headerEditorEnabled:R,shouldPersistHeaders:M,historyPaneOpen:_._storage.get("historyPaneOpen")==="true"||!1,docExplorerWidth:Number(_._storage.get("docExplorerWidth"))||gQ,isWaitingForResponse:!1,subscription:null,maxHistoryLength:k},S),_.state.query&&_.handleEditQuery(_.state.query),_}return t.formatResult=function(r){return JSON.stringify(r,null,2)},t.prototype.componentDidMount=function(){this.componentIsMounted=!0,this.state.schema===void 0&&this.fetchSchema(),this.codeMirrorSizer=new KG,typeof window!="undefined"&&(window.g=this)},t.prototype.UNSAFE_componentWillMount=function(){this.componentIsMounted=!1},t.prototype.UNSAFE_componentWillReceiveProps=function(r){var n=this,i=this.state.schema,o=this.state.query,s=this.state.variables,l=this.state.headers,d=this.state.operationName,h=this.state.response;if(r.schema!==void 0&&(i=r.schema),r.query!==void 0&&this.props.query!==r.query&&(o=r.query),r.variables!==void 0&&this.props.variables!==r.variables&&(s=r.variables),r.headers!==void 0&&this.props.headers!==r.headers&&(l=r.headers),r.operationName!==void 0&&(d=r.operationName),r.response!==void 0&&(h=r.response),o&&i&&(i!==this.state.schema||o!==this.state.query||d!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){var v=(0,Ky.validateSchema)(i);v&&v.length>0&&(this.handleSchemaErrors(v),i=void 0)}var y=this._updateQueryFacts(o,d,this.state.operations,i);y!==void 0&&(d=y.operationName,this.setState(y))}r.schema===void 0&&r.fetcher!==this.props.fetcher&&(i=void 0),this._storage.set("operationName",d),this.setState({schema:i,query:o,variables:s,headers:l,operationName:d,response:h},function(){n.state.schema===void 0&&(n.docExplorerComponent&&n.docExplorerComponent.reset(),n.fetchSchema())})},t.prototype.componentDidUpdate=function(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])},t.prototype.render=function(){var r=this,n,i=ut.default.Children.toArray(this.props.children),o=oh(i,function(k){return Ww(k,t.Logo)})||ut.default.createElement(t.Logo,null),s=oh(i,function(k){return Ww(k,t.Toolbar)})||ut.default.createElement(t.Toolbar,null,ut.default.createElement(Lu,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),ut.default.createElement(Lu,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),ut.default.createElement(Lu,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),ut.default.createElement(Lu,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),((n=this.props.toolbar)===null||n===void 0?void 0:n.additionalContent)?this.props.toolbar.additionalContent:null),l=oh(i,function(k){return Ww(k,t.Footer)}),d={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},h={display:"block",width:this.state.docExplorerWidth},v="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),y={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},b=this.state.secondaryEditorOpen,D={height:b?this.state.secondaryEditorHeight:void 0},_=this.state.tabs;return ut.default.createElement("div",{ref:function(k){r.graphiqlContainer=k},"data-testid":"graphiql-container",className:"graphiql-container"},this.state.historyPaneOpen&&ut.default.createElement("div",{className:"historyPaneWrap",style:y},ut.default.createElement(BG,{ref:function(k){r._queryHistory=k},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID},ut.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"\u2715"))),ut.default.createElement("div",{className:"editorWrap"},ut.default.createElement("div",{className:"topBarWrap"},this.props.beforeTopBarContent,ut.default.createElement("div",{className:"topBar"},o,ut.default.createElement(lF,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),s),!this.state.docExplorerOpen&&ut.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),this.props.tabs?ut.default.createElement(fQ,{tabsProps:{"aria-label":"Select active operation"}},_.tabs.map(function(k,T){return ut.default.createElement(lQ,{key:k.id,isActive:T===_.activeTabIndex,title:k.title,isCloseable:_.tabs.length>1,onSelect:r.makeHandleOnSelectTab(T),onClose:r.makeHandleOnCloseTab(T),tabProps:{"aria-controls":"sessionWrap",id:"session-tab-"+T}})}),ut.default.createElement(cQ,{onClick:this.handleOnAddTab})):null,ut.default.createElement("div",{ref:function(k){r.editorBarComponent=k},role:"tabpanel",id:"sessionWrap",className:"editorBar","aria-labelledby":"session-tab-"+_.activeTabIndex,onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},ut.default.createElement("div",{className:"queryWrap",style:d},ut.default.createElement(wy,{ref:function(k){r.queryEditorComponent=k},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),ut.default.createElement("section",{className:"variable-editor secondary-editor",style:D,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},ut.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},ut.default.createElement("div",{className:"variable-editor-title-text"+(this.state.variableEditorActive?" active":""),onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&ut.default.createElement("div",{style:{marginLeft:"20px"},className:"variable-editor-title-text"+(this.state.headerEditorActive?" active":""),onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),ut.default.createElement(Ry,{ref:function(k){r.variableEditorComponent=k},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&ut.default.createElement(Dw,{ref:function(k){r.headerEditorComponent=k},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),ut.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&ut.default.createElement("div",{className:"spinner-container"},ut.default.createElement("div",{className:"spinner"})),ut.default.createElement(Cw,{registerRef:function(k){r.resultViewerElement=k},ref:function(k){r.resultComponent=k},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:fF}),l))),this.state.docExplorerOpen&&ut.default.createElement("div",{className:v,style:h},ut.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),ut.default.createElement(qw,{ref:function(k){r.docExplorerComponent=k},schemaErrors:this.state.schemaErrors,schema:this.state.schema},ut.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"\u2715"))))},t.prototype.getQueryEditor=function(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()},t.prototype.getVariableEditor=function(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null},t.prototype.getHeaderEditor=function(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null},t.prototype.refresh=function(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()},t.prototype.autoCompleteLeafs=function(){var r=Gw(this.state.schema,this.state.query,this.props.getDefaultFieldNames),n=r.insertions,i=r.result;if(n&&n.length>0){var o=this.getQueryEditor();o&&o.operation(function(){var s=o.getCursor(),l=o.indexFromPos(s);o.setValue(i||"");var d=0,h=n.map(function(y){var b=y.index,D=y.string;return o.markText(o.posFromIndex(b+d),o.posFromIndex(b+(d+=D.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(function(){return h.forEach(function(y){return y.clear()})},7e3);var v=l;n.forEach(function(y){var b=y.index,D=y.string;b<l&&(v+=D.length)}),o.setCursor(o.posFromIndex(v))})}return i},t.prototype.fetchSchema=function(){var r=this,n=this.props.fetcher,i={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};try{this.state.headers&&this.state.headers.trim().length>2?i.headers=JSON.parse(this.state.headers):this.props.headers&&(i.headers=JSON.parse(this.props.headers))}catch(s){this.setState({response:"Introspection failed as headers are invalid."});return}var o=wQ(n({query:this._introspectionQuery,operationName:this._introspectionQueryName},i));if(!SQ(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 l=wQ(n({query:r._introspectionQuerySansSubscriptions,operationName:r._introspectionQueryName},i));if(!SQ(o))throw new Error("Fetcher did not return a Promise for introspection.");return l}).then(function(s){var l,d;if(r.state.schema===void 0)if(s&&s.data&&"__schema"in(s==null?void 0:s.data)){var h=(0,ii.buildClientSchema)(s.data);if(!r.props.dangerouslyAssumeSchemaIsValid){var v=(0,Ky.validateSchema)(h);v&&v.length>0&&(h=void 0,r.handleSchemaErrors(v))}if(h){var y=js(h,r.state.query);r.safeSetState(Ke(Ke({schema:h},y),{schemaErrors:void 0})),(d=(l=r.props).onSchemaChange)===null||d===void 0||d.call(l,h)}}else{var b=typeof s=="string"?s:t.formatResult(s);r.handleSchemaErrors([b])}}).catch(function(s){r.handleSchemaErrors([s])})},t.prototype.handleSchemaErrors=function(r){this.safeSetState({response:r?t.formatError(r):void 0,schema:void 0,schemaErrors:r})},t.prototype._fetchQuery=function(r,n,i,o,s,l){return Hw(this,void 0,void 0,function(){var d,h,v,y,b,D,_=this;return zw(this,function(k){d=this.props.fetcher,h=null,v=null;try{h=n&&n.trim()!==""?JSON.parse(n):null}catch(T){throw new Error("Variables are invalid JSON: "+T.message+".")}if(typeof h!="object")throw new Error("Variables are not a JSON object.");try{v=i&&i.trim()!==""?JSON.parse(i):null}catch(T){throw new Error("Headers are invalid JSON: "+T.message+".")}if(typeof v!="object")throw new Error("Headers are not a JSON object.");return this.props.externalFragments&&(y=new Map,Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(function(T){y.set(T.name.value,T)}):(0,ii.visit)((0,ii.parse)(this.props.externalFragments,{}),{FragmentDefinition:function(T){y.set(T.name.value,T)}}),b=qm(this.state.documentAST,y),b.length>0&&(r+=`
|
|
`+b.map(function(T){return(0,ii.print)(T)}).join(`
|
|
`))),D=d({query:r,variables:h,operationName:o},{headers:v,shouldPersistHeaders:s,documentAST:this.state.documentAST}),[2,Promise.resolve(D).then(function(T){if(kQ(T)){var S=T.subscribe({next:l,error:function(m){_.safeSetState({isWaitingForResponse:!1,response:m?t.formatError(m):void 0,subscription:null})},complete:function(){_.safeSetState({isWaitingForResponse:!1,subscription:null})}});return S}else return OQ(T)?(function(){return Hw(_,void 0,void 0,function(){var m,w,x,L,O,R,M;return zw(this,function(q){switch(q.label){case 0:q.trys.push([0,13,,14]),q.label=1;case 1:q.trys.push([1,6,7,12]),m=Pne(T),q.label=2;case 2:return[4,m.next()];case 3:if(w=q.sent(),!!w.done)return[3,5];x=w.value,l(x),q.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return L=q.sent(),R={error:L},[3,12];case 7:return q.trys.push([7,,10,11]),w&&!w.done&&(M=m.return)?[4,M.call(m)]:[3,9];case 8:q.sent(),q.label=9;case 9:return[3,11];case 10:if(R)throw R.error;return[7];case 11:return[7];case 12:return this.safeSetState({isWaitingForResponse:!1,subscription:null}),[3,14];case 13:return O=q.sent(),this.safeSetState({isWaitingForResponse:!1,response:O?t.formatError(O):void 0,subscription:null}),[3,14];case 14:return[2]}})})}(),{unsubscribe:function(){var m,w;return(w=(m=T[Symbol.asyncIterator]()).return)===null||w===void 0?void 0:w.call(m)}}):(l(T),null)}).catch(function(T){return _.safeSetState({isWaitingForResponse:!1,response:T?t.formatError(T):void 0}),null})]})})},t.prototype._runQueryAtCursor=function(){if(this.state.subscription){this.handleStopQuery();return}var r,n=this.state.operations;if(n){var i=this.getQueryEditor();if(i&&i.hasFocus())for(var o=i.getCursor(),s=i.indexFromPos(o),l=0;l<n.length;l++){var d=n[l];if(d.loc&&d.loc.start<=s&&d.loc.end>=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 i=this.resultViewerElement;n;){if(n===i)return!0;n=n.parentNode}return!1},t.formatError=function(r){return Array.isArray(r)?mQ({errors:r.map(function(n){return yQ(n)})}):mQ({errors:yQ(r)})},t.Logo=TQ,t.Toolbar=_Q,t.Footer=EQ,t.QueryEditor=wy,t.VariableEditor=Ry,t.HeaderEditor=Dw,t.ResultViewer=Cw,t.Button=Lu,t.ToolbarButton=Lu,t.Group=rO,t.Menu=nO,t.MenuItem=iO,t}(ut.default.Component);function TQ(e){return ut.default.createElement("div",{className:"title"},e.children||ut.default.createElement("span",null,"Graph",ut.default.createElement("em",null,"i"),"QL"))}TQ.displayName="GraphiQLLogo";function _Q(e){return ut.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}_Q.displayName="GraphiQLToolbar";function EQ(e){return ut.default.createElement("div",{className:"footer"},e.children)}EQ.displayName="GraphiQLFooter";var Vne=`# 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 SQ(e){return typeof e=="object"&&typeof e.then=="function"}function Une(e){return new Promise(function(t,r){var n=e.subscribe({next:function(i){t(i),n.unsubscribe()},error:r,complete:function(){r(new Error("no value resolved"))}})})}function kQ(e){return typeof e=="object"&&"subscribe"in e&&typeof e.subscribe=="function"}function OQ(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Gne(e){return new Promise(function(t,r){var n,i=(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),i==null||i()}).catch(function(s){r(s)})})}function wQ(e){return Promise.resolve(e).then(function(t){return OQ(t)?Gne(t):kQ(t)?Une(t):t})}function Ww(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}function Qne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{headers:e,hash:Uu({query:r.query,headers:e,variables:r.variables})})})})}function Bne(e,t){return Ke(Ke({},t),{tabs:t.tabs.map(function(r,n){return n!==t.activeTabIndex?r:Ke(Ke({},r),{variables:e,hash:Uu({query:r.query,headers:r.headers,variables:e})})})})}function Kne(e,t,r){return Ke(Ke({},t),{tabs:t.tabs.map(function(n,i){return i!==t.activeTabIndex?n:Ke(Ke({},n),{title:r!=null?r:dQ(e),query:e,hash:Uu({query:e,headers:n.headers,variables:n.variables})})})})}function Hne(e,t){var r=t.tabs.activeTabIndex,n=t.tabs.tabs.map(function(o,s){return s!==r?o:Ke(Ke({},o),{query:t.query,variables:t.variables,operationName:t.operationName,headers:t.headers,response:t.response,hash:Uu({query:t.query,variables:t.variables,headers:t.headers})})}),i=t.tabs.tabs[e];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:Ke(Ke({},t.tabs),{tabs:n,activeTabIndex:e})})}function zne(e,t){var r=t.tabs.activeTabIndex>0?t.tabs.activeTabIndex-1:0,n=Ke(Ke({},t.tabs),{activeTabIndex:r,tabs:t.tabs.tabs.filter(function(o,s){return e!==s})}),i=n.tabs[r];return Ke(Ke({},t),{query:i.query,variables:i.variables,operationName:i.operationName,headers:i.headers,response:i.response,tabs:n})}function Wne(e){var t=e.tabs.activeTabIndex,r={id:By(),title:"<untitled>",headers:"",variables:"",query:"",operationName:"",response:"",hash:Uu({query:"",variables:"",headers:""})},n=e.tabs.tabs.map(function(i,o){return o!==t?i:Ke(Ke({},i),{headers:e.headers,variables:e.variables,query:e.query,operationName:e.operationName,response:e.response})});return Ke(Ke({},e),{headers:r.headers,variables:r.variables,query:r.query,operationName:r.operationName,response:r.response,tabs:Ke(Ke({},e.tabs),{activeTabIndex:e.tabs.tabs.length,tabs:pQ(n,[r])})})}var oa=Ee(zt()),Yne=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[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)}}(),Yw=function(){return Yw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yw.apply(this,arguments)};function Jne(e){return!(!e||typeof e!="object"||!("props"in e))}var Xne=function(e){Yne(t,e);function t(r){var n=e.call(this,r)||this;return n._node=null,n._listener=null,n.handleOpen=function(i){Hy(i),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,i=this.state.visible,o=oa.default.Children.map(this.props.children,function(s,l){if(!Jne(s))return null;(!n||s.props.selected)&&(n=s);var d=s.props.onSelect||r.props.onSelect&&r.props.onSelect.bind(null,s.props.value,l);return oa.default.createElement(NQ,Yw({},s.props,{onSelect:d}))});return oa.default.createElement("a",{className:"toolbar-select toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:Hy,ref:function(s){r._node=s},title:this.props.title},n==null?void 0:n.props.label,oa.default.createElement("svg",{width:"13",height:"10"},oa.default.createElement("path",{fill:"#666",d:"M 5 5 L 13 5 L 9 1 z"}),oa.default.createElement("path",{fill:"#666",d:"M 5 6 L 13 6 L 9 10 z"})),oa.default.createElement("ul",{className:"toolbar-select-options"+(i?" open":"")},o))},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&&(Hy(r),this.setState({visible:!1}),this._release())},t}(oa.default.Component);function NQ(e){var t=e.onSelect,r=e.label,n=e.selected;return oa.default.createElement("li",{onMouseOver:function(i){i.currentTarget.className="hover"},onMouseOut:function(i){i.currentTarget.className=""},onMouseDown:Hy,onMouseUp:t},r,n&&oa.default.createElement("svg",{width:"13",height:"13"},oa.default.createElement("polygon",{points:`4.851,10.462 0,5.611 2.314,3.297 4.851,5.835
|
|
10.686,0 13,2.314 4.851,10.462`})))}function Hy(e){e.preventDefault()}var DQ=bQ;var HQ=Ee(KQ());window.React=Eie;window.ReactDOM=Sie;window.SubscriptionsTransportWs=HQ.default;window.GraphiQL=DQ;})();
|
|
/*
|
|
object-assign
|
|
(c) Sindre Sorhus
|
|
@license MIT
|
|
*/
|
|
/*!
|
|
* escape-html
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
* MIT Licensed
|
|
*/
|
|
/*!
|
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/
|
|
/*!
|
|
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
*
|
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/
|
|
/*!
|
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
*
|
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
* Released under the MIT License.
|
|
*/
|
|
/*!
|
|
* set-value <https://github.com/jonschlinkert/set-value>
|
|
*
|
|
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
* Released under the MIT License.
|
|
*/
|
|
/** @license React v0.20.2
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/** @license React v17.0.2
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
/** @license React v17.0.2
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|